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 ¶
SentAfterParam defines model for sentAfterParam.
type SentBeforeParam ¶
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 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.
Click to show internal directories.
Click to hide internal directories.