Documentation
¶
Overview ¶
Package sdk provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func NewBatchRequest(server string, group string, params *BatchParams, body BatchJSONRequestBody) (*http.Request, error)
- func NewBatchRequestWithBody(server string, group string, params *BatchParams, contentType string, ...) (*http.Request, error)
- func NewBlacklistsRequest(server string, params *BlacklistsParams, body BlacklistsJSONRequestBody) (*http.Request, error)
- func NewBlacklistsRequestWithBody(server string, params *BlacklistsParams, contentType string, body io.Reader) (*http.Request, error)
- func NewCommandRequest(server string, group string, params *CommandParams, ...) (*http.Request, error)
- func NewCommandRequestWithBody(server string, group string, params *CommandParams, contentType string, ...) (*http.Request, error)
- func NewConfigureGroupRequest(server string, group string, params *ConfigureGroupParams, ...) (*http.Request, error)
- func NewConfigureGroupRequestWithBody(server string, group string, params *ConfigureGroupParams, contentType string, ...) (*http.Request, error)
- func NewGetGroupRequest(server string, group string) (*http.Request, error)
- func NewListActionsRequest(server string, group string, params *ListActionsParams) (*http.Request, error)
- func NewListAuditRequest(server string, group string, params *ListAuditParams) (*http.Request, error)
- func NewListBlacklistRequest(server string, group string, params *ListBlacklistParams) (*http.Request, error)
- func NewListDeliveriesRequest(server, group string, params *ListDeliveriesParams) (*http.Request, error)
- func NewListDeliverysRequest(server string, group string, params *ListDeliverysParams) (*http.Request, error)
- func NewListGroupDirectoryRequest(server string, params *ListGroupDirectoryParams) (*http.Request, error)
- func NewListGroupsRequest(server string, params *ListGroupsParams) (*http.Request, error)
- func NewListHitsRequest(server string, group string, params *ListHitsParams) (*http.Request, error)
- func NewListMembersRequest(server string, group string, params *ListMembersParams) (*http.Request, error)
- func NewListMessagesRequest(server string, group string, params *ListMessagesParams) (*http.Request, error)
- func NewListMyGroupsRequest(server string, params *ListMyGroupsParams) (*http.Request, error)
- func NewListReportsRequest(server string, group string, params *ListReportsParams) (*http.Request, error)
- func NewListSubscriptionsRequest(server string, group string, params *ListSubscriptionsParams) (*http.Request, error)
- func NewListWarningsRequest(server string, group string, params *ListWarningsParams) (*http.Request, error)
- func NewListWatchRequest(server string, group string, params *ListWatchParams) (*http.Request, error)
- func NewOwnProgressRequest(server string, group string) (*http.Request, error)
- type Action
- type ActionCommand
- type ActionCommandKind
- type ActionPage
- type ActionState
- type Actor
- type AiExecuteCommand
- type AiExecuteCommandKind
- type AnalyzeCommand
- type AnalyzeCommandKind
- type ApplyCommand
- type ApplyCommandKind
- type AuditEntry
- type AuditPage
- type BatchCommand
- func (t BatchCommand) AsCardBatchCommand() (CardBatchCommand, error)
- func (t BatchCommand) AsExemptBatchCommand() (ExemptBatchCommand, error)
- func (t BatchCommand) AsExtendBatchCommand() (ExtendBatchCommand, error)
- func (t BatchCommand) AsKickBatchCommand() (KickBatchCommand, error)
- func (t BatchCommand) AsMuteBatchCommand() (MuteBatchCommand, error)
- func (t BatchCommand) AsRecheckBatchCommand() (RecheckBatchCommand, error)
- func (t BatchCommand) AsUnexemptBatchCommand() (UnexemptBatchCommand, error)
- func (t BatchCommand) AsUnmuteBatchCommand() (UnmuteBatchCommand, error)
- func (t BatchCommand) AsWarnBatchCommand() (WarnBatchCommand, error)
- func (t BatchCommand) Discriminator() (string, error)
- func (t *BatchCommand) FromCardBatchCommand(v CardBatchCommand) error
- func (t *BatchCommand) FromExemptBatchCommand(v ExemptBatchCommand) error
- func (t *BatchCommand) FromExtendBatchCommand(v ExtendBatchCommand) error
- func (t *BatchCommand) FromKickBatchCommand(v KickBatchCommand) error
- func (t *BatchCommand) FromMuteBatchCommand(v MuteBatchCommand) error
- func (t *BatchCommand) FromRecheckBatchCommand(v RecheckBatchCommand) error
- func (t *BatchCommand) FromUnexemptBatchCommand(v UnexemptBatchCommand) error
- func (t *BatchCommand) FromUnmuteBatchCommand(v UnmuteBatchCommand) error
- func (t *BatchCommand) FromWarnBatchCommand(v WarnBatchCommand) error
- func (t BatchCommand) MarshalJSON() ([]byte, error)
- func (t *BatchCommand) MergeCardBatchCommand(v CardBatchCommand) error
- func (t *BatchCommand) MergeExemptBatchCommand(v ExemptBatchCommand) error
- func (t *BatchCommand) MergeExtendBatchCommand(v ExtendBatchCommand) error
- func (t *BatchCommand) MergeKickBatchCommand(v KickBatchCommand) error
- func (t *BatchCommand) MergeMuteBatchCommand(v MuteBatchCommand) error
- func (t *BatchCommand) MergeRecheckBatchCommand(v RecheckBatchCommand) error
- func (t *BatchCommand) MergeUnexemptBatchCommand(v UnexemptBatchCommand) error
- func (t *BatchCommand) MergeUnmuteBatchCommand(v UnmuteBatchCommand) error
- func (t *BatchCommand) MergeWarnBatchCommand(v WarnBatchCommand) error
- func (t *BatchCommand) UnmarshalJSON(b []byte) error
- func (t BatchCommand) ValueByDiscriminator() (interface{}, error)
- type BatchJSONRequestBody
- type BatchParams
- type BatchResponse
- func (r BatchResponse) ContentType() string
- func (r BatchResponse) GetBody() []byte
- func (r BatchResponse) GetJSON200() *BulkResult
- func (r BatchResponse) GetJSON400() *Problem
- func (r BatchResponse) GetJSON401() *Problem
- func (r BatchResponse) GetJSON403() *Problem
- func (r BatchResponse) GetJSON404() *Problem
- func (r BatchResponse) GetJSON409() *Problem
- func (r BatchResponse) GetJSON422() *Problem
- func (r BatchResponse) GetJSON503() *Problem
- func (r BatchResponse) Status() string
- func (r BatchResponse) StatusCode() int
- type Blacklist
- type BlacklistCommand
- type BlacklistCommandKind
- type BlacklistInput
- type BlacklistPage
- type BlacklistsJSONRequestBody
- type BlacklistsParams
- type BlacklistsResponse
- func (r BlacklistsResponse) ContentType() string
- func (r BlacklistsResponse) GetBody() []byte
- func (r BlacklistsResponse) GetJSON200() *Result
- func (r BlacklistsResponse) GetJSON400() *Problem
- func (r BlacklistsResponse) GetJSON401() *Problem
- func (r BlacklistsResponse) GetJSON403() *Problem
- func (r BlacklistsResponse) GetJSON404() *Problem
- func (r BlacklistsResponse) GetJSON409() *Problem
- func (r BlacklistsResponse) GetJSON422() *Problem
- func (r BlacklistsResponse) GetJSON503() *Problem
- func (r BlacklistsResponse) Status() string
- func (r BlacklistsResponse) StatusCode() int
- type Bulk
- type BulkItems
- type BulkResult
- type BulkSkippedItem
- type CancelActionCommand
- type CancelActionCommandKind
- type CardBatchCommand
- type CardBatchCommandKind
- type CardCommand
- type CardCommandKind
- type CardPreviewCommand
- type CardPreviewCommandKind
- type Client
- func (c *Client) Batch(ctx context.Context, group string, params *BatchParams, ...) (*http.Response, error)
- func (c *Client) BatchWithBody(ctx context.Context, group string, params *BatchParams, contentType string, ...) (*http.Response, error)
- func (c *Client) Blacklists(ctx context.Context, params *BlacklistsParams, body BlacklistsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BlacklistsWithBody(ctx context.Context, params *BlacklistsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) Command(ctx context.Context, group string, params *CommandParams, ...) (*http.Response, error)
- func (c *Client) CommandWithBody(ctx context.Context, group string, params *CommandParams, contentType string, ...) (*http.Response, error)
- func (c *Client) ConfigureGroup(ctx context.Context, group string, params *ConfigureGroupParams, ...) (*http.Response, error)
- func (c *Client) ConfigureGroupWithBody(ctx context.Context, group string, params *ConfigureGroupParams, ...) (*http.Response, error)
- func (c *Client) GetGroup(ctx context.Context, group string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListActions(ctx context.Context, group string, params *ListActionsParams, ...) (*http.Response, error)
- func (c *Client) ListAudit(ctx context.Context, group string, params *ListAuditParams, ...) (*http.Response, error)
- func (c *Client) ListBlacklist(ctx context.Context, group string, params *ListBlacklistParams, ...) (*http.Response, error)
- func (c *Client) ListDeliveries(ctx context.Context, group string, params *ListDeliveriesParams, ...) (*http.Response, error)
- func (c *Client) ListDeliverys(ctx context.Context, group string, params *ListDeliverysParams, ...) (*http.Response, error)
- func (c *Client) ListGroupDirectory(ctx context.Context, params *ListGroupDirectoryParams, ...) (*http.Response, error)
- func (c *Client) ListGroups(ctx context.Context, params *ListGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListHits(ctx context.Context, group string, params *ListHitsParams, ...) (*http.Response, error)
- func (c *Client) ListMembers(ctx context.Context, group string, params *ListMembersParams, ...) (*http.Response, error)
- func (c *Client) ListMessages(ctx context.Context, group string, params *ListMessagesParams, ...) (*http.Response, error)
- func (c *Client) ListMyGroups(ctx context.Context, params *ListMyGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListReports(ctx context.Context, group string, params *ListReportsParams, ...) (*http.Response, error)
- func (c *Client) ListSubscriptions(ctx context.Context, group string, params *ListSubscriptionsParams, ...) (*http.Response, error)
- func (c *Client) ListWarnings(ctx context.Context, group string, params *ListWarningsParams, ...) (*http.Response, error)
- func (c *Client) ListWatch(ctx context.Context, group string, params *ListWatchParams, ...) (*http.Response, error)
- func (c *Client) OwnProgress(ctx context.Context, group string, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) BatchWithBodyWithResponse(ctx context.Context, group string, params *BatchParams, contentType string, ...) (*BatchResponse, error)
- func (c *ClientWithResponses) BatchWithResponse(ctx context.Context, group string, params *BatchParams, ...) (*BatchResponse, error)
- func (c *ClientWithResponses) BlacklistsWithBodyWithResponse(ctx context.Context, params *BlacklistsParams, contentType string, ...) (*BlacklistsResponse, error)
- func (c *ClientWithResponses) BlacklistsWithResponse(ctx context.Context, params *BlacklistsParams, body BlacklistsJSONRequestBody, ...) (*BlacklistsResponse, error)
- func (c *ClientWithResponses) CommandWithBodyWithResponse(ctx context.Context, group string, params *CommandParams, contentType string, ...) (*CommandResponse, error)
- func (c *ClientWithResponses) CommandWithResponse(ctx context.Context, group string, params *CommandParams, ...) (*CommandResponse, error)
- func (c *ClientWithResponses) ConfigureGroupWithBodyWithResponse(ctx context.Context, group string, params *ConfigureGroupParams, ...) (*ConfigureGroupResponse, error)
- func (c *ClientWithResponses) ConfigureGroupWithResponse(ctx context.Context, group string, params *ConfigureGroupParams, ...) (*ConfigureGroupResponse, error)
- func (c *ClientWithResponses) GetGroupWithResponse(ctx context.Context, group string, reqEditors ...RequestEditorFn) (*GetGroupResponse, error)
- func (c *ClientWithResponses) ListActionsWithResponse(ctx context.Context, group string, params *ListActionsParams, ...) (*ListActionsResponse, error)
- func (c *ClientWithResponses) ListAuditWithResponse(ctx context.Context, group string, params *ListAuditParams, ...) (*ListAuditResponse, error)
- func (c *ClientWithResponses) ListBlacklistWithResponse(ctx context.Context, group string, params *ListBlacklistParams, ...) (*ListBlacklistResponse, error)
- func (c *ClientWithResponses) ListDeliveries(ctx context.Context, group string, params *ListDeliveriesParams, ...) (*http.Response, error)
- func (c *ClientWithResponses) ListDeliveriesWithResponse(ctx context.Context, group string, params *ListDeliveriesParams, ...) (*ListDeliveriesResponse, error)
- func (c *ClientWithResponses) ListDeliverysWithResponse(ctx context.Context, group string, params *ListDeliverysParams, ...) (*ListDeliverysResponse, error)
- func (c *ClientWithResponses) ListGroupDirectoryWithResponse(ctx context.Context, params *ListGroupDirectoryParams, ...) (*ListGroupDirectoryResponse, error)
- func (c *ClientWithResponses) ListGroupsWithResponse(ctx context.Context, params *ListGroupsParams, reqEditors ...RequestEditorFn) (*ListGroupsResponse, error)
- func (c *ClientWithResponses) ListHitsWithResponse(ctx context.Context, group string, params *ListHitsParams, ...) (*ListHitsResponse, error)
- func (c *ClientWithResponses) ListMembersWithResponse(ctx context.Context, group string, params *ListMembersParams, ...) (*ListMembersResponse, error)
- func (c *ClientWithResponses) ListMessagesWithResponse(ctx context.Context, group string, params *ListMessagesParams, ...) (*ListMessagesResponse, error)
- func (c *ClientWithResponses) ListMyGroupsWithResponse(ctx context.Context, params *ListMyGroupsParams, reqEditors ...RequestEditorFn) (*ListMyGroupsResponse, error)
- func (c *ClientWithResponses) ListReportsWithResponse(ctx context.Context, group string, params *ListReportsParams, ...) (*ListReportsResponse, error)
- func (c *ClientWithResponses) ListSubscriptionsWithResponse(ctx context.Context, group string, params *ListSubscriptionsParams, ...) (*ListSubscriptionsResponse, error)
- func (c *ClientWithResponses) ListWarningsWithResponse(ctx context.Context, group string, params *ListWarningsParams, ...) (*ListWarningsResponse, error)
- func (c *ClientWithResponses) ListWatchWithResponse(ctx context.Context, group string, params *ListWatchParams, ...) (*ListWatchResponse, error)
- func (c *ClientWithResponses) OwnProgressWithResponse(ctx context.Context, group string, reqEditors ...RequestEditorFn) (*OwnProgressResponse, error)
- type ClientWithResponsesInterface
- type Command
- func (t Command) AsAiExecuteCommand() (AiExecuteCommand, error)
- func (t Command) AsAnalyzeCommand() (AnalyzeCommand, error)
- func (t Command) AsApplyCommand() (ApplyCommand, error)
- func (t Command) AsBlacklistCommand() (BlacklistCommand, error)
- func (t Command) AsCancelActionCommand() (CancelActionCommand, error)
- func (t Command) AsCardCommand() (CardCommand, error)
- func (t Command) AsCardPreviewCommand() (CardPreviewCommand, error)
- func (t Command) AsDiceCommand() (DiceCommand, error)
- func (t Command) AsExemptCommand() (ExemptCommand, error)
- func (t Command) AsExtendCommand() (ExtendCommand, error)
- func (t Command) AsFeedbackCommand() (FeedbackCommand, error)
- func (t Command) AsForwardCommand() (ForwardCommand, error)
- func (t Command) AsKickCommand() (KickCommand, error)
- func (t Command) AsMuteCommand() (MuteCommand, error)
- func (t Command) AsPasswordCommand() (PasswordCommand, error)
- func (t Command) AsPreviewCommand() (PreviewCommand, error)
- func (t Command) AsRecallCommand() (RecallCommand, error)
- func (t Command) AsRecheckCommand() (RecheckCommand, error)
- func (t Command) AsReportCommand() (ReportCommand, error)
- func (t Command) AsRetryActionCommand() (RetryActionCommand, error)
- func (t Command) AsRuleCommand() (RuleCommand, error)
- func (t Command) AsSelfMuteCommand() (SelfMuteCommand, error)
- func (t Command) AsSendCommand() (SendCommand, error)
- func (t Command) AsSubscribeCommand() (SubscribeCommand, error)
- func (t Command) AsUnblacklistCommand() (UnblacklistCommand, error)
- func (t Command) AsUnexemptCommand() (UnexemptCommand, error)
- func (t Command) AsUnmuteCommand() (UnmuteCommand, error)
- func (t Command) AsWarnCommand() (WarnCommand, error)
- func (t Command) AsWatchCommand() (WatchCommand, error)
- func (t Command) Discriminator() (string, error)
- func (t *Command) FromAiExecuteCommand(v AiExecuteCommand) error
- func (t *Command) FromAnalyzeCommand(v AnalyzeCommand) error
- func (t *Command) FromApplyCommand(v ApplyCommand) error
- func (t *Command) FromBlacklistCommand(v BlacklistCommand) error
- func (t *Command) FromCancelActionCommand(v CancelActionCommand) error
- func (t *Command) FromCardCommand(v CardCommand) error
- func (t *Command) FromCardPreviewCommand(v CardPreviewCommand) error
- func (t *Command) FromDiceCommand(v DiceCommand) error
- func (t *Command) FromExemptCommand(v ExemptCommand) error
- func (t *Command) FromExtendCommand(v ExtendCommand) error
- func (t *Command) FromFeedbackCommand(v FeedbackCommand) error
- func (t *Command) FromForwardCommand(v ForwardCommand) error
- func (t *Command) FromKickCommand(v KickCommand) error
- func (t *Command) FromMuteCommand(v MuteCommand) error
- func (t *Command) FromPasswordCommand(v PasswordCommand) error
- func (t *Command) FromPreviewCommand(v PreviewCommand) error
- func (t *Command) FromRecallCommand(v RecallCommand) error
- func (t *Command) FromRecheckCommand(v RecheckCommand) error
- func (t *Command) FromReportCommand(v ReportCommand) error
- func (t *Command) FromRetryActionCommand(v RetryActionCommand) error
- func (t *Command) FromRuleCommand(v RuleCommand) error
- func (t *Command) FromSelfMuteCommand(v SelfMuteCommand) error
- func (t *Command) FromSendCommand(v SendCommand) error
- func (t *Command) FromSubscribeCommand(v SubscribeCommand) error
- func (t *Command) FromUnblacklistCommand(v UnblacklistCommand) error
- func (t *Command) FromUnexemptCommand(v UnexemptCommand) error
- func (t *Command) FromUnmuteCommand(v UnmuteCommand) error
- func (t *Command) FromWarnCommand(v WarnCommand) error
- func (t *Command) FromWatchCommand(v WatchCommand) error
- func (t Command) MarshalJSON() ([]byte, error)
- func (t *Command) MergeAiExecuteCommand(v AiExecuteCommand) error
- func (t *Command) MergeAnalyzeCommand(v AnalyzeCommand) error
- func (t *Command) MergeApplyCommand(v ApplyCommand) error
- func (t *Command) MergeBlacklistCommand(v BlacklistCommand) error
- func (t *Command) MergeCancelActionCommand(v CancelActionCommand) error
- func (t *Command) MergeCardCommand(v CardCommand) error
- func (t *Command) MergeCardPreviewCommand(v CardPreviewCommand) error
- func (t *Command) MergeDiceCommand(v DiceCommand) error
- func (t *Command) MergeExemptCommand(v ExemptCommand) error
- func (t *Command) MergeExtendCommand(v ExtendCommand) error
- func (t *Command) MergeFeedbackCommand(v FeedbackCommand) error
- func (t *Command) MergeForwardCommand(v ForwardCommand) error
- func (t *Command) MergeKickCommand(v KickCommand) error
- func (t *Command) MergeMuteCommand(v MuteCommand) error
- func (t *Command) MergePasswordCommand(v PasswordCommand) error
- func (t *Command) MergePreviewCommand(v PreviewCommand) error
- func (t *Command) MergeRecallCommand(v RecallCommand) error
- func (t *Command) MergeRecheckCommand(v RecheckCommand) error
- func (t *Command) MergeReportCommand(v ReportCommand) error
- func (t *Command) MergeRetryActionCommand(v RetryActionCommand) error
- func (t *Command) MergeRuleCommand(v RuleCommand) error
- func (t *Command) MergeSelfMuteCommand(v SelfMuteCommand) error
- func (t *Command) MergeSendCommand(v SendCommand) error
- func (t *Command) MergeSubscribeCommand(v SubscribeCommand) error
- func (t *Command) MergeUnblacklistCommand(v UnblacklistCommand) error
- func (t *Command) MergeUnexemptCommand(v UnexemptCommand) error
- func (t *Command) MergeUnmuteCommand(v UnmuteCommand) error
- func (t *Command) MergeWarnCommand(v WarnCommand) error
- func (t *Command) MergeWatchCommand(v WatchCommand) error
- func (t *Command) UnmarshalJSON(b []byte) error
- func (t Command) ValueByDiscriminator() (interface{}, error)
- type CommandJSONRequestBody
- type CommandParams
- type CommandResponse
- func (r CommandResponse) ContentType() string
- func (r CommandResponse) GetBody() []byte
- func (r CommandResponse) GetJSON200() *Result
- func (r CommandResponse) GetJSON400() *Problem
- func (r CommandResponse) GetJSON401() *Problem
- func (r CommandResponse) GetJSON403() *Problem
- func (r CommandResponse) GetJSON404() *Problem
- func (r CommandResponse) GetJSON409() *Problem
- func (r CommandResponse) GetJSON422() *Problem
- func (r CommandResponse) GetJSON503() *Problem
- func (r CommandResponse) Status() string
- func (r CommandResponse) StatusCode() int
- type ConfigureGroupJSONRequestBody
- type ConfigureGroupParams
- type ConfigureGroupResponse
- func (r ConfigureGroupResponse) ContentType() string
- func (r ConfigureGroupResponse) GetBody() []byte
- func (r ConfigureGroupResponse) GetJSON200() *GroupConfig
- func (r ConfigureGroupResponse) GetJSON400() *Problem
- func (r ConfigureGroupResponse) GetJSON401() *Problem
- func (r ConfigureGroupResponse) GetJSON403() *Problem
- func (r ConfigureGroupResponse) GetJSON404() *Problem
- func (r ConfigureGroupResponse) GetJSON409() *Problem
- func (r ConfigureGroupResponse) GetJSON422() *Problem
- func (r ConfigureGroupResponse) GetJSON503() *Problem
- func (r ConfigureGroupResponse) Status() string
- func (r ConfigureGroupResponse) StatusCode() int
- type Delivery
- type DeliveryPage
- type DiceCommand
- type DiceCommandKind
- type DirectoryGroup
- type DirectoryGroupCategory
- type DirectoryGroupMode
- type DirectoryGroupPage
- type DirectoryGroupState
- type ExemptBatchCommand
- type ExemptBatchCommandKind
- type ExemptCommand
- type ExemptCommandKind
- type ExtendBatchCommand
- type ExtendBatchCommandKind
- type ExtendCommand
- type ExtendCommandKind
- type FeedbackCommand
- type FeedbackCommandKind
- type ForwardCommand
- type ForwardCommandKind
- type GetGroupResponse
- func (r GetGroupResponse) ContentType() string
- func (r GetGroupResponse) GetBody() []byte
- func (r GetGroupResponse) GetJSON200() *GroupConfig
- func (r GetGroupResponse) GetJSON400() *Problem
- func (r GetGroupResponse) GetJSON401() *Problem
- func (r GetGroupResponse) GetJSON403() *Problem
- func (r GetGroupResponse) GetJSON404() *Problem
- func (r GetGroupResponse) GetJSON503() *Problem
- func (r GetGroupResponse) Status() string
- func (r GetGroupResponse) StatusCode() int
- type GroupConfig
- type GroupConfigAutoActions
- type GroupConfigCategory
- type GroupConfigInput
- type GroupConfigInputAutoActions
- type GroupConfigInputCategory
- type GroupConfigInputMode
- type GroupConfigMode
- type GroupSummary
- type GroupSummaryPage
- type Hit
- type HitPage
- type HttpRequestDoer
- type KickBatchCommand
- type KickBatchCommandKind
- type KickCommand
- type KickCommandKind
- type ListActionsParams
- type ListActionsParamsKind
- type ListActionsParamsOrder
- type ListActionsParamsState
- type ListActionsResponse
- func (r ListActionsResponse) ContentType() string
- func (r ListActionsResponse) GetBody() []byte
- func (r ListActionsResponse) GetJSON200() *ActionPage
- func (r ListActionsResponse) GetJSON400() *Problem
- func (r ListActionsResponse) GetJSON401() *Problem
- func (r ListActionsResponse) GetJSON403() *Problem
- func (r ListActionsResponse) GetJSON404() *Problem
- func (r ListActionsResponse) GetJSON503() *Problem
- func (r ListActionsResponse) Status() string
- func (r ListActionsResponse) StatusCode() int
- type ListAuditParams
- type ListAuditResponse
- func (r ListAuditResponse) ContentType() string
- func (r ListAuditResponse) GetBody() []byte
- func (r ListAuditResponse) GetJSON200() *AuditPage
- func (r ListAuditResponse) GetJSON400() *Problem
- func (r ListAuditResponse) GetJSON401() *Problem
- func (r ListAuditResponse) GetJSON403() *Problem
- func (r ListAuditResponse) GetJSON404() *Problem
- func (r ListAuditResponse) GetJSON503() *Problem
- func (r ListAuditResponse) Status() string
- func (r ListAuditResponse) StatusCode() int
- type ListBlacklistParams
- type ListBlacklistResponse
- func (r ListBlacklistResponse) ContentType() string
- func (r ListBlacklistResponse) GetBody() []byte
- func (r ListBlacklistResponse) GetJSON200() *BlacklistPage
- func (r ListBlacklistResponse) GetJSON400() *Problem
- func (r ListBlacklistResponse) GetJSON401() *Problem
- func (r ListBlacklistResponse) GetJSON403() *Problem
- func (r ListBlacklistResponse) GetJSON404() *Problem
- func (r ListBlacklistResponse) GetJSON503() *Problem
- func (r ListBlacklistResponse) Status() string
- func (r ListBlacklistResponse) StatusCode() int
- type ListDeliveriesParams
- type ListDeliveriesResponse
- type ListDeliverysParams
- type ListDeliverysResponse
- func (r ListDeliverysResponse) ContentType() string
- func (r ListDeliverysResponse) GetBody() []byte
- func (r ListDeliverysResponse) GetJSON200() *DeliveryPage
- func (r ListDeliverysResponse) GetJSON400() *Problem
- func (r ListDeliverysResponse) GetJSON401() *Problem
- func (r ListDeliverysResponse) GetJSON403() *Problem
- func (r ListDeliverysResponse) GetJSON404() *Problem
- func (r ListDeliverysResponse) GetJSON503() *Problem
- func (r ListDeliverysResponse) Status() string
- func (r ListDeliverysResponse) StatusCode() int
- type ListGroupDirectoryParams
- type ListGroupDirectoryParamsCategory
- type ListGroupDirectoryResponse
- func (r ListGroupDirectoryResponse) ContentType() string
- func (r ListGroupDirectoryResponse) GetBody() []byte
- func (r ListGroupDirectoryResponse) GetJSON200() *DirectoryGroupPage
- func (r ListGroupDirectoryResponse) GetJSON400() *Problem
- func (r ListGroupDirectoryResponse) GetJSON401() *Problem
- func (r ListGroupDirectoryResponse) GetJSON403() *Problem
- func (r ListGroupDirectoryResponse) GetJSON503() *Problem
- func (r ListGroupDirectoryResponse) Status() string
- func (r ListGroupDirectoryResponse) StatusCode() int
- type ListGroupsParams
- type ListGroupsResponse
- func (r ListGroupsResponse) ContentType() string
- func (r ListGroupsResponse) GetBody() []byte
- func (r ListGroupsResponse) GetJSON200() *GroupSummaryPage
- func (r ListGroupsResponse) GetJSON400() *Problem
- func (r ListGroupsResponse) GetJSON401() *Problem
- func (r ListGroupsResponse) GetJSON403() *Problem
- func (r ListGroupsResponse) GetJSON503() *Problem
- func (r ListGroupsResponse) Status() string
- func (r ListGroupsResponse) StatusCode() int
- type ListHitsParams
- type ListHitsParamsOrder
- type ListHitsResponse
- func (r ListHitsResponse) ContentType() string
- func (r ListHitsResponse) GetBody() []byte
- func (r ListHitsResponse) GetJSON200() *HitPage
- func (r ListHitsResponse) GetJSON400() *Problem
- func (r ListHitsResponse) GetJSON401() *Problem
- func (r ListHitsResponse) GetJSON403() *Problem
- func (r ListHitsResponse) GetJSON404() *Problem
- func (r ListHitsResponse) GetJSON503() *Problem
- func (r ListHitsResponse) Status() string
- func (r ListHitsResponse) StatusCode() int
- type ListMembersParams
- type ListMembersParamsState
- type ListMembersResponse
- func (r ListMembersResponse) ContentType() string
- func (r ListMembersResponse) GetBody() []byte
- func (r ListMembersResponse) GetJSON200() *MemberPage
- func (r ListMembersResponse) GetJSON400() *Problem
- func (r ListMembersResponse) GetJSON401() *Problem
- func (r ListMembersResponse) GetJSON403() *Problem
- func (r ListMembersResponse) GetJSON404() *Problem
- func (r ListMembersResponse) GetJSON503() *Problem
- func (r ListMembersResponse) Status() string
- func (r ListMembersResponse) StatusCode() int
- type ListMessagesParams
- type ListMessagesParamsOrder
- type ListMessagesResponse
- func (r ListMessagesResponse) ContentType() string
- func (r ListMessagesResponse) GetBody() []byte
- func (r ListMessagesResponse) GetJSON200() *MessagePage
- func (r ListMessagesResponse) GetJSON400() *Problem
- func (r ListMessagesResponse) GetJSON401() *Problem
- func (r ListMessagesResponse) GetJSON403() *Problem
- func (r ListMessagesResponse) GetJSON404() *Problem
- func (r ListMessagesResponse) GetJSON503() *Problem
- func (r ListMessagesResponse) Status() string
- func (r ListMessagesResponse) StatusCode() int
- type ListMyGroupsParams
- type ListMyGroupsResponse
- func (r ListMyGroupsResponse) ContentType() string
- func (r ListMyGroupsResponse) GetBody() []byte
- func (r ListMyGroupsResponse) GetJSON200() *MyGroupPage
- func (r ListMyGroupsResponse) GetJSON400() *Problem
- func (r ListMyGroupsResponse) GetJSON401() *Problem
- func (r ListMyGroupsResponse) GetJSON503() *Problem
- func (r ListMyGroupsResponse) Status() string
- func (r ListMyGroupsResponse) StatusCode() int
- type ListReportsParams
- type ListReportsParamsOrder
- type ListReportsParamsState
- type ListReportsResponse
- func (r ListReportsResponse) ContentType() string
- func (r ListReportsResponse) GetBody() []byte
- func (r ListReportsResponse) GetJSON200() *ReportPage
- func (r ListReportsResponse) GetJSON400() *Problem
- func (r ListReportsResponse) GetJSON401() *Problem
- func (r ListReportsResponse) GetJSON403() *Problem
- func (r ListReportsResponse) GetJSON404() *Problem
- func (r ListReportsResponse) GetJSON503() *Problem
- func (r ListReportsResponse) Status() string
- func (r ListReportsResponse) StatusCode() int
- type ListSubscriptionsParams
- type ListSubscriptionsResponse
- func (r ListSubscriptionsResponse) ContentType() string
- func (r ListSubscriptionsResponse) GetBody() []byte
- func (r ListSubscriptionsResponse) GetJSON200() *SubscriptionPage
- func (r ListSubscriptionsResponse) GetJSON400() *Problem
- func (r ListSubscriptionsResponse) GetJSON401() *Problem
- func (r ListSubscriptionsResponse) GetJSON403() *Problem
- func (r ListSubscriptionsResponse) GetJSON404() *Problem
- func (r ListSubscriptionsResponse) GetJSON503() *Problem
- func (r ListSubscriptionsResponse) Status() string
- func (r ListSubscriptionsResponse) StatusCode() int
- type ListWarningsParams
- type ListWarningsResponse
- func (r ListWarningsResponse) ContentType() string
- func (r ListWarningsResponse) GetBody() []byte
- func (r ListWarningsResponse) GetJSON200() *WarningsPage
- func (r ListWarningsResponse) GetJSON400() *Problem
- func (r ListWarningsResponse) GetJSON401() *Problem
- func (r ListWarningsResponse) GetJSON403() *Problem
- func (r ListWarningsResponse) GetJSON404() *Problem
- func (r ListWarningsResponse) GetJSON503() *Problem
- func (r ListWarningsResponse) Status() string
- func (r ListWarningsResponse) StatusCode() int
- type ListWatchParams
- type ListWatchResponse
- func (r ListWatchResponse) ContentType() string
- func (r ListWatchResponse) GetBody() []byte
- func (r ListWatchResponse) GetJSON200() *WatchPage
- func (r ListWatchResponse) GetJSON400() *Problem
- func (r ListWatchResponse) GetJSON401() *Problem
- func (r ListWatchResponse) GetJSON403() *Problem
- func (r ListWatchResponse) GetJSON404() *Problem
- func (r ListWatchResponse) GetJSON503() *Problem
- func (r ListWatchResponse) Status() string
- func (r ListWatchResponse) StatusCode() int
- type Member
- type MemberPage
- type Message
- type MessagePage
- type MuteBatchCommand
- type MuteBatchCommandKind
- type MuteCommand
- type MuteCommandKind
- type MyGroup
- type MyGroupEligibility
- type MyGroupMissingCardFields
- type MyGroupMissingConditions
- type MyGroupNextActions
- type MyGroupPage
- type MyGroupState
- type MyGroupUnknownConditions
- type OwnProgressResponse
- func (r OwnProgressResponse) ContentType() string
- func (r OwnProgressResponse) GetBody() []byte
- func (r OwnProgressResponse) GetJSON200() *Member
- func (r OwnProgressResponse) GetJSON400() *Problem
- func (r OwnProgressResponse) GetJSON401() *Problem
- func (r OwnProgressResponse) GetJSON403() *Problem
- func (r OwnProgressResponse) GetJSON404() *Problem
- func (r OwnProgressResponse) GetJSON503() *Problem
- func (r OwnProgressResponse) Status() string
- func (r OwnProgressResponse) StatusCode() int
- type PasswordCommand
- type PasswordCommandKind
- type PreviewCommand
- type PreviewCommandKind
- type Problem
- type ProblemCode
- type ProblemReason
- type RecallCommand
- type RecallCommandKind
- type RecheckBatchCommand
- type RecheckBatchCommandKind
- type RecheckCommand
- type RecheckCommandKind
- type Report
- type ReportCommand
- type ReportCommandKind
- type ReportPage
- type RequestEditorFn
- type Result
- type ResultMissingFields
- type RetryActionCommand
- type RetryActionCommandKind
- type RuleCommand
- type RuleCommandKind
- type SelfMuteCommand
- type SelfMuteCommandKind
- type SendCommand
- type SendCommandKind
- type SubscribeCommand
- type SubscribeCommandKind
- type Subscription
- type SubscriptionPage
- type UnblacklistCommand
- type UnblacklistCommandKind
- type UnexemptBatchCommand
- type UnexemptBatchCommandKind
- type UnexemptCommand
- type UnexemptCommandKind
- type UnmuteBatchCommand
- type UnmuteBatchCommandKind
- type UnmuteCommand
- type UnmuteCommandKind
- type WarnBatchCommand
- type WarnBatchCommandKind
- type WarnCommand
- type WarnCommandKind
- type Warnings
- type WarningsPage
- type Watch
- type WatchCommand
- type WatchCommandKind
- type WatchPage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBatchRequest ¶
func NewBatchRequest(server string, group string, params *BatchParams, body BatchJSONRequestBody) (*http.Request, error)
NewBatchRequest calls the generic Batch builder with application/json body
func NewBatchRequestWithBody ¶
func NewBatchRequestWithBody(server string, group string, params *BatchParams, contentType string, body io.Reader) (*http.Request, error)
NewBatchRequestWithBody constructs an http.Request for the Batch method, with any body, and a specified content type
func NewBlacklistsRequest ¶
func NewBlacklistsRequest(server string, params *BlacklistsParams, body BlacklistsJSONRequestBody) (*http.Request, error)
NewBlacklistsRequest calls the generic Blacklists builder with application/json body
func NewBlacklistsRequestWithBody ¶
func NewBlacklistsRequestWithBody(server string, params *BlacklistsParams, contentType string, body io.Reader) (*http.Request, error)
NewBlacklistsRequestWithBody constructs an http.Request for the Blacklists method, with any body, and a specified content type
func NewCommandRequest ¶
func NewCommandRequest(server string, group string, params *CommandParams, body CommandJSONRequestBody) (*http.Request, error)
NewCommandRequest calls the generic Command builder with application/json body
func NewCommandRequestWithBody ¶
func NewCommandRequestWithBody(server string, group string, params *CommandParams, contentType string, body io.Reader) (*http.Request, error)
NewCommandRequestWithBody constructs an http.Request for the Command method, with any body, and a specified content type
func NewConfigureGroupRequest ¶
func NewConfigureGroupRequest(server string, group string, params *ConfigureGroupParams, body ConfigureGroupJSONRequestBody) (*http.Request, error)
NewConfigureGroupRequest calls the generic ConfigureGroup builder with application/json body
func NewConfigureGroupRequestWithBody ¶
func NewConfigureGroupRequestWithBody(server string, group string, params *ConfigureGroupParams, contentType string, body io.Reader) (*http.Request, error)
NewConfigureGroupRequestWithBody constructs an http.Request for the ConfigureGroup method, with any body, and a specified content type
func NewGetGroupRequest ¶
NewGetGroupRequest constructs an http.Request for the GetGroup method
func NewListActionsRequest ¶
func NewListActionsRequest(server string, group string, params *ListActionsParams) (*http.Request, error)
NewListActionsRequest constructs an http.Request for the ListActions method
func NewListAuditRequest ¶ added in v0.1.1
func NewListAuditRequest(server string, group string, params *ListAuditParams) (*http.Request, error)
NewListAuditRequest constructs an http.Request for the ListAudit method
func NewListBlacklistRequest ¶
func NewListBlacklistRequest(server string, group string, params *ListBlacklistParams) (*http.Request, error)
NewListBlacklistRequest constructs an http.Request for the ListBlacklist method
func NewListDeliveriesRequest ¶ added in v0.1.1
func NewListDeliveriesRequest(server, group string, params *ListDeliveriesParams) (*http.Request, error)
func NewListDeliverysRequest ¶
func NewListDeliverysRequest(server string, group string, params *ListDeliverysParams) (*http.Request, error)
NewListDeliverysRequest constructs an http.Request for the ListDeliverys method
func NewListGroupDirectoryRequest ¶ added in v0.1.1
func NewListGroupDirectoryRequest(server string, params *ListGroupDirectoryParams) (*http.Request, error)
NewListGroupDirectoryRequest constructs an http.Request for the ListGroupDirectory method
func NewListGroupsRequest ¶
func NewListGroupsRequest(server string, params *ListGroupsParams) (*http.Request, error)
NewListGroupsRequest constructs an http.Request for the ListGroups method
func NewListHitsRequest ¶
NewListHitsRequest constructs an http.Request for the ListHits method
func NewListMembersRequest ¶
func NewListMembersRequest(server string, group string, params *ListMembersParams) (*http.Request, error)
NewListMembersRequest constructs an http.Request for the ListMembers method
func NewListMessagesRequest ¶
func NewListMessagesRequest(server string, group string, params *ListMessagesParams) (*http.Request, error)
NewListMessagesRequest constructs an http.Request for the ListMessages method
func NewListMyGroupsRequest ¶
func NewListMyGroupsRequest(server string, params *ListMyGroupsParams) (*http.Request, error)
NewListMyGroupsRequest constructs an http.Request for the ListMyGroups method
func NewListReportsRequest ¶
func NewListReportsRequest(server string, group string, params *ListReportsParams) (*http.Request, error)
NewListReportsRequest constructs an http.Request for the ListReports method
func NewListSubscriptionsRequest ¶
func NewListSubscriptionsRequest(server string, group string, params *ListSubscriptionsParams) (*http.Request, error)
NewListSubscriptionsRequest constructs an http.Request for the ListSubscriptions method
func NewListWarningsRequest ¶
func NewListWarningsRequest(server string, group string, params *ListWarningsParams) (*http.Request, error)
NewListWarningsRequest constructs an http.Request for the ListWarnings method
func NewListWatchRequest ¶
func NewListWatchRequest(server string, group string, params *ListWatchParams) (*http.Request, error)
NewListWatchRequest constructs an http.Request for the ListWatch method
Types ¶
type Action ¶
type Action struct {
Actor Actor `json:"actor"`
Capability string `json:"capability"`
Command ActionCommand `json:"command"`
Created time.Time `json:"created"`
Group string `json:"group"`
Id string `json:"id"`
// LeaseUntil Execution lease deadline; present only while executing.
LeaseUntil *time.Time `json:"lease_until,omitempty"`
Result string `json:"result"`
State ActionState `json:"state"`
}
Action defines model for Action.
type ActionCommand ¶
type ActionCommand struct {
Enabled *bool `json:"enabled,omitempty"`
Kind ActionCommandKind `json:"kind"`
Message *string `json:"message,omitempty"`
Receiver *string `json:"receiver,omitempty"`
Seconds *int64 `json:"seconds,omitempty"`
Target *string `json:"target,omitempty"`
Text *string `json:"text,omitempty"`
}
ActionCommand defines model for ActionCommand.
type ActionCommandKind ¶
type ActionCommandKind string
ActionCommandKind defines model for ActionCommand.Kind.
const ( ActionCommandKindAiExecute ActionCommandKind = "ai_execute" ActionCommandKindAnalyze ActionCommandKind = "analyze" ActionCommandKindApply ActionCommandKind = "apply" ActionCommandKindApprove ActionCommandKind = "approve" ActionCommandKindBlacklist ActionCommandKind = "blacklist" ActionCommandKindCancelAction ActionCommandKind = "cancel_action" ActionCommandKindCard ActionCommandKind = "card" ActionCommandKindCardPreview ActionCommandKind = "card_preview" ActionCommandKindDice ActionCommandKind = "dice" ActionCommandKindExempt ActionCommandKind = "exempt" ActionCommandKindExtend ActionCommandKind = "extend" ActionCommandKindFeedback ActionCommandKind = "feedback" ActionCommandKindForward ActionCommandKind = "forward" ActionCommandKindKick ActionCommandKind = "kick" ActionCommandKindMute ActionCommandKind = "mute" ActionCommandKindPassword ActionCommandKind = "password" ActionCommandKindPreview ActionCommandKind = "preview" ActionCommandKindRecall ActionCommandKind = "recall" ActionCommandKindRecheck ActionCommandKind = "recheck" ActionCommandKindRemind ActionCommandKind = "remind" ActionCommandKindReport ActionCommandKind = "report" ActionCommandKindRetryAction ActionCommandKind = "retry_action" ActionCommandKindRule ActionCommandKind = "rule" ActionCommandKindSelfMute ActionCommandKind = "self_mute" ActionCommandKindSend ActionCommandKind = "send" ActionCommandKindSubscribe ActionCommandKind = "subscribe" ActionCommandKindUnblacklist ActionCommandKind = "unblacklist" ActionCommandKindUnexempt ActionCommandKind = "unexempt" ActionCommandKindUnmute ActionCommandKind = "unmute" ActionCommandKindWarn ActionCommandKind = "warn" ActionCommandKindWatch ActionCommandKind = "watch" ActionCommandKindWelcome ActionCommandKind = "welcome" )
Defines values for ActionCommandKind.
func (ActionCommandKind) Valid ¶
func (e ActionCommandKind) Valid() bool
Valid indicates whether the value is a known member of the ActionCommandKind enum.
type ActionPage ¶
type ActionPage struct {
Items []Action `json:"items"`
// NextCursor Opaque cursor for the next scan, or empty when exhausted. A filtered page may be empty with a nonempty cursor.
NextCursor string `json:"next_cursor"`
}
ActionPage defines model for ActionPage.
type ActionState ¶
type ActionState string
ActionState defines model for Action.State.
const ( ActionStateCancelled ActionState = "cancelled" ActionStateExecuting ActionState = "executing" ActionStateFailed ActionState = "failed" ActionStatePending ActionState = "pending" ActionStateSucceeded ActionState = "succeeded" ActionStateUnknown ActionState = "unknown" )
Defines values for ActionState.
func (ActionState) Valid ¶
func (e ActionState) Valid() bool
Valid indicates whether the value is a known member of the ActionState enum.
type AiExecuteCommand ¶
type AiExecuteCommand struct {
Kind AiExecuteCommandKind `json:"kind"`
Target string `json:"target"`
}
AiExecuteCommand Management command; requires current group-scoped capability.
type AiExecuteCommandKind ¶
type AiExecuteCommandKind string
AiExecuteCommandKind defines model for AiExecuteCommand.Kind.
const (
AiExecuteCommandKindAiExecute AiExecuteCommandKind = "ai_execute"
)
Defines values for AiExecuteCommandKind.
func (AiExecuteCommandKind) Valid ¶
func (e AiExecuteCommandKind) Valid() bool
Valid indicates whether the value is a known member of the AiExecuteCommandKind enum.
type AnalyzeCommand ¶
type AnalyzeCommand struct {
Kind AnalyzeCommandKind `json:"kind"`
Target string `json:"target"`
}
AnalyzeCommand Management command; requires current group-scoped capability.
type AnalyzeCommandKind ¶
type AnalyzeCommandKind string
AnalyzeCommandKind defines model for AnalyzeCommand.Kind.
const (
AnalyzeCommandKindAnalyze AnalyzeCommandKind = "analyze"
)
Defines values for AnalyzeCommandKind.
func (AnalyzeCommandKind) Valid ¶
func (e AnalyzeCommandKind) Valid() bool
Valid indicates whether the value is a known member of the AnalyzeCommandKind enum.
type ApplyCommand ¶
type ApplyCommand struct {
Kind ApplyCommandKind `json:"kind"`
}
ApplyCommand User command; caller only.
type ApplyCommandKind ¶
type ApplyCommandKind string
ApplyCommandKind defines model for ApplyCommand.Kind.
const (
ApplyCommandKindApply ApplyCommandKind = "apply"
)
Defines values for ApplyCommandKind.
func (ApplyCommandKind) Valid ¶
func (e ApplyCommandKind) Valid() bool
Valid indicates whether the value is a known member of the ApplyCommandKind enum.
type AuditEntry ¶ added in v0.1.1
type AuditEntry struct {
Action string `json:"action"`
Actor string `json:"actor"`
Id string `json:"id"`
Result string `json:"result"`
Target string `json:"target"`
Time time.Time `json:"time"`
}
AuditEntry defines model for AuditEntry.
type AuditPage ¶ added in v0.1.1
type AuditPage struct {
Items []AuditEntry `json:"items"`
// NextCursor Opaque cursor for the next scan, or empty when exhausted.
NextCursor string `json:"next_cursor"`
}
AuditPage defines model for AuditPage.
type BatchCommand ¶
type BatchCommand struct {
// contains filtered or unexported fields
}
BatchCommand defines model for BatchCommand.
func (BatchCommand) AsCardBatchCommand ¶
func (t BatchCommand) AsCardBatchCommand() (CardBatchCommand, error)
AsCardBatchCommand returns the union data inside the BatchCommand as a CardBatchCommand
func (BatchCommand) AsExemptBatchCommand ¶
func (t BatchCommand) AsExemptBatchCommand() (ExemptBatchCommand, error)
AsExemptBatchCommand returns the union data inside the BatchCommand as a ExemptBatchCommand
func (BatchCommand) AsExtendBatchCommand ¶
func (t BatchCommand) AsExtendBatchCommand() (ExtendBatchCommand, error)
AsExtendBatchCommand returns the union data inside the BatchCommand as a ExtendBatchCommand
func (BatchCommand) AsKickBatchCommand ¶
func (t BatchCommand) AsKickBatchCommand() (KickBatchCommand, error)
AsKickBatchCommand returns the union data inside the BatchCommand as a KickBatchCommand
func (BatchCommand) AsMuteBatchCommand ¶
func (t BatchCommand) AsMuteBatchCommand() (MuteBatchCommand, error)
AsMuteBatchCommand returns the union data inside the BatchCommand as a MuteBatchCommand
func (BatchCommand) AsRecheckBatchCommand ¶
func (t BatchCommand) AsRecheckBatchCommand() (RecheckBatchCommand, error)
AsRecheckBatchCommand returns the union data inside the BatchCommand as a RecheckBatchCommand
func (BatchCommand) AsUnexemptBatchCommand ¶ added in v0.1.1
func (t BatchCommand) AsUnexemptBatchCommand() (UnexemptBatchCommand, error)
AsUnexemptBatchCommand returns the union data inside the BatchCommand as a UnexemptBatchCommand
func (BatchCommand) AsUnmuteBatchCommand ¶
func (t BatchCommand) AsUnmuteBatchCommand() (UnmuteBatchCommand, error)
AsUnmuteBatchCommand returns the union data inside the BatchCommand as a UnmuteBatchCommand
func (BatchCommand) AsWarnBatchCommand ¶
func (t BatchCommand) AsWarnBatchCommand() (WarnBatchCommand, error)
AsWarnBatchCommand returns the union data inside the BatchCommand as a WarnBatchCommand
func (BatchCommand) Discriminator ¶
func (t BatchCommand) Discriminator() (string, error)
func (*BatchCommand) FromCardBatchCommand ¶
func (t *BatchCommand) FromCardBatchCommand(v CardBatchCommand) error
FromCardBatchCommand overwrites any union data inside the BatchCommand as the provided CardBatchCommand
func (*BatchCommand) FromExemptBatchCommand ¶
func (t *BatchCommand) FromExemptBatchCommand(v ExemptBatchCommand) error
FromExemptBatchCommand overwrites any union data inside the BatchCommand as the provided ExemptBatchCommand
func (*BatchCommand) FromExtendBatchCommand ¶
func (t *BatchCommand) FromExtendBatchCommand(v ExtendBatchCommand) error
FromExtendBatchCommand overwrites any union data inside the BatchCommand as the provided ExtendBatchCommand
func (*BatchCommand) FromKickBatchCommand ¶
func (t *BatchCommand) FromKickBatchCommand(v KickBatchCommand) error
FromKickBatchCommand overwrites any union data inside the BatchCommand as the provided KickBatchCommand
func (*BatchCommand) FromMuteBatchCommand ¶
func (t *BatchCommand) FromMuteBatchCommand(v MuteBatchCommand) error
FromMuteBatchCommand overwrites any union data inside the BatchCommand as the provided MuteBatchCommand
func (*BatchCommand) FromRecheckBatchCommand ¶
func (t *BatchCommand) FromRecheckBatchCommand(v RecheckBatchCommand) error
FromRecheckBatchCommand overwrites any union data inside the BatchCommand as the provided RecheckBatchCommand
func (*BatchCommand) FromUnexemptBatchCommand ¶ added in v0.1.1
func (t *BatchCommand) FromUnexemptBatchCommand(v UnexemptBatchCommand) error
FromUnexemptBatchCommand overwrites any union data inside the BatchCommand as the provided UnexemptBatchCommand
func (*BatchCommand) FromUnmuteBatchCommand ¶
func (t *BatchCommand) FromUnmuteBatchCommand(v UnmuteBatchCommand) error
FromUnmuteBatchCommand overwrites any union data inside the BatchCommand as the provided UnmuteBatchCommand
func (*BatchCommand) FromWarnBatchCommand ¶
func (t *BatchCommand) FromWarnBatchCommand(v WarnBatchCommand) error
FromWarnBatchCommand overwrites any union data inside the BatchCommand as the provided WarnBatchCommand
func (BatchCommand) MarshalJSON ¶
func (t BatchCommand) MarshalJSON() ([]byte, error)
func (*BatchCommand) MergeCardBatchCommand ¶
func (t *BatchCommand) MergeCardBatchCommand(v CardBatchCommand) error
MergeCardBatchCommand performs a merge with any union data inside the BatchCommand, using the provided CardBatchCommand
func (*BatchCommand) MergeExemptBatchCommand ¶
func (t *BatchCommand) MergeExemptBatchCommand(v ExemptBatchCommand) error
MergeExemptBatchCommand performs a merge with any union data inside the BatchCommand, using the provided ExemptBatchCommand
func (*BatchCommand) MergeExtendBatchCommand ¶
func (t *BatchCommand) MergeExtendBatchCommand(v ExtendBatchCommand) error
MergeExtendBatchCommand performs a merge with any union data inside the BatchCommand, using the provided ExtendBatchCommand
func (*BatchCommand) MergeKickBatchCommand ¶
func (t *BatchCommand) MergeKickBatchCommand(v KickBatchCommand) error
MergeKickBatchCommand performs a merge with any union data inside the BatchCommand, using the provided KickBatchCommand
func (*BatchCommand) MergeMuteBatchCommand ¶
func (t *BatchCommand) MergeMuteBatchCommand(v MuteBatchCommand) error
MergeMuteBatchCommand performs a merge with any union data inside the BatchCommand, using the provided MuteBatchCommand
func (*BatchCommand) MergeRecheckBatchCommand ¶
func (t *BatchCommand) MergeRecheckBatchCommand(v RecheckBatchCommand) error
MergeRecheckBatchCommand performs a merge with any union data inside the BatchCommand, using the provided RecheckBatchCommand
func (*BatchCommand) MergeUnexemptBatchCommand ¶ added in v0.1.1
func (t *BatchCommand) MergeUnexemptBatchCommand(v UnexemptBatchCommand) error
MergeUnexemptBatchCommand performs a merge with any union data inside the BatchCommand, using the provided UnexemptBatchCommand
func (*BatchCommand) MergeUnmuteBatchCommand ¶
func (t *BatchCommand) MergeUnmuteBatchCommand(v UnmuteBatchCommand) error
MergeUnmuteBatchCommand performs a merge with any union data inside the BatchCommand, using the provided UnmuteBatchCommand
func (*BatchCommand) MergeWarnBatchCommand ¶
func (t *BatchCommand) MergeWarnBatchCommand(v WarnBatchCommand) error
MergeWarnBatchCommand performs a merge with any union data inside the BatchCommand, using the provided WarnBatchCommand
func (*BatchCommand) UnmarshalJSON ¶
func (t *BatchCommand) UnmarshalJSON(b []byte) error
func (BatchCommand) ValueByDiscriminator ¶
func (t BatchCommand) ValueByDiscriminator() (interface{}, error)
type BatchJSONRequestBody ¶
type BatchJSONRequestBody = Bulk
BatchJSONRequestBody defines body for Batch for application/json ContentType.
type BatchParams ¶
type BatchParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
BatchParams defines parameters for Batch.
type BatchResponse ¶
type BatchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BulkResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Problem
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseBatchResponse ¶
func ParseBatchResponse(rsp *http.Response) (*BatchResponse, error)
ParseBatchResponse parses an HTTP response from a BatchWithResponse call
func (BatchResponse) ContentType ¶
func (r BatchResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BatchResponse) GetBody ¶
func (r BatchResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (BatchResponse) GetJSON200 ¶
func (r BatchResponse) GetJSON200() *BulkResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (BatchResponse) GetJSON400 ¶
func (r BatchResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (BatchResponse) GetJSON401 ¶
func (r BatchResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (BatchResponse) GetJSON403 ¶
func (r BatchResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (BatchResponse) GetJSON404 ¶
func (r BatchResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (BatchResponse) GetJSON409 ¶
func (r BatchResponse) GetJSON409() *Problem
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (BatchResponse) GetJSON422 ¶
func (r BatchResponse) GetJSON422() *Problem
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (BatchResponse) GetJSON503 ¶
func (r BatchResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (BatchResponse) Status ¶
func (r BatchResponse) Status() string
Status returns HTTPResponse.Status
func (BatchResponse) StatusCode ¶
func (r BatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Blacklist ¶
type Blacklist struct {
Created *time.Time `json:"created,omitempty"`
Id string `json:"id"`
Permanent bool `json:"permanent"`
Reason string `json:"reason"`
Until time.Time `json:"until"`
Updated *time.Time `json:"updated,omitempty"`
}
Blacklist defines model for Blacklist.
type BlacklistCommand ¶
type BlacklistCommand struct {
Kind BlacklistCommandKind `json:"kind"`
Seconds *int64 `json:"seconds,omitempty"`
Target string `json:"target"`
Text string `json:"text"`
}
BlacklistCommand Management command; requires current group-scoped capability.
type BlacklistCommandKind ¶
type BlacklistCommandKind string
BlacklistCommandKind defines model for BlacklistCommand.Kind.
const (
BlacklistCommandKindBlacklist BlacklistCommandKind = "blacklist"
)
Defines values for BlacklistCommandKind.
func (BlacklistCommandKind) Valid ¶
func (e BlacklistCommandKind) Valid() bool
Valid indicates whether the value is a known member of the BlacklistCommandKind enum.
type BlacklistInput ¶
type BlacklistInput struct {
Groups []string `json:"groups"`
Reason string `json:"reason"`
Remove bool `json:"remove"`
Seconds int64 `json:"seconds"`
Target string `json:"target"`
}
BlacklistInput defines model for BlacklistInput.
type BlacklistPage ¶
type BlacklistPage struct {
Items []Blacklist `json:"items"`
// NextCursor Opaque cursor for the next scan, or empty when exhausted. A filtered page may be empty with a nonempty cursor.
NextCursor string `json:"next_cursor"`
}
BlacklistPage defines model for BlacklistPage.
type BlacklistsJSONRequestBody ¶
type BlacklistsJSONRequestBody = BlacklistInput
BlacklistsJSONRequestBody defines body for Blacklists for application/json ContentType.
type BlacklistsParams ¶
type BlacklistsParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
BlacklistsParams defines parameters for Blacklists.
type BlacklistsResponse ¶
type BlacklistsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Result
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Problem
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseBlacklistsResponse ¶
func ParseBlacklistsResponse(rsp *http.Response) (*BlacklistsResponse, error)
ParseBlacklistsResponse parses an HTTP response from a BlacklistsWithResponse call
func (BlacklistsResponse) ContentType ¶
func (r BlacklistsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BlacklistsResponse) GetBody ¶
func (r BlacklistsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (BlacklistsResponse) GetJSON200 ¶
func (r BlacklistsResponse) GetJSON200() *Result
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (BlacklistsResponse) GetJSON400 ¶
func (r BlacklistsResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (BlacklistsResponse) GetJSON401 ¶
func (r BlacklistsResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (BlacklistsResponse) GetJSON403 ¶
func (r BlacklistsResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (BlacklistsResponse) GetJSON404 ¶
func (r BlacklistsResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (BlacklistsResponse) GetJSON409 ¶
func (r BlacklistsResponse) GetJSON409() *Problem
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (BlacklistsResponse) GetJSON422 ¶
func (r BlacklistsResponse) GetJSON422() *Problem
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (BlacklistsResponse) GetJSON503 ¶
func (r BlacklistsResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (BlacklistsResponse) Status ¶
func (r BlacklistsResponse) Status() string
Status returns HTTPResponse.Status
func (BlacklistsResponse) StatusCode ¶
func (r BlacklistsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Bulk ¶
type Bulk struct {
Command BatchCommand `json:"command"`
Preview bool `json:"preview"`
Targets []string `json:"targets"`
}
Bulk defines model for Bulk.
type BulkResult ¶
type BulkResult struct {
Executed BulkItems `json:"executed"`
Items BulkItems `json:"items"`
Skipped []BulkSkippedItem `json:"skipped"`
}
BulkResult items contains every target in request order. executed contains accepted commands (pending means queued) or projected commands in preview. skipped lists all other targets with a stable code and a display reason. Both lists preserve request order and may be empty.
type BulkSkippedItem ¶ added in v0.1.1
type BulkSkippedItem struct {
// Reason Human-readable explanation in Chinese.
Reason string `json:"reason"`
// ReasonCode Stable reason for localization, e.g. not_found (no member record), not_joined, bot_disabled or action_queue_full.
ReasonCode string `json:"reason_code"`
Target string `json:"target"`
}
BulkSkippedItem defines model for BulkSkippedItem.
type CancelActionCommand ¶ added in v0.1.1
type CancelActionCommand struct {
Kind CancelActionCommandKind `json:"kind"`
Target string `json:"target"`
Text *string `json:"text,omitempty"`
}
CancelActionCommand Management command; cancels a pending bot action without affecting executing or unknown actions.
type CancelActionCommandKind ¶ added in v0.1.1
type CancelActionCommandKind string
CancelActionCommandKind defines model for CancelActionCommand.Kind.
const (
CancelActionCommandKindCancelAction CancelActionCommandKind = "cancel_action"
)
Defines values for CancelActionCommandKind.
func (CancelActionCommandKind) Valid ¶ added in v0.1.1
func (e CancelActionCommandKind) Valid() bool
Valid indicates whether the value is a known member of the CancelActionCommandKind enum.
type CardBatchCommand ¶
type CardBatchCommand struct {
Kind CardBatchCommandKind `json:"kind"`
Text string `json:"text"`
}
CardBatchCommand Management command; requires current group-scoped capability.
type CardBatchCommandKind ¶
type CardBatchCommandKind string
CardBatchCommandKind defines model for CardBatchCommand.Kind.
const (
CardBatchCommandKindCard CardBatchCommandKind = "card"
)
Defines values for CardBatchCommandKind.
func (CardBatchCommandKind) Valid ¶
func (e CardBatchCommandKind) Valid() bool
Valid indicates whether the value is a known member of the CardBatchCommandKind enum.
type CardCommand ¶
type CardCommand struct {
Kind CardCommandKind `json:"kind"`
Target string `json:"target"`
Text string `json:"text"`
}
CardCommand Management command; requires current group-scoped capability.
type CardCommandKind ¶
type CardCommandKind string
CardCommandKind defines model for CardCommand.Kind.
const (
CardCommandKindCard CardCommandKind = "card"
)
Defines values for CardCommandKind.
func (CardCommandKind) Valid ¶
func (e CardCommandKind) Valid() bool
Valid indicates whether the value is a known member of the CardCommandKind enum.
type CardPreviewCommand ¶ added in v0.1.1
type CardPreviewCommand struct {
Kind CardPreviewCommandKind `json:"kind"`
Target string `json:"target"`
// Text Optional candidate card_template override; uses the group's stored card_template when omitted or empty.
Text *string `json:"text,omitempty"`
}
CardPreviewCommand Read-only management command; previews expected card rendering and missing profile fields without queuing bot actions.
type CardPreviewCommandKind ¶ added in v0.1.1
type CardPreviewCommandKind string
CardPreviewCommandKind defines model for CardPreviewCommand.Kind.
const (
CardPreviewCommandKindCardPreview CardPreviewCommandKind = "card_preview"
)
Defines values for CardPreviewCommandKind.
func (CardPreviewCommandKind) Valid ¶ added in v0.1.1
func (e CardPreviewCommandKind) Valid() bool
Valid indicates whether the value is a known member of the CardPreviewCommandKind enum.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) Batch ¶
func (c *Client) Batch(ctx context.Context, group string, params *BatchParams, body BatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
Batch performs a POST /api/v1/groups/{group}/batch (the `Batch` operationId) request. Takes a body of the `application/json` content type.
func (*Client) BatchWithBody ¶
func (c *Client) BatchWithBody(ctx context.Context, group string, params *BatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BatchWithBody performs a POST /api/v1/groups/{group}/batch (the `Batch` operationId) request, with any type of body and a specified content type.
func (*Client) Blacklists ¶
func (c *Client) Blacklists(ctx context.Context, params *BlacklistsParams, body BlacklistsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
Blacklists performs a POST /api/v1/groups/blacklists (the `Blacklists` operationId) request. Takes a body of the `application/json` content type.
func (*Client) BlacklistsWithBody ¶
func (c *Client) BlacklistsWithBody(ctx context.Context, params *BlacklistsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BlacklistsWithBody performs a POST /api/v1/groups/blacklists (the `Blacklists` operationId) request, with any type of body and a specified content type.
func (*Client) Command ¶
func (c *Client) Command(ctx context.Context, group string, params *CommandParams, body CommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
Command performs a POST /api/v1/groups/{group}/commands (the `Command` operationId) request. Takes a body of the `application/json` content type.
func (*Client) CommandWithBody ¶
func (c *Client) CommandWithBody(ctx context.Context, group string, params *CommandParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CommandWithBody performs a POST /api/v1/groups/{group}/commands (the `Command` operationId) request, with any type of body and a specified content type.
func (*Client) ConfigureGroup ¶
func (c *Client) ConfigureGroup(ctx context.Context, group string, params *ConfigureGroupParams, body ConfigureGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfigureGroup performs a PUT /api/v1/groups/{group} (the `ConfigureGroup` operationId) request. Takes a body of the `application/json` content type.
func (*Client) ConfigureGroupWithBody ¶
func (c *Client) ConfigureGroupWithBody(ctx context.Context, group string, params *ConfigureGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfigureGroupWithBody performs a PUT /api/v1/groups/{group} (the `ConfigureGroup` operationId) request, with any type of body and a specified content type.
func (*Client) GetGroup ¶
func (c *Client) GetGroup(ctx context.Context, group string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetGroup performs a GET /api/v1/groups/{group} (the `GetGroup` operationId) request.
func (*Client) ListActions ¶
func (c *Client) ListActions(ctx context.Context, group string, params *ListActionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListActions performs a GET /api/v1/groups/{group}/actions (the `ListActions` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
func (*Client) ListAudit ¶ added in v0.1.1
func (c *Client) ListAudit(ctx context.Context, group string, params *ListAuditParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAudit performs a GET /api/v1/groups/{group}/audit (the `ListAudit` operationId) request.
Ascending record ID in bytewise (C collation) order; requires groups.configure on the target group. Contains only sanitized management audit metadata and never records or exposes recalled message bodies.
func (*Client) ListBlacklist ¶
func (c *Client) ListBlacklist(ctx context.Context, group string, params *ListBlacklistParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListBlacklist performs a GET /api/v1/groups/{group}/blacklist (the `ListBlacklist` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
func (*Client) ListDeliveries ¶ added in v0.1.1
func (c *Client) ListDeliveries(ctx context.Context, group string, params *ListDeliveriesParams, editors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListDeliverys ¶
func (c *Client) ListDeliverys(ctx context.Context, group string, params *ListDeliverysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDeliverys performs a GET /api/v1/groups/{group}/deliveries (the `ListDeliverys` operationId) request.
Lists delivery results.
func (*Client) ListGroupDirectory ¶ added in v0.1.1
func (c *Client) ListGroupDirectory(ctx context.Context, params *ListGroupDirectoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListGroupDirectory performs a GET /api/v1/groups/directory (the `ListGroupDirectory` operationId) request.
Authenticated user discovery directory for managed QQ groups with discoverable=true. Groups requiring student verification are visible only when the caller currently holds valid campus eligibility in that school; groups without student requirement remain publicly discoverable to authenticated users. Discloses only masked group numbers, admission summary and the caller's own joined/state.
func (*Client) ListGroups ¶
func (c *Client) ListGroups(ctx context.Context, params *ListGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListGroups performs a GET /api/v1/groups (the `ListGroups` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
func (*Client) ListHits ¶
func (c *Client) ListHits(ctx context.Context, group string, params *ListHitsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListHits performs a GET /api/v1/groups/{group}/hits (the `ListHits` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
func (*Client) ListMembers ¶
func (c *Client) ListMembers(ctx context.Context, group string, params *ListMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListMembers performs a GET /api/v1/groups/{group}/members (the `ListMembers` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
func (*Client) ListMessages ¶
func (c *Client) ListMessages(ctx context.Context, group string, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListMessages performs a GET /api/v1/groups/{group}/messages (the `ListMessages` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
func (*Client) ListMyGroups ¶
func (c *Client) ListMyGroups(ctx context.Context, params *ListMyGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListMyGroups performs a GET /api/v1/groups/me (the `ListMyGroups` operationId) request.
Authenticated user only; no owner/issuer/subject parameter or management role is accepted. Includes joined memberships and active applications in configured groups; excludes removed or unmanaged groups. Ordered by group ID in bytewise ascending order. Read-only: no admission, punishment, inbox or audit writes.
func (*Client) ListReports ¶
func (c *Client) ListReports(ctx context.Context, group string, params *ListReportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListReports performs a GET /api/v1/groups/{group}/reports (the `ListReports` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
func (*Client) ListSubscriptions ¶
func (c *Client) ListSubscriptions(ctx context.Context, group string, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSubscriptions performs a GET /api/v1/groups/{group}/subscriptions (the `ListSubscriptions` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
func (*Client) ListWarnings ¶
func (c *Client) ListWarnings(ctx context.Context, group string, params *ListWarningsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListWarnings performs a GET /api/v1/groups/{group}/warnings (the `ListWarnings` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
func (*Client) ListWatch ¶
func (c *Client) ListWatch(ctx context.Context, group string, params *ListWatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListWatch performs a GET /api/v1/groups/{group}/watch (the `ListWatch` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
func (*Client) OwnProgress ¶
func (c *Client) OwnProgress(ctx context.Context, group string, reqEditors ...RequestEditorFn) (*http.Response, error)
OwnProgress performs a GET /api/v1/groups/{group}/progress (the `OwnProgress` operationId) request.
type ClientInterface ¶
type ClientInterface interface {
// ListGroups performs a GET /api/v1/groups (the `ListGroups` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
ListGroups(ctx context.Context, params *ListGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// BlacklistsWithBody performs a POST /api/v1/groups/blacklists (the `Blacklists` operationId) request,
// with any type of body and a specified content type.
BlacklistsWithBody(ctx context.Context, params *BlacklistsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// Blacklists performs a POST /api/v1/groups/blacklists (the `Blacklists` operationId) request.
// Takes a body of the `application/json` content type.
Blacklists(ctx context.Context, params *BlacklistsParams, body BlacklistsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListGroupDirectory performs a GET /api/v1/groups/directory (the `ListGroupDirectory` operationId) request.
//
// Authenticated user discovery directory for managed QQ groups with discoverable=true. Groups requiring student verification are visible only when the caller currently holds valid campus eligibility in that school; groups without student requirement remain publicly discoverable to authenticated users. Discloses only masked group numbers, admission summary and the caller's own joined/state.
ListGroupDirectory(ctx context.Context, params *ListGroupDirectoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMyGroups performs a GET /api/v1/groups/me (the `ListMyGroups` operationId) request.
//
// Authenticated user only; no owner/issuer/subject parameter or management role is accepted. Includes joined memberships and active applications in configured groups; excludes removed or unmanaged groups. Ordered by group ID in bytewise ascending order. Read-only: no admission, punishment, inbox or audit writes.
ListMyGroups(ctx context.Context, params *ListMyGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetGroup performs a GET /api/v1/groups/{group} (the `GetGroup` operationId) request.
GetGroup(ctx context.Context, group string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigureGroupWithBody performs a PUT /api/v1/groups/{group} (the `ConfigureGroup` operationId) request,
// with any type of body and a specified content type.
ConfigureGroupWithBody(ctx context.Context, group string, params *ConfigureGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigureGroup performs a PUT /api/v1/groups/{group} (the `ConfigureGroup` operationId) request.
// Takes a body of the `application/json` content type.
ConfigureGroup(ctx context.Context, group string, params *ConfigureGroupParams, body ConfigureGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListActions performs a GET /api/v1/groups/{group}/actions (the `ListActions` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
ListActions(ctx context.Context, group string, params *ListActionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAudit performs a GET /api/v1/groups/{group}/audit (the `ListAudit` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; requires groups.configure on the target group. Contains only sanitized management audit metadata and never records or exposes recalled message bodies.
ListAudit(ctx context.Context, group string, params *ListAuditParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// BatchWithBody performs a POST /api/v1/groups/{group}/batch (the `Batch` operationId) request,
// with any type of body and a specified content type.
BatchWithBody(ctx context.Context, group string, params *BatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// Batch performs a POST /api/v1/groups/{group}/batch (the `Batch` operationId) request.
// Takes a body of the `application/json` content type.
Batch(ctx context.Context, group string, params *BatchParams, body BatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListBlacklist performs a GET /api/v1/groups/{group}/blacklist (the `ListBlacklist` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
ListBlacklist(ctx context.Context, group string, params *ListBlacklistParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CommandWithBody performs a POST /api/v1/groups/{group}/commands (the `Command` operationId) request,
// with any type of body and a specified content type.
CommandWithBody(ctx context.Context, group string, params *CommandParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// Command performs a POST /api/v1/groups/{group}/commands (the `Command` operationId) request.
// Takes a body of the `application/json` content type.
Command(ctx context.Context, group string, params *CommandParams, body CommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDeliverys performs a GET /api/v1/groups/{group}/deliveries (the `ListDeliverys` operationId) request.
//
// Lists delivery results.
ListDeliverys(ctx context.Context, group string, params *ListDeliverysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListHits performs a GET /api/v1/groups/{group}/hits (the `ListHits` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
ListHits(ctx context.Context, group string, params *ListHitsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMembers performs a GET /api/v1/groups/{group}/members (the `ListMembers` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
ListMembers(ctx context.Context, group string, params *ListMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMessages performs a GET /api/v1/groups/{group}/messages (the `ListMessages` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
ListMessages(ctx context.Context, group string, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// OwnProgress performs a GET /api/v1/groups/{group}/progress (the `OwnProgress` operationId) request.
OwnProgress(ctx context.Context, group string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListReports performs a GET /api/v1/groups/{group}/reports (the `ListReports` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
ListReports(ctx context.Context, group string, params *ListReportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSubscriptions performs a GET /api/v1/groups/{group}/subscriptions (the `ListSubscriptions` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
ListSubscriptions(ctx context.Context, group string, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListWarnings performs a GET /api/v1/groups/{group}/warnings (the `ListWarnings` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
ListWarnings(ctx context.Context, group string, params *ListWarningsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListWatch performs a GET /api/v1/groups/{group}/watch (the `ListWatch` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
ListWatch(ctx context.Context, group string, params *ListWatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) BatchWithBodyWithResponse ¶
func (c *ClientWithResponses) BatchWithBodyWithResponse(ctx context.Context, group string, params *BatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchResponse, error)
BatchWithBodyWithResponse performs a POST /api/v1/groups/{group}/batch (the `Batch` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) BatchWithResponse ¶
func (c *ClientWithResponses) BatchWithResponse(ctx context.Context, group string, params *BatchParams, body BatchJSONRequestBody, reqEditors ...RequestEditorFn) (*BatchResponse, error)
BatchWithResponse performs a POST /api/v1/groups/{group}/batch (the `Batch` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) BlacklistsWithBodyWithResponse ¶
func (c *ClientWithResponses) BlacklistsWithBodyWithResponse(ctx context.Context, params *BlacklistsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BlacklistsResponse, error)
BlacklistsWithBodyWithResponse performs a POST /api/v1/groups/blacklists (the `Blacklists` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) BlacklistsWithResponse ¶
func (c *ClientWithResponses) BlacklistsWithResponse(ctx context.Context, params *BlacklistsParams, body BlacklistsJSONRequestBody, reqEditors ...RequestEditorFn) (*BlacklistsResponse, error)
BlacklistsWithResponse performs a POST /api/v1/groups/blacklists (the `Blacklists` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) CommandWithBodyWithResponse ¶
func (c *ClientWithResponses) CommandWithBodyWithResponse(ctx context.Context, group string, params *CommandParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CommandResponse, error)
CommandWithBodyWithResponse performs a POST /api/v1/groups/{group}/commands (the `Command` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) CommandWithResponse ¶
func (c *ClientWithResponses) CommandWithResponse(ctx context.Context, group string, params *CommandParams, body CommandJSONRequestBody, reqEditors ...RequestEditorFn) (*CommandResponse, error)
CommandWithResponse performs a POST /api/v1/groups/{group}/commands (the `Command` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ConfigureGroupWithBodyWithResponse ¶
func (c *ClientWithResponses) ConfigureGroupWithBodyWithResponse(ctx context.Context, group string, params *ConfigureGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigureGroupResponse, error)
ConfigureGroupWithBodyWithResponse performs a PUT /api/v1/groups/{group} (the `ConfigureGroup` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ConfigureGroupWithResponse ¶
func (c *ClientWithResponses) ConfigureGroupWithResponse(ctx context.Context, group string, params *ConfigureGroupParams, body ConfigureGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigureGroupResponse, error)
ConfigureGroupWithResponse performs a PUT /api/v1/groups/{group} (the `ConfigureGroup` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetGroupWithResponse ¶
func (c *ClientWithResponses) GetGroupWithResponse(ctx context.Context, group string, reqEditors ...RequestEditorFn) (*GetGroupResponse, error)
GetGroupWithResponse performs a GET /api/v1/groups/{group} (the `GetGroup` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListActionsWithResponse ¶
func (c *ClientWithResponses) ListActionsWithResponse(ctx context.Context, group string, params *ListActionsParams, reqEditors ...RequestEditorFn) (*ListActionsResponse, error)
ListActionsWithResponse performs a GET /api/v1/groups/{group}/actions (the `ListActions` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListAuditWithResponse ¶ added in v0.1.1
func (c *ClientWithResponses) ListAuditWithResponse(ctx context.Context, group string, params *ListAuditParams, reqEditors ...RequestEditorFn) (*ListAuditResponse, error)
ListAuditWithResponse performs a GET /api/v1/groups/{group}/audit (the `ListAudit` operationId) request.
Ascending record ID in bytewise (C collation) order; requires groups.configure on the target group. Contains only sanitized management audit metadata and never records or exposes recalled message bodies.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListBlacklistWithResponse ¶
func (c *ClientWithResponses) ListBlacklistWithResponse(ctx context.Context, group string, params *ListBlacklistParams, reqEditors ...RequestEditorFn) (*ListBlacklistResponse, error)
ListBlacklistWithResponse performs a GET /api/v1/groups/{group}/blacklist (the `ListBlacklist` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListDeliveries ¶ added in v0.1.1
func (c *ClientWithResponses) ListDeliveries(ctx context.Context, group string, params *ListDeliveriesParams, editors ...RequestEditorFn) (*http.Response, error)
func (*ClientWithResponses) ListDeliveriesWithResponse ¶ added in v0.1.1
func (c *ClientWithResponses) ListDeliveriesWithResponse(ctx context.Context, group string, params *ListDeliveriesParams, editors ...RequestEditorFn) (*ListDeliveriesResponse, error)
func (*ClientWithResponses) ListDeliverysWithResponse ¶
func (c *ClientWithResponses) ListDeliverysWithResponse(ctx context.Context, group string, params *ListDeliverysParams, reqEditors ...RequestEditorFn) (*ListDeliverysResponse, error)
ListDeliverysWithResponse performs a GET /api/v1/groups/{group}/deliveries (the `ListDeliverys` operationId) request.
Lists delivery results.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListGroupDirectoryWithResponse ¶ added in v0.1.1
func (c *ClientWithResponses) ListGroupDirectoryWithResponse(ctx context.Context, params *ListGroupDirectoryParams, reqEditors ...RequestEditorFn) (*ListGroupDirectoryResponse, error)
ListGroupDirectoryWithResponse performs a GET /api/v1/groups/directory (the `ListGroupDirectory` operationId) request.
Authenticated user discovery directory for managed QQ groups with discoverable=true. Groups requiring student verification are visible only when the caller currently holds valid campus eligibility in that school; groups without student requirement remain publicly discoverable to authenticated users. Discloses only masked group numbers, admission summary and the caller's own joined/state.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListGroupsWithResponse ¶
func (c *ClientWithResponses) ListGroupsWithResponse(ctx context.Context, params *ListGroupsParams, reqEditors ...RequestEditorFn) (*ListGroupsResponse, error)
ListGroupsWithResponse performs a GET /api/v1/groups (the `ListGroups` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListHitsWithResponse ¶
func (c *ClientWithResponses) ListHitsWithResponse(ctx context.Context, group string, params *ListHitsParams, reqEditors ...RequestEditorFn) (*ListHitsResponse, error)
ListHitsWithResponse performs a GET /api/v1/groups/{group}/hits (the `ListHits` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListMembersWithResponse ¶
func (c *ClientWithResponses) ListMembersWithResponse(ctx context.Context, group string, params *ListMembersParams, reqEditors ...RequestEditorFn) (*ListMembersResponse, error)
ListMembersWithResponse performs a GET /api/v1/groups/{group}/members (the `ListMembers` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListMessagesWithResponse ¶
func (c *ClientWithResponses) ListMessagesWithResponse(ctx context.Context, group string, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*ListMessagesResponse, error)
ListMessagesWithResponse performs a GET /api/v1/groups/{group}/messages (the `ListMessages` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListMyGroupsWithResponse ¶
func (c *ClientWithResponses) ListMyGroupsWithResponse(ctx context.Context, params *ListMyGroupsParams, reqEditors ...RequestEditorFn) (*ListMyGroupsResponse, error)
ListMyGroupsWithResponse performs a GET /api/v1/groups/me (the `ListMyGroups` operationId) request.
Authenticated user only; no owner/issuer/subject parameter or management role is accepted. Includes joined memberships and active applications in configured groups; excludes removed or unmanaged groups. Ordered by group ID in bytewise ascending order. Read-only: no admission, punishment, inbox or audit writes.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListReportsWithResponse ¶
func (c *ClientWithResponses) ListReportsWithResponse(ctx context.Context, group string, params *ListReportsParams, reqEditors ...RequestEditorFn) (*ListReportsResponse, error)
ListReportsWithResponse performs a GET /api/v1/groups/{group}/reports (the `ListReports` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListSubscriptionsWithResponse ¶
func (c *ClientWithResponses) ListSubscriptionsWithResponse(ctx context.Context, group string, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListSubscriptionsResponse, error)
ListSubscriptionsWithResponse performs a GET /api/v1/groups/{group}/subscriptions (the `ListSubscriptions` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListWarningsWithResponse ¶
func (c *ClientWithResponses) ListWarningsWithResponse(ctx context.Context, group string, params *ListWarningsParams, reqEditors ...RequestEditorFn) (*ListWarningsResponse, error)
ListWarningsWithResponse performs a GET /api/v1/groups/{group}/warnings (the `ListWarnings` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListWatchWithResponse ¶
func (c *ClientWithResponses) ListWatchWithResponse(ctx context.Context, group string, params *ListWatchParams, reqEditors ...RequestEditorFn) (*ListWatchResponse, error)
ListWatchWithResponse performs a GET /api/v1/groups/{group}/watch (the `ListWatch` operationId) request.
Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) OwnProgressWithResponse ¶
func (c *ClientWithResponses) OwnProgressWithResponse(ctx context.Context, group string, reqEditors ...RequestEditorFn) (*OwnProgressResponse, error)
OwnProgressWithResponse performs a GET /api/v1/groups/{group}/progress (the `OwnProgress` operationId) request.
Returns a wrapper object for the known response body format(s).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListGroupsWithResponse performs a GET /api/v1/groups (the `ListGroups` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
//
// Returns a wrapper object for the known response body format(s).
ListGroupsWithResponse(ctx context.Context, params *ListGroupsParams, reqEditors ...RequestEditorFn) (*ListGroupsResponse, error)
// BlacklistsWithBodyWithResponse performs a POST /api/v1/groups/blacklists (the `Blacklists` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
BlacklistsWithBodyWithResponse(ctx context.Context, params *BlacklistsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BlacklistsResponse, error)
// BlacklistsWithResponse performs a POST /api/v1/groups/blacklists (the `Blacklists` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
BlacklistsWithResponse(ctx context.Context, params *BlacklistsParams, body BlacklistsJSONRequestBody, reqEditors ...RequestEditorFn) (*BlacklistsResponse, error)
// ListGroupDirectoryWithResponse performs a GET /api/v1/groups/directory (the `ListGroupDirectory` operationId) request.
//
// Authenticated user discovery directory for managed QQ groups with discoverable=true. Groups requiring student verification are visible only when the caller currently holds valid campus eligibility in that school; groups without student requirement remain publicly discoverable to authenticated users. Discloses only masked group numbers, admission summary and the caller's own joined/state.
//
// Returns a wrapper object for the known response body format(s).
ListGroupDirectoryWithResponse(ctx context.Context, params *ListGroupDirectoryParams, reqEditors ...RequestEditorFn) (*ListGroupDirectoryResponse, error)
// ListMyGroupsWithResponse performs a GET /api/v1/groups/me (the `ListMyGroups` operationId) request.
//
// Authenticated user only; no owner/issuer/subject parameter or management role is accepted. Includes joined memberships and active applications in configured groups; excludes removed or unmanaged groups. Ordered by group ID in bytewise ascending order. Read-only: no admission, punishment, inbox or audit writes.
//
// Returns a wrapper object for the known response body format(s).
ListMyGroupsWithResponse(ctx context.Context, params *ListMyGroupsParams, reqEditors ...RequestEditorFn) (*ListMyGroupsResponse, error)
// GetGroupWithResponse performs a GET /api/v1/groups/{group} (the `GetGroup` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
GetGroupWithResponse(ctx context.Context, group string, reqEditors ...RequestEditorFn) (*GetGroupResponse, error)
// ConfigureGroupWithBodyWithResponse performs a PUT /api/v1/groups/{group} (the `ConfigureGroup` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
ConfigureGroupWithBodyWithResponse(ctx context.Context, group string, params *ConfigureGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigureGroupResponse, error)
// ConfigureGroupWithResponse performs a PUT /api/v1/groups/{group} (the `ConfigureGroup` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
ConfigureGroupWithResponse(ctx context.Context, group string, params *ConfigureGroupParams, body ConfigureGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigureGroupResponse, error)
// ListActionsWithResponse performs a GET /api/v1/groups/{group}/actions (the `ListActions` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
//
// Returns a wrapper object for the known response body format(s).
ListActionsWithResponse(ctx context.Context, group string, params *ListActionsParams, reqEditors ...RequestEditorFn) (*ListActionsResponse, error)
// ListAuditWithResponse performs a GET /api/v1/groups/{group}/audit (the `ListAudit` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; requires groups.configure on the target group. Contains only sanitized management audit metadata and never records or exposes recalled message bodies.
//
// Returns a wrapper object for the known response body format(s).
ListAuditWithResponse(ctx context.Context, group string, params *ListAuditParams, reqEditors ...RequestEditorFn) (*ListAuditResponse, error)
// BatchWithBodyWithResponse performs a POST /api/v1/groups/{group}/batch (the `Batch` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
BatchWithBodyWithResponse(ctx context.Context, group string, params *BatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchResponse, error)
// BatchWithResponse performs a POST /api/v1/groups/{group}/batch (the `Batch` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
BatchWithResponse(ctx context.Context, group string, params *BatchParams, body BatchJSONRequestBody, reqEditors ...RequestEditorFn) (*BatchResponse, error)
// ListBlacklistWithResponse performs a GET /api/v1/groups/{group}/blacklist (the `ListBlacklist` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
//
// Returns a wrapper object for the known response body format(s).
ListBlacklistWithResponse(ctx context.Context, group string, params *ListBlacklistParams, reqEditors ...RequestEditorFn) (*ListBlacklistResponse, error)
// CommandWithBodyWithResponse performs a POST /api/v1/groups/{group}/commands (the `Command` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
CommandWithBodyWithResponse(ctx context.Context, group string, params *CommandParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CommandResponse, error)
// CommandWithResponse performs a POST /api/v1/groups/{group}/commands (the `Command` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
CommandWithResponse(ctx context.Context, group string, params *CommandParams, body CommandJSONRequestBody, reqEditors ...RequestEditorFn) (*CommandResponse, error)
// ListDeliverysWithResponse performs a GET /api/v1/groups/{group}/deliveries (the `ListDeliverys` operationId) request.
//
// Lists delivery results.
//
// Returns a wrapper object for the known response body format(s).
ListDeliverysWithResponse(ctx context.Context, group string, params *ListDeliverysParams, reqEditors ...RequestEditorFn) (*ListDeliverysResponse, error)
// ListHitsWithResponse performs a GET /api/v1/groups/{group}/hits (the `ListHits` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
//
// Returns a wrapper object for the known response body format(s).
ListHitsWithResponse(ctx context.Context, group string, params *ListHitsParams, reqEditors ...RequestEditorFn) (*ListHitsResponse, error)
// ListMembersWithResponse performs a GET /api/v1/groups/{group}/members (the `ListMembers` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
//
// Returns a wrapper object for the known response body format(s).
ListMembersWithResponse(ctx context.Context, group string, params *ListMembersParams, reqEditors ...RequestEditorFn) (*ListMembersResponse, error)
// ListMessagesWithResponse performs a GET /api/v1/groups/{group}/messages (the `ListMessages` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
//
// Returns a wrapper object for the known response body format(s).
ListMessagesWithResponse(ctx context.Context, group string, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*ListMessagesResponse, error)
// OwnProgressWithResponse performs a GET /api/v1/groups/{group}/progress (the `OwnProgress` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
OwnProgressWithResponse(ctx context.Context, group string, reqEditors ...RequestEditorFn) (*OwnProgressResponse, error)
// ListReportsWithResponse performs a GET /api/v1/groups/{group}/reports (the `ListReports` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
//
// Returns a wrapper object for the known response body format(s).
ListReportsWithResponse(ctx context.Context, group string, params *ListReportsParams, reqEditors ...RequestEditorFn) (*ListReportsResponse, error)
// ListSubscriptionsWithResponse performs a GET /api/v1/groups/{group}/subscriptions (the `ListSubscriptions` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
//
// Returns a wrapper object for the known response body format(s).
ListSubscriptionsWithResponse(ctx context.Context, group string, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListSubscriptionsResponse, error)
// ListWarningsWithResponse performs a GET /api/v1/groups/{group}/warnings (the `ListWarnings` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
//
// Returns a wrapper object for the known response body format(s).
ListWarningsWithResponse(ctx context.Context, group string, params *ListWarningsParams, reqEditors ...RequestEditorFn) (*ListWarningsResponse, error)
// ListWatchWithResponse performs a GET /api/v1/groups/{group}/watch (the `ListWatch` operationId) request.
//
// Ascending record ID in bytewise (C collation) order; cursor is the last scanned ID. Current authorization and retention are checked on every page. Empty items with next_cursor may occur after filtering.
//
// Returns a wrapper object for the known response body format(s).
ListWatchWithResponse(ctx context.Context, group string, params *ListWatchParams, reqEditors ...RequestEditorFn) (*ListWatchResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command defines model for Command.
func (Command) AsAiExecuteCommand ¶
func (t Command) AsAiExecuteCommand() (AiExecuteCommand, error)
AsAiExecuteCommand returns the union data inside the Command as a AiExecuteCommand
func (Command) AsAnalyzeCommand ¶
func (t Command) AsAnalyzeCommand() (AnalyzeCommand, error)
AsAnalyzeCommand returns the union data inside the Command as a AnalyzeCommand
func (Command) AsApplyCommand ¶
func (t Command) AsApplyCommand() (ApplyCommand, error)
AsApplyCommand returns the union data inside the Command as a ApplyCommand
func (Command) AsBlacklistCommand ¶
func (t Command) AsBlacklistCommand() (BlacklistCommand, error)
AsBlacklistCommand returns the union data inside the Command as a BlacklistCommand
func (Command) AsCancelActionCommand ¶ added in v0.1.1
func (t Command) AsCancelActionCommand() (CancelActionCommand, error)
AsCancelActionCommand returns the union data inside the Command as a CancelActionCommand
func (Command) AsCardCommand ¶
func (t Command) AsCardCommand() (CardCommand, error)
AsCardCommand returns the union data inside the Command as a CardCommand
func (Command) AsCardPreviewCommand ¶ added in v0.1.1
func (t Command) AsCardPreviewCommand() (CardPreviewCommand, error)
AsCardPreviewCommand returns the union data inside the Command as a CardPreviewCommand
func (Command) AsDiceCommand ¶
func (t Command) AsDiceCommand() (DiceCommand, error)
AsDiceCommand returns the union data inside the Command as a DiceCommand
func (Command) AsExemptCommand ¶
func (t Command) AsExemptCommand() (ExemptCommand, error)
AsExemptCommand returns the union data inside the Command as a ExemptCommand
func (Command) AsExtendCommand ¶
func (t Command) AsExtendCommand() (ExtendCommand, error)
AsExtendCommand returns the union data inside the Command as a ExtendCommand
func (Command) AsFeedbackCommand ¶
func (t Command) AsFeedbackCommand() (FeedbackCommand, error)
AsFeedbackCommand returns the union data inside the Command as a FeedbackCommand
func (Command) AsForwardCommand ¶
func (t Command) AsForwardCommand() (ForwardCommand, error)
AsForwardCommand returns the union data inside the Command as a ForwardCommand
func (Command) AsKickCommand ¶
func (t Command) AsKickCommand() (KickCommand, error)
AsKickCommand returns the union data inside the Command as a KickCommand
func (Command) AsMuteCommand ¶
func (t Command) AsMuteCommand() (MuteCommand, error)
AsMuteCommand returns the union data inside the Command as a MuteCommand
func (Command) AsPasswordCommand ¶
func (t Command) AsPasswordCommand() (PasswordCommand, error)
AsPasswordCommand returns the union data inside the Command as a PasswordCommand
func (Command) AsPreviewCommand ¶
func (t Command) AsPreviewCommand() (PreviewCommand, error)
AsPreviewCommand returns the union data inside the Command as a PreviewCommand
func (Command) AsRecallCommand ¶
func (t Command) AsRecallCommand() (RecallCommand, error)
AsRecallCommand returns the union data inside the Command as a RecallCommand
func (Command) AsRecheckCommand ¶
func (t Command) AsRecheckCommand() (RecheckCommand, error)
AsRecheckCommand returns the union data inside the Command as a RecheckCommand
func (Command) AsReportCommand ¶
func (t Command) AsReportCommand() (ReportCommand, error)
AsReportCommand returns the union data inside the Command as a ReportCommand
func (Command) AsRetryActionCommand ¶ added in v0.1.1
func (t Command) AsRetryActionCommand() (RetryActionCommand, error)
AsRetryActionCommand returns the union data inside the Command as a RetryActionCommand
func (Command) AsRuleCommand ¶
func (t Command) AsRuleCommand() (RuleCommand, error)
AsRuleCommand returns the union data inside the Command as a RuleCommand
func (Command) AsSelfMuteCommand ¶
func (t Command) AsSelfMuteCommand() (SelfMuteCommand, error)
AsSelfMuteCommand returns the union data inside the Command as a SelfMuteCommand
func (Command) AsSendCommand ¶
func (t Command) AsSendCommand() (SendCommand, error)
AsSendCommand returns the union data inside the Command as a SendCommand
func (Command) AsSubscribeCommand ¶
func (t Command) AsSubscribeCommand() (SubscribeCommand, error)
AsSubscribeCommand returns the union data inside the Command as a SubscribeCommand
func (Command) AsUnblacklistCommand ¶
func (t Command) AsUnblacklistCommand() (UnblacklistCommand, error)
AsUnblacklistCommand returns the union data inside the Command as a UnblacklistCommand
func (Command) AsUnexemptCommand ¶ added in v0.1.1
func (t Command) AsUnexemptCommand() (UnexemptCommand, error)
AsUnexemptCommand returns the union data inside the Command as a UnexemptCommand
func (Command) AsUnmuteCommand ¶
func (t Command) AsUnmuteCommand() (UnmuteCommand, error)
AsUnmuteCommand returns the union data inside the Command as a UnmuteCommand
func (Command) AsWarnCommand ¶
func (t Command) AsWarnCommand() (WarnCommand, error)
AsWarnCommand returns the union data inside the Command as a WarnCommand
func (Command) AsWatchCommand ¶
func (t Command) AsWatchCommand() (WatchCommand, error)
AsWatchCommand returns the union data inside the Command as a WatchCommand
func (Command) Discriminator ¶
func (*Command) FromAiExecuteCommand ¶
func (t *Command) FromAiExecuteCommand(v AiExecuteCommand) error
FromAiExecuteCommand overwrites any union data inside the Command as the provided AiExecuteCommand
func (*Command) FromAnalyzeCommand ¶
func (t *Command) FromAnalyzeCommand(v AnalyzeCommand) error
FromAnalyzeCommand overwrites any union data inside the Command as the provided AnalyzeCommand
func (*Command) FromApplyCommand ¶
func (t *Command) FromApplyCommand(v ApplyCommand) error
FromApplyCommand overwrites any union data inside the Command as the provided ApplyCommand
func (*Command) FromBlacklistCommand ¶
func (t *Command) FromBlacklistCommand(v BlacklistCommand) error
FromBlacklistCommand overwrites any union data inside the Command as the provided BlacklistCommand
func (*Command) FromCancelActionCommand ¶ added in v0.1.1
func (t *Command) FromCancelActionCommand(v CancelActionCommand) error
FromCancelActionCommand overwrites any union data inside the Command as the provided CancelActionCommand
func (*Command) FromCardCommand ¶
func (t *Command) FromCardCommand(v CardCommand) error
FromCardCommand overwrites any union data inside the Command as the provided CardCommand
func (*Command) FromCardPreviewCommand ¶ added in v0.1.1
func (t *Command) FromCardPreviewCommand(v CardPreviewCommand) error
FromCardPreviewCommand overwrites any union data inside the Command as the provided CardPreviewCommand
func (*Command) FromDiceCommand ¶
func (t *Command) FromDiceCommand(v DiceCommand) error
FromDiceCommand overwrites any union data inside the Command as the provided DiceCommand
func (*Command) FromExemptCommand ¶
func (t *Command) FromExemptCommand(v ExemptCommand) error
FromExemptCommand overwrites any union data inside the Command as the provided ExemptCommand
func (*Command) FromExtendCommand ¶
func (t *Command) FromExtendCommand(v ExtendCommand) error
FromExtendCommand overwrites any union data inside the Command as the provided ExtendCommand
func (*Command) FromFeedbackCommand ¶
func (t *Command) FromFeedbackCommand(v FeedbackCommand) error
FromFeedbackCommand overwrites any union data inside the Command as the provided FeedbackCommand
func (*Command) FromForwardCommand ¶
func (t *Command) FromForwardCommand(v ForwardCommand) error
FromForwardCommand overwrites any union data inside the Command as the provided ForwardCommand
func (*Command) FromKickCommand ¶
func (t *Command) FromKickCommand(v KickCommand) error
FromKickCommand overwrites any union data inside the Command as the provided KickCommand
func (*Command) FromMuteCommand ¶
func (t *Command) FromMuteCommand(v MuteCommand) error
FromMuteCommand overwrites any union data inside the Command as the provided MuteCommand
func (*Command) FromPasswordCommand ¶
func (t *Command) FromPasswordCommand(v PasswordCommand) error
FromPasswordCommand overwrites any union data inside the Command as the provided PasswordCommand
func (*Command) FromPreviewCommand ¶
func (t *Command) FromPreviewCommand(v PreviewCommand) error
FromPreviewCommand overwrites any union data inside the Command as the provided PreviewCommand
func (*Command) FromRecallCommand ¶
func (t *Command) FromRecallCommand(v RecallCommand) error
FromRecallCommand overwrites any union data inside the Command as the provided RecallCommand
func (*Command) FromRecheckCommand ¶
func (t *Command) FromRecheckCommand(v RecheckCommand) error
FromRecheckCommand overwrites any union data inside the Command as the provided RecheckCommand
func (*Command) FromReportCommand ¶
func (t *Command) FromReportCommand(v ReportCommand) error
FromReportCommand overwrites any union data inside the Command as the provided ReportCommand
func (*Command) FromRetryActionCommand ¶ added in v0.1.1
func (t *Command) FromRetryActionCommand(v RetryActionCommand) error
FromRetryActionCommand overwrites any union data inside the Command as the provided RetryActionCommand
func (*Command) FromRuleCommand ¶
func (t *Command) FromRuleCommand(v RuleCommand) error
FromRuleCommand overwrites any union data inside the Command as the provided RuleCommand
func (*Command) FromSelfMuteCommand ¶
func (t *Command) FromSelfMuteCommand(v SelfMuteCommand) error
FromSelfMuteCommand overwrites any union data inside the Command as the provided SelfMuteCommand
func (*Command) FromSendCommand ¶
func (t *Command) FromSendCommand(v SendCommand) error
FromSendCommand overwrites any union data inside the Command as the provided SendCommand
func (*Command) FromSubscribeCommand ¶
func (t *Command) FromSubscribeCommand(v SubscribeCommand) error
FromSubscribeCommand overwrites any union data inside the Command as the provided SubscribeCommand
func (*Command) FromUnblacklistCommand ¶
func (t *Command) FromUnblacklistCommand(v UnblacklistCommand) error
FromUnblacklistCommand overwrites any union data inside the Command as the provided UnblacklistCommand
func (*Command) FromUnexemptCommand ¶ added in v0.1.1
func (t *Command) FromUnexemptCommand(v UnexemptCommand) error
FromUnexemptCommand overwrites any union data inside the Command as the provided UnexemptCommand
func (*Command) FromUnmuteCommand ¶
func (t *Command) FromUnmuteCommand(v UnmuteCommand) error
FromUnmuteCommand overwrites any union data inside the Command as the provided UnmuteCommand
func (*Command) FromWarnCommand ¶
func (t *Command) FromWarnCommand(v WarnCommand) error
FromWarnCommand overwrites any union data inside the Command as the provided WarnCommand
func (*Command) FromWatchCommand ¶
func (t *Command) FromWatchCommand(v WatchCommand) error
FromWatchCommand overwrites any union data inside the Command as the provided WatchCommand
func (Command) MarshalJSON ¶
func (*Command) MergeAiExecuteCommand ¶
func (t *Command) MergeAiExecuteCommand(v AiExecuteCommand) error
MergeAiExecuteCommand performs a merge with any union data inside the Command, using the provided AiExecuteCommand
func (*Command) MergeAnalyzeCommand ¶
func (t *Command) MergeAnalyzeCommand(v AnalyzeCommand) error
MergeAnalyzeCommand performs a merge with any union data inside the Command, using the provided AnalyzeCommand
func (*Command) MergeApplyCommand ¶
func (t *Command) MergeApplyCommand(v ApplyCommand) error
MergeApplyCommand performs a merge with any union data inside the Command, using the provided ApplyCommand
func (*Command) MergeBlacklistCommand ¶
func (t *Command) MergeBlacklistCommand(v BlacklistCommand) error
MergeBlacklistCommand performs a merge with any union data inside the Command, using the provided BlacklistCommand
func (*Command) MergeCancelActionCommand ¶ added in v0.1.1
func (t *Command) MergeCancelActionCommand(v CancelActionCommand) error
MergeCancelActionCommand performs a merge with any union data inside the Command, using the provided CancelActionCommand
func (*Command) MergeCardCommand ¶
func (t *Command) MergeCardCommand(v CardCommand) error
MergeCardCommand performs a merge with any union data inside the Command, using the provided CardCommand
func (*Command) MergeCardPreviewCommand ¶ added in v0.1.1
func (t *Command) MergeCardPreviewCommand(v CardPreviewCommand) error
MergeCardPreviewCommand performs a merge with any union data inside the Command, using the provided CardPreviewCommand
func (*Command) MergeDiceCommand ¶
func (t *Command) MergeDiceCommand(v DiceCommand) error
MergeDiceCommand performs a merge with any union data inside the Command, using the provided DiceCommand
func (*Command) MergeExemptCommand ¶
func (t *Command) MergeExemptCommand(v ExemptCommand) error
MergeExemptCommand performs a merge with any union data inside the Command, using the provided ExemptCommand
func (*Command) MergeExtendCommand ¶
func (t *Command) MergeExtendCommand(v ExtendCommand) error
MergeExtendCommand performs a merge with any union data inside the Command, using the provided ExtendCommand
func (*Command) MergeFeedbackCommand ¶
func (t *Command) MergeFeedbackCommand(v FeedbackCommand) error
MergeFeedbackCommand performs a merge with any union data inside the Command, using the provided FeedbackCommand
func (*Command) MergeForwardCommand ¶
func (t *Command) MergeForwardCommand(v ForwardCommand) error
MergeForwardCommand performs a merge with any union data inside the Command, using the provided ForwardCommand
func (*Command) MergeKickCommand ¶
func (t *Command) MergeKickCommand(v KickCommand) error
MergeKickCommand performs a merge with any union data inside the Command, using the provided KickCommand
func (*Command) MergeMuteCommand ¶
func (t *Command) MergeMuteCommand(v MuteCommand) error
MergeMuteCommand performs a merge with any union data inside the Command, using the provided MuteCommand
func (*Command) MergePasswordCommand ¶
func (t *Command) MergePasswordCommand(v PasswordCommand) error
MergePasswordCommand performs a merge with any union data inside the Command, using the provided PasswordCommand
func (*Command) MergePreviewCommand ¶
func (t *Command) MergePreviewCommand(v PreviewCommand) error
MergePreviewCommand performs a merge with any union data inside the Command, using the provided PreviewCommand
func (*Command) MergeRecallCommand ¶
func (t *Command) MergeRecallCommand(v RecallCommand) error
MergeRecallCommand performs a merge with any union data inside the Command, using the provided RecallCommand
func (*Command) MergeRecheckCommand ¶
func (t *Command) MergeRecheckCommand(v RecheckCommand) error
MergeRecheckCommand performs a merge with any union data inside the Command, using the provided RecheckCommand
func (*Command) MergeReportCommand ¶
func (t *Command) MergeReportCommand(v ReportCommand) error
MergeReportCommand performs a merge with any union data inside the Command, using the provided ReportCommand
func (*Command) MergeRetryActionCommand ¶ added in v0.1.1
func (t *Command) MergeRetryActionCommand(v RetryActionCommand) error
MergeRetryActionCommand performs a merge with any union data inside the Command, using the provided RetryActionCommand
func (*Command) MergeRuleCommand ¶
func (t *Command) MergeRuleCommand(v RuleCommand) error
MergeRuleCommand performs a merge with any union data inside the Command, using the provided RuleCommand
func (*Command) MergeSelfMuteCommand ¶
func (t *Command) MergeSelfMuteCommand(v SelfMuteCommand) error
MergeSelfMuteCommand performs a merge with any union data inside the Command, using the provided SelfMuteCommand
func (*Command) MergeSendCommand ¶
func (t *Command) MergeSendCommand(v SendCommand) error
MergeSendCommand performs a merge with any union data inside the Command, using the provided SendCommand
func (*Command) MergeSubscribeCommand ¶
func (t *Command) MergeSubscribeCommand(v SubscribeCommand) error
MergeSubscribeCommand performs a merge with any union data inside the Command, using the provided SubscribeCommand
func (*Command) MergeUnblacklistCommand ¶
func (t *Command) MergeUnblacklistCommand(v UnblacklistCommand) error
MergeUnblacklistCommand performs a merge with any union data inside the Command, using the provided UnblacklistCommand
func (*Command) MergeUnexemptCommand ¶ added in v0.1.1
func (t *Command) MergeUnexemptCommand(v UnexemptCommand) error
MergeUnexemptCommand performs a merge with any union data inside the Command, using the provided UnexemptCommand
func (*Command) MergeUnmuteCommand ¶
func (t *Command) MergeUnmuteCommand(v UnmuteCommand) error
MergeUnmuteCommand performs a merge with any union data inside the Command, using the provided UnmuteCommand
func (*Command) MergeWarnCommand ¶
func (t *Command) MergeWarnCommand(v WarnCommand) error
MergeWarnCommand performs a merge with any union data inside the Command, using the provided WarnCommand
func (*Command) MergeWatchCommand ¶
func (t *Command) MergeWatchCommand(v WatchCommand) error
MergeWatchCommand performs a merge with any union data inside the Command, using the provided WatchCommand
func (*Command) UnmarshalJSON ¶
func (Command) ValueByDiscriminator ¶
type CommandJSONRequestBody ¶
type CommandJSONRequestBody = Command
CommandJSONRequestBody defines body for Command for application/json ContentType.
type CommandParams ¶
type CommandParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
CommandParams defines parameters for Command.
type CommandResponse ¶
type CommandResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Result
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Problem
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseCommandResponse ¶
func ParseCommandResponse(rsp *http.Response) (*CommandResponse, error)
ParseCommandResponse parses an HTTP response from a CommandWithResponse call
func (CommandResponse) ContentType ¶
func (r CommandResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CommandResponse) GetBody ¶
func (r CommandResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CommandResponse) GetJSON200 ¶
func (r CommandResponse) GetJSON200() *Result
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CommandResponse) GetJSON400 ¶
func (r CommandResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CommandResponse) GetJSON401 ¶
func (r CommandResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CommandResponse) GetJSON403 ¶
func (r CommandResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CommandResponse) GetJSON404 ¶
func (r CommandResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (CommandResponse) GetJSON409 ¶
func (r CommandResponse) GetJSON409() *Problem
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CommandResponse) GetJSON422 ¶
func (r CommandResponse) GetJSON422() *Problem
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CommandResponse) GetJSON503 ¶
func (r CommandResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (CommandResponse) Status ¶
func (r CommandResponse) Status() string
Status returns HTTPResponse.Status
func (CommandResponse) StatusCode ¶
func (r CommandResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ConfigureGroupJSONRequestBody ¶
type ConfigureGroupJSONRequestBody = GroupConfigInput
ConfigureGroupJSONRequestBody defines body for ConfigureGroup for application/json ContentType.
type ConfigureGroupParams ¶
type ConfigureGroupParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
ConfigureGroupParams defines parameters for ConfigureGroup.
type ConfigureGroupResponse ¶
type ConfigureGroupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GroupConfig
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Problem
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseConfigureGroupResponse ¶
func ParseConfigureGroupResponse(rsp *http.Response) (*ConfigureGroupResponse, error)
ParseConfigureGroupResponse parses an HTTP response from a ConfigureGroupWithResponse call
func (ConfigureGroupResponse) ContentType ¶
func (r ConfigureGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ConfigureGroupResponse) GetBody ¶
func (r ConfigureGroupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ConfigureGroupResponse) GetJSON200 ¶
func (r ConfigureGroupResponse) GetJSON200() *GroupConfig
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ConfigureGroupResponse) GetJSON400 ¶
func (r ConfigureGroupResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ConfigureGroupResponse) GetJSON401 ¶
func (r ConfigureGroupResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ConfigureGroupResponse) GetJSON403 ¶
func (r ConfigureGroupResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ConfigureGroupResponse) GetJSON404 ¶
func (r ConfigureGroupResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ConfigureGroupResponse) GetJSON409 ¶
func (r ConfigureGroupResponse) GetJSON409() *Problem
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (ConfigureGroupResponse) GetJSON422 ¶
func (r ConfigureGroupResponse) GetJSON422() *Problem
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (ConfigureGroupResponse) GetJSON503 ¶
func (r ConfigureGroupResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ConfigureGroupResponse) Status ¶
func (r ConfigureGroupResponse) Status() string
Status returns HTTPResponse.Status
func (ConfigureGroupResponse) StatusCode ¶
func (r ConfigureGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Delivery ¶
type Delivery struct {
Action string `json:"action"`
Id string `json:"id"`
Receiver string `json:"receiver"`
State string `json:"state"`
}
Delivery defines model for Delivery.
type DeliveryPage ¶
type DeliveryPage struct {
Items []Delivery `json:"items"`
// NextCursor Opaque cursor for the next scan, or empty when exhausted. A filtered page may be empty with a nonempty cursor.
NextCursor string `json:"next_cursor"`
}
DeliveryPage defines model for DeliveryPage.
type DiceCommand ¶
type DiceCommand struct {
Kind DiceCommandKind `json:"kind"`
}
DiceCommand User command; caller only.
type DiceCommandKind ¶
type DiceCommandKind string
DiceCommandKind defines model for DiceCommand.Kind.
const (
DiceCommandKindDice DiceCommandKind = "dice"
)
Defines values for DiceCommandKind.
func (DiceCommandKind) Valid ¶
func (e DiceCommandKind) Valid() bool
Valid indicates whether the value is a known member of the DiceCommandKind enum.
type DirectoryGroup ¶ added in v0.1.1
type DirectoryGroup struct {
AcceptAlumni bool `json:"accept_alumni"`
AcceptTemporary bool `json:"accept_temporary"`
Category DirectoryGroupCategory `json:"category"`
Description string `json:"description"`
// Id Internal group ID.
Id string `json:"id"`
// Joined True only when the caller's own membership has been confirmed by the bot.
Joined bool `json:"joined"`
Mode DirectoryGroupMode `json:"mode"`
Name string `json:"name"`
// Number Masked group number showing at most the final four digits; empty when not recorded.
Number string `json:"number"`
// PasswordHint Optional hint describing where to locate the dynamic password when requires_password is true.
PasswordHint *string `json:"password_hint,omitempty"`
RequireStudent bool `json:"require_student"`
RequiresPassword bool `json:"requires_password"`
School string `json:"school"`
// State Caller's own active membership or application state, or empty when none.
State DirectoryGroupState `json:"state"`
}
DirectoryGroup defines model for DirectoryGroup.
type DirectoryGroupCategory ¶ added in v0.1.1
type DirectoryGroupCategory string
DirectoryGroupCategory defines model for DirectoryGroup.Category.
const ( DirectoryGroupCategoryClub DirectoryGroupCategory = "club" DirectoryGroupCategoryCourse DirectoryGroupCategory = "course" DirectoryGroupCategoryDepartment DirectoryGroupCategory = "department" DirectoryGroupCategoryEmpty DirectoryGroupCategory = "" DirectoryGroupCategoryGrade DirectoryGroupCategory = "grade" DirectoryGroupCategorySchool DirectoryGroupCategory = "school" )
Defines values for DirectoryGroupCategory.
func (DirectoryGroupCategory) Valid ¶ added in v0.1.1
func (e DirectoryGroupCategory) Valid() bool
Valid indicates whether the value is a known member of the DirectoryGroupCategory enum.
type DirectoryGroupMode ¶ added in v0.1.1
type DirectoryGroupMode string
DirectoryGroupMode defines model for DirectoryGroup.Mode.
const ( DirectoryGroupModeBefore DirectoryGroupMode = "before" DirectoryGroupModeMuted DirectoryGroupMode = "muted" DirectoryGroupModePassword DirectoryGroupMode = "password" )
Defines values for DirectoryGroupMode.
func (DirectoryGroupMode) Valid ¶ added in v0.1.1
func (e DirectoryGroupMode) Valid() bool
Valid indicates whether the value is a known member of the DirectoryGroupMode enum.
type DirectoryGroupPage ¶ added in v0.1.1
type DirectoryGroupPage struct {
Items []DirectoryGroup `json:"items"`
// NextCursor Last scanned group ID if another page may exist, or empty when exhausted.
NextCursor string `json:"next_cursor"`
}
DirectoryGroupPage defines model for DirectoryGroupPage.
type DirectoryGroupState ¶ added in v0.1.1
type DirectoryGroupState string
DirectoryGroupState Caller's own active membership or application state, or empty when none.
const ( DirectoryGroupStateAwaitingVerification DirectoryGroupState = "awaiting_verification" DirectoryGroupStateEmpty DirectoryGroupState = "" DirectoryGroupStateExempt DirectoryGroupState = "exempt" DirectoryGroupStateExtended DirectoryGroupState = "extended" DirectoryGroupStateGrace DirectoryGroupState = "grace" DirectoryGroupStateRemovalPending DirectoryGroupState = "removal_pending" DirectoryGroupStateRequested DirectoryGroupState = "requested" DirectoryGroupStateRestored DirectoryGroupState = "restored" )
Defines values for DirectoryGroupState.
func (DirectoryGroupState) Valid ¶ added in v0.1.1
func (e DirectoryGroupState) Valid() bool
Valid indicates whether the value is a known member of the DirectoryGroupState enum.
type ExemptBatchCommand ¶
type ExemptBatchCommand struct {
Kind ExemptBatchCommandKind `json:"kind"`
Text string `json:"text"`
}
ExemptBatchCommand Management command; requires current group-scoped capability.
type ExemptBatchCommandKind ¶
type ExemptBatchCommandKind string
ExemptBatchCommandKind defines model for ExemptBatchCommand.Kind.
const (
ExemptBatchCommandKindExempt ExemptBatchCommandKind = "exempt"
)
Defines values for ExemptBatchCommandKind.
func (ExemptBatchCommandKind) Valid ¶
func (e ExemptBatchCommandKind) Valid() bool
Valid indicates whether the value is a known member of the ExemptBatchCommandKind enum.
type ExemptCommand ¶
type ExemptCommand struct {
Kind ExemptCommandKind `json:"kind"`
Target string `json:"target"`
Text string `json:"text"`
}
ExemptCommand Management command; requires current group-scoped capability.
type ExemptCommandKind ¶
type ExemptCommandKind string
ExemptCommandKind defines model for ExemptCommand.Kind.
const (
ExemptCommandKindExempt ExemptCommandKind = "exempt"
)
Defines values for ExemptCommandKind.
func (ExemptCommandKind) Valid ¶
func (e ExemptCommandKind) Valid() bool
Valid indicates whether the value is a known member of the ExemptCommandKind enum.
type ExtendBatchCommand ¶
type ExtendBatchCommand struct {
Kind ExtendBatchCommandKind `json:"kind"`
Seconds int64 `json:"seconds"`
Text string `json:"text"`
}
ExtendBatchCommand Management command; requires current group-scoped capability.
type ExtendBatchCommandKind ¶
type ExtendBatchCommandKind string
ExtendBatchCommandKind defines model for ExtendBatchCommand.Kind.
const (
ExtendBatchCommandKindExtend ExtendBatchCommandKind = "extend"
)
Defines values for ExtendBatchCommandKind.
func (ExtendBatchCommandKind) Valid ¶
func (e ExtendBatchCommandKind) Valid() bool
Valid indicates whether the value is a known member of the ExtendBatchCommandKind enum.
type ExtendCommand ¶
type ExtendCommand struct {
Kind ExtendCommandKind `json:"kind"`
Seconds int64 `json:"seconds"`
Target string `json:"target"`
Text string `json:"text"`
}
ExtendCommand Management command; requires current group-scoped capability.
type ExtendCommandKind ¶
type ExtendCommandKind string
ExtendCommandKind defines model for ExtendCommand.Kind.
const (
ExtendCommandKindExtend ExtendCommandKind = "extend"
)
Defines values for ExtendCommandKind.
func (ExtendCommandKind) Valid ¶
func (e ExtendCommandKind) Valid() bool
Valid indicates whether the value is a known member of the ExtendCommandKind enum.
type FeedbackCommand ¶
type FeedbackCommand struct {
Kind FeedbackCommandKind `json:"kind"`
Target string `json:"target"`
Text string `json:"text"`
}
FeedbackCommand Management command; requires current group-scoped capability.
type FeedbackCommandKind ¶
type FeedbackCommandKind string
FeedbackCommandKind defines model for FeedbackCommand.Kind.
const (
FeedbackCommandKindFeedback FeedbackCommandKind = "feedback"
)
Defines values for FeedbackCommandKind.
func (FeedbackCommandKind) Valid ¶
func (e FeedbackCommandKind) Valid() bool
Valid indicates whether the value is a known member of the FeedbackCommandKind enum.
type ForwardCommand ¶
type ForwardCommand struct {
Kind ForwardCommandKind `json:"kind"`
Message string `json:"message"`
}
ForwardCommand Management command; requires current group-scoped capability.
type ForwardCommandKind ¶
type ForwardCommandKind string
ForwardCommandKind defines model for ForwardCommand.Kind.
const (
ForwardCommandKindForward ForwardCommandKind = "forward"
)
Defines values for ForwardCommandKind.
func (ForwardCommandKind) Valid ¶
func (e ForwardCommandKind) Valid() bool
Valid indicates whether the value is a known member of the ForwardCommandKind enum.
type GetGroupResponse ¶
type GetGroupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GroupConfig
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseGetGroupResponse ¶
func ParseGetGroupResponse(rsp *http.Response) (*GetGroupResponse, error)
ParseGetGroupResponse parses an HTTP response from a GetGroupWithResponse call
func (GetGroupResponse) ContentType ¶
func (r GetGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetGroupResponse) GetBody ¶
func (r GetGroupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetGroupResponse) GetJSON200 ¶
func (r GetGroupResponse) GetJSON200() *GroupConfig
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetGroupResponse) GetJSON400 ¶
func (r GetGroupResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetGroupResponse) GetJSON401 ¶
func (r GetGroupResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetGroupResponse) GetJSON403 ¶
func (r GetGroupResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetGroupResponse) GetJSON404 ¶
func (r GetGroupResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetGroupResponse) GetJSON503 ¶
func (r GetGroupResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetGroupResponse) Status ¶
func (r GetGroupResponse) Status() string
Status returns HTTPResponse.Status
func (GetGroupResponse) StatusCode ¶
func (r GetGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GroupConfig ¶
type GroupConfig struct {
AcceptAlumni bool `json:"accept_alumni"`
AcceptTemporary bool `json:"accept_temporary"`
AutoActions []GroupConfigAutoActions `json:"auto_actions"`
AutoCard bool `json:"auto_card"`
BlockLinks bool `json:"block_links"`
BotEnabled bool `json:"bot_enabled"`
CardTemplate string `json:"card_template"`
Category GroupConfigCategory `json:"category"`
CheckCard bool `json:"check_card"`
CooldownSeconds int64 `json:"cooldown_seconds"`
Description string `json:"description"`
DiceSides int64 `json:"dice_sides"`
// Discoverable Whether the group appears in the student-facing directory.
Discoverable bool `json:"discoverable"`
FrequencyLimit int64 `json:"frequency_limit"`
FrequencySeconds int64 `json:"frequency_seconds"`
GraceSeconds int64 `json:"grace_seconds"`
Id string `json:"id"`
Keywords []string `json:"keywords"`
Mode GroupConfigMode `json:"mode"`
MuteProbability int64 `json:"mute_probability"`
MuteSeconds int64 `json:"mute_seconds"`
Name string `json:"name"`
// Number Masked QQ group number; only its final four digits are shown.
Number string `json:"number"`
// PasswordEpoch Monotonic generation counter incremented whenever the dynamic password is set, rotated or cleared.
PasswordEpoch *int64 `json:"password_epoch,omitempty"`
PasswordHint string `json:"password_hint"`
PasswordSet bool `json:"password_set"`
Pity int64 `json:"pity"`
RemindCard bool `json:"remind_card"`
ReminderSeconds int64 `json:"reminder_seconds"`
RepeatThreshold int64 `json:"repeat_threshold"`
RequireStudent bool `json:"require_student"`
RetentionSeconds int64 `json:"retention_seconds"`
Revision int64 `json:"revision"`
RulesTemplate string `json:"rules_template"`
School string `json:"school"`
WarningLimit int64 `json:"warning_limit"`
Welcome string `json:"welcome"`
}
GroupConfig defines model for GroupConfig.
type GroupConfigAutoActions ¶
type GroupConfigAutoActions string
GroupConfigAutoActions defines model for GroupConfig.AutoActions.
const ( GroupConfigAutoActionsBlacklist GroupConfigAutoActions = "blacklist" GroupConfigAutoActionsKick GroupConfigAutoActions = "kick" GroupConfigAutoActionsMute GroupConfigAutoActions = "mute" GroupConfigAutoActionsRecall GroupConfigAutoActions = "recall" GroupConfigAutoActionsWarn GroupConfigAutoActions = "warn" )
Defines values for GroupConfigAutoActions.
func (GroupConfigAutoActions) Valid ¶
func (e GroupConfigAutoActions) Valid() bool
Valid indicates whether the value is a known member of the GroupConfigAutoActions enum.
type GroupConfigCategory ¶ added in v0.1.1
type GroupConfigCategory string
GroupConfigCategory defines model for GroupConfig.Category.
const ( GroupConfigCategoryClub GroupConfigCategory = "club" GroupConfigCategoryCourse GroupConfigCategory = "course" GroupConfigCategoryDepartment GroupConfigCategory = "department" GroupConfigCategoryEmpty GroupConfigCategory = "" GroupConfigCategoryGrade GroupConfigCategory = "grade" GroupConfigCategorySchool GroupConfigCategory = "school" )
Defines values for GroupConfigCategory.
func (GroupConfigCategory) Valid ¶ added in v0.1.1
func (e GroupConfigCategory) Valid() bool
Valid indicates whether the value is a known member of the GroupConfigCategory enum.
type GroupConfigInput ¶
type GroupConfigInput struct {
AcceptAlumni bool `json:"accept_alumni"`
AcceptTemporary bool `json:"accept_temporary"`
AutoActions []GroupConfigInputAutoActions `json:"auto_actions"`
AutoCard bool `json:"auto_card"`
BlockLinks bool `json:"block_links"`
BotEnabled bool `json:"bot_enabled"`
CardTemplate string `json:"card_template"`
// Category Optional directory category; empty when uncategorized.
Category *GroupConfigInputCategory `json:"category,omitempty"`
CheckCard bool `json:"check_card"`
CooldownSeconds int64 `json:"cooldown_seconds"`
// Description Optional public group summary shown in the directory.
Description *string `json:"description,omitempty"`
DiceSides int64 `json:"dice_sides"`
// Discoverable Optional directory visibility flag; defaults to false when omitted.
Discoverable *bool `json:"discoverable,omitempty"`
// ExpectedRevision 0 creates a group; otherwise must equal the current revision. A successful update increments revision by one.
ExpectedRevision int64 `json:"expected_revision"`
FrequencyLimit int64 `json:"frequency_limit"`
FrequencySeconds int64 `json:"frequency_seconds"`
GraceSeconds int64 `json:"grace_seconds"`
Id string `json:"id"`
Keywords []string `json:"keywords"`
Mode GroupConfigInputMode `json:"mode"`
MuteProbability int64 `json:"mute_probability"`
MuteSeconds int64 `json:"mute_seconds"`
Name string `json:"name"`
// Number Optional real group number for create/update; omitted preserves the stored masked number.
Number *string `json:"number,omitempty"`
// Password Omitted preserves password; empty clears it (not allowed in password mode). Never returned or saved as plaintext.
Password *string `json:"password,omitempty"`
// PasswordHint Optional hint telling applicants where to obtain the dynamic password.
PasswordHint *string `json:"password_hint,omitempty"`
Pity int64 `json:"pity"`
RemindCard bool `json:"remind_card"`
ReminderSeconds int64 `json:"reminder_seconds"`
RepeatThreshold int64 `json:"repeat_threshold"`
RequireStudent bool `json:"require_student"`
RetentionSeconds int64 `json:"retention_seconds"`
RulesTemplate string `json:"rules_template"`
School string `json:"school"`
WarningLimit int64 `json:"warning_limit"`
Welcome string `json:"welcome"`
}
GroupConfigInput defines model for GroupConfigInput.
type GroupConfigInputAutoActions ¶
type GroupConfigInputAutoActions string
GroupConfigInputAutoActions defines model for GroupConfigInput.AutoActions.
const ( GroupConfigInputAutoActionsBlacklist GroupConfigInputAutoActions = "blacklist" GroupConfigInputAutoActionsKick GroupConfigInputAutoActions = "kick" GroupConfigInputAutoActionsMute GroupConfigInputAutoActions = "mute" GroupConfigInputAutoActionsRecall GroupConfigInputAutoActions = "recall" GroupConfigInputAutoActionsWarn GroupConfigInputAutoActions = "warn" )
Defines values for GroupConfigInputAutoActions.
func (GroupConfigInputAutoActions) Valid ¶
func (e GroupConfigInputAutoActions) Valid() bool
Valid indicates whether the value is a known member of the GroupConfigInputAutoActions enum.
type GroupConfigInputCategory ¶ added in v0.1.1
type GroupConfigInputCategory string
GroupConfigInputCategory Optional directory category; empty when uncategorized.
const ( GroupConfigInputCategoryClub GroupConfigInputCategory = "club" GroupConfigInputCategoryCourse GroupConfigInputCategory = "course" GroupConfigInputCategoryDepartment GroupConfigInputCategory = "department" GroupConfigInputCategoryEmpty GroupConfigInputCategory = "" GroupConfigInputCategoryGrade GroupConfigInputCategory = "grade" GroupConfigInputCategorySchool GroupConfigInputCategory = "school" )
Defines values for GroupConfigInputCategory.
func (GroupConfigInputCategory) Valid ¶ added in v0.1.1
func (e GroupConfigInputCategory) Valid() bool
Valid indicates whether the value is a known member of the GroupConfigInputCategory enum.
type GroupConfigInputMode ¶
type GroupConfigInputMode string
GroupConfigInputMode defines model for GroupConfigInput.Mode.
const ( GroupConfigInputModeBefore GroupConfigInputMode = "before" GroupConfigInputModeMuted GroupConfigInputMode = "muted" GroupConfigInputModePassword GroupConfigInputMode = "password" )
Defines values for GroupConfigInputMode.
func (GroupConfigInputMode) Valid ¶
func (e GroupConfigInputMode) Valid() bool
Valid indicates whether the value is a known member of the GroupConfigInputMode enum.
type GroupConfigMode ¶
type GroupConfigMode string
GroupConfigMode defines model for GroupConfig.Mode.
const ( GroupConfigModeBefore GroupConfigMode = "before" GroupConfigModeMuted GroupConfigMode = "muted" GroupConfigModePassword GroupConfigMode = "password" )
Defines values for GroupConfigMode.
func (GroupConfigMode) Valid ¶
func (e GroupConfigMode) Valid() bool
Valid indicates whether the value is a known member of the GroupConfigMode enum.
type GroupSummary ¶
type GroupSummary struct {
BotEnabled bool `json:"bot_enabled"`
Id string `json:"id"`
// MemberCount Number of members whose joined fact is currently true.
MemberCount int64 `json:"member_count"`
Name string `json:"name"`
// Number Masked QQ group number, same as GroupConfig.number.
Number string `json:"number"`
// PendingCount Sum of unresolved eligibility records (requested, awaiting_verification, grace, extended, removal_pending) and actions in pending/executing/unknown. One member can contribute to both counts.
PendingCount int64 `json:"pending_count"`
RequireStudent bool `json:"require_student"`
Revision int64 `json:"revision"`
School string `json:"school"`
}
GroupSummary defines model for GroupSummary.
type GroupSummaryPage ¶
type GroupSummaryPage struct {
Items []GroupSummary `json:"items"`
// NextCursor Opaque cursor for the next scan, or empty when exhausted. A filtered page may be empty with a nonempty cursor.
NextCursor string `json:"next_cursor"`
}
GroupSummaryPage defines model for GroupSummaryPage.
type Hit ¶
type Hit struct {
Created *time.Time `json:"created,omitempty"`
Id string `json:"id"`
Message string `json:"message"`
Owner string `json:"owner"`
Rules []string `json:"rules"`
State string `json:"state"`
}
Hit defines model for Hit.
type HitPage ¶
type HitPage struct {
Items []Hit `json:"items"`
// NextCursor Opaque cursor for the next scan, or empty when exhausted. A filtered page may be empty with a nonempty cursor.
NextCursor string `json:"next_cursor"`
}
HitPage defines model for HitPage.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type KickBatchCommand ¶
type KickBatchCommand struct {
Kind KickBatchCommandKind `json:"kind"`
Text *string `json:"text,omitempty"`
}
KickBatchCommand Management command; requires current group-scoped capability.
type KickBatchCommandKind ¶
type KickBatchCommandKind string
KickBatchCommandKind defines model for KickBatchCommand.Kind.
const (
KickBatchCommandKindKick KickBatchCommandKind = "kick"
)
Defines values for KickBatchCommandKind.
func (KickBatchCommandKind) Valid ¶
func (e KickBatchCommandKind) Valid() bool
Valid indicates whether the value is a known member of the KickBatchCommandKind enum.
type KickCommand ¶
type KickCommand struct {
Kind KickCommandKind `json:"kind"`
Target string `json:"target"`
Text *string `json:"text,omitempty"`
}
KickCommand Management command; requires current group-scoped capability.
type KickCommandKind ¶
type KickCommandKind string
KickCommandKind defines model for KickCommand.Kind.
const (
KickCommandKindKick KickCommandKind = "kick"
)
Defines values for KickCommandKind.
func (KickCommandKind) Valid ¶
func (e KickCommandKind) Valid() bool
Valid indicates whether the value is a known member of the KickCommandKind enum.
type ListActionsParams ¶
type ListActionsParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
State *ListActionsParamsState `form:"state,omitempty" json:"state,omitempty"`
Kind *ListActionsParamsKind `form:"kind,omitempty" json:"kind,omitempty"`
Order *ListActionsParamsOrder `form:"order,omitempty" json:"order,omitempty"`
}
ListActionsParams defines parameters for ListActions.
type ListActionsParamsKind ¶ added in v0.1.1
type ListActionsParamsKind string
ListActionsParamsKind defines parameters for ListActions.
const ( ListActionsParamsKindAiExecute ListActionsParamsKind = "ai_execute" ListActionsParamsKindAnalyze ListActionsParamsKind = "analyze" ListActionsParamsKindApply ListActionsParamsKind = "apply" ListActionsParamsKindApprove ListActionsParamsKind = "approve" ListActionsParamsKindBlacklist ListActionsParamsKind = "blacklist" ListActionsParamsKindCard ListActionsParamsKind = "card" ListActionsParamsKindDice ListActionsParamsKind = "dice" ListActionsParamsKindExempt ListActionsParamsKind = "exempt" ListActionsParamsKindExtend ListActionsParamsKind = "extend" ListActionsParamsKindFeedback ListActionsParamsKind = "feedback" ListActionsParamsKindForward ListActionsParamsKind = "forward" ListActionsParamsKindKick ListActionsParamsKind = "kick" ListActionsParamsKindMute ListActionsParamsKind = "mute" ListActionsParamsKindPassword ListActionsParamsKind = "password" ListActionsParamsKindPreview ListActionsParamsKind = "preview" ListActionsParamsKindRecall ListActionsParamsKind = "recall" ListActionsParamsKindRecheck ListActionsParamsKind = "recheck" ListActionsParamsKindRemind ListActionsParamsKind = "remind" ListActionsParamsKindReport ListActionsParamsKind = "report" ListActionsParamsKindRule ListActionsParamsKind = "rule" ListActionsParamsKindSelfMute ListActionsParamsKind = "self_mute" ListActionsParamsKindSend ListActionsParamsKind = "send" ListActionsParamsKindSubscribe ListActionsParamsKind = "subscribe" ListActionsParamsKindUnblacklist ListActionsParamsKind = "unblacklist" ListActionsParamsKindUnmute ListActionsParamsKind = "unmute" ListActionsParamsKindWarn ListActionsParamsKind = "warn" ListActionsParamsKindWatch ListActionsParamsKind = "watch" ListActionsParamsKindWelcome ListActionsParamsKind = "welcome" )
Defines values for ListActionsParamsKind.
func (ListActionsParamsKind) Valid ¶ added in v0.1.1
func (e ListActionsParamsKind) Valid() bool
Valid indicates whether the value is a known member of the ListActionsParamsKind enum.
type ListActionsParamsOrder ¶ added in v0.1.1
type ListActionsParamsOrder string
ListActionsParamsOrder defines parameters for ListActions.
const ( ListActionsParamsOrderAsc ListActionsParamsOrder = "asc" ListActionsParamsOrderDesc ListActionsParamsOrder = "desc" )
Defines values for ListActionsParamsOrder.
func (ListActionsParamsOrder) Valid ¶ added in v0.1.1
func (e ListActionsParamsOrder) Valid() bool
Valid indicates whether the value is a known member of the ListActionsParamsOrder enum.
type ListActionsParamsState ¶ added in v0.1.1
type ListActionsParamsState string
ListActionsParamsState defines parameters for ListActions.
const ( ListActionsParamsStateCancelled ListActionsParamsState = "cancelled" ListActionsParamsStateExecuting ListActionsParamsState = "executing" ListActionsParamsStateFailed ListActionsParamsState = "failed" ListActionsParamsStatePending ListActionsParamsState = "pending" ListActionsParamsStateSucceeded ListActionsParamsState = "succeeded" ListActionsParamsStateUnknown ListActionsParamsState = "unknown" )
Defines values for ListActionsParamsState.
func (ListActionsParamsState) Valid ¶ added in v0.1.1
func (e ListActionsParamsState) Valid() bool
Valid indicates whether the value is a known member of the ListActionsParamsState enum.
type ListActionsResponse ¶
type ListActionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ActionPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListActionsResponse ¶
func ParseListActionsResponse(rsp *http.Response) (*ListActionsResponse, error)
ParseListActionsResponse parses an HTTP response from a ListActionsWithResponse call
func (ListActionsResponse) ContentType ¶
func (r ListActionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListActionsResponse) GetBody ¶
func (r ListActionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListActionsResponse) GetJSON200 ¶
func (r ListActionsResponse) GetJSON200() *ActionPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListActionsResponse) GetJSON400 ¶
func (r ListActionsResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListActionsResponse) GetJSON401 ¶
func (r ListActionsResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListActionsResponse) GetJSON403 ¶
func (r ListActionsResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListActionsResponse) GetJSON404 ¶
func (r ListActionsResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListActionsResponse) GetJSON503 ¶
func (r ListActionsResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListActionsResponse) Status ¶
func (r ListActionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListActionsResponse) StatusCode ¶
func (r ListActionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAuditParams ¶ added in v0.1.1
type ListAuditParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListAuditParams defines parameters for ListAudit.
type ListAuditResponse ¶ added in v0.1.1
type ListAuditResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuditPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListAuditResponse ¶ added in v0.1.1
func ParseListAuditResponse(rsp *http.Response) (*ListAuditResponse, error)
ParseListAuditResponse parses an HTTP response from a ListAuditWithResponse call
func (ListAuditResponse) ContentType ¶ added in v0.1.1
func (r ListAuditResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAuditResponse) GetBody ¶ added in v0.1.1
func (r ListAuditResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAuditResponse) GetJSON200 ¶ added in v0.1.1
func (r ListAuditResponse) GetJSON200() *AuditPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAuditResponse) GetJSON400 ¶ added in v0.1.1
func (r ListAuditResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListAuditResponse) GetJSON401 ¶ added in v0.1.1
func (r ListAuditResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListAuditResponse) GetJSON403 ¶ added in v0.1.1
func (r ListAuditResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListAuditResponse) GetJSON404 ¶ added in v0.1.1
func (r ListAuditResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListAuditResponse) GetJSON503 ¶ added in v0.1.1
func (r ListAuditResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListAuditResponse) Status ¶ added in v0.1.1
func (r ListAuditResponse) Status() string
Status returns HTTPResponse.Status
func (ListAuditResponse) StatusCode ¶ added in v0.1.1
func (r ListAuditResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListBlacklistParams ¶
type ListBlacklistParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListBlacklistParams defines parameters for ListBlacklist.
type ListBlacklistResponse ¶
type ListBlacklistResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BlacklistPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListBlacklistResponse ¶
func ParseListBlacklistResponse(rsp *http.Response) (*ListBlacklistResponse, error)
ParseListBlacklistResponse parses an HTTP response from a ListBlacklistWithResponse call
func (ListBlacklistResponse) ContentType ¶
func (r ListBlacklistResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListBlacklistResponse) GetBody ¶
func (r ListBlacklistResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListBlacklistResponse) GetJSON200 ¶
func (r ListBlacklistResponse) GetJSON200() *BlacklistPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListBlacklistResponse) GetJSON400 ¶
func (r ListBlacklistResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListBlacklistResponse) GetJSON401 ¶
func (r ListBlacklistResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListBlacklistResponse) GetJSON403 ¶
func (r ListBlacklistResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListBlacklistResponse) GetJSON404 ¶
func (r ListBlacklistResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListBlacklistResponse) GetJSON503 ¶
func (r ListBlacklistResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListBlacklistResponse) Status ¶
func (r ListBlacklistResponse) Status() string
Status returns HTTPResponse.Status
func (ListBlacklistResponse) StatusCode ¶
func (r ListBlacklistResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDeliveriesParams ¶ added in v0.1.1
type ListDeliveriesParams = ListDeliverysParams
ListDeliveriesParams and ListDeliveriesResponse share the published 0.4 types.
type ListDeliveriesResponse ¶ added in v0.1.1
type ListDeliveriesResponse = ListDeliverysResponse
func ParseListDeliveriesResponse ¶ added in v0.1.1
func ParseListDeliveriesResponse(response *http.Response) (*ListDeliveriesResponse, error)
type ListDeliverysParams ¶
type ListDeliverysParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListDeliverysParams defines parameters for ListDeliverys.
type ListDeliverysResponse ¶
type ListDeliverysResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DeliveryPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListDeliverysResponse ¶
func ParseListDeliverysResponse(rsp *http.Response) (*ListDeliverysResponse, error)
ParseListDeliverysResponse parses an HTTP response from a ListDeliverysWithResponse call
func (ListDeliverysResponse) ContentType ¶
func (r ListDeliverysResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDeliverysResponse) GetBody ¶
func (r ListDeliverysResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDeliverysResponse) GetJSON200 ¶
func (r ListDeliverysResponse) GetJSON200() *DeliveryPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDeliverysResponse) GetJSON400 ¶
func (r ListDeliverysResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListDeliverysResponse) GetJSON401 ¶
func (r ListDeliverysResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListDeliverysResponse) GetJSON403 ¶
func (r ListDeliverysResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListDeliverysResponse) GetJSON404 ¶
func (r ListDeliverysResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListDeliverysResponse) GetJSON503 ¶
func (r ListDeliverysResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListDeliverysResponse) Status ¶
func (r ListDeliverysResponse) Status() string
Status returns HTTPResponse.Status
func (ListDeliverysResponse) StatusCode ¶
func (r ListDeliverysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListGroupDirectoryParams ¶ added in v0.1.1
type ListGroupDirectoryParams struct {
School *string `form:"school,omitempty" json:"school,omitempty"`
Category *ListGroupDirectoryParamsCategory `form:"category,omitempty" json:"category,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListGroupDirectoryParams defines parameters for ListGroupDirectory.
type ListGroupDirectoryParamsCategory ¶ added in v0.1.1
type ListGroupDirectoryParamsCategory string
ListGroupDirectoryParamsCategory defines parameters for ListGroupDirectory.
const ( ListGroupDirectoryParamsCategoryClub ListGroupDirectoryParamsCategory = "club" ListGroupDirectoryParamsCategoryCourse ListGroupDirectoryParamsCategory = "course" ListGroupDirectoryParamsCategoryDepartment ListGroupDirectoryParamsCategory = "department" ListGroupDirectoryParamsCategoryGrade ListGroupDirectoryParamsCategory = "grade" ListGroupDirectoryParamsCategorySchool ListGroupDirectoryParamsCategory = "school" )
Defines values for ListGroupDirectoryParamsCategory.
func (ListGroupDirectoryParamsCategory) Valid ¶ added in v0.1.1
func (e ListGroupDirectoryParamsCategory) Valid() bool
Valid indicates whether the value is a known member of the ListGroupDirectoryParamsCategory enum.
type ListGroupDirectoryResponse ¶ added in v0.1.1
type ListGroupDirectoryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DirectoryGroupPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListGroupDirectoryResponse ¶ added in v0.1.1
func ParseListGroupDirectoryResponse(rsp *http.Response) (*ListGroupDirectoryResponse, error)
ParseListGroupDirectoryResponse parses an HTTP response from a ListGroupDirectoryWithResponse call
func (ListGroupDirectoryResponse) ContentType ¶ added in v0.1.1
func (r ListGroupDirectoryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListGroupDirectoryResponse) GetBody ¶ added in v0.1.1
func (r ListGroupDirectoryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListGroupDirectoryResponse) GetJSON200 ¶ added in v0.1.1
func (r ListGroupDirectoryResponse) GetJSON200() *DirectoryGroupPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListGroupDirectoryResponse) GetJSON400 ¶ added in v0.1.1
func (r ListGroupDirectoryResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListGroupDirectoryResponse) GetJSON401 ¶ added in v0.1.1
func (r ListGroupDirectoryResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListGroupDirectoryResponse) GetJSON403 ¶ added in v0.1.1
func (r ListGroupDirectoryResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListGroupDirectoryResponse) GetJSON503 ¶ added in v0.1.1
func (r ListGroupDirectoryResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListGroupDirectoryResponse) Status ¶ added in v0.1.1
func (r ListGroupDirectoryResponse) Status() string
Status returns HTTPResponse.Status
func (ListGroupDirectoryResponse) StatusCode ¶ added in v0.1.1
func (r ListGroupDirectoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListGroupsParams ¶
type ListGroupsParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListGroupsParams defines parameters for ListGroups.
type ListGroupsResponse ¶
type ListGroupsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GroupSummaryPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListGroupsResponse ¶
func ParseListGroupsResponse(rsp *http.Response) (*ListGroupsResponse, error)
ParseListGroupsResponse parses an HTTP response from a ListGroupsWithResponse call
func (ListGroupsResponse) ContentType ¶
func (r ListGroupsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListGroupsResponse) GetBody ¶
func (r ListGroupsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListGroupsResponse) GetJSON200 ¶
func (r ListGroupsResponse) GetJSON200() *GroupSummaryPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListGroupsResponse) GetJSON400 ¶
func (r ListGroupsResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListGroupsResponse) GetJSON401 ¶
func (r ListGroupsResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListGroupsResponse) GetJSON403 ¶
func (r ListGroupsResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListGroupsResponse) GetJSON503 ¶
func (r ListGroupsResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListGroupsResponse) Status ¶
func (r ListGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (ListGroupsResponse) StatusCode ¶
func (r ListGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListHitsParams ¶
type ListHitsParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Order *ListHitsParamsOrder `form:"order,omitempty" json:"order,omitempty"`
}
ListHitsParams defines parameters for ListHits.
type ListHitsParamsOrder ¶ added in v0.1.1
type ListHitsParamsOrder string
ListHitsParamsOrder defines parameters for ListHits.
const ( ListHitsParamsOrderAsc ListHitsParamsOrder = "asc" ListHitsParamsOrderDesc ListHitsParamsOrder = "desc" )
Defines values for ListHitsParamsOrder.
func (ListHitsParamsOrder) Valid ¶ added in v0.1.1
func (e ListHitsParamsOrder) Valid() bool
Valid indicates whether the value is a known member of the ListHitsParamsOrder enum.
type ListHitsResponse ¶
type ListHitsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HitPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListHitsResponse ¶
func ParseListHitsResponse(rsp *http.Response) (*ListHitsResponse, error)
ParseListHitsResponse parses an HTTP response from a ListHitsWithResponse call
func (ListHitsResponse) ContentType ¶
func (r ListHitsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListHitsResponse) GetBody ¶
func (r ListHitsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListHitsResponse) GetJSON200 ¶
func (r ListHitsResponse) GetJSON200() *HitPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListHitsResponse) GetJSON400 ¶
func (r ListHitsResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListHitsResponse) GetJSON401 ¶
func (r ListHitsResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListHitsResponse) GetJSON403 ¶
func (r ListHitsResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListHitsResponse) GetJSON404 ¶
func (r ListHitsResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListHitsResponse) GetJSON503 ¶
func (r ListHitsResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListHitsResponse) Status ¶
func (r ListHitsResponse) Status() string
Status returns HTTPResponse.Status
func (ListHitsResponse) StatusCode ¶
func (r ListHitsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMembersParams ¶
type ListMembersParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
State *ListMembersParamsState `form:"state,omitempty" json:"state,omitempty"`
Joined *bool `form:"joined,omitempty" json:"joined,omitempty"`
Exempt *bool `form:"exempt,omitempty" json:"exempt,omitempty"`
}
ListMembersParams defines parameters for ListMembers.
type ListMembersParamsState ¶ added in v0.1.1
type ListMembersParamsState string
ListMembersParamsState defines parameters for ListMembers.
const ( ListMembersParamsStateAwaitingVerification ListMembersParamsState = "awaiting_verification" ListMembersParamsStateExempt ListMembersParamsState = "exempt" ListMembersParamsStateExtended ListMembersParamsState = "extended" ListMembersParamsStateGrace ListMembersParamsState = "grace" ListMembersParamsStateRemovalPending ListMembersParamsState = "removal_pending" ListMembersParamsStateRemoved ListMembersParamsState = "removed" ListMembersParamsStateRequested ListMembersParamsState = "requested" ListMembersParamsStateRestored ListMembersParamsState = "restored" )
Defines values for ListMembersParamsState.
func (ListMembersParamsState) Valid ¶ added in v0.1.1
func (e ListMembersParamsState) Valid() bool
Valid indicates whether the value is a known member of the ListMembersParamsState enum.
type ListMembersResponse ¶
type ListMembersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MemberPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListMembersResponse ¶
func ParseListMembersResponse(rsp *http.Response) (*ListMembersResponse, error)
ParseListMembersResponse parses an HTTP response from a ListMembersWithResponse call
func (ListMembersResponse) ContentType ¶
func (r ListMembersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListMembersResponse) GetBody ¶
func (r ListMembersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListMembersResponse) GetJSON200 ¶
func (r ListMembersResponse) GetJSON200() *MemberPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListMembersResponse) GetJSON400 ¶
func (r ListMembersResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListMembersResponse) GetJSON401 ¶
func (r ListMembersResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListMembersResponse) GetJSON403 ¶
func (r ListMembersResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListMembersResponse) GetJSON404 ¶
func (r ListMembersResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListMembersResponse) GetJSON503 ¶
func (r ListMembersResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListMembersResponse) Status ¶
func (r ListMembersResponse) Status() string
Status returns HTTPResponse.Status
func (ListMembersResponse) StatusCode ¶
func (r ListMembersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMessagesParams ¶
type ListMessagesParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Recalled *bool `form:"recalled,omitempty" json:"recalled,omitempty"`
Order *ListMessagesParamsOrder `form:"order,omitempty" json:"order,omitempty"`
}
ListMessagesParams defines parameters for ListMessages.
type ListMessagesParamsOrder ¶ added in v0.1.1
type ListMessagesParamsOrder string
ListMessagesParamsOrder defines parameters for ListMessages.
const ( ListMessagesParamsOrderAsc ListMessagesParamsOrder = "asc" ListMessagesParamsOrderDesc ListMessagesParamsOrder = "desc" )
Defines values for ListMessagesParamsOrder.
func (ListMessagesParamsOrder) Valid ¶ added in v0.1.1
func (e ListMessagesParamsOrder) Valid() bool
Valid indicates whether the value is a known member of the ListMessagesParamsOrder enum.
type ListMessagesResponse ¶
type ListMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MessagePage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListMessagesResponse ¶
func ParseListMessagesResponse(rsp *http.Response) (*ListMessagesResponse, error)
ParseListMessagesResponse parses an HTTP response from a ListMessagesWithResponse call
func (ListMessagesResponse) ContentType ¶
func (r ListMessagesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListMessagesResponse) GetBody ¶
func (r ListMessagesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListMessagesResponse) GetJSON200 ¶
func (r ListMessagesResponse) GetJSON200() *MessagePage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListMessagesResponse) GetJSON400 ¶
func (r ListMessagesResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListMessagesResponse) GetJSON401 ¶
func (r ListMessagesResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListMessagesResponse) GetJSON403 ¶
func (r ListMessagesResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListMessagesResponse) GetJSON404 ¶
func (r ListMessagesResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListMessagesResponse) GetJSON503 ¶
func (r ListMessagesResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListMessagesResponse) Status ¶
func (r ListMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (ListMessagesResponse) StatusCode ¶
func (r ListMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMyGroupsParams ¶
type ListMyGroupsParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListMyGroupsParams defines parameters for ListMyGroups.
type ListMyGroupsResponse ¶
type ListMyGroupsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MyGroupPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListMyGroupsResponse ¶
func ParseListMyGroupsResponse(rsp *http.Response) (*ListMyGroupsResponse, error)
ParseListMyGroupsResponse parses an HTTP response from a ListMyGroupsWithResponse call
func (ListMyGroupsResponse) ContentType ¶
func (r ListMyGroupsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListMyGroupsResponse) GetBody ¶
func (r ListMyGroupsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListMyGroupsResponse) GetJSON200 ¶
func (r ListMyGroupsResponse) GetJSON200() *MyGroupPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListMyGroupsResponse) GetJSON400 ¶
func (r ListMyGroupsResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListMyGroupsResponse) GetJSON401 ¶
func (r ListMyGroupsResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListMyGroupsResponse) GetJSON503 ¶
func (r ListMyGroupsResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListMyGroupsResponse) Status ¶
func (r ListMyGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (ListMyGroupsResponse) StatusCode ¶
func (r ListMyGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListReportsParams ¶
type ListReportsParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
State *ListReportsParamsState `form:"state,omitempty" json:"state,omitempty"`
Order *ListReportsParamsOrder `form:"order,omitempty" json:"order,omitempty"`
}
ListReportsParams defines parameters for ListReports.
type ListReportsParamsOrder ¶ added in v0.1.1
type ListReportsParamsOrder string
ListReportsParamsOrder defines parameters for ListReports.
const ( ListReportsParamsOrderAsc ListReportsParamsOrder = "asc" ListReportsParamsOrderDesc ListReportsParamsOrder = "desc" )
Defines values for ListReportsParamsOrder.
func (ListReportsParamsOrder) Valid ¶ added in v0.1.1
func (e ListReportsParamsOrder) Valid() bool
Valid indicates whether the value is a known member of the ListReportsParamsOrder enum.
type ListReportsParamsState ¶ added in v0.1.1
type ListReportsParamsState string
ListReportsParamsState defines parameters for ListReports.
const ( Open ListReportsParamsState = "open" PendingExecution ListReportsParamsState = "pending_execution" Resolved ListReportsParamsState = "resolved" Suggested ListReportsParamsState = "suggested" )
Defines values for ListReportsParamsState.
func (ListReportsParamsState) Valid ¶ added in v0.1.1
func (e ListReportsParamsState) Valid() bool
Valid indicates whether the value is a known member of the ListReportsParamsState enum.
type ListReportsResponse ¶
type ListReportsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReportPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListReportsResponse ¶
func ParseListReportsResponse(rsp *http.Response) (*ListReportsResponse, error)
ParseListReportsResponse parses an HTTP response from a ListReportsWithResponse call
func (ListReportsResponse) ContentType ¶
func (r ListReportsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListReportsResponse) GetBody ¶
func (r ListReportsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListReportsResponse) GetJSON200 ¶
func (r ListReportsResponse) GetJSON200() *ReportPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListReportsResponse) GetJSON400 ¶
func (r ListReportsResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListReportsResponse) GetJSON401 ¶
func (r ListReportsResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListReportsResponse) GetJSON403 ¶
func (r ListReportsResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListReportsResponse) GetJSON404 ¶
func (r ListReportsResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListReportsResponse) GetJSON503 ¶
func (r ListReportsResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListReportsResponse) Status ¶
func (r ListReportsResponse) Status() string
Status returns HTTPResponse.Status
func (ListReportsResponse) StatusCode ¶
func (r ListReportsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSubscriptionsParams ¶
type ListSubscriptionsParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListSubscriptionsParams defines parameters for ListSubscriptions.
type ListSubscriptionsResponse ¶
type ListSubscriptionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SubscriptionPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListSubscriptionsResponse ¶
func ParseListSubscriptionsResponse(rsp *http.Response) (*ListSubscriptionsResponse, error)
ParseListSubscriptionsResponse parses an HTTP response from a ListSubscriptionsWithResponse call
func (ListSubscriptionsResponse) ContentType ¶
func (r ListSubscriptionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSubscriptionsResponse) GetBody ¶
func (r ListSubscriptionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSubscriptionsResponse) GetJSON200 ¶
func (r ListSubscriptionsResponse) GetJSON200() *SubscriptionPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSubscriptionsResponse) GetJSON400 ¶
func (r ListSubscriptionsResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSubscriptionsResponse) GetJSON401 ¶
func (r ListSubscriptionsResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSubscriptionsResponse) GetJSON403 ¶
func (r ListSubscriptionsResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListSubscriptionsResponse) GetJSON404 ¶
func (r ListSubscriptionsResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSubscriptionsResponse) GetJSON503 ¶
func (r ListSubscriptionsResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListSubscriptionsResponse) Status ¶
func (r ListSubscriptionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSubscriptionsResponse) StatusCode ¶
func (r ListSubscriptionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListWarningsParams ¶
type ListWarningsParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListWarningsParams defines parameters for ListWarnings.
type ListWarningsResponse ¶
type ListWarningsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WarningsPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListWarningsResponse ¶
func ParseListWarningsResponse(rsp *http.Response) (*ListWarningsResponse, error)
ParseListWarningsResponse parses an HTTP response from a ListWarningsWithResponse call
func (ListWarningsResponse) ContentType ¶
func (r ListWarningsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListWarningsResponse) GetBody ¶
func (r ListWarningsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListWarningsResponse) GetJSON200 ¶
func (r ListWarningsResponse) GetJSON200() *WarningsPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListWarningsResponse) GetJSON400 ¶
func (r ListWarningsResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListWarningsResponse) GetJSON401 ¶
func (r ListWarningsResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListWarningsResponse) GetJSON403 ¶
func (r ListWarningsResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListWarningsResponse) GetJSON404 ¶
func (r ListWarningsResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListWarningsResponse) GetJSON503 ¶
func (r ListWarningsResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListWarningsResponse) Status ¶
func (r ListWarningsResponse) Status() string
Status returns HTTPResponse.Status
func (ListWarningsResponse) StatusCode ¶
func (r ListWarningsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListWatchParams ¶
type ListWatchParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListWatchParams defines parameters for ListWatch.
type ListWatchResponse ¶
type ListWatchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WatchPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseListWatchResponse ¶
func ParseListWatchResponse(rsp *http.Response) (*ListWatchResponse, error)
ParseListWatchResponse parses an HTTP response from a ListWatchWithResponse call
func (ListWatchResponse) ContentType ¶
func (r ListWatchResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListWatchResponse) GetBody ¶
func (r ListWatchResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListWatchResponse) GetJSON200 ¶
func (r ListWatchResponse) GetJSON200() *WatchPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListWatchResponse) GetJSON400 ¶
func (r ListWatchResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListWatchResponse) GetJSON401 ¶
func (r ListWatchResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListWatchResponse) GetJSON403 ¶
func (r ListWatchResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListWatchResponse) GetJSON404 ¶
func (r ListWatchResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListWatchResponse) GetJSON503 ¶
func (r ListWatchResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListWatchResponse) Status ¶
func (r ListWatchResponse) Status() string
Status returns HTTPResponse.Status
func (ListWatchResponse) StatusCode ¶
func (r ListWatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Member ¶
type Member struct {
// Deadline UTC timestamp. 0001-01-01T00:00:00Z means no deadline/event is currently set.
Deadline time.Time `json:"deadline"`
Exempt bool `json:"exempt"`
Extended bool `json:"extended"`
Failures int64 `json:"failures"`
Id string `json:"id"`
Joined bool `json:"joined"`
// LastPlay UTC timestamp. 0001-01-01T00:00:00Z means no deadline/event is currently set.
LastPlay time.Time `json:"last_play"`
// MutedUntil UTC timestamp. 0001-01-01T00:00:00Z means no deadline/event is currently set.
MutedUntil time.Time `json:"muted_until"`
Owner string `json:"owner"`
Password bool `json:"password"`
// PasswordEpoch Dynamic password generation matched by this member.
PasswordEpoch *int64 `json:"password_epoch,omitempty"`
// Reminder UTC timestamp. 0001-01-01T00:00:00Z means no deadline/event is currently set.
Reminder time.Time `json:"reminder"`
State string `json:"state"`
}
Member defines model for Member.
type MemberPage ¶
type MemberPage struct {
Items []Member `json:"items"`
// NextCursor Opaque cursor for the next scan, or empty when exhausted. A filtered page may be empty with a nonempty cursor.
NextCursor string `json:"next_cursor"`
}
MemberPage defines model for MemberPage.
type Message ¶
type Message struct {
// Attachments Opaque media references. Backend proxy enforces current group access and the same expiry.
Attachments []string `json:"attachments"`
Body string `json:"body"`
Created *time.Time `json:"created,omitempty"`
Expires time.Time `json:"expires"`
Id string `json:"id"`
Owner string `json:"owner"`
Recalled bool `json:"recalled"`
}
Message defines model for Message.
type MessagePage ¶
type MessagePage struct {
Items []Message `json:"items"`
// NextCursor Opaque cursor for the next scan, or empty when exhausted. A filtered page may be empty with a nonempty cursor.
NextCursor string `json:"next_cursor"`
}
MessagePage defines model for MessagePage.
type MuteBatchCommand ¶
type MuteBatchCommand struct {
Kind MuteBatchCommandKind `json:"kind"`
Seconds int64 `json:"seconds"`
Text *string `json:"text,omitempty"`
}
MuteBatchCommand Management command; requires current group-scoped capability.
type MuteBatchCommandKind ¶
type MuteBatchCommandKind string
MuteBatchCommandKind defines model for MuteBatchCommand.Kind.
const (
MuteBatchCommandKindMute MuteBatchCommandKind = "mute"
)
Defines values for MuteBatchCommandKind.
func (MuteBatchCommandKind) Valid ¶
func (e MuteBatchCommandKind) Valid() bool
Valid indicates whether the value is a known member of the MuteBatchCommandKind enum.
type MuteCommand ¶
type MuteCommand struct {
Kind MuteCommandKind `json:"kind"`
Seconds int64 `json:"seconds"`
Target string `json:"target"`
Text *string `json:"text,omitempty"`
}
MuteCommand Management command; requires current group-scoped capability.
type MuteCommandKind ¶
type MuteCommandKind string
MuteCommandKind defines model for MuteCommand.Kind.
const (
MuteCommandKindMute MuteCommandKind = "mute"
)
Defines values for MuteCommandKind.
func (MuteCommandKind) Valid ¶
func (e MuteCommandKind) Valid() bool
Valid indicates whether the value is a known member of the MuteCommandKind enum.
type MyGroup ¶
type MyGroup struct {
// Deadline Current deadline in UTC, or null when none. Reads do not extend or restart the deadline.
Deadline *time.Time `json:"deadline"`
// Eligibility Current prerequisite assessment, separate from recorded membership/approval or exemption. Any required unknown fact prevents eligible.
Eligibility MyGroupEligibility `json:"eligibility"`
// Id Internal group ID.
Id string `json:"id"`
// Joined True only after the bot confirms group membership; an application does not imply joining.
Joined bool `json:"joined"`
// MissingCardFields Optional card template field keys not yet disclosed or available for this group's card check; never contains field values.
MissingCardFields *[]MyGroupMissingCardFields `json:"missing_card_fields,omitempty"`
// MissingConditions Confirmed unmet conditions only. restricted discloses no blacklist reasons or management data.
MissingConditions []MyGroupMissingConditions `json:"missing_conditions"`
Name string `json:"name"`
// NextActions UI action categories, not authorization grants. Unknown facts suggest refresh. Unsupported stages suggest contacting an administrator rather than repeating verification.
NextActions []MyGroupNextActions `json:"next_actions"`
// Number Masked group number, showing at most the final four digits; empty when not recorded.
Number string `json:"number"`
// PasswordHint Optional hint describing where to locate the dynamic password; present only when requires_password is true and a hint is configured.
PasswordHint *string `json:"password_hint,omitempty"`
// RequiresPassword The group uses password mode. A previously accepted password is not listed as missing.
RequiresPassword bool `json:"requires_password"`
School string `json:"school"`
// State Stored processing state for this authenticated user; removed memberships are excluded.
State MyGroupState `json:"state"`
// UnknownConditions Required facts whose provider explicitly reported unknown. A provider failure instead returns HTTP 503 with no partial page.
UnknownConditions []MyGroupUnknownConditions `json:"unknown_conditions"`
}
MyGroup defines model for MyGroup.
type MyGroupEligibility ¶
type MyGroupEligibility string
MyGroupEligibility Current prerequisite assessment, separate from recorded membership/approval or exemption. Any required unknown fact prevents eligible.
const ( MyGroupEligibilityEligible MyGroupEligibility = "eligible" MyGroupEligibilityIneligible MyGroupEligibility = "ineligible" MyGroupEligibilityUnknown MyGroupEligibility = "unknown" )
Defines values for MyGroupEligibility.
func (MyGroupEligibility) Valid ¶
func (e MyGroupEligibility) Valid() bool
Valid indicates whether the value is a known member of the MyGroupEligibility enum.
type MyGroupMissingCardFields ¶ added in v0.1.1
type MyGroupMissingCardFields string
MyGroupMissingCardFields defines model for MyGroup.MissingCardFields.
const ( MyGroupMissingCardFieldsDepartment MyGroupMissingCardFields = "department" MyGroupMissingCardFieldsGender MyGroupMissingCardFields = "gender" MyGroupMissingCardFieldsGrade MyGroupMissingCardFields = "grade" MyGroupMissingCardFieldsName MyGroupMissingCardFields = "name" MyGroupMissingCardFieldsNickname MyGroupMissingCardFields = "nickname" MyGroupMissingCardFieldsSchool MyGroupMissingCardFields = "school" MyGroupMissingCardFieldsStudentId MyGroupMissingCardFields = "student_id" )
Defines values for MyGroupMissingCardFields.
func (MyGroupMissingCardFields) Valid ¶ added in v0.1.1
func (e MyGroupMissingCardFields) Valid() bool
Valid indicates whether the value is a known member of the MyGroupMissingCardFields enum.
type MyGroupMissingConditions ¶
type MyGroupMissingConditions string
MyGroupMissingConditions defines model for MyGroup.MissingConditions.
const ( MyGroupMissingConditionsAlumniNotAccepted MyGroupMissingConditions = "alumni_not_accepted" MyGroupMissingConditionsPassword MyGroupMissingConditions = "password" MyGroupMissingConditionsQqBinding MyGroupMissingConditions = "qq_binding" MyGroupMissingConditionsRestricted MyGroupMissingConditions = "restricted" MyGroupMissingConditionsStudentVerification MyGroupMissingConditions = "student_verification" MyGroupMissingConditionsTemporaryNotAccepted MyGroupMissingConditions = "temporary_not_accepted" )
Defines values for MyGroupMissingConditions.
func (MyGroupMissingConditions) Valid ¶
func (e MyGroupMissingConditions) Valid() bool
Valid indicates whether the value is a known member of the MyGroupMissingConditions enum.
type MyGroupNextActions ¶
type MyGroupNextActions string
MyGroupNextActions defines model for MyGroup.NextActions.
const ( BindQq MyGroupNextActions = "bind_qq" ContactGroupAdmin MyGroupNextActions = "contact_group_admin" Refresh MyGroupNextActions = "refresh" SubmitPassword MyGroupNextActions = "submit_password" VerifyStudent MyGroupNextActions = "verify_student" )
Defines values for MyGroupNextActions.
func (MyGroupNextActions) Valid ¶
func (e MyGroupNextActions) Valid() bool
Valid indicates whether the value is a known member of the MyGroupNextActions enum.
type MyGroupPage ¶
type MyGroupPage struct {
Items []MyGroup `json:"items"`
// NextCursor Last returned group ID if another page exists, or empty when exhausted.
NextCursor string `json:"next_cursor"`
}
MyGroupPage defines model for MyGroupPage.
type MyGroupState ¶
type MyGroupState string
MyGroupState Stored processing state for this authenticated user; removed memberships are excluded.
const ( MyGroupStateAwaitingVerification MyGroupState = "awaiting_verification" MyGroupStateExempt MyGroupState = "exempt" MyGroupStateExtended MyGroupState = "extended" MyGroupStateGrace MyGroupState = "grace" MyGroupStateRemovalPending MyGroupState = "removal_pending" MyGroupStateRequested MyGroupState = "requested" MyGroupStateRestored MyGroupState = "restored" )
Defines values for MyGroupState.
func (MyGroupState) Valid ¶
func (e MyGroupState) Valid() bool
Valid indicates whether the value is a known member of the MyGroupState enum.
type MyGroupUnknownConditions ¶
type MyGroupUnknownConditions string
MyGroupUnknownConditions defines model for MyGroup.UnknownConditions.
const ( StudentEligibility MyGroupUnknownConditions = "student_eligibility" StudentStage MyGroupUnknownConditions = "student_stage" )
Defines values for MyGroupUnknownConditions.
func (MyGroupUnknownConditions) Valid ¶
func (e MyGroupUnknownConditions) Valid() bool
Valid indicates whether the value is a known member of the MyGroupUnknownConditions enum.
type OwnProgressResponse ¶
type OwnProgressResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Member
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Problem
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Problem
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Problem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Problem
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Problem
}
func ParseOwnProgressResponse ¶
func ParseOwnProgressResponse(rsp *http.Response) (*OwnProgressResponse, error)
ParseOwnProgressResponse parses an HTTP response from a OwnProgressWithResponse call
func (OwnProgressResponse) ContentType ¶
func (r OwnProgressResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (OwnProgressResponse) GetBody ¶
func (r OwnProgressResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (OwnProgressResponse) GetJSON200 ¶
func (r OwnProgressResponse) GetJSON200() *Member
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (OwnProgressResponse) GetJSON400 ¶
func (r OwnProgressResponse) GetJSON400() *Problem
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (OwnProgressResponse) GetJSON401 ¶
func (r OwnProgressResponse) GetJSON401() *Problem
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (OwnProgressResponse) GetJSON403 ¶
func (r OwnProgressResponse) GetJSON403() *Problem
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (OwnProgressResponse) GetJSON404 ¶
func (r OwnProgressResponse) GetJSON404() *Problem
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (OwnProgressResponse) GetJSON503 ¶
func (r OwnProgressResponse) GetJSON503() *Problem
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (OwnProgressResponse) Status ¶
func (r OwnProgressResponse) Status() string
Status returns HTTPResponse.Status
func (OwnProgressResponse) StatusCode ¶
func (r OwnProgressResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PasswordCommand ¶
type PasswordCommand struct {
Kind PasswordCommandKind `json:"kind"`
Text string `json:"text"`
}
PasswordCommand User command; caller only.
type PasswordCommandKind ¶
type PasswordCommandKind string
PasswordCommandKind defines model for PasswordCommand.Kind.
const (
PasswordCommandKindPassword PasswordCommandKind = "password"
)
Defines values for PasswordCommandKind.
func (PasswordCommandKind) Valid ¶
func (e PasswordCommandKind) Valid() bool
Valid indicates whether the value is a known member of the PasswordCommandKind enum.
type PreviewCommand ¶
type PreviewCommand struct {
Kind PreviewCommandKind `json:"kind"`
Message *string `json:"message,omitempty"`
Target string `json:"target"`
Text string `json:"text"`
}
PreviewCommand Management command; requires current group-scoped capability.
type PreviewCommandKind ¶
type PreviewCommandKind string
PreviewCommandKind defines model for PreviewCommand.Kind.
const (
PreviewCommandKindPreview PreviewCommandKind = "preview"
)
Defines values for PreviewCommandKind.
func (PreviewCommandKind) Valid ¶
func (e PreviewCommandKind) Valid() bool
Valid indicates whether the value is a known member of the PreviewCommandKind enum.
type Problem ¶
type Problem struct {
// Code groups_invalid_request: Malformed JSON, invalid pagination or missing/invalid idempotency key. groups_unauthenticated: Missing or invalid authenticated identity. groups_forbidden: Current identity cannot perform this operation. groups_not_found: Requested group, member, message or related object does not exist. groups_conflict: Stale expected_revision, immutable school change, or idempotency key reused with different content. groups_unprocessable: Body does not match the selected command or request schema. groups_disabled: Feature is not configured or enabled. groups_cooldown: Cooldown or pending action capacity prevents this operation. groups_unavailable: Database, authorization or fact provider is unavailable, or an upstream result cannot be verified.
Code ProblemCode `json:"code"`
// Field Optional request field name associated with validation or conflict errors.
Field *string `json:"field,omitempty"`
// Reason Optional sanitized subcode for localized UI and bot prompts.
Reason *ProblemReason `json:"reason,omitempty"`
// RetryAfterSeconds Optional remaining cooldown seconds; paired with the HTTP Retry-After header.
RetryAfterSeconds *int64 `json:"retry_after_seconds,omitempty"`
}
Problem defines model for Problem.
type ProblemCode ¶
type ProblemCode string
ProblemCode groups_invalid_request: Malformed JSON, invalid pagination or missing/invalid idempotency key. groups_unauthenticated: Missing or invalid authenticated identity. groups_forbidden: Current identity cannot perform this operation. groups_not_found: Requested group, member, message or related object does not exist. groups_conflict: Stale expected_revision, immutable school change, or idempotency key reused with different content. groups_unprocessable: Body does not match the selected command or request schema. groups_disabled: Feature is not configured or enabled. groups_cooldown: Cooldown or pending action capacity prevents this operation. groups_unavailable: Database, authorization or fact provider is unavailable, or an upstream result cannot be verified.
const ( GroupsConflict ProblemCode = "groups_conflict" GroupsCooldown ProblemCode = "groups_cooldown" GroupsDisabled ProblemCode = "groups_disabled" GroupsForbidden ProblemCode = "groups_forbidden" GroupsInvalidRequest ProblemCode = "groups_invalid_request" GroupsNotFound ProblemCode = "groups_not_found" GroupsUnauthenticated ProblemCode = "groups_unauthenticated" GroupsUnprocessable ProblemCode = "groups_unprocessable" )
Defines values for ProblemCode.
func (ProblemCode) Valid ¶
func (e ProblemCode) Valid() bool
Valid indicates whether the value is a known member of the ProblemCode enum.
type ProblemReason ¶ added in v0.1.1
type ProblemReason string
ProblemReason Optional sanitized subcode for localized UI and bot prompts.
const ( ActionExecuting ProblemReason = "action_executing" ActionQueueFull ProblemReason = "action_queue_full" BotDisabled ProblemReason = "bot_disabled" CardCheckDisabled ProblemReason = "card_check_disabled" DiceDisabled ProblemReason = "dice_disabled" IdempotencyMismatch ProblemReason = "idempotency_mismatch" InvalidField ProblemReason = "invalid_field" MemberCooldown ProblemReason = "member_cooldown" MissingCooldownSeconds ProblemReason = "missing_cooldown_seconds" MissingMuteSeconds ProblemReason = "missing_mute_seconds" MissingPassword ProblemReason = "missing_password" PasswordModeDisabled ProblemReason = "password_mode_disabled" RevisionMismatch ProblemReason = "revision_mismatch" SchemaValidationFailed ProblemReason = "schema_validation_failed" SchoolImmutable ProblemReason = "school_immutable" SelfMuteDisabled ProblemReason = "self_mute_disabled" )
Defines values for ProblemReason.
func (ProblemReason) Valid ¶ added in v0.1.1
func (e ProblemReason) Valid() bool
Valid indicates whether the value is a known member of the ProblemReason enum.
type RecallCommand ¶
type RecallCommand struct {
Kind RecallCommandKind `json:"kind"`
Message string `json:"message"`
}
RecallCommand Management command; requires current group-scoped capability.
type RecallCommandKind ¶
type RecallCommandKind string
RecallCommandKind defines model for RecallCommand.Kind.
const (
RecallCommandKindRecall RecallCommandKind = "recall"
)
Defines values for RecallCommandKind.
func (RecallCommandKind) Valid ¶
func (e RecallCommandKind) Valid() bool
Valid indicates whether the value is a known member of the RecallCommandKind enum.
type RecheckBatchCommand ¶
type RecheckBatchCommand struct {
Kind RecheckBatchCommandKind `json:"kind"`
}
RecheckBatchCommand Management command; requires current group-scoped capability.
type RecheckBatchCommandKind ¶
type RecheckBatchCommandKind string
RecheckBatchCommandKind defines model for RecheckBatchCommand.Kind.
const (
RecheckBatchCommandKindRecheck RecheckBatchCommandKind = "recheck"
)
Defines values for RecheckBatchCommandKind.
func (RecheckBatchCommandKind) Valid ¶
func (e RecheckBatchCommandKind) Valid() bool
Valid indicates whether the value is a known member of the RecheckBatchCommandKind enum.
type RecheckCommand ¶
type RecheckCommand struct {
Kind RecheckCommandKind `json:"kind"`
Target string `json:"target"`
}
RecheckCommand Management command; requires current group-scoped capability.
type RecheckCommandKind ¶
type RecheckCommandKind string
RecheckCommandKind defines model for RecheckCommand.Kind.
const (
RecheckCommandKindRecheck RecheckCommandKind = "recheck"
)
Defines values for RecheckCommandKind.
func (RecheckCommandKind) Valid ¶
func (e RecheckCommandKind) Valid() bool
Valid indicates whether the value is a known member of the RecheckCommandKind enum.
type Report ¶
type Report struct {
Analysis *string `json:"analysis,omitempty"`
Created *time.Time `json:"created,omitempty"`
Feedback *string `json:"feedback,omitempty"`
Id string `json:"id"`
Message string `json:"message"`
Reason string `json:"reason"`
Reporter string `json:"reporter"`
ResolvedBy *Actor `json:"resolved_by,omitempty"`
State string `json:"state"`
Suggestions *[]string `json:"suggestions,omitempty"`
// Target Owner key of the reported message author when the message was retained at report creation time; never includes message body.
Target *string `json:"target,omitempty"`
Updated *time.Time `json:"updated,omitempty"`
}
Report defines model for Report.
type ReportCommand ¶
type ReportCommand struct {
Kind ReportCommandKind `json:"kind"`
Message string `json:"message"`
Text string `json:"text"`
}
ReportCommand User command; caller only.
type ReportCommandKind ¶
type ReportCommandKind string
ReportCommandKind defines model for ReportCommand.Kind.
const (
ReportCommandKindReport ReportCommandKind = "report"
)
Defines values for ReportCommandKind.
func (ReportCommandKind) Valid ¶
func (e ReportCommandKind) Valid() bool
Valid indicates whether the value is a known member of the ReportCommandKind enum.
type ReportPage ¶
type ReportPage struct {
Items []Report `json:"items"`
// NextCursor Opaque cursor for the next scan, or empty when exhausted. A filtered page may be empty with a nonempty cursor.
NextCursor string `json:"next_cursor"`
}
ReportPage defines model for ReportPage.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Result ¶
type Result struct {
Action string `json:"action"`
Detail string `json:"detail"`
Id string `json:"id"`
// MaxValue Configured upper bound for randomized commands such as dice_sides.
MaxValue *int64 `json:"max_value,omitempty"`
// MissingFields Optional list of card template field keys not yet disclosed or available.
MissingFields *[]ResultMissingFields `json:"missing_fields,omitempty"`
// PityRemaining Remaining attempts before guaranteed pity trigger when pity > 0.
PityRemaining *int64 `json:"pity_remaining,omitempty"`
// Seconds Effective duration in seconds for timed dispositions or voluntary self_mute.
Seconds *int64 `json:"seconds,omitempty"`
State string `json:"state"`
Value int64 `json:"value"`
}
Result defines model for Result.
type ResultMissingFields ¶ added in v0.1.1
type ResultMissingFields string
ResultMissingFields defines model for Result.MissingFields.
const ( ResultMissingFieldsDepartment ResultMissingFields = "department" ResultMissingFieldsGender ResultMissingFields = "gender" ResultMissingFieldsGrade ResultMissingFields = "grade" ResultMissingFieldsName ResultMissingFields = "name" ResultMissingFieldsNickname ResultMissingFields = "nickname" ResultMissingFieldsSchool ResultMissingFields = "school" ResultMissingFieldsStudentId ResultMissingFields = "student_id" )
Defines values for ResultMissingFields.
func (ResultMissingFields) Valid ¶ added in v0.1.1
func (e ResultMissingFields) Valid() bool
Valid indicates whether the value is a known member of the ResultMissingFields enum.
type RetryActionCommand ¶ added in v0.1.1
type RetryActionCommand struct {
Kind RetryActionCommandKind `json:"kind"`
Target string `json:"target"`
Text *string `json:"text,omitempty"`
}
RetryActionCommand Management command; queues a controlled retry for a confirmed failed bot action.
type RetryActionCommandKind ¶ added in v0.1.1
type RetryActionCommandKind string
RetryActionCommandKind defines model for RetryActionCommand.Kind.
const (
RetryActionCommandKindRetryAction RetryActionCommandKind = "retry_action"
)
Defines values for RetryActionCommandKind.
func (RetryActionCommandKind) Valid ¶ added in v0.1.1
func (e RetryActionCommandKind) Valid() bool
Valid indicates whether the value is a known member of the RetryActionCommandKind enum.
type RuleCommand ¶
type RuleCommand struct {
Kind RuleCommandKind `json:"kind"`
Message string `json:"message"`
Target string `json:"target"`
Text string `json:"text"`
}
RuleCommand Management command; requires current group-scoped capability.
type RuleCommandKind ¶
type RuleCommandKind string
RuleCommandKind defines model for RuleCommand.Kind.
const (
RuleCommandKindRule RuleCommandKind = "rule"
)
Defines values for RuleCommandKind.
func (RuleCommandKind) Valid ¶
func (e RuleCommandKind) Valid() bool
Valid indicates whether the value is a known member of the RuleCommandKind enum.
type SelfMuteCommand ¶
type SelfMuteCommand struct {
Kind SelfMuteCommandKind `json:"kind"`
}
SelfMuteCommand User command; caller only.
type SelfMuteCommandKind ¶
type SelfMuteCommandKind string
SelfMuteCommandKind defines model for SelfMuteCommand.Kind.
const (
SelfMuteCommandKindSelfMute SelfMuteCommandKind = "self_mute"
)
Defines values for SelfMuteCommandKind.
func (SelfMuteCommandKind) Valid ¶
func (e SelfMuteCommandKind) Valid() bool
Valid indicates whether the value is a known member of the SelfMuteCommandKind enum.
type SendCommand ¶
type SendCommand struct {
Kind SendCommandKind `json:"kind"`
Text string `json:"text"`
}
SendCommand Management command; requires current group-scoped capability.
type SendCommandKind ¶
type SendCommandKind string
SendCommandKind defines model for SendCommand.Kind.
const (
SendCommandKindSend SendCommandKind = "send"
)
Defines values for SendCommandKind.
func (SendCommandKind) Valid ¶
func (e SendCommandKind) Valid() bool
Valid indicates whether the value is a known member of the SendCommandKind enum.
type SubscribeCommand ¶
type SubscribeCommand struct {
Enabled bool `json:"enabled"`
Kind SubscribeCommandKind `json:"kind"`
Receiver string `json:"receiver"`
}
SubscribeCommand Management command; requires current group-scoped capability.
type SubscribeCommandKind ¶
type SubscribeCommandKind string
SubscribeCommandKind defines model for SubscribeCommand.Kind.
const (
SubscribeCommandKindSubscribe SubscribeCommandKind = "subscribe"
)
Defines values for SubscribeCommandKind.
func (SubscribeCommandKind) Valid ¶
func (e SubscribeCommandKind) Valid() bool
Valid indicates whether the value is a known member of the SubscribeCommandKind enum.
type Subscription ¶
type Subscription struct {
Actor Actor `json:"actor"`
Enabled bool `json:"enabled"`
Id string `json:"id"`
Receiver string `json:"receiver"`
}
Subscription defines model for Subscription.
type SubscriptionPage ¶
type SubscriptionPage struct {
Items []Subscription `json:"items"`
// NextCursor Opaque cursor for the next scan, or empty when exhausted. A filtered page may be empty with a nonempty cursor.
NextCursor string `json:"next_cursor"`
}
SubscriptionPage defines model for SubscriptionPage.
type UnblacklistCommand ¶
type UnblacklistCommand struct {
Kind UnblacklistCommandKind `json:"kind"`
Target string `json:"target"`
}
UnblacklistCommand Management command; requires current group-scoped capability.
type UnblacklistCommandKind ¶
type UnblacklistCommandKind string
UnblacklistCommandKind defines model for UnblacklistCommand.Kind.
const (
UnblacklistCommandKindUnblacklist UnblacklistCommandKind = "unblacklist"
)
Defines values for UnblacklistCommandKind.
func (UnblacklistCommandKind) Valid ¶
func (e UnblacklistCommandKind) Valid() bool
Valid indicates whether the value is a known member of the UnblacklistCommandKind enum.
type UnexemptBatchCommand ¶ added in v0.1.1
type UnexemptBatchCommand struct {
Kind UnexemptBatchCommandKind `json:"kind"`
Text string `json:"text"`
}
UnexemptBatchCommand Management command; revokes member exemption and re-evaluates current admission eligibility.
type UnexemptBatchCommandKind ¶ added in v0.1.1
type UnexemptBatchCommandKind string
UnexemptBatchCommandKind defines model for UnexemptBatchCommand.Kind.
const (
UnexemptBatchCommandKindUnexempt UnexemptBatchCommandKind = "unexempt"
)
Defines values for UnexemptBatchCommandKind.
func (UnexemptBatchCommandKind) Valid ¶ added in v0.1.1
func (e UnexemptBatchCommandKind) Valid() bool
Valid indicates whether the value is a known member of the UnexemptBatchCommandKind enum.
type UnexemptCommand ¶ added in v0.1.1
type UnexemptCommand struct {
Kind UnexemptCommandKind `json:"kind"`
Target string `json:"target"`
Text string `json:"text"`
}
UnexemptCommand Management command; revokes member exemption and re-evaluates current admission eligibility.
type UnexemptCommandKind ¶ added in v0.1.1
type UnexemptCommandKind string
UnexemptCommandKind defines model for UnexemptCommand.Kind.
const (
UnexemptCommandKindUnexempt UnexemptCommandKind = "unexempt"
)
Defines values for UnexemptCommandKind.
func (UnexemptCommandKind) Valid ¶ added in v0.1.1
func (e UnexemptCommandKind) Valid() bool
Valid indicates whether the value is a known member of the UnexemptCommandKind enum.
type UnmuteBatchCommand ¶
type UnmuteBatchCommand struct {
Kind UnmuteBatchCommandKind `json:"kind"`
}
UnmuteBatchCommand Management command; requires current group-scoped capability.
type UnmuteBatchCommandKind ¶
type UnmuteBatchCommandKind string
UnmuteBatchCommandKind defines model for UnmuteBatchCommand.Kind.
const (
UnmuteBatchCommandKindUnmute UnmuteBatchCommandKind = "unmute"
)
Defines values for UnmuteBatchCommandKind.
func (UnmuteBatchCommandKind) Valid ¶
func (e UnmuteBatchCommandKind) Valid() bool
Valid indicates whether the value is a known member of the UnmuteBatchCommandKind enum.
type UnmuteCommand ¶
type UnmuteCommand struct {
Kind UnmuteCommandKind `json:"kind"`
Target string `json:"target"`
}
UnmuteCommand Management command; requires current group-scoped capability.
type UnmuteCommandKind ¶
type UnmuteCommandKind string
UnmuteCommandKind defines model for UnmuteCommand.Kind.
const (
UnmuteCommandKindUnmute UnmuteCommandKind = "unmute"
)
Defines values for UnmuteCommandKind.
func (UnmuteCommandKind) Valid ¶
func (e UnmuteCommandKind) Valid() bool
Valid indicates whether the value is a known member of the UnmuteCommandKind enum.
type WarnBatchCommand ¶
type WarnBatchCommand struct {
Kind WarnBatchCommandKind `json:"kind"`
Text string `json:"text"`
}
WarnBatchCommand Management command; requires current group-scoped capability.
type WarnBatchCommandKind ¶
type WarnBatchCommandKind string
WarnBatchCommandKind defines model for WarnBatchCommand.Kind.
const (
WarnBatchCommandKindWarn WarnBatchCommandKind = "warn"
)
Defines values for WarnBatchCommandKind.
func (WarnBatchCommandKind) Valid ¶
func (e WarnBatchCommandKind) Valid() bool
Valid indicates whether the value is a known member of the WarnBatchCommandKind enum.
type WarnCommand ¶
type WarnCommand struct {
Kind WarnCommandKind `json:"kind"`
Target string `json:"target"`
Text string `json:"text"`
}
WarnCommand Management command; requires current group-scoped capability.
type WarnCommandKind ¶
type WarnCommandKind string
WarnCommandKind defines model for WarnCommand.Kind.
const (
WarnCommandKindWarn WarnCommandKind = "warn"
)
Defines values for WarnCommandKind.
func (WarnCommandKind) Valid ¶
func (e WarnCommandKind) Valid() bool
Valid indicates whether the value is a known member of the WarnCommandKind enum.
type WarningsPage ¶
type WarningsPage struct {
Items []Warnings `json:"items"`
// NextCursor Opaque cursor for the next scan, or empty when exhausted. A filtered page may be empty with a nonempty cursor.
NextCursor string `json:"next_cursor"`
}
WarningsPage defines model for WarningsPage.
type Watch ¶
type Watch struct {
Created *time.Time `json:"created,omitempty"`
Enabled bool `json:"enabled"`
Id string `json:"id"`
Reason string `json:"reason"`
Updated *time.Time `json:"updated,omitempty"`
}
Watch defines model for Watch.
type WatchCommand ¶
type WatchCommand struct {
Enabled bool `json:"enabled"`
Kind WatchCommandKind `json:"kind"`
Target string `json:"target"`
Text *string `json:"text,omitempty"`
}
WatchCommand Management command; requires current group-scoped capability.
type WatchCommandKind ¶
type WatchCommandKind string
WatchCommandKind defines model for WatchCommand.Kind.
const (
WatchCommandKindWatch WatchCommandKind = "watch"
)
Defines values for WatchCommandKind.
func (WatchCommandKind) Valid ¶
func (e WatchCommandKind) Valid() bool
Valid indicates whether the value is a known member of the WatchCommandKind enum.