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
featL added mail, principle management in org and project level
=15ed889fa4a3
diff --git a/tests/Makefile b/tests/Makefileindex 65e054d43c..c9eb068e78 100644--- a/tests/Makefile+++ b/tests/Makefile@@ -3,6 +3,11 @@# the toolchain's own.GOFMT := $(shell go env GOROOT)/bin/gofmt+# Where `generate-client` reads the spec from. The instance must have+# OPENAPI_FULL_SPEC set, which docker-compose.dev.yml does; without it half the routes+# are missing and no test can reach them.+INFISICAL_OPENAPI_URL ?= http://localhost:8080+.PHONY: fmt lint test test-unit test-docker test-suites up down status generate-clientfmt:@@ -16,33 +21,40 @@ lint:# Unit tests only: no Docker, no containers, runs in under a second.test-unit:- go test ./infra/... ./internal/... -count=1+ go test ./infra/... ./internal/... ./harness/... -count=1test: lint test-unit-# Container tests. Needs Docker. `inf down` if a run is interrupted.+# Container tests for the infra layer. These create their own per-test containers and+# do not touch the shared stack.test-docker:INFRA_DOCKER_TESTS=1 go test ./infra/... -count=1-# Every suite run starts from a clean stack.-test-suites: down up- go test ./suites/... -count=1--down:- go run ./cmd/inf down+# Bring the stack up, run the suites, and always take it down again.+#+# `trap ... EXIT` rather than a follow-up line, because a make recipe stops at the+# first failing command: without it a red run would leave the stack up and the next+# `up` would silently adopt it. The trap fires on Ctrl-C too, so an interrupted run+# still cleans up.+#+# The recipe's exit status is still `go test`'s, so a failure stays a failure.+test-suites: up+ @trap '$(MAKE) --no-print-directory down' EXIT; go test ./suites/... -count=1up:go run ./cmd/inf up+down:+ go run ./cmd/inf down+status:go run ./cmd/inf status# Generate the API client from a running Infisical. Bring one up first (`make up-dev`-# from the repo root); it must have OPENAPI_FULL_SPEC set, which docker-compose.dev.yml-# does, or half the routes are missing from the spec and no test can reach them.-#-# oapi-codegen reads the URL directly, so there is no spec snapshot to keep in sync.-INFISICAL_OPENAPI_URL ?= http://localhost:8080-+# from the repo root). oapi-codegen reads the URL directly, so there is no spec+# snapshot to keep in sync.+# Must point at a NON-PRODUCTION instance: the full spec is gated on+# `NODE_ENV != "production"`, so the harness's own container serves the partial one+# and regenerating against it silently drops operations. The dev stack qualifies.generate-client:go tool oapi-codegen -config clients/api/oapi-codegen.yaml $(INFISICAL_OPENAPI_URL)/api/docs/jsondiff --git a/tests/clients/api/api.gen.go b/tests/clients/api/api.gen.goindex 3e9f44c7f9..63487a0590 100644--- a/tests/clients/api/api.gen.go+++ b/tests/clients/api/api.gen.go@@ -200,31 +200,31 @@ func (e AdminBootstrap500JSONResponseBodyStatusCode) Valid() bool {// Defines values for UpdateAdminConfigJSONBodyEnabledLoginMethods.const (- Email UpdateAdminConfigJSONBodyEnabledLoginMethods = "email"- Github UpdateAdminConfigJSONBodyEnabledLoginMethods = "github"- Gitlab UpdateAdminConfigJSONBodyEnabledLoginMethods = "gitlab"- Google UpdateAdminConfigJSONBodyEnabledLoginMethods = "google"- Ldap UpdateAdminConfigJSONBodyEnabledLoginMethods = "ldap"- Oidc UpdateAdminConfigJSONBodyEnabledLoginMethods = "oidc"- Saml UpdateAdminConfigJSONBodyEnabledLoginMethods = "saml"+ UpdateAdminConfigJSONBodyEnabledLoginMethodsEmail UpdateAdminConfigJSONBodyEnabledLoginMethods = "email"+ UpdateAdminConfigJSONBodyEnabledLoginMethodsGithub UpdateAdminConfigJSONBodyEnabledLoginMethods = "github"+ UpdateAdminConfigJSONBodyEnabledLoginMethodsGitlab UpdateAdminConfigJSONBodyEnabledLoginMethods = "gitlab"+ UpdateAdminConfigJSONBodyEnabledLoginMethodsGoogle UpdateAdminConfigJSONBodyEnabledLoginMethods = "google"+ UpdateAdminConfigJSONBodyEnabledLoginMethodsLdap UpdateAdminConfigJSONBodyEnabledLoginMethods = "ldap"+ UpdateAdminConfigJSONBodyEnabledLoginMethodsOidc UpdateAdminConfigJSONBodyEnabledLoginMethods = "oidc"+ UpdateAdminConfigJSONBodyEnabledLoginMethodsSaml UpdateAdminConfigJSONBodyEnabledLoginMethods = "saml")// Valid indicates whether the value is a known member of the UpdateAdminConfigJSONBodyEnabledLoginMethods enum.func (e UpdateAdminConfigJSONBodyEnabledLoginMethods) Valid() bool {switch e {- case Email:+ case UpdateAdminConfigJSONBodyEnabledLoginMethodsEmail:return true- case Github:+ case UpdateAdminConfigJSONBodyEnabledLoginMethodsGithub:return true- case Gitlab:+ case UpdateAdminConfigJSONBodyEnabledLoginMethodsGitlab:return true- case Google:+ case UpdateAdminConfigJSONBodyEnabledLoginMethodsGoogle:return true- case Ldap:+ case UpdateAdminConfigJSONBodyEnabledLoginMethodsLdap:return true- case Oidc:+ case UpdateAdminConfigJSONBodyEnabledLoginMethodsOidc:return true- case Saml:+ case UpdateAdminConfigJSONBodyEnabledLoginMethodsSaml:return truedefault:return false@@ -411,3976 +411,10157 @@ func (e RefreshAuthToken500JSONResponseBodyStatusCode) Valid() bool {}}-// Defines values for GetOrganizationPlanParamsRefreshCache.+// Defines values for AttachUniversalAuth400JSONResponseBodyStatusCode.const (- False GetOrganizationPlanParamsRefreshCache = "false"- True GetOrganizationPlanParamsRefreshCache = "true"+ AttachUniversalAuth400JSONResponseBodyStatusCodeN400 AttachUniversalAuth400JSONResponseBodyStatusCode = 400)-// Valid indicates whether the value is a known member of the GetOrganizationPlanParamsRefreshCache enum.-func (e GetOrganizationPlanParamsRefreshCache) Valid() bool {+// Valid indicates whether the value is a known member of the AttachUniversalAuth400JSONResponseBodyStatusCode enum.+func (e AttachUniversalAuth400JSONResponseBodyStatusCode) Valid() bool {switch e {- case False:- return true- case True:+ case AttachUniversalAuth400JSONResponseBodyStatusCodeN400:return truedefault:return false}}-// Defines values for GetOrganizationPlan400JSONResponseBodyStatusCode.+// Defines values for AttachUniversalAuth401JSONResponseBodyStatusCode.const (- GetOrganizationPlan400JSONResponseBodyStatusCodeN400 GetOrganizationPlan400JSONResponseBodyStatusCode = 400+ AttachUniversalAuth401JSONResponseBodyStatusCodeN401 AttachUniversalAuth401JSONResponseBodyStatusCode = 401)-// Valid indicates whether the value is a known member of the GetOrganizationPlan400JSONResponseBodyStatusCode enum.-func (e GetOrganizationPlan400JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the AttachUniversalAuth401JSONResponseBodyStatusCode enum.+func (e AttachUniversalAuth401JSONResponseBodyStatusCode) Valid() bool {switch e {- case GetOrganizationPlan400JSONResponseBodyStatusCodeN400:+ case AttachUniversalAuth401JSONResponseBodyStatusCodeN401:return truedefault:return false}}-// Defines values for GetOrganizationPlan401JSONResponseBodyStatusCode.+// Defines values for AttachUniversalAuth403JSONResponseBodyStatusCode.const (- GetOrganizationPlan401JSONResponseBodyStatusCodeN401 GetOrganizationPlan401JSONResponseBodyStatusCode = 401+ AttachUniversalAuth403JSONResponseBodyStatusCodeN403 AttachUniversalAuth403JSONResponseBodyStatusCode = 403)-// Valid indicates whether the value is a known member of the GetOrganizationPlan401JSONResponseBodyStatusCode enum.-func (e GetOrganizationPlan401JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the AttachUniversalAuth403JSONResponseBodyStatusCode enum.+func (e AttachUniversalAuth403JSONResponseBodyStatusCode) Valid() bool {switch e {- case GetOrganizationPlan401JSONResponseBodyStatusCodeN401:+ case AttachUniversalAuth403JSONResponseBodyStatusCodeN403:return truedefault:return false}}-// Defines values for GetOrganizationPlan403JSONResponseBodyStatusCode.+// Defines values for AttachUniversalAuth404JSONResponseBodyStatusCode.const (- GetOrganizationPlan403JSONResponseBodyStatusCodeN403 GetOrganizationPlan403JSONResponseBodyStatusCode = 403+ AttachUniversalAuth404JSONResponseBodyStatusCodeN404 AttachUniversalAuth404JSONResponseBodyStatusCode = 404)-// Valid indicates whether the value is a known member of the GetOrganizationPlan403JSONResponseBodyStatusCode enum.-func (e GetOrganizationPlan403JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the AttachUniversalAuth404JSONResponseBodyStatusCode enum.+func (e AttachUniversalAuth404JSONResponseBodyStatusCode) Valid() bool {switch e {- case GetOrganizationPlan403JSONResponseBodyStatusCodeN403:+ case AttachUniversalAuth404JSONResponseBodyStatusCodeN404:return truedefault:return false}}-// Defines values for GetOrganizationPlan404JSONResponseBodyStatusCode.+// Defines values for AttachUniversalAuth422JSONResponseBodyStatusCode.const (- GetOrganizationPlan404JSONResponseBodyStatusCodeN404 GetOrganizationPlan404JSONResponseBodyStatusCode = 404+ AttachUniversalAuth422JSONResponseBodyStatusCodeN422 AttachUniversalAuth422JSONResponseBodyStatusCode = 422)-// Valid indicates whether the value is a known member of the GetOrganizationPlan404JSONResponseBodyStatusCode enum.-func (e GetOrganizationPlan404JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the AttachUniversalAuth422JSONResponseBodyStatusCode enum.+func (e AttachUniversalAuth422JSONResponseBodyStatusCode) Valid() bool {switch e {- case GetOrganizationPlan404JSONResponseBodyStatusCodeN404:+ case AttachUniversalAuth422JSONResponseBodyStatusCodeN422:return truedefault:return false}}-// Defines values for GetOrganizationPlan422JSONResponseBodyStatusCode.+// Defines values for AttachUniversalAuth500JSONResponseBodyStatusCode.const (- GetOrganizationPlan422JSONResponseBodyStatusCodeN422 GetOrganizationPlan422JSONResponseBodyStatusCode = 422+ AttachUniversalAuth500JSONResponseBodyStatusCodeN500 AttachUniversalAuth500JSONResponseBodyStatusCode = 500)-// Valid indicates whether the value is a known member of the GetOrganizationPlan422JSONResponseBodyStatusCode enum.-func (e GetOrganizationPlan422JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the AttachUniversalAuth500JSONResponseBodyStatusCode enum.+func (e AttachUniversalAuth500JSONResponseBodyStatusCode) Valid() bool {switch e {- case GetOrganizationPlan422JSONResponseBodyStatusCodeN422:+ case AttachUniversalAuth500JSONResponseBodyStatusCodeN500:return truedefault:return false}}-// Defines values for GetOrganizationPlan500JSONResponseBodyStatusCode.+// Defines values for CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode.const (- GetOrganizationPlan500JSONResponseBodyStatusCodeN500 GetOrganizationPlan500JSONResponseBodyStatusCode = 500+ CreateUniversalAuthClientSecret400JSONResponseBodyStatusCodeN400 CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode = 400)-// Valid indicates whether the value is a known member of the GetOrganizationPlan500JSONResponseBodyStatusCode enum.-func (e GetOrganizationPlan500JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode enum.+func (e CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode) Valid() bool {switch e {- case GetOrganizationPlan500JSONResponseBodyStatusCodeN500:+ case CreateUniversalAuthClientSecret400JSONResponseBodyStatusCodeN400:return truedefault:return false}}-// Defines values for CreateProjectJSONBodyType.+// Defines values for CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode.const (- AgentVault CreateProjectJSONBodyType = "agent-vault"- CertManager CreateProjectJSONBodyType = "cert-manager"- Kms CreateProjectJSONBodyType = "kms"- Pam CreateProjectJSONBodyType = "pam"- SecretManager CreateProjectJSONBodyType = "secret-manager"- SecretScanning CreateProjectJSONBodyType = "secret-scanning"+ CreateUniversalAuthClientSecret401JSONResponseBodyStatusCodeN401 CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode = 401)-// Valid indicates whether the value is a known member of the CreateProjectJSONBodyType enum.-func (e CreateProjectJSONBodyType) Valid() bool {+// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode enum.+func (e CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode) Valid() bool {switch e {- case AgentVault:- return true- case CertManager:- return true- case Kms:- return true- case Pam:- return true- case SecretManager:- return true- case SecretScanning:+ case CreateUniversalAuthClientSecret401JSONResponseBodyStatusCodeN401:return truedefault:return false}}-// Defines values for CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type.+// Defines values for CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode.const (- User CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type = "user"+ CreateUniversalAuthClientSecret403JSONResponseBodyStatusCodeN403 CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode = 403)-// Valid indicates whether the value is a known member of the CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type enum.-func (e CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type) Valid() bool {+// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode enum.+func (e CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode) Valid() bool {switch e {- case User:+ case CreateUniversalAuthClientSecret403JSONResponseBodyStatusCodeN403:return truedefault:return false}}-// Defines values for CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type.+// Defines values for CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode.const (- Identity CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type = "identity"+ CreateUniversalAuthClientSecret404JSONResponseBodyStatusCodeN404 CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode = 404)-// Valid indicates whether the value is a known member of the CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type enum.-func (e CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type) Valid() bool {+// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode enum.+func (e CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode) Valid() bool {switch e {- case Identity:+ case CreateUniversalAuthClientSecret404JSONResponseBodyStatusCodeN404:return truedefault:return false}}-// Defines values for CreateProject400JSONResponseBodyStatusCode.+// Defines values for CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode.const (- CreateProject400JSONResponseBodyStatusCodeN400 CreateProject400JSONResponseBodyStatusCode = 400+ CreateUniversalAuthClientSecret422JSONResponseBodyStatusCodeN422 CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode = 422)-// Valid indicates whether the value is a known member of the CreateProject400JSONResponseBodyStatusCode enum.-func (e CreateProject400JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode enum.+func (e CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode) Valid() bool {switch e {- case CreateProject400JSONResponseBodyStatusCodeN400:+ case CreateUniversalAuthClientSecret422JSONResponseBodyStatusCodeN422:return truedefault:return false}}-// Defines values for CreateProject401JSONResponseBodyStatusCode.+// Defines values for CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode.const (- CreateProject401JSONResponseBodyStatusCodeN401 CreateProject401JSONResponseBodyStatusCode = 401+ CreateUniversalAuthClientSecret500JSONResponseBodyStatusCodeN500 CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode = 500)-// Valid indicates whether the value is a known member of the CreateProject401JSONResponseBodyStatusCode enum.-func (e CreateProject401JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode enum.+func (e CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode) Valid() bool {switch e {- case CreateProject401JSONResponseBodyStatusCodeN401:+ case CreateUniversalAuthClientSecret500JSONResponseBodyStatusCodeN500:return truedefault:return false}}-// Defines values for CreateProject403JSONResponseBodyStatusCode.+// Defines values for LoginWithUniversalAuth200JSONResponseBodyTokenType.const (- CreateProject403JSONResponseBodyStatusCodeN403 CreateProject403JSONResponseBodyStatusCode = 403+ Bearer LoginWithUniversalAuth200JSONResponseBodyTokenType = "Bearer")-// Valid indicates whether the value is a known member of the CreateProject403JSONResponseBodyStatusCode enum.-func (e CreateProject403JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth200JSONResponseBodyTokenType enum.+func (e LoginWithUniversalAuth200JSONResponseBodyTokenType) Valid() bool {switch e {- case CreateProject403JSONResponseBodyStatusCodeN403:+ case Bearer:return truedefault:return false}}-// Defines values for CreateProject404JSONResponseBodyStatusCode.+// Defines values for LoginWithUniversalAuth400JSONResponseBodyStatusCode.const (- CreateProject404JSONResponseBodyStatusCodeN404 CreateProject404JSONResponseBodyStatusCode = 404+ LoginWithUniversalAuth400JSONResponseBodyStatusCodeN400 LoginWithUniversalAuth400JSONResponseBodyStatusCode = 400)-// Valid indicates whether the value is a known member of the CreateProject404JSONResponseBodyStatusCode enum.-func (e CreateProject404JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth400JSONResponseBodyStatusCode enum.+func (e LoginWithUniversalAuth400JSONResponseBodyStatusCode) Valid() bool {switch e {- case CreateProject404JSONResponseBodyStatusCodeN404:+ case LoginWithUniversalAuth400JSONResponseBodyStatusCodeN400:return truedefault:return false}}-// Defines values for CreateProject422JSONResponseBodyStatusCode.+// Defines values for LoginWithUniversalAuth401JSONResponseBodyStatusCode.const (- CreateProject422JSONResponseBodyStatusCodeN422 CreateProject422JSONResponseBodyStatusCode = 422+ LoginWithUniversalAuth401JSONResponseBodyStatusCodeN401 LoginWithUniversalAuth401JSONResponseBodyStatusCode = 401)-// Valid indicates whether the value is a known member of the CreateProject422JSONResponseBodyStatusCode enum.-func (e CreateProject422JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth401JSONResponseBodyStatusCode enum.+func (e LoginWithUniversalAuth401JSONResponseBodyStatusCode) Valid() bool {switch e {- case CreateProject422JSONResponseBodyStatusCodeN422:+ case LoginWithUniversalAuth401JSONResponseBodyStatusCodeN401:return truedefault:return false}}-// Defines values for CreateProject500JSONResponseBodyStatusCode.+// Defines values for LoginWithUniversalAuth403JSONResponseBodyStatusCode.const (- CreateProject500JSONResponseBodyStatusCodeN500 CreateProject500JSONResponseBodyStatusCode = 500+ LoginWithUniversalAuth403JSONResponseBodyStatusCodeN403 LoginWithUniversalAuth403JSONResponseBodyStatusCode = 403)-// Valid indicates whether the value is a known member of the CreateProject500JSONResponseBodyStatusCode enum.-func (e CreateProject500JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth403JSONResponseBodyStatusCode enum.+func (e LoginWithUniversalAuth403JSONResponseBodyStatusCode) Valid() bool {switch e {- case CreateProject500JSONResponseBodyStatusCodeN500:+ case LoginWithUniversalAuth403JSONResponseBodyStatusCodeN403:return truedefault:return false}}-// Defines values for CreateOrganization400JSONResponseBodyStatusCode.+// Defines values for LoginWithUniversalAuth404JSONResponseBodyStatusCode.const (- CreateOrganization400JSONResponseBodyStatusCodeN400 CreateOrganization400JSONResponseBodyStatusCode = 400+ LoginWithUniversalAuth404JSONResponseBodyStatusCodeN404 LoginWithUniversalAuth404JSONResponseBodyStatusCode = 404)-// Valid indicates whether the value is a known member of the CreateOrganization400JSONResponseBodyStatusCode enum.-func (e CreateOrganization400JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth404JSONResponseBodyStatusCode enum.+func (e LoginWithUniversalAuth404JSONResponseBodyStatusCode) Valid() bool {switch e {- case CreateOrganization400JSONResponseBodyStatusCodeN400:+ case LoginWithUniversalAuth404JSONResponseBodyStatusCodeN404:return truedefault:return false}}-// Defines values for CreateOrganization401JSONResponseBodyStatusCode.+// Defines values for LoginWithUniversalAuth422JSONResponseBodyStatusCode.const (- CreateOrganization401JSONResponseBodyStatusCodeN401 CreateOrganization401JSONResponseBodyStatusCode = 401+ LoginWithUniversalAuth422JSONResponseBodyStatusCodeN422 LoginWithUniversalAuth422JSONResponseBodyStatusCode = 422)-// Valid indicates whether the value is a known member of the CreateOrganization401JSONResponseBodyStatusCode enum.-func (e CreateOrganization401JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth422JSONResponseBodyStatusCode enum.+func (e LoginWithUniversalAuth422JSONResponseBodyStatusCode) Valid() bool {switch e {- case CreateOrganization401JSONResponseBodyStatusCodeN401:+ case LoginWithUniversalAuth422JSONResponseBodyStatusCodeN422:return truedefault:return false}}-// Defines values for CreateOrganization403JSONResponseBodyStatusCode.+// Defines values for LoginWithUniversalAuth500JSONResponseBodyStatusCode.const (- CreateOrganization403JSONResponseBodyStatusCodeN403 CreateOrganization403JSONResponseBodyStatusCode = 403+ LoginWithUniversalAuth500JSONResponseBodyStatusCodeN500 LoginWithUniversalAuth500JSONResponseBodyStatusCode = 500)-// Valid indicates whether the value is a known member of the CreateOrganization403JSONResponseBodyStatusCode enum.-func (e CreateOrganization403JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth500JSONResponseBodyStatusCode enum.+func (e LoginWithUniversalAuth500JSONResponseBodyStatusCode) Valid() bool {switch e {- case CreateOrganization403JSONResponseBodyStatusCodeN403:+ case LoginWithUniversalAuth500JSONResponseBodyStatusCodeN500:return truedefault:return false}}-// Defines values for CreateOrganization404JSONResponseBodyStatusCode.+// Defines values for CreateMachineIdentity400JSONResponseBodyStatusCode.const (- CreateOrganization404JSONResponseBodyStatusCodeN404 CreateOrganization404JSONResponseBodyStatusCode = 404+ CreateMachineIdentity400JSONResponseBodyStatusCodeN400 CreateMachineIdentity400JSONResponseBodyStatusCode = 400)-// Valid indicates whether the value is a known member of the CreateOrganization404JSONResponseBodyStatusCode enum.-func (e CreateOrganization404JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the CreateMachineIdentity400JSONResponseBodyStatusCode enum.+func (e CreateMachineIdentity400JSONResponseBodyStatusCode) Valid() bool {switch e {- case CreateOrganization404JSONResponseBodyStatusCodeN404:+ case CreateMachineIdentity400JSONResponseBodyStatusCodeN400:return truedefault:return false}}-// Defines values for CreateOrganization422JSONResponseBodyStatusCode.+// Defines values for CreateMachineIdentity401JSONResponseBodyStatusCode.const (- CreateOrganization422JSONResponseBodyStatusCodeN422 CreateOrganization422JSONResponseBodyStatusCode = 422+ CreateMachineIdentity401JSONResponseBodyStatusCodeN401 CreateMachineIdentity401JSONResponseBodyStatusCode = 401)-// Valid indicates whether the value is a known member of the CreateOrganization422JSONResponseBodyStatusCode enum.-func (e CreateOrganization422JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the CreateMachineIdentity401JSONResponseBodyStatusCode enum.+func (e CreateMachineIdentity401JSONResponseBodyStatusCode) Valid() bool {switch e {- case CreateOrganization422JSONResponseBodyStatusCodeN422:+ case CreateMachineIdentity401JSONResponseBodyStatusCodeN401:return truedefault:return false}}-// Defines values for CreateOrganization500JSONResponseBodyStatusCode.+// Defines values for CreateMachineIdentity403JSONResponseBodyStatusCode.const (- CreateOrganization500JSONResponseBodyStatusCodeN500 CreateOrganization500JSONResponseBodyStatusCode = 500+ CreateMachineIdentity403JSONResponseBodyStatusCodeN403 CreateMachineIdentity403JSONResponseBodyStatusCode = 403)-// Valid indicates whether the value is a known member of the CreateOrganization500JSONResponseBodyStatusCode enum.-func (e CreateOrganization500JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the CreateMachineIdentity403JSONResponseBodyStatusCode enum.+func (e CreateMachineIdentity403JSONResponseBodyStatusCode) Valid() bool {switch e {- case CreateOrganization500JSONResponseBodyStatusCodeN500:+ case CreateMachineIdentity403JSONResponseBodyStatusCodeN403:return truedefault:return false}}-// Defines values for DeleteOrganization400JSONResponseBodyStatusCode.+// Defines values for CreateMachineIdentity404JSONResponseBodyStatusCode.const (- DeleteOrganization400JSONResponseBodyStatusCodeN400 DeleteOrganization400JSONResponseBodyStatusCode = 400+ CreateMachineIdentity404JSONResponseBodyStatusCodeN404 CreateMachineIdentity404JSONResponseBodyStatusCode = 404)-// Valid indicates whether the value is a known member of the DeleteOrganization400JSONResponseBodyStatusCode enum.-func (e DeleteOrganization400JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the CreateMachineIdentity404JSONResponseBodyStatusCode enum.+func (e CreateMachineIdentity404JSONResponseBodyStatusCode) Valid() bool {switch e {- case DeleteOrganization400JSONResponseBodyStatusCodeN400:+ case CreateMachineIdentity404JSONResponseBodyStatusCodeN404:return truedefault:return false}}-// Defines values for DeleteOrganization401JSONResponseBodyStatusCode.+// Defines values for CreateMachineIdentity422JSONResponseBodyStatusCode.const (- DeleteOrganization401JSONResponseBodyStatusCodeN401 DeleteOrganization401JSONResponseBodyStatusCode = 401+ CreateMachineIdentity422JSONResponseBodyStatusCodeN422 CreateMachineIdentity422JSONResponseBodyStatusCode = 422)-// Valid indicates whether the value is a known member of the DeleteOrganization401JSONResponseBodyStatusCode enum.-func (e DeleteOrganization401JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the CreateMachineIdentity422JSONResponseBodyStatusCode enum.+func (e CreateMachineIdentity422JSONResponseBodyStatusCode) Valid() bool {switch e {- case DeleteOrganization401JSONResponseBodyStatusCodeN401:+ case CreateMachineIdentity422JSONResponseBodyStatusCodeN422:return truedefault:return false}}-// Defines values for DeleteOrganization403JSONResponseBodyStatusCode.+// Defines values for CreateMachineIdentity500JSONResponseBodyStatusCode.const (- DeleteOrganization403JSONResponseBodyStatusCodeN403 DeleteOrganization403JSONResponseBodyStatusCode = 403+ CreateMachineIdentity500JSONResponseBodyStatusCodeN500 CreateMachineIdentity500JSONResponseBodyStatusCode = 500)-// Valid indicates whether the value is a known member of the DeleteOrganization403JSONResponseBodyStatusCode enum.-func (e DeleteOrganization403JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the CreateMachineIdentity500JSONResponseBodyStatusCode enum.+func (e CreateMachineIdentity500JSONResponseBodyStatusCode) Valid() bool {switch e {- case DeleteOrganization403JSONResponseBodyStatusCodeN403:+ case CreateMachineIdentity500JSONResponseBodyStatusCodeN500:return truedefault:return false}}-// Defines values for DeleteOrganization404JSONResponseBodyStatusCode.+// Defines values for InviteUsersToOrganization400JSONResponseBodyStatusCode.const (- DeleteOrganization404JSONResponseBodyStatusCodeN404 DeleteOrganization404JSONResponseBodyStatusCode = 404+ InviteUsersToOrganization400JSONResponseBodyStatusCodeN400 InviteUsersToOrganization400JSONResponseBodyStatusCode = 400)-// Valid indicates whether the value is a known member of the DeleteOrganization404JSONResponseBodyStatusCode enum.-func (e DeleteOrganization404JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the InviteUsersToOrganization400JSONResponseBodyStatusCode enum.+func (e InviteUsersToOrganization400JSONResponseBodyStatusCode) Valid() bool {switch e {- case DeleteOrganization404JSONResponseBodyStatusCodeN404:+ case InviteUsersToOrganization400JSONResponseBodyStatusCodeN400:return truedefault:return false}}-// Defines values for DeleteOrganization422JSONResponseBodyStatusCode.+// Defines values for InviteUsersToOrganization401JSONResponseBodyStatusCode.const (- DeleteOrganization422JSONResponseBodyStatusCodeN422 DeleteOrganization422JSONResponseBodyStatusCode = 422+ InviteUsersToOrganization401JSONResponseBodyStatusCodeN401 InviteUsersToOrganization401JSONResponseBodyStatusCode = 401)-// Valid indicates whether the value is a known member of the DeleteOrganization422JSONResponseBodyStatusCode enum.-func (e DeleteOrganization422JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the InviteUsersToOrganization401JSONResponseBodyStatusCode enum.+func (e InviteUsersToOrganization401JSONResponseBodyStatusCode) Valid() bool {switch e {- case DeleteOrganization422JSONResponseBodyStatusCodeN422:+ case InviteUsersToOrganization401JSONResponseBodyStatusCodeN401:return truedefault:return false}}-// Defines values for DeleteOrganization500JSONResponseBodyStatusCode.+// Defines values for InviteUsersToOrganization403JSONResponseBodyStatusCode.const (- DeleteOrganization500JSONResponseBodyStatusCodeN500 DeleteOrganization500JSONResponseBodyStatusCode = 500+ InviteUsersToOrganization403JSONResponseBodyStatusCodeN403 InviteUsersToOrganization403JSONResponseBodyStatusCode = 403)-// Valid indicates whether the value is a known member of the DeleteOrganization500JSONResponseBodyStatusCode enum.-func (e DeleteOrganization500JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the InviteUsersToOrganization403JSONResponseBodyStatusCode enum.+func (e InviteUsersToOrganization403JSONResponseBodyStatusCode) Valid() bool {switch e {- case DeleteOrganization500JSONResponseBodyStatusCodeN500:+ case InviteUsersToOrganization403JSONResponseBodyStatusCodeN403:return truedefault:return false}}-// Defines values for LoginV3400JSONResponseBodyStatusCode.+// Defines values for InviteUsersToOrganization404JSONResponseBodyStatusCode.const (- LoginV3400JSONResponseBodyStatusCodeN400 LoginV3400JSONResponseBodyStatusCode = 400+ InviteUsersToOrganization404JSONResponseBodyStatusCodeN404 InviteUsersToOrganization404JSONResponseBodyStatusCode = 404)-// Valid indicates whether the value is a known member of the LoginV3400JSONResponseBodyStatusCode enum.-func (e LoginV3400JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the InviteUsersToOrganization404JSONResponseBodyStatusCode enum.+func (e InviteUsersToOrganization404JSONResponseBodyStatusCode) Valid() bool {switch e {- case LoginV3400JSONResponseBodyStatusCodeN400:+ case InviteUsersToOrganization404JSONResponseBodyStatusCodeN404:return truedefault:return false}}-// Defines values for LoginV3401JSONResponseBodyStatusCode.+// Defines values for InviteUsersToOrganization422JSONResponseBodyStatusCode.const (- LoginV3401JSONResponseBodyStatusCodeN401 LoginV3401JSONResponseBodyStatusCode = 401+ InviteUsersToOrganization422JSONResponseBodyStatusCodeN422 InviteUsersToOrganization422JSONResponseBodyStatusCode = 422)-// Valid indicates whether the value is a known member of the LoginV3401JSONResponseBodyStatusCode enum.-func (e LoginV3401JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the InviteUsersToOrganization422JSONResponseBodyStatusCode enum.+func (e InviteUsersToOrganization422JSONResponseBodyStatusCode) Valid() bool {switch e {- case LoginV3401JSONResponseBodyStatusCodeN401:+ case InviteUsersToOrganization422JSONResponseBodyStatusCodeN422:return truedefault:return false}}-// Defines values for LoginV3403JSONResponseBodyStatusCode.+// Defines values for InviteUsersToOrganization500JSONResponseBodyStatusCode.const (- LoginV3403JSONResponseBodyStatusCodeN403 LoginV3403JSONResponseBodyStatusCode = 403+ InviteUsersToOrganization500JSONResponseBodyStatusCodeN500 InviteUsersToOrganization500JSONResponseBodyStatusCode = 500)-// Valid indicates whether the value is a known member of the LoginV3403JSONResponseBodyStatusCode enum.-func (e LoginV3403JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the InviteUsersToOrganization500JSONResponseBodyStatusCode enum.+func (e InviteUsersToOrganization500JSONResponseBodyStatusCode) Valid() bool {switch e {- case LoginV3403JSONResponseBodyStatusCodeN403:+ case InviteUsersToOrganization500JSONResponseBodyStatusCodeN500:return truedefault:return false}}-// Defines values for LoginV3404JSONResponseBodyStatusCode.+// Defines values for VerifyUserToOrganization400JSONResponseBodyStatusCode.const (- LoginV3404JSONResponseBodyStatusCodeN404 LoginV3404JSONResponseBodyStatusCode = 404+ VerifyUserToOrganization400JSONResponseBodyStatusCodeN400 VerifyUserToOrganization400JSONResponseBodyStatusCode = 400)-// Valid indicates whether the value is a known member of the LoginV3404JSONResponseBodyStatusCode enum.-func (e LoginV3404JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the VerifyUserToOrganization400JSONResponseBodyStatusCode enum.+func (e VerifyUserToOrganization400JSONResponseBodyStatusCode) Valid() bool {switch e {- case LoginV3404JSONResponseBodyStatusCodeN404:+ case VerifyUserToOrganization400JSONResponseBodyStatusCodeN400:return truedefault:return false}}-// Defines values for LoginV3422JSONResponseBodyStatusCode.+// Defines values for VerifyUserToOrganization401JSONResponseBodyStatusCode.const (- LoginV3422JSONResponseBodyStatusCodeN422 LoginV3422JSONResponseBodyStatusCode = 422+ VerifyUserToOrganization401JSONResponseBodyStatusCodeN401 VerifyUserToOrganization401JSONResponseBodyStatusCode = 401)-// Valid indicates whether the value is a known member of the LoginV3422JSONResponseBodyStatusCode enum.-func (e LoginV3422JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the VerifyUserToOrganization401JSONResponseBodyStatusCode enum.+func (e VerifyUserToOrganization401JSONResponseBodyStatusCode) Valid() bool {switch e {- case LoginV3422JSONResponseBodyStatusCodeN422:+ case VerifyUserToOrganization401JSONResponseBodyStatusCodeN401:return truedefault:return false}}-// Defines values for LoginV3500JSONResponseBodyStatusCode.+// Defines values for VerifyUserToOrganization403JSONResponseBodyStatusCode.const (- LoginV3500JSONResponseBodyStatusCodeN500 LoginV3500JSONResponseBodyStatusCode = 500+ VerifyUserToOrganization403JSONResponseBodyStatusCodeN403 VerifyUserToOrganization403JSONResponseBodyStatusCode = 403)-// Valid indicates whether the value is a known member of the LoginV3500JSONResponseBodyStatusCode enum.-func (e LoginV3500JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the VerifyUserToOrganization403JSONResponseBodyStatusCode enum.+func (e VerifyUserToOrganization403JSONResponseBodyStatusCode) Valid() bool {switch e {- case LoginV3500JSONResponseBodyStatusCodeN500:+ case VerifyUserToOrganization403JSONResponseBodyStatusCodeN403:return truedefault:return false}}-// Defines values for SelectOrganizationV3JSONBodyUserAgent.+// Defines values for VerifyUserToOrganization404JSONResponseBodyStatusCode.const (- Cli SelectOrganizationV3JSONBodyUserAgent = "cli"+ VerifyUserToOrganization404JSONResponseBodyStatusCodeN404 VerifyUserToOrganization404JSONResponseBodyStatusCode = 404)-// Valid indicates whether the value is a known member of the SelectOrganizationV3JSONBodyUserAgent enum.-func (e SelectOrganizationV3JSONBodyUserAgent) Valid() bool {+// Valid indicates whether the value is a known member of the VerifyUserToOrganization404JSONResponseBodyStatusCode enum.+func (e VerifyUserToOrganization404JSONResponseBodyStatusCode) Valid() bool {switch e {- case Cli:+ case VerifyUserToOrganization404JSONResponseBodyStatusCodeN404:return truedefault:return false}}-// Defines values for SelectOrganizationV3400JSONResponseBodyStatusCode.+// Defines values for VerifyUserToOrganization422JSONResponseBodyStatusCode.const (- SelectOrganizationV3400JSONResponseBodyStatusCodeN400 SelectOrganizationV3400JSONResponseBodyStatusCode = 400+ VerifyUserToOrganization422JSONResponseBodyStatusCodeN422 VerifyUserToOrganization422JSONResponseBodyStatusCode = 422)-// Valid indicates whether the value is a known member of the SelectOrganizationV3400JSONResponseBodyStatusCode enum.-func (e SelectOrganizationV3400JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the VerifyUserToOrganization422JSONResponseBodyStatusCode enum.+func (e VerifyUserToOrganization422JSONResponseBodyStatusCode) Valid() bool {switch e {- case SelectOrganizationV3400JSONResponseBodyStatusCodeN400:+ case VerifyUserToOrganization422JSONResponseBodyStatusCodeN422:return truedefault:return false}}-// Defines values for SelectOrganizationV3401JSONResponseBodyStatusCode.+// Defines values for VerifyUserToOrganization500JSONResponseBodyStatusCode.const (- SelectOrganizationV3401JSONResponseBodyStatusCodeN401 SelectOrganizationV3401JSONResponseBodyStatusCode = 401+ VerifyUserToOrganization500JSONResponseBodyStatusCodeN500 VerifyUserToOrganization500JSONResponseBodyStatusCode = 500)-// Valid indicates whether the value is a known member of the SelectOrganizationV3401JSONResponseBodyStatusCode enum.-func (e SelectOrganizationV3401JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the VerifyUserToOrganization500JSONResponseBodyStatusCode enum.+func (e VerifyUserToOrganization500JSONResponseBodyStatusCode) Valid() bool {switch e {- case SelectOrganizationV3401JSONResponseBodyStatusCodeN401:+ case VerifyUserToOrganization500JSONResponseBodyStatusCodeN500:return truedefault:return false}}-// Defines values for SelectOrganizationV3403JSONResponseBodyStatusCode.+// Defines values for GetOrganizationPlanParamsRefreshCache.const (- SelectOrganizationV3403JSONResponseBodyStatusCodeN403 SelectOrganizationV3403JSONResponseBodyStatusCode = 403+ GetOrganizationPlanParamsRefreshCacheFalse GetOrganizationPlanParamsRefreshCache = "false"+ GetOrganizationPlanParamsRefreshCacheTrue GetOrganizationPlanParamsRefreshCache = "true")-// Valid indicates whether the value is a known member of the SelectOrganizationV3403JSONResponseBodyStatusCode enum.-func (e SelectOrganizationV3403JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the GetOrganizationPlanParamsRefreshCache enum.+func (e GetOrganizationPlanParamsRefreshCache) Valid() bool {switch e {- case SelectOrganizationV3403JSONResponseBodyStatusCodeN403:+ case GetOrganizationPlanParamsRefreshCacheFalse:+ return true+ case GetOrganizationPlanParamsRefreshCacheTrue:return truedefault:return false}}-// Defines values for SelectOrganizationV3404JSONResponseBodyStatusCode.+// Defines values for GetOrganizationPlan400JSONResponseBodyStatusCode.const (- SelectOrganizationV3404JSONResponseBodyStatusCodeN404 SelectOrganizationV3404JSONResponseBodyStatusCode = 404+ GetOrganizationPlan400JSONResponseBodyStatusCodeN400 GetOrganizationPlan400JSONResponseBodyStatusCode = 400)-// Valid indicates whether the value is a known member of the SelectOrganizationV3404JSONResponseBodyStatusCode enum.-func (e SelectOrganizationV3404JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the GetOrganizationPlan400JSONResponseBodyStatusCode enum.+func (e GetOrganizationPlan400JSONResponseBodyStatusCode) Valid() bool {switch e {- case SelectOrganizationV3404JSONResponseBodyStatusCodeN404:+ case GetOrganizationPlan400JSONResponseBodyStatusCodeN400:return truedefault:return false}}-// Defines values for SelectOrganizationV3422JSONResponseBodyStatusCode.+// Defines values for GetOrganizationPlan401JSONResponseBodyStatusCode.const (- SelectOrganizationV3422JSONResponseBodyStatusCodeN422 SelectOrganizationV3422JSONResponseBodyStatusCode = 422+ GetOrganizationPlan401JSONResponseBodyStatusCodeN401 GetOrganizationPlan401JSONResponseBodyStatusCode = 401)-// Valid indicates whether the value is a known member of the SelectOrganizationV3422JSONResponseBodyStatusCode enum.-func (e SelectOrganizationV3422JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the GetOrganizationPlan401JSONResponseBodyStatusCode enum.+func (e GetOrganizationPlan401JSONResponseBodyStatusCode) Valid() bool {switch e {- case SelectOrganizationV3422JSONResponseBodyStatusCodeN422:+ case GetOrganizationPlan401JSONResponseBodyStatusCodeN401:return truedefault:return false}}-// Defines values for SelectOrganizationV3500JSONResponseBodyStatusCode.+// Defines values for GetOrganizationPlan403JSONResponseBodyStatusCode.const (- SelectOrganizationV3500JSONResponseBodyStatusCodeN500 SelectOrganizationV3500JSONResponseBodyStatusCode = 500+ GetOrganizationPlan403JSONResponseBodyStatusCodeN403 GetOrganizationPlan403JSONResponseBodyStatusCode = 403)-// Valid indicates whether the value is a known member of the SelectOrganizationV3500JSONResponseBodyStatusCode enum.-func (e SelectOrganizationV3500JSONResponseBodyStatusCode) Valid() bool {+// Valid indicates whether the value is a known member of the GetOrganizationPlan403JSONResponseBodyStatusCode enum.+func (e GetOrganizationPlan403JSONResponseBodyStatusCode) Valid() bool {switch e {- case SelectOrganizationV3500JSONResponseBodyStatusCodeN500:+ case GetOrganizationPlan403JSONResponseBodyStatusCodeN403:return truedefault:return false}}-// GetServerStatus400JSONResponseBodyStatusCode defines parameters for GetServerStatus.-type GetServerStatus400JSONResponseBodyStatusCode float32+// Defines values for GetOrganizationPlan404JSONResponseBodyStatusCode.+const (+ GetOrganizationPlan404JSONResponseBodyStatusCodeN404 GetOrganizationPlan404JSONResponseBodyStatusCode = 404+)-// GetServerStatus401JSONResponseBodyStatusCode defines parameters for GetServerStatus.-type GetServerStatus401JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the GetOrganizationPlan404JSONResponseBodyStatusCode enum.+func (e GetOrganizationPlan404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrganizationPlan404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}-// GetServerStatus403JSONResponseBodyStatusCode defines parameters for GetServerStatus.-type GetServerStatus403JSONResponseBodyStatusCode float32--// GetServerStatus404JSONResponseBodyStatusCode defines parameters for GetServerStatus.-type GetServerStatus404JSONResponseBodyStatusCode float32+// Defines values for GetOrganizationPlan422JSONResponseBodyStatusCode.+const (+ GetOrganizationPlan422JSONResponseBodyStatusCodeN422 GetOrganizationPlan422JSONResponseBodyStatusCode = 422+)-// GetServerStatus422JSONResponseBodyStatusCode defines parameters for GetServerStatus.-type GetServerStatus422JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the GetOrganizationPlan422JSONResponseBodyStatusCode enum.+func (e GetOrganizationPlan422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrganizationPlan422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}-// GetServerStatus500JSONResponseBodyStatusCode defines parameters for GetServerStatus.-type GetServerStatus500JSONResponseBodyStatusCode float32+// Defines values for GetOrganizationPlan500JSONResponseBodyStatusCode.+const (+ GetOrganizationPlan500JSONResponseBodyStatusCodeN500 GetOrganizationPlan500JSONResponseBodyStatusCode = 500+)-// AdminBootstrapJSONBody defines parameters for AdminBootstrap.-type AdminBootstrapJSONBody struct {- Email openapi_types.Email `json:"email"`- Organization string `json:"organization"`- Password string `json:"password"`+// Valid indicates whether the value is a known member of the GetOrganizationPlan500JSONResponseBodyStatusCode enum.+func (e GetOrganizationPlan500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrganizationPlan500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }}-// AdminBootstrap400JSONResponseBodyStatusCode defines parameters for AdminBootstrap.-type AdminBootstrap400JSONResponseBodyStatusCode float32--// AdminBootstrap401JSONResponseBodyStatusCode defines parameters for AdminBootstrap.-type AdminBootstrap401JSONResponseBodyStatusCode float32+// Defines values for CreateProjectJSONBodyType.+const (+ AgentVault CreateProjectJSONBodyType = "agent-vault"+ CertManager CreateProjectJSONBodyType = "cert-manager"+ Kms CreateProjectJSONBodyType = "kms"+ Pam CreateProjectJSONBodyType = "pam"+ SecretManager CreateProjectJSONBodyType = "secret-manager"+ SecretScanning CreateProjectJSONBodyType = "secret-scanning"+)-// AdminBootstrap403JSONResponseBodyStatusCode defines parameters for AdminBootstrap.-type AdminBootstrap403JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProjectJSONBodyType enum.+func (e CreateProjectJSONBodyType) Valid() bool {+ switch e {+ case AgentVault:+ return true+ case CertManager:+ return true+ case Kms:+ return true+ case Pam:+ return true+ case SecretManager:+ return true+ case SecretScanning:+ return true+ default:+ return false+ }+}-// AdminBootstrap404JSONResponseBodyStatusCode defines parameters for AdminBootstrap.-type AdminBootstrap404JSONResponseBodyStatusCode float32+// Defines values for CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type.+const (+ User CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type = "user"+)-// AdminBootstrap422JSONResponseBodyStatusCode defines parameters for AdminBootstrap.-type AdminBootstrap422JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type enum.+func (e CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type) Valid() bool {+ switch e {+ case User:+ return true+ default:+ return false+ }+}-// AdminBootstrap500JSONResponseBodyStatusCode defines parameters for AdminBootstrap.-type AdminBootstrap500JSONResponseBodyStatusCode float32+// Defines values for CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type.+const (+ Identity CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type = "identity"+)-// UpdateAdminConfigJSONBody defines parameters for UpdateAdminConfig.-type UpdateAdminConfigJSONBody struct {- AllowSignUp *bool `json:"allowSignUp,omitempty"`- AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`- AuthConsentContent *string `json:"authConsentContent,omitempty"`- DefaultAuthOrgId *string `json:"defaultAuthOrgId,omitempty"`- EnabledLoginMethods *[]UpdateAdminConfigJSONBodyEnabledLoginMethods `json:"enabledLoginMethods,omitempty"`- EnvOverrides *struct {- CLIENTGITLABLOGINURL string `json:"CLIENT_GITLAB_LOGIN_URL"`- CLIENTIDGITHUBLOGIN string `json:"CLIENT_ID_GITHUB_LOGIN"`- CLIENTIDGITLABLOGIN string `json:"CLIENT_ID_GITLAB_LOGIN"`- CLIENTIDGOOGLELOGIN string `json:"CLIENT_ID_GOOGLE_LOGIN"`- CLIENTSECRETGITHUBLOGIN string `json:"CLIENT_SECRET_GITHUB_LOGIN"`- CLIENTSECRETGITLABLOGIN string `json:"CLIENT_SECRET_GITLAB_LOGIN"`- CLIENTSECRETGOOGLELOGIN string `json:"CLIENT_SECRET_GOOGLE_LOGIN"`- DISABLEAUDITLOGSTORAGE string `json:"DISABLE_AUDIT_LOG_STORAGE"`- DISABLEPOSTGRESAUDITLOGSTORAGE string `json:"DISABLE_POSTGRES_AUDIT_LOG_STORAGE"`- DISABLEPUBLICSECRETSHARING string `json:"DISABLE_PUBLIC_SECRET_SHARING"`- INFAPPCONNECTIONAWSACCESSKEYID string `json:"INF_APP_CONNECTION_AWS_ACCESS_KEY_ID"`- INFAPPCONNECTIONAWSSECRETACCESSKEY string `json:"INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY"`- INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTID string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_ID"`- INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_SECRET"`- INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_ID"`- INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_SECRET"`- INFAPPCONNECTIONAZUREDEVOPSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_ID"`- INFAPPCONNECTIONAZUREDEVOPSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_SECRET"`- INFAPPCONNECTIONAZUREKEYVAULTCLIENTID string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_ID"`- INFAPPCONNECTIONAZUREKEYVAULTCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_SECRET"`- INFAPPCONNECTIONGCPSERVICEACCOUNTCREDENTIAL string `json:"INF_APP_CONNECTION_GCP_SERVICE_ACCOUNT_CREDENTIAL"`- INFAPPCONNECTIONGITHUBAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_ID"`- INFAPPCONNECTIONGITHUBAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_SECRET"`- INFAPPCONNECTIONGITHUBAPPHOST string `json:"INF_APP_CONNECTION_GITHUB_APP_HOST"`- INFAPPCONNECTIONGITHUBAPPID string `json:"INF_APP_CONNECTION_GITHUB_APP_ID"`- INFAPPCONNECTIONGITHUBAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_APP_PRIVATE_KEY"`- INFAPPCONNECTIONGITHUBAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_APP_SLUG"`- INFAPPCONNECTIONGITHUBOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_ID"`- INFAPPCONNECTIONGITHUBOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_SECRET"`- INFAPPCONNECTIONGITHUBRADARAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_ID"`- INFAPPCONNECTIONGITHUBRADARAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_SECRET"`- INFAPPCONNECTIONGITHUBRADARAPPID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_ID"`- INFAPPCONNECTIONGITHUBRADARAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_PRIVATE_KEY"`- INFAPPCONNECTIONGITHUBRADARAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_SLUG"`- INFAPPCONNECTIONGITHUBRADARAPPWEBHOOKSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_WEBHOOK_SECRET"`- INFAPPCONNECTIONGITLABOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_ID"`- INFAPPCONNECTIONGITLABOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_SECRET"`- INFAPPCONNECTIONHEROKUOAUTHCLIENTID string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_ID"`- INFAPPCONNECTIONHEROKUOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_SECRET"`- } `json:"envOverrides,omitempty"`- GitHubAppConnectionClientId *string `json:"gitHubAppConnectionClientId,omitempty"`- GitHubAppConnectionClientSecret *string `json:"gitHubAppConnectionClientSecret,omitempty"`- GitHubAppConnectionId *string `json:"gitHubAppConnectionId,omitempty"`- GitHubAppConnectionPrivateKey *string `json:"gitHubAppConnectionPrivateKey,omitempty"`- GitHubAppConnectionSlug *string `json:"gitHubAppConnectionSlug,omitempty"`- MicrosoftTeamsAppId *string `json:"microsoftTeamsAppId,omitempty"`- MicrosoftTeamsBotId *string `json:"microsoftTeamsBotId,omitempty"`- MicrosoftTeamsClientSecret *string `json:"microsoftTeamsClientSecret,omitempty"`- OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`- PageFrameContent *string `json:"pageFrameContent,omitempty"`- SlackClientId *string `json:"slackClientId,omitempty"`- SlackClientSecret *string `json:"slackClientSecret,omitempty"`- TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`+// Valid indicates whether the value is a known member of the CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type enum.+func (e CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type) Valid() bool {+ switch e {+ case Identity:+ return true+ default:+ return false+ }}-// UpdateAdminConfigJSONBodyEnabledLoginMethods defines parameters for UpdateAdminConfig.-type UpdateAdminConfigJSONBodyEnabledLoginMethods string+// Defines values for CreateProject400JSONResponseBodyStatusCode.+const (+ CreateProject400JSONResponseBodyStatusCodeN400 CreateProject400JSONResponseBodyStatusCode = 400+)-// UpdateAdminConfig400JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.-type UpdateAdminConfig400JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProject400JSONResponseBodyStatusCode enum.+func (e CreateProject400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProject400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}-// UpdateAdminConfig401JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.-type UpdateAdminConfig401JSONResponseBodyStatusCode float32+// Defines values for CreateProject401JSONResponseBodyStatusCode.+const (+ CreateProject401JSONResponseBodyStatusCodeN401 CreateProject401JSONResponseBodyStatusCode = 401+)-// UpdateAdminConfig403JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.-type UpdateAdminConfig403JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProject401JSONResponseBodyStatusCode enum.+func (e CreateProject401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProject401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}-// UpdateAdminConfig404JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.-type UpdateAdminConfig404JSONResponseBodyStatusCode float32+// Defines values for CreateProject403JSONResponseBodyStatusCode.+const (+ CreateProject403JSONResponseBodyStatusCodeN403 CreateProject403JSONResponseBodyStatusCode = 403+)-// UpdateAdminConfig422JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.-type UpdateAdminConfig422JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProject403JSONResponseBodyStatusCode enum.+func (e CreateProject403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProject403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}-// UpdateAdminConfig500JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.-type UpdateAdminConfig500JSONResponseBodyStatusCode float32+// Defines values for CreateProject404JSONResponseBodyStatusCode.+const (+ CreateProject404JSONResponseBodyStatusCodeN404 CreateProject404JSONResponseBodyStatusCode = 404+)-// RefreshAuthToken400JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.-type RefreshAuthToken400JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProject404JSONResponseBodyStatusCode enum.+func (e CreateProject404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProject404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}-// RefreshAuthToken401JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.-type RefreshAuthToken401JSONResponseBodyStatusCode float32+// Defines values for CreateProject422JSONResponseBodyStatusCode.+const (+ CreateProject422JSONResponseBodyStatusCodeN422 CreateProject422JSONResponseBodyStatusCode = 422+)-// RefreshAuthToken403JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.-type RefreshAuthToken403JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProject422JSONResponseBodyStatusCode enum.+func (e CreateProject422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProject422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}-// RefreshAuthToken404JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.-type RefreshAuthToken404JSONResponseBodyStatusCode float32+// Defines values for CreateProject500JSONResponseBodyStatusCode.+const (+ CreateProject500JSONResponseBodyStatusCodeN500 CreateProject500JSONResponseBodyStatusCode = 500+)-// RefreshAuthToken422JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.-type RefreshAuthToken422JSONResponseBodyStatusCode float32--// RefreshAuthToken500JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.-type RefreshAuthToken500JSONResponseBodyStatusCode float32--// GetOrganizationPlanParams defines parameters for GetOrganizationPlan.-type GetOrganizationPlanParams struct {- RefreshCache *GetOrganizationPlanParamsRefreshCache `form:"refreshCache,omitempty" json:"refreshCache,omitempty"`+// Valid indicates whether the value is a known member of the CreateProject500JSONResponseBodyStatusCode enum.+func (e CreateProject500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProject500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }}-// GetOrganizationPlanParamsRefreshCache defines parameters for GetOrganizationPlan.-type GetOrganizationPlanParamsRefreshCache string+// Defines values for ListProjectMachineIdentities400JSONResponseBodyStatusCode.+const (+ ListProjectMachineIdentities400JSONResponseBodyStatusCodeN400 ListProjectMachineIdentities400JSONResponseBodyStatusCode = 400+)-// GetOrganizationPlan400JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.-type GetOrganizationPlan400JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the ListProjectMachineIdentities400JSONResponseBodyStatusCode enum.+func (e ListProjectMachineIdentities400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListProjectMachineIdentities400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}-// GetOrganizationPlan401JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.-type GetOrganizationPlan401JSONResponseBodyStatusCode float32+// Defines values for ListProjectMachineIdentities401JSONResponseBodyStatusCode.+const (+ ListProjectMachineIdentities401JSONResponseBodyStatusCodeN401 ListProjectMachineIdentities401JSONResponseBodyStatusCode = 401+)-// GetOrganizationPlan403JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.-type GetOrganizationPlan403JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the ListProjectMachineIdentities401JSONResponseBodyStatusCode enum.+func (e ListProjectMachineIdentities401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListProjectMachineIdentities401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}-// GetOrganizationPlan404JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.-type GetOrganizationPlan404JSONResponseBodyStatusCode float32+// Defines values for ListProjectMachineIdentities403JSONResponseBodyStatusCode.+const (+ ListProjectMachineIdentities403JSONResponseBodyStatusCodeN403 ListProjectMachineIdentities403JSONResponseBodyStatusCode = 403+)-// GetOrganizationPlan422JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.-type GetOrganizationPlan422JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the ListProjectMachineIdentities403JSONResponseBodyStatusCode enum.+func (e ListProjectMachineIdentities403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListProjectMachineIdentities403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}-// GetOrganizationPlan500JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.-type GetOrganizationPlan500JSONResponseBodyStatusCode float32+// Defines values for ListProjectMachineIdentities404JSONResponseBodyStatusCode.+const (+ ListProjectMachineIdentities404JSONResponseBodyStatusCodeN404 ListProjectMachineIdentities404JSONResponseBodyStatusCode = 404+)-// CreateProjectJSONBody defines parameters for CreateProject.-type CreateProjectJSONBody struct {- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`- KmsKeyId *string `json:"kmsKeyId,omitempty"`+// Valid indicates whether the value is a known member of the ListProjectMachineIdentities404JSONResponseBodyStatusCode enum.+func (e ListProjectMachineIdentities404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListProjectMachineIdentities404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}- // ProjectDescription An optional description label for the project.- ProjectDescription *string `json:"projectDescription,omitempty"`+// Defines values for ListProjectMachineIdentities422JSONResponseBodyStatusCode.+const (+ ListProjectMachineIdentities422JSONResponseBodyStatusCodeN422 ListProjectMachineIdentities422JSONResponseBodyStatusCode = 422+)- // ProjectName The name of the project to create.- ProjectName string `json:"projectName"`- ShouldCreateDefaultEnvs *bool `json:"shouldCreateDefaultEnvs,omitempty"`+// Valid indicates whether the value is a known member of the ListProjectMachineIdentities422JSONResponseBodyStatusCode enum.+func (e ListProjectMachineIdentities422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListProjectMachineIdentities422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}- // Slug An optional slug for the project.- Slug *string `json:"slug,omitempty"`+// Defines values for ListProjectMachineIdentities500JSONResponseBodyStatusCode.+const (+ ListProjectMachineIdentities500JSONResponseBodyStatusCodeN500 ListProjectMachineIdentities500JSONResponseBodyStatusCode = 500+)- // Template The name of the project template, if specified, to apply to this project.- Template *string `json:"template,omitempty"`- Type *CreateProjectJSONBodyType `json:"type,omitempty"`+// Valid indicates whether the value is a known member of the ListProjectMachineIdentities500JSONResponseBodyStatusCode enum.+func (e ListProjectMachineIdentities500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListProjectMachineIdentities500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }}-// CreateProjectJSONBodyType defines parameters for CreateProject.-type CreateProjectJSONBodyType string+// Defines values for CreateProjectMachineIdentityJSONBodyRoles0IsTemporary.+const (+ CreateProjectMachineIdentityJSONBodyRoles0IsTemporaryFalse CreateProjectMachineIdentityJSONBodyRoles0IsTemporary = false+)-// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 defines parameters for CreateProject.-type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 struct {- Email *string `json:"email"`- FirstName *string `json:"firstName"`- Id string `json:"id"`- LastName *string `json:"lastName"`- Type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type `json:"type"`- Username *string `json:"username"`+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentityJSONBodyRoles0IsTemporary enum.+func (e CreateProjectMachineIdentityJSONBodyRoles0IsTemporary) Valid() bool {+ switch e {+ case CreateProjectMachineIdentityJSONBodyRoles0IsTemporaryFalse:+ return true+ default:+ return false+ }}-// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type defines parameters for CreateProject.-type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type string+// Defines values for CreateProjectMachineIdentityJSONBodyRoles1IsTemporary.+const (+ CreateProjectMachineIdentityJSONBodyRoles1IsTemporaryTrue CreateProjectMachineIdentityJSONBodyRoles1IsTemporary = true+)-// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 defines parameters for CreateProject.-type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 struct {- Id string `json:"id"`- Name string `json:"name"`- Type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type `json:"type"`+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentityJSONBodyRoles1IsTemporary enum.+func (e CreateProjectMachineIdentityJSONBodyRoles1IsTemporary) Valid() bool {+ switch e {+ case CreateProjectMachineIdentityJSONBodyRoles1IsTemporaryTrue:+ return true+ default:+ return false+ }}-// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type defines parameters for CreateProject.-type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type string+// Defines values for CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode.+const (+ CreateProjectMachineIdentityJSONBodyRoles1TemporaryModeRelative CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode = "relative"+)-// CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy defines parameters for CreateProject.-type CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy struct {- union json.RawMessage+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode enum.+func (e CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode) Valid() bool {+ switch e {+ case CreateProjectMachineIdentityJSONBodyRoles1TemporaryModeRelative:+ return true+ default:+ return false+ }}-// CreateProject400JSONResponseBodyStatusCode defines parameters for CreateProject.-type CreateProject400JSONResponseBodyStatusCode float32--// CreateProject401JSONResponseBodyStatusCode defines parameters for CreateProject.-type CreateProject401JSONResponseBodyStatusCode float32+// Defines values for CreateProjectMachineIdentity400JSONResponseBodyStatusCode.+const (+ CreateProjectMachineIdentity400JSONResponseBodyStatusCodeN400 CreateProjectMachineIdentity400JSONResponseBodyStatusCode = 400+)-// CreateProject403JSONResponseBodyStatusCode defines parameters for CreateProject.-type CreateProject403JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity400JSONResponseBodyStatusCode enum.+func (e CreateProjectMachineIdentity400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProjectMachineIdentity400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}-// CreateProject404JSONResponseBodyStatusCode defines parameters for CreateProject.-type CreateProject404JSONResponseBodyStatusCode float32+// Defines values for CreateProjectMachineIdentity401JSONResponseBodyStatusCode.+const (+ CreateProjectMachineIdentity401JSONResponseBodyStatusCodeN401 CreateProjectMachineIdentity401JSONResponseBodyStatusCode = 401+)-// CreateProject422JSONResponseBodyStatusCode defines parameters for CreateProject.-type CreateProject422JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity401JSONResponseBodyStatusCode enum.+func (e CreateProjectMachineIdentity401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProjectMachineIdentity401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}-// CreateProject500JSONResponseBodyStatusCode defines parameters for CreateProject.-type CreateProject500JSONResponseBodyStatusCode float32+// Defines values for CreateProjectMachineIdentity403JSONResponseBodyStatusCode.+const (+ CreateProjectMachineIdentity403JSONResponseBodyStatusCodeN403 CreateProjectMachineIdentity403JSONResponseBodyStatusCode = 403+)-// CreateOrganizationJSONBody defines parameters for CreateOrganization.-type CreateOrganizationJSONBody struct {- Name string `json:"name"`+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity403JSONResponseBodyStatusCode enum.+func (e CreateProjectMachineIdentity403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProjectMachineIdentity403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }}-// CreateOrganization400JSONResponseBodyStatusCode defines parameters for CreateOrganization.-type CreateOrganization400JSONResponseBodyStatusCode float32--// CreateOrganization401JSONResponseBodyStatusCode defines parameters for CreateOrganization.-type CreateOrganization401JSONResponseBodyStatusCode float32+// Defines values for CreateProjectMachineIdentity404JSONResponseBodyStatusCode.+const (+ CreateProjectMachineIdentity404JSONResponseBodyStatusCodeN404 CreateProjectMachineIdentity404JSONResponseBodyStatusCode = 404+)-// CreateOrganization403JSONResponseBodyStatusCode defines parameters for CreateOrganization.-type CreateOrganization403JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity404JSONResponseBodyStatusCode enum.+func (e CreateProjectMachineIdentity404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProjectMachineIdentity404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}-// CreateOrganization404JSONResponseBodyStatusCode defines parameters for CreateOrganization.-type CreateOrganization404JSONResponseBodyStatusCode float32+// Defines values for CreateProjectMachineIdentity422JSONResponseBodyStatusCode.+const (+ CreateProjectMachineIdentity422JSONResponseBodyStatusCodeN422 CreateProjectMachineIdentity422JSONResponseBodyStatusCode = 422+)-// CreateOrganization422JSONResponseBodyStatusCode defines parameters for CreateOrganization.-type CreateOrganization422JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity422JSONResponseBodyStatusCode enum.+func (e CreateProjectMachineIdentity422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProjectMachineIdentity422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}-// CreateOrganization500JSONResponseBodyStatusCode defines parameters for CreateOrganization.-type CreateOrganization500JSONResponseBodyStatusCode float32+// Defines values for CreateProjectMachineIdentity500JSONResponseBodyStatusCode.+const (+ CreateProjectMachineIdentity500JSONResponseBodyStatusCodeN500 CreateProjectMachineIdentity500JSONResponseBodyStatusCode = 500+)-// DeleteOrganization400JSONResponseBodyStatusCode defines parameters for DeleteOrganization.-type DeleteOrganization400JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity500JSONResponseBodyStatusCode enum.+func (e CreateProjectMachineIdentity500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProjectMachineIdentity500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}-// DeleteOrganization401JSONResponseBodyStatusCode defines parameters for DeleteOrganization.-type DeleteOrganization401JSONResponseBodyStatusCode float32+// Defines values for InviteProjectMembers400JSONResponseBodyStatusCode.+const (+ InviteProjectMembers400JSONResponseBodyStatusCodeN400 InviteProjectMembers400JSONResponseBodyStatusCode = 400+)-// DeleteOrganization403JSONResponseBodyStatusCode defines parameters for DeleteOrganization.-type DeleteOrganization403JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the InviteProjectMembers400JSONResponseBodyStatusCode enum.+func (e InviteProjectMembers400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case InviteProjectMembers400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}-// DeleteOrganization404JSONResponseBodyStatusCode defines parameters for DeleteOrganization.-type DeleteOrganization404JSONResponseBodyStatusCode float32+// Defines values for InviteProjectMembers401JSONResponseBodyStatusCode.+const (+ InviteProjectMembers401JSONResponseBodyStatusCodeN401 InviteProjectMembers401JSONResponseBodyStatusCode = 401+)-// DeleteOrganization422JSONResponseBodyStatusCode defines parameters for DeleteOrganization.-type DeleteOrganization422JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the InviteProjectMembers401JSONResponseBodyStatusCode enum.+func (e InviteProjectMembers401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case InviteProjectMembers401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}-// DeleteOrganization500JSONResponseBodyStatusCode defines parameters for DeleteOrganization.-type DeleteOrganization500JSONResponseBodyStatusCode float32+// Defines values for InviteProjectMembers403JSONResponseBodyStatusCode.+const (+ InviteProjectMembers403JSONResponseBodyStatusCodeN403 InviteProjectMembers403JSONResponseBodyStatusCode = 403+)-// LoginV3JSONBody defines parameters for LoginV3.-type LoginV3JSONBody struct {- CaptchaToken *string `json:"captchaToken,omitempty"`- Email string `json:"email"`- Password string `json:"password"`+// Valid indicates whether the value is a known member of the InviteProjectMembers403JSONResponseBodyStatusCode enum.+func (e InviteProjectMembers403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case InviteProjectMembers403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }}-// LoginV3400JSONResponseBodyStatusCode defines parameters for LoginV3.-type LoginV3400JSONResponseBodyStatusCode float32+// Defines values for InviteProjectMembers404JSONResponseBodyStatusCode.+const (+ InviteProjectMembers404JSONResponseBodyStatusCodeN404 InviteProjectMembers404JSONResponseBodyStatusCode = 404+)-// LoginV3401JSONResponseBodyStatusCode defines parameters for LoginV3.-type LoginV3401JSONResponseBodyStatusCode float32--// LoginV3403JSONResponseBodyStatusCode defines parameters for LoginV3.-type LoginV3403JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the InviteProjectMembers404JSONResponseBodyStatusCode enum.+func (e InviteProjectMembers404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case InviteProjectMembers404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}-// LoginV3404JSONResponseBodyStatusCode defines parameters for LoginV3.-type LoginV3404JSONResponseBodyStatusCode float32+// Defines values for InviteProjectMembers422JSONResponseBodyStatusCode.+const (+ InviteProjectMembers422JSONResponseBodyStatusCodeN422 InviteProjectMembers422JSONResponseBodyStatusCode = 422+)-// LoginV3422JSONResponseBodyStatusCode defines parameters for LoginV3.-type LoginV3422JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the InviteProjectMembers422JSONResponseBodyStatusCode enum.+func (e InviteProjectMembers422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case InviteProjectMembers422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}-// LoginV3500JSONResponseBodyStatusCode defines parameters for LoginV3.-type LoginV3500JSONResponseBodyStatusCode float32+// Defines values for InviteProjectMembers500JSONResponseBodyStatusCode.+const (+ InviteProjectMembers500JSONResponseBodyStatusCodeN500 InviteProjectMembers500JSONResponseBodyStatusCode = 500+)-// SelectOrganizationV3JSONBody defines parameters for SelectOrganizationV3.-type SelectOrganizationV3JSONBody struct {- OrganizationId string `json:"organizationId"`- UserAgent *SelectOrganizationV3JSONBodyUserAgent `json:"userAgent,omitempty"`+// Valid indicates whether the value is a known member of the InviteProjectMembers500JSONResponseBodyStatusCode enum.+func (e InviteProjectMembers500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case InviteProjectMembers500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }}-// SelectOrganizationV3JSONBodyUserAgent defines parameters for SelectOrganizationV3.-type SelectOrganizationV3JSONBodyUserAgent string+// Defines values for CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary.+const (+ CreateProjectIdentityMembershipJSONBodyRoles0IsTemporaryFalse CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary = false+)-// SelectOrganizationV3400JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.-type SelectOrganizationV3400JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary enum.+func (e CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary) Valid() bool {+ switch e {+ case CreateProjectIdentityMembershipJSONBodyRoles0IsTemporaryFalse:+ return true+ default:+ return false+ }+}-// SelectOrganizationV3401JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.-type SelectOrganizationV3401JSONResponseBodyStatusCode float32+// Defines values for CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary.+const (+ CreateProjectIdentityMembershipJSONBodyRoles1IsTemporaryTrue CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary = true+)-// SelectOrganizationV3403JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.-type SelectOrganizationV3403JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary enum.+func (e CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary) Valid() bool {+ switch e {+ case CreateProjectIdentityMembershipJSONBodyRoles1IsTemporaryTrue:+ return true+ default:+ return false+ }+}-// SelectOrganizationV3404JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.-type SelectOrganizationV3404JSONResponseBodyStatusCode float32+// Defines values for CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode.+const (+ CreateProjectIdentityMembershipJSONBodyRoles1TemporaryModeRelative CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode = "relative"+)-// SelectOrganizationV3422JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.-type SelectOrganizationV3422JSONResponseBodyStatusCode float32+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode enum.+func (e CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode) Valid() bool {+ switch e {+ case CreateProjectIdentityMembershipJSONBodyRoles1TemporaryModeRelative:+ return true+ default:+ return false+ }+}-// SelectOrganizationV3500JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.-type SelectOrganizationV3500JSONResponseBodyStatusCode float32+// Defines values for CreateProjectIdentityMembership400JSONResponseBodyStatusCode.+const (+ CreateProjectIdentityMembership400JSONResponseBodyStatusCodeN400 CreateProjectIdentityMembership400JSONResponseBodyStatusCode = 400+)-// AdminBootstrapJSONRequestBody defines body for AdminBootstrap for application/json ContentType.-type AdminBootstrapJSONRequestBody AdminBootstrapJSONBody+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership400JSONResponseBodyStatusCode enum.+func (e CreateProjectIdentityMembership400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProjectIdentityMembership400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}-// UpdateAdminConfigJSONRequestBody defines body for UpdateAdminConfig for application/json ContentType.-type UpdateAdminConfigJSONRequestBody UpdateAdminConfigJSONBody+// Defines values for CreateProjectIdentityMembership401JSONResponseBodyStatusCode.+const (+ CreateProjectIdentityMembership401JSONResponseBodyStatusCodeN401 CreateProjectIdentityMembership401JSONResponseBodyStatusCode = 401+)-// CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.-type CreateProjectJSONRequestBody CreateProjectJSONBody+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership401JSONResponseBodyStatusCode enum.+func (e CreateProjectIdentityMembership401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProjectIdentityMembership401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}-// CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.-type CreateOrganizationJSONRequestBody CreateOrganizationJSONBody+// Defines values for CreateProjectIdentityMembership403JSONResponseBodyStatusCode.+const (+ CreateProjectIdentityMembership403JSONResponseBodyStatusCodeN403 CreateProjectIdentityMembership403JSONResponseBodyStatusCode = 403+)-// LoginV3JSONRequestBody defines body for LoginV3 for application/json ContentType.-type LoginV3JSONRequestBody LoginV3JSONBody+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership403JSONResponseBodyStatusCode enum.+func (e CreateProjectIdentityMembership403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProjectIdentityMembership403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}-// SelectOrganizationV3JSONRequestBody defines body for SelectOrganizationV3 for application/json ContentType.-type SelectOrganizationV3JSONRequestBody SelectOrganizationV3JSONBody+// Defines values for CreateProjectIdentityMembership404JSONResponseBodyStatusCode.+const (+ CreateProjectIdentityMembership404JSONResponseBodyStatusCodeN404 CreateProjectIdentityMembership404JSONResponseBodyStatusCode = 404+)-// AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 returns the union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as a CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0-func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0() (CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0, error) {- var body CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0- err := json.Unmarshal(t.union, &body)- return body, err+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership404JSONResponseBodyStatusCode enum.+func (e CreateProjectIdentityMembership404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProjectIdentityMembership404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }}-// FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 overwrites any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0) error {- b, err := json.Marshal(v)- t.union = b- return err-}+// Defines values for CreateProjectIdentityMembership422JSONResponseBodyStatusCode.+const (+ CreateProjectIdentityMembership422JSONResponseBodyStatusCodeN422 CreateProjectIdentityMembership422JSONResponseBodyStatusCode = 422+)-// MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 performs a merge with any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy, using the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0) error {- b, err := json.Marshal(v)- if err != nil {- return err+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership422JSONResponseBodyStatusCode enum.+func (e CreateProjectIdentityMembership422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProjectIdentityMembership422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false}-- merged, err := runtime.JSONMerge(t.union, b)- t.union = merged- return err}-// AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 returns the union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as a CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1-func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1() (CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1, error) {- var body CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1- err := json.Unmarshal(t.union, &body)- return body, err-}+// Defines values for CreateProjectIdentityMembership500JSONResponseBodyStatusCode.+const (+ CreateProjectIdentityMembership500JSONResponseBodyStatusCodeN500 CreateProjectIdentityMembership500JSONResponseBodyStatusCode = 500+)-// FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 overwrites any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1) error {- b, err := json.Marshal(v)- t.union = b- return err+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership500JSONResponseBodyStatusCode enum.+func (e CreateProjectIdentityMembership500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateProjectIdentityMembership500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }}-// MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 performs a merge with any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy, using the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1) error {- b, err := json.Marshal(v)- if err != nil {- return err- }+// Defines values for CreateOrganization400JSONResponseBodyStatusCode.+const (+ CreateOrganization400JSONResponseBodyStatusCodeN400 CreateOrganization400JSONResponseBodyStatusCode = 400+)- merged, err := runtime.JSONMerge(t.union, b)- t.union = merged- return err+// Valid indicates whether the value is a known member of the CreateOrganization400JSONResponseBodyStatusCode enum.+func (e CreateOrganization400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateOrganization400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }}-func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MarshalJSON() ([]byte, error) {- b, err := t.union.MarshalJSON()- return b, err-}+// Defines values for CreateOrganization401JSONResponseBodyStatusCode.+const (+ CreateOrganization401JSONResponseBodyStatusCodeN401 CreateOrganization401JSONResponseBodyStatusCode = 401+)-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) UnmarshalJSON(b []byte) error {- err := t.union.UnmarshalJSON(b)- return err+// Valid indicates whether the value is a known member of the CreateOrganization401JSONResponseBodyStatusCode enum.+func (e CreateOrganization401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateOrganization401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }}-// RequestEditorFn is the function signature for the RequestEditor callback function-type RequestEditorFn func(ctx context.Context, req *http.Request) error+// Defines values for CreateOrganization403JSONResponseBodyStatusCode.+const (+ CreateOrganization403JSONResponseBodyStatusCodeN403 CreateOrganization403JSONResponseBodyStatusCode = 403+)-// Doer performs HTTP requests.-//-// The standard http.Client implements this interface.-type HttpRequestDoer interface {- Do(req *http.Request) (*http.Response, error)+// Valid indicates whether the value is a known member of the CreateOrganization403JSONResponseBodyStatusCode enum.+func (e CreateOrganization403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateOrganization403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }}-// Client which conforms to the OpenAPI3 specification for this service.-type Client struct {- // The endpoint of the server conforming to this interface, with scheme,- // https://api.deepmap.com for example. This can contain a path relative- // to the server, such as https://api.deepmap.com/dev-test, and all the- // paths in the swagger spec will be appended to the server.- Server string-- // Doer for performing requests, typically a *http.Client with any- // customized settings, such as certificate chains.- Client HttpRequestDoer+// Defines values for CreateOrganization404JSONResponseBodyStatusCode.+const (+ CreateOrganization404JSONResponseBodyStatusCodeN404 CreateOrganization404JSONResponseBodyStatusCode = 404+)- // A list of callbacks for modifying requests which are generated before sending over- // the network.- RequestEditors []RequestEditorFn+// Valid indicates whether the value is a known member of the CreateOrganization404JSONResponseBodyStatusCode enum.+func (e CreateOrganization404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateOrganization404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }}-// ClientOption allows setting custom parameters during construction-type ClientOption func(*Client) error+// Defines values for CreateOrganization422JSONResponseBodyStatusCode.+const (+ CreateOrganization422JSONResponseBodyStatusCodeN422 CreateOrganization422JSONResponseBodyStatusCode = 422+)-// Creates a new Client, with reasonable defaults-func NewClient(server string, opts ...ClientOption) (*Client, error) {- // create a client with sane default values- client := Client{- Server: server,- }- // mutate client and add all optional params- for _, o := range opts {- if err := o(&client); err != nil {- return nil, err- }- }- // ensure the server URL always has a trailing slash- if !strings.HasSuffix(client.Server, "/") {- client.Server += "/"- }- // create httpClient, if not already present- if client.Client == nil {- client.Client = &http.Client{}+// Valid indicates whether the value is a known member of the CreateOrganization422JSONResponseBodyStatusCode enum.+func (e CreateOrganization422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateOrganization422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false}- return &client, nil}-// WithHTTPClient allows overriding the default Doer, which is-// automatically created using http.Client. This is useful for tests.-func WithHTTPClient(doer HttpRequestDoer) ClientOption {- return func(c *Client) error {- c.Client = doer- return nil- }-}+// Defines values for CreateOrganization500JSONResponseBodyStatusCode.+const (+ CreateOrganization500JSONResponseBodyStatusCodeN500 CreateOrganization500JSONResponseBodyStatusCode = 500+)-// WithRequestEditorFn allows setting up a callback function, which will be-// called right before sending the request. This can be used to mutate the request.-func WithRequestEditorFn(fn RequestEditorFn) ClientOption {- return func(c *Client) error {- c.RequestEditors = append(c.RequestEditors, fn)- return nil+// Valid indicates whether the value is a known member of the CreateOrganization500JSONResponseBodyStatusCode enum.+func (e CreateOrganization500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateOrganization500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false}}-// The interface specification for the client above.-type ClientInterface interface {-- // GetServerStatus performs a GET /api/status (the `GetServerStatus` operationId) request.- GetServerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)+// Defines values for DeleteOrganization400JSONResponseBodyStatusCode.+const (+ DeleteOrganization400JSONResponseBodyStatusCodeN400 DeleteOrganization400JSONResponseBodyStatusCode = 400+)- // AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,- // with any type of body and a specified content type.- AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)+// Valid indicates whether the value is a known member of the DeleteOrganization400JSONResponseBodyStatusCode enum.+func (e DeleteOrganization400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case DeleteOrganization400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}- // AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.- // Takes a body of the `application/json` content type.- AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)+// Defines values for DeleteOrganization401JSONResponseBodyStatusCode.+const (+ DeleteOrganization401JSONResponseBodyStatusCodeN401 DeleteOrganization401JSONResponseBodyStatusCode = 401+)- // UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,- // with any type of body and a specified content type.- UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)+// Valid indicates whether the value is a known member of the DeleteOrganization401JSONResponseBodyStatusCode enum.+func (e DeleteOrganization401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case DeleteOrganization401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}- // UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.- // Takes a body of the `application/json` content type.- UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)+// Defines values for DeleteOrganization403JSONResponseBodyStatusCode.+const (+ DeleteOrganization403JSONResponseBodyStatusCodeN403 DeleteOrganization403JSONResponseBodyStatusCode = 403+)- // RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.- RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)+// Valid indicates whether the value is a known member of the DeleteOrganization403JSONResponseBodyStatusCode enum.+func (e DeleteOrganization403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case DeleteOrganization403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}- // GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.- GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)+// Defines values for DeleteOrganization404JSONResponseBodyStatusCode.+const (+ DeleteOrganization404JSONResponseBodyStatusCodeN404 DeleteOrganization404JSONResponseBodyStatusCode = 404+)- // CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,- // with any type of body and a specified content type.- //- // Create a new project.- CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)+// Valid indicates whether the value is a known member of the DeleteOrganization404JSONResponseBodyStatusCode enum.+func (e DeleteOrganization404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case DeleteOrganization404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}- // CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.- // Takes a body of the `application/json` content type.- //- // Create a new project.- CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)+// Defines values for DeleteOrganization422JSONResponseBodyStatusCode.+const (+ DeleteOrganization422JSONResponseBodyStatusCodeN422 DeleteOrganization422JSONResponseBodyStatusCode = 422+)- // CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,- // with any type of body and a specified content type.- CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)+// Valid indicates whether the value is a known member of the DeleteOrganization422JSONResponseBodyStatusCode enum.+func (e DeleteOrganization422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case DeleteOrganization422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}- // CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.- // Takes a body of the `application/json` content type.- CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)+// Defines values for DeleteOrganization500JSONResponseBodyStatusCode.+const (+ DeleteOrganization500JSONResponseBodyStatusCodeN500 DeleteOrganization500JSONResponseBodyStatusCode = 500+)- // DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.- DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)+// Valid indicates whether the value is a known member of the DeleteOrganization500JSONResponseBodyStatusCode enum.+func (e DeleteOrganization500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case DeleteOrganization500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}- // 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)+// Defines values for LoginV3400JSONResponseBodyStatusCode.+const (+ LoginV3400JSONResponseBodyStatusCodeN400 LoginV3400JSONResponseBodyStatusCode = 400+)- // LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.- // Takes a body of the `application/json` content type.- LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)+// Valid indicates whether the value is a known member of the LoginV3400JSONResponseBodyStatusCode enum.+func (e LoginV3400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case LoginV3400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}- // SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,- // with any type of body and a specified content type.- SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)+// Defines values for LoginV3401JSONResponseBodyStatusCode.+const (+ LoginV3401JSONResponseBodyStatusCodeN401 LoginV3401JSONResponseBodyStatusCode = 401+)- // SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.- // Takes a body of the `application/json` content type.- SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)+// Valid indicates whether the value is a known member of the LoginV3401JSONResponseBodyStatusCode enum.+func (e LoginV3401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case LoginV3401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }}-// GetServerStatus performs a GET /api/status (the `GetServerStatus` operationId) request.-func (c *Client) GetServerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewGetServerStatusRequest(c.Server)- if err != nil {- return nil, err- }- req = req.WithContext(ctx)- if err := c.applyEditors(ctx, req, reqEditors); err != nil {- return nil, err+// Defines values for LoginV3403JSONResponseBodyStatusCode.+const (+ LoginV3403JSONResponseBodyStatusCodeN403 LoginV3403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the LoginV3403JSONResponseBodyStatusCode enum.+func (e LoginV3403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case LoginV3403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false}- return c.Client.Do(req)}-// AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,-// with any type of body and a specified content type.-func (c *Client) AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewAdminBootstrapRequestWithBody(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+// Defines values for LoginV3404JSONResponseBodyStatusCode.+const (+ LoginV3404JSONResponseBodyStatusCodeN404 LoginV3404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the LoginV3404JSONResponseBodyStatusCode enum.+func (e LoginV3404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case LoginV3404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false}- return c.Client.Do(req)}-// AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.-// Takes a body of the `application/json` content type.-func (c *Client) AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewAdminBootstrapRequest(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+// Defines values for LoginV3422JSONResponseBodyStatusCode.+const (+ LoginV3422JSONResponseBodyStatusCodeN422 LoginV3422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the LoginV3422JSONResponseBodyStatusCode enum.+func (e LoginV3422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case LoginV3422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false}- return c.Client.Do(req)}-// UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,-// with any type of body and a specified content type.-func (c *Client) UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewUpdateAdminConfigRequestWithBody(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+// Defines values for LoginV3500JSONResponseBodyStatusCode.+const (+ LoginV3500JSONResponseBodyStatusCodeN500 LoginV3500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the LoginV3500JSONResponseBodyStatusCode enum.+func (e LoginV3500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case LoginV3500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false}- return c.Client.Do(req)}-// UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.-// Takes a body of the `application/json` content type.-func (c *Client) UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewUpdateAdminConfigRequest(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+// Defines values for SelectOrganizationV3JSONBodyUserAgent.+const (+ Cli SelectOrganizationV3JSONBodyUserAgent = "cli"+)++// Valid indicates whether the value is a known member of the SelectOrganizationV3JSONBodyUserAgent enum.+func (e SelectOrganizationV3JSONBodyUserAgent) Valid() bool {+ switch e {+ case Cli:+ return true+ default:+ return false}- return c.Client.Do(req)}-// RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.-func (c *Client) RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewRefreshAuthTokenRequest(c.Server)- if err != nil {- return nil, err- }- req = req.WithContext(ctx)- if err := c.applyEditors(ctx, req, reqEditors); err != nil {- return nil, err+// Defines values for SelectOrganizationV3400JSONResponseBodyStatusCode.+const (+ SelectOrganizationV3400JSONResponseBodyStatusCodeN400 SelectOrganizationV3400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the SelectOrganizationV3400JSONResponseBodyStatusCode enum.+func (e SelectOrganizationV3400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case SelectOrganizationV3400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false}- return c.Client.Do(req)}-// GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.-func (c *Client) GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewGetOrganizationPlanRequest(c.Server, organizationId, params)- if err != nil {- return nil, err- }- req = req.WithContext(ctx)- if err := c.applyEditors(ctx, req, reqEditors); err != nil {- return nil, err+// Defines values for SelectOrganizationV3401JSONResponseBodyStatusCode.+const (+ SelectOrganizationV3401JSONResponseBodyStatusCodeN401 SelectOrganizationV3401JSONResponseBodyStatusCode = 401+)++// Valid indicates whether the value is a known member of the SelectOrganizationV3401JSONResponseBodyStatusCode enum.+func (e SelectOrganizationV3401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case SelectOrganizationV3401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false}- return c.Client.Do(req)}-// CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,-// with any type of body and a specified content type.-//-// Create a new project.-func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewCreateProjectRequestWithBody(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+// Defines values for SelectOrganizationV3403JSONResponseBodyStatusCode.+const (+ SelectOrganizationV3403JSONResponseBodyStatusCodeN403 SelectOrganizationV3403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the SelectOrganizationV3403JSONResponseBodyStatusCode enum.+func (e SelectOrganizationV3403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case SelectOrganizationV3403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false}- return c.Client.Do(req)}-// CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.-// Takes a body of the `application/json` content type.-//-// Create a new project.-func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewCreateProjectRequest(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+// Defines values for SelectOrganizationV3404JSONResponseBodyStatusCode.+const (+ SelectOrganizationV3404JSONResponseBodyStatusCodeN404 SelectOrganizationV3404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the SelectOrganizationV3404JSONResponseBodyStatusCode enum.+func (e SelectOrganizationV3404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case SelectOrganizationV3404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false}- return c.Client.Do(req)}-// CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,-// with any type of body and a specified content type.-func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewCreateOrganizationRequestWithBody(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+// Defines values for SelectOrganizationV3422JSONResponseBodyStatusCode.+const (+ SelectOrganizationV3422JSONResponseBodyStatusCodeN422 SelectOrganizationV3422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the SelectOrganizationV3422JSONResponseBodyStatusCode enum.+func (e SelectOrganizationV3422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case SelectOrganizationV3422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false}- return c.Client.Do(req)}-// CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.-// Takes a body of the `application/json` content type.-func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewCreateOrganizationRequest(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+// Defines values for SelectOrganizationV3500JSONResponseBodyStatusCode.+const (+ SelectOrganizationV3500JSONResponseBodyStatusCodeN500 SelectOrganizationV3500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the SelectOrganizationV3500JSONResponseBodyStatusCode enum.+func (e SelectOrganizationV3500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case SelectOrganizationV3500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false}- return c.Client.Do(req)}-// DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.-func (c *Client) DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewDeleteOrganizationRequest(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+// Defines values for CompleteAccountSignupV3JSONBody0Type.+const (+ CompleteAccountSignupV3JSONBody0TypeEmail CompleteAccountSignupV3JSONBody0Type = "email"+)++// Valid indicates whether the value is a known member of the CompleteAccountSignupV3JSONBody0Type enum.+func (e CompleteAccountSignupV3JSONBody0Type) Valid() bool {+ switch e {+ case CompleteAccountSignupV3JSONBody0TypeEmail:+ return true+ default:+ return false}- 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) {- req, err := NewLoginV3RequestWithBody(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+// Defines values for CompleteAccountSignupV3JSONBody1Type.+const (+ Alias CompleteAccountSignupV3JSONBody1Type = "alias"+)++// Valid indicates whether the value is a known member of the CompleteAccountSignupV3JSONBody1Type enum.+func (e CompleteAccountSignupV3JSONBody1Type) Valid() bool {+ switch e {+ case Alias:+ return true+ default:+ return false}- return c.Client.Do(req)}-// LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.-// Takes a body of the `application/json` content type.-func (c *Client) LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewLoginV3Request(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+// Defines values for CompleteAccountSignupV3400JSONResponseBodyStatusCode.+const (+ CompleteAccountSignupV3400JSONResponseBodyStatusCodeN400 CompleteAccountSignupV3400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the CompleteAccountSignupV3400JSONResponseBodyStatusCode enum.+func (e CompleteAccountSignupV3400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CompleteAccountSignupV3400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false}- return c.Client.Do(req)}-// SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,-// with any type of body and a specified content type.-func (c *Client) SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewSelectOrganizationV3RequestWithBody(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)-}+// Defines values for CompleteAccountSignupV3401JSONResponseBodyStatusCode.+const (+ CompleteAccountSignupV3401JSONResponseBodyStatusCodeN401 CompleteAccountSignupV3401JSONResponseBodyStatusCode = 401+)-// SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.-// Takes a body of the `application/json` content type.-func (c *Client) SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {- req, err := NewSelectOrganizationV3Request(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+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3401JSONResponseBodyStatusCode enum.+func (e CompleteAccountSignupV3401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CompleteAccountSignupV3401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false}- return c.Client.Do(req)}-// NewGetServerStatusRequest constructs an http.Request for the GetServerStatus method-func NewGetServerStatusRequest(server string) (*http.Request, error) {- var err error-- serverURL, err := url.Parse(server)- if err != nil {- return nil, err- }+// Defines values for CompleteAccountSignupV3403JSONResponseBodyStatusCode.+const (+ CompleteAccountSignupV3403JSONResponseBodyStatusCodeN403 CompleteAccountSignupV3403JSONResponseBodyStatusCode = 403+)- operationPath := fmt.Sprintf("/api/status")- if operationPath[0] == '/' {- operationPath = "." + operationPath+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3403JSONResponseBodyStatusCode enum.+func (e CompleteAccountSignupV3403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CompleteAccountSignupV3403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false}+}- queryURL, err := serverURL.Parse(operationPath)- if err != nil {- return nil, err- }+// Defines values for CompleteAccountSignupV3404JSONResponseBodyStatusCode.+const (+ CompleteAccountSignupV3404JSONResponseBodyStatusCodeN404 CompleteAccountSignupV3404JSONResponseBodyStatusCode = 404+)- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)- if err != nil {- return nil, err+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3404JSONResponseBodyStatusCode enum.+func (e CompleteAccountSignupV3404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CompleteAccountSignupV3404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false}-- return req, nil}-// NewAdminBootstrapRequest calls the generic AdminBootstrap builder with application/json body-func NewAdminBootstrapRequest(server string, body AdminBootstrapJSONRequestBody) (*http.Request, error) {- var bodyReader io.Reader- buf, err := json.Marshal(body)- if err != nil {- return nil, err+// Defines values for CompleteAccountSignupV3422JSONResponseBodyStatusCode.+const (+ CompleteAccountSignupV3422JSONResponseBodyStatusCodeN422 CompleteAccountSignupV3422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the CompleteAccountSignupV3422JSONResponseBodyStatusCode enum.+func (e CompleteAccountSignupV3422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CompleteAccountSignupV3422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false}- bodyReader = bytes.NewReader(buf)- return NewAdminBootstrapRequestWithBody(server, "application/json", bodyReader)}-// NewAdminBootstrapRequestWithBody constructs an http.Request for the AdminBootstrap method, with any body, and a specified content type-func NewAdminBootstrapRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {- var err error+// Defines values for CompleteAccountSignupV3500JSONResponseBodyStatusCode.+const (+ CompleteAccountSignupV3500JSONResponseBodyStatusCodeN500 CompleteAccountSignupV3500JSONResponseBodyStatusCode = 500+)- serverURL, err := url.Parse(server)- if err != nil {- return nil, err+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3500JSONResponseBodyStatusCode enum.+func (e CompleteAccountSignupV3500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CompleteAccountSignupV3500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false}+}- operationPath := fmt.Sprintf("/api/v1/admin/bootstrap")- if operationPath[0] == '/' {- operationPath = "." + operationPath- }+// GetServerStatus400JSONResponseBodyStatusCode defines parameters for GetServerStatus.+type GetServerStatus400JSONResponseBodyStatusCode float32- queryURL, err := serverURL.Parse(operationPath)- if err != nil {- return nil, err- }+// GetServerStatus401JSONResponseBodyStatusCode defines parameters for GetServerStatus.+type GetServerStatus401JSONResponseBodyStatusCode float32- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)- if err != nil {- return nil, err- }+// GetServerStatus403JSONResponseBodyStatusCode defines parameters for GetServerStatus.+type GetServerStatus403JSONResponseBodyStatusCode float32- req.Header.Add("Content-Type", contentType)+// GetServerStatus404JSONResponseBodyStatusCode defines parameters for GetServerStatus.+type GetServerStatus404JSONResponseBodyStatusCode float32- return req, nil-}+// GetServerStatus422JSONResponseBodyStatusCode defines parameters for GetServerStatus.+type GetServerStatus422JSONResponseBodyStatusCode float32-// NewUpdateAdminConfigRequest calls the generic UpdateAdminConfig builder with application/json body-func NewUpdateAdminConfigRequest(server string, body UpdateAdminConfigJSONRequestBody) (*http.Request, error) {- var bodyReader io.Reader- buf, err := json.Marshal(body)- if err != nil {- return nil, err- }- bodyReader = bytes.NewReader(buf)- return NewUpdateAdminConfigRequestWithBody(server, "application/json", bodyReader)+// GetServerStatus500JSONResponseBodyStatusCode defines parameters for GetServerStatus.+type GetServerStatus500JSONResponseBodyStatusCode float32++// AdminBootstrapJSONBody defines parameters for AdminBootstrap.+type AdminBootstrapJSONBody struct {+ Email openapi_types.Email `json:"email"`+ Organization string `json:"organization"`+ Password string `json:"password"`}-// NewUpdateAdminConfigRequestWithBody constructs an http.Request for the UpdateAdminConfig method, with any body, and a specified content type-func NewUpdateAdminConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {- var err error+// AdminBootstrap400JSONResponseBodyStatusCode defines parameters for AdminBootstrap.+type AdminBootstrap400JSONResponseBodyStatusCode float32- serverURL, err := url.Parse(server)- if err != nil {- return nil, err- }+// AdminBootstrap401JSONResponseBodyStatusCode defines parameters for AdminBootstrap.+type AdminBootstrap401JSONResponseBodyStatusCode float32- operationPath := fmt.Sprintf("/api/v1/admin/config")- if operationPath[0] == '/' {- operationPath = "." + operationPath- }+// AdminBootstrap403JSONResponseBodyStatusCode defines parameters for AdminBootstrap.+type AdminBootstrap403JSONResponseBodyStatusCode float32- queryURL, err := serverURL.Parse(operationPath)- if err != nil {- return nil, err- }+// AdminBootstrap404JSONResponseBodyStatusCode defines parameters for AdminBootstrap.+type AdminBootstrap404JSONResponseBodyStatusCode float32- req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)- if err != nil {- return nil, err- }+// AdminBootstrap422JSONResponseBodyStatusCode defines parameters for AdminBootstrap.+type AdminBootstrap422JSONResponseBodyStatusCode float32- req.Header.Add("Content-Type", contentType)+// AdminBootstrap500JSONResponseBodyStatusCode defines parameters for AdminBootstrap.+type AdminBootstrap500JSONResponseBodyStatusCode float32- return req, nil+// UpdateAdminConfigJSONBody defines parameters for UpdateAdminConfig.+type UpdateAdminConfigJSONBody struct {+ AllowSignUp *bool `json:"allowSignUp,omitempty"`+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`+ AuthConsentContent *string `json:"authConsentContent,omitempty"`+ DefaultAuthOrgId *string `json:"defaultAuthOrgId,omitempty"`+ EnabledLoginMethods *[]UpdateAdminConfigJSONBodyEnabledLoginMethods `json:"enabledLoginMethods,omitempty"`+ EnvOverrides *struct {+ CLIENTGITLABLOGINURL string `json:"CLIENT_GITLAB_LOGIN_URL"`+ CLIENTIDGITHUBLOGIN string `json:"CLIENT_ID_GITHUB_LOGIN"`+ CLIENTIDGITLABLOGIN string `json:"CLIENT_ID_GITLAB_LOGIN"`+ CLIENTIDGOOGLELOGIN string `json:"CLIENT_ID_GOOGLE_LOGIN"`+ CLIENTSECRETGITHUBLOGIN string `json:"CLIENT_SECRET_GITHUB_LOGIN"`+ CLIENTSECRETGITLABLOGIN string `json:"CLIENT_SECRET_GITLAB_LOGIN"`+ CLIENTSECRETGOOGLELOGIN string `json:"CLIENT_SECRET_GOOGLE_LOGIN"`+ DISABLEAUDITLOGSTORAGE string `json:"DISABLE_AUDIT_LOG_STORAGE"`+ DISABLEPOSTGRESAUDITLOGSTORAGE string `json:"DISABLE_POSTGRES_AUDIT_LOG_STORAGE"`+ DISABLEPUBLICSECRETSHARING string `json:"DISABLE_PUBLIC_SECRET_SHARING"`+ INFAPPCONNECTIONAWSACCESSKEYID string `json:"INF_APP_CONNECTION_AWS_ACCESS_KEY_ID"`+ INFAPPCONNECTIONAWSSECRETACCESSKEY string `json:"INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY"`+ INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTID string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_ID"`+ INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_SECRET"`+ INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_ID"`+ INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_SECRET"`+ INFAPPCONNECTIONAZUREDEVOPSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_ID"`+ INFAPPCONNECTIONAZUREDEVOPSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_SECRET"`+ INFAPPCONNECTIONAZUREKEYVAULTCLIENTID string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_ID"`+ INFAPPCONNECTIONAZUREKEYVAULTCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_SECRET"`+ INFAPPCONNECTIONGCPSERVICEACCOUNTCREDENTIAL string `json:"INF_APP_CONNECTION_GCP_SERVICE_ACCOUNT_CREDENTIAL"`+ INFAPPCONNECTIONGITHUBAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_ID"`+ INFAPPCONNECTIONGITHUBAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_SECRET"`+ INFAPPCONNECTIONGITHUBAPPHOST string `json:"INF_APP_CONNECTION_GITHUB_APP_HOST"`+ INFAPPCONNECTIONGITHUBAPPID string `json:"INF_APP_CONNECTION_GITHUB_APP_ID"`+ INFAPPCONNECTIONGITHUBAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_APP_PRIVATE_KEY"`+ INFAPPCONNECTIONGITHUBAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_APP_SLUG"`+ INFAPPCONNECTIONGITHUBOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_ID"`+ INFAPPCONNECTIONGITHUBOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_SECRET"`+ INFAPPCONNECTIONGITHUBRADARAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_ID"`+ INFAPPCONNECTIONGITHUBRADARAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_SECRET"`+ INFAPPCONNECTIONGITHUBRADARAPPID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_ID"`+ INFAPPCONNECTIONGITHUBRADARAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_PRIVATE_KEY"`+ INFAPPCONNECTIONGITHUBRADARAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_SLUG"`+ INFAPPCONNECTIONGITHUBRADARAPPWEBHOOKSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_WEBHOOK_SECRET"`+ INFAPPCONNECTIONGITLABOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_ID"`+ INFAPPCONNECTIONGITLABOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_SECRET"`+ INFAPPCONNECTIONHEROKUOAUTHCLIENTID string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_ID"`+ INFAPPCONNECTIONHEROKUOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_SECRET"`+ } `json:"envOverrides,omitempty"`+ GitHubAppConnectionClientId *string `json:"gitHubAppConnectionClientId,omitempty"`+ GitHubAppConnectionClientSecret *string `json:"gitHubAppConnectionClientSecret,omitempty"`+ GitHubAppConnectionId *string `json:"gitHubAppConnectionId,omitempty"`+ GitHubAppConnectionPrivateKey *string `json:"gitHubAppConnectionPrivateKey,omitempty"`+ GitHubAppConnectionSlug *string `json:"gitHubAppConnectionSlug,omitempty"`+ MicrosoftTeamsAppId *string `json:"microsoftTeamsAppId,omitempty"`+ MicrosoftTeamsBotId *string `json:"microsoftTeamsBotId,omitempty"`+ MicrosoftTeamsClientSecret *string `json:"microsoftTeamsClientSecret,omitempty"`+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`+ PageFrameContent *string `json:"pageFrameContent,omitempty"`+ SlackClientId *string `json:"slackClientId,omitempty"`+ SlackClientSecret *string `json:"slackClientSecret,omitempty"`+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`}-// NewRefreshAuthTokenRequest constructs an http.Request for the RefreshAuthToken method-func NewRefreshAuthTokenRequest(server string) (*http.Request, error) {- var err error+// UpdateAdminConfigJSONBodyEnabledLoginMethods defines parameters for UpdateAdminConfig.+type UpdateAdminConfigJSONBodyEnabledLoginMethods string- serverURL, err := url.Parse(server)- if err != nil {- return nil, err- }+// UpdateAdminConfig400JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.+type UpdateAdminConfig400JSONResponseBodyStatusCode float32- operationPath := fmt.Sprintf("/api/v1/auth/token")- if operationPath[0] == '/' {- operationPath = "." + operationPath- }+// UpdateAdminConfig401JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.+type UpdateAdminConfig401JSONResponseBodyStatusCode float32- queryURL, err := serverURL.Parse(operationPath)- if err != nil {- return nil, err- }+// UpdateAdminConfig403JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.+type UpdateAdminConfig403JSONResponseBodyStatusCode float32- req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)- if err != nil {- return nil, err- }+// UpdateAdminConfig404JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.+type UpdateAdminConfig404JSONResponseBodyStatusCode float32- return req, nil-}+// UpdateAdminConfig422JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.+type UpdateAdminConfig422JSONResponseBodyStatusCode float32-// NewGetOrganizationPlanRequest constructs an http.Request for the GetOrganizationPlan method-func NewGetOrganizationPlanRequest(server string, organizationId string, params *GetOrganizationPlanParams) (*http.Request, error) {- var err error+// UpdateAdminConfig500JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.+type UpdateAdminConfig500JSONResponseBodyStatusCode float32- var pathParam0 string+// RefreshAuthToken400JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.+type RefreshAuthToken400JSONResponseBodyStatusCode float32- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})- if err != nil {- return nil, err- }+// RefreshAuthToken401JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.+type RefreshAuthToken401JSONResponseBodyStatusCode float32- serverURL, err := url.Parse(server)- if err != nil {- return nil, err- }+// RefreshAuthToken403JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.+type RefreshAuthToken403JSONResponseBodyStatusCode float32- operationPath := fmt.Sprintf("/api/v1/organizations/%s/plan", pathParam0)- if operationPath[0] == '/' {- operationPath = "." + operationPath- }+// RefreshAuthToken404JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.+type RefreshAuthToken404JSONResponseBodyStatusCode float32- queryURL, err := serverURL.Parse(operationPath)- if err != nil {- return nil, err- }+// RefreshAuthToken422JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.+type RefreshAuthToken422JSONResponseBodyStatusCode float32- 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+// RefreshAuthToken500JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.+type RefreshAuthToken500JSONResponseBodyStatusCode float32- if params.RefreshCache != nil {+// AttachUniversalAuthJSONBody defines parameters for AttachUniversalAuth.+type AttachUniversalAuthJSONBody struct {+ // AccessTokenMaxTTL The maximum lifetime for an access token in seconds. This value will be referenced at renewal time.+ AccessTokenMaxTTL *int `json:"accessTokenMaxTTL,omitempty"`- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "refreshCache", *params.RefreshCache, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {- return nil, err- } else {- for _, qp := range strings.Split(queryFrag, "&") {- rawQueryFragments = append(rawQueryFragments, qp)- }- }+ // AccessTokenNumUsesLimit The maximum number of times that an access token can be used; a value of 0 implies infinite number of uses.+ AccessTokenNumUsesLimit *int `json:"accessTokenNumUsesLimit,omitempty"`- }+ // AccessTokenPeriod The period for an access token in seconds. This value will be referenced at renewal time. Default value is 0.+ AccessTokenPeriod *int `json:"accessTokenPeriod,omitempty"`- if encoded := queryValues.Encode(); encoded != "" {- rawQueryFragments = append(rawQueryFragments, encoded)- }- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")- }+ // AccessTokenTTL The lifetime for an access token in seconds. This value will be referenced at renewal time.+ AccessTokenTTL *int `json:"accessTokenTTL,omitempty"`- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)- if err != nil {- return nil, err- }+ // AccessTokenTrustedIps A list of IPs or CIDR ranges that access tokens can be used from. You can use 0.0.0.0/0, to allow usage from any network address.+ AccessTokenTrustedIps *[]struct {+ IpAddress string `json:"ipAddress"`+ } `json:"accessTokenTrustedIps,omitempty"`- return req, nil-}+ // ClientSecretTrustedIps A list of IPs or CIDR ranges that the Client Secret can be used from together with the Client ID to get back an access token. You can use 0.0.0.0/0, to allow usage from any network address.+ ClientSecretTrustedIps *[]struct {+ IpAddress string `json:"ipAddress"`+ } `json:"clientSecretTrustedIps,omitempty"`-// NewCreateProjectRequest calls the generic CreateProject builder with application/json body-func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error) {- var bodyReader io.Reader- buf, err := json.Marshal(body)- if err != nil {- return nil, err- }- bodyReader = bytes.NewReader(buf)- return NewCreateProjectRequestWithBody(server, "application/json", bodyReader)+ // LockoutCounterResetSeconds How long to wait from the most recent failed login until resetting the lockout counter.+ LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`++ // LockoutDurationSeconds How long an identity auth method lockout lasts.+ LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`++ // LockoutEnabled Whether the lockout feature is enabled.+ LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`++ // LockoutThreshold The amount of times login must fail before locking the identity auth method.+ LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`}-// NewCreateProjectRequestWithBody constructs an http.Request for the CreateProject method, with any body, and a specified content type-func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {- var err error+// AttachUniversalAuth400JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.+type AttachUniversalAuth400JSONResponseBodyStatusCode float32- serverURL, err := url.Parse(server)- if err != nil {- return nil, err- }+// AttachUniversalAuth401JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.+type AttachUniversalAuth401JSONResponseBodyStatusCode float32- operationPath := fmt.Sprintf("/api/v1/projects")- if operationPath[0] == '/' {- operationPath = "." + operationPath- }+// AttachUniversalAuth403JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.+type AttachUniversalAuth403JSONResponseBodyStatusCode float32- queryURL, err := serverURL.Parse(operationPath)- if err != nil {- return nil, err- }+// AttachUniversalAuth404JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.+type AttachUniversalAuth404JSONResponseBodyStatusCode float32- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)- if err != nil {- return nil, err- }+// AttachUniversalAuth422JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.+type AttachUniversalAuth422JSONResponseBodyStatusCode float32- req.Header.Add("Content-Type", contentType)+// AttachUniversalAuth500JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.+type AttachUniversalAuth500JSONResponseBodyStatusCode float32- return req, nil-}+// CreateUniversalAuthClientSecretJSONBody defines parameters for CreateUniversalAuthClientSecret.+type CreateUniversalAuthClientSecretJSONBody struct {+ // Description The description of the client secret.+ Description *string `json:"description,omitempty"`-// NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body-func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error) {- var bodyReader io.Reader- buf, err := json.Marshal(body)- if err != nil {- return nil, err- }- bodyReader = bytes.NewReader(buf)- return NewCreateOrganizationRequestWithBody(server, "application/json", bodyReader)+ // NumUsesLimit The maximum number of times that the client secret can be used; a value of 0 implies infinite number of uses.+ NumUsesLimit *float32 `json:"numUsesLimit,omitempty"`++ // Ttl The lifetime for the client secret in seconds.+ Ttl *float32 `json:"ttl,omitempty"`}-// 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 error+// CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.+type CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode float32- serverURL, err := url.Parse(server)- if err != nil {- return nil, err- }+// CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.+type CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode float32- operationPath := fmt.Sprintf("/api/v2/organizations")- if operationPath[0] == '/' {- operationPath = "." + operationPath- }+// CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.+type CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode float32- queryURL, err := serverURL.Parse(operationPath)- if err != nil {- return nil, err- }+// CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.+type CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode float32- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)- if err != nil {- return nil, err- }+// CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.+type CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode float32- req.Header.Add("Content-Type", contentType)+// CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.+type CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode float32- return req, nil+// LoginWithUniversalAuthJSONBody defines parameters for LoginWithUniversalAuth.+type LoginWithUniversalAuthJSONBody struct {+ // ClientId Your Machine Identity Client ID.+ ClientId string `json:"clientId"`++ // ClientSecret Your Machine Identity Client Secret.+ ClientSecret string `json:"clientSecret"`++ // OrganizationSlug When set, this will scope the login session to the specified organization the machine identity has access to. If omitted, the session defaults to the organization where the machine identity was created in.+ OrganizationSlug *string `json:"organizationSlug,omitempty"`}-// NewDeleteOrganizationRequest constructs an http.Request for the DeleteOrganization method-func NewDeleteOrganizationRequest(server string, organizationId string) (*http.Request, error) {- var err error+// LoginWithUniversalAuth200JSONResponseBodyTokenType defines parameters for LoginWithUniversalAuth.+type LoginWithUniversalAuth200JSONResponseBodyTokenType string- var pathParam0 string+// LoginWithUniversalAuth400JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.+type LoginWithUniversalAuth400JSONResponseBodyStatusCode float32- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})- if err != nil {- return nil, err- }+// LoginWithUniversalAuth401JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.+type LoginWithUniversalAuth401JSONResponseBodyStatusCode float32- serverURL, err := url.Parse(server)- if err != nil {- return nil, err- }+// LoginWithUniversalAuth403JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.+type LoginWithUniversalAuth403JSONResponseBodyStatusCode float32- operationPath := fmt.Sprintf("/api/v2/organizations/%s", pathParam0)- if operationPath[0] == '/' {- operationPath = "." + operationPath- }+// LoginWithUniversalAuth404JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.+type LoginWithUniversalAuth404JSONResponseBodyStatusCode float32- queryURL, err := serverURL.Parse(operationPath)- if err != nil {- return nil, err- }+// LoginWithUniversalAuth422JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.+type LoginWithUniversalAuth422JSONResponseBodyStatusCode float32- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)- if err != nil {- return nil, err- }+// LoginWithUniversalAuth500JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.+type LoginWithUniversalAuth500JSONResponseBodyStatusCode float32- return req, nil-}+// CreateMachineIdentityJSONBody defines parameters for CreateMachineIdentity.+type CreateMachineIdentityJSONBody struct {+ // HasDeleteProtection Prevents deletion of the identity when enabled.+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Metadata *[]struct {+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata,omitempty"`-// 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)-}+ // Name The name of the identity to create.+ Name string `json:"name"`-// 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+ // OrganizationId The organization ID to which the identity belongs.+ OrganizationId string `json:"organizationId"`- serverURL, err := url.Parse(server)- if err != nil {- return nil, err- }+ // Role The role of the identity. Possible values are 'no-access', 'member', and 'admin'.+ Role *string `json:"role,omitempty"`+}- operationPath := fmt.Sprintf("/api/v3/auth/login")- if operationPath[0] == '/' {- operationPath = "." + operationPath- }+// CreateMachineIdentity400JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.+type CreateMachineIdentity400JSONResponseBodyStatusCode float32- queryURL, err := serverURL.Parse(operationPath)- if err != nil {- return nil, err- }+// CreateMachineIdentity401JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.+type CreateMachineIdentity401JSONResponseBodyStatusCode float32- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)- if err != nil {- return nil, err- }+// CreateMachineIdentity403JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.+type CreateMachineIdentity403JSONResponseBodyStatusCode float32- req.Header.Add("Content-Type", contentType)+// CreateMachineIdentity404JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.+type CreateMachineIdentity404JSONResponseBodyStatusCode float32- return req, nil-}+// CreateMachineIdentity422JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.+type CreateMachineIdentity422JSONResponseBodyStatusCode float32-// 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)+// CreateMachineIdentity500JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.+type CreateMachineIdentity500JSONResponseBodyStatusCode float32++// InviteUsersToOrganizationJSONBody defines parameters for InviteUsersToOrganization.+type InviteUsersToOrganizationJSONBody struct {+ GrantAgentVaultAccess *bool `json:"grantAgentVaultAccess,omitempty"`+ GrantPamAccess *bool `json:"grantPamAccess,omitempty"`+ InviteeEmails []openapi_types.Email `json:"inviteeEmails"`+ OrganizationId string `json:"organizationId"`+ OrganizationRoleSlug *string `json:"organizationRoleSlug,omitempty"`+ ProjectIds *[]string `json:"projectIds,omitempty"`}-// 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+// InviteUsersToOrganization400JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.+type InviteUsersToOrganization400JSONResponseBodyStatusCode float32- serverURL, err := url.Parse(server)- if err != nil {- return nil, err- }+// InviteUsersToOrganization401JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.+type InviteUsersToOrganization401JSONResponseBodyStatusCode float32- operationPath := fmt.Sprintf("/api/v3/auth/select-organization")- if operationPath[0] == '/' {- operationPath = "." + operationPath- }+// InviteUsersToOrganization403JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.+type InviteUsersToOrganization403JSONResponseBodyStatusCode float32- queryURL, err := serverURL.Parse(operationPath)- if err != nil {- return nil, err- }+// InviteUsersToOrganization404JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.+type InviteUsersToOrganization404JSONResponseBodyStatusCode float32- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)- if err != nil {- return nil, err- }+// InviteUsersToOrganization422JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.+type InviteUsersToOrganization422JSONResponseBodyStatusCode float32- req.Header.Add("Content-Type", contentType)+// InviteUsersToOrganization500JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.+type InviteUsersToOrganization500JSONResponseBodyStatusCode float32- return req, nil+// VerifyUserToOrganizationJSONBody defines parameters for VerifyUserToOrganization.+type VerifyUserToOrganizationJSONBody struct {+ Code string `json:"code"`+ Email openapi_types.Email `json:"email"`+ OrganizationId string `json:"organizationId"`}-func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error {- for _, r := range c.RequestEditors {- if err := r(ctx, req); err != nil {- return err- }- }- for _, r := range additionalEditors {- if err := r(ctx, req); err != nil {- return err- }- }- return nil-}+// VerifyUserToOrganization400JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.+type VerifyUserToOrganization400JSONResponseBodyStatusCode float32-// ClientWithResponses builds on ClientInterface to offer response payloads-type ClientWithResponses struct {- ClientInterface-}+// VerifyUserToOrganization401JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.+type VerifyUserToOrganization401JSONResponseBodyStatusCode float32-// NewClientWithResponses creates a new ClientWithResponses, which wraps-// Client with return type handling-func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) {- client, err := NewClient(server, opts...)- if err != nil {- return nil, err- }- return &ClientWithResponses{client}, nil+// VerifyUserToOrganization403JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.+type VerifyUserToOrganization403JSONResponseBodyStatusCode float32++// VerifyUserToOrganization404JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.+type VerifyUserToOrganization404JSONResponseBodyStatusCode float32++// VerifyUserToOrganization422JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.+type VerifyUserToOrganization422JSONResponseBodyStatusCode float32++// VerifyUserToOrganization500JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.+type VerifyUserToOrganization500JSONResponseBodyStatusCode float32++// GetOrganizationPlanParams defines parameters for GetOrganizationPlan.+type GetOrganizationPlanParams struct {+ RefreshCache *GetOrganizationPlanParamsRefreshCache `form:"refreshCache,omitempty" json:"refreshCache,omitempty"`}-// WithBaseURL overrides the baseURL.-func WithBaseURL(baseURL string) ClientOption {- return func(c *Client) error {- newBaseURL, err := url.Parse(baseURL)- if err != nil {- return err- }- c.Server = newBaseURL.String()- return nil- }-}+// GetOrganizationPlanParamsRefreshCache defines parameters for GetOrganizationPlan.+type GetOrganizationPlanParamsRefreshCache string-// ClientWithResponsesInterface is the interface specification for the client with responses above.-type ClientWithResponsesInterface interface {+// GetOrganizationPlan400JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.+type GetOrganizationPlan400JSONResponseBodyStatusCode float32- // GetServerStatusWithResponse performs a GET /api/status (the `GetServerStatus` operationId) request.- //- // Returns a wrapper object for the known response body format(s).- GetServerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServerStatusResponse, error)+// GetOrganizationPlan401JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.+type GetOrganizationPlan401JSONResponseBodyStatusCode float32- // AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,- // with any type of body and a specified content type.- //- // Returns a wrapper object for the known response body format(s).- AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)+// GetOrganizationPlan403JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.+type GetOrganizationPlan403JSONResponseBodyStatusCode float32- // AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).- AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)+// GetOrganizationPlan404JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.+type GetOrganizationPlan404JSONResponseBodyStatusCode float32- // UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,- // with any type of body and a specified content type.- //- // Returns a wrapper object for the known response body format(s).- UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)+// GetOrganizationPlan422JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.+type GetOrganizationPlan422JSONResponseBodyStatusCode float32- // UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).- UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)+// GetOrganizationPlan500JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.+type GetOrganizationPlan500JSONResponseBodyStatusCode float32- // RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.- //- // Returns a wrapper object for the known response body format(s).- RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error)+// CreateProjectJSONBody defines parameters for CreateProject.+type CreateProjectJSONBody struct {+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ KmsKeyId *string `json:"kmsKeyId,omitempty"`- // GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.- //- // Returns a wrapper object for the known response body format(s).- GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error)+ // ProjectDescription An optional description label for the project.+ ProjectDescription *string `json:"projectDescription,omitempty"`- // CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,- // with any type of body and a specified content type.- //- // Create a new project.- //- // Returns a wrapper object for the known response body format(s).- CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)+ // ProjectName The name of the project to create.+ ProjectName string `json:"projectName"`+ ShouldCreateDefaultEnvs *bool `json:"shouldCreateDefaultEnvs,omitempty"`- // CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).- //- // Create a new project.- CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)+ // Slug An optional slug for the project.+ Slug *string `json:"slug,omitempty"`- // CreateOrganizationWithBodyWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,- // with any type of body and a specified content type.- //- // Returns a wrapper object for the known response body format(s).- CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)+ // Template The name of the project template, if specified, to apply to this project.+ Template *string `json:"template,omitempty"`+ Type *CreateProjectJSONBodyType `json:"type,omitempty"`+}- // CreateOrganizationWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).- CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)+// CreateProjectJSONBodyType defines parameters for CreateProject.+type CreateProjectJSONBodyType string- // DeleteOrganizationWithResponse performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.- //- // Returns a wrapper object for the known response body format(s).- DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error)+// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 defines parameters for CreateProject.+type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 struct {+ Email *string `json:"email"`+ FirstName *string `json:"firstName"`+ Id string `json:"id"`+ LastName *string `json:"lastName"`+ Type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type `json:"type"`+ Username *string `json:"username"`+}- // LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,- // with any type of body and a specified content type.- //- // Returns a wrapper object for the known response body format(s).- LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error)+// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type defines parameters for CreateProject.+type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type string- // LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).- LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error)+// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 defines parameters for CreateProject.+type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 struct {+ Id string `json:"id"`+ Name string `json:"name"`+ Type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type `json:"type"`+}- // SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,- // with any type of body and a specified content type.- //- // Returns a wrapper object for the known response body format(s).- SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)+// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type defines parameters for CreateProject.+type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type string- // SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).- SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)+// CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy defines parameters for CreateProject.+type CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy struct {+ union json.RawMessage}-type GetServerStatusResponse struct {- Body []byte- HTTPResponse *http.Response- // JSON200 the response for an HTTP 200 `application/json` response- JSON200 *struct {- AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`- Date time.Time `json:"date"`- EmailConfigured *bool `json:"emailConfigured,omitempty"`- InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`- MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`- Message *string `json:"message,omitempty"`- RedisConfigured *bool `json:"redisConfigured,omitempty"`- SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`- SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`- }- // 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 GetServerStatus400JSONResponseBodyStatusCode `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 GetServerStatus401JSONResponseBodyStatusCode `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 GetServerStatus403JSONResponseBodyStatusCode `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 GetServerStatus404JSONResponseBodyStatusCode `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 GetServerStatus422JSONResponseBodyStatusCode `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 GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`- }-}+// CreateProject400JSONResponseBodyStatusCode defines parameters for CreateProject.+type CreateProject400JSONResponseBodyStatusCode float32-// GetJSON200 returns the response for an HTTP 200 `application/json` response-func (r GetServerStatusResponse) GetJSON200() *struct {- AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`- Date time.Time `json:"date"`- EmailConfigured *bool `json:"emailConfigured,omitempty"`- InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`- MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`- Message *string `json:"message,omitempty"`- RedisConfigured *bool `json:"redisConfigured,omitempty"`- SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`- SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`-} {- return r.JSON200-}+// CreateProject401JSONResponseBodyStatusCode defines parameters for CreateProject.+type CreateProject401JSONResponseBodyStatusCode float32-// GetJSON400 returns the response for an HTTP 400 `application/json` response-func (r GetServerStatusResponse) GetJSON400() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON400+// CreateProject403JSONResponseBodyStatusCode defines parameters for CreateProject.+type CreateProject403JSONResponseBodyStatusCode float32++// CreateProject404JSONResponseBodyStatusCode defines parameters for CreateProject.+type CreateProject404JSONResponseBodyStatusCode float32++// CreateProject422JSONResponseBodyStatusCode defines parameters for CreateProject.+type CreateProject422JSONResponseBodyStatusCode float32++// CreateProject500JSONResponseBodyStatusCode defines parameters for CreateProject.+type CreateProject500JSONResponseBodyStatusCode float32++// ListProjectMachineIdentitiesParams defines parameters for ListProjectMachineIdentities.+type ListProjectMachineIdentitiesParams struct {+ // Offset The offset to start from. If you enter 10, it will start from the 10th identity.+ Offset *float32 `form:"offset,omitempty" json:"offset,omitempty"`++ // Limit The number of identities to return.+ Limit *float32 `form:"limit,omitempty" json:"limit,omitempty"`++ // Search The text string that identity names will be filtered by.+ Search *string `form:"search,omitempty" json:"search,omitempty"`}-// GetJSON401 returns the response for an HTTP 401 `application/json` response-func (r GetServerStatusResponse) GetJSON401() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON401+// ListProjectMachineIdentities400JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.+type ListProjectMachineIdentities400JSONResponseBodyStatusCode float32++// ListProjectMachineIdentities401JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.+type ListProjectMachineIdentities401JSONResponseBodyStatusCode float32++// ListProjectMachineIdentities403JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.+type ListProjectMachineIdentities403JSONResponseBodyStatusCode float32++// ListProjectMachineIdentities404JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.+type ListProjectMachineIdentities404JSONResponseBodyStatusCode float32++// ListProjectMachineIdentities422JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.+type ListProjectMachineIdentities422JSONResponseBodyStatusCode float32++// ListProjectMachineIdentities500JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.+type ListProjectMachineIdentities500JSONResponseBodyStatusCode float32++// CreateProjectMachineIdentityJSONBody defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentityJSONBody struct {+ // HasDeleteProtection Prevents deletion of the identity when enabled.+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`++ // Metadata An optional array of key-value pairs to attach to the identity.+ Metadata *[]struct {+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata,omitempty"`++ // Name The name of the identity to create.+ Name string `json:"name"`+ Roles *[]CreateProjectMachineIdentityJSONBody_Roles_Item `json:"roles,omitempty"`}-// GetJSON403 returns the response for an HTTP 403 `application/json` response-func (r GetServerStatusResponse) GetJSON403() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON403+// CreateProjectMachineIdentityJSONBodyRoles0 defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentityJSONBodyRoles0 struct {+ IsTemporary *CreateProjectMachineIdentityJSONBodyRoles0IsTemporary `json:"isTemporary,omitempty"`+ Role string `json:"role"`}-// GetJSON404 returns the response for an HTTP 404 `application/json` response-func (r GetServerStatusResponse) GetJSON404() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON404-}+// CreateProjectMachineIdentityJSONBodyRoles0IsTemporary defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentityJSONBodyRoles0IsTemporary bool-// GetJSON422 returns the response for an HTTP 422 `application/json` response-func (r GetServerStatusResponse) GetJSON422() *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON422+// CreateProjectMachineIdentityJSONBodyRoles1 defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentityJSONBodyRoles1 struct {+ IsTemporary CreateProjectMachineIdentityJSONBodyRoles1IsTemporary `json:"isTemporary"`+ Role string `json:"role"`+ TemporaryAccessStartTime time.Time `json:"temporaryAccessStartTime"`+ TemporaryMode CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode `json:"temporaryMode"`+ TemporaryRange string `json:"temporaryRange"`}-// GetJSON500 returns the response for an HTTP 500 `application/json` response-func (r GetServerStatusResponse) GetJSON500() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON500-}+// CreateProjectMachineIdentityJSONBodyRoles1IsTemporary defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentityJSONBodyRoles1IsTemporary bool-// GetBody returns the raw response body bytes-func (r GetServerStatusResponse) GetBody() []byte {- return r.Body-}+// CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode string-// Status returns HTTPResponse.Status-func (r GetServerStatusResponse) Status() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Status- }- return http.StatusText(0)+// CreateProjectMachineIdentityJSONBody_Roles_Item defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentityJSONBody_Roles_Item struct {+ union json.RawMessage}-// StatusCode returns HTTPResponse.StatusCode-func (r GetServerStatusResponse) StatusCode() int {- if r.HTTPResponse != nil {- return r.HTTPResponse.StatusCode- }- return 0-}+// CreateProjectMachineIdentity400JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentity400JSONResponseBodyStatusCode float32-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers-func (r GetServerStatusResponse) ContentType() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Header.Get("Content-Type")- }- return ""-}+// CreateProjectMachineIdentity401JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentity401JSONResponseBodyStatusCode float32-type AdminBootstrapResponse struct {- Body []byte- HTTPResponse *http.Response- // JSON200 the response for an HTTP 200 `application/json` response- JSON200 *struct {- Identity struct {- Credentials struct {- Token string `json:"token"`- } `json:"credentials"`- Id openapi_types.UUID `json:"id"`- Name string `json:"name"`- } `json:"identity"`- Message string `json:"message"`- Organization struct {- Id openapi_types.UUID `json:"id"`- Name string `json:"name"`- Slug string `json:"slug"`- } `json:"organization"`- User struct {- Email *string `json:"email,omitempty"`- FirstName *string `json:"firstName,omitempty"`- Id openapi_types.UUID `json:"id"`- LastName *string `json:"lastName,omitempty"`- SuperAdmin *bool `json:"superAdmin,omitempty"`- 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 AdminBootstrap400JSONResponseBodyStatusCode `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 AdminBootstrap401JSONResponseBodyStatusCode `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 AdminBootstrap403JSONResponseBodyStatusCode `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 AdminBootstrap404JSONResponseBodyStatusCode `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 AdminBootstrap422JSONResponseBodyStatusCode `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 AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`- }-}+// CreateProjectMachineIdentity403JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentity403JSONResponseBodyStatusCode float32-// GetJSON200 returns the response for an HTTP 200 `application/json` response-func (r AdminBootstrapResponse) GetJSON200() *struct {- Identity struct {- Credentials struct {- Token string `json:"token"`- } `json:"credentials"`- Id openapi_types.UUID `json:"id"`- Name string `json:"name"`- } `json:"identity"`- Message string `json:"message"`- Organization struct {- Id openapi_types.UUID `json:"id"`- Name string `json:"name"`- Slug string `json:"slug"`- } `json:"organization"`- User struct {- Email *string `json:"email,omitempty"`- FirstName *string `json:"firstName,omitempty"`- Id openapi_types.UUID `json:"id"`- LastName *string `json:"lastName,omitempty"`- SuperAdmin *bool `json:"superAdmin,omitempty"`- Username string `json:"username"`- } `json:"user"`-} {- return r.JSON200-}+// CreateProjectMachineIdentity404JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentity404JSONResponseBodyStatusCode float32-// GetJSON400 returns the response for an HTTP 400 `application/json` response-func (r AdminBootstrapResponse) GetJSON400() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON400-}+// CreateProjectMachineIdentity422JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentity422JSONResponseBodyStatusCode float32-// GetJSON401 returns the response for an HTTP 401 `application/json` response-func (r AdminBootstrapResponse) GetJSON401() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON401-}+// CreateProjectMachineIdentity500JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.+type CreateProjectMachineIdentity500JSONResponseBodyStatusCode float32-// GetJSON403 returns the response for an HTTP 403 `application/json` response-func (r AdminBootstrapResponse) GetJSON403() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON403-}+// InviteProjectMembersJSONBody defines parameters for InviteProjectMembers.+type InviteProjectMembersJSONBody struct {+ // Emails A list of organization member emails to invite to the project.+ Emails *[]openapi_types.Email `json:"emails,omitempty"`-// GetJSON404 returns the response for an HTTP 404 `application/json` response-func (r AdminBootstrapResponse) GetJSON404() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON404-}+ // RoleSlugs A list of role slugs to assign to the newly created project membership. If nothing is provided, it will default to the Member role.+ RoleSlugs *[]string `json:"roleSlugs,omitempty"`-// GetJSON422 returns the response for an HTTP 422 `application/json` response-func (r AdminBootstrapResponse) GetJSON422() *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON422+ // Usernames A list of usernames to invite to the project.+ Usernames *[]string `json:"usernames,omitempty"`}-// GetJSON500 returns the response for an HTTP 500 `application/json` response-func (r AdminBootstrapResponse) GetJSON500() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON500+// InviteProjectMembers400JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.+type InviteProjectMembers400JSONResponseBodyStatusCode float32++// InviteProjectMembers401JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.+type InviteProjectMembers401JSONResponseBodyStatusCode float32++// InviteProjectMembers403JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.+type InviteProjectMembers403JSONResponseBodyStatusCode float32++// InviteProjectMembers404JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.+type InviteProjectMembers404JSONResponseBodyStatusCode float32++// InviteProjectMembers422JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.+type InviteProjectMembers422JSONResponseBodyStatusCode float32++// InviteProjectMembers500JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.+type InviteProjectMembers500JSONResponseBodyStatusCode float32++// CreateProjectIdentityMembershipJSONBody defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembershipJSONBody struct {+ Role *string `json:"role,omitempty"`++ // Roles A list of role slugs to assign to the newly created identity project membership.+ Roles *[]CreateProjectIdentityMembershipJSONBody_Roles_Item `json:"roles,omitempty"`}-// GetBody returns the raw response body bytes-func (r AdminBootstrapResponse) GetBody() []byte {- return r.Body+// CreateProjectIdentityMembershipJSONBodyRoles0 defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembershipJSONBodyRoles0 struct {+ // IsTemporary The role slug to assign to the newly created identity project membership.+ IsTemporary *CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary `json:"isTemporary,omitempty"`++ // Role The role slug to assign to the newly created identity project membership.+ Role string `json:"role"`}-// Status returns HTTPResponse.Status-func (r AdminBootstrapResponse) Status() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Status- }- return http.StatusText(0)+// CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary bool++// CreateProjectIdentityMembershipJSONBodyRoles1 defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembershipJSONBodyRoles1 struct {+ // IsTemporary The role slug to assign to the newly created identity project membership.+ IsTemporary CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary `json:"isTemporary"`++ // Role The role slug to assign to the newly created identity project membership.+ Role string `json:"role"`++ // TemporaryAccessStartTime The role slug to assign to the newly created identity project membership.+ TemporaryAccessStartTime time.Time `json:"temporaryAccessStartTime"`++ // TemporaryMode The role slug to assign to the newly created identity project membership.+ TemporaryMode CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode `json:"temporaryMode"`++ // TemporaryRange The role slug to assign to the newly created identity project membership.+ TemporaryRange string `json:"temporaryRange"`}-// StatusCode returns HTTPResponse.StatusCode-func (r AdminBootstrapResponse) StatusCode() int {- if r.HTTPResponse != nil {- return r.HTTPResponse.StatusCode- }- return 0+// CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary bool++// CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode string++// CreateProjectIdentityMembershipJSONBody_Roles_Item defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembershipJSONBody_Roles_Item struct {+ union json.RawMessage}-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers-func (r AdminBootstrapResponse) ContentType() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Header.Get("Content-Type")- }- return ""+// CreateProjectIdentityMembership400JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembership400JSONResponseBodyStatusCode float32++// CreateProjectIdentityMembership401JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembership401JSONResponseBodyStatusCode float32++// CreateProjectIdentityMembership403JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembership403JSONResponseBodyStatusCode float32++// CreateProjectIdentityMembership404JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembership404JSONResponseBodyStatusCode float32++// CreateProjectIdentityMembership422JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembership422JSONResponseBodyStatusCode float32++// CreateProjectIdentityMembership500JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.+type CreateProjectIdentityMembership500JSONResponseBodyStatusCode float32++// CreateOrganizationJSONBody defines parameters for CreateOrganization.+type CreateOrganizationJSONBody struct {+ Name string `json:"name"`}-type UpdateAdminConfigResponse struct {- Body []byte- HTTPResponse *http.Response- // JSON200 the response for an HTTP 200 `application/json` response- JSON200 *struct {- Config struct {- AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`- AllowSignUp *bool `json:"allowSignUp,omitempty"`- AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`- AuthConsentContent *string `json:"authConsentContent,omitempty"`- CreatedAt *time.Time `json:"createdAt,omitempty"`- DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`- DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`- DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`- DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`- EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`- FipsEnabled *bool `json:"fipsEnabled,omitempty"`- Id openapi_types.UUID `json:"id"`- Initialized *bool `json:"initialized,omitempty"`- InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`- IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`- IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`- IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`- IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`- IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`- KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`- LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`- OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`- PageFrameContent *string `json:"pageFrameContent,omitempty"`- ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`- PasswordPolicy struct {- Requirements []struct {- Code string `json:"code"`- Flags *string `json:"flags,omitempty"`- IsPrimary bool `json:"isPrimary"`- MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`- Message string `json:"message"`- Patterns []string `json:"patterns"`- ShouldMatch bool `json:"shouldMatch"`- ValidationMessage string `json:"validationMessage"`- } `json:"requirements"`- } `json:"passwordPolicy"`- TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`- } `json:"config"`- }- // 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 UpdateAdminConfig400JSONResponseBodyStatusCode `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 UpdateAdminConfig401JSONResponseBodyStatusCode `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 UpdateAdminConfig403JSONResponseBodyStatusCode `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 UpdateAdminConfig404JSONResponseBodyStatusCode `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 UpdateAdminConfig422JSONResponseBodyStatusCode `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 UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`- }-}+// CreateOrganization400JSONResponseBodyStatusCode defines parameters for CreateOrganization.+type CreateOrganization400JSONResponseBodyStatusCode float32-// GetJSON200 returns the response for an HTTP 200 `application/json` response-func (r UpdateAdminConfigResponse) GetJSON200() *struct {- Config struct {- AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`- AllowSignUp *bool `json:"allowSignUp,omitempty"`- AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`- AuthConsentContent *string `json:"authConsentContent,omitempty"`- CreatedAt *time.Time `json:"createdAt,omitempty"`- DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`- DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`- DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`- DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`- EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`- FipsEnabled *bool `json:"fipsEnabled,omitempty"`- Id openapi_types.UUID `json:"id"`- Initialized *bool `json:"initialized,omitempty"`- InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`- IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`- IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`- IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`- IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`- IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`- KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`- LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`- OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`- PageFrameContent *string `json:"pageFrameContent,omitempty"`- ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`- PasswordPolicy struct {- Requirements []struct {- Code string `json:"code"`- Flags *string `json:"flags,omitempty"`- IsPrimary bool `json:"isPrimary"`- MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`- Message string `json:"message"`- Patterns []string `json:"patterns"`- ShouldMatch bool `json:"shouldMatch"`- ValidationMessage string `json:"validationMessage"`- } `json:"requirements"`- } `json:"passwordPolicy"`- TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`- } `json:"config"`-} {- return r.JSON200-}+// CreateOrganization401JSONResponseBodyStatusCode defines parameters for CreateOrganization.+type CreateOrganization401JSONResponseBodyStatusCode float32-// GetJSON400 returns the response for an HTTP 400 `application/json` response-func (r UpdateAdminConfigResponse) GetJSON400() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON400-}+// CreateOrganization403JSONResponseBodyStatusCode defines parameters for CreateOrganization.+type CreateOrganization403JSONResponseBodyStatusCode float32-// GetJSON401 returns the response for an HTTP 401 `application/json` response-func (r UpdateAdminConfigResponse) GetJSON401() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON401-}+// CreateOrganization404JSONResponseBodyStatusCode defines parameters for CreateOrganization.+type CreateOrganization404JSONResponseBodyStatusCode float32-// GetJSON403 returns the response for an HTTP 403 `application/json` response-func (r UpdateAdminConfigResponse) GetJSON403() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON403-}+// CreateOrganization422JSONResponseBodyStatusCode defines parameters for CreateOrganization.+type CreateOrganization422JSONResponseBodyStatusCode float32-// GetJSON404 returns the response for an HTTP 404 `application/json` response-func (r UpdateAdminConfigResponse) GetJSON404() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON404-}+// CreateOrganization500JSONResponseBodyStatusCode defines parameters for CreateOrganization.+type CreateOrganization500JSONResponseBodyStatusCode float32-// GetJSON422 returns the response for an HTTP 422 `application/json` response-func (r UpdateAdminConfigResponse) GetJSON422() *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON422-}+// DeleteOrganization400JSONResponseBodyStatusCode defines parameters for DeleteOrganization.+type DeleteOrganization400JSONResponseBodyStatusCode float32-// GetJSON500 returns the response for an HTTP 500 `application/json` response-func (r UpdateAdminConfigResponse) GetJSON500() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON500-}+// DeleteOrganization401JSONResponseBodyStatusCode defines parameters for DeleteOrganization.+type DeleteOrganization401JSONResponseBodyStatusCode float32-// GetBody returns the raw response body bytes-func (r UpdateAdminConfigResponse) GetBody() []byte {- return r.Body-}+// DeleteOrganization403JSONResponseBodyStatusCode defines parameters for DeleteOrganization.+type DeleteOrganization403JSONResponseBodyStatusCode float32-// Status returns HTTPResponse.Status-func (r UpdateAdminConfigResponse) Status() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Status- }- return http.StatusText(0)-}+// DeleteOrganization404JSONResponseBodyStatusCode defines parameters for DeleteOrganization.+type DeleteOrganization404JSONResponseBodyStatusCode float32-// StatusCode returns HTTPResponse.StatusCode-func (r UpdateAdminConfigResponse) StatusCode() int {- if r.HTTPResponse != nil {- return r.HTTPResponse.StatusCode- }- return 0-}+// DeleteOrganization422JSONResponseBodyStatusCode defines parameters for DeleteOrganization.+type DeleteOrganization422JSONResponseBodyStatusCode float32-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers-func (r UpdateAdminConfigResponse) ContentType() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Header.Get("Content-Type")- }- return ""+// DeleteOrganization500JSONResponseBodyStatusCode defines parameters for DeleteOrganization.+type DeleteOrganization500JSONResponseBodyStatusCode float32++// LoginV3JSONBody defines parameters for LoginV3.+type LoginV3JSONBody struct {+ CaptchaToken *string `json:"captchaToken,omitempty"`+ Email string `json:"email"`+ Password string `json:"password"`}-type RefreshAuthTokenResponse struct {- Body []byte- HTTPResponse *http.Response- // JSON200 the response for an HTTP 200 `application/json` response- JSON200 *struct {- OrganizationId *string `json:"organizationId,omitempty"`- RefreshToken *string `json:"refreshToken,omitempty"`- SubOrganizationId *string `json:"subOrganizationId,omitempty"`- Token string `json:"token"`- }- // 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 RefreshAuthToken400JSONResponseBodyStatusCode `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 RefreshAuthToken401JSONResponseBodyStatusCode `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 RefreshAuthToken403JSONResponseBodyStatusCode `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 RefreshAuthToken404JSONResponseBodyStatusCode `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 RefreshAuthToken422JSONResponseBodyStatusCode `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 RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`- }+// LoginV3400JSONResponseBodyStatusCode defines parameters for LoginV3.+type LoginV3400JSONResponseBodyStatusCode float32++// LoginV3401JSONResponseBodyStatusCode defines parameters for LoginV3.+type LoginV3401JSONResponseBodyStatusCode float32++// LoginV3403JSONResponseBodyStatusCode defines parameters for LoginV3.+type LoginV3403JSONResponseBodyStatusCode float32++// LoginV3404JSONResponseBodyStatusCode defines parameters for LoginV3.+type LoginV3404JSONResponseBodyStatusCode float32++// LoginV3422JSONResponseBodyStatusCode defines parameters for LoginV3.+type LoginV3422JSONResponseBodyStatusCode float32++// LoginV3500JSONResponseBodyStatusCode defines parameters for LoginV3.+type LoginV3500JSONResponseBodyStatusCode float32++// SelectOrganizationV3JSONBody defines parameters for SelectOrganizationV3.+type SelectOrganizationV3JSONBody struct {+ OrganizationId string `json:"organizationId"`+ UserAgent *SelectOrganizationV3JSONBodyUserAgent `json:"userAgent,omitempty"`}-// GetJSON200 returns the response for an HTTP 200 `application/json` response-func (r RefreshAuthTokenResponse) GetJSON200() *struct {- OrganizationId *string `json:"organizationId,omitempty"`- RefreshToken *string `json:"refreshToken,omitempty"`- SubOrganizationId *string `json:"subOrganizationId,omitempty"`- Token string `json:"token"`-} {- return r.JSON200+// SelectOrganizationV3JSONBodyUserAgent defines parameters for SelectOrganizationV3.+type SelectOrganizationV3JSONBodyUserAgent string++// SelectOrganizationV3400JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.+type SelectOrganizationV3400JSONResponseBodyStatusCode float32++// SelectOrganizationV3401JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.+type SelectOrganizationV3401JSONResponseBodyStatusCode float32++// SelectOrganizationV3403JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.+type SelectOrganizationV3403JSONResponseBodyStatusCode float32++// SelectOrganizationV3404JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.+type SelectOrganizationV3404JSONResponseBodyStatusCode float32++// SelectOrganizationV3422JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.+type SelectOrganizationV3422JSONResponseBodyStatusCode float32++// SelectOrganizationV3500JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.+type SelectOrganizationV3500JSONResponseBodyStatusCode float32++// CompleteAccountSignupV3JSONBody defines parameters for CompleteAccountSignupV3.+type CompleteAccountSignupV3JSONBody struct {+ union json.RawMessage}-// GetJSON400 returns the response for an HTTP 400 `application/json` response-func (r RefreshAuthTokenResponse) GetJSON400() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode RefreshAuthToken400JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON400+// CompleteAccountSignupV3JSONBody0 defines parameters for CompleteAccountSignupV3.+type CompleteAccountSignupV3JSONBody0 struct {+ AttributionSource *string `json:"attributionSource,omitempty"`+ Email string `json:"email"`+ FirstName string `json:"firstName"`+ HubspotUtk *string `json:"hubspotUtk,omitempty"`+ LastName *string `json:"lastName,omitempty"`+ OrganizationName *string `json:"organizationName,omitempty"`+ Password string `json:"password"`+ Type CompleteAccountSignupV3JSONBody0Type `json:"type"`}-// GetJSON401 returns the response for an HTTP 401 `application/json` response-func (r RefreshAuthTokenResponse) GetJSON401() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode RefreshAuthToken401JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON401+// CompleteAccountSignupV3JSONBody0Type defines parameters for CompleteAccountSignupV3.+type CompleteAccountSignupV3JSONBody0Type string++// CompleteAccountSignupV3JSONBody1 defines parameters for CompleteAccountSignupV3.+type CompleteAccountSignupV3JSONBody1 struct {+ Code string `json:"code"`+ HubspotUtk *string `json:"hubspotUtk,omitempty"`+ Type CompleteAccountSignupV3JSONBody1Type `json:"type"`}-// GetJSON403 returns the response for an HTTP 403 `application/json` response-func (r RefreshAuthTokenResponse) GetJSON403() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode RefreshAuthToken403JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON403+// CompleteAccountSignupV3JSONBody1Type defines parameters for CompleteAccountSignupV3.+type CompleteAccountSignupV3JSONBody1Type string++// CompleteAccountSignupV3400JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.+type CompleteAccountSignupV3400JSONResponseBodyStatusCode float32++// CompleteAccountSignupV3401JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.+type CompleteAccountSignupV3401JSONResponseBodyStatusCode float32++// CompleteAccountSignupV3403JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.+type CompleteAccountSignupV3403JSONResponseBodyStatusCode float32++// CompleteAccountSignupV3404JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.+type CompleteAccountSignupV3404JSONResponseBodyStatusCode float32++// CompleteAccountSignupV3422JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.+type CompleteAccountSignupV3422JSONResponseBodyStatusCode float32++// CompleteAccountSignupV3500JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.+type CompleteAccountSignupV3500JSONResponseBodyStatusCode float32++// AdminBootstrapJSONRequestBody defines body for AdminBootstrap for application/json ContentType.+type AdminBootstrapJSONRequestBody AdminBootstrapJSONBody++// UpdateAdminConfigJSONRequestBody defines body for UpdateAdminConfig for application/json ContentType.+type UpdateAdminConfigJSONRequestBody UpdateAdminConfigJSONBody++// AttachUniversalAuthJSONRequestBody defines body for AttachUniversalAuth for application/json ContentType.+type AttachUniversalAuthJSONRequestBody AttachUniversalAuthJSONBody++// CreateUniversalAuthClientSecretJSONRequestBody defines body for CreateUniversalAuthClientSecret for application/json ContentType.+type CreateUniversalAuthClientSecretJSONRequestBody CreateUniversalAuthClientSecretJSONBody++// LoginWithUniversalAuthJSONRequestBody defines body for LoginWithUniversalAuth for application/json ContentType.+type LoginWithUniversalAuthJSONRequestBody LoginWithUniversalAuthJSONBody++// CreateMachineIdentityJSONRequestBody defines body for CreateMachineIdentity for application/json ContentType.+type CreateMachineIdentityJSONRequestBody CreateMachineIdentityJSONBody++// InviteUsersToOrganizationJSONRequestBody defines body for InviteUsersToOrganization for application/json ContentType.+type InviteUsersToOrganizationJSONRequestBody InviteUsersToOrganizationJSONBody++// VerifyUserToOrganizationJSONRequestBody defines body for VerifyUserToOrganization for application/json ContentType.+type VerifyUserToOrganizationJSONRequestBody VerifyUserToOrganizationJSONBody++// CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.+type CreateProjectJSONRequestBody CreateProjectJSONBody++// CreateProjectMachineIdentityJSONRequestBody defines body for CreateProjectMachineIdentity for application/json ContentType.+type CreateProjectMachineIdentityJSONRequestBody CreateProjectMachineIdentityJSONBody++// InviteProjectMembersJSONRequestBody defines body for InviteProjectMembers for application/json ContentType.+type InviteProjectMembersJSONRequestBody InviteProjectMembersJSONBody++// CreateProjectIdentityMembershipJSONRequestBody defines body for CreateProjectIdentityMembership for application/json ContentType.+type CreateProjectIdentityMembershipJSONRequestBody CreateProjectIdentityMembershipJSONBody++// CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.+type CreateOrganizationJSONRequestBody CreateOrganizationJSONBody++// LoginV3JSONRequestBody defines body for LoginV3 for application/json ContentType.+type LoginV3JSONRequestBody LoginV3JSONBody++// SelectOrganizationV3JSONRequestBody defines body for SelectOrganizationV3 for application/json ContentType.+type SelectOrganizationV3JSONRequestBody SelectOrganizationV3JSONBody++// CompleteAccountSignupV3JSONRequestBody defines body for CompleteAccountSignupV3 for application/json ContentType.+type CompleteAccountSignupV3JSONRequestBody CompleteAccountSignupV3JSONBody++// AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 returns the union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as a CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0+func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0() (CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0, error) {+ var body CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0+ err := json.Unmarshal(t.union, &body)+ return body, err}-// GetJSON404 returns the response for an HTTP 404 `application/json` response-func (r RefreshAuthTokenResponse) GetJSON404() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode RefreshAuthToken404JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON404+// FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 overwrites any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0) error {+ b, err := json.Marshal(v)+ t.union = b+ return err}-// GetJSON422 returns the response for an HTTP 422 `application/json` response-func (r RefreshAuthTokenResponse) GetJSON422() *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode RefreshAuthToken422JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON422+// MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 performs a merge with any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy, using the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0) error {+ b, err := json.Marshal(v)+ if err != nil {+ return err+ }++ merged, err := runtime.JSONMerge(t.union, b)+ t.union = merged+ return err}-// GetJSON500 returns the response for an HTTP 500 `application/json` response-func (r RefreshAuthTokenResponse) GetJSON500() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON500+// AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 returns the union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as a CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1+func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1() (CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1, error) {+ var body CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1+ err := json.Unmarshal(t.union, &body)+ return body, err}-// GetBody returns the raw response body bytes-func (r RefreshAuthTokenResponse) GetBody() []byte {- return r.Body+// FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 overwrites any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1) error {+ b, err := json.Marshal(v)+ t.union = b+ return err}-// Status returns HTTPResponse.Status-func (r RefreshAuthTokenResponse) Status() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Status+// MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 performs a merge with any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy, using the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1) error {+ b, err := json.Marshal(v)+ if err != nil {+ return err}- return http.StatusText(0)++ merged, err := runtime.JSONMerge(t.union, b)+ t.union = merged+ return err}-// StatusCode returns HTTPResponse.StatusCode-func (r RefreshAuthTokenResponse) StatusCode() int {- if r.HTTPResponse != nil {- return r.HTTPResponse.StatusCode- }- return 0+func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MarshalJSON() ([]byte, error) {+ b, err := t.union.MarshalJSON()+ return b, err}-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers-func (r RefreshAuthTokenResponse) ContentType() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Header.Get("Content-Type")- }- return ""+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) UnmarshalJSON(b []byte) error {+ err := t.union.UnmarshalJSON(b)+ return err}-type GetOrganizationPlanResponse struct {- Body []byte- HTTPResponse *http.Response- // JSON200 the response for an HTTP 200 `application/json` response- JSON200 *struct {- Plan interface{} `json:"plan,omitempty"`+// AsCreateProjectMachineIdentityJSONBodyRoles0 returns the union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as a CreateProjectMachineIdentityJSONBodyRoles0+func (t CreateProjectMachineIdentityJSONBody_Roles_Item) AsCreateProjectMachineIdentityJSONBodyRoles0() (CreateProjectMachineIdentityJSONBodyRoles0, error) {+ var body CreateProjectMachineIdentityJSONBodyRoles0+ err := json.Unmarshal(t.union, &body)+ return body, err+}++// FromCreateProjectMachineIdentityJSONBodyRoles0 overwrites any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as the provided CreateProjectMachineIdentityJSONBodyRoles0+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) FromCreateProjectMachineIdentityJSONBodyRoles0(v CreateProjectMachineIdentityJSONBodyRoles0) error {+ b, err := json.Marshal(v)+ t.union = b+ return err+}++// MergeCreateProjectMachineIdentityJSONBodyRoles0 performs a merge with any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item, using the provided CreateProjectMachineIdentityJSONBodyRoles0+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) MergeCreateProjectMachineIdentityJSONBodyRoles0(v CreateProjectMachineIdentityJSONBodyRoles0) error {+ b, err := json.Marshal(v)+ if err != nil {+ return err}- // 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 GetOrganizationPlan400JSONResponseBodyStatusCode `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 GetOrganizationPlan401JSONResponseBodyStatusCode `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 GetOrganizationPlan403JSONResponseBodyStatusCode `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 GetOrganizationPlan404JSONResponseBodyStatusCode `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 GetOrganizationPlan422JSONResponseBodyStatusCode `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 GetOrganizationPlan500JSONResponseBodyStatusCode `json:"statusCode"`- }-}-// GetJSON200 returns the response for an HTTP 200 `application/json` response-func (r GetOrganizationPlanResponse) GetJSON200() *struct {- Plan interface{} `json:"plan,omitempty"`-} {- return r.JSON200+ merged, err := runtime.JSONMerge(t.union, b)+ t.union = merged+ return err}-// GetJSON400 returns the response for an HTTP 400 `application/json` response-func (r GetOrganizationPlanResponse) GetJSON400() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode GetOrganizationPlan400JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON400+// AsCreateProjectMachineIdentityJSONBodyRoles1 returns the union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as a CreateProjectMachineIdentityJSONBodyRoles1+func (t CreateProjectMachineIdentityJSONBody_Roles_Item) AsCreateProjectMachineIdentityJSONBodyRoles1() (CreateProjectMachineIdentityJSONBodyRoles1, error) {+ var body CreateProjectMachineIdentityJSONBodyRoles1+ err := json.Unmarshal(t.union, &body)+ return body, err}-// GetJSON401 returns the response for an HTTP 401 `application/json` response-func (r GetOrganizationPlanResponse) GetJSON401() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode GetOrganizationPlan401JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON401+// FromCreateProjectMachineIdentityJSONBodyRoles1 overwrites any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as the provided CreateProjectMachineIdentityJSONBodyRoles1+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) FromCreateProjectMachineIdentityJSONBodyRoles1(v CreateProjectMachineIdentityJSONBodyRoles1) error {+ b, err := json.Marshal(v)+ t.union = b+ return err}-// GetJSON403 returns the response for an HTTP 403 `application/json` response-func (r GetOrganizationPlanResponse) GetJSON403() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode GetOrganizationPlan403JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON403+// MergeCreateProjectMachineIdentityJSONBodyRoles1 performs a merge with any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item, using the provided CreateProjectMachineIdentityJSONBodyRoles1+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) MergeCreateProjectMachineIdentityJSONBodyRoles1(v CreateProjectMachineIdentityJSONBodyRoles1) error {+ b, err := json.Marshal(v)+ if err != nil {+ return err+ }++ merged, err := runtime.JSONMerge(t.union, b)+ t.union = merged+ return err}-// GetJSON404 returns the response for an HTTP 404 `application/json` response-func (r GetOrganizationPlanResponse) GetJSON404() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode GetOrganizationPlan404JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON404+func (t CreateProjectMachineIdentityJSONBody_Roles_Item) MarshalJSON() ([]byte, error) {+ b, err := t.union.MarshalJSON()+ return b, err}-// GetJSON422 returns the response for an HTTP 422 `application/json` response-func (r GetOrganizationPlanResponse) GetJSON422() *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode GetOrganizationPlan422JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON422+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) UnmarshalJSON(b []byte) error {+ err := t.union.UnmarshalJSON(b)+ return err}-// GetJSON500 returns the response for an HTTP 500 `application/json` response-func (r GetOrganizationPlanResponse) GetJSON500() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode GetOrganizationPlan500JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON500+// AsCreateProjectIdentityMembershipJSONBodyRoles0 returns the union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as a CreateProjectIdentityMembershipJSONBodyRoles0+func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) AsCreateProjectIdentityMembershipJSONBodyRoles0() (CreateProjectIdentityMembershipJSONBodyRoles0, error) {+ var body CreateProjectIdentityMembershipJSONBodyRoles0+ err := json.Unmarshal(t.union, &body)+ return body, err}-// GetBody returns the raw response body bytes-func (r GetOrganizationPlanResponse) GetBody() []byte {- return r.Body+// FromCreateProjectIdentityMembershipJSONBodyRoles0 overwrites any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as the provided CreateProjectIdentityMembershipJSONBodyRoles0+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) FromCreateProjectIdentityMembershipJSONBodyRoles0(v CreateProjectIdentityMembershipJSONBodyRoles0) error {+ b, err := json.Marshal(v)+ t.union = b+ return err}-// Status returns HTTPResponse.Status-func (r GetOrganizationPlanResponse) Status() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Status+// MergeCreateProjectIdentityMembershipJSONBodyRoles0 performs a merge with any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item, using the provided CreateProjectIdentityMembershipJSONBodyRoles0+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) MergeCreateProjectIdentityMembershipJSONBodyRoles0(v CreateProjectIdentityMembershipJSONBodyRoles0) error {+ b, err := json.Marshal(v)+ if err != nil {+ return err}- return http.StatusText(0)++ merged, err := runtime.JSONMerge(t.union, b)+ t.union = merged+ return err}-// StatusCode returns HTTPResponse.StatusCode-func (r GetOrganizationPlanResponse) StatusCode() int {- if r.HTTPResponse != nil {- return r.HTTPResponse.StatusCode- }- return 0+// AsCreateProjectIdentityMembershipJSONBodyRoles1 returns the union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as a CreateProjectIdentityMembershipJSONBodyRoles1+func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) AsCreateProjectIdentityMembershipJSONBodyRoles1() (CreateProjectIdentityMembershipJSONBodyRoles1, error) {+ var body CreateProjectIdentityMembershipJSONBodyRoles1+ err := json.Unmarshal(t.union, &body)+ return body, err}-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers-func (r GetOrganizationPlanResponse) ContentType() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Header.Get("Content-Type")- }- return ""+// FromCreateProjectIdentityMembershipJSONBodyRoles1 overwrites any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as the provided CreateProjectIdentityMembershipJSONBodyRoles1+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) FromCreateProjectIdentityMembershipJSONBodyRoles1(v CreateProjectIdentityMembershipJSONBodyRoles1) error {+ b, err := json.Marshal(v)+ t.union = b+ return err}-type CreateProjectResponse struct {- Body []byte- HTTPResponse *http.Response- // JSON200 the response for an HTTP 200 `application/json` response- JSON200 *struct {- Project struct {- UnderscoreId string `json:"_id"`- AuditLogsRetentionDays *float32 `json:"auditLogsRetentionDays,omitempty"`- AutoCapitalization *bool `json:"autoCapitalization,omitempty"`- CreatedAt time.Time `json:"createdAt"`- DefaultProduct *string `json:"defaultProduct,omitempty"`- DeletedEnvironments []struct {- DeleteAfter time.Time `json:"deleteAfter"`- DeletedBy *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy `json:"deletedBy"`- Id string `json:"id"`- Name string `json:"name"`- Slug string `json:"slug"`- SoftDeletedAt time.Time `json:"softDeletedAt"`- } `json:"deletedEnvironments"`- Description *string `json:"description,omitempty"`- EnforceEncryptedSecretManagerSecretMetadata *bool `json:"enforceEncryptedSecretManagerSecretMetadata,omitempty"`- Environments []struct {- Id string `json:"id"`- Name string `json:"name"`- Slug string `json:"slug"`- } `json:"environments"`- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`- Id string `json:"id"`- IsLegacyAdditionalPrivilegesEnabled *bool `json:"isLegacyAdditionalPrivilegesEnabled,omitempty"`- KmsCertificateKeyId *openapi_types.UUID `json:"kmsCertificateKeyId,omitempty"`- Name string `json:"name"`- OrgId openapi_types.UUID `json:"orgId"`- PitVersionLimit *float32 `json:"pitVersionLimit,omitempty"`- SecretDetectionIgnoreValues *[]string `json:"secretDetectionIgnoreValues,omitempty"`- SecretSharing *bool `json:"secretSharing,omitempty"`- ShowSnapshotsLegacy *bool `json:"showSnapshotsLegacy,omitempty"`- Slug string `json:"slug"`- Type string `json:"type"`- UpdatedAt time.Time `json:"updatedAt"`- UpgradeStatus *string `json:"upgradeStatus,omitempty"`- Version *float32 `json:"version,omitempty"`- } `json:"project"`- }- // 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 CreateProject400JSONResponseBodyStatusCode `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 CreateProject401JSONResponseBodyStatusCode `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 CreateProject403JSONResponseBodyStatusCode `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 CreateProject404JSONResponseBodyStatusCode `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 CreateProject422JSONResponseBodyStatusCode `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 CreateProject500JSONResponseBodyStatusCode `json:"statusCode"`+// MergeCreateProjectIdentityMembershipJSONBodyRoles1 performs a merge with any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item, using the provided CreateProjectIdentityMembershipJSONBodyRoles1+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) MergeCreateProjectIdentityMembershipJSONBodyRoles1(v CreateProjectIdentityMembershipJSONBodyRoles1) error {+ b, err := json.Marshal(v)+ if err != nil {+ return err}++ merged, err := runtime.JSONMerge(t.union, b)+ t.union = merged+ return err}-// GetJSON200 returns the response for an HTTP 200 `application/json` response-func (r CreateProjectResponse) GetJSON200() *struct {- Project struct {- UnderscoreId string `json:"_id"`- AuditLogsRetentionDays *float32 `json:"auditLogsRetentionDays,omitempty"`- AutoCapitalization *bool `json:"autoCapitalization,omitempty"`- CreatedAt time.Time `json:"createdAt"`- DefaultProduct *string `json:"defaultProduct,omitempty"`- DeletedEnvironments []struct {- DeleteAfter time.Time `json:"deleteAfter"`- DeletedBy *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy `json:"deletedBy"`- Id string `json:"id"`- Name string `json:"name"`- Slug string `json:"slug"`- SoftDeletedAt time.Time `json:"softDeletedAt"`- } `json:"deletedEnvironments"`- Description *string `json:"description,omitempty"`- EnforceEncryptedSecretManagerSecretMetadata *bool `json:"enforceEncryptedSecretManagerSecretMetadata,omitempty"`- Environments []struct {- Id string `json:"id"`- Name string `json:"name"`- Slug string `json:"slug"`- } `json:"environments"`- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`- Id string `json:"id"`- IsLegacyAdditionalPrivilegesEnabled *bool `json:"isLegacyAdditionalPrivilegesEnabled,omitempty"`- KmsCertificateKeyId *openapi_types.UUID `json:"kmsCertificateKeyId,omitempty"`- Name string `json:"name"`- OrgId openapi_types.UUID `json:"orgId"`- PitVersionLimit *float32 `json:"pitVersionLimit,omitempty"`- SecretDetectionIgnoreValues *[]string `json:"secretDetectionIgnoreValues,omitempty"`- SecretSharing *bool `json:"secretSharing,omitempty"`- ShowSnapshotsLegacy *bool `json:"showSnapshotsLegacy,omitempty"`- Slug string `json:"slug"`- Type string `json:"type"`- UpdatedAt time.Time `json:"updatedAt"`- UpgradeStatus *string `json:"upgradeStatus,omitempty"`- Version *float32 `json:"version,omitempty"`- } `json:"project"`-} {- return r.JSON200+func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) MarshalJSON() ([]byte, error) {+ b, err := t.union.MarshalJSON()+ return b, err}-// GetJSON400 returns the response for an HTTP 400 `application/json` response-func (r CreateProjectResponse) GetJSON400() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateProject400JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON400+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) UnmarshalJSON(b []byte) error {+ err := t.union.UnmarshalJSON(b)+ return err}-// GetJSON401 returns the response for an HTTP 401 `application/json` response-func (r CreateProjectResponse) GetJSON401() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateProject401JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON401+// AsCompleteAccountSignupV3JSONBody0 returns the union data inside the CompleteAccountSignupV3JSONBody as a CompleteAccountSignupV3JSONBody0+func (t CompleteAccountSignupV3JSONBody) AsCompleteAccountSignupV3JSONBody0() (CompleteAccountSignupV3JSONBody0, error) {+ var body CompleteAccountSignupV3JSONBody0+ err := json.Unmarshal(t.union, &body)+ return body, err}-// GetJSON403 returns the response for an HTTP 403 `application/json` response-func (r CreateProjectResponse) GetJSON403() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateProject403JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON403+// FromCompleteAccountSignupV3JSONBody0 overwrites any union data inside the CompleteAccountSignupV3JSONBody as the provided CompleteAccountSignupV3JSONBody0+func (t *CompleteAccountSignupV3JSONBody) FromCompleteAccountSignupV3JSONBody0(v CompleteAccountSignupV3JSONBody0) error {+ b, err := json.Marshal(v)+ t.union = b+ return err}-// GetJSON404 returns the response for an HTTP 404 `application/json` response-func (r CreateProjectResponse) GetJSON404() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateProject404JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON404-}+// MergeCompleteAccountSignupV3JSONBody0 performs a merge with any union data inside the CompleteAccountSignupV3JSONBody, using the provided CompleteAccountSignupV3JSONBody0+func (t *CompleteAccountSignupV3JSONBody) MergeCompleteAccountSignupV3JSONBody0(v CompleteAccountSignupV3JSONBody0) error {+ b, err := json.Marshal(v)+ if err != nil {+ return err+ }-// GetJSON422 returns the response for an HTTP 422 `application/json` response-func (r CreateProjectResponse) GetJSON422() *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode CreateProject422JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON422+ merged, err := runtime.JSONMerge(t.union, b)+ t.union = merged+ return err}-// GetJSON500 returns the response for an HTTP 500 `application/json` response-func (r CreateProjectResponse) GetJSON500() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateProject500JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON500+// AsCompleteAccountSignupV3JSONBody1 returns the union data inside the CompleteAccountSignupV3JSONBody as a CompleteAccountSignupV3JSONBody1+func (t CompleteAccountSignupV3JSONBody) AsCompleteAccountSignupV3JSONBody1() (CompleteAccountSignupV3JSONBody1, error) {+ var body CompleteAccountSignupV3JSONBody1+ err := json.Unmarshal(t.union, &body)+ return body, err}-// GetBody returns the raw response body bytes-func (r CreateProjectResponse) GetBody() []byte {- return r.Body+// FromCompleteAccountSignupV3JSONBody1 overwrites any union data inside the CompleteAccountSignupV3JSONBody as the provided CompleteAccountSignupV3JSONBody1+func (t *CompleteAccountSignupV3JSONBody) FromCompleteAccountSignupV3JSONBody1(v CompleteAccountSignupV3JSONBody1) error {+ b, err := json.Marshal(v)+ t.union = b+ return err}-// Status returns HTTPResponse.Status-func (r CreateProjectResponse) Status() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Status+// MergeCompleteAccountSignupV3JSONBody1 performs a merge with any union data inside the CompleteAccountSignupV3JSONBody, using the provided CompleteAccountSignupV3JSONBody1+func (t *CompleteAccountSignupV3JSONBody) MergeCompleteAccountSignupV3JSONBody1(v CompleteAccountSignupV3JSONBody1) error {+ b, err := json.Marshal(v)+ if err != nil {+ return err}- return http.StatusText(0)++ merged, err := runtime.JSONMerge(t.union, b)+ t.union = merged+ return err}-// StatusCode returns HTTPResponse.StatusCode-func (r CreateProjectResponse) StatusCode() int {- if r.HTTPResponse != nil {- return r.HTTPResponse.StatusCode- }- return 0+func (t CompleteAccountSignupV3JSONBody) MarshalJSON() ([]byte, error) {+ b, err := t.union.MarshalJSON()+ return b, err}-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers-func (r CreateProjectResponse) ContentType() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Header.Get("Content-Type")- }- return ""+func (t *CompleteAccountSignupV3JSONBody) UnmarshalJSON(b []byte) error {+ err := t.union.UnmarshalJSON(b)+ return err}-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"`- 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"`+// RequestEditorFn is the function signature for the RequestEditor callback function+type RequestEditorFn func(ctx context.Context, req *http.Request) error++// Doer performs HTTP requests.+//+// The standard http.Client implements this interface.+type HttpRequestDoer interface {+ Do(req *http.Request) (*http.Response, error)+}++// Client which conforms to the OpenAPI3 specification for this service.+type Client struct {+ // The endpoint of the server conforming to this interface, with scheme,+ // https://api.deepmap.com for example. This can contain a path relative+ // to the server, such as https://api.deepmap.com/dev-test, and all the+ // paths in the swagger spec will be appended to the server.+ Server string++ // Doer for performing requests, typically a *http.Client with any+ // customized settings, such as certificate chains.+ Client HttpRequestDoer++ // A list of callbacks for modifying requests which are generated before sending over+ // the network.+ RequestEditors []RequestEditorFn+}++// ClientOption allows setting custom parameters during construction+type ClientOption func(*Client) error++// Creates a new Client, with reasonable defaults+func NewClient(server string, opts ...ClientOption) (*Client, error) {+ // create a client with sane default values+ client := Client{+ Server: server,}- // 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"`+ // mutate client and add all optional params+ for _, o := range opts {+ if err := o(&client); err != nil {+ return nil, err+ }}- // 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"`+ // ensure the server URL always has a trailing slash+ if !strings.HasSuffix(client.Server, "/") {+ client.Server += "/"}- // 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"`+ // create httpClient, if not already present+ if client.Client == nil {+ client.Client = &http.Client{}}+ return &client, nil}-// 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"`- 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+// WithHTTPClient allows overriding the default Doer, which is+// automatically created using http.Client. This is useful for tests.+func WithHTTPClient(doer HttpRequestDoer) ClientOption {+ return func(c *Client) error {+ c.Client = doer+ return nil+ }}-// 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+// WithRequestEditorFn allows setting up a callback function, which will be+// called right before sending the request. This can be used to mutate the request.+func WithRequestEditorFn(fn RequestEditorFn) ClientOption {+ return func(c *Client) error {+ c.RequestEditors = append(c.RequestEditors, fn)+ return nil+ }}-// 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-}+// The interface specification for the client above.+type ClientInterface interface {-// 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-}+ // GetServerStatus performs a GET /api/status (the `GetServerStatus` operationId) request.+ GetServerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)-// 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-}+ // AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,+ // with any type of body and a specified content type.+ AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)-// 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-}+ // AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.+ // Takes a body of the `application/json` content type.+ AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)-// 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-}+ // UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,+ // with any type of body and a specified content type.+ UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)-// GetBody returns the raw response body bytes-func (r CreateOrganizationResponse) GetBody() []byte {- return r.Body-}+ // UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.+ // Takes a body of the `application/json` content type.+ UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)-// Status returns HTTPResponse.Status-func (r CreateOrganizationResponse) Status() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Status- }- return http.StatusText(0)+ // RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.+ RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)++ // AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,+ // with any type of body and a specified content type.+ //+ // Attach Universal Auth configuration onto machine identity.+ AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.+ // Takes a body of the `application/json` content type.+ //+ // Attach Universal Auth configuration onto machine identity.+ AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,+ // with any type of body and a specified content type.+ //+ // Create Universal Auth Client Secret for machine identity.+ CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.+ // Takes a body of the `application/json` content type.+ //+ // Create Universal Auth Client Secret for machine identity.+ CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,+ // with any type of body and a specified content type.+ //+ // Login with Universal Auth for machine identity.+ LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.+ // Takes a body of the `application/json` content type.+ //+ // Login with Universal Auth for machine identity.+ LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,+ // with any type of body and a specified content type.+ //+ // Create machine identity.+ CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.+ // Takes a body of the `application/json` content type.+ //+ // Create machine identity.+ CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,+ // with any type of body and a specified content type.+ InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.+ // Takes a body of the `application/json` content type.+ InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,+ // with any type of body and a specified content type.+ VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // VerifyUserToOrganization performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.+ // Takes a body of the `application/json` content type.+ VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.+ GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,+ // with any type of body and a specified content type.+ //+ // Create a new project.+ CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.+ // Takes a body of the `application/json` content type.+ //+ // Create a new project.+ CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // ListProjectMachineIdentities performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.+ //+ // List identities in a project.+ ListProjectMachineIdentities(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateProjectMachineIdentityWithBody performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,+ // with any type of body and a specified content type.+ //+ // Create an identity in a project.+ CreateProjectMachineIdentityWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateProjectMachineIdentity performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.+ // Takes a body of the `application/json` content type.+ //+ // Create an identity in a project.+ CreateProjectMachineIdentity(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // InviteProjectMembersWithBody performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,+ // with any type of body and a specified content type.+ //+ // Invite members to project.+ InviteProjectMembersWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // InviteProjectMembers performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.+ // Takes a body of the `application/json` content type.+ //+ // Invite members to project.+ InviteProjectMembers(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateProjectIdentityMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,+ // with any type of body and a specified content type.+ //+ // Create project identity membership.+ CreateProjectIdentityMembershipWithBody(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateProjectIdentityMembership performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.+ // Takes a body of the `application/json` content type.+ //+ // Create project identity membership.+ CreateProjectIdentityMembership(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,+ // with any type of body and a specified content type.+ CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.+ // Takes a body of the `application/json` content type.+ CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.+ DeleteOrganization(ctx context.Context, organizationId string, 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)++ // LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.+ // Takes a body of the `application/json` content type.+ LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,+ // with any type of body and a specified content type.+ SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.+ // Takes a body of the `application/json` content type.+ SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CompleteAccountSignupV3WithBody performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,+ // with any type of body and a specified content type.+ CompleteAccountSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CompleteAccountSignupV3 performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.+ // Takes a body of the `application/json` content type.+ CompleteAccountSignupV3(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)}-// StatusCode returns HTTPResponse.StatusCode-func (r CreateOrganizationResponse) StatusCode() int {- if r.HTTPResponse != nil {- return r.HTTPResponse.StatusCode+// GetServerStatus performs a GET /api/status (the `GetServerStatus` operationId) request.+func (c *Client) GetServerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewGetServerStatusRequest(c.Server)+ if err != nil {+ return nil, err}- return 0+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)}-// 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")+// AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,+// with any type of body and a specified content type.+func (c *Client) AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewAdminBootstrapRequestWithBody(c.Server, contentType, body)+ if err != nil {+ return nil, err}- return ""+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)}-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"`- PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`- PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`- PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,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"`+// AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.+// Takes a body of the `application/json` content type.+func (c *Client) AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewAdminBootstrapRequest(c.Server, body)+ if err != nil {+ return nil, err}- // 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 DeleteOrganization400JSONResponseBodyStatusCode `json:"statusCode"`+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err}- // 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 DeleteOrganization401JSONResponseBodyStatusCode `json:"statusCode"`+ return c.Client.Do(req)+}++// UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,+// with any type of body and a specified content type.+func (c *Client) UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewUpdateAdminConfigRequestWithBody(c.Server, contentType, body)+ if err != nil {+ return nil, err}- // 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 DeleteOrganization403JSONResponseBodyStatusCode `json:"statusCode"`+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err}- // 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 DeleteOrganization404JSONResponseBodyStatusCode `json:"statusCode"`+ return c.Client.Do(req)+}++// UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.+// Takes a body of the `application/json` content type.+func (c *Client) UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewUpdateAdminConfigRequest(c.Server, body)+ if err != nil {+ return nil, err}- // 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 DeleteOrganization422JSONResponseBodyStatusCode `json:"statusCode"`+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err}- // 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 DeleteOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+ return c.Client.Do(req)+}++// RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.+func (c *Client) RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewRefreshAuthTokenRequest(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)}-// GetJSON200 returns the response for an HTTP 200 `application/json` response-func (r DeleteOrganizationResponse) GetJSON200() *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"`- 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+// AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,+// with any type of body and a specified content type.+//+// Attach Universal Auth configuration onto machine identity.+func (c *Client) AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewAttachUniversalAuthRequestWithBody(c.Server, identityId, 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)}-// GetJSON400 returns the response for an HTTP 400 `application/json` response-func (r DeleteOrganizationResponse) GetJSON400() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode DeleteOrganization400JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON400+// AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.+// Takes a body of the `application/json` content type.+//+// Attach Universal Auth configuration onto machine identity.+func (c *Client) AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewAttachUniversalAuthRequest(c.Server, identityId, 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)+}++// CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,+// with any type of body and a specified content type.+//+// Create Universal Auth Client Secret for machine identity.+func (c *Client) CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateUniversalAuthClientSecretRequestWithBody(c.Server, identityId, 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)+}++// CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.+// Takes a body of the `application/json` content type.+//+// Create Universal Auth Client Secret for machine identity.+func (c *Client) CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateUniversalAuthClientSecretRequest(c.Server, identityId, 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)+}++// LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,+// with any type of body and a specified content type.+//+// Login with Universal Auth for machine identity.+func (c *Client) LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewLoginWithUniversalAuthRequestWithBody(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)+}++// LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.+// Takes a body of the `application/json` content type.+//+// Login with Universal Auth for machine identity.+func (c *Client) LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewLoginWithUniversalAuthRequest(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)}-// GetJSON401 returns the response for an HTTP 401 `application/json` response-func (r DeleteOrganizationResponse) GetJSON401() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode DeleteOrganization401JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON401-}+// CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,+// with any type of body and a specified content type.+//+// Create machine identity.+func (c *Client) CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateMachineIdentityRequestWithBody(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)+}++// CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.+// Takes a body of the `application/json` content type.+//+// Create machine identity.+func (c *Client) CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateMachineIdentityRequest(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)+}++// InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,+// with any type of body and a specified content type.+func (c *Client) InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewInviteUsersToOrganizationRequestWithBody(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)+}++// InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.+// Takes a body of the `application/json` content type.+func (c *Client) InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewInviteUsersToOrganizationRequest(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)+}++// VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,+// with any type of body and a specified content type.+func (c *Client) VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewVerifyUserToOrganizationRequestWithBody(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)+}++// VerifyUserToOrganization performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.+// Takes a body of the `application/json` content type.+func (c *Client) VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewVerifyUserToOrganizationRequest(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)+}++// GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.+func (c *Client) GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewGetOrganizationPlanRequest(c.Server, organizationId, 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)+}++// CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,+// with any type of body and a specified content type.+//+// Create a new project.+func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateProjectRequestWithBody(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)+}++// CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.+// Takes a body of the `application/json` content type.+//+// Create a new project.+func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateProjectRequest(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)+}++// ListProjectMachineIdentities performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.+//+// List identities in a project.+func (c *Client) ListProjectMachineIdentities(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewListProjectMachineIdentitiesRequest(c.Server, projectId, 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)+}++// CreateProjectMachineIdentityWithBody performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,+// with any type of body and a specified content type.+//+// Create an identity in a project.+func (c *Client) CreateProjectMachineIdentityWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateProjectMachineIdentityRequestWithBody(c.Server, projectId, 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)+}++// CreateProjectMachineIdentity performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.+// Takes a body of the `application/json` content type.+//+// Create an identity in a project.+func (c *Client) CreateProjectMachineIdentity(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateProjectMachineIdentityRequest(c.Server, projectId, 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)+}++// InviteProjectMembersWithBody performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,+// with any type of body and a specified content type.+//+// Invite members to project.+func (c *Client) InviteProjectMembersWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewInviteProjectMembersRequestWithBody(c.Server, projectId, 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)+}++// InviteProjectMembers performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.+// Takes a body of the `application/json` content type.+//+// Invite members to project.+func (c *Client) InviteProjectMembers(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewInviteProjectMembersRequest(c.Server, projectId, 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)+}++// CreateProjectIdentityMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,+// with any type of body and a specified content type.+//+// Create project identity membership.+func (c *Client) CreateProjectIdentityMembershipWithBody(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateProjectIdentityMembershipRequestWithBody(c.Server, projectId, identityId, 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)+}++// CreateProjectIdentityMembership performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.+// Takes a body of the `application/json` content type.+//+// Create project identity membership.+func (c *Client) CreateProjectIdentityMembership(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateProjectIdentityMembershipRequest(c.Server, projectId, identityId, 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)+}++// CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,+// with any type of body and a specified content type.+func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateOrganizationRequestWithBody(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)+}++// CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.+// Takes a body of the `application/json` content type.+func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateOrganizationRequest(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)+}++// DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.+func (c *Client) DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewDeleteOrganizationRequest(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)+}++// 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) {+ req, err := NewLoginV3RequestWithBody(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)+}++// LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.+// Takes a body of the `application/json` content type.+func (c *Client) LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewLoginV3Request(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)+}++// SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,+// with any type of body and a specified content type.+func (c *Client) SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewSelectOrganizationV3RequestWithBody(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)+}++// SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.+// Takes a body of the `application/json` content type.+func (c *Client) SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewSelectOrganizationV3Request(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)+}++// CompleteAccountSignupV3WithBody performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,+// with any type of body and a specified content type.+func (c *Client) CompleteAccountSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCompleteAccountSignupV3RequestWithBody(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)+}++// CompleteAccountSignupV3 performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.+// Takes a body of the `application/json` content type.+func (c *Client) CompleteAccountSignupV3(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCompleteAccountSignupV3Request(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)+}++// NewGetServerStatusRequest constructs an http.Request for the GetServerStatus method+func NewGetServerStatusRequest(server string) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/status")+ 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+}++// NewAdminBootstrapRequest calls the generic AdminBootstrap builder with application/json body+func NewAdminBootstrapRequest(server string, body AdminBootstrapJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewAdminBootstrapRequestWithBody(server, "application/json", bodyReader)+}++// NewAdminBootstrapRequestWithBody constructs an http.Request for the AdminBootstrap method, with any body, and a specified content type+func NewAdminBootstrapRequestWithBody(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/admin/bootstrap")+ 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+}++// NewUpdateAdminConfigRequest calls the generic UpdateAdminConfig builder with application/json body+func NewUpdateAdminConfigRequest(server string, body UpdateAdminConfigJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewUpdateAdminConfigRequestWithBody(server, "application/json", bodyReader)+}++// NewUpdateAdminConfigRequestWithBody constructs an http.Request for the UpdateAdminConfig method, with any body, and a specified content type+func NewUpdateAdminConfigRequestWithBody(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/admin/config")+ 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+}++// NewRefreshAuthTokenRequest constructs an http.Request for the RefreshAuthToken method+func NewRefreshAuthTokenRequest(server string) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v1/auth/token")+ 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+}++// NewAttachUniversalAuthRequest calls the generic AttachUniversalAuth builder with application/json body+func NewAttachUniversalAuthRequest(server string, identityId string, body AttachUniversalAuthJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewAttachUniversalAuthRequestWithBody(server, identityId, "application/json", bodyReader)+}++// NewAttachUniversalAuthRequestWithBody constructs an http.Request for the AttachUniversalAuth method, with any body, and a specified content type+func NewAttachUniversalAuthRequestWithBody(server string, identityId string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, 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/auth/universal-auth/identities/%s", 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(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewCreateUniversalAuthClientSecretRequest calls the generic CreateUniversalAuthClientSecret builder with application/json body+func NewCreateUniversalAuthClientSecretRequest(server string, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewCreateUniversalAuthClientSecretRequestWithBody(server, identityId, "application/json", bodyReader)+}++// NewCreateUniversalAuthClientSecretRequestWithBody constructs an http.Request for the CreateUniversalAuthClientSecret method, with any body, and a specified content type+func NewCreateUniversalAuthClientSecretRequestWithBody(server string, identityId string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, 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/auth/universal-auth/identities/%s/client-secrets", 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(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewLoginWithUniversalAuthRequest calls the generic LoginWithUniversalAuth builder with application/json body+func NewLoginWithUniversalAuthRequest(server string, body LoginWithUniversalAuthJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewLoginWithUniversalAuthRequestWithBody(server, "application/json", bodyReader)+}++// NewLoginWithUniversalAuthRequestWithBody constructs an http.Request for the LoginWithUniversalAuth method, with any body, and a specified content type+func NewLoginWithUniversalAuthRequestWithBody(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/auth/universal-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+}++// NewCreateMachineIdentityRequest calls the generic CreateMachineIdentity builder with application/json body+func NewCreateMachineIdentityRequest(server string, body CreateMachineIdentityJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewCreateMachineIdentityRequestWithBody(server, "application/json", bodyReader)+}++// NewCreateMachineIdentityRequestWithBody constructs an http.Request for the CreateMachineIdentity method, with any body, and a specified content type+func NewCreateMachineIdentityRequestWithBody(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/identities")+ 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+}++// NewInviteUsersToOrganizationRequest calls the generic InviteUsersToOrganization builder with application/json body+func NewInviteUsersToOrganizationRequest(server string, body InviteUsersToOrganizationJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewInviteUsersToOrganizationRequestWithBody(server, "application/json", bodyReader)+}++// NewInviteUsersToOrganizationRequestWithBody constructs an http.Request for the InviteUsersToOrganization method, with any body, and a specified content type+func NewInviteUsersToOrganizationRequestWithBody(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/invite-org/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+}++// NewVerifyUserToOrganizationRequest calls the generic VerifyUserToOrganization builder with application/json body+func NewVerifyUserToOrganizationRequest(server string, body VerifyUserToOrganizationJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewVerifyUserToOrganizationRequestWithBody(server, "application/json", bodyReader)+}++// NewVerifyUserToOrganizationRequestWithBody constructs an http.Request for the VerifyUserToOrganization method, with any body, and a specified content type+func NewVerifyUserToOrganizationRequestWithBody(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/invite-org/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+}++// NewGetOrganizationPlanRequest constructs an http.Request for the GetOrganizationPlan method+func NewGetOrganizationPlanRequest(server string, organizationId string, params *GetOrganizationPlanParams) (*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/organizations/%s/plan", pathParam0)+ 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 params.RefreshCache != nil {++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "refreshCache", *params.RefreshCache, 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+}++// NewCreateProjectRequest calls the generic CreateProject builder with application/json body+func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewCreateProjectRequestWithBody(server, "application/json", bodyReader)+}++// NewCreateProjectRequestWithBody constructs an http.Request for the CreateProject method, with any body, and a specified content type+func NewCreateProjectRequestWithBody(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/projects")+ 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+}++// NewListProjectMachineIdentitiesRequest constructs an http.Request for the ListProjectMachineIdentities method+func NewListProjectMachineIdentitiesRequest(server string, projectId string, params *ListProjectMachineIdentitiesParams) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, 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/projects/%s/identities", pathParam0)+ 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 params.Offset != nil {++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil {+ return nil, err+ } else {+ for _, qp := range strings.Split(queryFrag, "&") {+ rawQueryFragments = append(rawQueryFragments, qp)+ }+ }++ }++ if params.Limit != nil {++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil {+ return nil, err+ } else {+ for _, qp := range strings.Split(queryFrag, "&") {+ rawQueryFragments = append(rawQueryFragments, qp)+ }+ }++ }++ if params.Search != nil {++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, 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+}++// NewCreateProjectMachineIdentityRequest calls the generic CreateProjectMachineIdentity builder with application/json body+func NewCreateProjectMachineIdentityRequest(server string, projectId string, body CreateProjectMachineIdentityJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewCreateProjectMachineIdentityRequestWithBody(server, projectId, "application/json", bodyReader)+}++// NewCreateProjectMachineIdentityRequestWithBody constructs an http.Request for the CreateProjectMachineIdentity method, with any body, and a specified content type+func NewCreateProjectMachineIdentityRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, 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/projects/%s/identities", 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(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewInviteProjectMembersRequest calls the generic InviteProjectMembers builder with application/json body+func NewInviteProjectMembersRequest(server string, projectId string, body InviteProjectMembersJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewInviteProjectMembersRequestWithBody(server, projectId, "application/json", bodyReader)+}++// NewInviteProjectMembersRequestWithBody constructs an http.Request for the InviteProjectMembers method, with any body, and a specified content type+func NewInviteProjectMembersRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, 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/projects/%s/memberships", 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(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewCreateProjectIdentityMembershipRequest calls the generic CreateProjectIdentityMembership builder with application/json body+func NewCreateProjectIdentityMembershipRequest(server string, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewCreateProjectIdentityMembershipRequestWithBody(server, projectId, identityId, "application/json", bodyReader)+}++// NewCreateProjectIdentityMembershipRequestWithBody constructs an http.Request for the CreateProjectIdentityMembership method, with any body, and a specified content type+func NewCreateProjectIdentityMembershipRequestWithBody(server string, projectId string, identityId string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+ if err != nil {+ return nil, err+ }++ var pathParam1 string++ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, 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/projects/%s/memberships/identities/%s", pathParam0, pathParam1)+ 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+}++// NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body+func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewCreateOrganizationRequestWithBody(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) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v2/organizations")+ 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+}++// 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+ }++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v2/organizations/%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+}++// 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+}++func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error {+ for _, r := range c.RequestEditors {+ if err := r(ctx, req); err != nil {+ return err+ }+ }+ for _, r := range additionalEditors {+ if err := r(ctx, req); err != nil {+ return err+ }+ }+ return nil+}++// ClientWithResponses builds on ClientInterface to offer response payloads+type ClientWithResponses struct {+ ClientInterface+}++// NewClientWithResponses creates a new ClientWithResponses, which wraps+// Client with return type handling+func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) {+ client, err := NewClient(server, opts...)+ if err != nil {+ return nil, err+ }+ return &ClientWithResponses{client}, nil+}++// WithBaseURL overrides the baseURL.+func WithBaseURL(baseURL string) ClientOption {+ return func(c *Client) error {+ newBaseURL, err := url.Parse(baseURL)+ if err != nil {+ return err+ }+ c.Server = newBaseURL.String()+ return nil+ }+}++// ClientWithResponsesInterface is the interface specification for the client with responses above.+type ClientWithResponsesInterface interface {++ // GetServerStatusWithResponse performs a GET /api/status (the `GetServerStatus` operationId) request.+ //+ // Returns a wrapper object for the known response body format(s).+ GetServerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServerStatusResponse, error)++ // AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,+ // with any type of body and a specified content type.+ //+ // Returns a wrapper object for the known response body format(s).+ AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)++ // AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)++ // UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,+ // with any type of body and a specified content type.+ //+ // Returns a wrapper object for the known response body format(s).+ UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)++ // UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)++ // RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.+ //+ // Returns a wrapper object for the known response body format(s).+ RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error)++ // AttachUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,+ // with any type of body and a specified content type.+ //+ // Attach Universal Auth configuration onto machine identity.+ //+ // Returns a wrapper object for the known response body format(s).+ AttachUniversalAuthWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)++ // AttachUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ //+ // Attach Universal Auth configuration onto machine identity.+ AttachUniversalAuthWithResponse(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)++ // CreateUniversalAuthClientSecretWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,+ // with any type of body and a specified content type.+ //+ // Create Universal Auth Client Secret for machine identity.+ //+ // Returns a wrapper object for the known response body format(s).+ CreateUniversalAuthClientSecretWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)++ // CreateUniversalAuthClientSecretWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ //+ // Create Universal Auth Client Secret for machine identity.+ CreateUniversalAuthClientSecretWithResponse(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)++ // LoginWithUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,+ // with any type of body and a specified content type.+ //+ // Login with Universal Auth for machine identity.+ //+ // Returns a wrapper object for the known response body format(s).+ LoginWithUniversalAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)++ // LoginWithUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ //+ // Login with Universal Auth for machine identity.+ LoginWithUniversalAuthWithResponse(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)++ // CreateMachineIdentityWithBodyWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,+ // with any type of body and a specified content type.+ //+ // Create machine identity.+ //+ // Returns a wrapper object for the known response body format(s).+ CreateMachineIdentityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)++ // CreateMachineIdentityWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ //+ // Create machine identity.+ CreateMachineIdentityWithResponse(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)++ // InviteUsersToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,+ // with any type of body and a specified content type.+ //+ // Returns a wrapper object for the known response body format(s).+ InviteUsersToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)++ // InviteUsersToOrganizationWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ InviteUsersToOrganizationWithResponse(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)++ // VerifyUserToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,+ // with any type of body and a specified content type.+ //+ // Returns a wrapper object for the known response body format(s).+ VerifyUserToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)++ // VerifyUserToOrganizationWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.+ // 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)++ // GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.+ //+ // Returns a wrapper object for the known response body format(s).+ GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error)++ // CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,+ // with any type of body and a specified content type.+ //+ // Create a new project.+ //+ // Returns a wrapper object for the known response body format(s).+ CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)++ // CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ //+ // Create a new project.+ CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)++ // ListProjectMachineIdentitiesWithResponse performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.+ //+ // List identities in a project.+ //+ // Returns a wrapper object for the known response body format(s).+ ListProjectMachineIdentitiesWithResponse(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*ListProjectMachineIdentitiesResponse, error)++ // CreateProjectMachineIdentityWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,+ // with any type of body and a specified content type.+ //+ // Create an identity in a project.+ //+ // Returns a wrapper object for the known response body format(s).+ CreateProjectMachineIdentityWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)++ // CreateProjectMachineIdentityWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ //+ // Create an identity in a project.+ CreateProjectMachineIdentityWithResponse(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)++ // InviteProjectMembersWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,+ // with any type of body and a specified content type.+ //+ // Invite members to project.+ //+ // Returns a wrapper object for the known response body format(s).+ InviteProjectMembersWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)++ // InviteProjectMembersWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ //+ // Invite members to project.+ InviteProjectMembersWithResponse(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)++ // CreateProjectIdentityMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,+ // with any type of body and a specified content type.+ //+ // Create project identity membership.+ //+ // Returns a wrapper object for the known response body format(s).+ CreateProjectIdentityMembershipWithBodyWithResponse(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)++ // CreateProjectIdentityMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ //+ // Create project identity membership.+ CreateProjectIdentityMembershipWithResponse(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)++ // CreateOrganizationWithBodyWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,+ // with any type of body and a specified content type.+ //+ // Returns a wrapper object for the known response body format(s).+ CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)++ // CreateOrganizationWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)++ // DeleteOrganizationWithResponse performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.+ //+ // Returns a wrapper object for the known response body format(s).+ DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error)++ // LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,+ // with any type of body and a specified content type.+ //+ // Returns a wrapper object for the known response body format(s).+ LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error)++ // LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error)++ // SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,+ // with any type of body and a specified content type.+ //+ // Returns a wrapper object for the known response body format(s).+ SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)++ // SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)++ // CompleteAccountSignupV3WithBodyWithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,+ // with any type of body and a specified content type.+ //+ // Returns a wrapper object for the known response body format(s).+ CompleteAccountSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)++ // CompleteAccountSignupV3WithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ CompleteAccountSignupV3WithResponse(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)+}++type GetServerStatusResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`+ Date time.Time `json:"date"`+ EmailConfigured *bool `json:"emailConfigured,omitempty"`+ InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`+ MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`+ Message *string `json:"message,omitempty"`+ RedisConfigured *bool `json:"redisConfigured,omitempty"`+ SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`+ SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`+ }+ // 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 GetServerStatus400JSONResponseBodyStatusCode `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 GetServerStatus401JSONResponseBodyStatusCode `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 GetServerStatus403JSONResponseBodyStatusCode `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 GetServerStatus404JSONResponseBodyStatusCode `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 GetServerStatus422JSONResponseBodyStatusCode `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 GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r GetServerStatusResponse) GetJSON200() *struct {+ AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`+ Date time.Time `json:"date"`+ EmailConfigured *bool `json:"emailConfigured,omitempty"`+ InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`+ MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`+ Message *string `json:"message,omitempty"`+ RedisConfigured *bool `json:"redisConfigured,omitempty"`+ SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`+ SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r GetServerStatusResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r GetServerStatusResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r GetServerStatusResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r GetServerStatusResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r GetServerStatusResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r GetServerStatusResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r GetServerStatusResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r GetServerStatusResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r GetServerStatusResponse) 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 GetServerStatusResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type AdminBootstrapResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Identity struct {+ Credentials struct {+ Token string `json:"token"`+ } `json:"credentials"`+ Id openapi_types.UUID `json:"id"`+ Name string `json:"name"`+ } `json:"identity"`+ Message string `json:"message"`+ Organization struct {+ Id openapi_types.UUID `json:"id"`+ Name string `json:"name"`+ Slug string `json:"slug"`+ } `json:"organization"`+ User struct {+ Email *string `json:"email,omitempty"`+ FirstName *string `json:"firstName,omitempty"`+ Id openapi_types.UUID `json:"id"`+ LastName *string `json:"lastName,omitempty"`+ SuperAdmin *bool `json:"superAdmin,omitempty"`+ 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 AdminBootstrap400JSONResponseBodyStatusCode `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 AdminBootstrap401JSONResponseBodyStatusCode `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 AdminBootstrap403JSONResponseBodyStatusCode `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 AdminBootstrap404JSONResponseBodyStatusCode `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 AdminBootstrap422JSONResponseBodyStatusCode `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 AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r AdminBootstrapResponse) GetJSON200() *struct {+ Identity struct {+ Credentials struct {+ Token string `json:"token"`+ } `json:"credentials"`+ Id openapi_types.UUID `json:"id"`+ Name string `json:"name"`+ } `json:"identity"`+ Message string `json:"message"`+ Organization struct {+ Id openapi_types.UUID `json:"id"`+ Name string `json:"name"`+ Slug string `json:"slug"`+ } `json:"organization"`+ User struct {+ Email *string `json:"email,omitempty"`+ FirstName *string `json:"firstName,omitempty"`+ Id openapi_types.UUID `json:"id"`+ LastName *string `json:"lastName,omitempty"`+ SuperAdmin *bool `json:"superAdmin,omitempty"`+ Username string `json:"username"`+ } `json:"user"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r AdminBootstrapResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r AdminBootstrapResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r AdminBootstrapResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r AdminBootstrapResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r AdminBootstrapResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r AdminBootstrapResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r AdminBootstrapResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r AdminBootstrapResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r AdminBootstrapResponse) 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 AdminBootstrapResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type UpdateAdminConfigResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Config struct {+ AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`+ AllowSignUp *bool `json:"allowSignUp,omitempty"`+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`+ AuthConsentContent *string `json:"authConsentContent,omitempty"`+ CreatedAt *time.Time `json:"createdAt,omitempty"`+ DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`+ DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`+ DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`+ DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`+ EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`+ FipsEnabled *bool `json:"fipsEnabled,omitempty"`+ Id openapi_types.UUID `json:"id"`+ Initialized *bool `json:"initialized,omitempty"`+ InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`+ IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`+ IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`+ IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`+ IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`+ IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`+ KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`+ LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`+ PageFrameContent *string `json:"pageFrameContent,omitempty"`+ ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`+ PasswordPolicy struct {+ Requirements []struct {+ Code string `json:"code"`+ Flags *string `json:"flags,omitempty"`+ IsPrimary bool `json:"isPrimary"`+ MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`+ Message string `json:"message"`+ Patterns []string `json:"patterns"`+ ShouldMatch bool `json:"shouldMatch"`+ ValidationMessage string `json:"validationMessage"`+ } `json:"requirements"`+ } `json:"passwordPolicy"`+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`+ } `json:"config"`+ }+ // 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 UpdateAdminConfig400JSONResponseBodyStatusCode `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 UpdateAdminConfig401JSONResponseBodyStatusCode `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 UpdateAdminConfig403JSONResponseBodyStatusCode `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 UpdateAdminConfig404JSONResponseBodyStatusCode `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 UpdateAdminConfig422JSONResponseBodyStatusCode `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 UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r UpdateAdminConfigResponse) GetJSON200() *struct {+ Config struct {+ AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`+ AllowSignUp *bool `json:"allowSignUp,omitempty"`+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`+ AuthConsentContent *string `json:"authConsentContent,omitempty"`+ CreatedAt *time.Time `json:"createdAt,omitempty"`+ DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`+ DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`+ DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`+ DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`+ EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`+ FipsEnabled *bool `json:"fipsEnabled,omitempty"`+ Id openapi_types.UUID `json:"id"`+ Initialized *bool `json:"initialized,omitempty"`+ InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`+ IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`+ IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`+ IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`+ IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`+ IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`+ KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`+ LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`+ PageFrameContent *string `json:"pageFrameContent,omitempty"`+ ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`+ PasswordPolicy struct {+ Requirements []struct {+ Code string `json:"code"`+ Flags *string `json:"flags,omitempty"`+ IsPrimary bool `json:"isPrimary"`+ MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`+ Message string `json:"message"`+ Patterns []string `json:"patterns"`+ ShouldMatch bool `json:"shouldMatch"`+ ValidationMessage string `json:"validationMessage"`+ } `json:"requirements"`+ } `json:"passwordPolicy"`+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`+ } `json:"config"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r UpdateAdminConfigResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r UpdateAdminConfigResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r UpdateAdminConfigResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r UpdateAdminConfigResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r UpdateAdminConfigResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r UpdateAdminConfigResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r UpdateAdminConfigResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r UpdateAdminConfigResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r UpdateAdminConfigResponse) 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 UpdateAdminConfigResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type RefreshAuthTokenResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ OrganizationId *string `json:"organizationId,omitempty"`+ RefreshToken *string `json:"refreshToken,omitempty"`+ SubOrganizationId *string `json:"subOrganizationId,omitempty"`+ Token string `json:"token"`+ }+ // 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 RefreshAuthToken400JSONResponseBodyStatusCode `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 RefreshAuthToken401JSONResponseBodyStatusCode `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 RefreshAuthToken403JSONResponseBodyStatusCode `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 RefreshAuthToken404JSONResponseBodyStatusCode `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 RefreshAuthToken422JSONResponseBodyStatusCode `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 RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r RefreshAuthTokenResponse) GetJSON200() *struct {+ OrganizationId *string `json:"organizationId,omitempty"`+ RefreshToken *string `json:"refreshToken,omitempty"`+ SubOrganizationId *string `json:"subOrganizationId,omitempty"`+ Token string `json:"token"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r RefreshAuthTokenResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode RefreshAuthToken400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r RefreshAuthTokenResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode RefreshAuthToken401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r RefreshAuthTokenResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode RefreshAuthToken403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r RefreshAuthTokenResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode RefreshAuthToken404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r RefreshAuthTokenResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode RefreshAuthToken422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r RefreshAuthTokenResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r RefreshAuthTokenResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r RefreshAuthTokenResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r RefreshAuthTokenResponse) 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 RefreshAuthTokenResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type AttachUniversalAuthResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ IdentityUniversalAuth struct {+ AccessTokenMaxTTL *float32 `json:"accessTokenMaxTTL,omitempty"`+ AccessTokenNumUsesLimit *float32 `json:"accessTokenNumUsesLimit,omitempty"`+ AccessTokenPeriod *float32 `json:"accessTokenPeriod,omitempty"`+ AccessTokenTTL *float32 `json:"accessTokenTTL,omitempty"`+ AccessTokenTrustedIps interface{} `json:"accessTokenTrustedIps,omitempty"`+ ClientId string `json:"clientId"`+ ClientSecretTrustedIps interface{} `json:"clientSecretTrustedIps,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ IdentityId openapi_types.UUID `json:"identityId"`+ LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`+ LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`+ LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`+ LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identityUniversalAuth"`+ }+ // 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 AttachUniversalAuth400JSONResponseBodyStatusCode `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 AttachUniversalAuth401JSONResponseBodyStatusCode `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 AttachUniversalAuth403JSONResponseBodyStatusCode `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 AttachUniversalAuth404JSONResponseBodyStatusCode `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 AttachUniversalAuth422JSONResponseBodyStatusCode `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 AttachUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r AttachUniversalAuthResponse) GetJSON200() *struct {+ IdentityUniversalAuth struct {+ AccessTokenMaxTTL *float32 `json:"accessTokenMaxTTL,omitempty"`+ AccessTokenNumUsesLimit *float32 `json:"accessTokenNumUsesLimit,omitempty"`+ AccessTokenPeriod *float32 `json:"accessTokenPeriod,omitempty"`+ AccessTokenTTL *float32 `json:"accessTokenTTL,omitempty"`+ AccessTokenTrustedIps interface{} `json:"accessTokenTrustedIps,omitempty"`+ ClientId string `json:"clientId"`+ ClientSecretTrustedIps interface{} `json:"clientSecretTrustedIps,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ IdentityId openapi_types.UUID `json:"identityId"`+ LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`+ LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`+ LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`+ LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identityUniversalAuth"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r AttachUniversalAuthResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode AttachUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r AttachUniversalAuthResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode AttachUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r AttachUniversalAuthResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode AttachUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r AttachUniversalAuthResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode AttachUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r AttachUniversalAuthResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode AttachUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r AttachUniversalAuthResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode AttachUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r AttachUniversalAuthResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r AttachUniversalAuthResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r AttachUniversalAuthResponse) 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 AttachUniversalAuthResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type CreateUniversalAuthClientSecretResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ ClientSecret string `json:"clientSecret"`+ ClientSecretData struct {+ ClientSecretNumUses *float32 `json:"clientSecretNumUses,omitempty"`+ ClientSecretNumUsesLimit *float32 `json:"clientSecretNumUsesLimit,omitempty"`+ ClientSecretPrefix string `json:"clientSecretPrefix"`+ ClientSecretTTL *float32 `json:"clientSecretTTL,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ Description string `json:"description"`+ Id string `json:"id"`+ IdentityUAId openapi_types.UUID `json:"identityUAId"`+ IsClientSecretRevoked *bool `json:"isClientSecretRevoked,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"clientSecretData"`+ }+ // 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 CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode `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 CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode `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 CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode `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 CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode `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 CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode `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 CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r CreateUniversalAuthClientSecretResponse) GetJSON200() *struct {+ ClientSecret string `json:"clientSecret"`+ ClientSecretData struct {+ ClientSecretNumUses *float32 `json:"clientSecretNumUses,omitempty"`+ ClientSecretNumUsesLimit *float32 `json:"clientSecretNumUsesLimit,omitempty"`+ ClientSecretPrefix string `json:"clientSecretPrefix"`+ ClientSecretTTL *float32 `json:"clientSecretTTL,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ Description string `json:"description"`+ Id string `json:"id"`+ IdentityUAId openapi_types.UUID `json:"identityUAId"`+ IsClientSecretRevoked *bool `json:"isClientSecretRevoked,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"clientSecretData"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r CreateUniversalAuthClientSecretResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r CreateUniversalAuthClientSecretResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r CreateUniversalAuthClientSecretResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r CreateUniversalAuthClientSecretResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r CreateUniversalAuthClientSecretResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r CreateUniversalAuthClientSecretResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r CreateUniversalAuthClientSecretResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r CreateUniversalAuthClientSecretResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r CreateUniversalAuthClientSecretResponse) 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 CreateUniversalAuthClientSecretResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type LoginWithUniversalAuthResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ AccessToken string `json:"accessToken"`+ AccessTokenMaxTTL float32 `json:"accessTokenMaxTTL"`+ ExpiresIn float32 `json:"expiresIn"`+ TokenType LoginWithUniversalAuth200JSONResponseBodyTokenType `json:"tokenType"`+ }+ // 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 LoginWithUniversalAuth400JSONResponseBodyStatusCode `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 LoginWithUniversalAuth401JSONResponseBodyStatusCode `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 LoginWithUniversalAuth403JSONResponseBodyStatusCode `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 LoginWithUniversalAuth404JSONResponseBodyStatusCode `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 LoginWithUniversalAuth422JSONResponseBodyStatusCode `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 LoginWithUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r LoginWithUniversalAuthResponse) GetJSON200() *struct {+ AccessToken string `json:"accessToken"`+ AccessTokenMaxTTL float32 `json:"accessTokenMaxTTL"`+ ExpiresIn float32 `json:"expiresIn"`+ TokenType LoginWithUniversalAuth200JSONResponseBodyTokenType `json:"tokenType"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r LoginWithUniversalAuthResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode LoginWithUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r LoginWithUniversalAuthResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode LoginWithUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r LoginWithUniversalAuthResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode LoginWithUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r LoginWithUniversalAuthResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode LoginWithUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r LoginWithUniversalAuthResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode LoginWithUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r LoginWithUniversalAuthResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode LoginWithUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r LoginWithUniversalAuthResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r LoginWithUniversalAuthResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r LoginWithUniversalAuthResponse) 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 LoginWithUniversalAuthResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type CreateMachineIdentityResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Identity struct {+ AuthMethod *string `json:"authMethod,omitempty"`+ AuthMethods []string `json:"authMethods"`+ CreatedAt time.Time `json:"createdAt"`+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Id openapi_types.UUID `json:"id"`+ Metadata []struct {+ Id string `json:"id"`+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata"`+ Name string `json:"name"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectId *string `json:"projectId,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identity"`+ }+ // 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 CreateMachineIdentity400JSONResponseBodyStatusCode `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 CreateMachineIdentity401JSONResponseBodyStatusCode `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 CreateMachineIdentity403JSONResponseBodyStatusCode `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 CreateMachineIdentity404JSONResponseBodyStatusCode `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 CreateMachineIdentity422JSONResponseBodyStatusCode `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 CreateMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r CreateMachineIdentityResponse) GetJSON200() *struct {+ Identity struct {+ AuthMethod *string `json:"authMethod,omitempty"`+ AuthMethods []string `json:"authMethods"`+ CreatedAt time.Time `json:"createdAt"`+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Id openapi_types.UUID `json:"id"`+ Metadata []struct {+ Id string `json:"id"`+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata"`+ Name string `json:"name"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectId *string `json:"projectId,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identity"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r CreateMachineIdentityResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r CreateMachineIdentityResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r CreateMachineIdentityResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r CreateMachineIdentityResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r CreateMachineIdentityResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r CreateMachineIdentityResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r CreateMachineIdentityResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r CreateMachineIdentityResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r CreateMachineIdentityResponse) 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 CreateMachineIdentityResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type InviteUsersToOrganizationResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ CompleteInviteLinks *[]struct {+ Email string `json:"email"`+ Link string `json:"link"`+ } `json:"completeInviteLinks,omitempty"`+ GrantFailures *struct {+ AgentVaultAccess bool `json:"agentVaultAccess"`+ PamAccess bool `json:"pamAccess"`+ ProjectIds []string `json:"projectIds"`+ } `json:"grantFailures,omitempty"`+ Message string `json:"message"`+ }+ // 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 InviteUsersToOrganization400JSONResponseBodyStatusCode `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 InviteUsersToOrganization401JSONResponseBodyStatusCode `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 InviteUsersToOrganization403JSONResponseBodyStatusCode `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 InviteUsersToOrganization404JSONResponseBodyStatusCode `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 InviteUsersToOrganization422JSONResponseBodyStatusCode `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 InviteUsersToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r InviteUsersToOrganizationResponse) GetJSON200() *struct {+ CompleteInviteLinks *[]struct {+ Email string `json:"email"`+ Link string `json:"link"`+ } `json:"completeInviteLinks,omitempty"`+ GrantFailures *struct {+ AgentVaultAccess bool `json:"agentVaultAccess"`+ PamAccess bool `json:"pamAccess"`+ ProjectIds []string `json:"projectIds"`+ } `json:"grantFailures,omitempty"`+ Message string `json:"message"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r InviteUsersToOrganizationResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteUsersToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r InviteUsersToOrganizationResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteUsersToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r InviteUsersToOrganizationResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteUsersToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r InviteUsersToOrganizationResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteUsersToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r InviteUsersToOrganizationResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode InviteUsersToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r InviteUsersToOrganizationResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteUsersToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r InviteUsersToOrganizationResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r InviteUsersToOrganizationResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r InviteUsersToOrganizationResponse) 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 InviteUsersToOrganizationResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type VerifyUserToOrganizationResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Message string `json:"message"`++ // OrganizationName Name of the organization associated with the verified invitation+ OrganizationName string `json:"organizationName"`+ Token *string `json:"token,omitempty"`+ }+ // 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 VerifyUserToOrganization400JSONResponseBodyStatusCode `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 VerifyUserToOrganization401JSONResponseBodyStatusCode `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 VerifyUserToOrganization403JSONResponseBodyStatusCode `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 VerifyUserToOrganization404JSONResponseBodyStatusCode `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 VerifyUserToOrganization422JSONResponseBodyStatusCode `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 VerifyUserToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r VerifyUserToOrganizationResponse) GetJSON200() *struct {+ Message string `json:"message"`++ // OrganizationName Name of the organization associated with the verified invitation+ OrganizationName string `json:"organizationName"`+ Token *string `json:"token,omitempty"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r VerifyUserToOrganizationResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyUserToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r VerifyUserToOrganizationResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyUserToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r VerifyUserToOrganizationResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyUserToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r VerifyUserToOrganizationResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyUserToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r VerifyUserToOrganizationResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode VerifyUserToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r VerifyUserToOrganizationResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyUserToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r VerifyUserToOrganizationResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r VerifyUserToOrganizationResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r VerifyUserToOrganizationResponse) 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 VerifyUserToOrganizationResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type GetOrganizationPlanResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Plan interface{} `json:"plan,omitempty"`+ }+ // 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 GetOrganizationPlan400JSONResponseBodyStatusCode `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 GetOrganizationPlan401JSONResponseBodyStatusCode `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 GetOrganizationPlan403JSONResponseBodyStatusCode `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 GetOrganizationPlan404JSONResponseBodyStatusCode `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 GetOrganizationPlan422JSONResponseBodyStatusCode `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 GetOrganizationPlan500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r GetOrganizationPlanResponse) GetJSON200() *struct {+ Plan interface{} `json:"plan,omitempty"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r GetOrganizationPlanResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationPlan400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r GetOrganizationPlanResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationPlan401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r GetOrganizationPlanResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationPlan403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r GetOrganizationPlanResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationPlan404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r GetOrganizationPlanResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationPlan422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r GetOrganizationPlanResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationPlan500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r GetOrganizationPlanResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r GetOrganizationPlanResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r GetOrganizationPlanResponse) 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 GetOrganizationPlanResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type CreateProjectResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Project struct {+ UnderscoreId string `json:"_id"`+ AuditLogsRetentionDays *float32 `json:"auditLogsRetentionDays,omitempty"`+ AutoCapitalization *bool `json:"autoCapitalization,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ DefaultProduct *string `json:"defaultProduct,omitempty"`+ DeletedEnvironments []struct {+ DeleteAfter time.Time `json:"deleteAfter"`+ DeletedBy *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy `json:"deletedBy"`+ Id string `json:"id"`+ Name string `json:"name"`+ Slug string `json:"slug"`+ SoftDeletedAt time.Time `json:"softDeletedAt"`+ } `json:"deletedEnvironments"`+ Description *string `json:"description,omitempty"`+ EnforceEncryptedSecretManagerSecretMetadata *bool `json:"enforceEncryptedSecretManagerSecretMetadata,omitempty"`+ Environments []struct {+ Id string `json:"id"`+ Name string `json:"name"`+ Slug string `json:"slug"`+ } `json:"environments"`+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Id string `json:"id"`+ IsLegacyAdditionalPrivilegesEnabled *bool `json:"isLegacyAdditionalPrivilegesEnabled,omitempty"`+ KmsCertificateKeyId *openapi_types.UUID `json:"kmsCertificateKeyId,omitempty"`+ Name string `json:"name"`+ OrgId openapi_types.UUID `json:"orgId"`+ PitVersionLimit *float32 `json:"pitVersionLimit,omitempty"`+ SecretDetectionIgnoreValues *[]string `json:"secretDetectionIgnoreValues,omitempty"`+ SecretSharing *bool `json:"secretSharing,omitempty"`+ ShowSnapshotsLegacy *bool `json:"showSnapshotsLegacy,omitempty"`+ Slug string `json:"slug"`+ Type string `json:"type"`+ UpdatedAt time.Time `json:"updatedAt"`+ UpgradeStatus *string `json:"upgradeStatus,omitempty"`+ Version *float32 `json:"version,omitempty"`+ } `json:"project"`+ }+ // 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 CreateProject400JSONResponseBodyStatusCode `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 CreateProject401JSONResponseBodyStatusCode `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 CreateProject403JSONResponseBodyStatusCode `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 CreateProject404JSONResponseBodyStatusCode `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 CreateProject422JSONResponseBodyStatusCode `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 CreateProject500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r CreateProjectResponse) GetJSON200() *struct {+ Project struct {+ UnderscoreId string `json:"_id"`+ AuditLogsRetentionDays *float32 `json:"auditLogsRetentionDays,omitempty"`+ AutoCapitalization *bool `json:"autoCapitalization,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ DefaultProduct *string `json:"defaultProduct,omitempty"`+ DeletedEnvironments []struct {+ DeleteAfter time.Time `json:"deleteAfter"`+ DeletedBy *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy `json:"deletedBy"`+ Id string `json:"id"`+ Name string `json:"name"`+ Slug string `json:"slug"`+ SoftDeletedAt time.Time `json:"softDeletedAt"`+ } `json:"deletedEnvironments"`+ Description *string `json:"description,omitempty"`+ EnforceEncryptedSecretManagerSecretMetadata *bool `json:"enforceEncryptedSecretManagerSecretMetadata,omitempty"`+ Environments []struct {+ Id string `json:"id"`+ Name string `json:"name"`+ Slug string `json:"slug"`+ } `json:"environments"`+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Id string `json:"id"`+ IsLegacyAdditionalPrivilegesEnabled *bool `json:"isLegacyAdditionalPrivilegesEnabled,omitempty"`+ KmsCertificateKeyId *openapi_types.UUID `json:"kmsCertificateKeyId,omitempty"`+ Name string `json:"name"`+ OrgId openapi_types.UUID `json:"orgId"`+ PitVersionLimit *float32 `json:"pitVersionLimit,omitempty"`+ SecretDetectionIgnoreValues *[]string `json:"secretDetectionIgnoreValues,omitempty"`+ SecretSharing *bool `json:"secretSharing,omitempty"`+ ShowSnapshotsLegacy *bool `json:"showSnapshotsLegacy,omitempty"`+ Slug string `json:"slug"`+ Type string `json:"type"`+ UpdatedAt time.Time `json:"updatedAt"`+ UpgradeStatus *string `json:"upgradeStatus,omitempty"`+ Version *float32 `json:"version,omitempty"`+ } `json:"project"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r CreateProjectResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProject400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r CreateProjectResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProject401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r CreateProjectResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProject403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r CreateProjectResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProject404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r CreateProjectResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateProject422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r CreateProjectResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProject500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r CreateProjectResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r CreateProjectResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r CreateProjectResponse) 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 CreateProjectResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type ListProjectMachineIdentitiesResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Identities []struct {+ ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`+ AuthMethods *[]string `json:"authMethods,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Id openapi_types.UUID `json:"id"`+ Metadata *[]struct {+ Id string `json:"id"`+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata,omitempty"`+ Name string `json:"name"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectId *string `json:"projectId,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identities"`+ TotalCount float32 `json:"totalCount"`+ }+ // 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 ListProjectMachineIdentities400JSONResponseBodyStatusCode `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 ListProjectMachineIdentities401JSONResponseBodyStatusCode `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 ListProjectMachineIdentities403JSONResponseBodyStatusCode `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 ListProjectMachineIdentities404JSONResponseBodyStatusCode `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 ListProjectMachineIdentities422JSONResponseBodyStatusCode `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 ListProjectMachineIdentities500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r ListProjectMachineIdentitiesResponse) GetJSON200() *struct {+ Identities []struct {+ ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`+ AuthMethods *[]string `json:"authMethods,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Id openapi_types.UUID `json:"id"`+ Metadata *[]struct {+ Id string `json:"id"`+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata,omitempty"`+ Name string `json:"name"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectId *string `json:"projectId,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identities"`+ TotalCount float32 `json:"totalCount"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r ListProjectMachineIdentitiesResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListProjectMachineIdentities400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r ListProjectMachineIdentitiesResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListProjectMachineIdentities401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r ListProjectMachineIdentitiesResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListProjectMachineIdentities403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r ListProjectMachineIdentitiesResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListProjectMachineIdentities404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r ListProjectMachineIdentitiesResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode ListProjectMachineIdentities422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r ListProjectMachineIdentitiesResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListProjectMachineIdentities500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r ListProjectMachineIdentitiesResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r ListProjectMachineIdentitiesResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r ListProjectMachineIdentitiesResponse) 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 ListProjectMachineIdentitiesResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type CreateProjectMachineIdentityResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Identity struct {+ ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`+ AuthMethods *[]string `json:"authMethods,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Id openapi_types.UUID `json:"id"`+ Metadata *[]struct {+ Id string `json:"id"`+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata,omitempty"`+ Name string `json:"name"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectId *string `json:"projectId,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identity"`+ }+ // 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 CreateProjectMachineIdentity400JSONResponseBodyStatusCode `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 CreateProjectMachineIdentity401JSONResponseBodyStatusCode `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 CreateProjectMachineIdentity403JSONResponseBodyStatusCode `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 CreateProjectMachineIdentity404JSONResponseBodyStatusCode `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 CreateProjectMachineIdentity422JSONResponseBodyStatusCode `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 CreateProjectMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r CreateProjectMachineIdentityResponse) GetJSON200() *struct {+ Identity struct {+ ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`+ AuthMethods *[]string `json:"authMethods,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Id openapi_types.UUID `json:"id"`+ Metadata *[]struct {+ Id string `json:"id"`+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata,omitempty"`+ Name string `json:"name"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectId *string `json:"projectId,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identity"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r CreateProjectMachineIdentityResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r CreateProjectMachineIdentityResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r CreateProjectMachineIdentityResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r CreateProjectMachineIdentityResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r CreateProjectMachineIdentityResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r CreateProjectMachineIdentityResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r CreateProjectMachineIdentityResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r CreateProjectMachineIdentityResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r CreateProjectMachineIdentityResponse) 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 CreateProjectMachineIdentityResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type InviteProjectMembersResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Memberships []struct {+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ ProjectId string `json:"projectId"`+ UpdatedAt time.Time `json:"updatedAt"`+ UserId openapi_types.UUID `json:"userId"`+ } `json:"memberships"`+ }+ // 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 InviteProjectMembers400JSONResponseBodyStatusCode `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 InviteProjectMembers401JSONResponseBodyStatusCode `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 InviteProjectMembers403JSONResponseBodyStatusCode `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 InviteProjectMembers404JSONResponseBodyStatusCode `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 InviteProjectMembers422JSONResponseBodyStatusCode `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 InviteProjectMembers500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r InviteProjectMembersResponse) GetJSON200() *struct {+ Memberships []struct {+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ ProjectId string `json:"projectId"`+ UpdatedAt time.Time `json:"updatedAt"`+ UserId openapi_types.UUID `json:"userId"`+ } `json:"memberships"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r InviteProjectMembersResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteProjectMembers400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r InviteProjectMembersResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteProjectMembers401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r InviteProjectMembersResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteProjectMembers403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r InviteProjectMembersResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteProjectMembers404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r InviteProjectMembersResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode InviteProjectMembers422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r InviteProjectMembersResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteProjectMembers500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r InviteProjectMembersResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r InviteProjectMembersResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r InviteProjectMembersResponse) 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 InviteProjectMembersResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type CreateProjectIdentityMembershipResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ IdentityMembership struct {+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ IdentityId openapi_types.UUID `json:"identityId"`+ ProjectId string `json:"projectId"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identityMembership"`+ }+ // 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 CreateProjectIdentityMembership400JSONResponseBodyStatusCode `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 CreateProjectIdentityMembership401JSONResponseBodyStatusCode `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 CreateProjectIdentityMembership403JSONResponseBodyStatusCode `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 CreateProjectIdentityMembership404JSONResponseBodyStatusCode `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 CreateProjectIdentityMembership422JSONResponseBodyStatusCode `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 CreateProjectIdentityMembership500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r CreateProjectIdentityMembershipResponse) GetJSON200() *struct {+ IdentityMembership struct {+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ IdentityId openapi_types.UUID `json:"identityId"`+ ProjectId string `json:"projectId"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identityMembership"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r CreateProjectIdentityMembershipResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectIdentityMembership400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r CreateProjectIdentityMembershipResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectIdentityMembership401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r CreateProjectIdentityMembershipResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectIdentityMembership403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r CreateProjectIdentityMembershipResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectIdentityMembership404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r CreateProjectIdentityMembershipResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectIdentityMembership422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r CreateProjectIdentityMembershipResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectIdentityMembership500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r CreateProjectIdentityMembershipResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r CreateProjectIdentityMembershipResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r CreateProjectIdentityMembershipResponse) 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 CreateProjectIdentityMembershipResponse) 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"`+ 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"`+ 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"`+ PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`+ PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`+ PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,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 DeleteOrganization400JSONResponseBodyStatusCode `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 DeleteOrganization401JSONResponseBodyStatusCode `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 DeleteOrganization403JSONResponseBodyStatusCode `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 DeleteOrganization404JSONResponseBodyStatusCode `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 DeleteOrganization422JSONResponseBodyStatusCode `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 DeleteOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r DeleteOrganizationResponse) GetJSON200() *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"`+ 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 DeleteOrganizationResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode DeleteOrganization400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r DeleteOrganizationResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode DeleteOrganization401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r DeleteOrganizationResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode DeleteOrganization403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r DeleteOrganizationResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode DeleteOrganization404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r DeleteOrganizationResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode DeleteOrganization422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r DeleteOrganizationResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode DeleteOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r DeleteOrganizationResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r DeleteOrganizationResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r DeleteOrganizationResponse) 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 DeleteOrganizationResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type LoginV3Response struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ AccessToken string `json:"accessToken"`+ }+ // 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 LoginV3400JSONResponseBodyStatusCode `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 LoginV3401JSONResponseBodyStatusCode `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 LoginV3403JSONResponseBodyStatusCode `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 LoginV3404JSONResponseBodyStatusCode `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 LoginV3422JSONResponseBodyStatusCode `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 LoginV3500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r LoginV3Response) GetJSON200() *struct {+ AccessToken string `json:"accessToken"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r LoginV3Response) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode LoginV3400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r LoginV3Response) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode LoginV3401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r LoginV3Response) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode LoginV3403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r LoginV3Response) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode LoginV3404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r LoginV3Response) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode LoginV3422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r LoginV3Response) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode LoginV3500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r LoginV3Response) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r LoginV3Response) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r LoginV3Response) 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 LoginV3Response) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type SelectOrganizationV3Response struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ IsMfaEnabled bool `json:"isMfaEnabled"`+ MfaMethod *string `json:"mfaMethod,omitempty"`+ Token string `json:"token"`+ }+ // 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 SelectOrganizationV3400JSONResponseBodyStatusCode `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 SelectOrganizationV3401JSONResponseBodyStatusCode `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 SelectOrganizationV3403JSONResponseBodyStatusCode `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 SelectOrganizationV3404JSONResponseBodyStatusCode `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 SelectOrganizationV3422JSONResponseBodyStatusCode `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 SelectOrganizationV3500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r SelectOrganizationV3Response) GetJSON200() *struct {+ IsMfaEnabled bool `json:"isMfaEnabled"`+ MfaMethod *string `json:"mfaMethod,omitempty"`+ Token string `json:"token"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r SelectOrganizationV3Response) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode SelectOrganizationV3400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r SelectOrganizationV3Response) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode SelectOrganizationV3401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r SelectOrganizationV3Response) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode SelectOrganizationV3403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r SelectOrganizationV3Response) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode SelectOrganizationV3404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r SelectOrganizationV3Response) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode SelectOrganizationV3422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r SelectOrganizationV3Response) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode SelectOrganizationV3500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r SelectOrganizationV3Response) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r SelectOrganizationV3Response) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r SelectOrganizationV3Response) 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 SelectOrganizationV3Response) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type CompleteAccountSignupV3Response struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Message string `json:"message"`+ Token string `json:"token"`+ 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"`+ }+ // 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 CompleteAccountSignupV3400JSONResponseBodyStatusCode `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 CompleteAccountSignupV3401JSONResponseBodyStatusCode `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 CompleteAccountSignupV3403JSONResponseBodyStatusCode `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 CompleteAccountSignupV3404JSONResponseBodyStatusCode `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 CompleteAccountSignupV3422JSONResponseBodyStatusCode `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 CompleteAccountSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r CompleteAccountSignupV3Response) GetJSON200() *struct {+ Message string `json:"message"`+ Token string `json:"token"`+ 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"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r CompleteAccountSignupV3Response) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CompleteAccountSignupV3400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r CompleteAccountSignupV3Response) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CompleteAccountSignupV3401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r CompleteAccountSignupV3Response) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CompleteAccountSignupV3403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r CompleteAccountSignupV3Response) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CompleteAccountSignupV3404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r CompleteAccountSignupV3Response) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CompleteAccountSignupV3422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r CompleteAccountSignupV3Response) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CompleteAccountSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r CompleteAccountSignupV3Response) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r CompleteAccountSignupV3Response) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r CompleteAccountSignupV3Response) 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 CompleteAccountSignupV3Response) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++// GetServerStatusWithResponse performs a GET /api/status (the `GetServerStatus` operationId) request.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) GetServerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServerStatusResponse, error) {+ rsp, err := c.GetServerStatus(ctx, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseGetServerStatusResponse(rsp)+}++// AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` 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) AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error) {+ rsp, err := c.AdminBootstrapWithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseAdminBootstrapResponse(rsp)+}++// AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` 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) AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error) {+ rsp, err := c.AdminBootstrap(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseAdminBootstrapResponse(rsp)+}++// UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` 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) UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error) {+ rsp, err := c.UpdateAdminConfigWithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseUpdateAdminConfigResponse(rsp)+}++// UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` 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) UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error) {+ rsp, err := c.UpdateAdminConfig(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseUpdateAdminConfigResponse(rsp)+}++// RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error) {+ rsp, err := c.RefreshAuthToken(ctx, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseRefreshAuthTokenResponse(rsp)+}++// AttachUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,+// with any type of body and a specified content type.+//+// Attach Universal Auth configuration onto machine identity.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) AttachUniversalAuthWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error) {+ rsp, err := c.AttachUniversalAuthWithBody(ctx, identityId, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseAttachUniversalAuthResponse(rsp)+}++// AttachUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+//+// Attach Universal Auth configuration onto machine identity.+func (c *ClientWithResponses) AttachUniversalAuthWithResponse(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error) {+ rsp, err := c.AttachUniversalAuth(ctx, identityId, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseAttachUniversalAuthResponse(rsp)+}++// CreateUniversalAuthClientSecretWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,+// with any type of body and a specified content type.+//+// Create Universal Auth Client Secret for machine identity.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) CreateUniversalAuthClientSecretWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error) {+ rsp, err := c.CreateUniversalAuthClientSecretWithBody(ctx, identityId, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateUniversalAuthClientSecretResponse(rsp)+}++// CreateUniversalAuthClientSecretWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+//+// Create Universal Auth Client Secret for machine identity.+func (c *ClientWithResponses) CreateUniversalAuthClientSecretWithResponse(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error) {+ rsp, err := c.CreateUniversalAuthClientSecret(ctx, identityId, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateUniversalAuthClientSecretResponse(rsp)+}++// LoginWithUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,+// with any type of body and a specified content type.+//+// Login with Universal Auth for machine identity.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) LoginWithUniversalAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error) {+ rsp, err := c.LoginWithUniversalAuthWithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseLoginWithUniversalAuthResponse(rsp)+}++// LoginWithUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+//+// Login with Universal Auth for machine identity.+func (c *ClientWithResponses) LoginWithUniversalAuthWithResponse(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error) {+ rsp, err := c.LoginWithUniversalAuth(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseLoginWithUniversalAuthResponse(rsp)+}++// CreateMachineIdentityWithBodyWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,+// with any type of body and a specified content type.+//+// Create machine identity.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) CreateMachineIdentityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error) {+ rsp, err := c.CreateMachineIdentityWithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateMachineIdentityResponse(rsp)+}++// CreateMachineIdentityWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+//+// Create machine identity.+func (c *ClientWithResponses) CreateMachineIdentityWithResponse(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error) {+ rsp, err := c.CreateMachineIdentity(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateMachineIdentityResponse(rsp)+}++// InviteUsersToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` 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) InviteUsersToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error) {+ rsp, err := c.InviteUsersToOrganizationWithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseInviteUsersToOrganizationResponse(rsp)+}++// InviteUsersToOrganizationWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` 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) InviteUsersToOrganizationWithResponse(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error) {+ rsp, err := c.InviteUsersToOrganization(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseInviteUsersToOrganizationResponse(rsp)+}++// VerifyUserToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` 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) VerifyUserToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error) {+ rsp, err := c.VerifyUserToOrganizationWithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseVerifyUserToOrganizationResponse(rsp)+}++// VerifyUserToOrganizationWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` 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) VerifyUserToOrganizationWithResponse(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error) {+ rsp, err := c.VerifyUserToOrganization(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseVerifyUserToOrganizationResponse(rsp)+}++// GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error) {+ rsp, err := c.GetOrganizationPlan(ctx, organizationId, params, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseGetOrganizationPlanResponse(rsp)+}++// CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,+// with any type of body and a specified content type.+//+// Create a new project.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) {+ rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateProjectResponse(rsp)+}++// CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+//+// Create a new project.+func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) {+ rsp, err := c.CreateProject(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateProjectResponse(rsp)+}++// ListProjectMachineIdentitiesWithResponse performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.+//+// List identities in a project.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) ListProjectMachineIdentitiesWithResponse(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*ListProjectMachineIdentitiesResponse, error) {+ rsp, err := c.ListProjectMachineIdentities(ctx, projectId, params, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseListProjectMachineIdentitiesResponse(rsp)+}++// CreateProjectMachineIdentityWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,+// with any type of body and a specified content type.+//+// Create an identity in a project.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) CreateProjectMachineIdentityWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error) {+ rsp, err := c.CreateProjectMachineIdentityWithBody(ctx, projectId, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateProjectMachineIdentityResponse(rsp)+}++// CreateProjectMachineIdentityWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+//+// Create an identity in a project.+func (c *ClientWithResponses) CreateProjectMachineIdentityWithResponse(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error) {+ rsp, err := c.CreateProjectMachineIdentity(ctx, projectId, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateProjectMachineIdentityResponse(rsp)+}++// InviteProjectMembersWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,+// with any type of body and a specified content type.+//+// Invite members to project.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) InviteProjectMembersWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error) {+ rsp, err := c.InviteProjectMembersWithBody(ctx, projectId, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseInviteProjectMembersResponse(rsp)+}++// InviteProjectMembersWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+//+// Invite members to project.+func (c *ClientWithResponses) InviteProjectMembersWithResponse(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error) {+ rsp, err := c.InviteProjectMembers(ctx, projectId, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseInviteProjectMembersResponse(rsp)+}++// CreateProjectIdentityMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,+// with any type of body and a specified content type.+//+// Create project identity membership.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) CreateProjectIdentityMembershipWithBodyWithResponse(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error) {+ rsp, err := c.CreateProjectIdentityMembershipWithBody(ctx, projectId, identityId, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateProjectIdentityMembershipResponse(rsp)+}++// CreateProjectIdentityMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+//+// Create project identity membership.+func (c *ClientWithResponses) CreateProjectIdentityMembershipWithResponse(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error) {+ rsp, err := c.CreateProjectIdentityMembership(ctx, projectId, identityId, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateProjectIdentityMembershipResponse(rsp)+}++// CreateOrganizationWithBodyWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` 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) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error) {+ rsp, err := c.CreateOrganizationWithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateOrganizationResponse(rsp)+}++// CreateOrganizationWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` 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) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error) {+ rsp, err := c.CreateOrganization(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateOrganizationResponse(rsp)+}++// DeleteOrganizationWithResponse performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) {+ rsp, err := c.DeleteOrganization(ctx, organizationId, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseDeleteOrganizationResponse(rsp)+}++// LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` 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) LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error) {+ rsp, err := c.LoginV3WithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseLoginV3Response(rsp)+}++// LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` 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) LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error) {+ rsp, err := c.LoginV3(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseLoginV3Response(rsp)+}++// SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` 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) SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error) {+ rsp, err := c.SelectOrganizationV3WithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseSelectOrganizationV3Response(rsp)+}++// SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` 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) SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error) {+ rsp, err := c.SelectOrganizationV3(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseSelectOrganizationV3Response(rsp)+}++// CompleteAccountSignupV3WithBodyWithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` 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) CompleteAccountSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error) {+ rsp, err := c.CompleteAccountSignupV3WithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCompleteAccountSignupV3Response(rsp)+}++// CompleteAccountSignupV3WithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` 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) CompleteAccountSignupV3WithResponse(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error) {+ rsp, err := c.CompleteAccountSignupV3(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCompleteAccountSignupV3Response(rsp)+}++// ParseGetServerStatusResponse parses an HTTP response from a GetServerStatusWithResponse call+func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &GetServerStatusResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`+ Date time.Time `json:"date"`+ EmailConfigured *bool `json:"emailConfigured,omitempty"`+ InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`+ MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`+ Message *string `json:"message,omitempty"`+ RedisConfigured *bool `json:"redisConfigured,omitempty"`+ SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`+ SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`+ }+ 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 GetServerStatus400JSONResponseBodyStatusCode `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 GetServerStatus401JSONResponseBodyStatusCode `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 GetServerStatus403JSONResponseBodyStatusCode `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 GetServerStatus404JSONResponseBodyStatusCode `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 GetServerStatus422JSONResponseBodyStatusCode `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 GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}++// ParseAdminBootstrapResponse parses an HTTP response from a AdminBootstrapWithResponse call+func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &AdminBootstrapResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ Identity struct {+ Credentials struct {+ Token string `json:"token"`+ } `json:"credentials"`+ Id openapi_types.UUID `json:"id"`+ Name string `json:"name"`+ } `json:"identity"`+ Message string `json:"message"`+ Organization struct {+ Id openapi_types.UUID `json:"id"`+ Name string `json:"name"`+ Slug string `json:"slug"`+ } `json:"organization"`+ User struct {+ Email *string `json:"email,omitempty"`+ FirstName *string `json:"firstName,omitempty"`+ Id openapi_types.UUID `json:"id"`+ LastName *string `json:"lastName,omitempty"`+ SuperAdmin *bool `json:"superAdmin,omitempty"`+ 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 AdminBootstrap400JSONResponseBodyStatusCode `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 AdminBootstrap401JSONResponseBodyStatusCode `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 AdminBootstrap403JSONResponseBodyStatusCode `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 AdminBootstrap404JSONResponseBodyStatusCode `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 AdminBootstrap422JSONResponseBodyStatusCode `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 AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}++// ParseUpdateAdminConfigResponse parses an HTTP response from a UpdateAdminConfigWithResponse call+func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &UpdateAdminConfigResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ Config struct {+ AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`+ AllowSignUp *bool `json:"allowSignUp,omitempty"`+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`+ AuthConsentContent *string `json:"authConsentContent,omitempty"`+ CreatedAt *time.Time `json:"createdAt,omitempty"`+ DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`+ DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`+ DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`+ DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`+ EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`+ FipsEnabled *bool `json:"fipsEnabled,omitempty"`+ Id openapi_types.UUID `json:"id"`+ Initialized *bool `json:"initialized,omitempty"`+ InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`+ IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`+ IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`+ IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`+ IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`+ IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`+ KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`+ LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`+ PageFrameContent *string `json:"pageFrameContent,omitempty"`+ ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`+ PasswordPolicy struct {+ Requirements []struct {+ Code string `json:"code"`+ Flags *string `json:"flags,omitempty"`+ IsPrimary bool `json:"isPrimary"`+ MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`+ Message string `json:"message"`+ Patterns []string `json:"patterns"`+ ShouldMatch bool `json:"shouldMatch"`+ ValidationMessage string `json:"validationMessage"`+ } `json:"requirements"`+ } `json:"passwordPolicy"`+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`+ } `json:"config"`+ }+ 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 UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest-// GetJSON403 returns the response for an HTTP 403 `application/json` response-func (r DeleteOrganizationResponse) GetJSON403() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode DeleteOrganization403JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON403-}+ 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 UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest-// GetJSON404 returns the response for an HTTP 404 `application/json` response-func (r DeleteOrganizationResponse) GetJSON404() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode DeleteOrganization404JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON404-}+ 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 UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest-// GetJSON422 returns the response for an HTTP 422 `application/json` response-func (r DeleteOrganizationResponse) GetJSON422() *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode DeleteOrganization422JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON422-}+ 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 UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest-// GetJSON500 returns the response for an HTTP 500 `application/json` response-func (r DeleteOrganizationResponse) GetJSON500() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode DeleteOrganization500JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON500-}+ 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 UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest-// GetBody returns the raw response body bytes-func (r DeleteOrganizationResponse) GetBody() []byte {- return r.Body-}+ 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 UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest-// Status returns HTTPResponse.Status-func (r DeleteOrganizationResponse) Status() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Status}- return http.StatusText(0)-}-// StatusCode returns HTTPResponse.StatusCode-func (r DeleteOrganizationResponse) StatusCode() int {- if r.HTTPResponse != nil {- return r.HTTPResponse.StatusCode- }- return 0+ return response, nil}-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers-func (r DeleteOrganizationResponse) ContentType() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Header.Get("Content-Type")+// ParseRefreshAuthTokenResponse parses an HTTP response from a RefreshAuthTokenWithResponse call+func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err}- return ""-}-type LoginV3Response struct {- Body []byte- HTTPResponse *http.Response- // JSON200 the response for an HTTP 200 `application/json` response- JSON200 *struct {- AccessToken string `json:"accessToken"`- }- // 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 LoginV3400JSONResponseBodyStatusCode `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 LoginV3401JSONResponseBodyStatusCode `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 LoginV3403JSONResponseBodyStatusCode `json:"statusCode"`+ response := &RefreshAuthTokenResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,}- // 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 LoginV3404JSONResponseBodyStatusCode `json:"statusCode"`++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ OrganizationId *string `json:"organizationId,omitempty"`+ RefreshToken *string `json:"refreshToken,omitempty"`+ SubOrganizationId *string `json:"subOrganizationId,omitempty"`+ Token string `json:"token"`+ }+ 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 RefreshAuthToken400JSONResponseBodyStatusCode `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 RefreshAuthToken401JSONResponseBodyStatusCode `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 RefreshAuthToken403JSONResponseBodyStatusCode `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 RefreshAuthToken404JSONResponseBodyStatusCode `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 RefreshAuthToken422JSONResponseBodyStatusCode `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 RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest+}- // 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 LoginV3422JSONResponseBodyStatusCode `json:"statusCode"`++ return response, nil+}++// ParseAttachUniversalAuthResponse parses an HTTP response from a AttachUniversalAuthWithResponse call+func ParseAttachUniversalAuthResponse(rsp *http.Response) (*AttachUniversalAuthResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err}- // 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 LoginV3500JSONResponseBodyStatusCode `json:"statusCode"`++ response := &AttachUniversalAuthResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,}-}-// GetJSON200 returns the response for an HTTP 200 `application/json` response-func (r LoginV3Response) GetJSON200() *struct {- AccessToken string `json:"accessToken"`-} {- return r.JSON200-}+ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ IdentityUniversalAuth struct {+ AccessTokenMaxTTL *float32 `json:"accessTokenMaxTTL,omitempty"`+ AccessTokenNumUsesLimit *float32 `json:"accessTokenNumUsesLimit,omitempty"`+ AccessTokenPeriod *float32 `json:"accessTokenPeriod,omitempty"`+ AccessTokenTTL *float32 `json:"accessTokenTTL,omitempty"`+ AccessTokenTrustedIps interface{} `json:"accessTokenTrustedIps,omitempty"`+ ClientId string `json:"clientId"`+ ClientSecretTrustedIps interface{} `json:"clientSecretTrustedIps,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ IdentityId openapi_types.UUID `json:"identityId"`+ LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`+ LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`+ LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`+ LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identityUniversalAuth"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest-// GetJSON400 returns the response for an HTTP 400 `application/json` response-func (r LoginV3Response) GetJSON400() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode LoginV3400JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON400-}+ 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 AttachUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest-// GetJSON401 returns the response for an HTTP 401 `application/json` response-func (r LoginV3Response) GetJSON401() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode LoginV3401JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON401-}+ 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 AttachUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest-// GetJSON403 returns the response for an HTTP 403 `application/json` response-func (r LoginV3Response) GetJSON403() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode LoginV3403JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON403-}+ 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 AttachUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest-// GetJSON404 returns the response for an HTTP 404 `application/json` response-func (r LoginV3Response) GetJSON404() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode LoginV3404JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON404-}+ 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 AttachUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest-// GetJSON422 returns the response for an HTTP 422 `application/json` response-func (r LoginV3Response) GetJSON422() *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode LoginV3422JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON422-}+ 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 AttachUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest-// GetJSON500 returns the response for an HTTP 500 `application/json` response-func (r LoginV3Response) GetJSON500() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode LoginV3500JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON500-}+ 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 AttachUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest-// GetBody returns the raw response body bytes-func (r LoginV3Response) GetBody() []byte {- return r.Body+ }++ return response, nil}-// Status returns HTTPResponse.Status-func (r LoginV3Response) Status() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Status+// ParseCreateUniversalAuthClientSecretResponse parses an HTTP response from a CreateUniversalAuthClientSecretWithResponse call+func ParseCreateUniversalAuthClientSecretResponse(rsp *http.Response) (*CreateUniversalAuthClientSecretResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err}- return http.StatusText(0)-}-// StatusCode returns HTTPResponse.StatusCode-func (r LoginV3Response) StatusCode() int {- if r.HTTPResponse != nil {- return r.HTTPResponse.StatusCode+ response := &CreateUniversalAuthClientSecretResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,}- return 0-}-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers-func (r LoginV3Response) ContentType() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Header.Get("Content-Type")+ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ ClientSecret string `json:"clientSecret"`+ ClientSecretData struct {+ ClientSecretNumUses *float32 `json:"clientSecretNumUses,omitempty"`+ ClientSecretNumUsesLimit *float32 `json:"clientSecretNumUsesLimit,omitempty"`+ ClientSecretPrefix string `json:"clientSecretPrefix"`+ ClientSecretTTL *float32 `json:"clientSecretTTL,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ Description string `json:"description"`+ Id string `json:"id"`+ IdentityUAId openapi_types.UUID `json:"identityUAId"`+ IsClientSecretRevoked *bool `json:"isClientSecretRevoked,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"clientSecretData"`+ }+ 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 CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode `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 CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode `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 CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode `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 CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode `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 CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode `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 CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest+}- return ""++ return response, nil}-type SelectOrganizationV3Response struct {- Body []byte- HTTPResponse *http.Response- // JSON200 the response for an HTTP 200 `application/json` response- JSON200 *struct {- IsMfaEnabled bool `json:"isMfaEnabled"`- MfaMethod *string `json:"mfaMethod,omitempty"`- Token string `json:"token"`- }- // 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 SelectOrganizationV3400JSONResponseBodyStatusCode `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 SelectOrganizationV3401JSONResponseBodyStatusCode `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 SelectOrganizationV3403JSONResponseBodyStatusCode `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 SelectOrganizationV3404JSONResponseBodyStatusCode `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 SelectOrganizationV3422JSONResponseBodyStatusCode `json:"statusCode"`+// ParseLoginWithUniversalAuthResponse parses an HTTP response from a LoginWithUniversalAuthWithResponse call+func ParseLoginWithUniversalAuthResponse(rsp *http.Response) (*LoginWithUniversalAuthResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err}- // 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 SelectOrganizationV3500JSONResponseBodyStatusCode `json:"statusCode"`++ response := &LoginWithUniversalAuthResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,}-}-// GetJSON200 returns the response for an HTTP 200 `application/json` response-func (r SelectOrganizationV3Response) GetJSON200() *struct {- IsMfaEnabled bool `json:"isMfaEnabled"`- MfaMethod *string `json:"mfaMethod,omitempty"`- Token string `json:"token"`-} {- return r.JSON200-}+ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ AccessToken string `json:"accessToken"`+ AccessTokenMaxTTL float32 `json:"accessTokenMaxTTL"`+ ExpiresIn float32 `json:"expiresIn"`+ TokenType LoginWithUniversalAuth200JSONResponseBodyTokenType `json:"tokenType"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest-// GetJSON400 returns the response for an HTTP 400 `application/json` response-func (r SelectOrganizationV3Response) GetJSON400() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode SelectOrganizationV3400JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON400-}+ 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 LoginWithUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest-// GetJSON401 returns the response for an HTTP 401 `application/json` response-func (r SelectOrganizationV3Response) GetJSON401() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode SelectOrganizationV3401JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON401-}+ 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 LoginWithUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest-// GetJSON403 returns the response for an HTTP 403 `application/json` response-func (r SelectOrganizationV3Response) GetJSON403() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode SelectOrganizationV3403JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON403-}+ 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 LoginWithUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest-// GetJSON404 returns the response for an HTTP 404 `application/json` response-func (r SelectOrganizationV3Response) GetJSON404() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode SelectOrganizationV3404JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON404-}+ 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 LoginWithUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest-// GetJSON422 returns the response for an HTTP 422 `application/json` response-func (r SelectOrganizationV3Response) GetJSON422() *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode SelectOrganizationV3422JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON422-}+ 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 LoginWithUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest-// GetJSON500 returns the response for an HTTP 500 `application/json` response-func (r SelectOrganizationV3Response) GetJSON500() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode SelectOrganizationV3500JSONResponseBodyStatusCode `json:"statusCode"`-} {- return r.JSON500-}+ 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 LoginWithUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest-// GetBody returns the raw response body bytes-func (r SelectOrganizationV3Response) GetBody() []byte {- return r.Body+ }++ return response, nil}-// Status returns HTTPResponse.Status-func (r SelectOrganizationV3Response) Status() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Status+// ParseCreateMachineIdentityResponse parses an HTTP response from a CreateMachineIdentityWithResponse call+func ParseCreateMachineIdentityResponse(rsp *http.Response) (*CreateMachineIdentityResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err}- return http.StatusText(0)-}-// StatusCode returns HTTPResponse.StatusCode-func (r SelectOrganizationV3Response) StatusCode() int {- if r.HTTPResponse != nil {- return r.HTTPResponse.StatusCode+ response := &CreateMachineIdentityResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,}- return 0-}-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers-func (r SelectOrganizationV3Response) ContentType() string {- if r.HTTPResponse != nil {- return r.HTTPResponse.Header.Get("Content-Type")+ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ Identity struct {+ AuthMethod *string `json:"authMethod,omitempty"`+ AuthMethods []string `json:"authMethods"`+ CreatedAt time.Time `json:"createdAt"`+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Id openapi_types.UUID `json:"id"`+ Metadata []struct {+ Id string `json:"id"`+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata"`+ Name string `json:"name"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectId *string `json:"projectId,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identity"`+ }+ 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 CreateMachineIdentity400JSONResponseBodyStatusCode `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 CreateMachineIdentity401JSONResponseBodyStatusCode `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 CreateMachineIdentity403JSONResponseBodyStatusCode `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 CreateMachineIdentity404JSONResponseBodyStatusCode `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 CreateMachineIdentity422JSONResponseBodyStatusCode `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 CreateMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest+}- return ""-}-// GetServerStatusWithResponse performs a GET /api/status (the `GetServerStatus` operationId) request.-//-// Returns a wrapper object for the known response body format(s).-func (c *ClientWithResponses) GetServerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServerStatusResponse, error) {- rsp, err := c.GetServerStatus(ctx, reqEditors...)- if err != nil {- return nil, err- }- return ParseGetServerStatusResponse(rsp)+ return response, nil}-// AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` 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) AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error) {- rsp, err := c.AdminBootstrapWithBody(ctx, contentType, body, reqEditors...)+// ParseInviteUsersToOrganizationResponse parses an HTTP response from a InviteUsersToOrganizationWithResponse call+func ParseInviteUsersToOrganizationResponse(rsp *http.Response) (*InviteUsersToOrganizationResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()if err != nil {return nil, err}- return ParseAdminBootstrapResponse(rsp)-}-// AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` 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) AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error) {- rsp, err := c.AdminBootstrap(ctx, body, reqEditors...)- if err != nil {- return nil, err+ response := &InviteUsersToOrganizationResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,}- return ParseAdminBootstrapResponse(rsp)-}-// UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` 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) UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error) {- rsp, err := c.UpdateAdminConfigWithBody(ctx, contentType, body, reqEditors...)- if err != nil {- return nil, err- }- return ParseUpdateAdminConfigResponse(rsp)-}+ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ CompleteInviteLinks *[]struct {+ Email string `json:"email"`+ Link string `json:"link"`+ } `json:"completeInviteLinks,omitempty"`+ GrantFailures *struct {+ AgentVaultAccess bool `json:"agentVaultAccess"`+ PamAccess bool `json:"pamAccess"`+ ProjectIds []string `json:"projectIds"`+ } `json:"grantFailures,omitempty"`+ Message string `json:"message"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest-// UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` 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) UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error) {- rsp, err := c.UpdateAdminConfig(ctx, body, reqEditors...)- if err != nil {- return nil, err- }- return ParseUpdateAdminConfigResponse(rsp)-}+ 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 InviteUsersToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest-// RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.-//-// Returns a wrapper object for the known response body format(s).-func (c *ClientWithResponses) RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error) {- rsp, err := c.RefreshAuthToken(ctx, reqEditors...)- if err != nil {- return nil, err- }- return ParseRefreshAuthTokenResponse(rsp)-}+ 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 InviteUsersToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest-// GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.-//-// Returns a wrapper object for the known response body format(s).-func (c *ClientWithResponses) GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error) {- rsp, err := c.GetOrganizationPlan(ctx, organizationId, params, reqEditors...)- if err != nil {- return nil, err- }- return ParseGetOrganizationPlanResponse(rsp)-}+ 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 InviteUsersToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest-// CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,-// with any type of body and a specified content type.-//-// Create a new project.-//-// Returns a wrapper object for the known response body format(s).-func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) {- rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...)- if err != nil {- return nil, err- }- return ParseCreateProjectResponse(rsp)-}+ 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 InviteUsersToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest-// CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).-//-// Create a new project.-func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) {- rsp, err := c.CreateProject(ctx, body, reqEditors...)- if err != nil {- return nil, err- }- return ParseCreateProjectResponse(rsp)-}+ 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 InviteUsersToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest-// CreateOrganizationWithBodyWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` 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) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error) {- rsp, err := c.CreateOrganizationWithBody(ctx, contentType, body, reqEditors...)- if err != nil {- return nil, err- }- return ParseCreateOrganizationResponse(rsp)-}+ 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 InviteUsersToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest-// CreateOrganizationWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` 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) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error) {- rsp, err := c.CreateOrganization(ctx, body, reqEditors...)- if err != nil {- return nil, err}- return ParseCreateOrganizationResponse(rsp)-}-// DeleteOrganizationWithResponse performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.-//-// Returns a wrapper object for the known response body format(s).-func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) {- rsp, err := c.DeleteOrganization(ctx, organizationId, reqEditors...)- if err != nil {- return nil, err- }- return ParseDeleteOrganizationResponse(rsp)+ return response, nil}-// LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` 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) LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error) {- rsp, err := c.LoginV3WithBody(ctx, contentType, body, reqEditors...)+// ParseVerifyUserToOrganizationResponse parses an HTTP response from a VerifyUserToOrganizationWithResponse call+func ParseVerifyUserToOrganizationResponse(rsp *http.Response) (*VerifyUserToOrganizationResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()if err != nil {return nil, err}- return ParseLoginV3Response(rsp)-}-// LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` 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) LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error) {- rsp, err := c.LoginV3(ctx, body, reqEditors...)- if err != nil {- return nil, err+ response := &VerifyUserToOrganizationResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,}- return ParseLoginV3Response(rsp)-}-// SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` 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) SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error) {- rsp, err := c.SelectOrganizationV3WithBody(ctx, contentType, body, reqEditors...)- if err != nil {- return nil, err+ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ Message string `json:"message"`++ // OrganizationName Name of the organization associated with the verified invitation+ OrganizationName string `json:"organizationName"`+ Token *string `json:"token,omitempty"`+ }+ 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 VerifyUserToOrganization400JSONResponseBodyStatusCode `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 VerifyUserToOrganization401JSONResponseBodyStatusCode `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 VerifyUserToOrganization403JSONResponseBodyStatusCode `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 VerifyUserToOrganization404JSONResponseBodyStatusCode `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 VerifyUserToOrganization422JSONResponseBodyStatusCode `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 VerifyUserToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest+}- return ParseSelectOrganizationV3Response(rsp)-}-// SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` 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) SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error) {- rsp, err := c.SelectOrganizationV3(ctx, body, reqEditors...)- if err != nil {- return nil, err- }- return ParseSelectOrganizationV3Response(rsp)+ return response, nil}-// ParseGetServerStatusResponse parses an HTTP response from a GetServerStatusWithResponse call-func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse, error) {+// ParseGetOrganizationPlanResponse parses an HTTP response from a GetOrganizationPlanWithResponse call+func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanResponse, error) {bodyBytes, err := io.ReadAll(rsp.Body)defer func() { _ = rsp.Body.Close() }()if err != nil {return nil, err}- response := &GetServerStatusResponse{+ response := &GetOrganizationPlanResponse{Body: bodyBytes,HTTPResponse: rsp,}@@ -4388,15 +10569,7 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,switch {case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:var dest struct {- AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`- Date time.Time `json:"date"`- EmailConfigured *bool `json:"emailConfigured,omitempty"`- InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`- MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`- Message *string `json:"message,omitempty"`- RedisConfigured *bool `json:"redisConfigured,omitempty"`- SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`- SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`+ Plan interface{} `json:"plan,omitempty"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4405,11 +10578,11 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,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 GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationPlan400JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4418,10 +10591,10 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,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 GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationPlan401JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4430,11 +10603,11 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,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 GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationPlan403JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4443,10 +10616,10 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,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 GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationPlan404JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4455,10 +10628,10 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,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 GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationPlan422JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4467,10 +10640,10 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,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 GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationPlan500JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4482,15 +10655,15 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,return response, nil}-// ParseAdminBootstrapResponse parses an HTTP response from a AdminBootstrapWithResponse call-func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, error) {+// ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call+func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error) {bodyBytes, err := io.ReadAll(rsp.Body)defer func() { _ = rsp.Body.Close() }()if err != nil {return nil, err}- response := &AdminBootstrapResponse{+ response := &CreateProjectResponse{Body: bodyBytes,HTTPResponse: rsp,}@@ -4498,27 +10671,43 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, eswitch {case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:var dest struct {- Identity struct {- Credentials struct {- Token string `json:"token"`- } `json:"credentials"`- Id openapi_types.UUID `json:"id"`- Name string `json:"name"`- } `json:"identity"`- Message string `json:"message"`- Organization struct {- Id openapi_types.UUID `json:"id"`- Name string `json:"name"`- Slug string `json:"slug"`- } `json:"organization"`- User struct {- Email *string `json:"email,omitempty"`- FirstName *string `json:"firstName,omitempty"`- Id openapi_types.UUID `json:"id"`- LastName *string `json:"lastName,omitempty"`- SuperAdmin *bool `json:"superAdmin,omitempty"`- Username string `json:"username"`- } `json:"user"`+ Project struct {+ UnderscoreId string `json:"_id"`+ AuditLogsRetentionDays *float32 `json:"auditLogsRetentionDays,omitempty"`+ AutoCapitalization *bool `json:"autoCapitalization,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ DefaultProduct *string `json:"defaultProduct,omitempty"`+ DeletedEnvironments []struct {+ DeleteAfter time.Time `json:"deleteAfter"`+ DeletedBy *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy `json:"deletedBy"`+ Id string `json:"id"`+ Name string `json:"name"`+ Slug string `json:"slug"`+ SoftDeletedAt time.Time `json:"softDeletedAt"`+ } `json:"deletedEnvironments"`+ Description *string `json:"description,omitempty"`+ EnforceEncryptedSecretManagerSecretMetadata *bool `json:"enforceEncryptedSecretManagerSecretMetadata,omitempty"`+ Environments []struct {+ Id string `json:"id"`+ Name string `json:"name"`+ Slug string `json:"slug"`+ } `json:"environments"`+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Id string `json:"id"`+ IsLegacyAdditionalPrivilegesEnabled *bool `json:"isLegacyAdditionalPrivilegesEnabled,omitempty"`+ KmsCertificateKeyId *openapi_types.UUID `json:"kmsCertificateKeyId,omitempty"`+ Name string `json:"name"`+ OrgId openapi_types.UUID `json:"orgId"`+ PitVersionLimit *float32 `json:"pitVersionLimit,omitempty"`+ SecretDetectionIgnoreValues *[]string `json:"secretDetectionIgnoreValues,omitempty"`+ SecretSharing *bool `json:"secretSharing,omitempty"`+ ShowSnapshotsLegacy *bool `json:"showSnapshotsLegacy,omitempty"`+ Slug string `json:"slug"`+ Type string `json:"type"`+ UpdatedAt time.Time `json:"updatedAt"`+ UpgradeStatus *string `json:"upgradeStatus,omitempty"`+ Version *float32 `json:"version,omitempty"`+ } `json:"project"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4527,11 +10716,11 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, ecase 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 AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProject400JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4540,10 +10729,10 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, ecase 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 AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProject401JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4552,11 +10741,11 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, ecase 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 AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProject403JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4565,10 +10754,10 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, ecase 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 AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProject404JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4577,10 +10766,10 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, ecase 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 AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateProject422JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4589,10 +10778,10 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, ecase 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 AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProject500JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4604,61 +10793,39 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, ereturn response, nil}-// ParseUpdateAdminConfigResponse parses an HTTP response from a UpdateAdminConfigWithResponse call-func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigResponse, error) {+// ParseListProjectMachineIdentitiesResponse parses an HTTP response from a ListProjectMachineIdentitiesWithResponse call+func ParseListProjectMachineIdentitiesResponse(rsp *http.Response) (*ListProjectMachineIdentitiesResponse, error) {bodyBytes, err := io.ReadAll(rsp.Body)defer func() { _ = rsp.Body.Close() }()if err != nil {return nil, err}- response := &UpdateAdminConfigResponse{+ response := &ListProjectMachineIdentitiesResponse{Body: bodyBytes,HTTPResponse: rsp,- }-- switch {- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:- var dest struct {- Config struct {- AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`- AllowSignUp *bool `json:"allowSignUp,omitempty"`- AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`- AuthConsentContent *string `json:"authConsentContent,omitempty"`- CreatedAt *time.Time `json:"createdAt,omitempty"`- DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`- DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`- DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`- DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`- EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`- FipsEnabled *bool `json:"fipsEnabled,omitempty"`- Id openapi_types.UUID `json:"id"`- Initialized *bool `json:"initialized,omitempty"`- InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`- IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`- IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`- IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`- IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`- IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`- KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`- LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`- OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`- PageFrameContent *string `json:"pageFrameContent,omitempty"`- ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`- PasswordPolicy struct {- Requirements []struct {- Code string `json:"code"`- Flags *string `json:"flags,omitempty"`- IsPrimary bool `json:"isPrimary"`- MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`- Message string `json:"message"`- Patterns []string `json:"patterns"`- ShouldMatch bool `json:"shouldMatch"`- ValidationMessage string `json:"validationMessage"`- } `json:"requirements"`- } `json:"passwordPolicy"`- TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`- } `json:"config"`+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ Identities []struct {+ ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`+ AuthMethods *[]string `json:"authMethods,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Id openapi_types.UUID `json:"id"`+ Metadata *[]struct {+ Id string `json:"id"`+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata,omitempty"`+ Name string `json:"name"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectId *string `json:"projectId,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identities"`+ TotalCount float32 `json:"totalCount"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4667,11 +10834,11 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespocase 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 UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListProjectMachineIdentities400JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4680,10 +10847,10 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespocase 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 UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListProjectMachineIdentities401JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4692,11 +10859,11 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespocase 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 UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListProjectMachineIdentities403JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4705,10 +10872,10 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespocase 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 UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListProjectMachineIdentities404JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4717,10 +10884,10 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespocase 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 UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode ListProjectMachineIdentities422JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4729,10 +10896,10 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespocase 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 UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListProjectMachineIdentities500JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4744,15 +10911,15 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigResporeturn response, nil}-// ParseRefreshAuthTokenResponse parses an HTTP response from a RefreshAuthTokenWithResponse call-func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponse, error) {+// ParseCreateProjectMachineIdentityResponse parses an HTTP response from a CreateProjectMachineIdentityWithResponse call+func ParseCreateProjectMachineIdentityResponse(rsp *http.Response) (*CreateProjectMachineIdentityResponse, error) {bodyBytes, err := io.ReadAll(rsp.Body)defer func() { _ = rsp.Body.Close() }()if err != nil {return nil, err}- response := &RefreshAuthTokenResponse{+ response := &CreateProjectMachineIdentityResponse{Body: bodyBytes,HTTPResponse: rsp,}@@ -4760,10 +10927,22 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponsswitch {case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:var dest struct {- OrganizationId *string `json:"organizationId,omitempty"`- RefreshToken *string `json:"refreshToken,omitempty"`- SubOrganizationId *string `json:"subOrganizationId,omitempty"`- Token string `json:"token"`+ Identity struct {+ ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`+ AuthMethods *[]string `json:"authMethods,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`+ Id openapi_types.UUID `json:"id"`+ Metadata *[]struct {+ Id string `json:"id"`+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata,omitempty"`+ Name string `json:"name"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectId *string `json:"projectId,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identity"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4772,11 +10951,11 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponscase 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 RefreshAuthToken400JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4785,10 +10964,10 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponscase 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 RefreshAuthToken401JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4797,11 +10976,11 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponscase 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 RefreshAuthToken403JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4810,10 +10989,10 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponscase 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 RefreshAuthToken404JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4822,10 +11001,10 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponscase 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 RefreshAuthToken422JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4834,10 +11013,10 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponscase 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 RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4849,15 +11028,15 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponsreturn response, nil}-// ParseGetOrganizationPlanResponse parses an HTTP response from a GetOrganizationPlanWithResponse call-func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanResponse, error) {+// ParseInviteProjectMembersResponse parses an HTTP response from a InviteProjectMembersWithResponse call+func ParseInviteProjectMembersResponse(rsp *http.Response) (*InviteProjectMembersResponse, error) {bodyBytes, err := io.ReadAll(rsp.Body)defer func() { _ = rsp.Body.Close() }()if err != nil {return nil, err}- response := &GetOrganizationPlanResponse{+ response := &InviteProjectMembersResponse{Body: bodyBytes,HTTPResponse: rsp,}@@ -4865,7 +11044,13 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanRswitch {case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:var dest struct {- Plan interface{} `json:"plan,omitempty"`+ Memberships []struct {+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ ProjectId string `json:"projectId"`+ UpdatedAt time.Time `json:"updatedAt"`+ UserId openapi_types.UUID `json:"userId"`+ } `json:"memberships"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4874,11 +11059,11 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanRcase 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 GetOrganizationPlan400JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteProjectMembers400JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4887,10 +11072,10 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanRcase 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 GetOrganizationPlan401JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteProjectMembers401JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4899,11 +11084,11 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanRcase 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 GetOrganizationPlan403JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteProjectMembers403JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4912,10 +11097,10 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanRcase 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 GetOrganizationPlan404JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteProjectMembers404JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4924,10 +11109,10 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanRcase 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 GetOrganizationPlan422JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode InviteProjectMembers422JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4936,10 +11121,10 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanRcase 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 GetOrganizationPlan500JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode InviteProjectMembers500JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -4951,15 +11136,15 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanRreturn response, nil}-// ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call-func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error) {+// ParseCreateProjectIdentityMembershipResponse parses an HTTP response from a CreateProjectIdentityMembershipWithResponse call+func ParseCreateProjectIdentityMembershipResponse(rsp *http.Response) (*CreateProjectIdentityMembershipResponse, error) {bodyBytes, err := io.ReadAll(rsp.Body)defer func() { _ = rsp.Body.Close() }()if err != nil {return nil, err}- response := &CreateProjectResponse{+ response := &CreateProjectIdentityMembershipResponse{Body: bodyBytes,HTTPResponse: rsp,}@@ -4967,43 +11152,13 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, errswitch {case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:var dest struct {- Project struct {- UnderscoreId string `json:"_id"`- AuditLogsRetentionDays *float32 `json:"auditLogsRetentionDays,omitempty"`- AutoCapitalization *bool `json:"autoCapitalization,omitempty"`- CreatedAt time.Time `json:"createdAt"`- DefaultProduct *string `json:"defaultProduct,omitempty"`- DeletedEnvironments []struct {- DeleteAfter time.Time `json:"deleteAfter"`- DeletedBy *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy `json:"deletedBy"`- Id string `json:"id"`- Name string `json:"name"`- Slug string `json:"slug"`- SoftDeletedAt time.Time `json:"softDeletedAt"`- } `json:"deletedEnvironments"`- Description *string `json:"description,omitempty"`- EnforceEncryptedSecretManagerSecretMetadata *bool `json:"enforceEncryptedSecretManagerSecretMetadata,omitempty"`- Environments []struct {- Id string `json:"id"`- Name string `json:"name"`- Slug string `json:"slug"`- } `json:"environments"`- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`- Id string `json:"id"`- IsLegacyAdditionalPrivilegesEnabled *bool `json:"isLegacyAdditionalPrivilegesEnabled,omitempty"`- KmsCertificateKeyId *openapi_types.UUID `json:"kmsCertificateKeyId,omitempty"`- Name string `json:"name"`- OrgId openapi_types.UUID `json:"orgId"`- PitVersionLimit *float32 `json:"pitVersionLimit,omitempty"`- SecretDetectionIgnoreValues *[]string `json:"secretDetectionIgnoreValues,omitempty"`- SecretSharing *bool `json:"secretSharing,omitempty"`- ShowSnapshotsLegacy *bool `json:"showSnapshotsLegacy,omitempty"`- Slug string `json:"slug"`- Type string `json:"type"`- UpdatedAt time.Time `json:"updatedAt"`- UpgradeStatus *string `json:"upgradeStatus,omitempty"`- Version *float32 `json:"version,omitempty"`- } `json:"project"`+ IdentityMembership struct {+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ IdentityId openapi_types.UUID `json:"identityId"`+ ProjectId string `json:"projectId"`+ UpdatedAt time.Time `json:"updatedAt"`+ } `json:"identityMembership"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -5012,11 +11167,11 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, errcase 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 CreateProject400JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectIdentityMembership400JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -5025,10 +11180,10 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, errcase 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 CreateProject401JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectIdentityMembership401JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -5037,11 +11192,11 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, errcase 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 CreateProject403JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectIdentityMembership403JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -5050,10 +11205,10 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, errcase 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 CreateProject404JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectIdentityMembership404JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -5062,10 +11217,10 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, errcase 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 CreateProject422JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectIdentityMembership422JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -5074,10 +11229,10 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, errcase 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 CreateProject500JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateProjectIdentityMembership500JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -5563,3 +11718,116 @@ func ParseSelectOrganizationV3Response(rsp *http.Response) (*SelectOrganizationVreturn response, nil}++// ParseCompleteAccountSignupV3Response parses an HTTP response from a CompleteAccountSignupV3WithResponse call+func ParseCompleteAccountSignupV3Response(rsp *http.Response) (*CompleteAccountSignupV3Response, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &CompleteAccountSignupV3Response{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ Message string `json:"message"`+ Token string `json:"token"`+ 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"`+ }+ 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 CompleteAccountSignupV3400JSONResponseBodyStatusCode `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 CompleteAccountSignupV3401JSONResponseBodyStatusCode `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 CompleteAccountSignupV3403JSONResponseBodyStatusCode `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 CompleteAccountSignupV3404JSONResponseBodyStatusCode `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 CompleteAccountSignupV3422JSONResponseBodyStatusCode `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 CompleteAccountSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}diff --git a/tests/clients/api/oapi-codegen.yaml b/tests/clients/api/oapi-codegen.yamlindex ab3f291d13..4463112c53 100644--- a/tests/clients/api/oapi-codegen.yaml+++ b/tests/clients/api/oapi-codegen.yaml@@ -9,9 +9,12 @@ generate:output-options:# Only what the suite calls. Add an id here when a test reaches for a new endpoint.#- # The route must also be in the spec, which needs OPENAPI_FULL_SPEC on the instance- # being generated from: half the routes are hidden by default, and a route with no- # operationId gets a name derived from its path that changes when the path does.+ # The route must also be in the spec, which needs OPENAPI_FULL_SPEC *and* a+ # non-production NODE_ENV on the instance being generated from -- env.ts resolves+ # isOpenApiFullSpec as `NODE_ENV !== "production" && OPENAPI_FULL_SPEC`, so the+ # harness's own container can never serve it. Generate from the dev stack. Half the+ # routes are hidden by default, and a route with no operationId gets a name derived+ # from its path that changes when the path does.include-operation-ids:- adminBootstrap- updateAdminConfig@@ -23,3 +26,14 @@ output-options:- deleteOrganization- createProject- getOrganizationPlan+ - inviteUsersToOrganization+ - verifyUserToOrganization+ - completeAccountSignupV3+ - inviteProjectMembers+ - createMachineIdentity+ - createProjectMachineIdentity+ - createProjectIdentityMembership+ - listProjectMachineIdentities+ - attachUniversalAuth+ - createUniversalAuthClientSecret+ - loginWithUniversalAuthdiff --git a/tests/harness/harness.go b/tests/harness/harness.goindex c216af60b3..187cd2fdb9 100644--- a/tests/harness/harness.go+++ b/tests/harness/harness.go@@ -15,6 +15,7 @@ import ("path/filepath""runtime""strings"+ "sync""testing""github.com/Infisical/infisical/tests/harness/infisical"@@ -38,6 +39,9 @@ type Stack struct {app *infisical.Handleroot infisical.Rootlicense *license.Server++ adminOnce sync.Once+ instanceAdmin *Principal}// Option adjusts what Main brings up.@@ -204,6 +208,29 @@ func (s *Stack) Require(t *testing.T, key infra.Key, option string) infra.Handlereturn h}+// failer is the part of *testing.T a guard needs.+//+// testing.TB cannot be implemented outside the testing package -- it carries an+// unexported method for exactly that reason -- so asserting that a guard fires needs+// a narrower interface of our own.+type failer interface {+ Helper()+ Fatalf(format string, args ...any)+}++// requireIsolated refuses instance-wide access from a Shared package.+func (s *Stack) requireIsolated(f failer) {+ f.Helper()+ if s.profile == Isolated {+ return+ }+ f.Fatalf("%s: InstanceAdmin needs harness.Isolated.\n"++ "Instance configuration is global, so writing it from a Shared package would "++ "change the instance every other package is using.\n"++ "Change TestMain in %s to harness.Main(m, harness.Isolated).",+ s.pkg, filepath.Base(s.mainFile))+}+// packageNameFor derives a container-name fragment from the TestMain file, so an// Isolated package's containers cannot be adopted by a different one.func packageNameFor(mainFile string) string {@@ -217,3 +244,42 @@ func packageNameFor(mainFile string) string {}return infra.Sanitize(strings.TrimPrefix(dir, root))}++// InstanceAdmin returns a principal that passes verifySuperAdmin.+//+// Only under Isolated. Instance configuration is global: a Shared-profile test that+// disabled signup or changed the encryption strategy would break every other package+// adopting the same container, and it would break them somewhere else, later, in a+// test that looks unrelated. Isolated gives the package its own instance, so the+// blast radius is the package.+//+// Prefers the bootstrap identity, which carries no user-level state a test could+// corrupt. An adopted instance cannot produce one -- the client secret is shown once,+// by the process that bootstrapped -- so there it falls back to the root user, who is+// a super admin in their own right (super-admin-fns.ts accepts either).+func (s *Stack) InstanceAdmin(t *testing.T) *Principal {+ t.Helper()+ s.requireIsolated(t)++ s.adminOnce.Do(func() {+ ip := newIP()+ token := s.root.IdentityToken+ if token == "" {+ token = s.rootToken(t, ip)+ }+ s.instanceAdmin = &Principal{+ Kind: Identity,+ ID: s.root.IdentityID,+ Name: "instance-admin",+ Token: token,+ API: s.client(t, token, ip),+ ip: ip,+ }+ if s.root.IdentityToken == "" {+ s.instanceAdmin.Kind = User+ s.instanceAdmin.ID = s.root.UserID+ s.instanceAdmin.Email = s.root.Email+ }+ })+ return s.instanceAdmin+}diff --git a/tests/harness/instance_admin_test.go b/tests/harness/instance_admin_test.gonew file mode 100644index 0000000000..663eedc38c--- /dev/null+++ b/tests/harness/instance_admin_test.go@@ -0,0 +1,94 @@+package harness++import (+ "fmt"+ "strings"+ "testing"+)++// recorder stands in for *testing.T so a guard that ends in Fatalf can be asserted on.+//+// Fatalf must not return, or the caller carries on into code the guard was protecting,+// so this panics and the test recovers. That mirrors the real runtime.Goexit closely+// enough for a guard that fails before touching anything else.+type recorder struct{ msg string }++func (r *recorder) Helper() {}+func (r *recorder) Fatalf(format string, args ...any) {+ r.msg = fmt.Sprintf(format, args...)+ panic(r)+}++func (r *recorder) run(f func(failer)) (fired bool, msg string) {+ defer func() {+ if p := recover(); p != nil {+ if p != any(r) {+ panic(p)+ }+ fired, msg = true, r.msg+ }+ }()+ f(r)+ return false, ""+}++func TestRequireIsolated_RefusesShared(t *testing.T) {+ s := &Stack{profile: Shared, pkg: "suites/platform", mainFile: "/repo/tests/suites/platform/main_test.go"}++ fired, msg := new(recorder).run(s.requireIsolated)+ if !fired {+ t.Fatal("a Shared package was allowed instance-wide access")+ }+ for _, want := range []string{"suites/platform", "harness.Isolated", "main_test.go"} {+ if !strings.Contains(msg, want) {+ t.Errorf("message should name %q so the fix is obvious, got:\n%s", want, msg)+ }+ }+}++func TestRequireIsolated_AllowsIsolated(t *testing.T) {+ s := &Stack{profile: Isolated, pkg: "suites/instance"}++ if fired, msg := new(recorder).run(s.requireIsolated); fired {+ t.Fatalf("an Isolated package was refused instance-wide access: %s", msg)+ }+}++func TestPrincipalOptions_RejectedWhereTheyDoNothing(t *testing.T) {+ // The pairs a constructor cannot honour. Accepting one silently would let a test+ // assert against a principal that never got the role it asked for.+ cases := []struct {+ name string+ opt PrincipalOption+ key string+ }{+ {"ProjectRole on a tenant-level constructor", ProjectRole("viewer"), "ProjectRole"},+ {"OrgRole on Project.NewIdentity", OrgRole("admin"), "OrgRole"},+ }++ for _, tc := range cases {+ t.Run(tc.name, func(t *testing.T) {+ cfg := newPrincipalConfig("x", []PrincipalOption{tc.opt})++ fired, msg := new(recorder).run(func(f failer) {+ cfg.reject(f, tc.key, "Tenant.NewIdentity", "Use project.Grant instead.")+ })+ if !fired {+ t.Fatalf("%s was accepted and dropped", tc.key)+ }+ if !strings.Contains(msg, tc.key) || !strings.Contains(msg, "project.Grant") {+ t.Errorf("message should name the option and the way out, got:\n%s", msg)+ }+ })+ }+}++func TestPrincipalOptions_UnsetOptionsPass(t *testing.T) {+ cfg := newPrincipalConfig("x", []PrincipalOption{WithName("alice")})++ if fired, msg := new(recorder).run(func(f failer) {+ cfg.reject(f, "ProjectRole", "Tenant.NewUser", "Use project.NewUser.")+ }); fired {+ t.Fatalf("an option that was never passed was rejected: %s", msg)+ }+}diff --git a/tests/harness/principal.go b/tests/harness/principal.gonew file mode 100644index 0000000000..63139bb993--- /dev/null+++ b/tests/harness/principal.go@@ -0,0 +1,381 @@+package harness++import (+ "bytes"+ "crypto/rand"+ "encoding/json"+ "fmt"+ "net/http"+ "strings"+ "testing"++ "github.com/Infisical/infisical/tests/clients/api"+ "github.com/Infisical/infisical/tests/harness/infisical"+ "github.com/Infisical/infisical/tests/infra"+ "github.com/Infisical/infisical/tests/infra/mailpit"+ "github.com/Infisical/infisical/tests/internal/mail"+ "github.com/google/uuid"+ openapi_types "github.com/oapi-codegen/runtime/types"+)++// UserPassword is what every harness-created user gets.+//+// Fixed rather than generated so a failing test can be reproduced by hand against the+// surviving instance. It satisfies PASSWORD_POLICY: fourteen characters, a letter, a+// digit and a symbol.+const UserPassword = "HarnessUserPassword7!"++// PrincipalOption adjusts a new user or identity.+type PrincipalOption func(*principalConfig)++type principalConfig struct {+ name string+ orgRole string+ projectRoles []string++ // set records which options the caller passed, so a constructor that cannot honour+ // one can say so. Silently dropping a role is the worst outcome available here: the+ // test still runs, and passes or fails for a reason unrelated to what it asked for.+ set map[string]bool+}++// WithName names the principal. For a user it also picks the mailbox, so+// WithName("alice") means alice@<orgslug>.test.+func WithName(name string) PrincipalOption {+ return func(c *principalConfig) { c.name = name }+}++// OrgRole sets the organization role: no-access, member or admin, or a custom slug.+//+// Rejected by Project.NewIdentity, which creates the identity through the project+// route and has no organization role to set. Create it with Tenant.NewIdentity and+// grant it the project afterwards if you need both.+func OrgRole(slug string) PrincipalOption {+ return func(c *principalConfig) { c.orgRole = slug; c.set["OrgRole"] = true }+}++// ProjectRole sets the roles the principal gets on the project it is created in.+//+// Rejected by the tenant-level constructors, which create nothing in a project.+func ProjectRole(slugs ...string) PrincipalOption {+ return func(c *principalConfig) { c.projectRoles = slugs; c.set["ProjectRole"] = true }+}++// reject fails the test when the caller passed an option this constructor cannot act+// on, naming the constructor that can.+func (c principalConfig) reject(f failer, option, by, instead string) {+ f.Helper()+ if c.set[option] {+ f.Fatalf("harness: %s ignores %s.\n%s", by, option, instead)+ }+}++func newPrincipalConfig(prefix string, opts []PrincipalOption) principalConfig {+ cfg := principalConfig{name: prefix + "-" + shortID(), orgRole: "member", set: map[string]bool{}}+ for _, o := range opts {+ o(&cfg)+ }+ return cfg+}++// Mail returns a view of Mailpit scoped to this tenant's domain.+//+// A method rather than a field: it fails with the option to add when the suite has no+// Mailpit, where a field would be a nil dereference three frames inside the client.+func (t *Tenant) Mail(tt *testing.T) *mail.Inbox {+ tt.Helper()+ h := t.stack.Require(tt, mailpit.Key, "harness.Shared").(*mailpit.Handle)+ return mail.NewInbox(h.API(infra.External).URL("http"), t.OrgSlug+".test")+}++// NewUser creates a real user in this tenant's organization.+//+// The whole invite flow, because there is no shortcut. The invite response carries+// the signup link only when SMTP is unconfigured (org-membership-user-factory.ts),+// and the harness configures SMTP on purpose, so the link has to come out of the+// mailbox. That is what makes Mailpit load-bearing rather than decorative.+//+// Five calls: invite, verify, complete-account, select-organization, and the mail+// read in between. The last one is not just fetching a scoped token --+// selectOrganization is what promotes the membership from Invited to Accepted.+func (t *Tenant) NewUser(tt *testing.T, opts ...PrincipalOption) *Principal {+ tt.Helper()+ cfg := newPrincipalConfig("u", opts)+ cfg.reject(tt, "ProjectRole", "Tenant.NewUser",+ "It creates an organization member and nothing in a project. Use project.NewUser, "++ "or project.Grant to add this user afterwards.")+ return t.newUser(tt, cfg)+}++func (t *Tenant) newUser(tt *testing.T, cfg principalConfig) *Principal {+ tt.Helper()+ ctx := tt.Context()+ addr := t.Address(cfg.name)++ // The new user's own bucket, not the tenant's: the invite goes through+ // smtpRateLimit, which is a hardcoded two per forty seconds keyed on the source+ // address and is not raisable through the plan.+ ip := newIP()+ inviter := t.stack.client(tt, t.Admin.Token, ip)++ invited, err := inviter.InviteUsersToOrganizationWithResponse(ctx, api.InviteUsersToOrganizationJSONRequestBody{+ InviteeEmails: []openapi_types.Email{openapi_types.Email(addr)},+ OrganizationId: t.OrgID.String(),+ OrganizationRoleSlug: &cfg.orgRole,+ })+ if err != nil {+ tt.Fatalf("harness: inviting %s: %v", addr, err)+ }+ if invited.StatusCode() != http.StatusOK {+ tt.Fatalf("harness: inviting %s returned %d: %s", addr, invited.StatusCode(), body(invited.Body))+ }++ msg, err := t.Mail(tt).Await(ctx, addr, mail.Subject("invitation"))+ if err != nil {+ tt.Fatalf("harness: %v", err)+ }+ inviteToken, err := mail.Param(msg, "token")+ if err != nil {+ tt.Fatalf("harness: %v", err)+ }++ anon, err := infisical.NewClient(t.stack.app.BaseURL(infra.External), infisical.ForwardedFor(ip))+ if err != nil {+ tt.Fatalf("harness: %v", err)+ }+ verified, err := anon.VerifyUserToOrganizationWithResponse(ctx, api.VerifyUserToOrganizationJSONRequestBody{+ Email: openapi_types.Email(addr),+ OrganizationId: t.OrgID.String(),+ Code: inviteToken,+ })+ if err != nil {+ tt.Fatalf("harness: verifying the invitation for %s: %v", addr, err)+ }+ if verified.JSON200 == nil || verified.JSON200.Token == nil {+ tt.Fatalf("harness: verifying the invitation for %s returned %d: %s",+ addr, verified.StatusCode(), body(verified.Body))+ }++ var signupBody api.CompleteAccountSignupV3JSONBody+ if err := signupBody.FromCompleteAccountSignupV3JSONBody0(api.CompleteAccountSignupV3JSONBody0{+ Type: api.CompleteAccountSignupV3JSONBody0TypeEmail,+ Email: addr,+ FirstName: cfg.name,+ Password: UserPassword,+ }); err != nil {+ tt.Fatalf("harness: %v", err)+ }++ // The typed request body cannot carry this. oapi-codegen declares+ // CompleteAccountSignupV3JSONRequestBody as a defined type over the union struct,+ // and a defined type does not inherit methods -- so the generated MarshalJSON is+ // lost and the discriminated union serialises as {}. Encoding the union itself and+ // posting the bytes is the only shape that survives.+ raw, err := json.Marshal(signupBody)+ if err != nil {+ tt.Fatalf("harness: %v", err)+ }+ completed, err := t.stack.client(tt, *verified.JSON200.Token, ip).+ CompleteAccountSignupV3WithBodyWithResponse(ctx, "application/json", bytes.NewReader(raw))+ if err != nil {+ tt.Fatalf("harness: completing the account for %s: %v", addr, err)+ }+ if completed.JSON200 == nil {+ tt.Fatalf("harness: completing the account for %s returned %d: %s",+ addr, completed.StatusCode(), body(completed.Body))+ }++ scoped := t.stack.scopeToOrg(tt, completed.JSON200.Token, t.OrgID, ip)+ return &Principal{+ Kind: User,+ ID: completed.JSON200.User.Id,+ Name: cfg.name,+ Email: addr,+ Token: scoped,+ API: t.stack.client(tt, scoped, ip),+ ip: ip,+ }+}++// NewIdentity creates a machine identity with universal auth and logs it in.+//+// Four calls and no mail, so it is much cheaper than a user. Reach for this unless+// the behaviour under test is specific to a human actor.+func (t *Tenant) NewIdentity(tt *testing.T, opts ...PrincipalOption) *Principal {+ tt.Helper()+ cfg := newPrincipalConfig("i", opts)+ cfg.reject(tt, "ProjectRole", "Tenant.NewIdentity",+ "It creates an organization identity and nothing in a project. Use project.NewIdentity, "++ "or project.Grant to add this identity afterwards.")++ res, err := t.Admin.API.CreateMachineIdentityWithResponse(tt.Context(), api.CreateMachineIdentityJSONRequestBody{+ Name: cfg.name,+ OrganizationId: t.OrgID.String(),+ Role: &cfg.orgRole,+ })+ if err != nil {+ tt.Fatalf("harness: creating identity %s: %v", cfg.name, err)+ }+ if res.JSON200 == nil {+ tt.Fatalf("harness: creating identity %s returned %d: %s", cfg.name, res.StatusCode(), body(res.Body))+ }+ return t.loginIdentity(tt, res.JSON200.Identity.Id, cfg.name)+}++// NewIdentity creates a machine identity directly inside this project.+//+// One call rather than two: createProjectMachineIdentity takes the project roles and+// makes the org identity and the project membership together.+func (p *Project) NewIdentity(tt *testing.T, opts ...PrincipalOption) *Principal {+ tt.Helper()+ cfg := newPrincipalConfig("i", opts)+ cfg.reject(tt, "OrgRole", "Project.NewIdentity",+ "createProjectMachineIdentity takes project roles only. Use tenant.NewIdentity(OrgRole(...)) "++ "and then project.Grant if the identity needs both.")++ req := api.CreateProjectMachineIdentityJSONRequestBody{Name: cfg.name}+ if len(cfg.projectRoles) > 0 {+ roles := make([]api.CreateProjectMachineIdentityJSONBody_Roles_Item, 0, len(cfg.projectRoles))+ for _, slug := range cfg.projectRoles {+ var item api.CreateProjectMachineIdentityJSONBody_Roles_Item+ if err := item.FromCreateProjectMachineIdentityJSONBodyRoles0(+ api.CreateProjectMachineIdentityJSONBodyRoles0{Role: slug}); err != nil {+ tt.Fatalf("harness: %v", err)+ }+ roles = append(roles, item)+ }+ req.Roles = &roles+ }++ res, err := p.tn.Admin.API.CreateProjectMachineIdentityWithResponse(tt.Context(), p.ID, req)+ if err != nil {+ tt.Fatalf("harness: creating identity %s in project %s: %v", cfg.name, p.Slug, err)+ }+ if res.JSON200 == nil {+ tt.Fatalf("harness: creating identity %s in project %s returned %d: %s",+ cfg.name, p.Slug, res.StatusCode(), body(res.Body))+ }+ return p.tn.loginIdentity(tt, res.JSON200.Identity.Id, cfg.name)+}++// NewUser creates a user and grants it access to this project.+func (p *Project) NewUser(tt *testing.T, opts ...PrincipalOption) *Principal {+ tt.Helper()+ cfg := newPrincipalConfig("u", opts)+ pr := p.tn.newUser(tt, cfg)+ p.Grant(tt, pr, cfg.projectRoles...)+ return pr+}++// Grant gives an existing principal access to this project.+//+// Users and identities take different routes -- inviteProjectMembers against the+// project's membership collection, createProjectIdentityMembership against the+// identity -- which is why Principal carries its Kind.+func (p *Project) Grant(tt *testing.T, pr *Principal, roles ...string) {+ tt.Helper()+ ctx := tt.Context()++ // Defaulted here rather than left to the server: inviteProjectMembers falls back to+ // member on its own, createProjectIdentityMembership does not, and a fixture that+ // behaves differently for a user and an identity is a trap.+ if len(roles) == 0 {+ roles = []string{"member"}+ }++ switch pr.Kind {+ case User:+ res, err := p.tn.Admin.API.InviteProjectMembersWithResponse(ctx, p.ID,+ api.InviteProjectMembersJSONRequestBody{+ Emails: &[]openapi_types.Email{openapi_types.Email(pr.Email)},+ RoleSlugs: &roles,+ })+ if err != nil {+ tt.Fatalf("harness: adding %s to project %s: %v", pr.Email, p.Slug, err)+ }+ if res.StatusCode() != http.StatusOK {+ tt.Fatalf("harness: adding %s to project %s returned %d: %s",+ pr.Email, p.Slug, res.StatusCode(), body(res.Body))+ }++ case Identity:+ items := make([]api.CreateProjectIdentityMembershipJSONBody_Roles_Item, 0, len(roles))+ for _, slug := range roles {+ var item api.CreateProjectIdentityMembershipJSONBody_Roles_Item+ if err := item.FromCreateProjectIdentityMembershipJSONBodyRoles0(+ api.CreateProjectIdentityMembershipJSONBodyRoles0{Role: slug}); err != nil {+ tt.Fatalf("harness: %v", err)+ }+ items = append(items, item)+ }+ res, err := p.tn.Admin.API.CreateProjectIdentityMembershipWithResponse(ctx, p.ID, pr.ID.String(),+ api.CreateProjectIdentityMembershipJSONRequestBody{Roles: &items})+ if err != nil {+ tt.Fatalf("harness: adding identity %s to project %s: %v", pr.Name, p.Slug, err)+ }+ if res.StatusCode() != http.StatusOK {+ tt.Fatalf("harness: adding identity %s to project %s returned %d: %s",+ pr.Name, p.Slug, res.StatusCode(), body(res.Body))+ }+ }+}++// loginIdentity attaches universal auth to an identity and exchanges the credentials+// for an access token.+func (t *Tenant) loginIdentity(tt *testing.T, id uuid.UUID, name string) *Principal {+ tt.Helper()+ ctx := tt.Context()++ attached, err := t.Admin.API.AttachUniversalAuthWithResponse(ctx, id.String(),+ api.AttachUniversalAuthJSONRequestBody{})+ if err != nil {+ tt.Fatalf("harness: attaching universal auth to %s: %v", name, err)+ }+ if attached.JSON200 == nil {+ tt.Fatalf("harness: attaching universal auth to %s returned %d: %s",+ name, attached.StatusCode(), body(attached.Body))+ }++ secret, err := t.Admin.API.CreateUniversalAuthClientSecretWithResponse(ctx, id.String(),+ api.CreateUniversalAuthClientSecretJSONRequestBody{})+ if err != nil {+ tt.Fatalf("harness: creating a client secret for %s: %v", name, err)+ }+ if secret.JSON200 == nil {+ tt.Fatalf("harness: creating a client secret for %s returned %d: %s",+ name, secret.StatusCode(), body(secret.Body))+ }++ ip := newIP()+ anon, err := infisical.NewClient(t.stack.app.BaseURL(infra.External), infisical.ForwardedFor(ip))+ if err != nil {+ tt.Fatalf("harness: %v", err)+ }+ slug := t.OrgSlug+ login, err := anon.LoginWithUniversalAuthWithResponse(ctx, api.LoginWithUniversalAuthJSONRequestBody{+ ClientId: attached.JSON200.IdentityUniversalAuth.ClientId,+ ClientSecret: secret.JSON200.ClientSecret,+ OrganizationSlug: &slug,+ })+ if err != nil {+ tt.Fatalf("harness: logging in as %s: %v", name, err)+ }+ if login.JSON200 == nil {+ tt.Fatalf("harness: logging in as %s returned %d: %s", name, login.StatusCode(), body(login.Body))+ }++ return &Principal{+ Kind: Identity,+ ID: id,+ Name: name,+ Token: login.JSON200.AccessToken,+ API: t.stack.client(tt, login.JSON200.AccessToken, ip),+ ip: ip,+ }+}++func shortID() string {+ b := make([]byte, 4)+ _, _ = rand.Read(b)+ return strings.ToLower(fmt.Sprintf("%x", b))+}diff --git a/tests/harness/project.go b/tests/harness/project.gonew file mode 100644index 0000000000..25a4438e54--- /dev/null+++ b/tests/harness/project.go@@ -0,0 +1,73 @@+package harness++import (+ "testing"++ "github.com/Infisical/infisical/tests/clients/api"+)++// Project is one project inside a tenant.+type Project struct {+ ID string+ Name string+ Slug string+ Type string++ // Environments are the slugs the project was created with: dev, staging, prod+ // unless the type or template says otherwise.+ Environments []string++ tn *Tenant+}++// ProjectOption adjusts a new project.+type ProjectOption func(*projectConfig)++type projectConfig struct {+ name string+ kind string+}++// WithProjectName names the project. Rarely needed; the slug carries a nanoid.+func WithProjectName(name string) ProjectOption {+ return func(c *projectConfig) { c.name = name }+}++// WithProjectType picks the product: secret-manager, cert-manager, kms, ssh.+func WithProjectType(kind string) ProjectOption {+ return func(c *projectConfig) { c.kind = kind }+}++// NewProject creates a project owned by this tenant's administrator.+func (t *Tenant) NewProject(tt *testing.T, opts ...ProjectOption) *Project {+ tt.Helper()++ cfg := projectConfig{name: "p-" + shortID()}+ for _, o := range opts {+ o(&cfg)+ }++ req := api.CreateProjectJSONRequestBody{ProjectName: cfg.name}+ if cfg.kind != "" {+ kind := api.CreateProjectJSONBodyType(cfg.kind)+ req.Type = &kind+ }++ res, err := t.Admin.API.CreateProjectWithResponse(tt.Context(), req)+ if err != nil {+ tt.Fatalf("harness: creating a project: %v", err)+ }+ if res.JSON200 == nil {+ tt.Fatalf("harness: creating a project returned %d: %s", res.StatusCode(), body(res.Body))+ }++ p := res.JSON200.Project+ proj := &Project{ID: p.Id, Name: p.Name, Slug: p.Slug, Type: p.Type, tn: t}+ for _, env := range p.Environments {+ proj.Environments = append(proj.Environments, env.Slug)+ }+ return proj+}++// Tenant is the organization this project belongs to.+func (p *Project) Tenant() *Tenant { return p.tn }diff --git a/tests/harness/tenant.go b/tests/harness/tenant.goindex f98c87db2b..633c0158cd 100644--- a/tests/harness/tenant.go+++ b/tests/harness/tenant.go@@ -34,13 +34,37 @@ type Tenant struct {plan *license.Plan}-// Principal is anything that can authenticate: a user, a machine identity, a SCIM-// token. The shape is the same, so a test asserting what an actor may do reads the-// same whichever it holds.+// Kind is what sort of actor a Principal is. Authorization differs by actor type in+// places, and granting project access takes a different route for each, so the+// distinction has to survive into the test.+type Kind int++const (+ User Kind = iota+ Identity+)++func (k Kind) String() string {+ if k == Identity {+ return "identity"+ }+ return "user"+}++// Principal is anything that can authenticate: a user, a machine identity. The shape+// is the same, so a test asserting what an actor may do reads the same whichever it+// holds.type Principal struct {- Email string+ Kind Kind+ ID uuid.UUID+ Name string+ Email string // empty for an identityToken stringAPI *api.ClientWithResponses++ // ip is this principal's rate-limit bucket, kept so a later call on its behalf+ // lands in the same one. See infisical.ForwardedFor.+ ip string}// Address returns a mailbox inside this tenant's own domain, so two parallel tests@@ -57,9 +81,9 @@ type tenantConfig struct {plan *license.Plan}-// WithName names the organization. Rarely needed: the slug carries a nanoid, so names-// do not have to be unique.-func WithName(name string) TenantOption { return func(c *tenantConfig) { c.name = name } }+// WithTenantName names the organization. Rarely needed: the slug carries a nanoid,+// so names do not have to be unique.+func WithTenantName(name string) TenantOption { return func(c *tenantConfig) { c.name = name } }// WithPlan gives the tenant entitlements other than the default.func WithPlan(p license.Plan) TenantOption { return func(c *tenantConfig) { c.plan = &p } }@@ -82,7 +106,7 @@ func (s *Stack) NewTenant(t *testing.T, opts ...TenantOption) *Tenant {o(&cfg)}- ip := tenantIP()+ ip := newIP()unscoped := s.rootToken(t, ip)created, err := s.client(t, unscoped, ip).CreateOrganizationWithResponse(ctx,@@ -96,7 +120,16 @@ func (s *Stack) NewTenant(t *testing.T, opts ...TenantOption) *Tenant {org := created.JSON200.Organizationtenant := &Tenant{OrgID: org.Id, OrgSlug: org.Slug, ip: ip, stack: s, plan: cfg.plan}- tenant.Admin = s.scopeToOrg(t, unscoped, org.Id, ip)++ scoped := s.scopeToOrg(t, unscoped, org.Id, ip)+ tenant.Admin = &Principal{+ Kind: User,+ Name: "admin",+ Email: s.root.Email,+ Token: scoped,+ API: s.client(t, scoped, ip),+ ip: ip,+ }if cfg.plan != nil {tenant.SetPlan(t, *cfg.plan)@@ -220,7 +253,10 @@ func (s *Stack) rootToken(t *testing.T, ip string) string {//// A login token carries no organization; selectOrganization is what binds it, and// every org-scoped route needs that binding.-func (s *Stack) scopeToOrg(t *testing.T, unscoped string, orgID uuid.UUID, ip string) *Principal {+// It is also what accepts a pending invitation: selectOrganization promotes an+// Invited membership to Accepted, so an invited user is not really a member until+// this runs.+func (s *Stack) scopeToOrg(t *testing.T, unscoped string, orgID uuid.UUID, ip string) string {t.Helper()res, err := s.client(t, unscoped, ip).SelectOrganizationV3WithResponse(t.Context(),@@ -231,12 +267,7 @@ func (s *Stack) scopeToOrg(t *testing.T, unscoped string, orgID uuid.UUID, ip stif res.JSON200 == nil {t.Fatalf("harness: selecting the organization returned %d: %s", res.StatusCode(), body(res.Body))}-- return &Principal{- Email: s.root.Email,- Token: res.JSON200.Token,- API: s.client(t, res.JSON200.Token, ip),- }+ return res.JSON200.Token}// client builds an API client carrying a token and a rate-limit bucket.@@ -250,9 +281,12 @@ func (s *Stack) client(t *testing.T, token, ip string) *api.ClientWithResponsesreturn c}-// tenantIP is a per-tenant source address, so one tenant's logins cannot exhaust-// another's rate-limit budget.-func tenantIP() string {+// newIP is a source address for one caller, so nobody's requests can exhaust anyone+// else's rate-limit budget. Tenants get one; so does every principal, because the+// invite that creates a user runs into smtpRateLimit's two per forty seconds.+//+// RFC 1918 space, so a value can never collide with a real address.+func newIP() string {b := make([]byte, 3)_, _ = rand.Read(b)return fmt.Sprintf("10.%d.%d.%d", b[0], b[1], b[2])diff --git a/tests/internal/mail/mail.go b/tests/internal/mail/mail.gonew file mode 100644index 0000000000..2de4596be1--- /dev/null+++ b/tests/internal/mail/mail.go@@ -0,0 +1,207 @@+// Package mail reads messages out of Mailpit.+//+// One Mailpit serves the whole run, so isolation is by address rather than by server:+// an Inbox is scoped to one tenant's mail domain and refuses to look outside it. Two+// parallel tenants can both invite "alice" without seeing each other's mail.+package mail++import (+ "context"+ "encoding/json"+ "fmt"+ "net/http"+ "net/url"+ "strings"+ "time"+)++// Message is the part of a Mailpit message the harness cares about.+type Message struct {+ ID string+ From string+ To []string+ Subject string++ // Body is the plain text and HTML parts joined. Callers search it for a link or a+ // code rather than caring which part carried it.+ Body string+}++// Inbox reads one tenant's mail.+type Inbox struct {+ api string+ domain string+ hc *http.Client+}++// NewInbox returns a view over Mailpit scoped to domain.+func NewInbox(api, domain string) *Inbox {+ return &Inbox{api: strings.TrimRight(api, "/"), domain: domain, hc: &http.Client{Timeout: 10 * time.Second}}+}++// Filter narrows what Await will accept.+type Filter func(Message) bool++// Subject accepts a message whose subject contains s.+func Subject(s string) Filter {+ return func(m Message) bool { return strings.Contains(m.Subject, s) }+}++// Await blocks until a message to addr matching every filter arrives.+//+// Mail is sent inline with the request that triggers it, so this is normally one round+// trip. It still polls, because "normally" is not "always" and a fixed sleep would+// either be slower than needed or flaky.+func (in *Inbox) Await(ctx context.Context, addr string, filters ...Filter) (Message, error) {+ if !strings.HasSuffix(addr, "@"+in.domain) {+ return Message{}, fmt.Errorf(+ "mail: this inbox is scoped to @%s but was asked for %s.\n"++ "Reading another tenant's mail would make the test order-dependent; use tn.Address(local)",+ in.domain, addr)+ }++ deadline := time.Now().Add(20 * time.Second)+ var lastErr error+ for {+ msgs, err := in.search(ctx, "to:"+addr)+ if err != nil {+ lastErr = err+ }+ for _, m := range msgs {+ full, err := in.message(ctx, m.ID)+ if err != nil {+ lastErr = err+ continue+ }+ if matches(full, filters) {+ return full, nil+ }+ }+ if time.Now().After(deadline) {+ if lastErr != nil {+ return Message{}, fmt.Errorf("mail: no message for %s within 20s, last error: %w", addr, lastErr)+ }+ return Message{}, fmt.Errorf("mail: no message for %s within 20s (%d delivered, none matched)", addr, len(msgs))+ }+ select {+ case <-ctx.Done():+ return Message{}, ctx.Err()+ case <-time.After(200 * time.Millisecond):+ }+ }+}++func matches(m Message, filters []Filter) bool {+ for _, f := range filters {+ if !f(m) {+ return false+ }+ }+ return true+}++// Link returns the first URL in the body whose query carries param.+//+// Every Infisical mail that hands the recipient a secret does it as a query parameter+// on a SITE_URL link, so this is the one extraction the harness needs.+func Link(m Message, param string) (*url.URL, error) {+ for _, raw := range urlsIn(m.Body) {+ u, err := url.Parse(raw)+ if err != nil {+ continue+ }+ if u.Query().Get(param) != "" {+ return u, nil+ }+ }+ return nil, fmt.Errorf("mail: no link carrying %q in %q:\n%s", param, m.Subject, m.Body)+}++// Param returns one query parameter from the first link that carries it.+func Param(m Message, name string) (string, error) {+ u, err := Link(m, name)+ if err != nil {+ return "", err+ }+ return u.Query().Get(name), nil+}++// urlsIn pulls http(s) URLs out of text. HTML attributes quote them and plain text+// parts may wrap them in angle brackets or end them with punctuation, so the+// terminators are broader than whitespace.+func urlsIn(body string) []string {+ var out []string+ for i := 0; i < len(body); {+ j := strings.Index(body[i:], "http")+ if j < 0 {+ break+ }+ start := i + j+ end := start+ for end < len(body) && !strings.ContainsRune("\"'<> \t\r\n", rune(body[end])) {+ end+++ }+ out = append(out, strings.TrimRight(body[start:end], ".,)"))+ i = end + 1+ }+ return out+}++type searchResponse struct {+ Messages []struct {+ ID string `json:"ID"`+ } `json:"messages"`+}++func (in *Inbox) search(ctx context.Context, query string) ([]Message, error) {+ var res searchResponse+ if err := in.get(ctx, "/api/v1/search?query="+url.QueryEscape(query)+"&limit=50", &res); err != nil {+ return nil, err+ }+ out := make([]Message, 0, len(res.Messages))+ for _, m := range res.Messages {+ out = append(out, Message{ID: m.ID})+ }+ return out, nil+}++type messageResponse struct {+ ID string `json:"ID"`+ Subject string `json:"Subject"`+ Text string `json:"Text"`+ HTML string `json:"HTML"`+ From struct {+ Address string `json:"Address"`+ } `json:"From"`+ To []struct {+ Address string `json:"Address"`+ } `json:"To"`+}++func (in *Inbox) message(ctx context.Context, id string) (Message, error) {+ var res messageResponse+ if err := in.get(ctx, "/api/v1/message/"+url.PathEscape(id), &res); err != nil {+ return Message{}, err+ }+ m := Message{ID: res.ID, Subject: res.Subject, From: res.From.Address, Body: res.Text + "\n" + res.HTML}+ for _, to := range res.To {+ m.To = append(m.To, to.Address)+ }+ return m, nil+}++func (in *Inbox) get(ctx context.Context, path string, into any) error {+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, in.api+path, nil)+ if err != nil {+ return err+ }+ res, err := in.hc.Do(req)+ if err != nil {+ return fmt.Errorf("mail: %s: %w", path, err)+ }+ defer res.Body.Close()+ if res.StatusCode != http.StatusOK {+ return fmt.Errorf("mail: %s returned %d", path, res.StatusCode)+ }+ return json.NewDecoder(res.Body).Decode(into)+}diff --git a/tests/internal/mail/mail_test.go b/tests/internal/mail/mail_test.gonew file mode 100644index 0000000000..0bd3e169d4--- /dev/null+++ b/tests/internal/mail/mail_test.go@@ -0,0 +1,61 @@+package mail++import "testing"++func TestParam_FindsTheInviteToken(t *testing.T) {+ // Shaped like the real OrgInvite mail: the same link appears in both the text and+ // the HTML part, and the HTML one is quoted inside an attribute.+ m := Message{Subject: "Infisical organization invitation", Body: `+Join the organization:+http://localhost:8080/signupinvite?token=abc123&to=alice%40acme.test&organization_id=org-1++<a href="http://localhost:8080/signupinvite?token=abc123&to=alice%40acme.test&organization_id=org-1">Accept</a>+`}++ got, err := Param(m, "token")+ if err != nil {+ t.Fatalf("extracting the token: %v", err)+ }+ if got != "abc123" {+ t.Errorf("token = %q, want abc123", got)+ }+}++func TestParam_SkipsLinksWithoutIt(t *testing.T) {+ // Every Infisical mail carries unsubscribe and logo links, so the first URL in the+ // body is routinely not the one that matters.+ m := Message{Body: `+<img src="https://cdn.infisical.com/logo.png">+https://infisical.com/docs+http://localhost:8080/signupinvite?token=wanted&to=bob%40acme.test+`}++ got, err := Param(m, "token")+ if err != nil {+ t.Fatalf("extracting the token: %v", err)+ }+ if got != "wanted" {+ t.Errorf("token = %q, want wanted", got)+ }+}++func TestParam_ReportsTheBodyWhenAbsent(t *testing.T) {+ // The failure a wrong template produces. Without the body in the message there is+ // nothing to debug from: the mail arrived, it just did not carry what was expected.+ m := Message{Subject: "Welcome", Body: "https://infisical.com/docs\n"}++ if _, err := Param(m, "token"); err == nil {+ t.Fatal("expected an error when no link carries the parameter")+ } else if got := err.Error(); !contains(got, "Welcome") || !contains(got, "infisical.com/docs") {+ t.Errorf("error should name the subject and show the body, got: %s", got)+ }+}++func contains(s, sub string) bool {+ for i := 0; i+len(sub) <= len(s); i++ {+ if s[i:i+len(sub)] == sub {+ return true+ }+ }+ return false+}diff --git a/tests/suites/platform/principal_test.go b/tests/suites/platform/principal_test.gonew file mode 100644index 0000000000..e6fe426d3f--- /dev/null+++ b/tests/suites/platform/principal_test.go@@ -0,0 +1,186 @@+package platform_test++import (+ "net/http"+ "testing"++ "github.com/Infisical/infisical/tests/clients/api"+ "github.com/Infisical/infisical/tests/harness"+ "github.com/Infisical/infisical/tests/internal/spec"+)++func TestIdentity_Create(t *testing.T) {+ t.Parallel()+ h := harness.From(t)++ t.Run("ok/an identity can act in its own organization", func(t *testing.T) {+ t.Parallel()+ tn := h.NewTenant(t)+ id := tn.NewIdentity(t, harness.OrgRole("admin"))++ if id.Token == "" {+ t.Fatal("identity has no access token, so nothing below it can authenticate")+ }+ res, err := id.API.GetOrganizationPlanWithResponse(t.Context(), tn.OrgID.String(), nil)+ if err != nil {+ t.Fatalf("reading the plan as an identity: %v", err)+ }+ if res.StatusCode() != http.StatusOK {+ t.Fatalf("identity cannot read its own organization: %d", res.StatusCode())+ }+ })++ t.Run("forbidden/a no-access identity cannot create a project", func(t *testing.T) {+ t.Parallel()+ spec.Why(t, `The org role on the identity has to reach the permission layer. If it+ did not, every identity would behave like an admin and no authorization test+ below this one would mean anything.++ Project creation rather than a read: reading the plan only proves membership,+ which no-access still has.`)++ tn := h.NewTenant(t)+ id := tn.NewIdentity(t, harness.OrgRole("no-access"))++ res, err := id.API.CreateProjectWithResponse(t.Context(), api.CreateProjectJSONRequestBody{+ ProjectName: "should-not-exist",+ })+ if err != nil {+ t.Fatalf("creating a project as a no-access identity: %v", err)+ }+ if res.StatusCode() == http.StatusOK {+ t.Fatal("a no-access identity created a project")+ }+ })++ t.Run("cross-tenant/an identity cannot reach another organization", func(t *testing.T) {+ t.Parallel()+ mine, theirs := h.NewTenant(t), h.NewTenant(t)+ id := mine.NewIdentity(t, harness.OrgRole("admin"))++ res, err := id.API.GetOrganizationPlanWithResponse(t.Context(), theirs.OrgID.String(), nil)+ if err != nil {+ t.Fatalf("reading another organization: %v", err)+ }+ if res.StatusCode() == http.StatusOK {+ t.Fatalf("identity in %s read %s's plan", mine.OrgSlug, theirs.OrgSlug)+ }+ })+}++func TestUser_Invite(t *testing.T) {+ t.Parallel()+ h := harness.From(t)++ t.Run("ok/an invited user becomes a member", func(t *testing.T) {+ t.Parallel()+ spec.Why(t, `The invite link only comes back in the response when SMTP is+ unconfigured, and the harness configures it. So this is also the proof that+ the harness can read a mailbox at all: every email-driven flow depends on it.`)++ tn := h.NewTenant(t)+ alice := tn.NewUser(t, harness.WithName("alice"))++ if alice.Email != tn.Address("alice") {+ t.Errorf("user got mailbox %q, want %q", alice.Email, tn.Address("alice"))+ }+ res, err := alice.API.GetOrganizationPlanWithResponse(t.Context(), tn.OrgID.String(), nil)+ if err != nil {+ t.Fatalf("reading the plan as the invited user: %v", err)+ }+ if res.StatusCode() != http.StatusOK {+ t.Fatalf("invited user cannot read the organization they joined: %d", res.StatusCode())+ }+ })++ t.Run("cross-tenant/two tenants can invite the same local part", func(t *testing.T) {+ t.Parallel()+ spec.Why(t, `Mail isolation is by address, not by server: one Mailpit serves the+ whole run. If the domains did not differ, two parallel tests inviting "alice"+ would read each other's invitation and both would pass or fail at random.`)++ a, b := h.NewTenant(t), h.NewTenant(t)+ ua, ub := a.NewUser(t, harness.WithName("alice")), b.NewUser(t, harness.WithName("alice"))++ if ua.Email == ub.Email {+ t.Fatalf("both tenants issued %s", ua.Email)+ }+ res, err := ua.API.GetOrganizationPlanWithResponse(t.Context(), b.OrgID.String(), nil)+ if err != nil {+ t.Fatalf("reading the other organization: %v", err)+ }+ if res.StatusCode() == http.StatusOK {+ t.Fatalf("%s read %s's plan", ua.Email, b.OrgSlug)+ }+ })+}++func TestProject_Access(t *testing.T) {+ t.Parallel()+ h := harness.From(t)++ t.Run("ok/an identity created in a project can read it", func(t *testing.T) {+ t.Parallel()+ tn := h.NewTenant(t)+ proj := tn.NewProject(t)+ id := proj.NewIdentity(t, harness.ProjectRole("admin"))++ res, err := id.API.ListProjectMachineIdentitiesWithResponse(t.Context(), proj.ID, nil)+ if err != nil {+ t.Fatalf("listing project identities: %v", err)+ }+ if res.StatusCode() != http.StatusOK {+ t.Fatalf("identity created in the project cannot read it: %d: %s", res.StatusCode(), res.Body)+ }+ })++ t.Run("forbidden/an org identity outside the project is refused", func(t *testing.T) {+ t.Parallel()+ spec.Why(t, `Organization membership is not project membership. Conflating them is+ the mistake that would make every project-scoped authorization test vacuous.`)++ tn := h.NewTenant(t)+ proj := tn.NewProject(t)+ outsider := tn.NewIdentity(t, harness.OrgRole("member"))++ res, err := outsider.API.ListProjectMachineIdentitiesWithResponse(t.Context(), proj.ID, nil)+ if err != nil {+ t.Fatalf("listing project identities: %v", err)+ }+ if res.StatusCode() == http.StatusOK {+ t.Fatal("an identity with no project membership read the project")+ }+ })++ t.Run("ok/granting an existing identity opens the project", func(t *testing.T) {+ t.Parallel()+ tn := h.NewTenant(t)+ proj := tn.NewProject(t)+ id := tn.NewIdentity(t, harness.OrgRole("member"))++ proj.Grant(t, id, "admin")++ res, err := id.API.ListProjectMachineIdentitiesWithResponse(t.Context(), proj.ID, nil)+ if err != nil {+ t.Fatalf("listing project identities: %v", err)+ }+ if res.StatusCode() != http.StatusOK {+ t.Fatalf("identity granted project access still refused: %d: %s", res.StatusCode(), res.Body)+ }+ })++ t.Run("ok/a user can be added to a project", func(t *testing.T) {+ t.Parallel()+ tn := h.NewTenant(t)+ proj := tn.NewProject(t)+ bob := proj.NewUser(t, harness.WithName("bob"), harness.ProjectRole("admin"))++ res, err := bob.API.ListProjectMachineIdentitiesWithResponse(t.Context(), proj.ID, nil)+ if err != nil {+ t.Fatalf("listing project identities: %v", err)+ }+ if res.StatusCode() != http.StatusOK {+ t.Fatalf("user added to the project cannot read it: %d: %s", res.StatusCode(), res.Body)+ }+ })+}