unbindwebhooks_handler

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(server *server.Server, grp *huma.Group)

Types

type CreateWebhookInput

type CreateWebhookInput struct {
	server.BaseAuthInput
	Body *models.WebhookCreateInput
}

type CreateWebhookResponse

type CreateWebhookResponse struct {
	Body struct {
		Data *models.WebhookResponse `json:"data"`
	}
}

type DeleteWebhookInput

type DeleteWebhookInput struct {
	server.BaseAuthInput
	Body struct {
		ID     uuid.UUID          `json:"id" required:"true"`
		Type   schema.WebhookType `json:"type" required:"true"`
		TeamID uuid.UUID          `json:"team_id" required:"true"`
		// ProjectID is optional, but required if the webhook type is project
		ProjectID *uuid.UUID `json:"project_id" required:"false"`
	}
}

type DeleteWebhookResponse

type DeleteWebhookResponse struct {
	Body struct {
		Data server.DeletedResponse `json:"data"`
	}
}

type GetWebhookInput

type GetWebhookInput struct {
	server.BaseAuthInput
	models.WebhookGetInput
}

Get a single webhook by ID

type GetWebhookResponse

type GetWebhookResponse struct {
	Body struct {
		Data *models.WebhookResponse `json:"data"`
	}
}

type HandlerGroup

type HandlerGroup struct {
	// contains filtered or unexported fields
}

func (*HandlerGroup) CreateWebhook

func (self *HandlerGroup) CreateWebhook(ctx context.Context, input *CreateWebhookInput) (*CreateWebhookResponse, error)

func (*HandlerGroup) DeleteWebhook

func (self *HandlerGroup) DeleteWebhook(ctx context.Context, input *DeleteWebhookInput) (*DeleteWebhookResponse, error)

func (*HandlerGroup) GetWebhook

func (self *HandlerGroup) GetWebhook(ctx context.Context, input *GetWebhookInput) (*GetWebhookResponse, error)

GetWebhook handles getting a single webhook by ID

func (*HandlerGroup) ListWebhooks

func (self *HandlerGroup) ListWebhooks(ctx context.Context, input *ListWebhooksInput) (*ListWebhooksResponse, error)

ListWebhooks handles listing webhooks for a team or project

func (*HandlerGroup) UpdateWebhook

func (self *HandlerGroup) UpdateWebhook(ctx context.Context, input *UpdateWebhookInput) (*UpdateWebhookResponse, error)

type ListWebhooksInput

type ListWebhooksInput struct {
	server.BaseAuthInput
	models.WebhookListInput
}

type ListWebhooksResponse

type ListWebhooksResponse struct {
	Body struct {
		Data []*models.WebhookResponse `json:"data" nullable:"false"`
	}
}

type UpdateWebhookInput

type UpdateWebhookInput struct {
	server.BaseAuthInput
	Body *models.WebhookUpdateInput
}

type UpdateWebhookResponse

type UpdateWebhookResponse struct {
	Body struct {
		Data *models.WebhookResponse `json:"data"`
	}
}

Jump to

Keyboard shortcuts

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