client

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package client provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventFilter

type EventFilter = []externalRef4.EventType

EventFilter The event types that will trigger the webhook. An empty list means all event types will trigger the webhook.

type SentAfterParam

type SentAfterParam = time.Time

SentAfterParam defines model for sentAfterParam.

type SentBeforeParam

type SentBeforeParam = time.Time

SentBeforeParam defines model for sentBeforeParam.

type Webhook

type Webhook struct {
	Enabled bool `json:"enabled"`

	// EventFilter The event types that will trigger the webhook. An empty list means all event types will trigger the webhook.
	EventFilter EventFilter `json:"eventFilter"`
	Id          string      `json:"id"`
	Name        string      `json:"name"`
	Secret      string      `json:"secret"`
	Url         string      `json:"url"`
}

Webhook defines model for webhook.

type WebhookEvent

type WebhookEvent struct {
	// Error error is populated when an error occurs without a response such as a timeout
	Error *string `json:"error,omitempty"`

	// EventId the id of the event that triggered the webhook
	EventId   string                 `json:"eventId"`
	EventType externalRef4.EventType `json:"eventType"`

	// Id the id of the webhook event
	Id           string    `json:"id"`
	ResponseBody *string   `json:"responseBody,omitempty"`
	SentAt       time.Time `json:"sentAt"`
	StatusCode   *int      `json:"statusCode,omitempty"`
}

WebhookEvent defines model for webhookEvent.

type WebhookIdParam

type WebhookIdParam = string

WebhookIdParam defines model for webhookIdParam.

type WebhookPATCHInput

type WebhookPATCHInput struct {
	Enabled *bool `json:"enabled,omitempty"`

	// EventFilter The event types that will trigger the webhook. An empty list means all event types will trigger the webhook.
	EventFilter *EventFilter `json:"eventFilter,omitempty"`
	Name        *string      `json:"name,omitempty"`
	Url         *string      `json:"url,omitempty"`
}

WebhookPATCHInput defines model for webhookPATCHInput.

type WebhookPOSTInput

type WebhookPOSTInput struct {
	Enabled bool `json:"enabled"`

	// EventFilter The event types that will trigger the webhook. An empty list means all event types will trigger the webhook.
	EventFilter EventFilter `json:"eventFilter"`
	Name        string      `json:"name"`

	// OwnerId The ID of the owner (team or personal user) whose resources should be returned
	OwnerId string `json:"ownerId"`
	Url     string `json:"url"`
}

WebhookPOSTInput defines model for webhookPOSTInput.

Jump to

Keyboard shortcuts

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