model

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package model contains copied GraphQL models generated by gqlgen for Botkube Cloud GraphQL API. Apart from the generated `models_gen.go` file, other files contain copied, customized models.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type APICallEvent

type APICallEvent struct {
	ID           string              `json:"id"`
	Type         *AuditEventType     `json:"type"`
	DeploymentID string              `json:"deploymentId"`
	CreatedAt    string              `json:"createdAt"`
	PluginName   string              `json:"pluginName"`
	Deployment   *Deployment         `json:"deployment"`
	User         string              `json:"user"`
	GqlType      APICallEventQglType `json:"gqlType"`
	GqlName      string              `json:"gqlName"`
	RequestBody  string              `json:"requestBody"`
	ResponseBody string              `json:"responseBody"`
}

func (APICallEvent) GetCreatedAt

func (this APICallEvent) GetCreatedAt() string

func (APICallEvent) GetDeployment

func (this APICallEvent) GetDeployment() *Deployment

func (APICallEvent) GetDeploymentID

func (this APICallEvent) GetDeploymentID() string

func (APICallEvent) GetID

func (this APICallEvent) GetID() string

func (APICallEvent) GetPluginName

func (this APICallEvent) GetPluginName() string

func (APICallEvent) GetType

func (this APICallEvent) GetType() *AuditEventType

func (APICallEvent) IsAuditEvent

func (APICallEvent) IsAuditEvent()

type APICallEventQglType

type APICallEventQglType string
const (
	APICallEventQglTypeQuery    APICallEventQglType = "QUERY"
	APICallEventQglTypeMutation APICallEventQglType = "MUTATION"
)

func (APICallEventQglType) IsValid

func (e APICallEventQglType) IsValid() bool

func (APICallEventQglType) MarshalGQL

func (e APICallEventQglType) MarshalGQL(w io.Writer)

func (APICallEventQglType) String

func (e APICallEventQglType) String() string

func (*APICallEventQglType) UnmarshalGQL

func (e *APICallEventQglType) UnmarshalGQL(v interface{}) error

type APIKey

type APIKey struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Action

type Action struct {
	ID          string          `json:"id"`
	Name        string          `json:"name"`
	DisplayName string          `json:"displayName"`
	Enabled     bool            `json:"enabled"`
	Command     string          `json:"command"`
	Bindings    *ActionBindings `json:"bindings"`
}

type ActionBindings

type ActionBindings struct {
	Sources   []string `json:"sources"`
	Executors []string `json:"executors"`
}

type ActionCreateUpdateInput

type ActionCreateUpdateInput struct {
	ID          *string                          `json:"id"`
	Name        string                           `json:"name"`
	DisplayName string                           `json:"displayName"`
	Enabled     bool                             `json:"enabled"`
	Command     string                           `json:"command"`
	Bindings    *ActionCreateUpdateInputBindings `json:"bindings"`
}

type ActionCreateUpdateInputBindings

type ActionCreateUpdateInputBindings struct {
	Sources   []string `json:"sources"`
	Executors []string `json:"executors"`
}

type ActionPatchDeploymentConfigInput

type ActionPatchDeploymentConfigInput struct {
	Name    string `json:"name"`
	Enabled *bool  `json:"enabled"`
}

type AddMemberForOrganizationInput

type AddMemberForOrganizationInput struct {
	OrgID     string  `json:"orgId"`
	UserID    *string `json:"userId"`
	UserEmail *string `json:"userEmail"`
}

type AddPlatformToOrganizationInput

type AddPlatformToOrganizationInput struct {
	OrganizationID string                       `json:"organizationId"`
	Slack          *AddSlackToOrganizationInput `json:"slack"`
}

type AddSlackToOrganizationInput

type AddSlackToOrganizationInput struct {
	Token string `json:"token"`
}

type Alias

type Alias struct {
	ID          string            `json:"id"`
	Name        string            `json:"name"`
	DisplayName string            `json:"displayName"`
	Command     string            `json:"command"`
	Deployments []*DeploymentInfo `json:"deployments"`
}

type AliasCreateInput

type AliasCreateInput struct {
	Name          string   `json:"name"`
	DisplayName   string   `json:"displayName"`
	Command       string   `json:"command"`
	DeploymentIds []string `json:"deploymentIds"`
}

type AliasPage

type AliasPage struct {
	Data       []*Alias  `json:"data"`
	PageInfo   *PageInfo `json:"pageInfo"`
	TotalCount int       `json:"totalCount"`
	TotalPages int       `json:"totalPages"`
}

func (AliasPage) GetPageInfo

func (this AliasPage) GetPageInfo() *PageInfo

func (AliasPage) GetTotalCount

func (this AliasPage) GetTotalCount() int

func (AliasPage) IsPageable

func (AliasPage) IsPageable()

type AliasUpdateInput

type AliasUpdateInput struct {
	Name          *string  `json:"name"`
	DisplayName   *string  `json:"displayName"`
	Command       *string  `json:"command"`
	DeploymentIds []string `json:"deploymentIds"`
}

type AuditEvent

type AuditEvent interface {
	IsAuditEvent()
	GetID() string
	GetType() *AuditEventType
	GetDeploymentID() string
	GetCreatedAt() string
	GetPluginName() string
	GetDeployment() *Deployment
}

type AuditEventCommandCreateInput

type AuditEventCommandCreateInput struct {
	PlatformUser string       `json:"platformUser"`
	Channel      string       `json:"channel"`
	BotPlatform  *BotPlatform `json:"botPlatform"`
	Command      string       `json:"command"`
}

type AuditEventCreateInput

type AuditEventCreateInput struct {
	Type               AuditEventType                `json:"type"`
	CreatedAt          string                        `json:"createdAt"`
	DeploymentID       string                        `json:"deploymentId"`
	PluginName         string                        `json:"pluginName"`
	SourceEventEmitted *AuditEventSourceCreateInput  `json:"sourceEventEmitted"`
	CommandExecuted    *AuditEventCommandCreateInput `json:"commandExecuted"`
}

type AuditEventFilter

type AuditEventFilter struct {
	DeploymentID *string `json:"deploymentId"`
	StartDate    *string `json:"startDate"`
	EndDate      *string `json:"endDate"`
}

type AuditEventPage

type AuditEventPage struct {
	Data       []AuditEvent `json:"data"`
	PageInfo   *PageInfo    `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
	TotalPages int          `json:"totalPages"`
}

func (AuditEventPage) GetPageInfo

func (this AuditEventPage) GetPageInfo() *PageInfo

func (AuditEventPage) GetTotalCount

func (this AuditEventPage) GetTotalCount() int

func (AuditEventPage) IsPageable

func (AuditEventPage) IsPageable()

type AuditEventSourceCreateInput

type AuditEventSourceCreateInput struct {
	Event  string                        `json:"event"`
	Source *AuditEventSourceDetailsInput `json:"source"`
}

type AuditEventSourceDetailsInput

type AuditEventSourceDetailsInput struct {
	Name        string `json:"name"`
	DisplayName string `json:"displayName"`
}

type AuditEventType

type AuditEventType string
const (
	AuditEventTypeCommandExecuted    AuditEventType = "COMMAND_EXECUTED"
	AuditEventTypeSourceEventEmitted AuditEventType = "SOURCE_EVENT_EMITTED"
	AuditEventTypeAPICall            AuditEventType = "API_CALL"
)

func (AuditEventType) IsValid

func (e AuditEventType) IsValid() bool

func (AuditEventType) MarshalGQL

func (e AuditEventType) MarshalGQL(w io.Writer)

func (AuditEventType) String

func (e AuditEventType) String() string

func (*AuditEventType) UnmarshalGQL

func (e *AuditEventType) UnmarshalGQL(v interface{}) error

type BotBindings

type BotBindings struct {
	Sources   []string `json:"sources"`
	Executors []string `json:"executors"`
}

type BotBindingsCreateInput

type BotBindingsCreateInput struct {
	Sources   []*string `json:"sources"`
	Executors []*string `json:"executors"`
}

type BotBindingsUpdateInput

type BotBindingsUpdateInput struct {
	Sources   []*string `json:"sources"`
	Executors []*string `json:"executors"`
}

type BotPlatform

type BotPlatform string
const (
	BotPlatformSLACk      BotPlatform = "SLACK"
	BotPlatformDiscord    BotPlatform = "DISCORD"
	BotPlatformMattermost BotPlatform = "MATTERMOST"
	BotPlatformMsTeams    BotPlatform = "MS_TEAMS"
	BotPlatformUnknown    BotPlatform = "UNKNOWN"
)

func (BotPlatform) IsValid

func (e BotPlatform) IsValid() bool

func (BotPlatform) MarshalGQL

func (e BotPlatform) MarshalGQL(w io.Writer)

func (BotPlatform) String

func (e BotPlatform) String() string

func (*BotPlatform) UnmarshalGQL

func (e *BotPlatform) UnmarshalGQL(v interface{}) error

type ChannelBindingsByID

type ChannelBindingsByID struct {
	ID                    string       `json:"id"`
	Bindings              *BotBindings `json:"bindings"`
	NotificationsDisabled *bool        `json:"notificationsDisabled"`
}

type ChannelBindingsByIDCreateInput

type ChannelBindingsByIDCreateInput struct {
	ID                    string                  `json:"id"`
	Bindings              *BotBindingsCreateInput `json:"bindings"`
	NotificationsDisabled *bool                   `json:"notificationsDisabled"`
}

type ChannelBindingsByIDUpdateInput

type ChannelBindingsByIDUpdateInput struct {
	ID       string                  `json:"id"`
	Bindings *BotBindingsUpdateInput `json:"bindings"`
}

type ChannelBindingsByName

type ChannelBindingsByName struct {
	Name                  string       `json:"name"`
	Bindings              *BotBindings `json:"bindings"`
	NotificationsDisabled *bool        `json:"notificationsDisabled"`
}

type ChannelBindingsByNameCreateInput

type ChannelBindingsByNameCreateInput struct {
	Name                  string                  `json:"name"`
	Bindings              *BotBindingsCreateInput `json:"bindings"`
	NotificationsDisabled *bool                   `json:"notificationsDisabled"`
}

type ChannelBindingsByNameUpdateInput

type ChannelBindingsByNameUpdateInput struct {
	Name     string                  `json:"name"`
	Bindings *BotBindingsUpdateInput `json:"bindings"`
}

type CloudSlack

type CloudSlack struct {
	ID       string                   `json:"id"`
	Name     string                   `json:"name"`
	TeamID   string                   `json:"teamId"`
	BotToken string                   `json:"botToken"`
	Channels []*ChannelBindingsByName `json:"channels"`
}

type CloudSlackCreateInput

type CloudSlackCreateInput struct {
	Name     string                              `json:"name"`
	TeamID   string                              `json:"teamId"`
	Channels []*ChannelBindingsByNameCreateInput `json:"channels"`
}

type CloudSlackUpdateInput

type CloudSlackUpdateInput struct {
	ID       *string                             `json:"id"`
	Name     string                              `json:"name"`
	TeamID   string                              `json:"teamId"`
	Channels []*ChannelBindingsByNameUpdateInput `json:"channels"`
}

type CommandExecutedEvent

type CommandExecutedEvent struct {
	ID           string          `json:"id"`
	Type         *AuditEventType `json:"type"`
	PlatformUser *string         `json:"platformUser"`
	DeploymentID string          `json:"deploymentId"`
	Deployment   *Deployment     `json:"deployment"`
	CreatedAt    string          `json:"createdAt"`
	Command      string          `json:"command"`
	BotPlatform  *BotPlatform    `json:"botPlatform"`
	Channel      string          `json:"channel"`
	PluginName   string          `json:"pluginName"`
}

func (CommandExecutedEvent) GetCreatedAt

func (this CommandExecutedEvent) GetCreatedAt() string

func (CommandExecutedEvent) GetDeployment

func (this CommandExecutedEvent) GetDeployment() *Deployment

func (CommandExecutedEvent) GetDeploymentID

func (this CommandExecutedEvent) GetDeploymentID() string

func (CommandExecutedEvent) GetID

func (this CommandExecutedEvent) GetID() string

func (CommandExecutedEvent) GetPluginName

func (this CommandExecutedEvent) GetPluginName() string

func (CommandExecutedEvent) GetType

func (this CommandExecutedEvent) GetType() *AuditEventType

func (CommandExecutedEvent) IsAuditEvent

func (CommandExecutedEvent) IsAuditEvent()

type ConnectedPlatforms

type ConnectedPlatforms struct {
	Slack *SlackWorkspace `json:"slack"`
}

type Coupon

type Coupon struct {
	Name             string               `json:"name"`
	AmountOff        *int                 `json:"amountOff"`
	PercentOff       *float64             `json:"percentOff"`
	Duration         StripeCouponDuration `json:"duration"`
	DurationInMonths *int                 `json:"durationInMonths"`
}

type DeleteByIDInput

type DeleteByIDInput struct {
	ID string `json:"ID"`
}

type DeletePlatformInput

type DeletePlatformInput struct {
	SocketSlack   *DeleteByIDInput `json:"socketSlack"`
	CloudSlack    *DeleteByIDInput `json:"cloudSlack"`
	Discord       *DeleteByIDInput `json:"discord"`
	Mattermost    *DeleteByIDInput `json:"mattermost"`
	Webhook       *DeleteByIDInput `json:"webhook"`
	MsTeams       *DeleteByIDInput `json:"msTeams"`
	Elasticsearch *DeleteByIDInput `json:"elasticsearch"`
}

type Deployment

type Deployment struct {
	ID                         string                                   `json:"id"`
	Name                       string                                   `json:"name"`
	Actions                    []*Action                                `json:"actions"`
	Plugins                    []*Plugin                                `json:"plugins"`
	Platforms                  *Platforms                               `json:"platforms"`
	Status                     *DeploymentStatus                        `json:"status"`
	APIKey                     *APIKey                                  `json:"apiKey"`
	YamlConfig                 *string                                  `json:"yamlConfig"`
	Aliases                    []*Alias                                 `json:"aliases"`
	HelmCommand                *string                                  `json:"helmCommand"`
	ResourceVersion            int                                      `json:"resourceVersion"`
	Heartbeat                  *Heartbeat                               `json:"heartbeat"`
	InstallUpgradeInstructions []*InstallUpgradeInstructionsForPlatform `json:"installUpgradeInstructions"`
}

type DeploymentConfig

type DeploymentConfig struct {
	ResourceVersion int         `json:"resourceVersion"`
	Value           interface{} `json:"value"`
}

type DeploymentCreateInput

type DeploymentCreateInput struct {
	Name                 string                     `json:"name"`
	Plugins              []*PluginsCreateInput      `json:"plugins"`
	Platforms            *PlatformsCreateInput      `json:"platforms"`
	Actions              []*ActionCreateUpdateInput `json:"actions"`
	AttachDefaultAliases *bool                      `json:"attachDefaultAliases"`
	AttachDefaultActions *bool                      `json:"attachDefaultActions"`
}

type DeploymentFailureInput

type DeploymentFailureInput struct {
	ResourceVersion int    `json:"resourceVersion"`
	Message         string `json:"message"`
}

type DeploymentHeartbeatInput

type DeploymentHeartbeatInput struct {
	NodeCount int `json:"nodeCount"`
}

type DeploymentInfo

type DeploymentInfo struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type DeploymentPage

type DeploymentPage struct {
	Data       []*Deployment `json:"data"`
	PageInfo   *PageInfo     `json:"pageInfo"`
	TotalCount int           `json:"totalCount"`
}

func (DeploymentPage) GetPageInfo

func (this DeploymentPage) GetPageInfo() *PageInfo

func (DeploymentPage) GetTotalCount

func (this DeploymentPage) GetTotalCount() int

func (DeploymentPage) IsPageable

func (DeploymentPage) IsPageable()

type DeploymentStatus

type DeploymentStatus struct {
	Phase              DeploymentStatusPhase    `json:"phase"`
	Message            *string                  `json:"message"`
	BotkubeVersion     *string                  `json:"botkubeVersion"`
	Upgrade            *DeploymentUpgradeStatus `json:"upgrade"`
	LastTransitionTime *string                  `json:"lastTransitionTime"`
}

type DeploymentStatusInput

type DeploymentStatusInput struct {
	Message *string                `json:"message"`
	Phase   *DeploymentStatusPhase `json:"phase"`
}

type DeploymentStatusPhase

type DeploymentStatusPhase string
const (
	DeploymentStatusPhaseConnecting   DeploymentStatusPhase = "CONNECTING"
	DeploymentStatusPhaseConnected    DeploymentStatusPhase = "CONNECTED"
	DeploymentStatusPhaseDisconnected DeploymentStatusPhase = "DISCONNECTED"
	DeploymentStatusPhaseFailed       DeploymentStatusPhase = "FAILED"
	DeploymentStatusPhaseCreating     DeploymentStatusPhase = "CREATING"
	DeploymentStatusPhaseUpdating     DeploymentStatusPhase = "UPDATING"
	DeploymentStatusPhaseDeleted      DeploymentStatusPhase = "DELETED"
)

func (DeploymentStatusPhase) IsValid

func (e DeploymentStatusPhase) IsValid() bool

func (DeploymentStatusPhase) MarshalGQL

func (e DeploymentStatusPhase) MarshalGQL(w io.Writer)

func (DeploymentStatusPhase) String

func (e DeploymentStatusPhase) String() string

func (*DeploymentStatusPhase) UnmarshalGQL

func (e *DeploymentStatusPhase) UnmarshalGQL(v interface{}) error

type DeploymentUpdateInput

type DeploymentUpdateInput struct {
	Name            string                     `json:"name"`
	Platforms       *PlatformsUpdateInput      `json:"platforms"`
	Plugins         []*PluginsUpdateInput      `json:"plugins"`
	Actions         []*ActionCreateUpdateInput `json:"actions"`
	ResourceVersion int                        `json:"resourceVersion"`
}

type DeploymentUpgradeStatus

type DeploymentUpgradeStatus struct {
	NeedsUpgrade         bool   `json:"needsUpgrade"`
	TargetBotkubeVersion string `json:"targetBotkubeVersion"`
}

type Discord

type Discord struct {
	ID       string                 `json:"id"`
	Name     string                 `json:"name"`
	Token    string                 `json:"token"`
	BotID    string                 `json:"botId"`
	Channels []*ChannelBindingsByID `json:"channels"`
}

type DiscordCreateInput

type DiscordCreateInput struct {
	Name     string                            `json:"name"`
	Token    string                            `json:"token"`
	BotID    string                            `json:"botId"`
	Channels []*ChannelBindingsByIDCreateInput `json:"channels"`
}

type DiscordUpdateInput

type DiscordUpdateInput struct {
	ID       *string                           `json:"id"`
	Name     string                            `json:"name"`
	Token    string                            `json:"token"`
	BotID    string                            `json:"botId"`
	Channels []*ChannelBindingsByIDUpdateInput `json:"channels"`
}

type Elasticsearch

type Elasticsearch struct {
	ID                string                `json:"id"`
	Name              string                `json:"name"`
	Username          string                `json:"username"`
	Password          string                `json:"password"`
	Server            string                `json:"server"`
	SkipTLSVerify     bool                  `json:"skipTlsVerify"`
	AwsSigningRegion  *string               `json:"awsSigningRegion"`
	AwsSigningRoleArn *string               `json:"awsSigningRoleArn"`
	Indices           []*ElasticsearchIndex `json:"indices"`
}

type ElasticsearchCreateInput

type ElasticsearchCreateInput struct {
	Name              string                           `json:"name"`
	Username          string                           `json:"username"`
	Password          string                           `json:"password"`
	Server            string                           `json:"server"`
	SkipTLSVerify     bool                             `json:"skipTlsVerify"`
	AwsSigningRegion  *string                          `json:"awsSigningRegion"`
	AwsSigningRoleArn *string                          `json:"awsSigningRoleArn"`
	Indices           []*ElasticsearchIndexCreateInput `json:"indices"`
}

type ElasticsearchIndex

type ElasticsearchIndex struct {
	ID       string        `json:"id"`
	Name     string        `json:"name"`
	Type     string        `json:"type"`
	Shards   int           `json:"shards"`
	Replicas int           `json:"replicas"`
	Bindings *SinkBindings `json:"bindings"`
}

type ElasticsearchIndexCreateInput

type ElasticsearchIndexCreateInput struct {
	Name     string                   `json:"name"`
	Type     string                   `json:"type"`
	Shards   int                      `json:"shards"`
	Replicas int                      `json:"replicas"`
	Bindings *SinkBindingsCreateInput `json:"bindings"`
}

type ElasticsearchIndexUpdateInput

type ElasticsearchIndexUpdateInput struct {
	Name     string                   `json:"name"`
	Type     string                   `json:"type"`
	Shards   int                      `json:"shards"`
	Replicas int                      `json:"replicas"`
	Bindings *SinkBindingsUpdateInput `json:"bindings"`
}

type ElasticsearchUpdateInput

type ElasticsearchUpdateInput struct {
	ID                *string                          `json:"id"`
	Name              string                           `json:"name"`
	Username          string                           `json:"username"`
	Password          string                           `json:"password"`
	Server            string                           `json:"server"`
	SkipTLSVerify     bool                             `json:"skipTlsVerify"`
	AwsSigningRegion  *string                          `json:"awsSigningRegion"`
	AwsSigningRoleArn *string                          `json:"awsSigningRoleArn"`
	Indices           []*ElasticsearchIndexUpdateInput `json:"indices"`
}

type GroupPolicySubject

type GroupPolicySubject struct {
	Type   PolicySubjectType   `json:"type"`
	Static *GroupStaticSubject `json:"static"`
	Prefix *string             `json:"prefix"`
}

type GroupPolicySubjectInput

type GroupPolicySubjectInput struct {
	Type   PolicySubjectType        `json:"type"`
	Static *GroupStaticSubjectInput `json:"static"`
	Prefix *string                  `json:"prefix"`
}

type GroupStaticSubject

type GroupStaticSubject struct {
	Values []string `json:"values"`
}

type GroupStaticSubjectInput

type GroupStaticSubjectInput struct {
	Values []string `json:"values"`
}

type Heartbeat

type Heartbeat struct {
	NodeCount *int `json:"nodeCount"`
}

type HubSpotIdentificationToken

type HubSpotIdentificationToken struct {
	Token string `json:"token"`
}

type HubspotIdentificationTokenInput

type HubspotIdentificationTokenInput struct {
	Email     string  `json:"email"`
	FirstName *string `json:"firstName"`
	LastName  *string `json:"lastName"`
}

type InstallUpgradeInstructionsForPlatform

type InstallUpgradeInstructionsForPlatform struct {
	PlatformName          string                        `json:"platformName"`
	Prerequisites         []*InstallUpgradePrerequisite `json:"prerequisites"`
	InstallUpgradeCommand string                        `json:"installUpgradeCommand"`
}

type InstallUpgradePrerequisite

type InstallUpgradePrerequisite struct {
	Description *string `json:"description"`
	Command     *string `json:"command"`
}

type Invoice

type Invoice struct {
	IsOnTrial             bool           `json:"isOnTrial"`
	UpcomingAmount        int            `json:"upcomingAmount"`
	Currency              string         `json:"currency"`
	EndOfBillingCycleDate *string        `json:"endOfBillingCycleDate"`
	EndOfTrialDate        *string        `json:"endOfTrialDate"`
	Items                 []*InvoiceItem `json:"items"`
	Coupon                *Coupon        `json:"coupon"`
}

type InvoiceItem

type InvoiceItem struct {
	Amount          int     `json:"amount"`
	PriceUnitAmount string  `json:"priceUnitAmount"`
	Currency        string  `json:"currency"`
	Description     *string `json:"description"`
}

type Mattermost

type Mattermost struct {
	ID       string                   `json:"id"`
	Name     string                   `json:"name"`
	BotName  string                   `json:"botName"`
	URL      string                   `json:"url"`
	Token    string                   `json:"token"`
	Team     string                   `json:"team"`
	Channels []*ChannelBindingsByName `json:"channels"`
}

type MattermostCreateInput

type MattermostCreateInput struct {
	Name     string                              `json:"name"`
	BotName  string                              `json:"botName"`
	URL      string                              `json:"url"`
	Token    string                              `json:"token"`
	Team     string                              `json:"team"`
	Channels []*ChannelBindingsByNameCreateInput `json:"channels"`
}

type MattermostUpdateInput

type MattermostUpdateInput struct {
	ID       *string                             `json:"id"`
	Name     string                              `json:"name"`
	BotName  string                              `json:"botName"`
	URL      string                              `json:"url"`
	Token    string                              `json:"token"`
	Team     string                              `json:"team"`
	Channels []*ChannelBindingsByNameUpdateInput `json:"channels"`
}

type MsTeams

type MsTeams struct {
	ID                    string       `json:"id"`
	Name                  string       `json:"name"`
	BotName               string       `json:"botName"`
	AppID                 string       `json:"appId"`
	AppPassword           string       `json:"appPassword"`
	Port                  string       `json:"port"`
	MessagePath           string       `json:"messagePath"`
	NotificationsDisabled *bool        `json:"notificationsDisabled"`
	Bindings              *BotBindings `json:"bindings"`
}

type MsTeamsCreateInput

type MsTeamsCreateInput struct {
	Name                  string                  `json:"name"`
	BotName               string                  `json:"botName"`
	AppID                 string                  `json:"appId"`
	AppPassword           string                  `json:"appPassword"`
	Port                  string                  `json:"port"`
	MessagePath           string                  `json:"messagePath"`
	NotificationsDisabled *bool                   `json:"notificationsDisabled"`
	Bindings              *BotBindingsCreateInput `json:"bindings"`
}

type MsTeamsUpdateInput

type MsTeamsUpdateInput struct {
	ID          *string                 `json:"id"`
	Name        string                  `json:"name"`
	BotName     string                  `json:"botName"`
	AppID       string                  `json:"appId"`
	AppPassword string                  `json:"appPassword"`
	Port        string                  `json:"port"`
	MessagePath string                  `json:"messagePath"`
	Bindings    *BotBindingsUpdateInput `json:"bindings"`
}

type NotificationPatchDeploymentConfigInput

type NotificationPatchDeploymentConfigInput struct {
	CommunicationGroupName string      `json:"communicationGroupName"`
	Platform               BotPlatform `json:"platform"`
	ChannelAlias           string      `json:"channelAlias"`
	Disabled               bool        `json:"disabled"`
}

type Organization

type Organization struct {
	ID                      string                          `json:"id"`
	DisplayName             string                          `json:"displayName"`
	Subscription            *OrganizationSubscription       `json:"subscription"`
	ConnectedPlatforms      *OrganizationConnectedPlatforms `json:"connectedPlatforms"`
	OwnerID                 string                          `json:"ownerId"`
	Owner                   *User                           `json:"owner"`
	Members                 []*User                         `json:"members"`
	Quota                   *Quota                          `json:"quota"`
	BillingHistoryAvailable bool                            `json:"billingHistoryAvailable"`
	UpdateOperations        *OrganizationUpdateOperations   `json:"updateOperations"`
	Usage                   *Usage                          `json:"usage"`
}

type OrganizationConnectedPlatforms

type OrganizationConnectedPlatforms struct {
	OrganizationID string            `graphql:"-"`
	Slacks         []*SlackWorkspace `json:"slacks"`
	Slack          *SlackWorkspace   `json:"slack"`
}

OrganizationConnectedPlatforms represents connected platforms.

type OrganizationCreateInput

type OrganizationCreateInput struct {
	DisplayName string `json:"displayName"`
}

type OrganizationSubscription

type OrganizationSubscription struct {
	PlanName        string   `json:"planName"`
	CustomerID      *string  `json:"customerId"`
	SubscriptionID  *string  `json:"subscriptionId"`
	PlanDisplayName *string  `json:"planDisplayName"`
	IsDefaultPlan   *bool    `json:"isDefaultPlan"`
	TrialConsumed   bool     `json:"trialConsumed"`
	Invoice         *Invoice `json:"invoice"`
}

type OrganizationUpdateInput

type OrganizationUpdateInput struct {
	DisplayName string `json:"displayName"`
}

type OrganizationUpdateOperations

type OrganizationUpdateOperations struct {
	Blocked bool     `json:"blocked"`
	Reasons []string `json:"reasons"`
}

type PageInfo

type PageInfo struct {
	Limit       int  `json:"limit"`
	Offset      int  `json:"offset"`
	HasNextPage bool `json:"hasNextPage"`
}

type Pageable

type Pageable interface {
	IsPageable()
	GetPageInfo() *PageInfo
	GetTotalCount() int
}

type PatchDeploymentConfigInput

type PatchDeploymentConfigInput struct {
	ResourceVersion int                                      `json:"resourceVersion"`
	Notification    *NotificationPatchDeploymentConfigInput  `json:"notification"`
	SourceBinding   *SourceBindingPatchDeploymentConfigInput `json:"sourceBinding"`
	Action          *ActionPatchDeploymentConfigInput        `json:"action"`
}

type Platforms

type Platforms struct {
	DeploymentID    string           `graphql:"-"`
	SocketSlacks    []*SocketSlack   `json:"socketSlacks"`
	CloudSlacks     []*CloudSlack    `json:"cloudSlacks"`
	Discords        []*Discord       `json:"discords"`
	Mattermosts     []*Mattermost    `json:"mattermosts"`
	Webhooks        []*Webhook       `json:"webhooks"`
	MsTeams         []*MsTeams       `json:"msTeams"`
	Elasticsearches []*Elasticsearch `json:"elasticsearches"`
}

Platforms is used by a specific platform field resolvers to return only those that are connected with a given deployment ID.

type PlatformsCreateInput

type PlatformsCreateInput struct {
	Discords        []*DiscordCreateInput       `json:"discords"`
	SocketSlacks    []*SocketSlackCreateInput   `json:"socketSlacks"`
	CloudSlacks     []*CloudSlackCreateInput    `json:"cloudSlacks"`
	Mattermosts     []*MattermostCreateInput    `json:"mattermosts"`
	Webhooks        []*WebhookCreateInput       `json:"webhooks"`
	MsTeams         []*MsTeamsCreateInput       `json:"msTeams"`
	Elasticsearches []*ElasticsearchCreateInput `json:"elasticsearches"`
}

type PlatformsUpdateInput

type PlatformsUpdateInput struct {
	SocketSlacks    []*SocketSlackUpdateInput   `json:"socketSlacks"`
	CloudSlacks     []*CloudSlackUpdateInput    `json:"cloudSlacks"`
	Discords        []*DiscordUpdateInput       `json:"discords"`
	Mattermosts     []*MattermostUpdateInput    `json:"mattermosts"`
	Webhooks        []*WebhookUpdateInput       `json:"webhooks"`
	MsTeams         []*MsTeamsUpdateInput       `json:"msTeams"`
	Elasticsearches []*ElasticsearchUpdateInput `json:"elasticsearches"`
}

type Plugin

type Plugin struct {
	ID                string     `json:"id"`
	Name              string     `json:"name"`
	DisplayName       string     `json:"displayName"`
	Type              PluginType `json:"type"`
	ConfigurationName string     `json:"configurationName"`
	Configuration     string     `json:"configuration"`
	Rbac              *Rbac      `json:"rbac"`
}

type PluginConfigurationGroupInput

type PluginConfigurationGroupInput struct {
	Name           string                      `json:"name"`
	DisplayName    string                      `json:"displayName"`
	Type           PluginType                  `json:"type"`
	Configurations []*PluginConfigurationInput `json:"configurations"`
}

type PluginConfigurationGroupUpdateInput

type PluginConfigurationGroupUpdateInput struct {
	ID             *string                           `json:"id"`
	Name           string                            `json:"name"`
	DisplayName    string                            `json:"displayName"`
	Type           PluginType                        `json:"type"`
	Configurations []*PluginConfigurationUpdateInput `json:"configurations"`
}

type PluginConfigurationInput

type PluginConfigurationInput struct {
	Name          string     `json:"name"`
	Configuration string     `json:"configuration"`
	Rbac          *RBACInput `json:"rbac"`
}

type PluginConfigurationUpdateInput

type PluginConfigurationUpdateInput struct {
	ID            *string          `json:"id"`
	Name          string           `json:"name"`
	Configuration string           `json:"configuration"`
	Rbac          *RBACUpdateInput `json:"rbac"`
}

type PluginPage

type PluginPage struct {
	Data       []*Plugin `json:"data"`
	PageInfo   *PageInfo `json:"pageInfo"`
	TotalCount int       `json:"totalCount"`
}

func (PluginPage) GetPageInfo

func (this PluginPage) GetPageInfo() *PageInfo

func (PluginPage) GetTotalCount

func (this PluginPage) GetTotalCount() int

func (PluginPage) IsPageable

func (PluginPage) IsPageable()

type PluginTemplate

type PluginTemplate struct {
	Name        string      `json:"name"`
	Title       string      `json:"title"`
	Description string      `json:"description"`
	Type        PluginType  `json:"type"`
	Schema      interface{} `json:"schema"`
}

type PluginTemplatePage

type PluginTemplatePage struct {
	Data []*PluginTemplate `json:"data"`
}

type PluginType

type PluginType string
const (
	PluginTypeSource   PluginType = "SOURCE"
	PluginTypeExecutor PluginType = "EXECUTOR"
)

func (PluginType) IsValid

func (e PluginType) IsValid() bool

func (PluginType) MarshalGQL

func (e PluginType) MarshalGQL(w io.Writer)

func (PluginType) String

func (e PluginType) String() string

func (*PluginType) UnmarshalGQL

func (e *PluginType) UnmarshalGQL(v interface{}) error

type PluginsCreateInput

type PluginsCreateInput struct {
	Groups []*PluginConfigurationGroupInput `json:"groups"`
}

type PluginsUpdateInput

type PluginsUpdateInput struct {
	Groups []*PluginConfigurationGroupUpdateInput `json:"groups"`
}

type PolicySubjectType

type PolicySubjectType string
const (
	PolicySubjectTypeStatic      PolicySubjectType = "STATIC"
	PolicySubjectTypeChannelName PolicySubjectType = "CHANNEL_NAME"
	PolicySubjectTypeEmpty       PolicySubjectType = "EMPTY"
)

func (PolicySubjectType) IsValid

func (e PolicySubjectType) IsValid() bool

func (PolicySubjectType) MarshalGQL

func (e PolicySubjectType) MarshalGQL(w io.Writer)

func (PolicySubjectType) String

func (e PolicySubjectType) String() string

func (*PolicySubjectType) UnmarshalGQL

func (e *PolicySubjectType) UnmarshalGQL(v interface{}) error

type Quota

type Quota struct {
	DeploymentCount      *int `json:"deploymentCount"`
	AuditRetentionPeriod *int `json:"auditRetentionPeriod"`
	MemberCount          *int `json:"memberCount"`
	NodeCount            *int `json:"nodeCount"`
	CloudSlackUseCount   *int `json:"cloudSlackUseCount"`
}

type RBACInput

type RBACInput struct {
	User  *UserPolicySubjectInput  `json:"user"`
	Group *GroupPolicySubjectInput `json:"group"`
}

type RBACUpdateInput

type RBACUpdateInput struct {
	ID    string                   `json:"id"`
	User  *UserPolicySubjectInput  `json:"user"`
	Group *GroupPolicySubjectInput `json:"group"`
}

type Rbac

type Rbac struct {
	ID    string              `json:"id"`
	User  *UserPolicySubject  `json:"user"`
	Group *GroupPolicySubject `json:"group"`
}

type RemoveMemberFromOrganizationInput

type RemoveMemberFromOrganizationInput struct {
	OrgID  string `json:"orgId"`
	UserID string `json:"userId"`
}

type RemovePlatformFromOrganizationInput

type RemovePlatformFromOrganizationInput struct {
	OrganizationID string                            `json:"organizationId"`
	Slack          *RemoveSlackFromOrganizationInput `json:"slack"`
}

type RemoveSlackFromOrganizationInput

type RemoveSlackFromOrganizationInput struct {
	ID string `json:"ID"`
}

type SinkBindings

type SinkBindings struct {
	Sources []string `json:"sources"`
}

type SinkBindingsCreateInput

type SinkBindingsCreateInput struct {
	Sources []*string `json:"sources"`
}

type SinkBindingsUpdateInput

type SinkBindingsUpdateInput struct {
	Sources []*string `json:"sources"`
}

type SlackWorkspace

type SlackWorkspace struct {
	ID                     string                                  `json:"id"`
	Name                   string                                  `json:"name"`
	TeamID                 string                                  `json:"teamId"`
	URL                    string                                  `json:"url"`
	Channels               []*SlackWorkspaceChannel                `json:"channels"`
	IsReinstallRequired    bool                                    `json:"isReinstallRequired"`
	ConnectedOrganizations []*SlackWorkspaceConnectedOrganizations `json:"connectedOrganizations"`
}

type SlackWorkspaceChannel

type SlackWorkspaceChannel struct {
	Name      string  `json:"name"`
	IsPrivate bool    `json:"isPrivate"`
	IsMember  bool    `json:"isMember"`
	Topic     *string `json:"topic"`
	Purpose   *string `json:"purpose"`
}

type SlackWorkspaceConnectedOrganizations

type SlackWorkspaceConnectedOrganizations struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type SocketSlack

type SocketSlack struct {
	ID       string                   `json:"id"`
	Name     string                   `json:"name"`
	AppToken string                   `json:"appToken"`
	BotToken string                   `json:"botToken"`
	Channels []*ChannelBindingsByName `json:"channels"`
}

type SocketSlackCreateInput

type SocketSlackCreateInput struct {
	Name     string                              `json:"name"`
	AppToken string                              `json:"appToken"`
	BotToken string                              `json:"botToken"`
	Channels []*ChannelBindingsByNameCreateInput `json:"channels"`
}

type SocketSlackUpdateInput

type SocketSlackUpdateInput struct {
	ID       *string                             `json:"id"`
	Name     string                              `json:"name"`
	AppToken string                              `json:"appToken"`
	BotToken string                              `json:"botToken"`
	Channels []*ChannelBindingsByNameUpdateInput `json:"channels"`
}

type SourceBindingPatchDeploymentConfigInput

type SourceBindingPatchDeploymentConfigInput struct {
	CommunicationGroupName string      `json:"communicationGroupName"`
	Platform               BotPlatform `json:"platform"`
	ChannelAlias           string      `json:"channelAlias"`
	SourceBindings         []string    `json:"sourceBindings"`
}

type SourceEventDetails

type SourceEventDetails struct {
	Name        string `json:"name"`
	DisplayName string `json:"displayName"`
}

type SourceEventEmittedEvent

type SourceEventEmittedEvent struct {
	ID           string              `json:"id"`
	Type         AuditEventType      `json:"type"`
	DeploymentID string              `json:"deploymentId"`
	Deployment   *Deployment         `json:"deployment"`
	CreatedAt    string              `json:"createdAt"`
	Event        interface{}         `json:"event"`
	Source       *SourceEventDetails `json:"source"`
	PluginName   string              `json:"pluginName"`
}

func (SourceEventEmittedEvent) GetCreatedAt

func (this SourceEventEmittedEvent) GetCreatedAt() string

func (SourceEventEmittedEvent) GetDeployment

func (this SourceEventEmittedEvent) GetDeployment() *Deployment

func (SourceEventEmittedEvent) GetDeploymentID

func (this SourceEventEmittedEvent) GetDeploymentID() string

func (SourceEventEmittedEvent) GetID

func (this SourceEventEmittedEvent) GetID() string

func (SourceEventEmittedEvent) GetPluginName

func (this SourceEventEmittedEvent) GetPluginName() string

func (SourceEventEmittedEvent) GetType

func (this SourceEventEmittedEvent) GetType() *AuditEventType

func (SourceEventEmittedEvent) IsAuditEvent

func (SourceEventEmittedEvent) IsAuditEvent()

type StripeCouponDuration

type StripeCouponDuration string
const (
	StripeCouponDurationForever   StripeCouponDuration = "FOREVER"
	StripeCouponDurationOnce      StripeCouponDuration = "ONCE"
	StripeCouponDurationRepeating StripeCouponDuration = "REPEATING"
	StripeCouponDurationUnknown   StripeCouponDuration = "UNKNOWN"
)

func (StripeCouponDuration) IsValid

func (e StripeCouponDuration) IsValid() bool

func (StripeCouponDuration) MarshalGQL

func (e StripeCouponDuration) MarshalGQL(w io.Writer)

func (StripeCouponDuration) String

func (e StripeCouponDuration) String() string

func (*StripeCouponDuration) UnmarshalGQL

func (e *StripeCouponDuration) UnmarshalGQL(v interface{}) error

type SubscriptionPlan

type SubscriptionPlan struct {
	Name             string `json:"name"`
	DisplayName      string `json:"displayName"`
	IsDefault        bool   `json:"isDefault"`
	DisplayUnitPrice int    `json:"displayUnitPrice"`
	TrialPeriodDays  int    `json:"trialPeriodDays"`
}

type UpdateCurrentUserInput

type UpdateCurrentUserInput struct {
	FirstLoginPageVisitedIn bool `json:"firstLoginPageVisitedIn"`
}

type Usage

type Usage struct {
	OrganizationID     string `graphql:"-"`
	DeploymentCount    *int   `json:"deploymentCount"`
	MemberCount        *int   `json:"memberCount"`
	NodeCount          *int   `json:"nodeCount"`
	CloudSlackUseCount *int   `json:"cloudSlackUseCount"`
}

Usage describes organization usage statistics.

type User

type User struct {
	ID                      string `json:"id"`
	Email                   string `json:"email"`
	FirstLoginPageVisitedIn bool   `json:"firstLoginPageVisitedIn"`
}

type UserPolicySubject

type UserPolicySubject struct {
	Type   PolicySubjectType  `json:"type"`
	Static *UserStaticSubject `json:"static"`
	Prefix *string            `json:"prefix"`
}

type UserPolicySubjectInput

type UserPolicySubjectInput struct {
	Type   PolicySubjectType       `json:"type"`
	Static *UserStaticSubjectInput `json:"static"`
	Prefix *string                 `json:"prefix"`
}

type UserStaticSubject

type UserStaticSubject struct {
	Value string `json:"value"`
}

type UserStaticSubjectInput

type UserStaticSubjectInput struct {
	Value string `json:"value"`
}

type Webhook

type Webhook struct {
	ID       string        `json:"id"`
	Name     string        `json:"name"`
	URL      string        `json:"url"`
	Bindings *SinkBindings `json:"bindings"`
}

type WebhookCreateInput

type WebhookCreateInput struct {
	Name     string                   `json:"name"`
	URL      string                   `json:"url"`
	Bindings *SinkBindingsCreateInput `json:"bindings"`
}

type WebhookUpdateInput

type WebhookUpdateInput struct {
	ID       *string                  `json:"id"`
	Name     string                   `json:"name"`
	URL      string                   `json:"url"`
	Bindings *SinkBindingsUpdateInput `json:"bindings"`
}

Jump to

Keyboard shortcuts

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