graphql

package
v1.6.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

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 added in v1.3.0

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

type AddSlackToOrganizationInput added in v1.3.0

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"
)

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 added in v1.3.0

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 added in v1.3.0

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

type CloudSlackUpdateInput added in v1.3.0

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 added in v1.3.0

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

type Coupon added in v1.3.0

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 added in v1.3.0

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

type DeletePlatformInput added in v1.3.0

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 (
	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 added in v1.3.0

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

type GroupPolicySubjectInput added in v1.3.0

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

type GroupStaticSubject added in v1.3.0

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

type GroupStaticSubjectInput added in v1.3.0

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

type Heartbeat

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

type HubSpotIdentificationToken added in v1.3.0

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

type HubspotIdentificationTokenInput added in v1.3.0

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

type InstallUpgradeInstructionsForPlatform added in v1.3.0

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

type InstallUpgradePrerequisite added in v1.3.0

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 added in v1.3.0

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 added in v1.3.0

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 added in v1.3.0

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

func (PolicySubjectType) IsValid added in v1.3.0

func (e PolicySubjectType) IsValid() bool

func (PolicySubjectType) MarshalGQL added in v1.3.0

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

func (PolicySubjectType) String added in v1.3.0

func (e PolicySubjectType) String() string

func (*PolicySubjectType) UnmarshalGQL added in v1.3.0

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 added in v1.3.0

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

type RBACUpdateInput added in v1.3.0

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

type Rbac added in v1.3.0

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 added in v1.3.0

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

type RemoveSlackFromOrganizationInput added in v1.3.0

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 added in v1.3.0

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 added in v1.3.0

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 added in v1.3.0

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 added in v1.3.0

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

func (StripeCouponDuration) IsValid added in v1.3.0

func (e StripeCouponDuration) IsValid() bool

func (StripeCouponDuration) MarshalGQL added in v1.3.0

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

func (StripeCouponDuration) String added in v1.3.0

func (e StripeCouponDuration) String() string

func (*StripeCouponDuration) UnmarshalGQL added in v1.3.0

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 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"`
}

type UserPolicySubject added in v1.3.0

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

type UserPolicySubjectInput added in v1.3.0

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

type UserStaticSubject added in v1.3.0

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

type UserStaticSubjectInput added in v1.3.0

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