model

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenRes

type AccessTokenRes struct {
	AccessToken *string `json:"accessToken"`
	Exp         *int64  `json:"exp"`
	Iat         *int64  `json:"iat"`
}

type ActionsModel

type ActionsModel struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type AddNodeOrg

type AddNodeOrg struct {
	Id       string            `json:"id"`
	RootNode OrgNodeChildStr   `json:"rootNode"`
	Nodes    []OrgNodeChildStr `json:"nodes"`
}

type AddOrgNodeRequest

type AddOrgNodeRequest struct {
	OrgId           string  `json:"orgId"`
	ParentNodeId    string  `json:"parentNodeId"`
	Name            string  `json:"name"`
	Code            *string `json:"code,omitempty"`
	Description     *string `json:"description,omitempty"`
	Order           *int    `json:"order,omitempty"`
	NameI18N        *string `json:"nameI18n,omitempty"`
	DescriptionI18N *string `json:"descriptionI18n,omitempty"`
}

type AddTenantMembersResponse

type AddTenantMembersResponse struct {
	Tenant
	Users *[]User `json:"users"`
}

type AllowRequest

type AllowRequest struct {
	Resource  string `json:"resource"`
	Action    string `json:"action"`
	UserId    string `json:"userId"`
	Namespace string `json:"namespace"`
}

type App2WxappLoginStrategy

type App2WxappLoginStrategy struct {
	TicketExpriresAfter              *int64 `json:"ticketExpriresAfter"`
	TicketExchangeUserInfoNeedSecret *bool  `json:"ticketExchangeUserInfoNeedSecret"`
}

type App2WxappLoginStrategyInput

type App2WxappLoginStrategyInput struct {
	TicketExpriresAfter              *int64 `json:"ticketExpriresAfter,omitempty"`
	TicketExchangeUserInfoNeedSecret *bool  `json:"ticketExchangeUserInfoNeedSecret,omitempty"`
}

type Application

type Application struct {
	QrcodeScanning struct {
		Redirect bool `json:"redirect"`
		Interval int  `json:"interval"`
	} `json:"qrcodeScanning"`
	Id          string    `json:"id"`
	CreatedAt   time.Time `json:"createdAt"`
	UpdatedAt   time.Time `json:"updatedAt"`
	UserPoolId  string    `json:"userPoolId"`
	Protocol    string    `json:"protocol"`
	IsOfficial  bool      `json:"isOfficial"`
	IsDeleted   bool      `json:"isDeleted"`
	IsDefault   bool      `json:"isDefault"`
	IsDemo      bool      `json:"isDemo"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Secret      string    `json:"secret"`
	Identifier  string    `json:"identifier"`
	Jwks        struct {
		Keys []struct {
			E   string `json:"e"`
			N   string `json:"n"`
			D   string `json:"d"`
			P   string `json:"p"`
			Q   string `json:"q"`
			Dp  string `json:"dp"`
			Dq  string `json:"dq"`
			Qi  string `json:"qi"`
			Kty string `json:"kty"`
			Kid string `json:"kid"`
			Alg string `json:"alg"`
			Use string `json:"use"`
		} `json:"keys"`
	} `json:"jwks"`
	SsoPageCustomizationSettings interface{}   `json:"ssoPageCustomizationSettings"`
	RedirectUris                 []string      `json:"redirectUris"`
	LogoutRedirectUris           []interface{} `json:"logoutRedirectUris"`
	OidcProviderEnabled          bool          `json:"oidcProviderEnabled"`
	OauthProviderEnabled         bool          `json:"oauthProviderEnabled"`
	SamlProviderEnabled          bool          `json:"samlProviderEnabled"`
	CasProviderEnabled           bool          `json:"casProviderEnabled"`
	RegisterDisabled             bool          `json:"registerDisabled"`
	LoginTabs                    []string      `json:"loginTabs"`
	PasswordTabConfig            struct {
		EnabledLoginMethods []string `json:"enabledLoginMethods"`
	} `json:"passwordTabConfig"`
	DefaultLoginTab            string        `json:"defaultLoginTab"`
	RegisterTabs               []string      `json:"registerTabs"`
	DefaultRegisterTab         string        `json:"defaultRegisterTab"`
	LdapConnections            interface{}   `json:"ldapConnections"`
	AdConnections              []interface{} `json:"adConnections"`
	DisabledSocialConnections  interface{}   `json:"disabledSocialConnections"`
	DisabledOidcConnections    []interface{} `json:"disabledOidcConnections"`
	DisabledSamlConnections    []interface{} `json:"disabledSamlConnections"`
	DisabledOauth2Connections  []interface{} `json:"disabledOauth2Connections"`
	DisabledCasConnections     []interface{} `json:"disabledCasConnections"`
	DisabledAzureAdConnections []interface{} `json:"disabledAzureAdConnections"`
	ExtendsFieldsEnabled       bool          `json:"extendsFieldsEnabled"`
	ExtendsFields              []interface{} `json:"extendsFields"`
	Ext                        struct {
		DontFinishNotYet bool   `json:"_dontFinishNotYet"`
		AppName          string `json:"_appName"`
		AliyunDomain     string `json:"AliyunDomain"`
		AliyunAccountId  string `json:"AliyunAccountId"`
		SamlConfig       struct {
		} `json:"samlConfig"`
	} `json:"ext"`
	Css        interface{} `json:"css"`
	OidcConfig struct {
		GrantTypes               []string      `json:"grant_types"`
		ResponseTypes            []string      `json:"response_types"`
		IdTokenSignedResponseAlg string        `json:"id_token_signed_response_alg"`
		TokenEndpointAuthMethod  string        `json:"token_endpoint_auth_method"`
		AuthorizationCodeExpire  int           `json:"authorization_code_expire"`
		IdTokenExpire            int           `json:"id_token_expire"`
		AccessTokenExpire        int           `json:"access_token_expire"`
		RefreshTokenExpire       int           `json:"refresh_token_expire"`
		CasExpire                int           `json:"cas_expire"`
		SkipConsent              bool          `json:"skip_consent"`
		RedirectUris             []string      `json:"redirect_uris"`
		PostLogoutRedirectUris   []interface{} `json:"post_logout_redirect_uris"`
		ClientId                 string        `json:"client_id"`
		ClientSecret             string        `json:"client_secret"`
	} `json:"oidcConfig"`
	OidcJWEConfig interface{} `json:"oidcJWEConfig"`
	SamlConfig    struct {
		Acs                                string      `json:"acs"`
		Audience                           string      `json:"audience"`
		Recipient                          string      `json:"recipient"`
		Destination                        string      `json:"destination"`
		Mappings                           interface{} `json:"mappings"`
		DigestAlgorithm                    string      `json:"digestAlgorithm"`
		SignatureAlgorithm                 string      `json:"signatureAlgorithm"`
		AuthnContextClassRef               string      `json:"authnContextClassRef"`
		LifetimeInSeconds                  int         `json:"lifetimeInSeconds"`
		SignResponse                       bool        `json:"signResponse"`
		NameIdentifierFormat               string      `json:"nameIdentifierFormat"`
		SamlRequestSigningCert             string      `json:"samlRequestSigningCert"`
		SamlResponseSigningCert            string      `json:"samlResponseSigningCert"`
		SamlResponseSigningKey             string      `json:"samlResponseSigningKey"`
		SamlResponseSigningCertFingerprint string      `json:"samlResponseSigningCertFingerprint"`
		EmailDomainSubstitution            string      `json:"emailDomainSubstitution"`
	} `json:"samlConfig"`
	OauthConfig                 interface{} `json:"oauthConfig"`
	CasConfig                   interface{} `json:"casConfig"`
	ShowAuthorizationPage       bool        `json:"showAuthorizationPage"`
	EnableSubAccount            bool        `json:"enableSubAccount"`
	EnableDeviceMutualExclusion bool        `json:"enableDeviceMutualExclusion"`
	LoginRequireEmailVerified   bool        `json:"loginRequireEmailVerified"`
	AgreementEnabled            bool        `json:"agreementEnabled"`
	IsIntegrate                 bool        `json:"isIntegrate"`
	SsoEnabled                  bool        `json:"ssoEnabled"`
	Template                    string      `json:"template"`
	SkipMfa                     bool        `json:"skipMfa"`
	CasExpireBaseBrowser        bool        `json:"casExpireBaseBrowser"`
	PermissionStrategy          struct {
		Enabled         bool        `json:"enabled"`
		DefaultStrategy string      `json:"defaultStrategy"`
		AllowPolicyId   interface{} `json:"allowPolicyId"`
		DenyPolicyId    interface{} `json:"denyPolicyId"`
	} `json:"permissionStrategy"`
}

type ApplicationAccessPolicies

type ApplicationAccessPolicies struct {
	AssignedAt        time.Time   `json:"assignedAt"`
	InheritByChildren interface{} `json:"inheritByChildren"`
	Enabled           bool        `json:"enabled"`
	PolicyId          string      `json:"policyId"`
	Code              string      `json:"code"`
	Policy            struct {
		Id          string    `json:"id"`
		CreatedAt   time.Time `json:"createdAt"`
		UpdatedAt   time.Time `json:"updatedAt"`
		UserPoolId  string    `json:"userPoolId"`
		IsDefault   bool      `json:"isDefault"`
		IsAuto      bool      `json:"isAuto"`
		Hidden      bool      `json:"hidden"`
		Code        string    `json:"code"`
		Description string    `json:"description"`
		Statements  []struct {
			Resource     string           `json:"resource"`
			Actions      []string         `json:"actions"`
			Effect       string           `json:"effect"`
			Condition    []interface{}    `json:"condition"`
			ResourceType EnumResourceType `json:"resourceType"`
		} `json:"statements"`
		NamespaceId int `json:"namespaceId"`
	} `json:"policy"`
	TargetNamespace  string `json:"targetNamespace"`
	TargetType       string `json:"targetType"`
	TargetIdentifier string `json:"targetIdentifier"`
	Target           struct {
		Id          string    `json:"id"`
		CreatedAt   time.Time `json:"createdAt"`
		UpdatedAt   time.Time `json:"updatedAt"`
		UserPoolId  string    `json:"userPoolId"`
		Code        string    `json:"code"`
		Description string    `json:"description"`
		ParentCode  string    `json:"parentCode"`
		IsSystem    bool      `json:"isSystem"`
		NamespaceId int       `json:"namespaceId"`
	} `json:"target"`
	Namespace string `json:"namespace"`
}

type ApplicationAccessPoliciesRequest

type ApplicationAccessPoliciesRequest struct {
	TargetIdentifiers []string                        `json:"targetIdentifiers,omitempty"`
	TargetType        constant.ResourceTargetTypeEnum `json:"targetType,omitempty"`
	Namespace         string                          `json:"namespace,omitempty"`
	InheritByChildren bool                            `json:"inheritByChildren,omitempty"`
}

type ApplicationActiveUsers

type ApplicationActiveUsers struct {
	ThirdPartyIdentity struct {
		Provider     string `json:"provider"`
		RefreshToken string `json:"refreshToken"`
		AccessToken  string `json:"accessToken"`
		Scope        string `json:"scope"`
		ExpiresIn    string `json:"expiresIn"`
		UpdatedAt    string `json:"updatedAt"`
	} `json:"thirdPartyIdentity"`
	Id                        string      `json:"id"`
	CreatedAt                 time.Time   `json:"createdAt"`
	UpdatedAt                 time.Time   `json:"updatedAt"`
	UserPoolId                string      `json:"userPoolId"`
	IsRoot                    bool        `json:"isRoot"`
	Status                    string      `json:"status"`
	Oauth                     string      `json:"oauth"`
	Email                     string      `json:"email"`
	Phone                     string      `json:"phone"`
	Username                  string      `json:"username"`
	Unionid                   string      `json:"unionid"`
	Openid                    string      `json:"openid"`
	Nickname                  string      `json:"nickname"`
	Company                   string      `json:"company"`
	Photo                     string      `json:"photo"`
	Browser                   string      `json:"browser"`
	Device                    string      `json:"device"`
	Password                  string      `json:"password"`
	Salt                      string      `json:"salt"`
	LoginsCount               int         `json:"loginsCount"`
	LastIp                    string      `json:"lastIp"`
	Name                      string      `json:"name"`
	GivenName                 string      `json:"givenName"`
	FamilyName                string      `json:"familyName"`
	MiddleName                string      `json:"middleName"`
	Profile                   string      `json:"profile"`
	PreferredUsername         string      `json:"preferredUsername"`
	Website                   string      `json:"website"`
	Gender                    string      `json:"gender"`
	Birthdate                 string      `json:"birthdate"`
	Zoneinfo                  string      `json:"zoneinfo"`
	Locale                    string      `json:"locale"`
	Address                   string      `json:"address"`
	Formatted                 string      `json:"formatted"`
	StreetAddress             string      `json:"streetAddress"`
	Locality                  string      `json:"locality"`
	Region                    string      `json:"region"`
	PostalCode                string      `json:"postalCode"`
	City                      string      `json:"city"`
	Province                  string      `json:"province"`
	Country                   string      `json:"country"`
	RegisterSource            []string    `json:"registerSource"`
	SecretInfo                interface{} `json:"secretInfo"`
	EmailVerified             bool        `json:"emailVerified"`
	PhoneVerified             bool        `json:"phoneVerified"`
	LastLogin                 time.Time   `json:"lastLogin"`
	Blocked                   bool        `json:"blocked"`
	IsDeleted                 bool        `json:"isDeleted"`
	SendSmsCount              int         `json:"sendSmsCount"`
	SendSmsLimitCount         int         `json:"sendSmsLimitCount"`
	DataVersion               string      `json:"dataVersion"`
	EncryptedPassword         string      `json:"encryptedPassword"`
	SignedUp                  time.Time   `json:"signedUp"`
	ExternalId                string      `json:"externalId"`
	MainDepartmentId          string      `json:"mainDepartmentId"`
	MainDepartmentCode        string      `json:"mainDepartmentCode"`
	LastMfaTime               string      `json:"lastMfaTime"`
	PasswordSecurityLevel     int         `json:"passwordSecurityLevel"`
	ResetPasswordOnFirstLogin bool        `json:"resetPasswordOnFirstLogin"`
	SyncExtInfo               interface{} `json:"syncExtInfo"`
	PhoneCountryCode          string      `json:"phoneCountryCode"`
	Source                    interface{} `json:"source"`
	LastIP                    string      `json:"lastIP"`
	Token                     string      `json:"token"`
	TokenExpiredAt            time.Time   `json:"tokenExpiredAt"`
}

type ApplicationAgreement

type ApplicationAgreement struct {
	UserPoolId string `json:"userPoolId"`
	AppId      string `json:"appId"`
	Title      string `json:"title"`
	Lang       string `json:"lang"`
	Required   bool   `json:"required"`
	Order      int    `json:"order"`
	Id         int    `json:"id"`
}

type ApplicationTenantDetails

type ApplicationTenantDetails struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Domain      string    `json:"domain"`
	Description string    `json:"description"`
	CreatedAt   time.Time `json:"createdAt"`
	UpdatedAt   time.Time `json:"updatedAt"`
	Protocol    string    `json:"protocol"`
	IsIntegrate bool      `json:"isIntegrate"`
	Tenants     []Tenant  `json:"tenants"`
}

type AssignAndRevokeRoleRequest

type AssignAndRevokeRoleRequest struct {
	RoleCodes []string `json:"roleCodes"`
	Namespace *string  `json:"namespace,omitempty"`
	UserIds   []string `json:"userIds"`
}

type AssociateMfaAuthenticatorResponse

type AssociateMfaAuthenticatorResponse struct {
	AuthenticatorType string `json:"authenticator_type"`
	Secret            string `json:"secret"`
	QrcodeUri         string `json:"qrcode_uri"`
	QrcodeDataUrl     string `json:"qrcode_data_url"`
	RecoveryCode      string `json:"recovery_code"`
}

type AuthorizeResourceOpt

type AuthorizeResourceOpt struct {
	TargetType       EnumPolicyAssignmentTargetType `json:"targetType"`
	TargetIdentifier string                         `json:"targetIdentifier"`
	Actions          []string                       `json:"actions"`
}

type AuthorizeResourceRequest

type AuthorizeResourceRequest struct {
	Namespace    string                 `json:"namespace"`
	Resource     string                 `json:"resource"`
	ResourceType EnumResourceType       `json:"resourceType"`
	Opts         []AuthorizeResourceOpt `json:"opts"`
}

type AuthorizedResource

type AuthorizedResource struct {
	Code    string            `json:"code"`
	Type    *EnumResourceType `json:"type"`
	Actions []string          `json:"actions"`
}

type AuthorizedResources

type AuthorizedResources struct {
	TotalCount int `json:"totalCount"`
	List       []struct {
		Code    string   `json:"code"`
		Type    string   `json:"type"`
		Actions []string `json:"actions"`
	} `json:"list"`
}

type AuthorizedTargetsActionsInput

type AuthorizedTargetsActionsInput struct {
	Op   EnumOperator `json:"op"`
	List []*string    `json:"list"`
}

type BatchDeleteRoleRequest

type BatchDeleteRoleRequest struct {
	CodeList  []string `json:"codeList"`
	Namespace *string  `json:"namespace,omitempty"`
}

type BatchOperationResult

type BatchOperationResult struct {
	SucceedCount int64    `json:"succeedCount"`
	FailedCount  int64    `json:"failedCount"`
	Message      *string  `json:"message"`
	Errors       []string `json:"errors"`
}

type BatchRoleUdv

type BatchRoleUdv struct {
	TargetId string            `json:"targetId"`
	Data     []UserDefinedData `json:"data"`
}

type ChangeEmailStrategy

type ChangeEmailStrategy struct {
	VerifyOldEmail *bool `json:"verifyOldEmail,omitempty"`
}

type ChangeEmailStrategyInput

type ChangeEmailStrategyInput struct {
	VerifyOldEmail *bool `json:"verifyOldEmail,omitempty"`
}

type ChangeExtIdpConnectionStateRequest

type ChangeExtIdpConnectionStateRequest struct {
	AppID    string `json:"appId,omitempty"`
	TenantID string `json:"tenantId,omitempty"`
	Enabled  bool   `json:"enabled"`
}

type ChangePhoneStrategy

type ChangePhoneStrategy struct {
	VerifyOldPhone *bool `json:"verifyOldPhone,omitempty"`
}

type ChangePhoneStrategyInput

type ChangePhoneStrategyInput struct {
	VerifyOldPhone *bool `json:"verifyOldPhone,omitempty"`
}

type CheckLoginStatusResponse

type CheckLoginStatusResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Status  bool   `json:"status"`
	Exp     int    `json:"exp"`
	Iat     int    `json:"iat"`
	Data    struct {
		Id         string `json:"id"`
		UserPoolId string `json:"userPoolId"`
		Arn        string `json:"arn"`
	} `json:"data"`
}

type CheckPasswordStrengthResult

type CheckPasswordStrengthResult struct {
	Valid   bool    `json:"valid"`
	Message *string `json:"message"`
}

type CheckResourcePermissionBatchRequest

type CheckResourcePermissionBatchRequest struct {
	UserId    string   `json:"userId"`
	Namespace string   `json:"namespace"`
	Resources []string `json:"resources"`
}

type CheckUserExistsRequest

type CheckUserExistsRequest struct {
	Email      *string `json:"email,omitempty"`
	Phone      *string `json:"phone,omitempty"`
	Username   *string `json:"username,omitempty"`
	ExternalId *string `json:"externalId,omitempty"`
}

type CheckUserExistsResponse

type CheckUserExistsResponse struct {
	Message string `json:"message"`
	Code    int64  `json:"code"`
	Data    bool   `json:"data"`
}

type ClientCredentialInput

type ClientCredentialInput struct {
	AccessKey string `json:"access_key"`
	SecretKey string `json:"secret_key"`
}

type CommonMessage

type CommonMessage struct {
	Message *string `json:"message"`
	Code    *int64  `json:"code"`
}

type CommonMessageAndCode

type CommonMessageAndCode struct {
	Message string `json:"message"`
	Code    int64  `json:"code"`
}

type CommonPageRequest

type CommonPageRequest struct {
	Page  int `json:"page"`
	Limit int `json:"limit"`
}

type CommonPageUsersResponse

type CommonPageUsersResponse struct {
	TotalCount int    `json:"totalCount"`
	List       []User `json:"list"`
}

type ConfigEmailTemplateInput

type ConfigEmailTemplateInput struct {
	Type       EnumEmailTemplateType `json:"type"`
	Name       string                `json:"name"`
	Subject    string                `json:"subject"`
	Sender     string                `json:"sender"`
	Content    string                `json:"content"`
	RedirectTo *string               `json:"redirectTo"`
	HasURL     *bool                 `json:"hasURL"`
	ExpiresIn  *int64                `json:"expiresIn"`
}

type ConfigTenantRequest

type ConfigTenantRequest struct {
	CSS                          string                              `json:"css,omitempty"`
	SsoPageCustomizationSettings *TenantSsoPageCustomizationSettings `json:"ssoPageCustomizationSettings,omitempty"`
}

type ConfirmAssociateMfaAuthenticatorRequest

type ConfirmAssociateMfaAuthenticatorRequest struct {
	Totp              string              `json:"totp"`
	AuthenticatorType *string             `json:"authenticatorType"`
	MfaSource         *constant.MfaSource `json:"source"`
	MfaToken          *string
}

type CreateExtIdpConnectionRequest

type CreateExtIdpConnectionRequest struct {
	ExtIdpId        string      `json:"extIdpId"`
	Type            string      `json:"type"`
	Identifier      string      `json:"identifier"`
	DisplayName     string      `json:"displayName"`
	Fields          interface{} `json:"fields"`
	UserMatchFields []string    `json:"userMatchFields,omitempty"`
}

type CreateExtIdpRequest

type CreateExtIdpRequest struct {
	Name        string             `json:"name"`
	Type        string             `json:"type"`
	TenantUd    string             `json:"tenantUd"`
	Connections []ExtIdpConnection `json:"connections"`
}

type CreateFunctionInput

type CreateFunctionInput struct {
	Name        string  `json:"name"`
	SourceCode  string  `json:"sourceCode"`
	Description *string `json:"description"`
	Url         *string `json:"url"`
}

type CreateGroupsRequest

type CreateGroupsRequest struct {
	Code        string  `json:"code"`
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
}

type CreateOrgRequest

type CreateOrgRequest struct {
	Name        string  `json:"name"`
	Code        *string `json:"code,omitempty"`
	Description *string `json:"description,omitempty"`
}

type CreatePolicyResponse

type CreatePolicyResponse struct {
	Namespace        string            `json:"namespace"`
	Code             string            `json:"code"`
	IsDefault        bool              `json:"isDefault"`
	Description      string            `json:"description"`
	Statements       []PolicyStatement `json:"statements"`
	CreatedAt        time.Time         `json:"createdAt"`
	UpdatedAt        time.Time         `json:"updatedAt"`
	AssignmentsCount int               `json:"assignmentsCount"`
}

type CreateResourceRequest

type CreateResourceRequest struct {
	Code          string         `json:"code"`
	Actions       []ActionsModel `json:"actions,omitempty"`
	Type          string         `json:"type,omitempty"`
	Description   *string        `json:"description,omitempty"`
	ApiIdentifier *string        `json:"apiIdentifier,omitempty"`
	Namespace     string         `json:"namespace,omitempty"`
}

type CreateRoleRequest

type CreateRoleRequest struct {
	Code        string  `json:"code"`
	Namespace   *string `json:"namespace,omitempty"`
	Description *string `json:"description,omitempty"`
	ParentCode  *string `json:"parent,omitempty"`
}

type CreateSocialConnectionInput

type CreateSocialConnectionInput struct {
	Provider    string                       `json:"provider"`
	Name        string                       `json:"name"`
	Description *string                      `json:"description"`
	Fields      []SocialConnectionFieldInput `json:"fields"`
}

type CreateSocialConnectionInstanceFieldInput

type CreateSocialConnectionInstanceFieldInput struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type CreateSocialConnectionInstanceInput

type CreateSocialConnectionInstanceInput struct {
	Provider string                                      `json:"provider"`
	Fields   []*CreateSocialConnectionInstanceFieldInput `json:"fields"`
}

type CreateTenantRequest

type CreateTenantRequest struct {
	Name        string `json:"name"`
	AppIds      string `json:"appIds"`
	Description string `json:"description,omitempty"`
}

type CreateUserInput

type CreateUserInput struct {
	Username          *string  `json:"username,omitempty"`
	Email             *string  `json:"email,omitempty"`
	EmailVerified     *bool    `json:"emailVerified,omitempty"`
	Phone             *string  `json:"phone,omitempty"`
	PhoneVerified     *bool    `json:"phoneVerified,omitempty"`
	Unionid           *string  `json:"unionid,omitempty"`
	Openid            *string  `json:"openid,omitempty"`
	Nickname          *string  `json:"nickname,omitempty"`
	Photo             *string  `json:"photo,omitempty"`
	Password          *string  `json:"password,omitempty"`
	RegisterSource    []string `json:"registerSource,omitempty"`
	Browser           *string  `json:"browser,omitempty"`
	Oauth             *string  `json:"oauth,omitempty"`
	LoginsCount       *int64   `json:"loginsCount,omitempty"`
	LastLogin         *string  `json:"lastLogin,omitempty"`
	Company           *string  `json:"company,omitempty"`
	LastIP            *string  `json:"lastIP,omitempty"`
	SignedUp          *string  `json:"signedUp,omitempty"`
	Blocked           *bool    `json:"blocked,omitempty"`
	IsDeleted         *bool    `json:"isDeleted,omitempty"`
	Device            *string  `json:"device,omitempty"`
	Name              *string  `json:"name,omitempty"`
	GivenName         *string  `json:"givenName,omitempty"`
	FamilyName        *string  `json:"familyName,omitempty"`
	MiddleName        *string  `json:"middleName,omitempty"`
	Profile           *string  `json:"profile,omitempty"`
	PreferredUsername *string  `json:"preferredUsername,omitempty"`
	Website           *string  `json:"website,omitempty"`
	Gender            *string  `json:"gender,omitempty"`
	Birthdate         *string  `json:"birthdate,omitempty"`
	Zoneinfo          *string  `json:"zoneinfo,omitempty"`
	Locale            *string  `json:"locale,omitempty"`
	Address           *string  `json:"address,omitempty"`
	Formatted         *string  `json:"formatted,omitempty"`
	StreetAddress     *string  `json:"streetAddress,omitempty"`
	Locality          *string  `json:"locality,omitempty"`
	Region            *string  `json:"region,omitempty"`
	PostalCode        *string  `json:"postalCode,omitempty"`
	Country           *string  `json:"country,omitempty"`
	ExternalId        *string  `json:"externalId,omitempty"`
}

type CreateUserRequest

type CreateUserRequest struct {
	UserInfo     CreateUserInput `json:"userInfo,omitempty"`
	KeepPassword bool            `json:"keepPassword,omitempty"`
	CustomData   []KeyValuePair  `json:"params,omitempty"`
}

type CustomSMSProvider

type CustomSMSProvider struct {
	Enabled  *bool   `json:"enabled"`
	Provider *string `json:"provider"`
	Config   *string `json:"config"`
}

type CustomSMSProviderInput

type CustomSMSProviderInput struct {
	Enabled  *bool   `json:"enabled,omitempty"`
	Provider *string `json:"provider,omitempty"`
	Config   *string `json:"config,omitempty"`
}

type DeleteRole

type DeleteRole struct {
	DeleteRole Role `json:"createRole"`
}

type DeleteRoleRequest

type DeleteRoleRequest struct {
	Code      string  `json:"code"`
	Namespace *string `json:"namespace,omitempty"`
}

type EditNamespaceRequest

type EditNamespaceRequest struct {
	Code        *string `json:"code,omitempty"`
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
}

type EmailTemplate

type EmailTemplate struct {
	Type       EnumEmailTemplateType `json:"type"`
	Name       string                `json:"name"`
	Subject    string                `json:"subject"`
	Sender     string                `json:"sender"`
	Content    string                `json:"content"`
	RedirectTo *string               `json:"redirectTo"`
	HasURL     *bool                 `json:"hasURL"`
	ExpiresIn  *int64                `json:"expiresIn"`
	Enabled    *bool                 `json:"enabled"`
	IsSystem   *bool                 `json:"isSystem"`
}

type EnumEmailScene

type EnumEmailScene string
const EnumEmailSceneChangeEmail EnumEmailScene = "CHANGE_EMAIL"
const EnumEmailSceneMfaVerify EnumEmailScene = "MFA_VERIFY"
const EnumEmailSceneResetPassword EnumEmailScene = "RESET_PASSWORD"
const EnumEmailSceneVerifyEmail EnumEmailScene = "VERIFY_EMAIL"

type EnumEmailTemplateType

type EnumEmailTemplateType string
const EnumEmailTemplateTypeChangeEmail EnumEmailTemplateType = "CHANGE_EMAIL"
const EnumEmailTemplateTypeChangePassword EnumEmailTemplateType = "CHANGE_PASSWORD"
const EnumEmailTemplateTypePasswordResetedNotification EnumEmailTemplateType = "PASSWORD_RESETED_NOTIFICATION"
const EnumEmailTemplateTypeResetPassword EnumEmailTemplateType = "RESET_PASSWORD"
const EnumEmailTemplateTypeVerifyEmail EnumEmailTemplateType = "VERIFY_EMAIL"
const EnumEmailTemplateTypeWelcome EnumEmailTemplateType = "WELCOME"

type EnumOperator

type EnumOperator string
const EnumOperatorAnd EnumOperator = "AND"
const EnumOperatorOr EnumOperator = "OR"

type EnumPolicyAssignmentTargetType

type EnumPolicyAssignmentTargetType string
const EnumPolicyAssignmentTargetTypeAkSk EnumPolicyAssignmentTargetType = "AK_SK"
const EnumPolicyAssignmentTargetTypeGroup EnumPolicyAssignmentTargetType = "GROUP"
const EnumPolicyAssignmentTargetTypeOrg EnumPolicyAssignmentTargetType = "ORG"
const EnumPolicyAssignmentTargetTypeRole EnumPolicyAssignmentTargetType = "ROLE"
const EnumPolicyAssignmentTargetTypeUser EnumPolicyAssignmentTargetType = "USER"

type EnumPolicyEffect

type EnumPolicyEffect string
const EnumPolicyEffectAllow EnumPolicyEffect = "ALLOW"
const EnumPolicyEffectDeny EnumPolicyEffect = "DENY"

type EnumResourceType

type EnumResourceType string
const EnumResourceTypeAPI EnumResourceType = "API"
const EnumResourceTypeBUTTON EnumResourceType = "BUTTON"
const EnumResourceTypeDATA EnumResourceType = "DATA"
const EnumResourceTypeMENU EnumResourceType = "MENU"
const EnumResourceTypeUI EnumResourceType = "UI"

type EnumSortByEnum

type EnumSortByEnum string
const EnumSortByEnumCREATEDAT_ASC EnumSortByEnum = "CREATEDAT_ASC"
const EnumSortByEnumCREATEDAT_DESC EnumSortByEnum = "CREATEDAT_DESC"
const EnumSortByEnumUPDATEDAT_ASC EnumSortByEnum = "UPDATEDAT_ASC"
const EnumSortByEnumUPDATEDAT_DESC EnumSortByEnum = "UPDATEDAT_DESC"

type EnumUDFDataType

type EnumUDFDataType string
const EnumUDFDataTypeBOOLEAN EnumUDFDataType = "BOOLEAN"
const EnumUDFDataTypeDATETIME EnumUDFDataType = "DATETIME"
const EnumUDFDataTypeNUMBER EnumUDFDataType = "NUMBER"
const EnumUDFDataTypeOBJECT EnumUDFDataType = "OBJECT"
const EnumUDFDataTypeSTRING EnumUDFDataType = "STRING"

type EnumUDFTargetType

type EnumUDFTargetType string
const EnumUDFTargetTypeAPPLICATION EnumUDFTargetType = "APPLICATION"
const EnumUDFTargetTypeNODE EnumUDFTargetType = "NODE"
const EnumUDFTargetTypeORG EnumUDFTargetType = "ORG"
const EnumUDFTargetTypePERMISSION EnumUDFTargetType = "PERMISSION"
const EnumUDFTargetTypeROLE EnumUDFTargetType = "ROLE"
const EnumUDFTargetTypeUSER EnumUDFTargetType = "USER"
const EnumUDFTargetTypeUSERPOOL EnumUDFTargetType = "USERPOOL"

type EnumUserStatus

type EnumUserStatus string
const EnumUserStatusActivated EnumUserStatus = "Activated"
const EnumUserStatusArchived EnumUserStatus = "Archived"
const EnumUserStatusResigned EnumUserStatus = "Resigned"
const EnumUserStatusSuspended EnumUserStatus = "Suspended"

type EnumWhitelistType

type EnumWhitelistType string
const EnumWhitelistTypeEmail EnumWhitelistType = "EMAIL"
const EnumWhitelistTypePhone EnumWhitelistType = "PHONE"
const EnumWhitelistTypeUsername EnumWhitelistType = "USERNAME"

type Enum__DirectiveLocation

type Enum__DirectiveLocation string
const DirectiveLocationArgumentDefinition Enum__DirectiveLocation = "ARGUMENT_DEFINITION"
const DirectiveLocationEnum Enum__DirectiveLocation = "ENUM"
const DirectiveLocationEnumValue Enum__DirectiveLocation = "ENUM_VALUE"
const DirectiveLocationField Enum__DirectiveLocation = "FIELD"
const DirectiveLocationFieldDefinition Enum__DirectiveLocation = "FIELD_DEFINITION"
const DirectiveLocationFragmentDefinition Enum__DirectiveLocation = "FRAGMENT_DEFINITION"
const DirectiveLocationFragmentSpread Enum__DirectiveLocation = "FRAGMENT_SPREAD"
const DirectiveLocationInlineFragment Enum__DirectiveLocation = "INLINE_FRAGMENT"
const DirectiveLocationInputFieldDefinition Enum__DirectiveLocation = "INPUT_FIELD_DEFINITION"
const DirectiveLocationInputObject Enum__DirectiveLocation = "INPUT_OBJECT"
const DirectiveLocationInterface Enum__DirectiveLocation = "INTERFACE"
const DirectiveLocationMutation Enum__DirectiveLocation = "MUTATION"
const DirectiveLocationObject Enum__DirectiveLocation = "OBJECT"
const DirectiveLocationQuery Enum__DirectiveLocation = "QUERY"
const DirectiveLocationScalar Enum__DirectiveLocation = "SCALAR"
const DirectiveLocationSchema Enum__DirectiveLocation = "SCHEMA"
const DirectiveLocationSubscription Enum__DirectiveLocation = "SUBSCRIPTION"
const DirectiveLocationUnion Enum__DirectiveLocation = "UNION"
const DirectiveLocationVariableDefinition Enum__DirectiveLocation = "VARIABLE_DEFINITION"

type Enum__TypeKind

type Enum__TypeKind string
const TypeKindEnum Enum__TypeKind = "ENUM"
const TypeKindInputObject Enum__TypeKind = "INPUT_OBJECT"
const TypeKindInterface Enum__TypeKind = "INTERFACE"
const TypeKindList Enum__TypeKind = "LIST"
const TypeKindNonNull Enum__TypeKind = "NON_NULL"
const TypeKindObject Enum__TypeKind = "OBJECT"
const TypeKindScalar Enum__TypeKind = "SCALAR"
const TypeKindUnion Enum__TypeKind = "UNION"

type ExportAllOrganizationResponse

type ExportAllOrganizationResponse struct {
	Message string    `json:"message"`
	Code    int64     `json:"code"`
	Data    []OrgNode `json:"data"`
}

type ExtIdpConnection

type ExtIdpConnection struct {
	Type            string      `json:"type"`
	Identifier      string      `json:"identifier"`
	DisplayName     string      `json:"displayName"`
	Fields          interface{} `json:"fields"`
	UserMatchFields []string    `json:"userMatchFields,omitempty"`
}

type ExtIdpConnectionDetails

type ExtIdpConnectionDetails struct {
	ID string `json:"id"`
	ExtIdpConnection
}

type ExtIdpDetailResponse

type ExtIdpDetailResponse struct {
	ID          string                    `json:"id"`
	Name        string                    `json:"name"`
	Type        string                    `json:"type"`
	Connections []ExtIdpConnectionDetails `json:"connections"`
}

type FindUserRequest

type FindUserRequest struct {
	Email          *string `json:"email,omitempty"`
	Username       *string `json:"username,omitempty"`
	Phone          *string `json:"phone,omitempty"`
	ExternalId     *string `json:"externalId,omitempty"`
	WithCustomData bool    `json:"withCustomData,omitempty"`
}

type FrequentRegisterCheckConfig

type FrequentRegisterCheckConfig struct {
	TimeInterval *int64 `json:"timeInterval"`
	Limit        *int64 `json:"limit"`
	Enabled      *bool  `json:"enabled"`
}

type FrequentRegisterCheckConfigInput

type FrequentRegisterCheckConfigInput struct {
	TimeInterval *int64 `json:"timeInterval,omitempty"`
	Limit        *int64 `json:"limit,omitempty"`
	Enabled      *bool  `json:"enabled,omitempty"`
}

type Function

type Function struct {
	Id          string  `json:"id"`
	Name        string  `json:"name"`
	SourceCode  string  `json:"sourceCode"`
	Description *string `json:"description"`
	Url         *string `json:"url"`
}

type GetAccessTokenByClientCredentialsRequest

type GetAccessTokenByClientCredentialsRequest struct {
	Scope                 string                 `json:"scope"`
	ClientCredentialInput *ClientCredentialInput `json:"client_credential_input"`
}

type GetApplicationAccessPoliciesResponse

type GetApplicationAccessPoliciesResponse struct {
	List       []ApplicationAccessPolicies `json:"list"`
	TotalCount int                         `json:"totalCount"`
}

type GetAuthorizedResourcesOfResourceKindRequest

type GetAuthorizedResourcesOfResourceKindRequest struct {
	UserId    string `json:"userId"`
	Namespace string `json:"namespace"`
	Resource  string `json:"resource"`
}

type GetAuthorizedTargetsRequest

type GetAuthorizedTargetsRequest struct {
	TargetType   constant.ResourceTargetTypeEnum `json:"targetType"`
	Namespace    string                          `json:"namespace"`
	Resource     string                          `json:"resource"`
	ResourceType EnumResourceType                `json:"resourceType"`
	Actions      *struct {
		Op   constant.GetAuthorizedTargetsOpt `json:"op,omitempty"`
		List []string                         `json:"list,omitempty"`
	} `json:"actions,omitempty"`
}

type GetGroupUserResponse

type GetGroupUserResponse struct {
	Users struct {
		TotalCount int    `json:"totalCount"`
		List       []User `json:"list"`
	} `json:"users"`
}

type GetMfaAuthenticatorsResponse

type GetMfaAuthenticatorsResponse struct {
	Id                string    `json:"id"`
	CreatedAt         time.Time `json:"createdAt"`
	UpdatedAt         time.Time `json:"updatedAt"`
	UserId            string    `json:"userId"`
	Enable            bool      `json:"enable"`
	Secret            string    `json:"secret"`
	AuthenticatorType string    `json:"authenticatorType"`
	RecoveryCode      string    `json:"recoveryCode"`
	Source            string    `json:"source"`
}

type GetOrganizationByIdData

type GetOrganizationByIdData struct {
	Org Org `json:"org"`
}

type GetOrganizationByIdResponse

type GetOrganizationByIdResponse struct {
	Data GetOrganizationByIdData `json:"data"`
}

type GetOrganizationChildrenResponse

type GetOrganizationChildrenResponse struct {
	Message string `json:"message"`
	Code    int64  `json:"code"`
	Data    []Node `json:"data"`
}

type GetRoleListRequest

type GetRoleListRequest struct {
	Page      int             `json:"page"`
	Limit     int             `json:"limit"`
	SortBy    enum.SortByEnum `json:"sortBy"`
	Namespace string          `json:"namespace"`
}

type GetRoleListResponse

type GetRoleListResponse struct {
	Data Roles `json:"data"`
}

type GetRoleUserListRequest

type GetRoleUserListRequest struct {
	Page      int     `json:"page"`
	Limit     int     `json:"limit"`
	Code      string  `json:"code"`
	Namespace *string `json:"namespace,omitempty"`
}

type GetSecurityLevelResponse

type GetSecurityLevelResponse struct {
	Score                 int  `json:"score"`
	Email                 bool `json:"email"`
	Phone                 bool `json:"phone"`
	Password              bool `json:"password"`
	PasswordSecurityLevel int  `json:"passwordSecurityLevel"`
	Mfa                   bool `json:"mfa"`
}

type GetTenantListResponse

type GetTenantListResponse struct {
	TotalCount int64    `json:"totalCount"`
	List       []Tenant `json:"list"`
}

type GetUserDepartmentsRequest

type GetUserDepartmentsRequest struct {
	Id    string  `json:"id"`
	OrgId *string `json:"orgId"`
}

type GetUserDepartmentsResponse

type GetUserDepartmentsResponse struct {
	Data UserDepartmentsData `json:"data"`
}

type GetUserGroupsResponse

type GetUserGroupsResponse struct {
	Groups struct {
		TotalCount int          `json:"totalCount"`
		List       []GroupModel `json:"list"`
	} `json:"groups"`
}

type GetUserRoleListRequest

type GetUserRoleListRequest struct {
	UserId    string  `json:"userId"`
	Namespace *string `json:"namespace"`
}

type GetUserRolesRequest

type GetUserRolesRequest struct {
	Id        string `json:"id"`
	Namespace string `json:"namespace,omitempty"`
}

type GetUserRolesResponse

type GetUserRolesResponse struct {
	Roles struct {
		TotalCount int         `json:"totalCount"`
		List       []RoleModel `json:"list"`
	} `json:"roles"`
}

type GetUserTenantsResponse

type GetUserTenantsResponse struct {
	User
	Tenants []Tenant `json:"tenants"`
}

type GqlCommonErrors

type GqlCommonErrors struct {
	Message   CommonMessageAndCode `json:"message"`
	Locations []struct {
		Line   int `json:"line"`
		Column int `json:"column"`
	} `json:"locations"`
	Extensions struct {
		Code      string `json:"code"`
		Extension struct {
			Name string `json:"name"`
		} `json:"extension"`
	}
}

type Group

type Group struct {
	Code                string                        `json:"code"`
	Name                string                        `json:"name"`
	Description         *string                       `json:"description"`
	CreatedAt           *string                       `json:"createdAt"`
	UpdatedAt           *string                       `json:"updatedAt"`
	Users               PaginatedUsers                `json:"users"`
	AuthorizedResources *PaginatedAuthorizedResources `json:"authorizedResources"`
}

type GroupModel

type GroupModel struct {
	Code        string    `json:"code"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	CreatedAt   time.Time `json:"createdAt"`
	UpdatedAt   time.Time `json:"updatedAt"`
}

type Identity

type Identity struct {
	Id            *string      `json:"id"`
	Openid        *string      `json:"openid"`
	UserIdInIdp   *string      `json:"userIdInIdp"`
	UserId        *string      `json:"userId"`
	ExtIdpId      *string      `json:"extIdpId"`
	IsSocial      *bool        `json:"isSocial"`
	Provider      *string      `json:"provider"`
	UserPoolId    *string      `json:"userPoolId"`
	RefreshToken  *string      `json:"refreshToken"`
	AccessToken   *string      `json:"accessToken"`
	Type          *string      `json:"type"`
	UserInfoInIdp *interface{} `json:"userInfoInIdp"`
}

type IsAllowedRequest

type IsAllowedRequest struct {
	Resource  string  `json:"resource"`
	Action    string  `json:"action"`
	UserId    string  `json:"userId"`
	Namespace *string `json:"namespace"`
}

type IsUserExistsRequest

type IsUserExistsRequest struct {
	Username   *string `json:"username,omitempty"`
	Email      *string `json:"email,omitempty"`
	Phone      *string `json:"phone,omitempty"`
	ExternalId *string `json:"externalId,omitempty"`
}

type JWTTokenStatus

type JWTTokenStatus struct {
	Code    *int64                `json:"code"`
	Message *string               `json:"message"`
	Status  *bool                 `json:"status"`
	Exp     *int64                `json:"exp"`
	Iat     *int64                `json:"iat"`
	Data    *JWTTokenStatusDetail `json:"data"`
}

type JWTTokenStatusDetail

type JWTTokenStatusDetail struct {
	Id         *string `json:"id"`
	UserPoolId *string `json:"userPoolId"`
	Arn        *string `json:"arn"`
}

type KeyValuePair

type KeyValuePair struct {
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
}

type ListAuditLogsRequest

type ListAuditLogsRequest struct {
	ClientIp       *string   `json:"clientip,omitempty"`
	OperationNames *[]string `json:"operation_name,omitempty"`
	UserIds        *[]string `json:"operator_arn,omitempty"`
	AppIds         *[]string `json:"app_id,omitempty"`
	Page           *int      `json:"page,omitempty"`
	Limit          *int      `json:"limit,omitempty"`
}

type ListAuthorizedResourcesByIdRequest

type ListAuthorizedResourcesByIdRequest struct {
	Id           string  `json:"id"`
	Namespace    string  `json:"namespace,omitempty"`
	ResourceType *string `json:"resourceType"`
}

type ListAuthorizedResourcesByNodeCodeRequest

type ListAuthorizedResourcesByNodeCodeRequest struct {
	Id           string  `json:"id"`
	Code         string  `json:"code"`
	Namespace    *string `json:"namespace,omitempty"`
	ResourceType *string `json:"resourceType,omitempty"`
}

type ListAuthorizedResourcesRequest

type ListAuthorizedResourcesRequest struct {
	TargetIdentifier string                          `json:"targetIdentifier"`
	Namespace        string                          `json:"namespace"`
	TargetType       constant.ResourceTargetTypeEnum `json:"targetType"`
	ResourceType     *EnumResourceType               `json:"resourceType"`
}

type ListExtIdpResponse

type ListExtIdpResponse struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Type        string `json:"type"`
	TenantID    string `json:"tenantId"`
	Connections []struct {
		ID          string `json:"id"`
		Type        string `json:"type"`
		Identifier  string `json:"identifier"`
		DisplayName string `json:"displayName"`
		Logo        string `json:"logo"`
		Enabled     bool   `json:"enabled"`
	} `json:"connections"`
}

type ListGroupsAuthorizedResourcesRequest

type ListGroupsAuthorizedResourcesRequest struct {
	Code         string            `json:"code"`
	Namespace    *string           `json:"namespace,omitempty"`
	ResourceType *EnumResourceType `json:"resourceType,omitempty"`
}

type ListMemberRequest

type ListMemberRequest struct {
	NodeId               string          `json:"nodeId"`
	Page                 int             `json:"page"`
	Limit                int             `json:"limit"`
	SortBy               enum.SortByEnum `json:"sortBy"`
	IncludeChildrenNodes bool            `json:"includeChildrenNodes"`
}

type ListNamespaceResourceResponse

type ListNamespaceResourceResponse struct {
	List       []Resource `json:"list"`
	TotalCount int        `json:"totalCount"`
}

type ListOrganizationResponse

type ListOrganizationResponse struct {
	Message string        `json:"message"`
	Code    int64         `json:"code"`
	Data    PaginatedOrgs `json:"data"`
}

type ListPoliciesOnIdRequest

type ListPoliciesOnIdRequest struct {
	Id    string `json:"targetIdentifier"`
	Page  int    `json:"page"`
	Limit int    `json:"limit"`
}

type ListPoliciesRequest

type ListPoliciesRequest struct {
	Code  string `json:"targetIdentifier"`
	Page  int    `json:"page"`
	Limit int    `json:"limit"`
}

type ListPoliciesResponse

type ListPoliciesResponse struct {
	TotalCount int `json:"totalCount"`
	List       []struct {
		Code             string `json:"code"`
		TargetType       string `json:"targetType"`
		TargetIdentifier string `json:"targetIdentifier"`
	} `json:"list"`
}

type ListResourceRequest

type ListResourceRequest struct {
	Namespace    string           `json:"namespace"`
	ResourceType EnumResourceType `json:"resourceType,omitempty"`
	Page         int              `json:"page"`
	Limit        int              `json:"limit"`
}

type ListUserActionRequest

type ListUserActionRequest struct {
	ClientIp       *string   `json:"clientip,omitempty"`
	OperationNames *[]string `json:"operation_name,omitempty"`
	UserIds        *[]string `json:"operator_arn,omitempty"`
	Page           *int      `json:"page,omitempty"`
	Limit          *int      `json:"limit,omitempty"`
}

type ListUserAuthResourceRequest

type ListUserAuthResourceRequest struct {
	Id           string           `json:"id"`
	Namespace    string           `json:"namespace"`
	ResourceType EnumResourceType `json:"resourceType"`
}

type ListUserAuthorizedResourcesResponse

type ListUserAuthorizedResourcesResponse struct {
	User User `json:"user"`
}

type ListUserOrgResponse

type ListUserOrgResponse struct {
	Code    string       `json:"code"`
	Message string       `json:"message"`
	Data    [][]OrgModel `json:"data"`
}

type ListUserResponse

type ListUserResponse struct {
	Data Users `json:"data"`
}

type LoginByEmailInput

type LoginByEmailInput struct {
	Email        string  `json:"email"`
	Password     string  `json:"password"`
	CaptchaCode  *string `json:"captchaCode"`
	AutoRegister *bool   `json:"autoRegister"`
	ClientIp     *string `json:"clientIp"`
	Params       *string `json:"params"`
	Context      *string `json:"context"`
}

type LoginByPhoneCodeInput

type LoginByPhoneCodeInput struct {
	Phone        string  `json:"phone"`
	Code         string  `json:"code"`
	AutoRegister *bool   `json:"autoRegister"`
	ClientIp     *string `json:"clientIp"`
	Params       *string `json:"params"`
	Context      *string `json:"context"`
}

type LoginByPhonePasswordInput

type LoginByPhonePasswordInput struct {
	Phone        string  `json:"phone"`
	Password     string  `json:"password"`
	CaptchaCode  *string `json:"captchaCode"`
	AutoRegister *bool   `json:"autoRegister"`
	ClientIp     *string `json:"clientIp"`
	Params       *string `json:"params"`
	Context      *string `json:"context"`
}

type LoginBySubAccountRequest

type LoginBySubAccountRequest struct {
	Account     string `json:"account"`
	Password    string `json:"password"`
	CaptchaCode string `json:"captchaCode,omitempty"`
	ClientIp    string `json:"clientIp,omitempty"`
}

type LoginByUsernameInput

type LoginByUsernameInput struct {
	Username     string  `json:"username"`
	Password     string  `json:"password"`
	CaptchaCode  *string `json:"captchaCode"`
	AutoRegister *bool   `json:"autoRegister"`
	ClientIp     *string `json:"clientIp"`
	Params       *string `json:"params"`
	Context      *string `json:"context"`
}

type LoginFailCheckConfig

type LoginFailCheckConfig struct {
	TimeInterval *int64 `json:"timeInterval"`
	Limit        *int64 `json:"limit"`
	Enabled      *bool  `json:"enabled"`
}

type LoginFailCheckConfigInput

type LoginFailCheckConfigInput struct {
	TimeInterval *int64 `json:"timeInterval,omitempty"`
	Limit        *int64 `json:"limit,omitempty"`
	Enabled      *bool  `json:"enabled,omitempty"`
}

type LoginPasswordFailCheckConfig

type LoginPasswordFailCheckConfig struct {
	TimeInterval *int64 `json:"timeInterval,omitempty"`
	Limit        *int64 `json:"limit,omitempty"`
	Enabled      *bool  `json:"enabled,omitempty"`
}

type LoginPasswordFailCheckConfigInput

type LoginPasswordFailCheckConfigInput struct {
	TimeInterval *int64 `json:"timeInterval,omitempty"`
	Limit        *int64 `json:"limit,omitempty"`
	Enabled      *bool  `json:"enabled,omitempty"`
}

type Mfa

type Mfa struct {
	Id         string  `json:"id"`
	UserId     string  `json:"userId"`
	UserPoolId string  `json:"userPoolId"`
	Enable     bool    `json:"enable"`
	Secret     *string `json:"secret"`
}

type MfaInput

type MfaInput struct {
	MfaToken  *string
	MfaType   *string             `json:"type"`
	MfaSource *constant.MfaSource `json:"source"`
}

type Namespace

type Namespace struct {
	UserPoolId     string `json:"userPoolId"`
	Name           string `json:"name"`
	Code           string `json:"code"`
	Description    string `json:"description"`
	Status         int    `json:"status"`
	ApplicationId  string `json:"applicationId"`
	IsIntegrateApp bool   `json:"isIntegrateApp"`
	IsDefaultApp   bool   `json:"isDefaultApp"`
	Id             int    `json:"id"`
}

type Node

type Node struct {
	Id                  string                        `json:"id"`
	OrgId               *string                       `json:"orgId"`
	Name                string                        `json:"name"`
	NameI18n            *string                       `json:"nameI18n"`
	Description         *string                       `json:"description"`
	DescriptionI18n     *string                       `json:"descriptionI18n"`
	Order               *int64                        `json:"order"`
	Code                *string                       `json:"code"`
	Root                *bool                         `json:"root"`
	Depth               *int64                        `json:"depth"`
	Path                []string                      `json:"path"`
	CodePath            []*string                     `json:"codePath"`
	NamePath            []string                      `json:"namePath"`
	CreatedAt           *string                       `json:"createdAt"`
	UpdatedAt           *string                       `json:"updatedAt"`
	Children            []string                      `json:"children"`
	Users               PaginatedUsers                `json:"users"`
	AuthorizedResources *PaginatedAuthorizedResources `json:"authorizedResources"`
}

type NodeByIdDetail

type NodeByIdDetail struct {
	NodeById Node `json:"nodeById"`
}

type NodeByIdResponse

type NodeByIdResponse struct {
	Data NodeByIdDetail `json:"data"`
}

type OidcParams

type OidcParams struct {
	AppId               string
	RedirectUri         string
	ResponseType        string
	ResponseMode        string
	State               string
	Nonce               string
	Scope               string
	CodeChallengeMethod string
	CodeChallenge       string
}

type Org

type Org struct {
	Id       string `json:"id"`
	RootNode Node   `json:"rootNode"`
	Nodes    []Node `json:"nodes"`
}

type OrgModel

type OrgModel struct {
	RootNodeId      string    `json:"rootNodeId"`
	Type            string    `json:"type"`
	Id              string    `json:"id"`
	CreatedAt       time.Time `json:"createdAt"`
	UpdatedAt       time.Time `json:"updatedAt"`
	UserPoolId      string    `json:"userPoolId"`
	OrgId           string    `json:"orgId"`
	Name            string    `json:"name"`
	NameI18N        string    `json:"nameI18n"`
	Description     string    `json:"description"`
	DescriptionI18N string    `json:"descriptionI18n"`
	Order           string    `json:"order"`
	Code            string    `json:"code"`
	LeaderUserId    string    `json:"leaderUserId"`
	Source          []string  `json:"source"`
	DataVersion     string    `json:"dataVersion"`
	SourceData      string    `json:"sourceData"`
}

type OrgNode

type OrgNode struct {
	Id              string     `json:"id"`
	OrgId           *string    `json:"orgId"`
	CreatedAt       *string    `json:"createdAt"`
	UpdatedAt       *string    `json:"updatedAt"`
	UserPoolId      *string    `json:"userPoolId"`
	Name            string     `json:"name"`
	Description     *string    `json:"description"`
	DescriptionI18n *string    `json:"descriptionI18n"`
	Order           *int64     `json:"order"`
	Code            *string    `json:"code"`
	Members         *[]User    `json:"members,omitempty"`
	Children        *[]OrgNode `json:"children,omitempty"`
}

type OrgNodeChildStr

type OrgNodeChildStr struct {
	Id              string    `json:"id"`
	OrgId           *string   `json:"orgId"`
	Name            string    `json:"name"`
	NameI18n        *string   `json:"nameI18n"`
	Description     *string   `json:"description"`
	DescriptionI18n *string   `json:"descriptionI18n"`
	Order           *int64    `json:"order"`
	Code            *string   `json:"code"`
	Root            *bool     `json:"root"`
	Depth           *int64    `json:"depth"`
	Path            []string  `json:"path"`
	CodePath        []*string `json:"codePath"`
	NamePath        []string  `json:"namePath"`
	CreatedAt       *string   `json:"createdAt"`
	UpdatedAt       *string   `json:"updatedAt"`
	Children        []string  `json:"children"`
}

type OrgResponse

type OrgResponse struct {
	Id       string     `json:"id"`
	RootNode *OrgNode   `json:"rootNode,omitempty"`
	Nodes    *[]OrgNode `json:"nodes,omitempty"`
}

type PaginatedAuthorizedResources

type PaginatedAuthorizedResources struct {
	TotalCount int64                `json:"totalCount"`
	List       []AuthorizedResource `json:"list"`
}

type PaginatedAuthorizedTargets

type PaginatedAuthorizedTargets struct {
	List       []*ResourcePermissionAssignment `json:"list"`
	TotalCount *int64                          `json:"totalCount"`
}

type PaginatedDepartments

type PaginatedDepartments struct {
	List       []UserDepartment `json:"list"`
	TotalCount int64            `json:"totalCount"`
}

type PaginatedFunctions

type PaginatedFunctions struct {
	List       []Function `json:"list"`
	TotalCount int64      `json:"totalCount"`
}

type PaginatedGroups

type PaginatedGroups struct {
	TotalCount int64   `json:"totalCount"`
	List       []Group `json:"list"`
}

type PaginatedOrgs

type PaginatedOrgs struct {
	TotalCount int64 `json:"totalCount"`
	List       []Org `json:"list"`
}

type PaginatedPolicies

type PaginatedPolicies struct {
	TotalCount int64    `json:"totalCount"`
	List       []Policy `json:"list"`
}

type PaginatedPolicyAssignments

type PaginatedPolicyAssignments struct {
	TotalCount int64              `json:"totalCount"`
	List       []PolicyAssignment `json:"list"`
}

type PaginatedRoles

type PaginatedRoles struct {
	TotalCount int64  `json:"totalCount"`
	List       []Role `json:"list"`
}

type PaginatedUserpool

type PaginatedUserpool struct {
	TotalCount int64      `json:"totalCount"`
	List       []UserPool `json:"list"`
}

type PaginatedUsers

type PaginatedUsers struct {
	TotalCount int64  `json:"totalCount"`
	List       []User `json:"list"`
}

type Policy

type Policy struct {
	Namespace        string             `json:"namespace"`
	Code             string             `json:"code"`
	IsDefault        bool               `json:"isDefault"`
	Description      *string            `json:"description"`
	Statements       []PolicyStatement  `json:"statements"`
	CreatedAt        *string            `json:"createdAt"`
	UpdatedAt        *string            `json:"updatedAt"`
	AssignmentsCount int64              `json:"assignmentsCount"`
	Assignments      []PolicyAssignment `json:"assignments"`
}

type PolicyAssignment

type PolicyAssignment struct {
	Code             string                         `json:"code"`
	TargetType       EnumPolicyAssignmentTargetType `json:"targetType"`
	TargetIdentifier string                         `json:"targetIdentifier"`
}

type PolicyAssignmentsRequest

type PolicyAssignmentsRequest struct {
	Policies          []string                       `json:"policies"`
	TargetType        EnumPolicyAssignmentTargetType `json:"targetType"`
	TargetIdentifiers []string                       `json:"targetIdentifiers"`
}

type PolicyRequest

type PolicyRequest struct {
	Code        string            `json:"code"`
	Description *string           `json:"description,omitempty"`
	Statements  []PolicyStatement `json:"statements,omitempty"`
}

type PolicyStatement

type PolicyStatement struct {
	Resource  string                     `json:"resource"`
	Actions   []string                   `json:"actions"`
	Effect    *EnumPolicyEffect          `json:"effect"`
	Condition []PolicyStatementCondition `json:"condition,omitempty"`
}

type PolicyStatementCondition

type PolicyStatementCondition struct {
	Param    string `json:"param"`
	Operator string `json:"operator"`
}

type PolicyStatementConditionInput

type PolicyStatementConditionInput struct {
	Param    string `json:"param"`
	Operator string `json:"operator"`
}

type PolicyStatementInput

type PolicyStatementInput struct {
	Resource  string                          `json:"resource"`
	Actions   []string                        `json:"actions"`
	Effect    *EnumPolicyEffect               `json:"effect"`
	Condition []PolicyStatementConditionInput `json:"condition"`
}

type PrincipalAuthenticateRequest

type PrincipalAuthenticateRequest struct {
	Type   constant.PrincipalAuthenticateType `json:"type"`
	Name   string                             `json:"name"`
	IdCard string                             `json:"idCard"`
	Ext    string                             `json:"ext"`
}

type ProgrammaticAccessAccount

type ProgrammaticAccessAccount struct {
	AppId         string    `json:"appId"`
	Secret        string    `json:"secret"`
	TokenLifetime int       `json:"tokenLifetime"`
	CreatedAt     time.Time `json:"createdAt"`
	UpdatedAt     time.Time `json:"updatedAt"`
	Id            string    `json:"id"`
	Remarks       string    `json:"remarks"`
	UserId        string    `json:"userId"`
	Enabled       bool      `json:"enabled"`
}

type QrcodeLoginStrategy

type QrcodeLoginStrategy struct {
	QrcodeExpiresAfter               *int64 `json:"qrcodeExpiresAfter"`
	ReturnFullUserInfo               *bool  `json:"returnFullUserInfo"`
	AllowExchangeUserInfoFromBrowser *bool  `json:"allowExchangeUserInfoFromBrowser"`
	TicketExpiresAfter               *int64 `json:"ticketExpiresAfter"`
}

type QrcodeLoginStrategyInput

type QrcodeLoginStrategyInput struct {
	QrcodeExpiresAfter               *int64 `json:"qrcodeExpiresAfter,omitempty"`
	ReturnFullUserInfo               *bool  `json:"returnFullUserInfo,omitempty"`
	AllowExchangeUserInfoFromBrowser *bool  `json:"allowExchangeUserInfoFromBrowser,omitempty"`
	TicketExpiresAfter               *int64 `json:"ticketExpiresAfter,omitempty"`
}

type QueryListRequest

type QueryListRequest struct {
	Page           int             `json:"page"`
	Limit          int             `json:"limit"`
	SortBy         enum.SortByEnum `json:"sortBy"`
	WithCustomData *bool
}

type QueryUserInfoRequest added in v0.2.5

type QueryUserInfoRequest struct {
	UserId         string `json:"user_id"`
	WithCustomData bool
}

type RefreshAccessTokenRes

type RefreshAccessTokenRes struct {
	AccessToken *string `json:"accessToken"`
	Exp         *int64  `json:"exp"`
	Iat         *int64  `json:"iat"`
}

type RefreshToken

type RefreshToken struct {
	Token *string `json:"token"`
	Iat   *int64  `json:"iat"`
	Exp   *int64  `json:"exp"`
}

type RegisterByEmailInput

type RegisterByEmailInput struct {
	Email         string           `json:"email"`
	Password      string           `json:"password"`
	Profile       *RegisterProfile `json:"profile,omitempty"`
	ForceLogin    *bool            `json:"forceLogin,omitempty"`
	GenerateToken *bool            `json:"generateToken,omitempty"`
	ClientIp      *string          `json:"clientIp,omitempty"`
	Params        *string          `json:"params,omitempty"`
	Context       *string          `json:"context,omitempty"`
}

type RegisterByPhoneCodeInput

type RegisterByPhoneCodeInput struct {
	Phone         string           `json:"phone"`
	Code          string           `json:"code"`
	Password      *string          `json:"password"`
	Profile       *RegisterProfile `json:"profile"`
	ForceLogin    *bool            `json:"forceLogin"`
	GenerateToken *bool            `json:"generateToken"`
	ClientIp      *string          `json:"clientIp"`
	Params        *string          `json:"params"`
	Context       *string          `json:"context"`
}

type RegisterByUsernameInput

type RegisterByUsernameInput struct {
	Username      string           `json:"username"`
	Password      string           `json:"password"`
	Profile       *RegisterProfile `json:"profile"`
	ForceLogin    *bool            `json:"forceLogin"`
	GenerateToken *bool            `json:"generateToken"`
	ClientIp      *string          `json:"clientIp"`
	Params        *string          `json:"params"`
	Context       *string          `json:"context"`
}

type RegisterProfile

type RegisterProfile struct {
	Ip                *string        `json:"ip"`
	Oauth             *string        `json:"oauth"`
	Username          *string        `json:"username"`
	Nickname          *string        `json:"nickname"`
	Company           *string        `json:"company"`
	Photo             *string        `json:"photo"`
	Device            *string        `json:"device"`
	Browser           *string        `json:"browser"`
	Name              *string        `json:"name"`
	GivenName         *string        `json:"givenName"`
	FamilyName        *string        `json:"familyName"`
	MiddleName        *string        `json:"middleName"`
	Profile           *string        `json:"profile"`
	PreferredUsername *string        `json:"preferredUsername"`
	Website           *string        `json:"website"`
	Gender            *string        `json:"gender"`
	Birthdate         *string        `json:"birthdate"`
	Zoneinfo          *string        `json:"zoneinfo"`
	Locale            *string        `json:"locale"`
	Address           *string        `json:"address"`
	Formatted         *string        `json:"formatted"`
	StreetAddress     *string        `json:"streetAddress"`
	Locality          *string        `json:"locality"`
	Region            *string        `json:"region"`
	PostalCode        *string        `json:"postalCode"`
	Country           *string        `json:"country"`
	Udf               []UserDdfInput `json:"udf"`
}

type RegisterWhiteListConfig

type RegisterWhiteListConfig struct {
	PhoneEnabled    *bool `json:"phoneEnabled"`
	EmailEnabled    *bool `json:"emailEnabled"`
	UsernameEnabled *bool `json:"usernameEnabled"`
}

type RegisterWhiteListConfigInput

type RegisterWhiteListConfigInput struct {
	PhoneEnabled    *bool `json:"phoneEnabled,omitempty"`
	EmailEnabled    *bool `json:"emailEnabled,omitempty"`
	UsernameEnabled *bool `json:"usernameEnabled,omitempty"`
}

type Resource

type Resource struct {
	Id            string         `json:"id"`
	CreatedAt     time.Time      `json:"createdAt"`
	UpdatedAt     time.Time      `json:"updatedAt"`
	UserPoolId    string         `json:"userPoolId"`
	Code          string         `json:"code"`
	Actions       []ActionsModel `json:"actions"`
	Type          string         `json:"type"`
	Description   string         `json:"description"`
	NamespaceId   int            `json:"namespaceId"`
	ApiIdentifier *string        `json:"apiIdentifier"`
	Namespace     string         `json:"namespace,omitempty"`
}

type ResourcePermissionAssignment

type ResourcePermissionAssignment struct {
	TargetType       *EnumPolicyAssignmentTargetType `json:"targetType"`
	TargetIdentifier *string                         `json:"targetIdentifier"`
	Actions          []string                        `json:"actions"`
}

type ResourceResponse

type ResourceResponse struct {
	Id            string         `json:"id"`
	CreatedAt     time.Time      `json:"createdAt"`
	UpdatedAt     time.Time      `json:"updatedAt"`
	UserPoolId    string         `json:"userPoolId"`
	Code          string         `json:"code"`
	Actions       []ActionsModel `json:"actions"`
	Type          string         `json:"type"`
	Description   string         `json:"description"`
	NamespaceId   int            `json:"namespaceId"`
	ApiIdentifier *string        `json:"apiIdentifier"`
}

type RevokeResourceRequest

type RevokeResourceRequest struct {
	Namespace    string                 `json:"namespace"`
	Resource     string                 `json:"resource"`
	ResourceType EnumResourceType       `json:"resourceType"`
	Opts         []AuthorizeResourceOpt `json:"opts"`
}

type Role

type Role struct {
	Id                  string                        `json:"id"`
	Namespace           string                        `json:"namespace"`
	Code                string                        `json:"code"`
	Arn                 string                        `json:"arn"`
	Description         *string                       `json:"description,omitempty"`
	IsSystem            *bool                         `json:"isSystem,omitempty"`
	CreatedAt           *string                       `json:"createdAt,omitempty"`
	UpdatedAt           *string                       `json:"updatedAt,omitempty"`
	Users               PaginatedUsers                `json:"users"`
	AuthorizedResources *PaginatedAuthorizedResources `json:"authorizedResources,omitempty"`
	Parent              *Role                         `json:"parent,omitempty"`
}

type RoleDetailRequest

type RoleDetailRequest struct {
	Code      string  `json:"code"`
	Namespace *string `json:"namespace,omitempty"`
}

type RoleModel

type RoleModel struct {
	Id          string  `json:"id"`
	Namespace   string  `json:"namespace"`
	Code        string  `json:"code"`
	Arn         string  `json:"arn"`
	Description *string `json:"description,omitempty"`
	CreatedAt   *string `json:"createdAt,omitempty"`
	UpdatedAt   *string `json:"updatedAt,omitempty"`
	Parent      *struct {
		Id          string  `json:"id,omitempty"`
		Namespace   string  `json:"namespace,omitempty"`
		Code        string  `json:"code,omitempty"`
		Arn         string  `json:"arn,omitempty"`
		Description *string `json:"description,omitempty"`
		CreatedAt   *string `json:"createdAt,omitempty"`
		UpdatedAt   *string `json:"updatedAt,omitempty"`
	} `json:"parent,omitempty"`
}

type Roles

type Roles struct {
	Roles PaginatedRoles `json:"roles"`
}

type SearchUserDepartmentOpt

type SearchUserDepartmentOpt struct {
	DepartmentId               *string `json:"departmentId"`
	IncludeChildrenDepartments *bool   `json:"includeChildrenDepartments"`
}

type SearchUserGroupOpt

type SearchUserGroupOpt struct {
	Code *string `json:"code"`
}

type SearchUserRequest

type SearchUserRequest struct {
	Query          string    `json:"query"`
	Page           int       `json:"page"`
	Limit          int       `json:"limit"`
	DepartmentOpts *[]string `json:"departmentOpts,omitempty"`
	GroupOpts      *[]string `json:"groupOpts,omitempty"`
	RoleOpts       *[]string `json:"roleOpts,omitempty"`
	WithCustomData bool
}

type SearchUserRoleOpt

type SearchUserRoleOpt struct {
	Namespace *string `json:"namespace"`
	Code      string  `json:"code"`
}

type SetUdfInput

type SetUdfInput struct {
	TargetType EnumUDFTargetType `json:"targetType"`
	Key        string            `json:"key"`
	DataType   EnumUDFDataType   `json:"dataType"`
	Label      string            `json:"label"`
}

type SetUdfValueBatchInput

type SetUdfValueBatchInput struct {
	TargetId string      `json:"targetId"`
	Key      string      `json:"key"`
	Value    interface{} `json:"value"`
}

type SocialConnection

type SocialConnection struct {
	Provider    string                  `json:"provider"`
	Name        string                  `json:"name"`
	Description *string                 `json:"description"`
	Fields      []SocialConnectionField `json:"fields"`
}

type SocialConnectionField

type SocialConnectionField struct {
	Key         *string                  `json:"key"`
	Label       *string                  `json:"label"`
	Type        *string                  `json:"type"`
	Placeholder *string                  `json:"placeholder"`
	Children    []*SocialConnectionField `json:"children"`
}

type SocialConnectionFieldInput

type SocialConnectionFieldInput struct {
	Key         *string                       `json:"key"`
	Label       *string                       `json:"label"`
	Type        *string                       `json:"type"`
	Placeholder *string                       `json:"placeholder"`
	Children    []*SocialConnectionFieldInput `json:"children"`
}

type SocialConnectionInstance

type SocialConnectionInstance struct {
	Provider string                           `json:"provider"`
	Enabled  bool                             `json:"enabled"`
	Fields   []*SocialConnectionInstanceField `json:"fields"`
}

type SocialConnectionInstanceField

type SocialConnectionInstanceField struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type SwitchPolicyAssignmentsRequest

type SwitchPolicyAssignmentsRequest struct {
	Policy           string                         `json:"policy"`
	TargetType       EnumPolicyAssignmentTargetType `json:"targetType"`
	TargetIdentifier string                         `json:"targetIdentifier"`
	Namespace        *string                        `json:"namespace,omitempty"`
}

type Tenant

type Tenant struct {
	ID                           string      `json:"id"`
	CreatedAt                    time.Time   `json:"createdAt"`
	UpdatedAt                    time.Time   `json:"updatedAt"`
	UserPoolID                   string      `json:"userPoolId"`
	Name                         string      `json:"name"`
	Description                  interface{} `json:"description"`
	CSS                          interface{} `json:"css"`
	SsoPageCustomizationSettings interface{} `json:"ssoPageCustomizationSettings"`
	DefaultLoginTab              string      `json:"defaultLoginTab"`
	DefaultRegisterTab           string      `json:"defaultRegisterTab"`
	PasswordTabConfig            struct {
		EnabledLoginMethods []string `json:"enabledLoginMethods"`
	} `json:"passwordTabConfig"`
	LoginTabs     []string    `json:"loginTabs"`
	RegisterTabs  []string    `json:"registerTabs"`
	ExtendsFields interface{} `json:"extendsFields"`
}

type TenantDetails

type TenantDetails struct {
	Tenant
	Apps []struct {
		QrcodeScanning struct {
			Redirect bool `json:"redirect"`
			Interval int  `json:"interval"`
		} `json:"qrcodeScanning"`
		ID          string      `json:"id"`
		CreatedAt   time.Time   `json:"createdAt"`
		UpdatedAt   time.Time   `json:"updatedAt"`
		UserPoolID  string      `json:"userPoolId"`
		Protocol    string      `json:"protocol"`
		IsOfficial  bool        `json:"isOfficial"`
		IsDeleted   bool        `json:"isDeleted"`
		IsDefault   bool        `json:"isDefault"`
		IsDemo      bool        `json:"isDemo"`
		Name        string      `json:"name"`
		Description interface{} `json:"description"`
		Secret      string      `json:"secret"`
		Identifier  string      `json:"identifier"`
		Jwks        struct {
			Keys []struct {
				E   string `json:"e"`
				N   string `json:"n"`
				D   string `json:"d"`
				P   string `json:"p"`
				Q   string `json:"q"`
				Dp  string `json:"dp"`
				Dq  string `json:"dq"`
				Qi  string `json:"qi"`
				Kty string `json:"kty"`
				Kid string `json:"kid"`
				Alg string `json:"alg"`
				Use string `json:"use"`
			} `json:"keys"`
		} `json:"jwks"`
		SsoPageCustomizationSettings interface{}   `json:"ssoPageCustomizationSettings"`
		Logo                         string        `json:"logo"`
		RedirectUris                 []string      `json:"redirectUris"`
		LogoutRedirectUris           []interface{} `json:"logoutRedirectUris"`
		InitLoginURL                 interface{}   `json:"initLoginUrl"`
		OidcProviderEnabled          bool          `json:"oidcProviderEnabled"`
		OauthProviderEnabled         bool          `json:"oauthProviderEnabled"`
		SamlProviderEnabled          bool          `json:"samlProviderEnabled"`
		CasProviderEnabled           bool          `json:"casProviderEnabled"`
		RegisterDisabled             bool          `json:"registerDisabled"`
		LoginTabs                    []string      `json:"loginTabs"`
		PasswordTabConfig            struct {
			EnabledLoginMethods []string `json:"enabledLoginMethods"`
		} `json:"passwordTabConfig"`
		DefaultLoginTab      string        `json:"defaultLoginTab"`
		RegisterTabs         []string      `json:"registerTabs"`
		DefaultRegisterTab   string        `json:"defaultRegisterTab"`
		ExtendsFieldsEnabled bool          `json:"extendsFieldsEnabled"`
		ExtendsFields        []interface{} `json:"extendsFields"`
		ComplateFiledsPlace  []interface{} `json:"complateFiledsPlace"`
		SkipComplateFileds   bool          `json:"skipComplateFileds"`
		Ext                  interface{}   `json:"ext"`
		CSS                  interface{}   `json:"css"`
		OidcConfig           struct {
			GrantTypes               []string      `json:"grant_types"`
			ResponseTypes            []string      `json:"response_types"`
			IDTokenSignedResponseAlg string        `json:"id_token_signed_response_alg"`
			TokenEndpointAuthMethod  string        `json:"token_endpoint_auth_method"`
			AuthorizationCodeExpire  int           `json:"authorization_code_expire"`
			IDTokenExpire            int           `json:"id_token_expire"`
			AccessTokenExpire        int           `json:"access_token_expire"`
			RefreshTokenExpire       int           `json:"refresh_token_expire"`
			CasExpire                int           `json:"cas_expire"`
			SkipConsent              bool          `json:"skip_consent"`
			RedirectUris             []string      `json:"redirect_uris"`
			PostLogoutRedirectUris   []interface{} `json:"post_logout_redirect_uris"`
			ClientID                 string        `json:"client_id"`
			ClientSecret             string        `json:"client_secret"`
		} `json:"oidcConfig"`
		OidcJWEConfig interface{} `json:"oidcJWEConfig"`
		SamlConfig    interface{} `json:"samlConfig"`
		OauthConfig   struct {
			ID                              string   `json:"id"`
			ClientSecret                    string   `json:"client_secret"`
			RedirectUris                    []string `json:"redirect_uris"`
			Grants                          []string `json:"grants"`
			AccessTokenLifetime             int      `json:"access_token_lifetime"`
			RefreshTokenLifetime            int      `json:"refresh_token_lifetime"`
			IntrospectionEndpointAuthMethod string   `json:"introspection_endpoint_auth_method"`
			RevocationEndpointAuthMethod    string   `json:"revocation_endpoint_auth_method"`
		} `json:"oauthConfig"`
		CasConfig                   interface{} `json:"casConfig"`
		ShowAuthorizationPage       bool        `json:"showAuthorizationPage"`
		EnableSubAccount            bool        `json:"enableSubAccount"`
		EnableDeviceMutualExclusion bool        `json:"enableDeviceMutualExclusion"`
		LoginRequireEmailVerified   bool        `json:"loginRequireEmailVerified"`
		AgreementEnabled            bool        `json:"agreementEnabled"`
		IsIntegrate                 bool        `json:"isIntegrate"`
		SsoEnabled                  bool        `json:"ssoEnabled"`
		Template                    interface{} `json:"template"`
		SkipMfa                     bool        `json:"skipMfa"`
		CasExpireBaseBrowser        bool        `json:"casExpireBaseBrowser"`
		AppType                     string      `json:"appType"`
		PermissionStrategy          struct {
			Enabled         bool        `json:"enabled"`
			DefaultStrategy string      `json:"defaultStrategy"`
			AllowPolicyID   interface{} `json:"allowPolicyId"`
			DenyPolicyID    interface{} `json:"denyPolicyId"`
		} `json:"permissionStrategy"`
	} `json:"apps"`
}

type TenantMembersResponse

type TenantMembersResponse struct {
	ListTotal int64 `json:"listTotal"`
	List      []struct {
		ID       string `json:"id"`
		TenantID string `json:"tenantId"`
		User     *User  `json:"user"`
	} `json:"list"`
}

type TenantSsoPageCustomizationSettings

type TenantSsoPageCustomizationSettings struct {
	AutoRegisterThenLogin bool `json:"autoRegisterThenLogin,omitempty"`
	HideForgetPassword    bool `json:"hideForgetPassword,omitempty"`
	HideIdp               bool `json:"hideIdp,omitempty"`
	HideSocialLogin       bool `json:"hideSocialLogin,omitempty"`
}

type UpdateExtIdpConnectionRequest

type UpdateExtIdpConnectionRequest struct {
	DisplayName     string      `json:"displayName"`
	Fields          interface{} `json:"fields"`
	UserMatchFields []string    `json:"userMatchFields,omitempty"`
}

type UpdateExtIdpRequest

type UpdateExtIdpRequest struct {
	Name string `json:"name"`
}

type UpdateFunctionInput

type UpdateFunctionInput struct {
	Id          string  `json:"id"`
	Name        *string `json:"name"`
	SourceCode  *string `json:"sourceCode"`
	Description *string `json:"description"`
	Url         *string `json:"url"`
}

type UpdateGroupsRequest

type UpdateGroupsRequest struct {
	Code        string  `json:"code"`
	NewCode     *string `json:"newCode,omitempty"`
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
}

type UpdateOrgNodeRequest

type UpdateOrgNodeRequest struct {
	Id          string  `json:"id"`
	Name        *string `json:"name,omitempty"`
	Code        *string `json:"code,omitempty"`
	Description *string `json:"description,omitempty"`
}

type UpdatePolicyResponse

type UpdatePolicyResponse struct {
	Namespace   string            `json:"namespace"`
	Code        string            `json:"code"`
	IsDefault   bool              `json:"isDefault"`
	Description string            `json:"description"`
	Statements  []PolicyStatement `json:"statements"`
	CreatedAt   time.Time         `json:"createdAt"`
	UpdatedAt   time.Time         `json:"updatedAt"`
}

type UpdateResourceRequest

type UpdateResourceRequest struct {
	Actions       []ActionsModel `json:"actions,omitempty"`
	Type          string         `json:"type,omitempty"`
	Description   *string        `json:"description,omitempty"`
	ApiIdentifier *string        `json:"apiIdentifier,omitempty"`
	Namespace     string         `json:"namespace,omitempty"`
}

type UpdateRoleRequest

type UpdateRoleRequest struct {
	Code        string  `json:"code"`
	NewCode     *string `json:"newCode,omitempty"`
	Namespace   *string `json:"namespace,omitempty"`
	Description *string `json:"description,omitempty"`
	ParentCode  *string `json:"parent,omitempty"`
}

type UpdateUserInput

type UpdateUserInput struct {
	Email             *string `json:"email,omitempty"`
	Unionid           *string `json:"unionid,omitempty"`
	Openid            *string `json:"openid,omitempty"`
	EmailVerified     *bool   `json:"emailVerified,omitempty"`
	Phone             *string `json:"phone,omitempty"`
	PhoneVerified     *bool   `json:"phoneVerified,omitempty"`
	Username          *string `json:"username,omitempty"`
	Nickname          *string `json:"nickname,omitempty"`
	Password          *string `json:"password,omitempty"`
	Photo             *string `json:"photo,omitempty"`
	Company           *string `json:"company,omitempty"`
	Browser           *string `json:"browser,omitempty"`
	Device            *string `json:"device,omitempty"`
	Oauth             *string `json:"oauth,omitempty"`
	TokenExpiredAt    *string `json:"tokenExpiredAt,omitempty"`
	LoginsCount       *int64  `json:"loginsCount,omitempty"`
	LastLogin         *string `json:"lastLogin,omitempty"`
	LastIP            *string `json:"lastIP,omitempty"`
	Blocked           *bool   `json:"blocked,omitempty"`
	Name              *string `json:"name,omitempty"`
	GivenName         *string `json:"givenName,omitempty"`
	FamilyName        *string `json:"familyName,omitempty"`
	MiddleName        *string `json:"middleName,omitempty"`
	Profile           *string `json:"profile,omitempty"`
	PreferredUsername *string `json:"preferredUsername"`
	Website           *string `json:"website,omitempty"`
	Gender            *string `json:"gender,omitempty"`
	Birthdate         *string `json:"birthdate,omitempty"`
	Zoneinfo          *string `json:"zoneinfo,omitempty"`
	Locale            *string `json:"locale,omitempty"`
	Address           *string `json:"address,omitempty"`
	Formatted         *string `json:"formatted,omitempty"`
	StreetAddress     *string `json:"streetAddress,omitempty"`
	Locality          *string `json:"locality,omitempty"`
	Region            *string `json:"region,omitempty"`
	PostalCode        *string `json:"postalCode,omitempty"`
	City              *string `json:"city,omitempty"`
	Province          *string `json:"province,omitempty"`
	Country           *string `json:"country,omitempty"`
	ExternalId        *string `json:"externalId,omitempty"`
}

type UpdateUserpoolInput

type UpdateUserpoolInput struct {
	Name                      *string                            `json:"name,omitempty"`
	Domain                    *string                            `json:"domain,omitempty"`
	Description               *string                            `json:"description,omitempty"`
	UserpoolTypes             []string                           `json:"userpoolTypes,omitempty"`
	EmailVerifiedDefault      *bool                              `json:"emailVerifiedDefault,omitempty"`
	SendWelcomeEmail          *bool                              `json:"sendWelcomeEmail,omitempty"`
	RegisterDisabled          *bool                              `json:"registerDisabled,omitempty"`
	AppSsoEnabled             *bool                              `json:"appSsoEnabled,omitempty"`
	AllowedOrigins            *string                            `json:"allowedOrigins,omitempty"`
	TokenExpiresAfter         *int64                             `json:"tokenExpiresAfter,omitempty"`
	FrequentRegisterCheck     *FrequentRegisterCheckConfigInput  `json:"frequentRegisterCheck,omitempty"`
	LoginFailCheck            *LoginFailCheckConfigInput         `json:"loginFailCheck,omitempty"`
	LoginFailStrategy         *string                            `json:"loginFailStrategy,omitempty"`
	LoginPasswordFailCheck    *LoginPasswordFailCheckConfigInput `json:"loginPasswordFailCheck,omitempty"`
	ChangePhoneStrategy       *ChangePhoneStrategyInput          `json:"changePhoneStrategy,omitempty"`
	ChangeEmailStrategy       *ChangeEmailStrategyInput          `json:"changeEmailStrategy,omitempty"`
	QrcodeLoginStrategy       *QrcodeLoginStrategyInput          `json:"qrcodeLoginStrategy,omitempty"`
	App2WxappLoginStrategy    *App2WxappLoginStrategyInput       `json:"app2WxappLoginStrategy,omitempty"`
	Whitelist                 *RegisterWhiteListConfigInput      `json:"whitelist,omitempty"`
	CustomSMSProvider         *CustomSMSProviderInput            `json:"customSMSProvider,omitempty"`
	LoginRequireEmailVerified *bool                              `json:"loginRequireEmailVerified,omitempty"`
	VerifyCodeLength          *int64                             `json:"verifyCodeLength,omitempty"`
}

type User

type User struct {
	Id                  string                        `json:"id"`
	Arn                 string                        `json:"arn"`
	Status              *EnumUserStatus               `json:"status"`
	UserPoolId          string                        `json:"userPoolId"`
	Username            *string                       `json:"username"`
	Email               *string                       `json:"email"`
	EmailVerified       *bool                         `json:"emailVerified"`
	Phone               *string                       `json:"phone"`
	PhoneVerified       *bool                         `json:"phoneVerified"`
	Unionid             *string                       `json:"unionid"`
	Openid              *string                       `json:"openid"`
	Identities          []*Identity                   `json:"identities"`
	Nickname            *string                       `json:"nickname"`
	RegisterSource      []string                      `json:"registerSource"`
	Photo               *string                       `json:"photo"`
	Password            *string                       `json:"password"`
	Oauth               *string                       `json:"oauth"`
	Token               *string                       `json:"token"`
	TokenExpiredAt      *string                       `json:"tokenExpiredAt"`
	LoginsCount         *int64                        `json:"loginsCount"`
	LastLogin           *string                       `json:"lastLogin"`
	LastIP              *string                       `json:"lastIP"`
	SignedUp            *string                       `json:"signedUp"`
	Blocked             *bool                         `json:"blocked"`
	IsDeleted           *bool                         `json:"isDeleted"`
	Device              *string                       `json:"device"`
	Browser             *string                       `json:"browser"`
	Company             *string                       `json:"company"`
	Name                *string                       `json:"name"`
	GivenName           *string                       `json:"givenName"`
	FamilyName          *string                       `json:"familyName"`
	MiddleName          *string                       `json:"middleName"`
	Profile             *string                       `json:"profile"`
	PreferredUsername   *string                       `json:"preferredUsername"`
	Website             *string                       `json:"website"`
	Gender              *string                       `json:"gender"`
	Birthdate           *string                       `json:"birthdate"`
	Zoneinfo            *string                       `json:"zoneinfo"`
	Locale              *string                       `json:"locale"`
	Address             *string                       `json:"address"`
	Formatted           *string                       `json:"formatted"`
	StreetAddress       *string                       `json:"streetAddress"`
	Locality            *string                       `json:"locality"`
	Region              *string                       `json:"region"`
	PostalCode          *string                       `json:"postalCode"`
	City                *string                       `json:"city"`
	Province            *string                       `json:"province"`
	Country             *string                       `json:"country"`
	CreatedAt           *string                       `json:"createdAt"`
	UpdatedAt           *string                       `json:"updatedAt"`
	Roles               *PaginatedRoles               `json:"roles"`
	Groups              *PaginatedGroups              `json:"groups"`
	Departments         *PaginatedDepartments         `json:"departments"`
	AuthorizedResources *PaginatedAuthorizedResources `json:"authorizedResources"`
	ExternalId          *string                       `json:"externalId"`
	CustomData          []*UserCustomData             `json:"customData"`
}

type UserCustomData

type UserCustomData struct {
	Key      string          `json:"key,omitempty"`
	Value    *string         `json:"value,omitempty"`
	Label    *string         `json:"label,omitempty"`
	DataType EnumUDFDataType `json:"dataType,omitempty"`
}

type UserDdfInput

type UserDdfInput struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type UserDefinedData

type UserDefinedData struct {
	Key      string          `json:"key,omitempty"`
	DataType EnumUDFDataType `json:"dataType,omitempty"`
	Value    string          `json:"value,omitempty"`
	Label    *string         `json:"label,omitempty"`
}

type UserDefinedDataInput

type UserDefinedDataInput struct {
	Key   string  `json:"key,omitempty"`
	Value *string `json:"value,omitempty"`
}

type UserDefinedDataMap

type UserDefinedDataMap struct {
	TargetId string            `json:"targetId"`
	Data     []UserDefinedData `json:"data"`
}

type UserDefinedField

type UserDefinedField struct {
	TargetType EnumUDFTargetType `json:"targetType"`
	DataType   EnumUDFDataType   `json:"dataType"`
	Key        string            `json:"key"`
	Label      *string           `json:"label"`
	Options    *string           `json:"options"`
}

type UserDepartment

type UserDepartment struct {
	Department       Node    `json:"department"`
	IsMainDepartment bool    `json:"isMainDepartment"`
	JoinedAt         *string `json:"joinedAt"`
}

type UserDepartments

type UserDepartments struct {
	Departments *PaginatedDepartments `json:"departments"`
}

type UserDepartmentsData

type UserDepartmentsData struct {
	User UserDepartments `json:"user"`
}

type UserDetailData

type UserDetailData struct {
	ThirdPartyIdentity User `json:"thirdPartyIdentity"`
}

type UserDetailResponse

type UserDetailResponse struct {
	Message string `json:"message"`
	Code    int64  `json:"code"`
	Data    User   `json:"data"`
}

type UserOrgs

type UserOrgs []struct {
	Type            string        `json:"type"`
	Id              string        `json:"id"`
	CreatedAt       time.Time     `json:"createdAt"`
	UpdatedAt       time.Time     `json:"updatedAt"`
	UserPoolId      string        `json:"userPoolId"`
	RootNodeId      string        `json:"rootNodeId,omitempty"`
	Logo            string        `json:"logo"`
	OrgId           string        `json:"orgId,omitempty"`
	Name            string        `json:"name,omitempty"`
	NameI18N        string        `json:"nameI18n"`
	Description     *string       `json:"description,omitempty"`
	DescriptionI18N string        `json:"descriptionI18n"`
	Order           string        `json:"order"`
	Code            *string       `json:"code,omitempty"`
	LeaderUserId    string        `json:"leaderUserId"`
	Source          []interface{} `json:"source,omitempty"`
	DataVersion     interface{}   `json:"dataVersion"`
	SourceData      interface{}   `json:"sourceData"`
}

type UserPool

type UserPool struct {
	Id                               string                        `json:"id"`
	Name                             string                        `json:"name"`
	Domain                           string                        `json:"domain"`
	Description                      *string                       `json:"description"`
	Secret                           string                        `json:"secret"`
	JwtSecret                        string                        `json:"jwtSecret"`
	OwnerId                          *string                       `json:"ownerId"`
	UserpoolTypes                    []UserPoolType                `json:"userpoolTypes"`
	CreatedAt                        *string                       `json:"createdAt"`
	UpdatedAt                        *string                       `json:"updatedAt"`
	EmailVerifiedDefault             bool                          `json:"emailVerifiedDefault"`
	SendWelcomeEmail                 bool                          `json:"sendWelcomeEmail"`
	RegisterDisabled                 bool                          `json:"registerDisabled"`
	AppSsoEnabled                    bool                          `json:"appSsoEnabled"`
	ShowWxQRCodeWhenRegisterDisabled *bool                         `json:"showWxQRCodeWhenRegisterDisabled"`
	AllowedOrigins                   *string                       `json:"allowedOrigins"`
	TokenExpiresAfter                *int64                        `json:"tokenExpiresAfter"`
	IsDeleted                        *bool                         `json:"isDeleted"`
	FrequentRegisterCheck            *FrequentRegisterCheckConfig  `json:"frequentRegisterCheck"`
	LoginFailCheck                   *LoginFailCheckConfig         `json:"loginFailCheck"`
	LoginPasswordFailCheck           *LoginPasswordFailCheckConfig `json:"loginPasswordFailCheck"`
	LoginFailStrategy                *string                       `json:"loginFailStrategy"`
	ChangePhoneStrategy              *ChangePhoneStrategy          `json:"changePhoneStrategy"`
	ChangeEmailStrategy              *ChangeEmailStrategy          `json:"changeEmailStrategy"`
	QrcodeLoginStrategy              *QrcodeLoginStrategy          `json:"qrcodeLoginStrategy"`
	App2WxappLoginStrategy           *App2WxappLoginStrategy       `json:"app2WxappLoginStrategy"`
	Whitelist                        *RegisterWhiteListConfig      `json:"whitelist"`
	CustomSMSProvider                *CustomSMSProvider            `json:"customSMSProvider"`
	PackageType                      *int64                        `json:"packageType"`
	UseCustomUserStore               *bool                         `json:"useCustomUserStore"`
	LoginRequireEmailVerified        *bool                         `json:"loginRequireEmailVerified"`
	VerifyCodeLength                 *int64                        `json:"verifyCodeLength"`
}

type UserPoolEnv

type UserPoolEnv struct {
	UserPoolId string    `json:"userPoolId"`
	Key        string    `json:"key"`
	CreatedAt  time.Time `json:"createdAt"`
	UpdatedAt  time.Time `json:"updatedAt"`
	Id         string    `json:"id"`
}

type UserPoolType

type UserPoolType struct {
	Code        *string   `json:"code"`
	Name        *string   `json:"name"`
	Description *string   `json:"description"`
	Image       *string   `json:"image"`
	Sdks        []*string `json:"sdks"`
}

type UserRoleOptRequest

type UserRoleOptRequest struct {
	UserIds   []string `json:"userIds"`
	RoleCodes []string `json:"roleCodes"`
	Namespace *string  `json:"namespace"`
}

type Users

type Users struct {
	Users PaginatedUsers `json:"users"`
}

type ValidateTokenRequest

type ValidateTokenRequest struct {
	AccessToken string `json:"accessToken"`
	IdToken     string `json:"idToken"`
}

type WhiteList

type WhiteList struct {
	CreatedAt *string `json:"createdAt"`
	UpdatedAt *string `json:"updatedAt"`
	Value     string  `json:"value"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL