Help us shape the future of Go! Take the 2026 Go Developer Survey

reportingclientmodels

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// RestapiModerationRuleRequestCategoryCHAT captures enum value "CHAT"
	RestapiModerationRuleRequestCategoryCHAT string = "CHAT"

	// RestapiModerationRuleRequestCategoryEXTENSION captures enum value "EXTENSION"
	RestapiModerationRuleRequestCategoryEXTENSION string = "EXTENSION"

	// RestapiModerationRuleRequestCategoryUGC captures enum value "UGC"
	RestapiModerationRuleRequestCategoryUGC string = "UGC"

	// RestapiModerationRuleRequestCategoryUSER captures enum value "USER"
	RestapiModerationRuleRequestCategoryUSER string = "USER"
)
View Source
const (

	// RestapiReportResponseCategoryCHAT captures enum value "CHAT"
	RestapiReportResponseCategoryCHAT string = "CHAT"

	// RestapiReportResponseCategoryEXTENSION captures enum value "EXTENSION"
	RestapiReportResponseCategoryEXTENSION string = "EXTENSION"

	// RestapiReportResponseCategoryUGC captures enum value "UGC"
	RestapiReportResponseCategoryUGC string = "UGC"

	// RestapiReportResponseCategoryUSER captures enum value "USER"
	RestapiReportResponseCategoryUSER string = "USER"
)
View Source
const (

	// RestapiSubmitReportRequestCategoryCHAT captures enum value "CHAT"
	RestapiSubmitReportRequestCategoryCHAT string = "CHAT"

	// RestapiSubmitReportRequestCategoryEXTENSION captures enum value "EXTENSION"
	RestapiSubmitReportRequestCategoryEXTENSION string = "EXTENSION"

	// RestapiSubmitReportRequestCategoryUGC captures enum value "UGC"
	RestapiSubmitReportRequestCategoryUGC string = "UGC"

	// RestapiSubmitReportRequestCategoryUSER captures enum value "USER"
	RestapiSubmitReportRequestCategoryUSER string = "USER"
)
View Source
const (

	// RestapiSubmitReportResponseCategoryCHAT captures enum value "CHAT"
	RestapiSubmitReportResponseCategoryCHAT string = "CHAT"

	// RestapiSubmitReportResponseCategoryEXTENSION captures enum value "EXTENSION"
	RestapiSubmitReportResponseCategoryEXTENSION string = "EXTENSION"

	// RestapiSubmitReportResponseCategoryUGC captures enum value "UGC"
	RestapiSubmitReportResponseCategoryUGC string = "UGC"

	// RestapiSubmitReportResponseCategoryUSER captures enum value "USER"
	RestapiSubmitReportResponseCategoryUSER string = "USER"
)
View Source
const (

	// RestapiSubmitReportResponseStatusAUTOMODERATED captures enum value "AUTO_MODERATED"
	RestapiSubmitReportResponseStatusAUTOMODERATED string = "AUTO_MODERATED"

	// RestapiSubmitReportResponseStatusCLOSED captures enum value "CLOSED"
	RestapiSubmitReportResponseStatusCLOSED string = "CLOSED"

	// RestapiSubmitReportResponseStatusOPEN captures enum value "OPEN"
	RestapiSubmitReportResponseStatusOPEN string = "OPEN"

	// RestapiSubmitReportResponseStatusUNKNOWN captures enum value "UNKNOWN"
	RestapiSubmitReportResponseStatusUNKNOWN string = "UNKNOWN"
)
View Source
const (

	// RestapiTicketResponseCategoryCHAT captures enum value "CHAT"
	RestapiTicketResponseCategoryCHAT string = "CHAT"

	// RestapiTicketResponseCategoryEXTENSION captures enum value "EXTENSION"
	RestapiTicketResponseCategoryEXTENSION string = "EXTENSION"

	// RestapiTicketResponseCategoryUGC captures enum value "UGC"
	RestapiTicketResponseCategoryUGC string = "UGC"

	// RestapiTicketResponseCategoryUSER captures enum value "USER"
	RestapiTicketResponseCategoryUSER string = "USER"
)
View Source
const (

	// RestapiTicketResponseStatusAUTOMODERATED captures enum value "AUTO_MODERATED"
	RestapiTicketResponseStatusAUTOMODERATED string = "AUTO_MODERATED"

	// RestapiTicketResponseStatusCLOSED captures enum value "CLOSED"
	RestapiTicketResponseStatusCLOSED string = "CLOSED"

	// RestapiTicketResponseStatusOPEN captures enum value "OPEN"
	RestapiTicketResponseStatusOPEN string = "OPEN"

	// RestapiTicketResponseStatusUNKNOWN captures enum value "UNKNOWN"
	RestapiTicketResponseStatusUNKNOWN string = "UNKNOWN"
)
View Source
const (

	// RestapiUpdateTicketResolutionsRequestStatusAUTOMODERATED captures enum value "AUTO_MODERATED"
	RestapiUpdateTicketResolutionsRequestStatusAUTOMODERATED string = "AUTO_MODERATED"

	// RestapiUpdateTicketResolutionsRequestStatusCLOSED captures enum value "CLOSED"
	RestapiUpdateTicketResolutionsRequestStatusCLOSED string = "CLOSED"

	// RestapiUpdateTicketResolutionsRequestStatusOPEN captures enum value "OPEN"
	RestapiUpdateTicketResolutionsRequestStatusOPEN string = "OPEN"

	// RestapiUpdateTicketResolutionsRequestStatusUNKNOWN captures enum value "UNKNOWN"
	RestapiUpdateTicketResolutionsRequestStatusUNKNOWN string = "UNKNOWN"
)
View Source
const (

	// RestapiModerationRuleRequestActionHIDECONTENT captures enum value "HIDECONTENT"
	RestapiModerationRuleRequestActionHIDECONTENT string = "HIDECONTENT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	Code    string
	Message string
}

func (*ApiError) Error

func (e *ApiError) Error() string

func (*ApiError) IsAvailable

func (e *ApiError) IsAvailable() bool

type ApiResponse

type ApiResponse struct {
	IsSuccess   bool
	StatusCode  int
	ContentType *string
	Error       *ApiError
}

type RestapiActionAPIRequest

type RestapiActionAPIRequest struct {

	// Auto mod action ID
	// Required: true
	ActionID *string `json:"actionId"`

	// Auto mod action display name
	// Required: true
	ActionName *string `json:"actionName"`

	// Kafka publish event name
	// Required: true
	EventName *string `json:"eventName"`
}

RestapiActionAPIRequest Restapi action api request

swagger:model Restapi action api request.

func (*RestapiActionAPIRequest) MarshalBinary

func (m *RestapiActionAPIRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiActionAPIRequest) UnmarshalBinary

func (m *RestapiActionAPIRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiActionAPIRequest) Validate

func (m *RestapiActionAPIRequest) Validate(formats strfmt.Registry) error

Validate validates this Restapi action api request

type RestapiActionAPIResponse

type RestapiActionAPIResponse struct {

	// actionid
	// Required: true
	ActionID *string `json:"actionId"`

	// actionname
	// Required: true
	ActionName *string `json:"actionName"`

	// eventname
	// Required: true
	EventName *string `json:"eventName"`
}

RestapiActionAPIResponse Restapi action api response

swagger:model Restapi action api response.

func (*RestapiActionAPIResponse) MarshalBinary

func (m *RestapiActionAPIResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiActionAPIResponse) UnmarshalBinary

func (m *RestapiActionAPIResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiActionAPIResponse) Validate

func (m *RestapiActionAPIResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi action api response

type RestapiActionListAPIResponse

type RestapiActionListAPIResponse struct {

	// data
	// Required: true
	Data []*RestapiActionAPIResponse `json:"data"`
}

RestapiActionListAPIResponse Restapi action list api response

swagger:model Restapi action list api response.

func (*RestapiActionListAPIResponse) MarshalBinary

func (m *RestapiActionListAPIResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiActionListAPIResponse) UnmarshalBinary

func (m *RestapiActionListAPIResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiActionListAPIResponse) Validate

func (m *RestapiActionListAPIResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi action list api response

type RestapiAdminAllReasonsResponse

type RestapiAdminAllReasonsResponse struct {

	// data
	// Required: true
	Data []*RestapiPublicReasonResponse `json:"data"`
}

RestapiAdminAllReasonsResponse Restapi admin all reasons response

swagger:model Restapi admin all reasons response.

func (*RestapiAdminAllReasonsResponse) MarshalBinary

func (m *RestapiAdminAllReasonsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiAdminAllReasonsResponse) UnmarshalBinary

func (m *RestapiAdminAllReasonsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiAdminAllReasonsResponse) Validate

func (m *RestapiAdminAllReasonsResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi admin all reasons response

type RestapiAdminReasonListResponse

type RestapiAdminReasonListResponse struct {

	// data
	// Required: true
	Data []*RestapiAdminReasonResponse `json:"data"`

	// paging
	// Required: true
	Paging *RestapiPagination `json:"paging"`
}

RestapiAdminReasonListResponse Restapi admin reason list response

swagger:model Restapi admin reason list response.

func (*RestapiAdminReasonListResponse) MarshalBinary

func (m *RestapiAdminReasonListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiAdminReasonListResponse) UnmarshalBinary

func (m *RestapiAdminReasonListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiAdminReasonListResponse) Validate

func (m *RestapiAdminReasonListResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi admin reason list response

type RestapiAdminReasonResponse

type RestapiAdminReasonResponse struct {

	// createdat
	// Required: true
	CreatedAt *string `json:"createdAt"`

	// description
	// Required: true
	Description *string `json:"description"`

	// groups
	Groups []*RestapiPublicReasonGroupResponse `json:"groups,omitempty"`

	// id
	// Required: true
	ID *string `json:"id"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// title
	// Required: true
	Title *string `json:"title"`

	// updatedat
	// Required: true
	UpdatedAt *string `json:"updatedAt"`
}

RestapiAdminReasonResponse Restapi admin reason response

swagger:model Restapi admin reason response.

func (*RestapiAdminReasonResponse) MarshalBinary

func (m *RestapiAdminReasonResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiAdminReasonResponse) UnmarshalBinary

func (m *RestapiAdminReasonResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiAdminReasonResponse) Validate

func (m *RestapiAdminReasonResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi admin reason response

type RestapiBanAccountActionRequest

type RestapiBanAccountActionRequest struct {

	// Ban comment
	Comment string `json:"comment,omitempty"`

	// Ban duration in minutes, -1 means unlimited duration
	// Required: true
	// Format: int32
	Duration *int32 `json:"duration"`

	// Ban reason
	// Required: true
	Reason *string `json:"reason"`

	// Skip notification for banned user (e.g. email notification)
	// Required: true
	SkipNotif *bool `json:"skipNotif"`

	// Ban type
	// Required: true
	Type *string `json:"type"`
}

RestapiBanAccountActionRequest Restapi ban account action request

swagger:model Restapi ban account action request.

func (*RestapiBanAccountActionRequest) MarshalBinary

func (m *RestapiBanAccountActionRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiBanAccountActionRequest) UnmarshalBinary

func (m *RestapiBanAccountActionRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiBanAccountActionRequest) Validate

func (m *RestapiBanAccountActionRequest) Validate(formats strfmt.Registry) error

Validate validates this Restapi ban account action request

type RestapiBanAccountActionResponse

type RestapiBanAccountActionResponse struct {

	// Ban comment
	Comment string `json:"comment,omitempty"`

	// Ban duration in minutes, -1 means unlimited duration
	// Required: true
	// Format: int32
	Duration *int32 `json:"duration"`

	// Ban reason
	// Required: true
	Reason *string `json:"reason"`

	// Skip notification for banned user (e.g. email notification)
	// Required: true
	SkipNotif *bool `json:"skipNotif"`

	// Ban type
	// Required: true
	Type *string `json:"type"`
}

RestapiBanAccountActionResponse Restapi ban account action response

swagger:model Restapi ban account action response.

func (*RestapiBanAccountActionResponse) MarshalBinary

func (m *RestapiBanAccountActionResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiBanAccountActionResponse) UnmarshalBinary

func (m *RestapiBanAccountActionResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiBanAccountActionResponse) Validate

Validate validates this Restapi ban account action response

type RestapiCategoryLimit

type RestapiCategoryLimit struct {

	// extensioncategory
	ExtensionCategory string `json:"extensionCategory,omitempty"`

	// must between 1 to 2147483647
	// Required: true
	// Format: int32
	MaxReportPerTicket *int32 `json:"maxReportPerTicket"`

	// name
	// Required: true
	Name *string `json:"name"`
}

RestapiCategoryLimit Restapi category limit

swagger:model Restapi category limit.

func (*RestapiCategoryLimit) MarshalBinary

func (m *RestapiCategoryLimit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiCategoryLimit) UnmarshalBinary

func (m *RestapiCategoryLimit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiCategoryLimit) Validate

func (m *RestapiCategoryLimit) Validate(formats strfmt.Registry) error

Validate validates this Restapi category limit

type RestapiConfigResponse

type RestapiConfigResponse struct {

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// reportinglimit
	// Required: true
	ReportingLimit *RestapiReportingLimit `json:"reportingLimit"`

	// updatedat
	// Required: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt"`
}

RestapiConfigResponse Restapi config response

swagger:model Restapi config response.

func (*RestapiConfigResponse) MarshalBinary

func (m *RestapiConfigResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiConfigResponse) UnmarshalBinary

func (m *RestapiConfigResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiConfigResponse) Validate

func (m *RestapiConfigResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi config response

type RestapiCreateReasonGroupRequest

type RestapiCreateReasonGroupRequest struct {

	// reasonids
	ReasonIds []string `json:"reasonIds,omitempty"`

	// max 256 chars
	// Required: true
	Title *string `json:"title"`
}

RestapiCreateReasonGroupRequest Restapi create reason group request

swagger:model Restapi create reason group request.

func (*RestapiCreateReasonGroupRequest) MarshalBinary

func (m *RestapiCreateReasonGroupRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiCreateReasonGroupRequest) UnmarshalBinary

func (m *RestapiCreateReasonGroupRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiCreateReasonGroupRequest) Validate

Validate validates this Restapi create reason group request

type RestapiCreateReasonRequest

type RestapiCreateReasonRequest struct {

	// max 280 chars
	// Required: true
	Description *string `json:"description"`

	// groupids
	// Required: true
	GroupIds []string `json:"groupIds"`

	// max 256 chars
	// Required: true
	Title *string `json:"title"`
}

RestapiCreateReasonRequest Restapi create reason request

swagger:model Restapi create reason request.

func (*RestapiCreateReasonRequest) MarshalBinary

func (m *RestapiCreateReasonRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiCreateReasonRequest) UnmarshalBinary

func (m *RestapiCreateReasonRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiCreateReasonRequest) Validate

func (m *RestapiCreateReasonRequest) Validate(formats strfmt.Registry) error

Validate validates this Restapi create reason request

type RestapiErrorResponse

type RestapiErrorResponse struct {

	// errorcode
	// Required: true
	// Format: int32
	ErrorCode *int32 `json:"errorCode"`

	// errormessage
	// Required: true
	ErrorMessage *string `json:"errorMessage"`
}

RestapiErrorResponse Restapi error response

swagger:model Restapi error response.

func (*RestapiErrorResponse) MarshalBinary

func (m *RestapiErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiErrorResponse) TranslateToApiError

func (m *RestapiErrorResponse) TranslateToApiError() (*ApiError, error)

func (*RestapiErrorResponse) UnmarshalBinary

func (m *RestapiErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiErrorResponse) Validate

func (m *RestapiErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi error response

type RestapiExtensionCategoryAPIRequest

type RestapiExtensionCategoryAPIRequest struct {

	// Report extension category, consist of custom services sub-category (eg. salesItem,challenge,etc)
	// Required: true
	ExtensionCategory *string `json:"extensionCategory"`

	// Report extension category display name)
	// Required: true
	ExtensionCategoryName *string `json:"extensionCategoryName"`

	// Extension category service source (eg. service source 'marketplace' for extension category 'salesItem')
	// Required: true
	ServiceSource *string `json:"serviceSource"`
}

RestapiExtensionCategoryAPIRequest Restapi extension category api request

swagger:model Restapi extension category api request.

func (*RestapiExtensionCategoryAPIRequest) MarshalBinary

func (m *RestapiExtensionCategoryAPIRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiExtensionCategoryAPIRequest) UnmarshalBinary

func (m *RestapiExtensionCategoryAPIRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiExtensionCategoryAPIRequest) Validate

Validate validates this Restapi extension category api request

type RestapiExtensionCategoryAPIResponse

type RestapiExtensionCategoryAPIResponse struct {

	// extensioncategory
	// Required: true
	ExtensionCategory *string `json:"extensionCategory"`

	// extensioncategoryname
	// Required: true
	ExtensionCategoryName *string `json:"extensionCategoryName"`

	// servicesource
	// Required: true
	ServiceSource *string `json:"serviceSource"`
}

RestapiExtensionCategoryAPIResponse Restapi extension category api response

swagger:model Restapi extension category api response.

func (*RestapiExtensionCategoryAPIResponse) MarshalBinary

func (m *RestapiExtensionCategoryAPIResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiExtensionCategoryAPIResponse) UnmarshalBinary

func (m *RestapiExtensionCategoryAPIResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiExtensionCategoryAPIResponse) Validate

Validate validates this Restapi extension category api response

type RestapiExtensionCategoryListAPIResponse

type RestapiExtensionCategoryListAPIResponse struct {

	// data
	// Required: true
	Data []*RestapiExtensionCategoryAPIResponse `json:"data"`
}

RestapiExtensionCategoryListAPIResponse Restapi extension category list api response

swagger:model Restapi extension category list api response.

func (*RestapiExtensionCategoryListAPIResponse) MarshalBinary

func (m *RestapiExtensionCategoryListAPIResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiExtensionCategoryListAPIResponse) UnmarshalBinary

func (m *RestapiExtensionCategoryListAPIResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiExtensionCategoryListAPIResponse) Validate

Validate validates this Restapi extension category list api response

type RestapiModerationRuleActionsRequest

type RestapiModerationRuleActionsRequest struct {

	// Ban account action configuration
	BanAccount *RestapiBanAccountActionRequest `json:"banAccount,omitempty"`

	// Enable delete chat action
	DeleteChat bool `json:"deleteChat"`

	// Custom services moderation actions
	ExtensionActionIds []string `json:"extensionActionIds,omitempty"`

	// Enable hide content action
	HideContent bool `json:"hideContent"`
}

RestapiModerationRuleActionsRequest Restapi moderation rule actions request

swagger:model Restapi moderation rule actions request.

func (*RestapiModerationRuleActionsRequest) MarshalBinary

func (m *RestapiModerationRuleActionsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiModerationRuleActionsRequest) UnmarshalBinary

func (m *RestapiModerationRuleActionsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiModerationRuleActionsRequest) Validate

Validate validates this Restapi moderation rule actions request

type RestapiModerationRuleActionsResponse

type RestapiModerationRuleActionsResponse struct {

	// Ban account action configuration
	BanAccount *RestapiBanAccountActionResponse `json:"banAccount,omitempty"`

	// Enable delete chat action
	DeleteChat bool `json:"deleteChat"`

	// custom service mod actions
	ExtensionActionIds []string `json:"extensionActionIds,omitempty"`

	// Enable hide content action
	HideContent bool `json:"hideContent"`
}

RestapiModerationRuleActionsResponse Restapi moderation rule actions response

swagger:model Restapi moderation rule actions response.

func (*RestapiModerationRuleActionsResponse) MarshalBinary

func (m *RestapiModerationRuleActionsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiModerationRuleActionsResponse) UnmarshalBinary

func (m *RestapiModerationRuleActionsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiModerationRuleActionsResponse) Validate

Validate validates this Restapi moderation rule actions response

type RestapiModerationRuleActiveRequest

type RestapiModerationRuleActiveRequest struct {

	// active
	// Required: true
	Active *bool `json:"active"`
}

RestapiModerationRuleActiveRequest Restapi moderation rule active request

swagger:model Restapi moderation rule active request.

func (*RestapiModerationRuleActiveRequest) MarshalBinary

func (m *RestapiModerationRuleActiveRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiModerationRuleActiveRequest) UnmarshalBinary

func (m *RestapiModerationRuleActiveRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiModerationRuleActiveRequest) Validate

Validate validates this Restapi moderation rule active request

type RestapiModerationRuleRequest

type RestapiModerationRuleRequest struct {

	// GOING TO DEPRECATE, PLEASE DO NOT USE, for replacement use the "actions" field
	// Enum: ['HideContent']
	Action string `json:"action,omitempty"`

	// Action configurations for moderation rule
	Actions *RestapiModerationRuleActionsRequest `json:"actions,omitempty"`

	// status of this rule
	// Required: true
	Active *bool `json:"active"`

	// Report category, must select from pre defined list
	// Enum: ['CHAT', 'EXTENSION', 'UGC', 'USER']
	// Required: true
	Category *string `json:"category"`

	// Report extension category, consist of custom services sub-category (eg. salesItem,challenge,etc)
	ExtensionCategory string `json:"extensionCategory,omitempty"`

	// Reason of report, can select from pre defined list, max 128 chars
	// Required: true
	Reason *string `json:"reason"`

	// the threshold to trigger auto moderation
	// Required: true
	// Format: int32
	Threshold *int32 `json:"threshold"`
}

RestapiModerationRuleRequest Restapi moderation rule request

swagger:model Restapi moderation rule request.

func (*RestapiModerationRuleRequest) MarshalBinary

func (m *RestapiModerationRuleRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiModerationRuleRequest) UnmarshalBinary

func (m *RestapiModerationRuleRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiModerationRuleRequest) Validate

func (m *RestapiModerationRuleRequest) Validate(formats strfmt.Registry) error

Validate validates this Restapi moderation rule request

type RestapiModerationRuleResponse

type RestapiModerationRuleResponse struct {

	// GOING TO DEPRECATE, PLEASE DO NOT USE, for replacement use the "actions" field
	Action string `json:"action,omitempty"`

	// Action configurations for moderation rule
	// Required: true
	Actions *RestapiModerationRuleActionsResponse `json:"actions"`

	// active
	// Required: true
	Active *bool `json:"active"`

	// category
	// Required: true
	Category *string `json:"category"`

	// createdat
	// Required: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt"`

	// extensioncategory
	ExtensionCategory string `json:"extensionCategory,omitempty"`

	// id
	// Required: true
	ID *string `json:"id"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// reason
	// Required: true
	Reason *string `json:"reason"`

	// threshold
	// Required: true
	// Format: int32
	Threshold *int32 `json:"threshold"`

	// updatedat
	// Format: date-time
	UpdatedAt *strfmt.DateTime `json:"updatedAt,omitempty"`
}

RestapiModerationRuleResponse Restapi moderation rule response

swagger:model Restapi moderation rule response.

func (*RestapiModerationRuleResponse) MarshalBinary

func (m *RestapiModerationRuleResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiModerationRuleResponse) UnmarshalBinary

func (m *RestapiModerationRuleResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiModerationRuleResponse) Validate

func (m *RestapiModerationRuleResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi moderation rule response

type RestapiModerationRulesList

type RestapiModerationRulesList struct {

	// data
	// Required: true
	Data []*RestapiModerationRuleResponse `json:"data"`

	// paging
	// Required: true
	Paging *RestapiPagination `json:"paging"`
}

RestapiModerationRulesList Restapi moderation rules list

swagger:model Restapi moderation rules list.

func (*RestapiModerationRulesList) MarshalBinary

func (m *RestapiModerationRulesList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiModerationRulesList) UnmarshalBinary

func (m *RestapiModerationRulesList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiModerationRulesList) Validate

func (m *RestapiModerationRulesList) Validate(formats strfmt.Registry) error

Validate validates this Restapi moderation rules list

type RestapiPagination

type RestapiPagination struct {

	// first
	// Required: true
	First *string `json:"first"`

	// last
	// Required: true
	Last *string `json:"last"`

	// next
	// Required: true
	Next *string `json:"next"`

	// previous
	// Required: true
	Previous *string `json:"previous"`
}

RestapiPagination Restapi pagination

swagger:model Restapi pagination.

func (*RestapiPagination) MarshalBinary

func (m *RestapiPagination) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiPagination) UnmarshalBinary

func (m *RestapiPagination) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiPagination) Validate

func (m *RestapiPagination) Validate(formats strfmt.Registry) error

Validate validates this Restapi pagination

type RestapiPublicReasonGroupResponse

type RestapiPublicReasonGroupResponse struct {

	// id
	// Required: true
	ID *string `json:"id"`

	// title
	// Required: true
	Title *string `json:"title"`
}

RestapiPublicReasonGroupResponse Restapi public reason group response

swagger:model Restapi public reason group response.

func (*RestapiPublicReasonGroupResponse) MarshalBinary

func (m *RestapiPublicReasonGroupResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiPublicReasonGroupResponse) UnmarshalBinary

func (m *RestapiPublicReasonGroupResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiPublicReasonGroupResponse) Validate

Validate validates this Restapi public reason group response

type RestapiPublicReasonListResponse

type RestapiPublicReasonListResponse struct {

	// data
	// Required: true
	Data []*RestapiPublicReasonResponse `json:"data"`

	// paging
	// Required: true
	Paging *RestapiPagination `json:"paging"`
}

RestapiPublicReasonListResponse Restapi public reason list response

swagger:model Restapi public reason list response.

func (*RestapiPublicReasonListResponse) MarshalBinary

func (m *RestapiPublicReasonListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiPublicReasonListResponse) UnmarshalBinary

func (m *RestapiPublicReasonListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiPublicReasonListResponse) Validate

Validate validates this Restapi public reason list response

type RestapiPublicReasonResponse

type RestapiPublicReasonResponse struct {

	// description
	// Required: true
	Description *string `json:"description"`

	// title
	// Required: true
	Title *string `json:"title"`
}

RestapiPublicReasonResponse Restapi public reason response

swagger:model Restapi public reason response.

func (*RestapiPublicReasonResponse) MarshalBinary

func (m *RestapiPublicReasonResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiPublicReasonResponse) UnmarshalBinary

func (m *RestapiPublicReasonResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiPublicReasonResponse) Validate

func (m *RestapiPublicReasonResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi public reason response

type RestapiReasonGroupListResponse

type RestapiReasonGroupListResponse struct {

	// data
	// Required: true
	Data []*RestapiPublicReasonGroupResponse `json:"data"`

	// paging
	// Required: true
	Paging *RestapiPagination `json:"paging"`
}

RestapiReasonGroupListResponse Restapi reason group list response

swagger:model Restapi reason group list response.

func (*RestapiReasonGroupListResponse) MarshalBinary

func (m *RestapiReasonGroupListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiReasonGroupListResponse) UnmarshalBinary

func (m *RestapiReasonGroupListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiReasonGroupListResponse) Validate

func (m *RestapiReasonGroupListResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi reason group list response

type RestapiReasonGroupResponse

type RestapiReasonGroupResponse struct {

	// id
	// Required: true
	ID *string `json:"id"`

	// reasons
	Reasons []*RestapiAdminReasonResponse `json:"reasons,omitempty"`

	// title
	// Required: true
	Title *string `json:"title"`
}

RestapiReasonGroupResponse Restapi reason group response

swagger:model Restapi reason group response.

func (*RestapiReasonGroupResponse) MarshalBinary

func (m *RestapiReasonGroupResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiReasonGroupResponse) UnmarshalBinary

func (m *RestapiReasonGroupResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiReasonGroupResponse) Validate

func (m *RestapiReasonGroupResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi reason group response

type RestapiReportListResponse

type RestapiReportListResponse struct {

	// data
	// Required: true
	Data []*RestapiReportResponse `json:"data"`

	// paging
	// Required: true
	Paging *RestapiPagination `json:"paging"`
}

RestapiReportListResponse Restapi report list response

swagger:model Restapi report list response.

func (*RestapiReportListResponse) MarshalBinary

func (m *RestapiReportListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiReportListResponse) UnmarshalBinary

func (m *RestapiReportListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiReportListResponse) Validate

func (m *RestapiReportListResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi report list response

type RestapiReportResponse

type RestapiReportResponse struct {

	// additionalinfo
	// Required: true
	AdditionalInfo interface{} `json:"additionalInfo"`

	// category
	// Enum: ['CHAT', 'EXTENSION', 'UGC', 'USER']
	// Required: true
	Category *string `json:"category"`

	// comment
	// Required: true
	Comment *string `json:"comment"`

	// createdat
	// Required: true
	CreatedAt *string `json:"createdAt"`

	// extensioncategory
	ExtensionCategory string `json:"extensionCategory,omitempty"`

	// id
	// Required: true
	ID *string `json:"id"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// objectid
	// Required: true
	ObjectID *string `json:"objectId"`

	// objecttype
	// Required: true
	ObjectType *string `json:"objectType"`

	// reason
	// Required: true
	Reason *string `json:"reason"`

	// reporterid
	// Required: true
	ReporterID *string `json:"reporterId"`

	// ticketid
	// Required: true
	TicketID *string `json:"ticketId"`

	// updatedat
	// Required: true
	UpdatedAt *string `json:"updatedAt"`

	// userid
	// Required: true
	UserID *string `json:"userId"`
}

RestapiReportResponse Restapi report response

swagger:model Restapi report response.

func (*RestapiReportResponse) MarshalBinary

func (m *RestapiReportResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiReportResponse) UnmarshalBinary

func (m *RestapiReportResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiReportResponse) Validate

func (m *RestapiReportResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi report response

type RestapiReportingLimit

type RestapiReportingLimit struct {

	// categorylimits
	// Required: true
	CategoryLimits []*RestapiCategoryLimit `json:"categoryLimits"`

	// the unit is nanoseconds, must between 1 to 6000000 seconds
	// Required: true
	// Format: int64
	TimeInterval *int64 `json:"timeInterval"`

	// must between 1 to 2147483647
	// Required: true
	// Format: int32
	UserMaxReportPerTimeInterval *int32 `json:"userMaxReportPerTimeInterval"`
}

RestapiReportingLimit Restapi reporting limit

swagger:model Restapi reporting limit.

func (*RestapiReportingLimit) MarshalBinary

func (m *RestapiReportingLimit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiReportingLimit) UnmarshalBinary

func (m *RestapiReportingLimit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiReportingLimit) Validate

func (m *RestapiReportingLimit) Validate(formats strfmt.Registry) error

Validate validates this Restapi reporting limit

type RestapiSubmitReportRequest

type RestapiSubmitReportRequest struct {

	// Additional info regarding reported user / content, JSON formatted
	AdditionalInfo interface{} `json:"additionalInfo,omitempty"`

	// Report category, must select from pre defined list
	// Enum: ['CHAT', 'EXTENSION', 'UGC', 'USER']
	// Required: true
	Category *string `json:"category"`

	// Additional comment if any, max 280 chars
	Comment string `json:"comment,omitempty"`

	// Report extension category, must select from pre defined list
	ExtensionCategory string `json:"extensionCategory,omitempty"`

	// ID of content being reported, uuid4WithoutHyphens. Required for UGC category
	ObjectID string `json:"objectId,omitempty"`

	// Type of content being reported, max 64 chars. Required for UGC category
	ObjectType string `json:"objectType,omitempty"`

	// Reason of report, can select from pre defined list, max 128 chars
	// Required: true
	Reason *string `json:"reason"`

	// User ID being reported, in UUID4 format
	// Required: true
	UserID *string `json:"userId"`
}

RestapiSubmitReportRequest Restapi submit report request

swagger:model Restapi submit report request.

func (*RestapiSubmitReportRequest) MarshalBinary

func (m *RestapiSubmitReportRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiSubmitReportRequest) UnmarshalBinary

func (m *RestapiSubmitReportRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiSubmitReportRequest) Validate

func (m *RestapiSubmitReportRequest) Validate(formats strfmt.Registry) error

Validate validates this Restapi submit report request

type RestapiSubmitReportResponse

type RestapiSubmitReportResponse struct {

	// category
	// Enum: ['CHAT', 'EXTENSION', 'UGC', 'USER']
	// Required: true
	Category *string `json:"category"`

	// createdat
	// Required: true
	CreatedAt *string `json:"createdAt"`

	// extensioncategory
	ExtensionCategory string `json:"extensionCategory,omitempty"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// objectid
	// Required: true
	ObjectID *string `json:"objectId"`

	// objecttype
	// Required: true
	ObjectType *string `json:"objectType"`

	// status
	// Enum: ['AUTO_MODERATED', 'CLOSED', 'OPEN', 'UNKNOWN']
	// Required: true
	Status *string `json:"status"`

	// ticketid
	// Required: true
	TicketID *string `json:"ticketId"`

	// updatedat
	// Required: true
	UpdatedAt *string `json:"updatedAt"`

	// userid
	// Required: true
	UserID *string `json:"userId"`
}

RestapiSubmitReportResponse Restapi submit report response

swagger:model Restapi submit report response.

func (*RestapiSubmitReportResponse) MarshalBinary

func (m *RestapiSubmitReportResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiSubmitReportResponse) UnmarshalBinary

func (m *RestapiSubmitReportResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiSubmitReportResponse) Validate

func (m *RestapiSubmitReportResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi submit report response

type RestapiTicketListResponse

type RestapiTicketListResponse struct {

	// data
	// Required: true
	Data []*RestapiTicketResponse `json:"data"`

	// paging
	// Required: true
	Paging *RestapiPagination `json:"paging"`
}

RestapiTicketListResponse Restapi ticket list response

swagger:model Restapi ticket list response.

func (*RestapiTicketListResponse) MarshalBinary

func (m *RestapiTicketListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiTicketListResponse) UnmarshalBinary

func (m *RestapiTicketListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiTicketListResponse) Validate

func (m *RestapiTicketListResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi ticket list response

type RestapiTicketResponse

type RestapiTicketResponse struct {

	// category
	// Enum: ['CHAT', 'EXTENSION', 'UGC', 'USER']
	// Required: true
	Category *string `json:"category"`

	// createdat
	// Required: true
	CreatedAt *string `json:"createdAt"`

	// extensioncategory
	ExtensionCategory string `json:"extensionCategory,omitempty"`

	// id
	// Required: true
	ID *string `json:"id"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// notes
	// Required: true
	Notes *string `json:"notes"`

	// objectid
	// Required: true
	ObjectID *string `json:"objectId"`

	// objecttype
	// Required: true
	ObjectType *string `json:"objectType"`

	// reportscount
	// Required: true
	// Format: int32
	ReportsCount *int32 `json:"reportsCount"`

	// status
	// Enum: ['AUTO_MODERATED', 'CLOSED', 'OPEN', 'UNKNOWN']
	// Required: true
	Status *string `json:"status"`

	// updatedat
	// Required: true
	UpdatedAt *string `json:"updatedAt"`

	// userid
	// Required: true
	UserID *string `json:"userId"`
}

RestapiTicketResponse Restapi ticket response

swagger:model Restapi ticket response.

func (*RestapiTicketResponse) MarshalBinary

func (m *RestapiTicketResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiTicketResponse) UnmarshalBinary

func (m *RestapiTicketResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiTicketResponse) Validate

func (m *RestapiTicketResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi ticket response

type RestapiTicketStatisticResponse

type RestapiTicketStatisticResponse struct {

	// moderatedcount
	// Required: true
	// Format: int64
	ModeratedCount *int64 `json:"moderatedCount"`

	// opencount
	// Required: true
	// Format: int64
	OpenCount *int64 `json:"openCount"`

	// totalcount
	// Required: true
	// Format: int64
	TotalCount *int64 `json:"totalCount"`
}

RestapiTicketStatisticResponse Restapi ticket statistic response

swagger:model Restapi ticket statistic response.

func (*RestapiTicketStatisticResponse) MarshalBinary

func (m *RestapiTicketStatisticResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiTicketStatisticResponse) UnmarshalBinary

func (m *RestapiTicketStatisticResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiTicketStatisticResponse) Validate

func (m *RestapiTicketStatisticResponse) Validate(formats strfmt.Registry) error

Validate validates this Restapi ticket statistic response

type RestapiUnusedReasonListResponse

type RestapiUnusedReasonListResponse struct {

	// reasons
	// Required: true
	Reasons []*RestapiPublicReasonResponse `json:"reasons"`
}

RestapiUnusedReasonListResponse Restapi unused reason list response

swagger:model Restapi unused reason list response.

func (*RestapiUnusedReasonListResponse) MarshalBinary

func (m *RestapiUnusedReasonListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiUnusedReasonListResponse) UnmarshalBinary

func (m *RestapiUnusedReasonListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiUnusedReasonListResponse) Validate

Validate validates this Restapi unused reason list response

type RestapiUpdateReasonGroupRequest

type RestapiUpdateReasonGroupRequest struct {

	// reasonids
	ReasonIds []string `json:"reasonIds,omitempty"`

	// max 256 chars
	// Required: true
	Title *string `json:"title"`
}

RestapiUpdateReasonGroupRequest Restapi update reason group request

swagger:model Restapi update reason group request.

func (*RestapiUpdateReasonGroupRequest) MarshalBinary

func (m *RestapiUpdateReasonGroupRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiUpdateReasonGroupRequest) UnmarshalBinary

func (m *RestapiUpdateReasonGroupRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiUpdateReasonGroupRequest) Validate

Validate validates this Restapi update reason group request

type RestapiUpdateTicketResolutionsRequest

type RestapiUpdateTicketResolutionsRequest struct {

	// Info regarding the resolution status, max 280 chars
	// Required: true
	Notes *string `json:"notes"`

	// Ticket status is open, closed, auto moderated
	// Enum: ['AUTO_MODERATED', 'CLOSED', 'OPEN', 'UNKNOWN']
	// Required: true
	Status *string `json:"status"`
}

RestapiUpdateTicketResolutionsRequest Restapi update ticket resolutions request

swagger:model Restapi update ticket resolutions request.

func (*RestapiUpdateTicketResolutionsRequest) MarshalBinary

func (m *RestapiUpdateTicketResolutionsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestapiUpdateTicketResolutionsRequest) UnmarshalBinary

func (m *RestapiUpdateTicketResolutionsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestapiUpdateTicketResolutionsRequest) Validate

Validate validates this Restapi update ticket resolutions request

Jump to

Keyboard shortcuts

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