api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 8 Imported by: 0 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

Index

Constants

This section is empty.

Variables

View Source
var Environments = struct {
	Default string
}{
	Default: "https://api.rendobar.com",
}

Environments defines all of the API environments. These values can be used with the WithBaseURL RequestOption to override the client's default environment, if any.

View Source
var ErrorCodes internal.ErrorCodes = internal.ErrorCodes{
	429: func(apiError *core.APIError) error {
		return &TooManyRequestsError{
			APIError: apiError,
		}
	},
	404: func(apiError *core.APIError) error {
		return &NotFoundError{
			APIError: apiError,
		}
	},
	401: func(apiError *core.APIError) error {
		return &UnauthorizedError{
			APIError: apiError,
		}
	},
	400: func(apiError *core.APIError) error {
		return &BadRequestError{
			APIError: apiError,
		}
	},
	402: func(apiError *core.APIError) error {
		return &PaymentRequiredError{
			APIError: apiError,
		}
	},
	403: func(apiError *core.APIError) error {
		return &ForbiddenError{
			APIError: apiError,
		}
	},
	409: func(apiError *core.APIError) error {
		return &ConflictError{
			APIError: apiError,
		}
	},
	500: func(apiError *core.APIError) error {
		return &InternalServerError{
			APIError: apiError,
		}
	},
}

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to the given bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to the given byte value.

func Bytes

func Bytes(b []byte) *[]byte

Bytes returns a pointer to the given []byte value.

func Complex64

func Complex64(c complex64) *complex64

Complex64 returns a pointer to the given complex64 value.

func Complex128

func Complex128(c complex128) *complex128

Complex128 returns a pointer to the given complex128 value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to the given float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to the given float64 value.

func Int

func Int(i int) *int

Int returns a pointer to the given int value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to the given int8 value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to the given int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to the given int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the given int64 value.

func MustParseDate

func MustParseDate(date string) time.Time

MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.

func MustParseDateTime

func MustParseDateTime(datetime string) time.Time

MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.

func Ptr

func Ptr[T any](v T) *T

Ptr returns a pointer to the given value.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to the given rune value.

func String

func String(s string) *string

String returns a pointer to the given string value.

func Time

func Time(t time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func UUID

func UUID(u uuid.UUID) *uuid.UUID

UUID returns a pointer to the given uuid.UUID value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to the given uint value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to the given uint8 value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to the given uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to the given uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to the given uint64 value.

func Uintptr

func Uintptr(u uintptr) *uintptr

Uintptr returns a pointer to the given uintptr value.

Types

type APIKey

type APIKey struct {
	ID   string `json:"id" url:"id"`
	Name string `json:"name" url:"name"`
	// Key prefix (rb_xxx)
	Prefix string `json:"prefix" url:"prefix"`
	// False when the key is disabled (soft-revoked)
	Enabled bool `json:"enabled" url:"enabled"`
	// Unix ms
	CreatedAt  int  `json:"createdAt" url:"createdAt"`
	LastUsedAt *int `json:"lastUsedAt,omitempty" url:"lastUsedAt,omitempty"`
	ExpiresAt  *int `json:"expiresAt,omitempty" url:"expiresAt,omitempty"`
	// What the key may do, `write` including `read`. Set when the key is created and never changed by its creator's role. Never keys:write.
	Scopes []string `json:"scopes" url:"scopes"`
	// Who created the key. Null when that account no longer exists.
	CreatedBy *APIKeyCreatedBy `json:"createdBy,omitempty" url:"createdBy,omitempty"`
	// Whether the caller may rename, disable or revoke this key.
	Manageable bool `json:"manageable" url:"manageable"`
	// Who disabled the key. Null when it is enabled, or was disabled before this was recorded.
	DisabledBy *APIKeyDisabledBy `json:"disabledBy,omitempty" url:"disabledBy,omitempty"`
	// Unix ms the key was disabled, when recorded.
	DisabledAt *int `json:"disabledAt,omitempty" url:"disabledAt,omitempty"`
	// contains filtered or unexported fields
}

func (*APIKey) GetCreatedAt

func (a *APIKey) GetCreatedAt() int

func (*APIKey) GetCreatedBy

func (a *APIKey) GetCreatedBy() *APIKeyCreatedBy

func (*APIKey) GetDisabledAt

func (a *APIKey) GetDisabledAt() *int

func (*APIKey) GetDisabledBy

func (a *APIKey) GetDisabledBy() *APIKeyDisabledBy

func (*APIKey) GetEnabled

func (a *APIKey) GetEnabled() bool

func (*APIKey) GetExpiresAt

func (a *APIKey) GetExpiresAt() *int

func (*APIKey) GetExtraProperties

func (a *APIKey) GetExtraProperties() map[string]interface{}

func (*APIKey) GetID

func (a *APIKey) GetID() string

func (*APIKey) GetLastUsedAt

func (a *APIKey) GetLastUsedAt() *int

func (*APIKey) GetManageable

func (a *APIKey) GetManageable() bool

func (*APIKey) GetName

func (a *APIKey) GetName() string

func (*APIKey) GetPrefix

func (a *APIKey) GetPrefix() string

func (*APIKey) GetScopes

func (a *APIKey) GetScopes() []string

func (*APIKey) MarshalJSON

func (a *APIKey) MarshalJSON() ([]byte, error)

func (*APIKey) SetCreatedAt

func (a *APIKey) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKey) SetCreatedBy

func (a *APIKey) SetCreatedBy(createdBy *APIKeyCreatedBy)

SetCreatedBy sets the CreatedBy field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKey) SetDisabledAt

func (a *APIKey) SetDisabledAt(disabledAt *int)

SetDisabledAt sets the DisabledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKey) SetDisabledBy

func (a *APIKey) SetDisabledBy(disabledBy *APIKeyDisabledBy)

SetDisabledBy sets the DisabledBy field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKey) SetEnabled

func (a *APIKey) SetEnabled(enabled bool)

SetEnabled sets the Enabled field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKey) SetExpiresAt

func (a *APIKey) SetExpiresAt(expiresAt *int)

SetExpiresAt sets the ExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKey) SetID

func (a *APIKey) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKey) SetLastUsedAt

func (a *APIKey) SetLastUsedAt(lastUsedAt *int)

SetLastUsedAt sets the LastUsedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKey) SetManageable

func (a *APIKey) SetManageable(manageable bool)

SetManageable sets the Manageable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKey) SetName

func (a *APIKey) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKey) SetPrefix

func (a *APIKey) SetPrefix(prefix string)

SetPrefix sets the Prefix field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKey) SetScopes

func (a *APIKey) SetScopes(scopes []string)

SetScopes sets the Scopes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKey) String

func (a *APIKey) String() string

func (*APIKey) UnmarshalJSON

func (a *APIKey) UnmarshalJSON(data []byte) error

type APIKeyCreatedBy

type APIKeyCreatedBy struct {
	Name string `json:"name" url:"name"`
	// False once the creator has left the workspace. The key stays.
	InWorkspace bool `json:"inWorkspace" url:"inWorkspace"`
	// The creator's email, as the Team page shows it. Null once they have left, or when the caller cannot read the team.
	Email *string `json:"email,omitempty" url:"email,omitempty"`
	// The creator's role in this workspace now. Null once they have left, or when the caller cannot read the team.
	Role *APIKeyCreatedByRole `json:"role,omitempty" url:"role,omitempty"`
	// contains filtered or unexported fields
}

Who created the key. Null when that account no longer exists.

func (*APIKeyCreatedBy) GetEmail

func (a *APIKeyCreatedBy) GetEmail() *string

func (*APIKeyCreatedBy) GetExtraProperties

func (a *APIKeyCreatedBy) GetExtraProperties() map[string]interface{}

func (*APIKeyCreatedBy) GetInWorkspace

func (a *APIKeyCreatedBy) GetInWorkspace() bool

func (*APIKeyCreatedBy) GetName

func (a *APIKeyCreatedBy) GetName() string

func (*APIKeyCreatedBy) GetRole

func (a *APIKeyCreatedBy) GetRole() *APIKeyCreatedByRole

func (*APIKeyCreatedBy) MarshalJSON

func (a *APIKeyCreatedBy) MarshalJSON() ([]byte, error)

func (*APIKeyCreatedBy) SetEmail

func (a *APIKeyCreatedBy) SetEmail(email *string)

SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKeyCreatedBy) SetInWorkspace

func (a *APIKeyCreatedBy) SetInWorkspace(inWorkspace bool)

SetInWorkspace sets the InWorkspace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKeyCreatedBy) SetName

func (a *APIKeyCreatedBy) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKeyCreatedBy) SetRole

func (a *APIKeyCreatedBy) SetRole(role *APIKeyCreatedByRole)

SetRole sets the Role field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKeyCreatedBy) String

func (a *APIKeyCreatedBy) String() string

func (*APIKeyCreatedBy) UnmarshalJSON

func (a *APIKeyCreatedBy) UnmarshalJSON(data []byte) error

type APIKeyCreatedByRole

type APIKeyCreatedByRole string

The creator's role in this workspace now. Null once they have left, or when the caller cannot read the team.

const (
	APIKeyCreatedByRoleOwner  APIKeyCreatedByRole = "owner"
	APIKeyCreatedByRoleAdmin  APIKeyCreatedByRole = "admin"
	APIKeyCreatedByRoleMember APIKeyCreatedByRole = "member"
)

func NewAPIKeyCreatedByRoleFromString

func NewAPIKeyCreatedByRoleFromString(s string) (APIKeyCreatedByRole, error)

func (APIKeyCreatedByRole) Ptr

type APIKeyDisabledBy

type APIKeyDisabledBy struct {
	Name string `json:"name" url:"name"`
	// contains filtered or unexported fields
}

Who disabled the key. Null when it is enabled, or was disabled before this was recorded.

func (*APIKeyDisabledBy) GetExtraProperties

func (a *APIKeyDisabledBy) GetExtraProperties() map[string]interface{}

func (*APIKeyDisabledBy) GetName

func (a *APIKeyDisabledBy) GetName() string

func (*APIKeyDisabledBy) MarshalJSON

func (a *APIKeyDisabledBy) MarshalJSON() ([]byte, error)

func (*APIKeyDisabledBy) SetName

func (a *APIKeyDisabledBy) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIKeyDisabledBy) String

func (a *APIKeyDisabledBy) String() string

func (*APIKeyDisabledBy) UnmarshalJSON

func (a *APIKeyDisabledBy) UnmarshalJSON(data []byte) error

type BadRequestError

type BadRequestError struct {
	*core.APIError
	Body *ErrorResponse
}

Validation error

func (*BadRequestError) GetBody

func (b *BadRequestError) GetBody() *ErrorResponse

func (*BadRequestError) MarshalJSON

func (b *BadRequestError) MarshalJSON() ([]byte, error)

func (*BadRequestError) UnmarshalJSON

func (b *BadRequestError) UnmarshalJSON(data []byte) error

func (*BadRequestError) Unwrap

func (b *BadRequestError) Unwrap() error

type BalanceDepletedData

type BalanceDepletedData struct {
	Balance            int    `json:"balance" url:"balance"`
	BalanceFormatted   string `json:"balanceFormatted" url:"balanceFormatted"`
	TriggeredByJobID   string `json:"triggeredByJobId" url:"triggeredByJobId"`
	TriggeredByJobType string `json:"triggeredByJobType" url:"triggeredByJobType"`
	// contains filtered or unexported fields
}

func (*BalanceDepletedData) GetBalance

func (b *BalanceDepletedData) GetBalance() int

func (*BalanceDepletedData) GetBalanceFormatted

func (b *BalanceDepletedData) GetBalanceFormatted() string

func (*BalanceDepletedData) GetExtraProperties

func (b *BalanceDepletedData) GetExtraProperties() map[string]interface{}

func (*BalanceDepletedData) GetTriggeredByJobID

func (b *BalanceDepletedData) GetTriggeredByJobID() string

func (*BalanceDepletedData) GetTriggeredByJobType

func (b *BalanceDepletedData) GetTriggeredByJobType() string

func (*BalanceDepletedData) MarshalJSON

func (b *BalanceDepletedData) MarshalJSON() ([]byte, error)

func (*BalanceDepletedData) SetBalance

func (b *BalanceDepletedData) SetBalance(balance int)

SetBalance sets the Balance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceDepletedData) SetBalanceFormatted

func (b *BalanceDepletedData) SetBalanceFormatted(balanceFormatted string)

SetBalanceFormatted sets the BalanceFormatted field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceDepletedData) SetTriggeredByJobID

func (b *BalanceDepletedData) SetTriggeredByJobID(triggeredByJobID string)

SetTriggeredByJobID sets the TriggeredByJobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceDepletedData) SetTriggeredByJobType

func (b *BalanceDepletedData) SetTriggeredByJobType(triggeredByJobType string)

SetTriggeredByJobType sets the TriggeredByJobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceDepletedData) String

func (b *BalanceDepletedData) String() string

func (*BalanceDepletedData) UnmarshalJSON

func (b *BalanceDepletedData) UnmarshalJSON(data []byte) error

type BalanceDepletedWebhookEvent

type BalanceDepletedWebhookEvent struct {
	// Envelope version. A new version is a new shape
	Version BalanceDepletedWebhookEventVersion `json:"version" url:"version"`
	// Unique per delivery. Retries of one delivery share it
	DeliveryID string `json:"deliveryId" url:"deliveryId"`
	// When the event happened (Unix ms)
	Timestamp int                  `json:"timestamp" url:"timestamp"`
	OrgID     string               `json:"orgId" url:"orgId"`
	Data      *BalanceDepletedData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*BalanceDepletedWebhookEvent) GetData

func (*BalanceDepletedWebhookEvent) GetDeliveryID

func (b *BalanceDepletedWebhookEvent) GetDeliveryID() string

func (*BalanceDepletedWebhookEvent) GetExtraProperties

func (b *BalanceDepletedWebhookEvent) GetExtraProperties() map[string]interface{}

func (*BalanceDepletedWebhookEvent) GetOrgID

func (b *BalanceDepletedWebhookEvent) GetOrgID() string

func (*BalanceDepletedWebhookEvent) GetTimestamp

func (b *BalanceDepletedWebhookEvent) GetTimestamp() int

func (*BalanceDepletedWebhookEvent) GetVersion

func (*BalanceDepletedWebhookEvent) MarshalJSON

func (b *BalanceDepletedWebhookEvent) MarshalJSON() ([]byte, error)

func (*BalanceDepletedWebhookEvent) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceDepletedWebhookEvent) SetDeliveryID

func (b *BalanceDepletedWebhookEvent) SetDeliveryID(deliveryID string)

SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceDepletedWebhookEvent) SetOrgID

func (b *BalanceDepletedWebhookEvent) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceDepletedWebhookEvent) SetTimestamp

func (b *BalanceDepletedWebhookEvent) SetTimestamp(timestamp int)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceDepletedWebhookEvent) SetVersion

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceDepletedWebhookEvent) String

func (b *BalanceDepletedWebhookEvent) String() string

func (*BalanceDepletedWebhookEvent) UnmarshalJSON

func (b *BalanceDepletedWebhookEvent) UnmarshalJSON(data []byte) error

type BalanceDepletedWebhookEventVersion

type BalanceDepletedWebhookEventVersion string

Envelope version. A new version is a new shape

const (
	BalanceDepletedWebhookEventVersionV1 BalanceDepletedWebhookEventVersion = "1"
)

func NewBalanceDepletedWebhookEventVersionFromString

func NewBalanceDepletedWebhookEventVersionFromString(s string) (BalanceDepletedWebhookEventVersion, error)

func (BalanceDepletedWebhookEventVersion) Ptr

type BalanceLowData

type BalanceLowData struct {
	Balance            int    `json:"balance" url:"balance"`
	BalanceFormatted   string `json:"balanceFormatted" url:"balanceFormatted"`
	Threshold          int    `json:"threshold" url:"threshold"`
	ThresholdFormatted string `json:"thresholdFormatted" url:"thresholdFormatted"`
	TriggeredByJobID   string `json:"triggeredByJobId" url:"triggeredByJobId"`
	TriggeredByJobType string `json:"triggeredByJobType" url:"triggeredByJobType"`
	// contains filtered or unexported fields
}

func (*BalanceLowData) GetBalance

func (b *BalanceLowData) GetBalance() int

func (*BalanceLowData) GetBalanceFormatted

func (b *BalanceLowData) GetBalanceFormatted() string

func (*BalanceLowData) GetExtraProperties

func (b *BalanceLowData) GetExtraProperties() map[string]interface{}

func (*BalanceLowData) GetThreshold

func (b *BalanceLowData) GetThreshold() int

func (*BalanceLowData) GetThresholdFormatted

func (b *BalanceLowData) GetThresholdFormatted() string

func (*BalanceLowData) GetTriggeredByJobID

func (b *BalanceLowData) GetTriggeredByJobID() string

func (*BalanceLowData) GetTriggeredByJobType

func (b *BalanceLowData) GetTriggeredByJobType() string

func (*BalanceLowData) MarshalJSON

func (b *BalanceLowData) MarshalJSON() ([]byte, error)

func (*BalanceLowData) SetBalance

func (b *BalanceLowData) SetBalance(balance int)

SetBalance sets the Balance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceLowData) SetBalanceFormatted

func (b *BalanceLowData) SetBalanceFormatted(balanceFormatted string)

SetBalanceFormatted sets the BalanceFormatted field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceLowData) SetThreshold

func (b *BalanceLowData) SetThreshold(threshold int)

SetThreshold sets the Threshold field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceLowData) SetThresholdFormatted

func (b *BalanceLowData) SetThresholdFormatted(thresholdFormatted string)

SetThresholdFormatted sets the ThresholdFormatted field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceLowData) SetTriggeredByJobID

func (b *BalanceLowData) SetTriggeredByJobID(triggeredByJobID string)

SetTriggeredByJobID sets the TriggeredByJobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceLowData) SetTriggeredByJobType

func (b *BalanceLowData) SetTriggeredByJobType(triggeredByJobType string)

SetTriggeredByJobType sets the TriggeredByJobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceLowData) String

func (b *BalanceLowData) String() string

func (*BalanceLowData) UnmarshalJSON

func (b *BalanceLowData) UnmarshalJSON(data []byte) error

type BalanceLowWebhookEvent

type BalanceLowWebhookEvent struct {
	// Envelope version. A new version is a new shape
	Version BalanceLowWebhookEventVersion `json:"version" url:"version"`
	// Unique per delivery. Retries of one delivery share it
	DeliveryID string `json:"deliveryId" url:"deliveryId"`
	// When the event happened (Unix ms)
	Timestamp int             `json:"timestamp" url:"timestamp"`
	OrgID     string          `json:"orgId" url:"orgId"`
	Data      *BalanceLowData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*BalanceLowWebhookEvent) GetData

func (b *BalanceLowWebhookEvent) GetData() *BalanceLowData

func (*BalanceLowWebhookEvent) GetDeliveryID

func (b *BalanceLowWebhookEvent) GetDeliveryID() string

func (*BalanceLowWebhookEvent) GetExtraProperties

func (b *BalanceLowWebhookEvent) GetExtraProperties() map[string]interface{}

func (*BalanceLowWebhookEvent) GetOrgID

func (b *BalanceLowWebhookEvent) GetOrgID() string

func (*BalanceLowWebhookEvent) GetTimestamp

func (b *BalanceLowWebhookEvent) GetTimestamp() int

func (*BalanceLowWebhookEvent) GetVersion

func (*BalanceLowWebhookEvent) MarshalJSON

func (b *BalanceLowWebhookEvent) MarshalJSON() ([]byte, error)

func (*BalanceLowWebhookEvent) SetData

func (b *BalanceLowWebhookEvent) SetData(data *BalanceLowData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceLowWebhookEvent) SetDeliveryID

func (b *BalanceLowWebhookEvent) SetDeliveryID(deliveryID string)

SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceLowWebhookEvent) SetOrgID

func (b *BalanceLowWebhookEvent) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceLowWebhookEvent) SetTimestamp

func (b *BalanceLowWebhookEvent) SetTimestamp(timestamp int)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceLowWebhookEvent) SetVersion

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BalanceLowWebhookEvent) String

func (b *BalanceLowWebhookEvent) String() string

func (*BalanceLowWebhookEvent) UnmarshalJSON

func (b *BalanceLowWebhookEvent) UnmarshalJSON(data []byte) error

type BalanceLowWebhookEventVersion

type BalanceLowWebhookEventVersion string

Envelope version. A new version is a new shape

const (
	BalanceLowWebhookEventVersionV1 BalanceLowWebhookEventVersion = "1"
)

func NewBalanceLowWebhookEventVersionFromString

func NewBalanceLowWebhookEventVersionFromString(s string) (BalanceLowWebhookEventVersion, error)

func (BalanceLowWebhookEventVersion) Ptr

type CallbackStatus

type CallbackStatus struct {
	// Delivery state of the per-job completion callback.
	Status CallbackStatusStatus `json:"status" url:"status"`
	// contains filtered or unexported fields
}

Per-job callback delivery status, populated by GET /jobs/:id when a callback.url was set at submit (else null/absent). Deliberately carries ONLY the status — the callback url and any custom headers are secret and are never returned by any response.

func (*CallbackStatus) GetExtraProperties

func (c *CallbackStatus) GetExtraProperties() map[string]interface{}

func (*CallbackStatus) GetStatus

func (c *CallbackStatus) GetStatus() CallbackStatusStatus

func (*CallbackStatus) MarshalJSON

func (c *CallbackStatus) MarshalJSON() ([]byte, error)

func (*CallbackStatus) SetStatus

func (c *CallbackStatus) SetStatus(status CallbackStatusStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CallbackStatus) String

func (c *CallbackStatus) String() string

func (*CallbackStatus) UnmarshalJSON

func (c *CallbackStatus) UnmarshalJSON(data []byte) error

type CallbackStatusStatus

type CallbackStatusStatus string

Delivery state of the per-job completion callback.

const (
	CallbackStatusStatusPending   CallbackStatusStatus = "pending"
	CallbackStatusStatusDelivered CallbackStatusStatus = "delivered"
	CallbackStatusStatusFailed    CallbackStatusStatus = "failed"
)

func NewCallbackStatusStatusFromString

func NewCallbackStatusStatusFromString(s string) (CallbackStatusStatus, error)

func (CallbackStatusStatus) Ptr

type CancelJobRequest

type CancelJobRequest struct {
	// Job ID to cancel
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*CancelJobRequest) SetID

func (c *CancelJobRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type CancelJobResponse

type CancelJobResponse struct {
	Data *CancelJobResponseData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*CancelJobResponse) GetData

func (*CancelJobResponse) GetExtraProperties

func (c *CancelJobResponse) GetExtraProperties() map[string]interface{}

func (*CancelJobResponse) MarshalJSON

func (c *CancelJobResponse) MarshalJSON() ([]byte, error)

func (*CancelJobResponse) SetData

func (c *CancelJobResponse) SetData(data *CancelJobResponseData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CancelJobResponse) String

func (c *CancelJobResponse) String() string

func (*CancelJobResponse) UnmarshalJSON

func (c *CancelJobResponse) UnmarshalJSON(data []byte) error

type CancelJobResponseData

type CancelJobResponseData struct {
	ID     string                      `json:"id" url:"id"`
	Status CancelJobResponseDataStatus `json:"status" url:"status"`
	// contains filtered or unexported fields
}

func (*CancelJobResponseData) GetExtraProperties

func (c *CancelJobResponseData) GetExtraProperties() map[string]interface{}

func (*CancelJobResponseData) GetID

func (c *CancelJobResponseData) GetID() string

func (*CancelJobResponseData) GetStatus

func (*CancelJobResponseData) MarshalJSON

func (c *CancelJobResponseData) MarshalJSON() ([]byte, error)

func (*CancelJobResponseData) SetID

func (c *CancelJobResponseData) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CancelJobResponseData) SetStatus

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CancelJobResponseData) String

func (c *CancelJobResponseData) String() string

func (*CancelJobResponseData) UnmarshalJSON

func (c *CancelJobResponseData) UnmarshalJSON(data []byte) error

type CancelJobResponseDataStatus

type CancelJobResponseDataStatus string
const (
	CancelJobResponseDataStatusCancelled CancelJobResponseDataStatus = "cancelled"
)

func NewCancelJobResponseDataStatusFromString

func NewCancelJobResponseDataStatusFromString(s string) (CancelJobResponseDataStatus, error)

func (CancelJobResponseDataStatus) Ptr

type CaptionBurnParams

type CaptionBurnParams struct {
	// Spoken language for auto-transcription as an ISO-639-1 code (e.g. en, es, ja), or 'auto' to detect. Ignored when a subtitle file is provided.
	Language *CaptionBurnParamsLanguage `json:"language,omitempty" url:"language,omitempty"`
	// Font family, or a CSS fallback stack. Any Google Fonts family works by name. Bundled and instant: Inter, Bebas Neue, Anton, Montserrat, Poppins, Roboto, Oswald. A stack falls through in CSS order, so "Lato, Inter, sans-serif" tries each in turn.
	Font *string `json:"font,omitempty" url:"font,omitempty"`
	// Deprecated alias for `font`. Use `font`.
	FontFamily *string `json:"fontFamily,omitempty" url:"fontFamily,omitempty"`
	// Font size in pixels
	FontSize *int `json:"fontSize,omitempty" url:"fontSize,omitempty"`
	// Text color, web hex (#RRGGBB)
	FontColor *string `json:"fontColor,omitempty" url:"fontColor,omitempty"`
	// Bold text
	Bold *bool `json:"bold,omitempty" url:"bold,omitempty"`
	// Italic text
	Italic *bool `json:"italic,omitempty" url:"italic,omitempty"`
	// Outline color, web hex
	OutlineColor *string `json:"outlineColor,omitempty" url:"outlineColor,omitempty"`
	// Outline thickness in pixels
	OutlineWidth *float64 `json:"outlineWidth,omitempty" url:"outlineWidth,omitempty"`
	// Drop shadow depth in pixels
	Shadow *float64 `json:"shadow,omitempty" url:"shadow,omitempty"`
	// Draw a background box behind captions
	BoxEnabled *bool `json:"boxEnabled,omitempty" url:"boxEnabled,omitempty"`
	// Background box color, web hex
	BoxColor *string `json:"boxColor,omitempty" url:"boxColor,omitempty"`
	// Background box opacity (0-1)
	BoxOpacity *float64 `json:"boxOpacity,omitempty" url:"boxOpacity,omitempty"`
	// Vertical position
	Position *CaptionBurnParamsPosition `json:"position,omitempty" url:"position,omitempty"`
	// Horizontal alignment
	Alignment *CaptionBurnParamsAlignment `json:"alignment,omitempty" url:"alignment,omitempty"`
	// Vertical margin in pixels
	MarginV *int `json:"marginV,omitempty" url:"marginV,omitempty"`
	// Horizontal margin in pixels
	MarginH *int `json:"marginH,omitempty" url:"marginH,omitempty"`
	// Max characters per line (auto-transcribe path)
	MaxCharsPerLine *int `json:"maxCharsPerLine,omitempty" url:"maxCharsPerLine,omitempty"`
	// contains filtered or unexported fields
}

Params of the caption.burn job.

func (*CaptionBurnParams) GetAlignment

func (c *CaptionBurnParams) GetAlignment() *CaptionBurnParamsAlignment

func (*CaptionBurnParams) GetBold

func (c *CaptionBurnParams) GetBold() *bool

func (*CaptionBurnParams) GetBoxColor

func (c *CaptionBurnParams) GetBoxColor() *string

func (*CaptionBurnParams) GetBoxEnabled

func (c *CaptionBurnParams) GetBoxEnabled() *bool

func (*CaptionBurnParams) GetBoxOpacity

func (c *CaptionBurnParams) GetBoxOpacity() *float64

func (*CaptionBurnParams) GetExtraProperties

func (c *CaptionBurnParams) GetExtraProperties() map[string]interface{}

func (*CaptionBurnParams) GetFont

func (c *CaptionBurnParams) GetFont() *string

func (*CaptionBurnParams) GetFontColor

func (c *CaptionBurnParams) GetFontColor() *string

func (*CaptionBurnParams) GetFontFamily

func (c *CaptionBurnParams) GetFontFamily() *string

func (*CaptionBurnParams) GetFontSize

func (c *CaptionBurnParams) GetFontSize() *int

func (*CaptionBurnParams) GetItalic

func (c *CaptionBurnParams) GetItalic() *bool

func (*CaptionBurnParams) GetLanguage

func (c *CaptionBurnParams) GetLanguage() *CaptionBurnParamsLanguage

func (*CaptionBurnParams) GetMarginH

func (c *CaptionBurnParams) GetMarginH() *int

func (*CaptionBurnParams) GetMarginV

func (c *CaptionBurnParams) GetMarginV() *int

func (*CaptionBurnParams) GetMaxCharsPerLine

func (c *CaptionBurnParams) GetMaxCharsPerLine() *int

func (*CaptionBurnParams) GetOutlineColor

func (c *CaptionBurnParams) GetOutlineColor() *string

func (*CaptionBurnParams) GetOutlineWidth

func (c *CaptionBurnParams) GetOutlineWidth() *float64

func (*CaptionBurnParams) GetPosition

func (c *CaptionBurnParams) GetPosition() *CaptionBurnParamsPosition

func (*CaptionBurnParams) GetShadow

func (c *CaptionBurnParams) GetShadow() *float64

func (*CaptionBurnParams) MarshalJSON

func (c *CaptionBurnParams) MarshalJSON() ([]byte, error)

func (*CaptionBurnParams) SetAlignment

func (c *CaptionBurnParams) SetAlignment(alignment *CaptionBurnParamsAlignment)

SetAlignment sets the Alignment field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetBold

func (c *CaptionBurnParams) SetBold(bold *bool)

SetBold sets the Bold field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetBoxColor

func (c *CaptionBurnParams) SetBoxColor(boxColor *string)

SetBoxColor sets the BoxColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetBoxEnabled

func (c *CaptionBurnParams) SetBoxEnabled(boxEnabled *bool)

SetBoxEnabled sets the BoxEnabled field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetBoxOpacity

func (c *CaptionBurnParams) SetBoxOpacity(boxOpacity *float64)

SetBoxOpacity sets the BoxOpacity field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetFont

func (c *CaptionBurnParams) SetFont(font *string)

SetFont sets the Font field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetFontColor

func (c *CaptionBurnParams) SetFontColor(fontColor *string)

SetFontColor sets the FontColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetFontFamily

func (c *CaptionBurnParams) SetFontFamily(fontFamily *string)

SetFontFamily sets the FontFamily field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetFontSize

func (c *CaptionBurnParams) SetFontSize(fontSize *int)

SetFontSize sets the FontSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetItalic

func (c *CaptionBurnParams) SetItalic(italic *bool)

SetItalic sets the Italic field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetLanguage

func (c *CaptionBurnParams) SetLanguage(language *CaptionBurnParamsLanguage)

SetLanguage sets the Language field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetMarginH

func (c *CaptionBurnParams) SetMarginH(marginH *int)

SetMarginH sets the MarginH field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetMarginV

func (c *CaptionBurnParams) SetMarginV(marginV *int)

SetMarginV sets the MarginV field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetMaxCharsPerLine

func (c *CaptionBurnParams) SetMaxCharsPerLine(maxCharsPerLine *int)

SetMaxCharsPerLine sets the MaxCharsPerLine field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetOutlineColor

func (c *CaptionBurnParams) SetOutlineColor(outlineColor *string)

SetOutlineColor sets the OutlineColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetOutlineWidth

func (c *CaptionBurnParams) SetOutlineWidth(outlineWidth *float64)

SetOutlineWidth sets the OutlineWidth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetPosition

func (c *CaptionBurnParams) SetPosition(position *CaptionBurnParamsPosition)

SetPosition sets the Position field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) SetShadow

func (c *CaptionBurnParams) SetShadow(shadow *float64)

SetShadow sets the Shadow field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionBurnParams) String

func (c *CaptionBurnParams) String() string

func (*CaptionBurnParams) UnmarshalJSON

func (c *CaptionBurnParams) UnmarshalJSON(data []byte) error

type CaptionBurnParamsAlignment

type CaptionBurnParamsAlignment string

Horizontal alignment

const (
	CaptionBurnParamsAlignmentLeft   CaptionBurnParamsAlignment = "left"
	CaptionBurnParamsAlignmentCenter CaptionBurnParamsAlignment = "center"
	CaptionBurnParamsAlignmentRight  CaptionBurnParamsAlignment = "right"
)

func NewCaptionBurnParamsAlignmentFromString

func NewCaptionBurnParamsAlignmentFromString(s string) (CaptionBurnParamsAlignment, error)

func (CaptionBurnParamsAlignment) Ptr

type CaptionBurnParamsLanguage

type CaptionBurnParamsLanguage string

Spoken language for auto-transcription as an ISO-639-1 code (e.g. en, es, ja), or 'auto' to detect. Ignored when a subtitle file is provided.

const (
	CaptionBurnParamsLanguageAuto CaptionBurnParamsLanguage = "auto"
	CaptionBurnParamsLanguageEn   CaptionBurnParamsLanguage = "en"
	CaptionBurnParamsLanguageZh   CaptionBurnParamsLanguage = "zh"
	CaptionBurnParamsLanguageDe   CaptionBurnParamsLanguage = "de"
	CaptionBurnParamsLanguageEs   CaptionBurnParamsLanguage = "es"
	CaptionBurnParamsLanguageRu   CaptionBurnParamsLanguage = "ru"
	CaptionBurnParamsLanguageKo   CaptionBurnParamsLanguage = "ko"
	CaptionBurnParamsLanguageFr   CaptionBurnParamsLanguage = "fr"
	CaptionBurnParamsLanguageJa   CaptionBurnParamsLanguage = "ja"
	CaptionBurnParamsLanguagePt   CaptionBurnParamsLanguage = "pt"
	CaptionBurnParamsLanguageTr   CaptionBurnParamsLanguage = "tr"
	CaptionBurnParamsLanguagePl   CaptionBurnParamsLanguage = "pl"
	CaptionBurnParamsLanguageCa   CaptionBurnParamsLanguage = "ca"
	CaptionBurnParamsLanguageNl   CaptionBurnParamsLanguage = "nl"
	CaptionBurnParamsLanguageAr   CaptionBurnParamsLanguage = "ar"
	CaptionBurnParamsLanguageSv   CaptionBurnParamsLanguage = "sv"
	CaptionBurnParamsLanguageIt   CaptionBurnParamsLanguage = "it"
	CaptionBurnParamsLanguageID   CaptionBurnParamsLanguage = "id"
	CaptionBurnParamsLanguageHi   CaptionBurnParamsLanguage = "hi"
	CaptionBurnParamsLanguageFi   CaptionBurnParamsLanguage = "fi"
	CaptionBurnParamsLanguageVi   CaptionBurnParamsLanguage = "vi"
	CaptionBurnParamsLanguageHe   CaptionBurnParamsLanguage = "he"
	CaptionBurnParamsLanguageUk   CaptionBurnParamsLanguage = "uk"
	CaptionBurnParamsLanguageEl   CaptionBurnParamsLanguage = "el"
	CaptionBurnParamsLanguageMs   CaptionBurnParamsLanguage = "ms"
	CaptionBurnParamsLanguageCs   CaptionBurnParamsLanguage = "cs"
	CaptionBurnParamsLanguageRo   CaptionBurnParamsLanguage = "ro"
	CaptionBurnParamsLanguageDa   CaptionBurnParamsLanguage = "da"
	CaptionBurnParamsLanguageHu   CaptionBurnParamsLanguage = "hu"
	CaptionBurnParamsLanguageTa   CaptionBurnParamsLanguage = "ta"
	CaptionBurnParamsLanguageNo   CaptionBurnParamsLanguage = "no"
	CaptionBurnParamsLanguageTh   CaptionBurnParamsLanguage = "th"
	CaptionBurnParamsLanguageUr   CaptionBurnParamsLanguage = "ur"
	CaptionBurnParamsLanguageHr   CaptionBurnParamsLanguage = "hr"
	CaptionBurnParamsLanguageBg   CaptionBurnParamsLanguage = "bg"
	CaptionBurnParamsLanguageLt   CaptionBurnParamsLanguage = "lt"
	CaptionBurnParamsLanguageLa   CaptionBurnParamsLanguage = "la"
	CaptionBurnParamsLanguageMi   CaptionBurnParamsLanguage = "mi"
	CaptionBurnParamsLanguageMl   CaptionBurnParamsLanguage = "ml"
	CaptionBurnParamsLanguageCy   CaptionBurnParamsLanguage = "cy"
	CaptionBurnParamsLanguageSk   CaptionBurnParamsLanguage = "sk"
	CaptionBurnParamsLanguageTe   CaptionBurnParamsLanguage = "te"
	CaptionBurnParamsLanguageFa   CaptionBurnParamsLanguage = "fa"
	CaptionBurnParamsLanguageLv   CaptionBurnParamsLanguage = "lv"
	CaptionBurnParamsLanguageBn   CaptionBurnParamsLanguage = "bn"
	CaptionBurnParamsLanguageSr   CaptionBurnParamsLanguage = "sr"
	CaptionBurnParamsLanguageAz   CaptionBurnParamsLanguage = "az"
	CaptionBurnParamsLanguageSl   CaptionBurnParamsLanguage = "sl"
	CaptionBurnParamsLanguageKn   CaptionBurnParamsLanguage = "kn"
	CaptionBurnParamsLanguageEt   CaptionBurnParamsLanguage = "et"
	CaptionBurnParamsLanguageMk   CaptionBurnParamsLanguage = "mk"
	CaptionBurnParamsLanguageBr   CaptionBurnParamsLanguage = "br"
	CaptionBurnParamsLanguageEu   CaptionBurnParamsLanguage = "eu"
	CaptionBurnParamsLanguageIs   CaptionBurnParamsLanguage = "is"
	CaptionBurnParamsLanguageHy   CaptionBurnParamsLanguage = "hy"
	CaptionBurnParamsLanguageNe   CaptionBurnParamsLanguage = "ne"
	CaptionBurnParamsLanguageMn   CaptionBurnParamsLanguage = "mn"
	CaptionBurnParamsLanguageBs   CaptionBurnParamsLanguage = "bs"
	CaptionBurnParamsLanguageKk   CaptionBurnParamsLanguage = "kk"
	CaptionBurnParamsLanguageSq   CaptionBurnParamsLanguage = "sq"
	CaptionBurnParamsLanguageSw   CaptionBurnParamsLanguage = "sw"
	CaptionBurnParamsLanguageGl   CaptionBurnParamsLanguage = "gl"
	CaptionBurnParamsLanguageMr   CaptionBurnParamsLanguage = "mr"
	CaptionBurnParamsLanguagePa   CaptionBurnParamsLanguage = "pa"
	CaptionBurnParamsLanguageSi   CaptionBurnParamsLanguage = "si"
	CaptionBurnParamsLanguageKm   CaptionBurnParamsLanguage = "km"
	CaptionBurnParamsLanguageSn   CaptionBurnParamsLanguage = "sn"
	CaptionBurnParamsLanguageYo   CaptionBurnParamsLanguage = "yo"
	CaptionBurnParamsLanguageSo   CaptionBurnParamsLanguage = "so"
	CaptionBurnParamsLanguageAf   CaptionBurnParamsLanguage = "af"
	CaptionBurnParamsLanguageOc   CaptionBurnParamsLanguage = "oc"
	CaptionBurnParamsLanguageKa   CaptionBurnParamsLanguage = "ka"
	CaptionBurnParamsLanguageBe   CaptionBurnParamsLanguage = "be"
	CaptionBurnParamsLanguageTg   CaptionBurnParamsLanguage = "tg"
	CaptionBurnParamsLanguageSd   CaptionBurnParamsLanguage = "sd"
	CaptionBurnParamsLanguageGu   CaptionBurnParamsLanguage = "gu"
	CaptionBurnParamsLanguageAm   CaptionBurnParamsLanguage = "am"
	CaptionBurnParamsLanguageYi   CaptionBurnParamsLanguage = "yi"
	CaptionBurnParamsLanguageLo   CaptionBurnParamsLanguage = "lo"
	CaptionBurnParamsLanguageUz   CaptionBurnParamsLanguage = "uz"
	CaptionBurnParamsLanguageFo   CaptionBurnParamsLanguage = "fo"
	CaptionBurnParamsLanguageHt   CaptionBurnParamsLanguage = "ht"
	CaptionBurnParamsLanguagePs   CaptionBurnParamsLanguage = "ps"
	CaptionBurnParamsLanguageTk   CaptionBurnParamsLanguage = "tk"
	CaptionBurnParamsLanguageNn   CaptionBurnParamsLanguage = "nn"
	CaptionBurnParamsLanguageMt   CaptionBurnParamsLanguage = "mt"
	CaptionBurnParamsLanguageSa   CaptionBurnParamsLanguage = "sa"
	CaptionBurnParamsLanguageLb   CaptionBurnParamsLanguage = "lb"
	CaptionBurnParamsLanguageMy   CaptionBurnParamsLanguage = "my"
	CaptionBurnParamsLanguageBo   CaptionBurnParamsLanguage = "bo"
	CaptionBurnParamsLanguageTl   CaptionBurnParamsLanguage = "tl"
	CaptionBurnParamsLanguageMg   CaptionBurnParamsLanguage = "mg"
	CaptionBurnParamsLanguageAs   CaptionBurnParamsLanguage = "as"
	CaptionBurnParamsLanguageTt   CaptionBurnParamsLanguage = "tt"
	CaptionBurnParamsLanguageHaw  CaptionBurnParamsLanguage = "haw"
	CaptionBurnParamsLanguageLn   CaptionBurnParamsLanguage = "ln"
	CaptionBurnParamsLanguageHa   CaptionBurnParamsLanguage = "ha"
	CaptionBurnParamsLanguageBa   CaptionBurnParamsLanguage = "ba"
	CaptionBurnParamsLanguageJw   CaptionBurnParamsLanguage = "jw"
	CaptionBurnParamsLanguageSu   CaptionBurnParamsLanguage = "su"
	CaptionBurnParamsLanguageYue  CaptionBurnParamsLanguage = "yue"
)

func NewCaptionBurnParamsLanguageFromString

func NewCaptionBurnParamsLanguageFromString(s string) (CaptionBurnParamsLanguage, error)

func (CaptionBurnParamsLanguage) Ptr

type CaptionBurnParamsPosition

type CaptionBurnParamsPosition string

Vertical position

const (
	CaptionBurnParamsPositionBottom CaptionBurnParamsPosition = "bottom"
	CaptionBurnParamsPositionCenter CaptionBurnParamsPosition = "center"
	CaptionBurnParamsPositionTop    CaptionBurnParamsPosition = "top"
)

func NewCaptionBurnParamsPositionFromString

func NewCaptionBurnParamsPositionFromString(s string) (CaptionBurnParamsPosition, error)

func (CaptionBurnParamsPosition) Ptr

type CaptionsAnimateParams

type CaptionsAnimateParams struct {
	// Built-in caption style preset
	Preset *CaptionsAnimateParamsPreset `json:"preset,omitempty" url:"preset,omitempty"`
	// Language hint. Supported: en.
	Language *CaptionsAnimateParamsLanguage `json:"language,omitempty" url:"language,omitempty"`
	// Speed-vs-accuracy tradeoff. fast=base.en (~3× faster). balanced=small.en (default). accurate=large-v3-turbo (~3× slower, ~3-4% WER).
	Mode *CaptionsAnimateParamsMode `json:"mode,omitempty" url:"mode,omitempty"`
	// Style overrides layered on top of `preset`. Any field you set wins; everything you omit keeps the preset's value.
	Style        *CaptionsAnimateParamsStyle       `json:"style,omitempty" url:"style,omitempty"`
	CaptionData  *bool                             `json:"captionData,omitempty" url:"captionData,omitempty"`
	AutoEmphasis *bool                             `json:"autoEmphasis,omitempty" url:"autoEmphasis,omitempty"`
	TranslateTo  *CaptionsAnimateParamsTranslateTo `json:"translateTo,omitempty" url:"translateTo,omitempty"`
	// contains filtered or unexported fields
}

Params of the captions.animate job.

func (*CaptionsAnimateParams) GetAutoEmphasis

func (c *CaptionsAnimateParams) GetAutoEmphasis() *bool

func (*CaptionsAnimateParams) GetCaptionData

func (c *CaptionsAnimateParams) GetCaptionData() *bool

func (*CaptionsAnimateParams) GetExtraProperties

func (c *CaptionsAnimateParams) GetExtraProperties() map[string]interface{}

func (*CaptionsAnimateParams) GetLanguage

func (*CaptionsAnimateParams) GetMode

func (*CaptionsAnimateParams) GetPreset

func (*CaptionsAnimateParams) GetStyle

func (*CaptionsAnimateParams) GetTranslateTo

func (*CaptionsAnimateParams) MarshalJSON

func (c *CaptionsAnimateParams) MarshalJSON() ([]byte, error)

func (*CaptionsAnimateParams) SetAutoEmphasis

func (c *CaptionsAnimateParams) SetAutoEmphasis(autoEmphasis *bool)

SetAutoEmphasis sets the AutoEmphasis field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParams) SetCaptionData

func (c *CaptionsAnimateParams) SetCaptionData(captionData *bool)

SetCaptionData sets the CaptionData field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParams) SetLanguage

func (c *CaptionsAnimateParams) SetLanguage(language *CaptionsAnimateParamsLanguage)

SetLanguage sets the Language field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParams) SetMode

SetMode sets the Mode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParams) SetPreset

func (c *CaptionsAnimateParams) SetPreset(preset *CaptionsAnimateParamsPreset)

SetPreset sets the Preset field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParams) SetStyle

SetStyle sets the Style field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParams) SetTranslateTo

func (c *CaptionsAnimateParams) SetTranslateTo(translateTo *CaptionsAnimateParamsTranslateTo)

SetTranslateTo sets the TranslateTo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParams) String

func (c *CaptionsAnimateParams) String() string

func (*CaptionsAnimateParams) UnmarshalJSON

func (c *CaptionsAnimateParams) UnmarshalJSON(data []byte) error

type CaptionsAnimateParamsLanguage

type CaptionsAnimateParamsLanguage string

Language hint. Supported: en.

const (
	CaptionsAnimateParamsLanguageEn CaptionsAnimateParamsLanguage = "en"
)

func NewCaptionsAnimateParamsLanguageFromString

func NewCaptionsAnimateParamsLanguageFromString(s string) (CaptionsAnimateParamsLanguage, error)

func (CaptionsAnimateParamsLanguage) Ptr

type CaptionsAnimateParamsMode

type CaptionsAnimateParamsMode string

Speed-vs-accuracy tradeoff. fast=base.en (~3× faster). balanced=small.en (default). accurate=large-v3-turbo (~3× slower, ~3-4% WER).

const (
	CaptionsAnimateParamsModeFast     CaptionsAnimateParamsMode = "fast"
	CaptionsAnimateParamsModeBalanced CaptionsAnimateParamsMode = "balanced"
	CaptionsAnimateParamsModeAccurate CaptionsAnimateParamsMode = "accurate"
)

func NewCaptionsAnimateParamsModeFromString

func NewCaptionsAnimateParamsModeFromString(s string) (CaptionsAnimateParamsMode, error)

func (CaptionsAnimateParamsMode) Ptr

type CaptionsAnimateParamsPreset

type CaptionsAnimateParamsPreset string

Built-in caption style preset

const (
	CaptionsAnimateParamsPresetHormozi       CaptionsAnimateParamsPreset = "hormozi"
	CaptionsAnimateParamsPresetMrbeast       CaptionsAnimateParamsPreset = "mrbeast"
	CaptionsAnimateParamsPresetTiktok        CaptionsAnimateParamsPreset = "tiktok"
	CaptionsAnimateParamsPresetPill          CaptionsAnimateParamsPreset = "pill"
	CaptionsAnimateParamsPresetKaraoke       CaptionsAnimateParamsPreset = "karaoke"
	CaptionsAnimateParamsPresetWordPop       CaptionsAnimateParamsPreset = "word-pop"
	CaptionsAnimateParamsPresetMinimal       CaptionsAnimateParamsPreset = "minimal"
	CaptionsAnimateParamsPresetSubtitleBlock CaptionsAnimateParamsPreset = "subtitle-block"
	CaptionsAnimateParamsPresetNeon          CaptionsAnimateParamsPreset = "neon"
	CaptionsAnimateParamsPresetGold          CaptionsAnimateParamsPreset = "gold"
	CaptionsAnimateParamsPresetReveal        CaptionsAnimateParamsPreset = "reveal"
)

func NewCaptionsAnimateParamsPresetFromString

func NewCaptionsAnimateParamsPresetFromString(s string) (CaptionsAnimateParamsPreset, error)

func (CaptionsAnimateParamsPreset) Ptr

type CaptionsAnimateParamsStyle

type CaptionsAnimateParamsStyle struct {
	// Font family, or a CSS fallback stack. Any Google Fonts family works by name. Bundled and instant: Inter, Bebas Neue, Anton, Montserrat, Poppins, Roboto, Oswald. A stack falls through in CSS order, so "Lato, Inter, sans-serif" tries each in turn. Supplying the `font` job input renders in that file instead.
	Font        *string                                `json:"font,omitempty" url:"font,omitempty"`
	FontSize    *int                                   `json:"fontSize,omitempty" url:"fontSize,omitempty"`
	Case        *CaptionsAnimateParamsStyleCase        `json:"case,omitempty" url:"case,omitempty"`
	Fill        *string                                `json:"fill,omitempty" url:"fill,omitempty"`
	Stroke      *CaptionsAnimateParamsStyleStroke      `json:"stroke,omitempty" url:"stroke,omitempty"`
	Shadow      *float64                               `json:"shadow,omitempty" url:"shadow,omitempty"`
	Bold        *bool                                  `json:"bold,omitempty" url:"bold,omitempty"`
	MarginV     *int                                   `json:"marginV,omitempty" url:"marginV,omitempty"`
	Highlight   *CaptionsAnimateParamsStyleHighlight   `json:"highlight,omitempty" url:"highlight,omitempty"`
	Punctuation *CaptionsAnimateParamsStylePunctuation `json:"punctuation,omitempty" url:"punctuation,omitempty"`
	Position    *CaptionsAnimateParamsStylePosition    `json:"position,omitempty" url:"position,omitempty"`
	Emphasis    *CaptionsAnimateParamsStyleEmphasis    `json:"emphasis,omitempty" url:"emphasis,omitempty"`
	Entrance    *CaptionsAnimateParamsStyleEntrance    `json:"entrance,omitempty" url:"entrance,omitempty"`
	Layout      *CaptionsAnimateParamsStyleLayout      `json:"layout,omitempty" url:"layout,omitempty"`
	// contains filtered or unexported fields
}

Style overrides layered on top of `preset`. Any field you set wins; everything you omit keeps the preset's value.

func (*CaptionsAnimateParamsStyle) GetBold

func (c *CaptionsAnimateParamsStyle) GetBold() *bool

func (*CaptionsAnimateParamsStyle) GetCase

func (*CaptionsAnimateParamsStyle) GetEmphasis

func (*CaptionsAnimateParamsStyle) GetEntrance

func (*CaptionsAnimateParamsStyle) GetExtraProperties

func (c *CaptionsAnimateParamsStyle) GetExtraProperties() map[string]interface{}

func (*CaptionsAnimateParamsStyle) GetFill

func (c *CaptionsAnimateParamsStyle) GetFill() *string

func (*CaptionsAnimateParamsStyle) GetFont

func (c *CaptionsAnimateParamsStyle) GetFont() *string

func (*CaptionsAnimateParamsStyle) GetFontSize

func (c *CaptionsAnimateParamsStyle) GetFontSize() *int

func (*CaptionsAnimateParamsStyle) GetHighlight

func (*CaptionsAnimateParamsStyle) GetLayout

func (*CaptionsAnimateParamsStyle) GetMarginV

func (c *CaptionsAnimateParamsStyle) GetMarginV() *int

func (*CaptionsAnimateParamsStyle) GetPosition

func (*CaptionsAnimateParamsStyle) GetPunctuation

func (*CaptionsAnimateParamsStyle) GetShadow

func (c *CaptionsAnimateParamsStyle) GetShadow() *float64

func (*CaptionsAnimateParamsStyle) GetStroke

func (*CaptionsAnimateParamsStyle) MarshalJSON

func (c *CaptionsAnimateParamsStyle) MarshalJSON() ([]byte, error)

func (*CaptionsAnimateParamsStyle) SetBold

func (c *CaptionsAnimateParamsStyle) SetBold(bold *bool)

SetBold sets the Bold field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetCase

SetCase sets the Case field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetEmphasis

SetEmphasis sets the Emphasis field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetEntrance

SetEntrance sets the Entrance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetFill

func (c *CaptionsAnimateParamsStyle) SetFill(fill *string)

SetFill sets the Fill field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetFont

func (c *CaptionsAnimateParamsStyle) SetFont(font *string)

SetFont sets the Font field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetFontSize

func (c *CaptionsAnimateParamsStyle) SetFontSize(fontSize *int)

SetFontSize sets the FontSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetHighlight

SetHighlight sets the Highlight field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetLayout

SetLayout sets the Layout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetMarginV

func (c *CaptionsAnimateParamsStyle) SetMarginV(marginV *int)

SetMarginV sets the MarginV field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetPosition

SetPosition sets the Position field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetPunctuation

func (c *CaptionsAnimateParamsStyle) SetPunctuation(punctuation *CaptionsAnimateParamsStylePunctuation)

SetPunctuation sets the Punctuation field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetShadow

func (c *CaptionsAnimateParamsStyle) SetShadow(shadow *float64)

SetShadow sets the Shadow field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) SetStroke

SetStroke sets the Stroke field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyle) String

func (c *CaptionsAnimateParamsStyle) String() string

func (*CaptionsAnimateParamsStyle) UnmarshalJSON

func (c *CaptionsAnimateParamsStyle) UnmarshalJSON(data []byte) error

type CaptionsAnimateParamsStyleCase

type CaptionsAnimateParamsStyleCase string
const (
	CaptionsAnimateParamsStyleCaseUpper  CaptionsAnimateParamsStyleCase = "upper"
	CaptionsAnimateParamsStyleCaseNormal CaptionsAnimateParamsStyleCase = "normal"
)

func NewCaptionsAnimateParamsStyleCaseFromString

func NewCaptionsAnimateParamsStyleCaseFromString(s string) (CaptionsAnimateParamsStyleCase, error)

func (CaptionsAnimateParamsStyleCase) Ptr

type CaptionsAnimateParamsStyleEmphasis

type CaptionsAnimateParamsStyleEmphasis struct {
	Color string `json:"color" url:"color"`
	// contains filtered or unexported fields
}

func (*CaptionsAnimateParamsStyleEmphasis) GetColor

func (*CaptionsAnimateParamsStyleEmphasis) GetExtraProperties

func (c *CaptionsAnimateParamsStyleEmphasis) GetExtraProperties() map[string]interface{}

func (*CaptionsAnimateParamsStyleEmphasis) MarshalJSON

func (c *CaptionsAnimateParamsStyleEmphasis) MarshalJSON() ([]byte, error)

func (*CaptionsAnimateParamsStyleEmphasis) SetColor

func (c *CaptionsAnimateParamsStyleEmphasis) SetColor(color string)

SetColor sets the Color field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyleEmphasis) String

func (*CaptionsAnimateParamsStyleEmphasis) UnmarshalJSON

func (c *CaptionsAnimateParamsStyleEmphasis) UnmarshalJSON(data []byte) error

type CaptionsAnimateParamsStyleEntrance

type CaptionsAnimateParamsStyleEntrance string
const (
	CaptionsAnimateParamsStyleEntranceFade   CaptionsAnimateParamsStyleEntrance = "fade"
	CaptionsAnimateParamsStyleEntrancePop    CaptionsAnimateParamsStyleEntrance = "pop"
	CaptionsAnimateParamsStyleEntranceBounce CaptionsAnimateParamsStyleEntrance = "bounce"
)

func NewCaptionsAnimateParamsStyleEntranceFromString

func NewCaptionsAnimateParamsStyleEntranceFromString(s string) (CaptionsAnimateParamsStyleEntrance, error)

func (CaptionsAnimateParamsStyleEntrance) Ptr

type CaptionsAnimateParamsStyleHighlight

type CaptionsAnimateParamsStyleHighlight struct {
	Mode      *CaptionsAnimateParamsStyleHighlightMode `json:"mode,omitempty" url:"mode,omitempty"`
	Color     *string                                  `json:"color,omitempty" url:"color,omitempty"`
	TextColor *string                                  `json:"textColor,omitempty" url:"textColor,omitempty"`
	Scale     *float64                                 `json:"scale,omitempty" url:"scale,omitempty"`
	// contains filtered or unexported fields
}

func (*CaptionsAnimateParamsStyleHighlight) GetColor

func (*CaptionsAnimateParamsStyleHighlight) GetExtraProperties

func (c *CaptionsAnimateParamsStyleHighlight) GetExtraProperties() map[string]interface{}

func (*CaptionsAnimateParamsStyleHighlight) GetMode

func (*CaptionsAnimateParamsStyleHighlight) GetScale

func (*CaptionsAnimateParamsStyleHighlight) GetTextColor

func (c *CaptionsAnimateParamsStyleHighlight) GetTextColor() *string

func (*CaptionsAnimateParamsStyleHighlight) MarshalJSON

func (c *CaptionsAnimateParamsStyleHighlight) MarshalJSON() ([]byte, error)

func (*CaptionsAnimateParamsStyleHighlight) SetColor

func (c *CaptionsAnimateParamsStyleHighlight) SetColor(color *string)

SetColor sets the Color field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyleHighlight) SetMode

SetMode sets the Mode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyleHighlight) SetScale

func (c *CaptionsAnimateParamsStyleHighlight) SetScale(scale *float64)

SetScale sets the Scale field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyleHighlight) SetTextColor

func (c *CaptionsAnimateParamsStyleHighlight) SetTextColor(textColor *string)

SetTextColor sets the TextColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyleHighlight) String

func (*CaptionsAnimateParamsStyleHighlight) UnmarshalJSON

func (c *CaptionsAnimateParamsStyleHighlight) UnmarshalJSON(data []byte) error

type CaptionsAnimateParamsStyleHighlightMode

type CaptionsAnimateParamsStyleHighlightMode string
const (
	CaptionsAnimateParamsStyleHighlightModeColor CaptionsAnimateParamsStyleHighlightMode = "color"
	CaptionsAnimateParamsStyleHighlightModeBox   CaptionsAnimateParamsStyleHighlightMode = "box"
)

func NewCaptionsAnimateParamsStyleHighlightModeFromString

func NewCaptionsAnimateParamsStyleHighlightModeFromString(s string) (CaptionsAnimateParamsStyleHighlightMode, error)

func (CaptionsAnimateParamsStyleHighlightMode) Ptr

type CaptionsAnimateParamsStyleLayout

type CaptionsAnimateParamsStyleLayout string
const (
	CaptionsAnimateParamsStyleLayoutWord   CaptionsAnimateParamsStyleLayout = "word"
	CaptionsAnimateParamsStyleLayoutPhrase CaptionsAnimateParamsStyleLayout = "phrase"
)

func NewCaptionsAnimateParamsStyleLayoutFromString

func NewCaptionsAnimateParamsStyleLayoutFromString(s string) (CaptionsAnimateParamsStyleLayout, error)

func (CaptionsAnimateParamsStyleLayout) Ptr

type CaptionsAnimateParamsStylePosition

type CaptionsAnimateParamsStylePosition string
const (
	CaptionsAnimateParamsStylePositionTop    CaptionsAnimateParamsStylePosition = "top"
	CaptionsAnimateParamsStylePositionCenter CaptionsAnimateParamsStylePosition = "center"
	CaptionsAnimateParamsStylePositionBottom CaptionsAnimateParamsStylePosition = "bottom"
)

func NewCaptionsAnimateParamsStylePositionFromString

func NewCaptionsAnimateParamsStylePositionFromString(s string) (CaptionsAnimateParamsStylePosition, error)

func (CaptionsAnimateParamsStylePosition) Ptr

type CaptionsAnimateParamsStylePunctuation

type CaptionsAnimateParamsStylePunctuation string
const (
	CaptionsAnimateParamsStylePunctuationStrip    CaptionsAnimateParamsStylePunctuation = "strip"
	CaptionsAnimateParamsStylePunctuationEmphatic CaptionsAnimateParamsStylePunctuation = "emphatic"
	CaptionsAnimateParamsStylePunctuationKeep     CaptionsAnimateParamsStylePunctuation = "keep"
)

func NewCaptionsAnimateParamsStylePunctuationFromString

func NewCaptionsAnimateParamsStylePunctuationFromString(s string) (CaptionsAnimateParamsStylePunctuation, error)

func (CaptionsAnimateParamsStylePunctuation) Ptr

type CaptionsAnimateParamsStyleStroke

type CaptionsAnimateParamsStyleStroke struct {
	Color string  `json:"color" url:"color"`
	Width float64 `json:"width" url:"width"`
	// contains filtered or unexported fields
}

func (*CaptionsAnimateParamsStyleStroke) GetColor

func (*CaptionsAnimateParamsStyleStroke) GetExtraProperties

func (c *CaptionsAnimateParamsStyleStroke) GetExtraProperties() map[string]interface{}

func (*CaptionsAnimateParamsStyleStroke) GetWidth

func (*CaptionsAnimateParamsStyleStroke) MarshalJSON

func (c *CaptionsAnimateParamsStyleStroke) MarshalJSON() ([]byte, error)

func (*CaptionsAnimateParamsStyleStroke) SetColor

func (c *CaptionsAnimateParamsStyleStroke) SetColor(color string)

SetColor sets the Color field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyleStroke) SetWidth

func (c *CaptionsAnimateParamsStyleStroke) SetWidth(width float64)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CaptionsAnimateParamsStyleStroke) String

func (*CaptionsAnimateParamsStyleStroke) UnmarshalJSON

func (c *CaptionsAnimateParamsStyleStroke) UnmarshalJSON(data []byte) error

type CaptionsAnimateParamsTranslateTo

type CaptionsAnimateParamsTranslateTo string
const (
	CaptionsAnimateParamsTranslateToEs CaptionsAnimateParamsTranslateTo = "es"
	CaptionsAnimateParamsTranslateToFr CaptionsAnimateParamsTranslateTo = "fr"
	CaptionsAnimateParamsTranslateToDe CaptionsAnimateParamsTranslateTo = "de"
	CaptionsAnimateParamsTranslateToPt CaptionsAnimateParamsTranslateTo = "pt"
	CaptionsAnimateParamsTranslateToIt CaptionsAnimateParamsTranslateTo = "it"
	CaptionsAnimateParamsTranslateToNl CaptionsAnimateParamsTranslateTo = "nl"
)

func NewCaptionsAnimateParamsTranslateToFromString

func NewCaptionsAnimateParamsTranslateToFromString(s string) (CaptionsAnimateParamsTranslateTo, error)

func (CaptionsAnimateParamsTranslateTo) Ptr

type CompressTargetParams

type CompressTargetParams struct {
	// Delivery posture: "web" (small, modern, sRGB, stripped) or "archive" (lossless, preserve everything). Omit for raw defaults.
	For *CompressTargetParamsFor `json:"for,omitempty" url:"for,omitempty"`
	// Target quality/size: "visually-lossless" | "balanced" | "efficient", a 1-100 quality number, or { quality } | { maxBytes } | { maxSize } | { bitrate }.
	Target *CompressTargetParamsTarget `json:"target,omitempty" url:"target,omitempty"`
	// Decode reach the output must guarantee: "modern" (~90%, best efficiency), "broad" (~99%, default), "legacy" (~100%, oldest decoders).
	Compatibility *CompressTargetParamsCompatibility `json:"compatibility,omitempty" url:"compatibility,omitempty"`
	// Output codec, or 'auto' to pick the best one allowed by compatibility.
	Codec *CompressTargetParamsCodec `json:"codec,omitempty" url:"codec,omitempty"`
	// Cap the longest edge — a pixel value or a rung like "1080p". null = no cap.
	MaxResolution *CompressTargetParamsMaxResolution `json:"maxResolution,omitempty" url:"maxResolution,omitempty"`
	// Preserve the source gamut, or convert to sRGB for web display.
	Colorspace *CompressTargetParamsColorspace `json:"colorspace,omitempty" url:"colorspace,omitempty"`
	// Alpha: "preserve", "flatten" (onto white), or a "#RRGGBB" fill color.
	Alpha *CompressTargetParamsAlpha `json:"alpha,omitempty" url:"alpha,omitempty"`
	// Metadata: "all" (keep everything), "colorOnly" (strip EXIF/GPS; ICC preservation is best-effort), "none" (strip all).
	Metadata *CompressTargetParamsMetadata `json:"metadata,omitempty" url:"metadata,omitempty"`
	// Encode effort — trades speed for compression.
	Effort *CompressTargetParamsEffort `json:"effort,omitempty" url:"effort,omitempty"`
	// Re-encode even if the input already meets the target.
	ForceReencode *bool `json:"forceReencode,omitempty" url:"forceReencode,omitempty"`
	// Return a predicted result (size, quality, cost) without encoding.
	DryRun *bool `json:"dryRun,omitempty" url:"dryRun,omitempty"`
	// Video stream handling: whether soft subtitle tracks survive the encode, and which audio tracks are kept.
	Video *CompressTargetParamsVideo `json:"video,omitempty" url:"video,omitempty"`
	// Audio handling: an optional integrated-loudness target, and whether to keep or downmix the channel layout.
	Audio *CompressTargetParamsAudio `json:"audio,omitempty" url:"audio,omitempty"`
	// Expert overrides for the quality search: which metric verifies the result, and a hard quality floor it must never fall below.
	Tuning *CompressTargetParamsTuning `json:"tuning,omitempty" url:"tuning,omitempty"`
	// Max execution time in seconds (defaults to your plan's max job timeout).
	Timeout *int `json:"timeout,omitempty" url:"timeout,omitempty"`
	// contains filtered or unexported fields
}

Params of the compress.target job.

func (*CompressTargetParams) GetAlpha

func (*CompressTargetParams) GetAudio

func (*CompressTargetParams) GetCodec

func (*CompressTargetParams) GetColorspace

func (*CompressTargetParams) GetCompatibility

func (*CompressTargetParams) GetDryRun

func (c *CompressTargetParams) GetDryRun() *bool

func (*CompressTargetParams) GetEffort

func (*CompressTargetParams) GetExtraProperties

func (c *CompressTargetParams) GetExtraProperties() map[string]interface{}

func (*CompressTargetParams) GetFor

func (*CompressTargetParams) GetForceReencode

func (c *CompressTargetParams) GetForceReencode() *bool

func (*CompressTargetParams) GetMaxResolution

func (*CompressTargetParams) GetMetadata

func (*CompressTargetParams) GetTarget

func (*CompressTargetParams) GetTimeout

func (c *CompressTargetParams) GetTimeout() *int

func (*CompressTargetParams) GetTuning

func (*CompressTargetParams) GetVideo

func (*CompressTargetParams) MarshalJSON

func (c *CompressTargetParams) MarshalJSON() ([]byte, error)

func (*CompressTargetParams) SetAlpha

func (c *CompressTargetParams) SetAlpha(alpha *CompressTargetParamsAlpha)

SetAlpha sets the Alpha field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetAudio

func (c *CompressTargetParams) SetAudio(audio *CompressTargetParamsAudio)

SetAudio sets the Audio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetCodec

func (c *CompressTargetParams) SetCodec(codec *CompressTargetParamsCodec)

SetCodec sets the Codec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetColorspace

func (c *CompressTargetParams) SetColorspace(colorspace *CompressTargetParamsColorspace)

SetColorspace sets the Colorspace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetCompatibility

func (c *CompressTargetParams) SetCompatibility(compatibility *CompressTargetParamsCompatibility)

SetCompatibility sets the Compatibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetDryRun

func (c *CompressTargetParams) SetDryRun(dryRun *bool)

SetDryRun sets the DryRun field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetEffort

func (c *CompressTargetParams) SetEffort(effort *CompressTargetParamsEffort)

SetEffort sets the Effort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetFor

SetFor sets the For field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetForceReencode

func (c *CompressTargetParams) SetForceReencode(forceReencode *bool)

SetForceReencode sets the ForceReencode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetMaxResolution

func (c *CompressTargetParams) SetMaxResolution(maxResolution *CompressTargetParamsMaxResolution)

SetMaxResolution sets the MaxResolution field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetMetadata

func (c *CompressTargetParams) SetMetadata(metadata *CompressTargetParamsMetadata)

SetMetadata sets the Metadata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetTarget

func (c *CompressTargetParams) SetTarget(target *CompressTargetParamsTarget)

SetTarget sets the Target field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetTimeout

func (c *CompressTargetParams) SetTimeout(timeout *int)

SetTimeout sets the Timeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetTuning

func (c *CompressTargetParams) SetTuning(tuning *CompressTargetParamsTuning)

SetTuning sets the Tuning field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) SetVideo

func (c *CompressTargetParams) SetVideo(video *CompressTargetParamsVideo)

SetVideo sets the Video field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParams) String

func (c *CompressTargetParams) String() string

func (*CompressTargetParams) UnmarshalJSON

func (c *CompressTargetParams) UnmarshalJSON(data []byte) error

type CompressTargetParamsAlpha

type CompressTargetParamsAlpha struct {
	CompressTargetParamsAlphaZero CompressTargetParamsAlphaZero
	String                        string
	// contains filtered or unexported fields
}

Alpha: "preserve", "flatten" (onto white), or a "#RRGGBB" fill color.

func (*CompressTargetParamsAlpha) Accept

func (*CompressTargetParamsAlpha) GetCompressTargetParamsAlphaZero

func (c *CompressTargetParamsAlpha) GetCompressTargetParamsAlphaZero() CompressTargetParamsAlphaZero

func (*CompressTargetParamsAlpha) GetString

func (c *CompressTargetParamsAlpha) GetString() string

func (CompressTargetParamsAlpha) MarshalJSON

func (c CompressTargetParamsAlpha) MarshalJSON() ([]byte, error)

func (*CompressTargetParamsAlpha) UnmarshalJSON

func (c *CompressTargetParamsAlpha) UnmarshalJSON(data []byte) error

type CompressTargetParamsAlphaVisitor

type CompressTargetParamsAlphaVisitor interface {
	VisitCompressTargetParamsAlphaZero(CompressTargetParamsAlphaZero) error
	VisitString(string) error
}

type CompressTargetParamsAlphaZero

type CompressTargetParamsAlphaZero string
const (
	CompressTargetParamsAlphaZeroPreserve CompressTargetParamsAlphaZero = "preserve"
	CompressTargetParamsAlphaZeroFlatten  CompressTargetParamsAlphaZero = "flatten"
)

func NewCompressTargetParamsAlphaZeroFromString

func NewCompressTargetParamsAlphaZeroFromString(s string) (CompressTargetParamsAlphaZero, error)

func (CompressTargetParamsAlphaZero) Ptr

type CompressTargetParamsAudio

type CompressTargetParamsAudio struct {
	// Normalize to this integrated LUFS target (e.g. -14). null = off.
	LoudnessLufs *float64 `json:"loudnessLufs,omitempty" url:"loudnessLufs,omitempty"`
	// Keep the source channel layout, or downmix.
	Channels *CompressTargetParamsAudioChannels `json:"channels,omitempty" url:"channels,omitempty"`
	// contains filtered or unexported fields
}

Audio handling: an optional integrated-loudness target, and whether to keep or downmix the channel layout.

func (*CompressTargetParamsAudio) GetChannels

func (*CompressTargetParamsAudio) GetExtraProperties

func (c *CompressTargetParamsAudio) GetExtraProperties() map[string]interface{}

func (*CompressTargetParamsAudio) GetLoudnessLufs

func (c *CompressTargetParamsAudio) GetLoudnessLufs() *float64

func (*CompressTargetParamsAudio) MarshalJSON

func (c *CompressTargetParamsAudio) MarshalJSON() ([]byte, error)

func (*CompressTargetParamsAudio) SetChannels

SetChannels sets the Channels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParamsAudio) SetLoudnessLufs

func (c *CompressTargetParamsAudio) SetLoudnessLufs(loudnessLufs *float64)

SetLoudnessLufs sets the LoudnessLufs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParamsAudio) String

func (c *CompressTargetParamsAudio) String() string

func (*CompressTargetParamsAudio) UnmarshalJSON

func (c *CompressTargetParamsAudio) UnmarshalJSON(data []byte) error

type CompressTargetParamsAudioChannels

type CompressTargetParamsAudioChannels string

Keep the source channel layout, or downmix.

const (
	CompressTargetParamsAudioChannelsPreserve CompressTargetParamsAudioChannels = "preserve"
	CompressTargetParamsAudioChannelsMono     CompressTargetParamsAudioChannels = "mono"
	CompressTargetParamsAudioChannelsStereo   CompressTargetParamsAudioChannels = "stereo"
)

func NewCompressTargetParamsAudioChannelsFromString

func NewCompressTargetParamsAudioChannelsFromString(s string) (CompressTargetParamsAudioChannels, error)

func (CompressTargetParamsAudioChannels) Ptr

type CompressTargetParamsCodec

type CompressTargetParamsCodec string

Output codec, or 'auto' to pick the best one allowed by compatibility.

const (
	CompressTargetParamsCodecAuto   CompressTargetParamsCodec = "auto"
	CompressTargetParamsCodecAv1    CompressTargetParamsCodec = "av1"
	CompressTargetParamsCodecHevc   CompressTargetParamsCodec = "hevc"
	CompressTargetParamsCodecH264   CompressTargetParamsCodec = "h264"
	CompressTargetParamsCodecVp9    CompressTargetParamsCodec = "vp9"
	CompressTargetParamsCodecAvif   CompressTargetParamsCodec = "avif"
	CompressTargetParamsCodecJxl    CompressTargetParamsCodec = "jxl"
	CompressTargetParamsCodecJpegli CompressTargetParamsCodec = "jpegli"
	CompressTargetParamsCodecWebp   CompressTargetParamsCodec = "webp"
	CompressTargetParamsCodecPng    CompressTargetParamsCodec = "png"
	CompressTargetParamsCodecOpus   CompressTargetParamsCodec = "opus"
	CompressTargetParamsCodecAac    CompressTargetParamsCodec = "aac"
	CompressTargetParamsCodecMp3    CompressTargetParamsCodec = "mp3"
	CompressTargetParamsCodecFlac   CompressTargetParamsCodec = "flac"
	CompressTargetParamsCodecAlac   CompressTargetParamsCodec = "alac"
)

func NewCompressTargetParamsCodecFromString

func NewCompressTargetParamsCodecFromString(s string) (CompressTargetParamsCodec, error)

func (CompressTargetParamsCodec) Ptr

type CompressTargetParamsColorspace

type CompressTargetParamsColorspace string

Preserve the source gamut, or convert to sRGB for web display.

const (
	CompressTargetParamsColorspacePreserve CompressTargetParamsColorspace = "preserve"
	CompressTargetParamsColorspaceSrgb     CompressTargetParamsColorspace = "srgb"
)

func NewCompressTargetParamsColorspaceFromString

func NewCompressTargetParamsColorspaceFromString(s string) (CompressTargetParamsColorspace, error)

func (CompressTargetParamsColorspace) Ptr

type CompressTargetParamsCompatibility

type CompressTargetParamsCompatibility string

Decode reach the output must guarantee: "modern" (~90%, best efficiency), "broad" (~99%, default), "legacy" (~100%, oldest decoders).

const (
	CompressTargetParamsCompatibilityModern CompressTargetParamsCompatibility = "modern"
	CompressTargetParamsCompatibilityBroad  CompressTargetParamsCompatibility = "broad"
	CompressTargetParamsCompatibilityLegacy CompressTargetParamsCompatibility = "legacy"
)

func NewCompressTargetParamsCompatibilityFromString

func NewCompressTargetParamsCompatibilityFromString(s string) (CompressTargetParamsCompatibility, error)

func (CompressTargetParamsCompatibility) Ptr

type CompressTargetParamsEffort

type CompressTargetParamsEffort string

Encode effort — trades speed for compression.

const (
	CompressTargetParamsEffortFast     CompressTargetParamsEffort = "fast"
	CompressTargetParamsEffortBalanced CompressTargetParamsEffort = "balanced"
	CompressTargetParamsEffortThorough CompressTargetParamsEffort = "thorough"
)

func NewCompressTargetParamsEffortFromString

func NewCompressTargetParamsEffortFromString(s string) (CompressTargetParamsEffort, error)

func (CompressTargetParamsEffort) Ptr

type CompressTargetParamsFor

type CompressTargetParamsFor string

Delivery posture: "web" (small, modern, sRGB, stripped) or "archive" (lossless, preserve everything). Omit for raw defaults.

const (
	CompressTargetParamsForWeb     CompressTargetParamsFor = "web"
	CompressTargetParamsForArchive CompressTargetParamsFor = "archive"
)

func NewCompressTargetParamsForFromString

func NewCompressTargetParamsForFromString(s string) (CompressTargetParamsFor, error)

func (CompressTargetParamsFor) Ptr

type CompressTargetParamsMaxResolution

type CompressTargetParamsMaxResolution struct {
	Integer                              int
	CompressTargetParamsMaxResolutionOne CompressTargetParamsMaxResolutionOne
	// contains filtered or unexported fields
}

func (*CompressTargetParamsMaxResolution) Accept

func (*CompressTargetParamsMaxResolution) GetCompressTargetParamsMaxResolutionOne

func (c *CompressTargetParamsMaxResolution) GetCompressTargetParamsMaxResolutionOne() CompressTargetParamsMaxResolutionOne

func (*CompressTargetParamsMaxResolution) GetInteger

func (c *CompressTargetParamsMaxResolution) GetInteger() int

func (CompressTargetParamsMaxResolution) MarshalJSON

func (c CompressTargetParamsMaxResolution) MarshalJSON() ([]byte, error)

func (*CompressTargetParamsMaxResolution) UnmarshalJSON

func (c *CompressTargetParamsMaxResolution) UnmarshalJSON(data []byte) error

type CompressTargetParamsMaxResolutionOne

type CompressTargetParamsMaxResolutionOne string
const (
	CompressTargetParamsMaxResolutionOneFourThousandThreeHundredTwentyP CompressTargetParamsMaxResolutionOne = "4320p"
	CompressTargetParamsMaxResolutionOneTwoThousandOneHundredSixtyP     CompressTargetParamsMaxResolutionOne = "2160p"
	CompressTargetParamsMaxResolutionOneOneThousandFourHundredFortyP    CompressTargetParamsMaxResolutionOne = "1440p"
	CompressTargetParamsMaxResolutionOneOneThousandEightyP              CompressTargetParamsMaxResolutionOne = "1080p"
	CompressTargetParamsMaxResolutionOneSevenHundredTwentyP             CompressTargetParamsMaxResolutionOne = "720p"
	CompressTargetParamsMaxResolutionOneFourHundredEightyP              CompressTargetParamsMaxResolutionOne = "480p"
	CompressTargetParamsMaxResolutionOneThreeHundredSixtyP              CompressTargetParamsMaxResolutionOne = "360p"
)

func NewCompressTargetParamsMaxResolutionOneFromString

func NewCompressTargetParamsMaxResolutionOneFromString(s string) (CompressTargetParamsMaxResolutionOne, error)

func (CompressTargetParamsMaxResolutionOne) Ptr

type CompressTargetParamsMaxResolutionVisitor

type CompressTargetParamsMaxResolutionVisitor interface {
	VisitInteger(int) error
	VisitCompressTargetParamsMaxResolutionOne(CompressTargetParamsMaxResolutionOne) error
}

type CompressTargetParamsMetadata

type CompressTargetParamsMetadata string

Metadata: "all" (keep everything), "colorOnly" (strip EXIF/GPS; ICC preservation is best-effort), "none" (strip all).

const (
	CompressTargetParamsMetadataAll       CompressTargetParamsMetadata = "all"
	CompressTargetParamsMetadataColorOnly CompressTargetParamsMetadata = "colorOnly"
	CompressTargetParamsMetadataNone      CompressTargetParamsMetadata = "none"
)

func NewCompressTargetParamsMetadataFromString

func NewCompressTargetParamsMetadataFromString(s string) (CompressTargetParamsMetadata, error)

func (CompressTargetParamsMetadata) Ptr

type CompressTargetParamsTarget

type CompressTargetParamsTarget struct {
	CompressTargetParamsTargetZero     CompressTargetParamsTargetZero
	Integer                            int
	CompressTargetParamsTargetQuality  *CompressTargetParamsTargetQuality
	CompressTargetParamsTargetMaxBytes *CompressTargetParamsTargetMaxBytes
	CompressTargetParamsTargetMaxSize  *CompressTargetParamsTargetMaxSize
	CompressTargetParamsTargetBitrate  *CompressTargetParamsTargetBitrate
	// contains filtered or unexported fields
}

Target quality/size: "visually-lossless" | "balanced" | "efficient", a 1-100 quality number, or { quality } | { maxBytes } | { maxSize } | { bitrate }.

func (*CompressTargetParamsTarget) Accept

func (*CompressTargetParamsTarget) GetCompressTargetParamsTargetBitrate

func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetBitrate() *CompressTargetParamsTargetBitrate

func (*CompressTargetParamsTarget) GetCompressTargetParamsTargetMaxBytes

func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetMaxBytes() *CompressTargetParamsTargetMaxBytes

func (*CompressTargetParamsTarget) GetCompressTargetParamsTargetMaxSize

func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetMaxSize() *CompressTargetParamsTargetMaxSize

func (*CompressTargetParamsTarget) GetCompressTargetParamsTargetQuality

func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetQuality() *CompressTargetParamsTargetQuality

func (*CompressTargetParamsTarget) GetCompressTargetParamsTargetZero

func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetZero() CompressTargetParamsTargetZero

func (*CompressTargetParamsTarget) GetInteger

func (c *CompressTargetParamsTarget) GetInteger() int

func (CompressTargetParamsTarget) MarshalJSON

func (c CompressTargetParamsTarget) MarshalJSON() ([]byte, error)

func (*CompressTargetParamsTarget) UnmarshalJSON

func (c *CompressTargetParamsTarget) UnmarshalJSON(data []byte) error

type CompressTargetParamsTargetBitrate

type CompressTargetParamsTargetBitrate struct {
	Bitrate int `json:"bitrate" url:"bitrate"`
	// contains filtered or unexported fields
}

func (*CompressTargetParamsTargetBitrate) GetBitrate

func (c *CompressTargetParamsTargetBitrate) GetBitrate() int

func (*CompressTargetParamsTargetBitrate) GetExtraProperties

func (c *CompressTargetParamsTargetBitrate) GetExtraProperties() map[string]interface{}

func (*CompressTargetParamsTargetBitrate) MarshalJSON

func (c *CompressTargetParamsTargetBitrate) MarshalJSON() ([]byte, error)

func (*CompressTargetParamsTargetBitrate) SetBitrate

func (c *CompressTargetParamsTargetBitrate) SetBitrate(bitrate int)

SetBitrate sets the Bitrate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParamsTargetBitrate) String

func (*CompressTargetParamsTargetBitrate) UnmarshalJSON

func (c *CompressTargetParamsTargetBitrate) UnmarshalJSON(data []byte) error

type CompressTargetParamsTargetMaxBytes

type CompressTargetParamsTargetMaxBytes struct {
	MaxBytes int `json:"maxBytes" url:"maxBytes"`
	// contains filtered or unexported fields
}

func (*CompressTargetParamsTargetMaxBytes) GetExtraProperties

func (c *CompressTargetParamsTargetMaxBytes) GetExtraProperties() map[string]interface{}

func (*CompressTargetParamsTargetMaxBytes) GetMaxBytes

func (c *CompressTargetParamsTargetMaxBytes) GetMaxBytes() int

func (*CompressTargetParamsTargetMaxBytes) MarshalJSON

func (c *CompressTargetParamsTargetMaxBytes) MarshalJSON() ([]byte, error)

func (*CompressTargetParamsTargetMaxBytes) SetMaxBytes

func (c *CompressTargetParamsTargetMaxBytes) SetMaxBytes(maxBytes int)

SetMaxBytes sets the MaxBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParamsTargetMaxBytes) String

func (*CompressTargetParamsTargetMaxBytes) UnmarshalJSON

func (c *CompressTargetParamsTargetMaxBytes) UnmarshalJSON(data []byte) error

type CompressTargetParamsTargetMaxSize

type CompressTargetParamsTargetMaxSize struct {
	MaxSize string `json:"maxSize" url:"maxSize"`
	// contains filtered or unexported fields
}

func (*CompressTargetParamsTargetMaxSize) GetExtraProperties

func (c *CompressTargetParamsTargetMaxSize) GetExtraProperties() map[string]interface{}

func (*CompressTargetParamsTargetMaxSize) GetMaxSize

func (c *CompressTargetParamsTargetMaxSize) GetMaxSize() string

func (*CompressTargetParamsTargetMaxSize) MarshalJSON

func (c *CompressTargetParamsTargetMaxSize) MarshalJSON() ([]byte, error)

func (*CompressTargetParamsTargetMaxSize) SetMaxSize

func (c *CompressTargetParamsTargetMaxSize) SetMaxSize(maxSize string)

SetMaxSize sets the MaxSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParamsTargetMaxSize) String

func (*CompressTargetParamsTargetMaxSize) UnmarshalJSON

func (c *CompressTargetParamsTargetMaxSize) UnmarshalJSON(data []byte) error

type CompressTargetParamsTargetQuality

type CompressTargetParamsTargetQuality struct {
	Quality int `json:"quality" url:"quality"`
	// contains filtered or unexported fields
}

func (*CompressTargetParamsTargetQuality) GetExtraProperties

func (c *CompressTargetParamsTargetQuality) GetExtraProperties() map[string]interface{}

func (*CompressTargetParamsTargetQuality) GetQuality

func (c *CompressTargetParamsTargetQuality) GetQuality() int

func (*CompressTargetParamsTargetQuality) MarshalJSON

func (c *CompressTargetParamsTargetQuality) MarshalJSON() ([]byte, error)

func (*CompressTargetParamsTargetQuality) SetQuality

func (c *CompressTargetParamsTargetQuality) SetQuality(quality int)

SetQuality sets the Quality field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParamsTargetQuality) String

func (*CompressTargetParamsTargetQuality) UnmarshalJSON

func (c *CompressTargetParamsTargetQuality) UnmarshalJSON(data []byte) error

type CompressTargetParamsTargetVisitor

type CompressTargetParamsTargetVisitor interface {
	VisitCompressTargetParamsTargetZero(CompressTargetParamsTargetZero) error
	VisitInteger(int) error
	VisitCompressTargetParamsTargetQuality(*CompressTargetParamsTargetQuality) error
	VisitCompressTargetParamsTargetMaxBytes(*CompressTargetParamsTargetMaxBytes) error
	VisitCompressTargetParamsTargetMaxSize(*CompressTargetParamsTargetMaxSize) error
	VisitCompressTargetParamsTargetBitrate(*CompressTargetParamsTargetBitrate) error
}

type CompressTargetParamsTargetZero

type CompressTargetParamsTargetZero string
const (
	CompressTargetParamsTargetZeroVisuallyLossless CompressTargetParamsTargetZero = "visually-lossless"
	CompressTargetParamsTargetZeroBalanced         CompressTargetParamsTargetZero = "balanced"
	CompressTargetParamsTargetZeroEfficient        CompressTargetParamsTargetZero = "efficient"
)

func NewCompressTargetParamsTargetZeroFromString

func NewCompressTargetParamsTargetZeroFromString(s string) (CompressTargetParamsTargetZero, error)

func (CompressTargetParamsTargetZero) Ptr

type CompressTargetParamsTuning

type CompressTargetParamsTuning struct {
	// Override the verification oracle. 'auto' picks per medium.
	Metric *CompressTargetParamsTuningMetric `json:"metric,omitempty" url:"metric,omitempty"`
	// Hard minimum quality the output must never drop below.
	Floor *float64 `json:"floor,omitempty" url:"floor,omitempty"`
	// contains filtered or unexported fields
}

Expert overrides for the quality search: which metric verifies the result, and a hard quality floor it must never fall below.

func (*CompressTargetParamsTuning) GetExtraProperties

func (c *CompressTargetParamsTuning) GetExtraProperties() map[string]interface{}

func (*CompressTargetParamsTuning) GetFloor

func (c *CompressTargetParamsTuning) GetFloor() *float64

func (*CompressTargetParamsTuning) GetMetric

func (*CompressTargetParamsTuning) MarshalJSON

func (c *CompressTargetParamsTuning) MarshalJSON() ([]byte, error)

func (*CompressTargetParamsTuning) SetFloor

func (c *CompressTargetParamsTuning) SetFloor(floor *float64)

SetFloor sets the Floor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParamsTuning) SetMetric

SetMetric sets the Metric field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParamsTuning) String

func (c *CompressTargetParamsTuning) String() string

func (*CompressTargetParamsTuning) UnmarshalJSON

func (c *CompressTargetParamsTuning) UnmarshalJSON(data []byte) error

type CompressTargetParamsTuningMetric

type CompressTargetParamsTuningMetric string

Override the verification oracle. 'auto' picks per medium.

const (
	CompressTargetParamsTuningMetricAuto        CompressTargetParamsTuningMetric = "auto"
	CompressTargetParamsTuningMetricSsimulacra2 CompressTargetParamsTuningMetric = "ssimulacra2"
	CompressTargetParamsTuningMetricVmaf        CompressTargetParamsTuningMetric = "vmaf"
)

func NewCompressTargetParamsTuningMetricFromString

func NewCompressTargetParamsTuningMetricFromString(s string) (CompressTargetParamsTuningMetric, error)

func (CompressTargetParamsTuningMetric) Ptr

type CompressTargetParamsVideo

type CompressTargetParamsVideo struct {
	// Soft subtitle tracks: "strip" (default) or "preserve" (best-effort copy; fails if the output container cannot hold the codec).
	Subtitles *CompressTargetParamsVideoSubtitles `json:"subtitles,omitempty" url:"subtitles,omitempty"`
	// Keep all audio tracks, only the primary, or drop audio entirely.
	AudioTracks *CompressTargetParamsVideoAudioTracks `json:"audioTracks,omitempty" url:"audioTracks,omitempty"`
	// contains filtered or unexported fields
}

Video stream handling: whether soft subtitle tracks survive the encode, and which audio tracks are kept.

func (*CompressTargetParamsVideo) GetAudioTracks

func (*CompressTargetParamsVideo) GetExtraProperties

func (c *CompressTargetParamsVideo) GetExtraProperties() map[string]interface{}

func (*CompressTargetParamsVideo) GetSubtitles

func (*CompressTargetParamsVideo) MarshalJSON

func (c *CompressTargetParamsVideo) MarshalJSON() ([]byte, error)

func (*CompressTargetParamsVideo) SetAudioTracks

func (c *CompressTargetParamsVideo) SetAudioTracks(audioTracks *CompressTargetParamsVideoAudioTracks)

SetAudioTracks sets the AudioTracks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParamsVideo) SetSubtitles

SetSubtitles sets the Subtitles field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CompressTargetParamsVideo) String

func (c *CompressTargetParamsVideo) String() string

func (*CompressTargetParamsVideo) UnmarshalJSON

func (c *CompressTargetParamsVideo) UnmarshalJSON(data []byte) error

type CompressTargetParamsVideoAudioTracks

type CompressTargetParamsVideoAudioTracks string

Keep all audio tracks, only the primary, or drop audio entirely.

const (
	CompressTargetParamsVideoAudioTracksAll     CompressTargetParamsVideoAudioTracks = "all"
	CompressTargetParamsVideoAudioTracksPrimary CompressTargetParamsVideoAudioTracks = "primary"
	CompressTargetParamsVideoAudioTracksNone    CompressTargetParamsVideoAudioTracks = "none"
)

func NewCompressTargetParamsVideoAudioTracksFromString

func NewCompressTargetParamsVideoAudioTracksFromString(s string) (CompressTargetParamsVideoAudioTracks, error)

func (CompressTargetParamsVideoAudioTracks) Ptr

type CompressTargetParamsVideoSubtitles

type CompressTargetParamsVideoSubtitles string

Soft subtitle tracks: "strip" (default) or "preserve" (best-effort copy; fails if the output container cannot hold the codec).

const (
	CompressTargetParamsVideoSubtitlesPreserve CompressTargetParamsVideoSubtitles = "preserve"
	CompressTargetParamsVideoSubtitlesStrip    CompressTargetParamsVideoSubtitles = "strip"
)

func NewCompressTargetParamsVideoSubtitlesFromString

func NewCompressTargetParamsVideoSubtitlesFromString(s string) (CompressTargetParamsVideoSubtitles, error)

func (CompressTargetParamsVideoSubtitles) Ptr

type ConflictError

type ConflictError struct {
	*core.APIError
	Body *ErrorResponse
}

The idempotency key is already bound to another request, or to a job that failed with a retryable error. `error.details.jobId` names that job.

func (*ConflictError) GetBody

func (c *ConflictError) GetBody() *ErrorResponse

func (*ConflictError) MarshalJSON

func (c *ConflictError) MarshalJSON() ([]byte, error)

func (*ConflictError) UnmarshalJSON

func (c *ConflictError) UnmarshalJSON(data []byte) error

func (*ConflictError) Unwrap

func (c *ConflictError) Unwrap() error

type ConnectorField

type ConnectorField struct {
	// Unique within this job type. Use as the form field key: `name` repeats when a discriminated union gives one field several shapes.
	Key string `json:"key" url:"key"`
	// Param key to submit under. Not unique, see `key`.
	Name        string                       `json:"name" url:"name"`
	Label       string                       `json:"label" url:"label"`
	Type        ConnectorFieldType           `json:"type" url:"type"`
	Required    bool                         `json:"required" url:"required"`
	Nullable    *bool                        `json:"nullable,omitempty" url:"nullable,omitempty"`
	Default     any                          `json:"default,omitempty" url:"default,omitempty"`
	Options     []*ConnectorFieldOptionsItem `json:"options,omitempty" url:"options,omitempty"`
	Min         *float64                     `json:"min,omitempty" url:"min,omitempty"`
	Max         *float64                     `json:"max,omitempty" url:"max,omitempty"`
	MinLength   *int                         `json:"minLength,omitempty" url:"minLength,omitempty"`
	MaxLength   *int                         `json:"maxLength,omitempty" url:"maxLength,omitempty"`
	Description *string                      `json:"description,omitempty" url:"description,omitempty"`
	// Example value, for placeholder text
	Example any `json:"example,omitempty" url:"example,omitempty"`
	// Render position; fields are already returned in this order
	Order *int `json:"order,omitempty" url:"order,omitempty"`
	// Render behind an Options or Advanced disclosure
	Advanced *bool `json:"advanced,omitempty" url:"advanced,omitempty"`
	// Present only on a field from one branch of a union. A field with no showWhen is always shown. The same name can appear several times with different conditions when branches declare different bounds.
	ShowWhen *ConnectorFieldShowWhen `json:"showWhen,omitempty" url:"showWhen,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectorField) GetAdvanced

func (c *ConnectorField) GetAdvanced() *bool

func (*ConnectorField) GetDefault

func (c *ConnectorField) GetDefault() any

func (*ConnectorField) GetDescription

func (c *ConnectorField) GetDescription() *string

func (*ConnectorField) GetExample

func (c *ConnectorField) GetExample() any

func (*ConnectorField) GetExtraProperties

func (c *ConnectorField) GetExtraProperties() map[string]interface{}

func (*ConnectorField) GetKey

func (c *ConnectorField) GetKey() string

func (*ConnectorField) GetLabel

func (c *ConnectorField) GetLabel() string

func (*ConnectorField) GetMax

func (c *ConnectorField) GetMax() *float64

func (*ConnectorField) GetMaxLength

func (c *ConnectorField) GetMaxLength() *int

func (*ConnectorField) GetMin

func (c *ConnectorField) GetMin() *float64

func (*ConnectorField) GetMinLength

func (c *ConnectorField) GetMinLength() *int

func (*ConnectorField) GetName

func (c *ConnectorField) GetName() string

func (*ConnectorField) GetNullable

func (c *ConnectorField) GetNullable() *bool

func (*ConnectorField) GetOptions

func (c *ConnectorField) GetOptions() []*ConnectorFieldOptionsItem

func (*ConnectorField) GetOrder

func (c *ConnectorField) GetOrder() *int

func (*ConnectorField) GetRequired

func (c *ConnectorField) GetRequired() bool

func (*ConnectorField) GetShowWhen

func (c *ConnectorField) GetShowWhen() *ConnectorFieldShowWhen

func (*ConnectorField) GetType

func (c *ConnectorField) GetType() ConnectorFieldType

func (*ConnectorField) MarshalJSON

func (c *ConnectorField) MarshalJSON() ([]byte, error)

func (*ConnectorField) SetAdvanced

func (c *ConnectorField) SetAdvanced(advanced *bool)

SetAdvanced sets the Advanced field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetDefault

func (c *ConnectorField) SetDefault(default_ any)

SetDefault sets the Default field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetDescription

func (c *ConnectorField) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetExample

func (c *ConnectorField) SetExample(example any)

SetExample sets the Example field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetKey

func (c *ConnectorField) SetKey(key string)

SetKey sets the Key field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetLabel

func (c *ConnectorField) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetMax

func (c *ConnectorField) SetMax(max *float64)

SetMax sets the Max field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetMaxLength

func (c *ConnectorField) SetMaxLength(maxLength *int)

SetMaxLength sets the MaxLength field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetMin

func (c *ConnectorField) SetMin(min *float64)

SetMin sets the Min field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetMinLength

func (c *ConnectorField) SetMinLength(minLength *int)

SetMinLength sets the MinLength field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetName

func (c *ConnectorField) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetNullable

func (c *ConnectorField) SetNullable(nullable *bool)

SetNullable sets the Nullable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetOptions

func (c *ConnectorField) SetOptions(options []*ConnectorFieldOptionsItem)

SetOptions sets the Options field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetOrder

func (c *ConnectorField) SetOrder(order *int)

SetOrder sets the Order field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetRequired

func (c *ConnectorField) SetRequired(required bool)

SetRequired sets the Required field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetShowWhen

func (c *ConnectorField) SetShowWhen(showWhen *ConnectorFieldShowWhen)

SetShowWhen sets the ShowWhen field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) SetType

func (c *ConnectorField) SetType(type_ ConnectorFieldType)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorField) String

func (c *ConnectorField) String() string

func (*ConnectorField) UnmarshalJSON

func (c *ConnectorField) UnmarshalJSON(data []byte) error

type ConnectorFieldOptionsItem

type ConnectorFieldOptionsItem struct {
	Label string `json:"label" url:"label"`
	Value string `json:"value" url:"value"`
	// contains filtered or unexported fields
}

func (*ConnectorFieldOptionsItem) GetExtraProperties

func (c *ConnectorFieldOptionsItem) GetExtraProperties() map[string]interface{}

func (*ConnectorFieldOptionsItem) GetLabel

func (c *ConnectorFieldOptionsItem) GetLabel() string

func (*ConnectorFieldOptionsItem) GetValue

func (c *ConnectorFieldOptionsItem) GetValue() string

func (*ConnectorFieldOptionsItem) MarshalJSON

func (c *ConnectorFieldOptionsItem) MarshalJSON() ([]byte, error)

func (*ConnectorFieldOptionsItem) SetLabel

func (c *ConnectorFieldOptionsItem) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorFieldOptionsItem) SetValue

func (c *ConnectorFieldOptionsItem) SetValue(value string)

SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorFieldOptionsItem) String

func (c *ConnectorFieldOptionsItem) String() string

func (*ConnectorFieldOptionsItem) UnmarshalJSON

func (c *ConnectorFieldOptionsItem) UnmarshalJSON(data []byte) error

type ConnectorFieldShowWhen

type ConnectorFieldShowWhen struct {
	// Name of the discriminator field this visibility depends on
	Field string `json:"field" url:"field"`
	// Shown when the discriminator holds one of these
	Equals []string `json:"equals" url:"equals"`
	// contains filtered or unexported fields
}

Present only on a field from one branch of a union. A field with no showWhen is always shown. The same name can appear several times with different conditions when branches declare different bounds.

func (*ConnectorFieldShowWhen) GetEquals

func (c *ConnectorFieldShowWhen) GetEquals() []string

func (*ConnectorFieldShowWhen) GetExtraProperties

func (c *ConnectorFieldShowWhen) GetExtraProperties() map[string]interface{}

func (*ConnectorFieldShowWhen) GetField

func (c *ConnectorFieldShowWhen) GetField() string

func (*ConnectorFieldShowWhen) MarshalJSON

func (c *ConnectorFieldShowWhen) MarshalJSON() ([]byte, error)

func (*ConnectorFieldShowWhen) SetEquals

func (c *ConnectorFieldShowWhen) SetEquals(equals []string)

SetEquals sets the Equals field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorFieldShowWhen) SetField

func (c *ConnectorFieldShowWhen) SetField(field string)

SetField sets the Field field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorFieldShowWhen) String

func (c *ConnectorFieldShowWhen) String() string

func (*ConnectorFieldShowWhen) UnmarshalJSON

func (c *ConnectorFieldShowWhen) UnmarshalJSON(data []byte) error

type ConnectorFieldType

type ConnectorFieldType string
const (
	ConnectorFieldTypeString  ConnectorFieldType = "string"
	ConnectorFieldTypeNumber  ConnectorFieldType = "number"
	ConnectorFieldTypeBoolean ConnectorFieldType = "boolean"
	ConnectorFieldTypeOptions ConnectorFieldType = "options"
	ConnectorFieldTypeJSON    ConnectorFieldType = "json"
)

func NewConnectorFieldTypeFromString

func NewConnectorFieldTypeFromString(s string) (ConnectorFieldType, error)

func (ConnectorFieldType) Ptr

type ConnectorInput

type ConnectorInput struct {
	// Unique within this job type. Use as the form field key: `name` repeats when a discriminated union gives one field several shapes.
	Key string `json:"key" url:"key"`
	// Param key to submit under. Not unique, see `key`.
	Name        string                       `json:"name" url:"name"`
	Label       string                       `json:"label" url:"label"`
	Type        ConnectorFieldType           `json:"type" url:"type"`
	Required    bool                         `json:"required" url:"required"`
	Nullable    *bool                        `json:"nullable,omitempty" url:"nullable,omitempty"`
	Default     any                          `json:"default,omitempty" url:"default,omitempty"`
	Options     []*ConnectorFieldOptionsItem `json:"options,omitempty" url:"options,omitempty"`
	Min         *float64                     `json:"min,omitempty" url:"min,omitempty"`
	Max         *float64                     `json:"max,omitempty" url:"max,omitempty"`
	MinLength   *int                         `json:"minLength,omitempty" url:"minLength,omitempty"`
	MaxLength   *int                         `json:"maxLength,omitempty" url:"maxLength,omitempty"`
	Description *string                      `json:"description,omitempty" url:"description,omitempty"`
	// Example value, for placeholder text
	Example any `json:"example,omitempty" url:"example,omitempty"`
	// Render position; fields are already returned in this order
	Order *int `json:"order,omitempty" url:"order,omitempty"`
	// Render behind an Options or Advanced disclosure
	Advanced *bool `json:"advanced,omitempty" url:"advanced,omitempty"`
	// Present only on a field from one branch of a union. A field with no showWhen is always shown. The same name can appear several times with different conditions when branches declare different bounds.
	ShowWhen *ConnectorFieldShowWhen `json:"showWhen,omitempty" url:"showWhen,omitempty"`
	// The value is a URL pointing at a file. A connector can offer a file picker and upload the result, instead of asking for a pasted link.
	URL *bool `json:"url,omitempty" url:"url,omitempty"`
	// Takes a list of values rather than one.
	Multiple *bool `json:"multiple,omitempty" url:"multiple,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectorInput) GetAdvanced

func (c *ConnectorInput) GetAdvanced() *bool

func (*ConnectorInput) GetDefault

func (c *ConnectorInput) GetDefault() any

func (*ConnectorInput) GetDescription

func (c *ConnectorInput) GetDescription() *string

func (*ConnectorInput) GetExample

func (c *ConnectorInput) GetExample() any

func (*ConnectorInput) GetExtraProperties

func (c *ConnectorInput) GetExtraProperties() map[string]interface{}

func (*ConnectorInput) GetKey

func (c *ConnectorInput) GetKey() string

func (*ConnectorInput) GetLabel

func (c *ConnectorInput) GetLabel() string

func (*ConnectorInput) GetMax

func (c *ConnectorInput) GetMax() *float64

func (*ConnectorInput) GetMaxLength

func (c *ConnectorInput) GetMaxLength() *int

func (*ConnectorInput) GetMin

func (c *ConnectorInput) GetMin() *float64

func (*ConnectorInput) GetMinLength

func (c *ConnectorInput) GetMinLength() *int

func (*ConnectorInput) GetMultiple

func (c *ConnectorInput) GetMultiple() *bool

func (*ConnectorInput) GetName

func (c *ConnectorInput) GetName() string

func (*ConnectorInput) GetNullable

func (c *ConnectorInput) GetNullable() *bool

func (*ConnectorInput) GetOptions

func (c *ConnectorInput) GetOptions() []*ConnectorFieldOptionsItem

func (*ConnectorInput) GetOrder

func (c *ConnectorInput) GetOrder() *int

func (*ConnectorInput) GetRequired

func (c *ConnectorInput) GetRequired() bool

func (*ConnectorInput) GetShowWhen

func (c *ConnectorInput) GetShowWhen() *ConnectorFieldShowWhen

func (*ConnectorInput) GetType

func (c *ConnectorInput) GetType() ConnectorFieldType

func (*ConnectorInput) GetURL

func (c *ConnectorInput) GetURL() *bool

func (*ConnectorInput) MarshalJSON

func (c *ConnectorInput) MarshalJSON() ([]byte, error)

func (*ConnectorInput) SetAdvanced

func (c *ConnectorInput) SetAdvanced(advanced *bool)

SetAdvanced sets the Advanced field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetDefault

func (c *ConnectorInput) SetDefault(default_ any)

SetDefault sets the Default field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetDescription

func (c *ConnectorInput) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetExample

func (c *ConnectorInput) SetExample(example any)

SetExample sets the Example field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetKey

func (c *ConnectorInput) SetKey(key string)

SetKey sets the Key field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetLabel

func (c *ConnectorInput) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetMax

func (c *ConnectorInput) SetMax(max *float64)

SetMax sets the Max field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetMaxLength

func (c *ConnectorInput) SetMaxLength(maxLength *int)

SetMaxLength sets the MaxLength field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetMin

func (c *ConnectorInput) SetMin(min *float64)

SetMin sets the Min field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetMinLength

func (c *ConnectorInput) SetMinLength(minLength *int)

SetMinLength sets the MinLength field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetMultiple

func (c *ConnectorInput) SetMultiple(multiple *bool)

SetMultiple sets the Multiple field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetName

func (c *ConnectorInput) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetNullable

func (c *ConnectorInput) SetNullable(nullable *bool)

SetNullable sets the Nullable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetOptions

func (c *ConnectorInput) SetOptions(options []*ConnectorFieldOptionsItem)

SetOptions sets the Options field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetOrder

func (c *ConnectorInput) SetOrder(order *int)

SetOrder sets the Order field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetRequired

func (c *ConnectorInput) SetRequired(required bool)

SetRequired sets the Required field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetShowWhen

func (c *ConnectorInput) SetShowWhen(showWhen *ConnectorFieldShowWhen)

SetShowWhen sets the ShowWhen field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetType

func (c *ConnectorInput) SetType(type_ ConnectorFieldType)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) SetURL

func (c *ConnectorInput) SetURL(url *bool)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ConnectorInput) String

func (c *ConnectorInput) String() string

func (*ConnectorInput) UnmarshalJSON

func (c *ConnectorInput) UnmarshalJSON(data []byte) error

type CreateProCheckoutResponse

type CreateProCheckoutResponse struct {
	Data *CreateProCheckoutResponseData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*CreateProCheckoutResponse) GetData

func (*CreateProCheckoutResponse) GetExtraProperties

func (c *CreateProCheckoutResponse) GetExtraProperties() map[string]interface{}

func (*CreateProCheckoutResponse) MarshalJSON

func (c *CreateProCheckoutResponse) MarshalJSON() ([]byte, error)

func (*CreateProCheckoutResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateProCheckoutResponse) String

func (c *CreateProCheckoutResponse) String() string

func (*CreateProCheckoutResponse) UnmarshalJSON

func (c *CreateProCheckoutResponse) UnmarshalJSON(data []byte) error

type CreateProCheckoutResponseData

type CreateProCheckoutResponseData struct {
	CheckoutURL string `json:"checkoutUrl" url:"checkoutUrl"`
	CheckoutID  string `json:"checkoutId" url:"checkoutId"`
	// contains filtered or unexported fields
}

func (*CreateProCheckoutResponseData) GetCheckoutID

func (c *CreateProCheckoutResponseData) GetCheckoutID() string

func (*CreateProCheckoutResponseData) GetCheckoutURL

func (c *CreateProCheckoutResponseData) GetCheckoutURL() string

func (*CreateProCheckoutResponseData) GetExtraProperties

func (c *CreateProCheckoutResponseData) GetExtraProperties() map[string]interface{}

func (*CreateProCheckoutResponseData) MarshalJSON

func (c *CreateProCheckoutResponseData) MarshalJSON() ([]byte, error)

func (*CreateProCheckoutResponseData) SetCheckoutID

func (c *CreateProCheckoutResponseData) SetCheckoutID(checkoutID string)

SetCheckoutID sets the CheckoutID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateProCheckoutResponseData) SetCheckoutURL

func (c *CreateProCheckoutResponseData) SetCheckoutURL(checkoutURL string)

SetCheckoutURL sets the CheckoutURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateProCheckoutResponseData) String

func (*CreateProCheckoutResponseData) UnmarshalJSON

func (c *CreateProCheckoutResponseData) UnmarshalJSON(data []byte) error

type ErrorResponse

type ErrorResponse struct {
	Error *ErrorResponseError `json:"error" url:"error"`
	// contains filtered or unexported fields
}

func (*ErrorResponse) GetError

func (e *ErrorResponse) GetError() *ErrorResponseError

func (*ErrorResponse) GetExtraProperties

func (e *ErrorResponse) GetExtraProperties() map[string]interface{}

func (*ErrorResponse) MarshalJSON

func (e *ErrorResponse) MarshalJSON() ([]byte, error)

func (*ErrorResponse) SetError

func (e *ErrorResponse) SetError(error_ *ErrorResponseError)

SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ErrorResponse) String

func (e *ErrorResponse) String() string

func (*ErrorResponse) UnmarshalJSON

func (e *ErrorResponse) UnmarshalJSON(data []byte) error

type ErrorResponseError

type ErrorResponseError struct {
	// Machine-readable error code
	Code string `json:"code" url:"code"`
	// Human-readable error message
	Message string `json:"message" url:"message"`
	// More about the error when there is more to say. A refusal lists its problems here as `{ path, message, upgradeTo? }`, where `upgradeTo` names the cheapest plan that runs it (null when only an enterprise plan does).
	Details any `json:"details,omitempty" url:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorResponseError) GetCode

func (e *ErrorResponseError) GetCode() string

func (*ErrorResponseError) GetDetails

func (e *ErrorResponseError) GetDetails() any

func (*ErrorResponseError) GetExtraProperties

func (e *ErrorResponseError) GetExtraProperties() map[string]interface{}

func (*ErrorResponseError) GetMessage

func (e *ErrorResponseError) GetMessage() string

func (*ErrorResponseError) MarshalJSON

func (e *ErrorResponseError) MarshalJSON() ([]byte, error)

func (*ErrorResponseError) SetCode

func (e *ErrorResponseError) SetCode(code string)

SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ErrorResponseError) SetDetails

func (e *ErrorResponseError) SetDetails(details any)

SetDetails sets the Details field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ErrorResponseError) SetMessage

func (e *ErrorResponseError) SetMessage(message string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ErrorResponseError) String

func (e *ErrorResponseError) String() string

func (*ErrorResponseError) UnmarshalJSON

func (e *ErrorResponseError) UnmarshalJSON(data []byte) error

type FfmpegParams

type FfmpegParams struct {
	// FFmpeg command string, such as "ffmpeg -i input.mp4 output.mp4". The leading "ffmpeg" is optional.
	Command string `json:"command" url:"command"`
	// Max execution time in seconds (defaults to your plan's max job timeout)
	Timeout *int `json:"timeout,omitempty" url:"timeout,omitempty"`
	// Hardware target: auto (detect from command), cpu, or gpu (NVENC, Pro and Studio plans)
	Compute *FfmpegParamsCompute `json:"compute,omitempty" url:"compute,omitempty"`
	// contains filtered or unexported fields
}

Params of the ffmpeg job.

func (*FfmpegParams) GetCommand

func (f *FfmpegParams) GetCommand() string

func (*FfmpegParams) GetCompute

func (f *FfmpegParams) GetCompute() *FfmpegParamsCompute

func (*FfmpegParams) GetExtraProperties

func (f *FfmpegParams) GetExtraProperties() map[string]interface{}

func (*FfmpegParams) GetTimeout

func (f *FfmpegParams) GetTimeout() *int

func (*FfmpegParams) MarshalJSON

func (f *FfmpegParams) MarshalJSON() ([]byte, error)

func (*FfmpegParams) SetCommand

func (f *FfmpegParams) SetCommand(command string)

SetCommand sets the Command field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfmpegParams) SetCompute

func (f *FfmpegParams) SetCompute(compute *FfmpegParamsCompute)

SetCompute sets the Compute field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfmpegParams) SetTimeout

func (f *FfmpegParams) SetTimeout(timeout *int)

SetTimeout sets the Timeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfmpegParams) String

func (f *FfmpegParams) String() string

func (*FfmpegParams) UnmarshalJSON

func (f *FfmpegParams) UnmarshalJSON(data []byte) error

type FfmpegParamsCompute

type FfmpegParamsCompute string

Hardware target: auto (detect from command), cpu, or gpu (NVENC, Pro and Studio plans)

const (
	FfmpegParamsComputeAuto FfmpegParamsCompute = "auto"
	FfmpegParamsComputeCPU  FfmpegParamsCompute = "cpu"
	FfmpegParamsComputeGpu  FfmpegParamsCompute = "gpu"
)

func NewFfmpegParamsComputeFromString

func NewFfmpegParamsComputeFromString(s string) (FfmpegParamsCompute, error)

func (FfmpegParamsCompute) Ptr

type FfprobeAudioStream

type FfprobeAudioStream struct {
	Codec    *string `json:"codec,omitempty" url:"codec,omitempty"`
	Profile  *string `json:"profile,omitempty" url:"profile,omitempty"`
	Channels *int    `json:"channels,omitempty" url:"channels,omitempty"`
	// Null even when channels is set: some containers (wav) never store it
	ChannelLayout *string `json:"channelLayout,omitempty" url:"channelLayout,omitempty"`
	SampleRate    *int    `json:"sampleRate,omitempty" url:"sampleRate,omitempty"`
	BitrateBps    *int    `json:"bitrateBps,omitempty" url:"bitrateBps,omitempty"`
	Language      *string `json:"language,omitempty" url:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*FfprobeAudioStream) GetBitrateBps

func (f *FfprobeAudioStream) GetBitrateBps() *int

func (*FfprobeAudioStream) GetChannelLayout

func (f *FfprobeAudioStream) GetChannelLayout() *string

func (*FfprobeAudioStream) GetChannels

func (f *FfprobeAudioStream) GetChannels() *int

func (*FfprobeAudioStream) GetCodec

func (f *FfprobeAudioStream) GetCodec() *string

func (*FfprobeAudioStream) GetExtraProperties

func (f *FfprobeAudioStream) GetExtraProperties() map[string]interface{}

func (*FfprobeAudioStream) GetLanguage

func (f *FfprobeAudioStream) GetLanguage() *string

func (*FfprobeAudioStream) GetProfile

func (f *FfprobeAudioStream) GetProfile() *string

func (*FfprobeAudioStream) GetSampleRate

func (f *FfprobeAudioStream) GetSampleRate() *int

func (*FfprobeAudioStream) MarshalJSON

func (f *FfprobeAudioStream) MarshalJSON() ([]byte, error)

func (*FfprobeAudioStream) SetBitrateBps

func (f *FfprobeAudioStream) SetBitrateBps(bitrateBps *int)

SetBitrateBps sets the BitrateBps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioStream) SetChannelLayout

func (f *FfprobeAudioStream) SetChannelLayout(channelLayout *string)

SetChannelLayout sets the ChannelLayout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioStream) SetChannels

func (f *FfprobeAudioStream) SetChannels(channels *int)

SetChannels sets the Channels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioStream) SetCodec

func (f *FfprobeAudioStream) SetCodec(codec *string)

SetCodec sets the Codec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioStream) SetLanguage

func (f *FfprobeAudioStream) SetLanguage(language *string)

SetLanguage sets the Language field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioStream) SetProfile

func (f *FfprobeAudioStream) SetProfile(profile *string)

SetProfile sets the Profile field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioStream) SetSampleRate

func (f *FfprobeAudioStream) SetSampleRate(sampleRate *int)

SetSampleRate sets the SampleRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioStream) String

func (f *FfprobeAudioStream) String() string

func (*FfprobeAudioStream) UnmarshalJSON

func (f *FfprobeAudioStream) UnmarshalJSON(data []byte) error

type FfprobeAudioSummary

type FfprobeAudioSummary struct {
	// format_name, e.g. "mov,mp4,m4a,3gp,3g2,mj2"
	Container      *string `json:"container,omitempty" url:"container,omitempty"`
	FormatLongName *string `json:"formatLongName,omitempty" url:"formatLongName,omitempty"`
	// Duration in seconds
	DurationSec *float64 `json:"durationSec,omitempty" url:"durationSec,omitempty"`
	SizeBytes   *int     `json:"sizeBytes,omitempty" url:"sizeBytes,omitempty"`
	// Container bitrate; null when the container omits it
	BitrateBps   *int                 `json:"bitrateBps,omitempty" url:"bitrateBps,omitempty"`
	StartTimeSec *float64             `json:"startTimeSec,omitempty" url:"startTimeSec,omitempty"`
	StreamCounts *FfprobeStreamCounts `json:"streamCounts" url:"streamCounts"`
	// Container-level tags, {} when none
	Tags  map[string]string   `json:"tags" url:"tags"`
	Audio *FfprobeAudioStream `json:"audio" url:"audio"`
	// contains filtered or unexported fields
}

func (*FfprobeAudioSummary) GetAudio

func (f *FfprobeAudioSummary) GetAudio() *FfprobeAudioStream

func (*FfprobeAudioSummary) GetBitrateBps

func (f *FfprobeAudioSummary) GetBitrateBps() *int

func (*FfprobeAudioSummary) GetContainer

func (f *FfprobeAudioSummary) GetContainer() *string

func (*FfprobeAudioSummary) GetDurationSec

func (f *FfprobeAudioSummary) GetDurationSec() *float64

func (*FfprobeAudioSummary) GetExtraProperties

func (f *FfprobeAudioSummary) GetExtraProperties() map[string]interface{}

func (*FfprobeAudioSummary) GetFormatLongName

func (f *FfprobeAudioSummary) GetFormatLongName() *string

func (*FfprobeAudioSummary) GetSizeBytes

func (f *FfprobeAudioSummary) GetSizeBytes() *int

func (*FfprobeAudioSummary) GetStartTimeSec

func (f *FfprobeAudioSummary) GetStartTimeSec() *float64

func (*FfprobeAudioSummary) GetStreamCounts

func (f *FfprobeAudioSummary) GetStreamCounts() *FfprobeStreamCounts

func (*FfprobeAudioSummary) GetTags

func (f *FfprobeAudioSummary) GetTags() map[string]string

func (*FfprobeAudioSummary) MarshalJSON

func (f *FfprobeAudioSummary) MarshalJSON() ([]byte, error)

func (*FfprobeAudioSummary) SetAudio

func (f *FfprobeAudioSummary) SetAudio(audio *FfprobeAudioStream)

SetAudio sets the Audio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioSummary) SetBitrateBps

func (f *FfprobeAudioSummary) SetBitrateBps(bitrateBps *int)

SetBitrateBps sets the BitrateBps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioSummary) SetContainer

func (f *FfprobeAudioSummary) SetContainer(container *string)

SetContainer sets the Container field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioSummary) SetDurationSec

func (f *FfprobeAudioSummary) SetDurationSec(durationSec *float64)

SetDurationSec sets the DurationSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioSummary) SetFormatLongName

func (f *FfprobeAudioSummary) SetFormatLongName(formatLongName *string)

SetFormatLongName sets the FormatLongName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioSummary) SetSizeBytes

func (f *FfprobeAudioSummary) SetSizeBytes(sizeBytes *int)

SetSizeBytes sets the SizeBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioSummary) SetStartTimeSec

func (f *FfprobeAudioSummary) SetStartTimeSec(startTimeSec *float64)

SetStartTimeSec sets the StartTimeSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioSummary) SetStreamCounts

func (f *FfprobeAudioSummary) SetStreamCounts(streamCounts *FfprobeStreamCounts)

SetStreamCounts sets the StreamCounts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioSummary) SetTags

func (f *FfprobeAudioSummary) SetTags(tags map[string]string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeAudioSummary) String

func (f *FfprobeAudioSummary) String() string

func (*FfprobeAudioSummary) UnmarshalJSON

func (f *FfprobeAudioSummary) UnmarshalJSON(data []byte) error

type FfprobeChapter

type FfprobeChapter struct {
	ID        *int              `json:"id,omitempty" url:"id,omitempty"`
	StartTime *string           `json:"start_time,omitempty" url:"start_time,omitempty"`
	EndTime   *string           `json:"end_time,omitempty" url:"end_time,omitempty"`
	Tags      map[string]string `json:"tags,omitempty" url:"tags,omitempty"`

	ExtraProperties map[string]interface{} `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*FfprobeChapter) GetEndTime

func (f *FfprobeChapter) GetEndTime() *string

func (*FfprobeChapter) GetExtraProperties

func (f *FfprobeChapter) GetExtraProperties() map[string]interface{}

func (*FfprobeChapter) GetID

func (f *FfprobeChapter) GetID() *int

func (*FfprobeChapter) GetStartTime

func (f *FfprobeChapter) GetStartTime() *string

func (*FfprobeChapter) GetTags

func (f *FfprobeChapter) GetTags() map[string]string

func (*FfprobeChapter) MarshalJSON

func (f *FfprobeChapter) MarshalJSON() ([]byte, error)

func (*FfprobeChapter) SetEndTime

func (f *FfprobeChapter) SetEndTime(endTime *string)

SetEndTime sets the EndTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeChapter) SetID

func (f *FfprobeChapter) SetID(id *int)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeChapter) SetStartTime

func (f *FfprobeChapter) SetStartTime(startTime *string)

SetStartTime sets the StartTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeChapter) SetTags

func (f *FfprobeChapter) SetTags(tags map[string]string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeChapter) String

func (f *FfprobeChapter) String() string

func (*FfprobeChapter) UnmarshalJSON

func (f *FfprobeChapter) UnmarshalJSON(data []byte) error

type FfprobeFormat

type FfprobeFormat struct {
	// The probed source URL
	Filename       *string           `json:"filename,omitempty" url:"filename,omitempty"`
	FormatName     *string           `json:"format_name,omitempty" url:"format_name,omitempty"`
	FormatLongName *string           `json:"format_long_name,omitempty" url:"format_long_name,omitempty"`
	NbStreams      *int              `json:"nb_streams,omitempty" url:"nb_streams,omitempty"`
	NbPrograms     *int              `json:"nb_programs,omitempty" url:"nb_programs,omitempty"`
	StartTime      *string           `json:"start_time,omitempty" url:"start_time,omitempty"`
	Duration       *string           `json:"duration,omitempty" url:"duration,omitempty"`
	Size           *string           `json:"size,omitempty" url:"size,omitempty"`
	BitRate        *string           `json:"bit_rate,omitempty" url:"bit_rate,omitempty"`
	ProbeScore     *int              `json:"probe_score,omitempty" url:"probe_score,omitempty"`
	Tags           map[string]string `json:"tags,omitempty" url:"tags,omitempty"`

	ExtraProperties map[string]interface{} `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*FfprobeFormat) GetBitRate

func (f *FfprobeFormat) GetBitRate() *string

func (*FfprobeFormat) GetDuration

func (f *FfprobeFormat) GetDuration() *string

func (*FfprobeFormat) GetExtraProperties

func (f *FfprobeFormat) GetExtraProperties() map[string]interface{}

func (*FfprobeFormat) GetFilename

func (f *FfprobeFormat) GetFilename() *string

func (*FfprobeFormat) GetFormatLongName

func (f *FfprobeFormat) GetFormatLongName() *string

func (*FfprobeFormat) GetFormatName

func (f *FfprobeFormat) GetFormatName() *string

func (*FfprobeFormat) GetNbPrograms

func (f *FfprobeFormat) GetNbPrograms() *int

func (*FfprobeFormat) GetNbStreams

func (f *FfprobeFormat) GetNbStreams() *int

func (*FfprobeFormat) GetProbeScore

func (f *FfprobeFormat) GetProbeScore() *int

func (*FfprobeFormat) GetSize

func (f *FfprobeFormat) GetSize() *string

func (*FfprobeFormat) GetStartTime

func (f *FfprobeFormat) GetStartTime() *string

func (*FfprobeFormat) GetTags

func (f *FfprobeFormat) GetTags() map[string]string

func (*FfprobeFormat) MarshalJSON

func (f *FfprobeFormat) MarshalJSON() ([]byte, error)

func (*FfprobeFormat) SetBitRate

func (f *FfprobeFormat) SetBitRate(bitRate *string)

SetBitRate sets the BitRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFormat) SetDuration

func (f *FfprobeFormat) SetDuration(duration *string)

SetDuration sets the Duration field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFormat) SetFilename

func (f *FfprobeFormat) SetFilename(filename *string)

SetFilename sets the Filename field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFormat) SetFormatLongName

func (f *FfprobeFormat) SetFormatLongName(formatLongName *string)

SetFormatLongName sets the FormatLongName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFormat) SetFormatName

func (f *FfprobeFormat) SetFormatName(formatName *string)

SetFormatName sets the FormatName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFormat) SetNbPrograms

func (f *FfprobeFormat) SetNbPrograms(nbPrograms *int)

SetNbPrograms sets the NbPrograms field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFormat) SetNbStreams

func (f *FfprobeFormat) SetNbStreams(nbStreams *int)

SetNbStreams sets the NbStreams field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFormat) SetProbeScore

func (f *FfprobeFormat) SetProbeScore(probeScore *int)

SetProbeScore sets the ProbeScore field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFormat) SetSize

func (f *FfprobeFormat) SetSize(size *string)

SetSize sets the Size field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFormat) SetStartTime

func (f *FfprobeFormat) SetStartTime(startTime *string)

SetStartTime sets the StartTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFormat) SetTags

func (f *FfprobeFormat) SetTags(tags map[string]string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFormat) String

func (f *FfprobeFormat) String() string

func (*FfprobeFormat) UnmarshalJSON

func (f *FfprobeFormat) UnmarshalJSON(data []byte) error

type FfprobeFrame

type FfprobeFrame struct {
	MediaType   *string `json:"media_type,omitempty" url:"media_type,omitempty"`
	StreamIndex *int    `json:"stream_index,omitempty" url:"stream_index,omitempty"`

	ExtraProperties map[string]interface{} `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*FfprobeFrame) GetExtraProperties

func (f *FfprobeFrame) GetExtraProperties() map[string]interface{}

func (*FfprobeFrame) GetMediaType

func (f *FfprobeFrame) GetMediaType() *string

func (*FfprobeFrame) GetStreamIndex

func (f *FfprobeFrame) GetStreamIndex() *int

func (*FfprobeFrame) MarshalJSON

func (f *FfprobeFrame) MarshalJSON() ([]byte, error)

func (*FfprobeFrame) SetMediaType

func (f *FfprobeFrame) SetMediaType(mediaType *string)

SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFrame) SetStreamIndex

func (f *FfprobeFrame) SetStreamIndex(streamIndex *int)

SetStreamIndex sets the StreamIndex field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeFrame) String

func (f *FfprobeFrame) String() string

func (*FfprobeFrame) UnmarshalJSON

func (f *FfprobeFrame) UnmarshalJSON(data []byte) error

type FfprobeImageStream

type FfprobeImageStream struct {
	Codec       *string `json:"codec,omitempty" url:"codec,omitempty"`
	Width       *int    `json:"width,omitempty" url:"width,omitempty"`
	Height      *int    `json:"height,omitempty" url:"height,omitempty"`
	PixelFormat *string `json:"pixelFormat,omitempty" url:"pixelFormat,omitempty"`
	BitDepth    *int    `json:"bitDepth,omitempty" url:"bitDepth,omitempty"`
	// contains filtered or unexported fields
}

func (*FfprobeImageStream) GetBitDepth

func (f *FfprobeImageStream) GetBitDepth() *int

func (*FfprobeImageStream) GetCodec

func (f *FfprobeImageStream) GetCodec() *string

func (*FfprobeImageStream) GetExtraProperties

func (f *FfprobeImageStream) GetExtraProperties() map[string]interface{}

func (*FfprobeImageStream) GetHeight

func (f *FfprobeImageStream) GetHeight() *int

func (*FfprobeImageStream) GetPixelFormat

func (f *FfprobeImageStream) GetPixelFormat() *string

func (*FfprobeImageStream) GetWidth

func (f *FfprobeImageStream) GetWidth() *int

func (*FfprobeImageStream) MarshalJSON

func (f *FfprobeImageStream) MarshalJSON() ([]byte, error)

func (*FfprobeImageStream) SetBitDepth

func (f *FfprobeImageStream) SetBitDepth(bitDepth *int)

SetBitDepth sets the BitDepth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageStream) SetCodec

func (f *FfprobeImageStream) SetCodec(codec *string)

SetCodec sets the Codec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageStream) SetHeight

func (f *FfprobeImageStream) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageStream) SetPixelFormat

func (f *FfprobeImageStream) SetPixelFormat(pixelFormat *string)

SetPixelFormat sets the PixelFormat field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageStream) SetWidth

func (f *FfprobeImageStream) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageStream) String

func (f *FfprobeImageStream) String() string

func (*FfprobeImageStream) UnmarshalJSON

func (f *FfprobeImageStream) UnmarshalJSON(data []byte) error

type FfprobeImageSummary

type FfprobeImageSummary struct {
	// format_name, e.g. "mov,mp4,m4a,3gp,3g2,mj2"
	Container      *string `json:"container,omitempty" url:"container,omitempty"`
	FormatLongName *string `json:"formatLongName,omitempty" url:"formatLongName,omitempty"`
	// Duration in seconds
	DurationSec *float64 `json:"durationSec,omitempty" url:"durationSec,omitempty"`
	SizeBytes   *int     `json:"sizeBytes,omitempty" url:"sizeBytes,omitempty"`
	// Container bitrate; null when the container omits it
	BitrateBps   *int                 `json:"bitrateBps,omitempty" url:"bitrateBps,omitempty"`
	StartTimeSec *float64             `json:"startTimeSec,omitempty" url:"startTimeSec,omitempty"`
	StreamCounts *FfprobeStreamCounts `json:"streamCounts" url:"streamCounts"`
	// Container-level tags, {} when none
	Tags  map[string]string   `json:"tags" url:"tags"`
	Image *FfprobeImageStream `json:"image" url:"image"`
	// contains filtered or unexported fields
}

func (*FfprobeImageSummary) GetBitrateBps

func (f *FfprobeImageSummary) GetBitrateBps() *int

func (*FfprobeImageSummary) GetContainer

func (f *FfprobeImageSummary) GetContainer() *string

func (*FfprobeImageSummary) GetDurationSec

func (f *FfprobeImageSummary) GetDurationSec() *float64

func (*FfprobeImageSummary) GetExtraProperties

func (f *FfprobeImageSummary) GetExtraProperties() map[string]interface{}

func (*FfprobeImageSummary) GetFormatLongName

func (f *FfprobeImageSummary) GetFormatLongName() *string

func (*FfprobeImageSummary) GetImage

func (f *FfprobeImageSummary) GetImage() *FfprobeImageStream

func (*FfprobeImageSummary) GetSizeBytes

func (f *FfprobeImageSummary) GetSizeBytes() *int

func (*FfprobeImageSummary) GetStartTimeSec

func (f *FfprobeImageSummary) GetStartTimeSec() *float64

func (*FfprobeImageSummary) GetStreamCounts

func (f *FfprobeImageSummary) GetStreamCounts() *FfprobeStreamCounts

func (*FfprobeImageSummary) GetTags

func (f *FfprobeImageSummary) GetTags() map[string]string

func (*FfprobeImageSummary) MarshalJSON

func (f *FfprobeImageSummary) MarshalJSON() ([]byte, error)

func (*FfprobeImageSummary) SetBitrateBps

func (f *FfprobeImageSummary) SetBitrateBps(bitrateBps *int)

SetBitrateBps sets the BitrateBps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageSummary) SetContainer

func (f *FfprobeImageSummary) SetContainer(container *string)

SetContainer sets the Container field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageSummary) SetDurationSec

func (f *FfprobeImageSummary) SetDurationSec(durationSec *float64)

SetDurationSec sets the DurationSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageSummary) SetFormatLongName

func (f *FfprobeImageSummary) SetFormatLongName(formatLongName *string)

SetFormatLongName sets the FormatLongName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageSummary) SetImage

func (f *FfprobeImageSummary) SetImage(image *FfprobeImageStream)

SetImage sets the Image field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageSummary) SetSizeBytes

func (f *FfprobeImageSummary) SetSizeBytes(sizeBytes *int)

SetSizeBytes sets the SizeBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageSummary) SetStartTimeSec

func (f *FfprobeImageSummary) SetStartTimeSec(startTimeSec *float64)

SetStartTimeSec sets the StartTimeSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageSummary) SetStreamCounts

func (f *FfprobeImageSummary) SetStreamCounts(streamCounts *FfprobeStreamCounts)

SetStreamCounts sets the StreamCounts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageSummary) SetTags

func (f *FfprobeImageSummary) SetTags(tags map[string]string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeImageSummary) String

func (f *FfprobeImageSummary) String() string

func (*FfprobeImageSummary) UnmarshalJSON

func (f *FfprobeImageSummary) UnmarshalJSON(data []byte) error

type FfprobeOtherSummary

type FfprobeOtherSummary struct {
	// format_name, e.g. "mov,mp4,m4a,3gp,3g2,mj2"
	Container      *string `json:"container,omitempty" url:"container,omitempty"`
	FormatLongName *string `json:"formatLongName,omitempty" url:"formatLongName,omitempty"`
	// Duration in seconds
	DurationSec *float64 `json:"durationSec,omitempty" url:"durationSec,omitempty"`
	SizeBytes   *int     `json:"sizeBytes,omitempty" url:"sizeBytes,omitempty"`
	// Container bitrate; null when the container omits it
	BitrateBps   *int                 `json:"bitrateBps,omitempty" url:"bitrateBps,omitempty"`
	StartTimeSec *float64             `json:"startTimeSec,omitempty" url:"startTimeSec,omitempty"`
	StreamCounts *FfprobeStreamCounts `json:"streamCounts" url:"streamCounts"`
	// Container-level tags, {} when none
	Tags map[string]string `json:"tags" url:"tags"`
	// contains filtered or unexported fields
}

func (*FfprobeOtherSummary) GetBitrateBps

func (f *FfprobeOtherSummary) GetBitrateBps() *int

func (*FfprobeOtherSummary) GetContainer

func (f *FfprobeOtherSummary) GetContainer() *string

func (*FfprobeOtherSummary) GetDurationSec

func (f *FfprobeOtherSummary) GetDurationSec() *float64

func (*FfprobeOtherSummary) GetExtraProperties

func (f *FfprobeOtherSummary) GetExtraProperties() map[string]interface{}

func (*FfprobeOtherSummary) GetFormatLongName

func (f *FfprobeOtherSummary) GetFormatLongName() *string

func (*FfprobeOtherSummary) GetSizeBytes

func (f *FfprobeOtherSummary) GetSizeBytes() *int

func (*FfprobeOtherSummary) GetStartTimeSec

func (f *FfprobeOtherSummary) GetStartTimeSec() *float64

func (*FfprobeOtherSummary) GetStreamCounts

func (f *FfprobeOtherSummary) GetStreamCounts() *FfprobeStreamCounts

func (*FfprobeOtherSummary) GetTags

func (f *FfprobeOtherSummary) GetTags() map[string]string

func (*FfprobeOtherSummary) MarshalJSON

func (f *FfprobeOtherSummary) MarshalJSON() ([]byte, error)

func (*FfprobeOtherSummary) SetBitrateBps

func (f *FfprobeOtherSummary) SetBitrateBps(bitrateBps *int)

SetBitrateBps sets the BitrateBps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeOtherSummary) SetContainer

func (f *FfprobeOtherSummary) SetContainer(container *string)

SetContainer sets the Container field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeOtherSummary) SetDurationSec

func (f *FfprobeOtherSummary) SetDurationSec(durationSec *float64)

SetDurationSec sets the DurationSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeOtherSummary) SetFormatLongName

func (f *FfprobeOtherSummary) SetFormatLongName(formatLongName *string)

SetFormatLongName sets the FormatLongName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeOtherSummary) SetSizeBytes

func (f *FfprobeOtherSummary) SetSizeBytes(sizeBytes *int)

SetSizeBytes sets the SizeBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeOtherSummary) SetStartTimeSec

func (f *FfprobeOtherSummary) SetStartTimeSec(startTimeSec *float64)

SetStartTimeSec sets the StartTimeSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeOtherSummary) SetStreamCounts

func (f *FfprobeOtherSummary) SetStreamCounts(streamCounts *FfprobeStreamCounts)

SetStreamCounts sets the StreamCounts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeOtherSummary) SetTags

func (f *FfprobeOtherSummary) SetTags(tags map[string]string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeOtherSummary) String

func (f *FfprobeOtherSummary) String() string

func (*FfprobeOtherSummary) UnmarshalJSON

func (f *FfprobeOtherSummary) UnmarshalJSON(data []byte) error

type FfprobePacket

type FfprobePacket struct {
	CodecType   *string `json:"codec_type,omitempty" url:"codec_type,omitempty"`
	StreamIndex *int    `json:"stream_index,omitempty" url:"stream_index,omitempty"`

	ExtraProperties map[string]interface{} `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*FfprobePacket) GetCodecType

func (f *FfprobePacket) GetCodecType() *string

func (*FfprobePacket) GetExtraProperties

func (f *FfprobePacket) GetExtraProperties() map[string]interface{}

func (*FfprobePacket) GetStreamIndex

func (f *FfprobePacket) GetStreamIndex() *int

func (*FfprobePacket) MarshalJSON

func (f *FfprobePacket) MarshalJSON() ([]byte, error)

func (*FfprobePacket) SetCodecType

func (f *FfprobePacket) SetCodecType(codecType *string)

SetCodecType sets the CodecType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobePacket) SetStreamIndex

func (f *FfprobePacket) SetStreamIndex(streamIndex *int)

SetStreamIndex sets the StreamIndex field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobePacket) String

func (f *FfprobePacket) String() string

func (*FfprobePacket) UnmarshalJSON

func (f *FfprobePacket) UnmarshalJSON(data []byte) error

type FfprobeParams

type FfprobeParams struct {
	// A raw ffprobe command, run essentially as written. Minimal form is just the input media URL. Sensible defaults (JSON output, format, streams, chapters) are auto-filled only for flags you did not specify. The "ffprobe" prefix is optional.
	Command string `json:"command" url:"command"`
	// Max execution time in seconds (defaults to your plan's max job timeout)
	Timeout *int `json:"timeout,omitempty" url:"timeout,omitempty"`
	// contains filtered or unexported fields
}

Params of the ffprobe job.

func (*FfprobeParams) GetCommand

func (f *FfprobeParams) GetCommand() string

func (*FfprobeParams) GetExtraProperties

func (f *FfprobeParams) GetExtraProperties() map[string]interface{}

func (*FfprobeParams) GetTimeout

func (f *FfprobeParams) GetTimeout() *int

func (*FfprobeParams) MarshalJSON

func (f *FfprobeParams) MarshalJSON() ([]byte, error)

func (*FfprobeParams) SetCommand

func (f *FfprobeParams) SetCommand(command string)

SetCommand sets the Command field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeParams) SetTimeout

func (f *FfprobeParams) SetTimeout(timeout *int)

SetTimeout sets the Timeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeParams) String

func (f *FfprobeParams) String() string

func (*FfprobeParams) UnmarshalJSON

func (f *FfprobeParams) UnmarshalJSON(data []byte) error

type FfprobeProgram

type FfprobeProgram struct {
	ProgramID *int              `json:"program_id,omitempty" url:"program_id,omitempty"`
	NbStreams *int              `json:"nb_streams,omitempty" url:"nb_streams,omitempty"`
	Streams   []*FfprobeStream  `json:"streams,omitempty" url:"streams,omitempty"`
	Tags      map[string]string `json:"tags,omitempty" url:"tags,omitempty"`

	ExtraProperties map[string]interface{} `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*FfprobeProgram) GetExtraProperties

func (f *FfprobeProgram) GetExtraProperties() map[string]interface{}

func (*FfprobeProgram) GetNbStreams

func (f *FfprobeProgram) GetNbStreams() *int

func (*FfprobeProgram) GetProgramID

func (f *FfprobeProgram) GetProgramID() *int

func (*FfprobeProgram) GetStreams

func (f *FfprobeProgram) GetStreams() []*FfprobeStream

func (*FfprobeProgram) GetTags

func (f *FfprobeProgram) GetTags() map[string]string

func (*FfprobeProgram) MarshalJSON

func (f *FfprobeProgram) MarshalJSON() ([]byte, error)

func (*FfprobeProgram) SetNbStreams

func (f *FfprobeProgram) SetNbStreams(nbStreams *int)

SetNbStreams sets the NbStreams field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeProgram) SetProgramID

func (f *FfprobeProgram) SetProgramID(programID *int)

SetProgramID sets the ProgramID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeProgram) SetStreams

func (f *FfprobeProgram) SetStreams(streams []*FfprobeStream)

SetStreams sets the Streams field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeProgram) SetTags

func (f *FfprobeProgram) SetTags(tags map[string]string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeProgram) String

func (f *FfprobeProgram) String() string

func (*FfprobeProgram) UnmarshalJSON

func (f *FfprobeProgram) UnmarshalJSON(data []byte) error

type FfprobeResult

type FfprobeResult struct {
	Summary  *FfprobeSummary   `json:"summary,omitempty" url:"summary,omitempty"`
	Format   *FfprobeFormat    `json:"format,omitempty" url:"format,omitempty"`
	Streams  []*FfprobeStream  `json:"streams,omitempty" url:"streams,omitempty"`
	Chapters []*FfprobeChapter `json:"chapters,omitempty" url:"chapters,omitempty"`
	// -show_programs (MPEG-TS)
	Programs []*FfprobeProgram `json:"programs,omitempty" url:"programs,omitempty"`
	// -show_stream_groups
	StreamGroups []*FfprobeStreamGroup `json:"stream_groups,omitempty" url:"stream_groups,omitempty"`
	// -show_frames, inline when small
	Frames []*FfprobeFrame `json:"frames,omitempty" url:"frames,omitempty"`
	// -show_packets, inline when small
	Packets []*FfprobePacket `json:"packets,omitempty" url:"packets,omitempty"`
	// ffprobe's text output, verbatim, when the command chose a writer other than JSON
	Stdout   *string           `json:"stdout,omitempty" url:"stdout,omitempty"`
	Warnings []*FfprobeWarning `json:"warnings,omitempty" url:"warnings,omitempty"`
	// ffprobe diagnostics, when non-empty
	Stderr *string `json:"stderr,omitempty" url:"stderr,omitempty"`
	// The complete report, when a frame or packet dump was too big to inline
	ReportURL *string `json:"reportUrl,omitempty" url:"reportUrl,omitempty"`
	// contains filtered or unexported fields
}

`output.data` of a complete ffprobe job. Every section is present only when the run produced it.

func (*FfprobeResult) GetChapters

func (f *FfprobeResult) GetChapters() []*FfprobeChapter

func (*FfprobeResult) GetExtraProperties

func (f *FfprobeResult) GetExtraProperties() map[string]interface{}

func (*FfprobeResult) GetFormat

func (f *FfprobeResult) GetFormat() *FfprobeFormat

func (*FfprobeResult) GetFrames

func (f *FfprobeResult) GetFrames() []*FfprobeFrame

func (*FfprobeResult) GetPackets

func (f *FfprobeResult) GetPackets() []*FfprobePacket

func (*FfprobeResult) GetPrograms

func (f *FfprobeResult) GetPrograms() []*FfprobeProgram

func (*FfprobeResult) GetReportURL

func (f *FfprobeResult) GetReportURL() *string

func (*FfprobeResult) GetStderr

func (f *FfprobeResult) GetStderr() *string

func (*FfprobeResult) GetStdout

func (f *FfprobeResult) GetStdout() *string

func (*FfprobeResult) GetStreamGroups

func (f *FfprobeResult) GetStreamGroups() []*FfprobeStreamGroup

func (*FfprobeResult) GetStreams

func (f *FfprobeResult) GetStreams() []*FfprobeStream

func (*FfprobeResult) GetSummary

func (f *FfprobeResult) GetSummary() *FfprobeSummary

func (*FfprobeResult) GetWarnings

func (f *FfprobeResult) GetWarnings() []*FfprobeWarning

func (*FfprobeResult) MarshalJSON

func (f *FfprobeResult) MarshalJSON() ([]byte, error)

func (*FfprobeResult) SetChapters

func (f *FfprobeResult) SetChapters(chapters []*FfprobeChapter)

SetChapters sets the Chapters field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeResult) SetFormat

func (f *FfprobeResult) SetFormat(format *FfprobeFormat)

SetFormat sets the Format field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeResult) SetFrames

func (f *FfprobeResult) SetFrames(frames []*FfprobeFrame)

SetFrames sets the Frames field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeResult) SetPackets

func (f *FfprobeResult) SetPackets(packets []*FfprobePacket)

SetPackets sets the Packets field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeResult) SetPrograms

func (f *FfprobeResult) SetPrograms(programs []*FfprobeProgram)

SetPrograms sets the Programs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeResult) SetReportURL

func (f *FfprobeResult) SetReportURL(reportURL *string)

SetReportURL sets the ReportURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeResult) SetStderr

func (f *FfprobeResult) SetStderr(stderr *string)

SetStderr sets the Stderr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeResult) SetStdout

func (f *FfprobeResult) SetStdout(stdout *string)

SetStdout sets the Stdout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeResult) SetStreamGroups

func (f *FfprobeResult) SetStreamGroups(streamGroups []*FfprobeStreamGroup)

SetStreamGroups sets the StreamGroups field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeResult) SetStreams

func (f *FfprobeResult) SetStreams(streams []*FfprobeStream)

SetStreams sets the Streams field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeResult) SetSummary

func (f *FfprobeResult) SetSummary(summary *FfprobeSummary)

SetSummary sets the Summary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeResult) SetWarnings

func (f *FfprobeResult) SetWarnings(warnings []*FfprobeWarning)

SetWarnings sets the Warnings field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeResult) String

func (f *FfprobeResult) String() string

func (*FfprobeResult) UnmarshalJSON

func (f *FfprobeResult) UnmarshalJSON(data []byte) error

type FfprobeStream

type FfprobeStream struct {
	Index              int                     `json:"index" url:"index"`
	CodecType          *FfprobeStreamCodecType `json:"codec_type,omitempty" url:"codec_type,omitempty"`
	CodecName          *string                 `json:"codec_name,omitempty" url:"codec_name,omitempty"`
	CodecLongName      *string                 `json:"codec_long_name,omitempty" url:"codec_long_name,omitempty"`
	Profile            *string                 `json:"profile,omitempty" url:"profile,omitempty"`
	Width              *int                    `json:"width,omitempty" url:"width,omitempty"`
	Height             *int                    `json:"height,omitempty" url:"height,omitempty"`
	CodedWidth         *int                    `json:"coded_width,omitempty" url:"coded_width,omitempty"`
	CodedHeight        *int                    `json:"coded_height,omitempty" url:"coded_height,omitempty"`
	SampleAspectRatio  *string                 `json:"sample_aspect_ratio,omitempty" url:"sample_aspect_ratio,omitempty"`
	DisplayAspectRatio *string                 `json:"display_aspect_ratio,omitempty" url:"display_aspect_ratio,omitempty"`
	PixFmt             *string                 `json:"pix_fmt,omitempty" url:"pix_fmt,omitempty"`
	FieldOrder         *string                 `json:"field_order,omitempty" url:"field_order,omitempty"`
	RFrameRate         *string                 `json:"r_frame_rate,omitempty" url:"r_frame_rate,omitempty"`
	AvgFrameRate       *string                 `json:"avg_frame_rate,omitempty" url:"avg_frame_rate,omitempty"`
	SampleFmt          *string                 `json:"sample_fmt,omitempty" url:"sample_fmt,omitempty"`
	SampleRate         *string                 `json:"sample_rate,omitempty" url:"sample_rate,omitempty"`
	Channels           *int                    `json:"channels,omitempty" url:"channels,omitempty"`
	ChannelLayout      *string                 `json:"channel_layout,omitempty" url:"channel_layout,omitempty"`
	BitRate            *string                 `json:"bit_rate,omitempty" url:"bit_rate,omitempty"`
	Duration           *string                 `json:"duration,omitempty" url:"duration,omitempty"`
	NbFrames           *string                 `json:"nb_frames,omitempty" url:"nb_frames,omitempty"`
	NbReadFrames       *string                 `json:"nb_read_frames,omitempty" url:"nb_read_frames,omitempty"`
	Disposition        map[string]float64      `json:"disposition,omitempty" url:"disposition,omitempty"`
	Tags               map[string]string       `json:"tags,omitempty" url:"tags,omitempty"`

	ExtraProperties map[string]interface{} `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*FfprobeStream) GetAvgFrameRate

func (f *FfprobeStream) GetAvgFrameRate() *string

func (*FfprobeStream) GetBitRate

func (f *FfprobeStream) GetBitRate() *string

func (*FfprobeStream) GetChannelLayout

func (f *FfprobeStream) GetChannelLayout() *string

func (*FfprobeStream) GetChannels

func (f *FfprobeStream) GetChannels() *int

func (*FfprobeStream) GetCodecLongName

func (f *FfprobeStream) GetCodecLongName() *string

func (*FfprobeStream) GetCodecName

func (f *FfprobeStream) GetCodecName() *string

func (*FfprobeStream) GetCodecType

func (f *FfprobeStream) GetCodecType() *FfprobeStreamCodecType

func (*FfprobeStream) GetCodedHeight

func (f *FfprobeStream) GetCodedHeight() *int

func (*FfprobeStream) GetCodedWidth

func (f *FfprobeStream) GetCodedWidth() *int

func (*FfprobeStream) GetDisplayAspectRatio

func (f *FfprobeStream) GetDisplayAspectRatio() *string

func (*FfprobeStream) GetDisposition

func (f *FfprobeStream) GetDisposition() map[string]float64

func (*FfprobeStream) GetDuration

func (f *FfprobeStream) GetDuration() *string

func (*FfprobeStream) GetExtraProperties

func (f *FfprobeStream) GetExtraProperties() map[string]interface{}

func (*FfprobeStream) GetFieldOrder

func (f *FfprobeStream) GetFieldOrder() *string

func (*FfprobeStream) GetHeight

func (f *FfprobeStream) GetHeight() *int

func (*FfprobeStream) GetIndex

func (f *FfprobeStream) GetIndex() int

func (*FfprobeStream) GetNbFrames

func (f *FfprobeStream) GetNbFrames() *string

func (*FfprobeStream) GetNbReadFrames

func (f *FfprobeStream) GetNbReadFrames() *string

func (*FfprobeStream) GetPixFmt

func (f *FfprobeStream) GetPixFmt() *string

func (*FfprobeStream) GetProfile

func (f *FfprobeStream) GetProfile() *string

func (*FfprobeStream) GetRFrameRate

func (f *FfprobeStream) GetRFrameRate() *string

func (*FfprobeStream) GetSampleAspectRatio

func (f *FfprobeStream) GetSampleAspectRatio() *string

func (*FfprobeStream) GetSampleFmt

func (f *FfprobeStream) GetSampleFmt() *string

func (*FfprobeStream) GetSampleRate

func (f *FfprobeStream) GetSampleRate() *string

func (*FfprobeStream) GetTags

func (f *FfprobeStream) GetTags() map[string]string

func (*FfprobeStream) GetWidth

func (f *FfprobeStream) GetWidth() *int

func (*FfprobeStream) MarshalJSON

func (f *FfprobeStream) MarshalJSON() ([]byte, error)

func (*FfprobeStream) SetAvgFrameRate

func (f *FfprobeStream) SetAvgFrameRate(avgFrameRate *string)

SetAvgFrameRate sets the AvgFrameRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetBitRate

func (f *FfprobeStream) SetBitRate(bitRate *string)

SetBitRate sets the BitRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetChannelLayout

func (f *FfprobeStream) SetChannelLayout(channelLayout *string)

SetChannelLayout sets the ChannelLayout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetChannels

func (f *FfprobeStream) SetChannels(channels *int)

SetChannels sets the Channels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetCodecLongName

func (f *FfprobeStream) SetCodecLongName(codecLongName *string)

SetCodecLongName sets the CodecLongName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetCodecName

func (f *FfprobeStream) SetCodecName(codecName *string)

SetCodecName sets the CodecName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetCodecType

func (f *FfprobeStream) SetCodecType(codecType *FfprobeStreamCodecType)

SetCodecType sets the CodecType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetCodedHeight

func (f *FfprobeStream) SetCodedHeight(codedHeight *int)

SetCodedHeight sets the CodedHeight field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetCodedWidth

func (f *FfprobeStream) SetCodedWidth(codedWidth *int)

SetCodedWidth sets the CodedWidth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetDisplayAspectRatio

func (f *FfprobeStream) SetDisplayAspectRatio(displayAspectRatio *string)

SetDisplayAspectRatio sets the DisplayAspectRatio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetDisposition

func (f *FfprobeStream) SetDisposition(disposition map[string]float64)

SetDisposition sets the Disposition field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetDuration

func (f *FfprobeStream) SetDuration(duration *string)

SetDuration sets the Duration field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetFieldOrder

func (f *FfprobeStream) SetFieldOrder(fieldOrder *string)

SetFieldOrder sets the FieldOrder field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetHeight

func (f *FfprobeStream) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetIndex

func (f *FfprobeStream) SetIndex(index int)

SetIndex sets the Index field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetNbFrames

func (f *FfprobeStream) SetNbFrames(nbFrames *string)

SetNbFrames sets the NbFrames field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetNbReadFrames

func (f *FfprobeStream) SetNbReadFrames(nbReadFrames *string)

SetNbReadFrames sets the NbReadFrames field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetPixFmt

func (f *FfprobeStream) SetPixFmt(pixFmt *string)

SetPixFmt sets the PixFmt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetProfile

func (f *FfprobeStream) SetProfile(profile *string)

SetProfile sets the Profile field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetRFrameRate

func (f *FfprobeStream) SetRFrameRate(rFrameRate *string)

SetRFrameRate sets the RFrameRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetSampleAspectRatio

func (f *FfprobeStream) SetSampleAspectRatio(sampleAspectRatio *string)

SetSampleAspectRatio sets the SampleAspectRatio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetSampleFmt

func (f *FfprobeStream) SetSampleFmt(sampleFmt *string)

SetSampleFmt sets the SampleFmt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetSampleRate

func (f *FfprobeStream) SetSampleRate(sampleRate *string)

SetSampleRate sets the SampleRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetTags

func (f *FfprobeStream) SetTags(tags map[string]string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) SetWidth

func (f *FfprobeStream) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStream) String

func (f *FfprobeStream) String() string

func (*FfprobeStream) UnmarshalJSON

func (f *FfprobeStream) UnmarshalJSON(data []byte) error

type FfprobeStreamCodecType

type FfprobeStreamCodecType string
const (
	FfprobeStreamCodecTypeVideo      FfprobeStreamCodecType = "video"
	FfprobeStreamCodecTypeAudio      FfprobeStreamCodecType = "audio"
	FfprobeStreamCodecTypeSubtitle   FfprobeStreamCodecType = "subtitle"
	FfprobeStreamCodecTypeData       FfprobeStreamCodecType = "data"
	FfprobeStreamCodecTypeAttachment FfprobeStreamCodecType = "attachment"
)

func NewFfprobeStreamCodecTypeFromString

func NewFfprobeStreamCodecTypeFromString(s string) (FfprobeStreamCodecType, error)

func (FfprobeStreamCodecType) Ptr

type FfprobeStreamCounts

type FfprobeStreamCounts struct {
	Video      int `json:"video" url:"video"`
	Audio      int `json:"audio" url:"audio"`
	Subtitle   int `json:"subtitle" url:"subtitle"`
	Data       int `json:"data" url:"data"`
	Attachment int `json:"attachment" url:"attachment"`
	// contains filtered or unexported fields
}

func (*FfprobeStreamCounts) GetAttachment

func (f *FfprobeStreamCounts) GetAttachment() int

func (*FfprobeStreamCounts) GetAudio

func (f *FfprobeStreamCounts) GetAudio() int

func (*FfprobeStreamCounts) GetData

func (f *FfprobeStreamCounts) GetData() int

func (*FfprobeStreamCounts) GetExtraProperties

func (f *FfprobeStreamCounts) GetExtraProperties() map[string]interface{}

func (*FfprobeStreamCounts) GetSubtitle

func (f *FfprobeStreamCounts) GetSubtitle() int

func (*FfprobeStreamCounts) GetVideo

func (f *FfprobeStreamCounts) GetVideo() int

func (*FfprobeStreamCounts) MarshalJSON

func (f *FfprobeStreamCounts) MarshalJSON() ([]byte, error)

func (*FfprobeStreamCounts) SetAttachment

func (f *FfprobeStreamCounts) SetAttachment(attachment int)

SetAttachment sets the Attachment field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStreamCounts) SetAudio

func (f *FfprobeStreamCounts) SetAudio(audio int)

SetAudio sets the Audio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStreamCounts) SetData

func (f *FfprobeStreamCounts) SetData(data int)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStreamCounts) SetSubtitle

func (f *FfprobeStreamCounts) SetSubtitle(subtitle int)

SetSubtitle sets the Subtitle field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStreamCounts) SetVideo

func (f *FfprobeStreamCounts) SetVideo(video int)

SetVideo sets the Video field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStreamCounts) String

func (f *FfprobeStreamCounts) String() string

func (*FfprobeStreamCounts) UnmarshalJSON

func (f *FfprobeStreamCounts) UnmarshalJSON(data []byte) error

type FfprobeStreamGroup

type FfprobeStreamGroup struct {
	Index     *int    `json:"index,omitempty" url:"index,omitempty"`
	Type      *string `json:"type,omitempty" url:"type,omitempty"`
	NbStreams *int    `json:"nb_streams,omitempty" url:"nb_streams,omitempty"`

	ExtraProperties map[string]interface{} `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*FfprobeStreamGroup) GetExtraProperties

func (f *FfprobeStreamGroup) GetExtraProperties() map[string]interface{}

func (*FfprobeStreamGroup) GetIndex

func (f *FfprobeStreamGroup) GetIndex() *int

func (*FfprobeStreamGroup) GetNbStreams

func (f *FfprobeStreamGroup) GetNbStreams() *int

func (*FfprobeStreamGroup) GetType

func (f *FfprobeStreamGroup) GetType() *string

func (*FfprobeStreamGroup) MarshalJSON

func (f *FfprobeStreamGroup) MarshalJSON() ([]byte, error)

func (*FfprobeStreamGroup) SetIndex

func (f *FfprobeStreamGroup) SetIndex(index *int)

SetIndex sets the Index field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStreamGroup) SetNbStreams

func (f *FfprobeStreamGroup) SetNbStreams(nbStreams *int)

SetNbStreams sets the NbStreams field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStreamGroup) SetType

func (f *FfprobeStreamGroup) SetType(type_ *string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeStreamGroup) String

func (f *FfprobeStreamGroup) String() string

func (*FfprobeStreamGroup) UnmarshalJSON

func (f *FfprobeStreamGroup) UnmarshalJSON(data []byte) error

type FfprobeSummary

type FfprobeSummary struct {
	Kind  string
	Video *FfprobeVideoSummary
	Audio *FfprobeAudioSummary
	Image *FfprobeImageSummary
	Other *FfprobeOtherSummary
	// contains filtered or unexported fields
}

Normalized summary, present when the report is JSON with format and streams. Narrow on `kind` before reading `video`, `audio` or `image`.

func (*FfprobeSummary) Accept

func (f *FfprobeSummary) Accept(visitor FfprobeSummaryVisitor) error

func (*FfprobeSummary) GetAudio

func (f *FfprobeSummary) GetAudio() *FfprobeAudioSummary

func (*FfprobeSummary) GetImage

func (f *FfprobeSummary) GetImage() *FfprobeImageSummary

func (*FfprobeSummary) GetKind

func (f *FfprobeSummary) GetKind() string

func (*FfprobeSummary) GetOther

func (f *FfprobeSummary) GetOther() *FfprobeOtherSummary

func (*FfprobeSummary) GetVideo

func (f *FfprobeSummary) GetVideo() *FfprobeVideoSummary

func (FfprobeSummary) MarshalJSON

func (f FfprobeSummary) MarshalJSON() ([]byte, error)

func (*FfprobeSummary) UnmarshalJSON

func (f *FfprobeSummary) UnmarshalJSON(data []byte) error

type FfprobeSummaryVisitor

type FfprobeSummaryVisitor interface {
	VisitVideo(*FfprobeVideoSummary) error
	VisitAudio(*FfprobeAudioSummary) error
	VisitImage(*FfprobeImageSummary) error
	VisitOther(*FfprobeOtherSummary) error
}

type FfprobeVideoStream

type FfprobeVideoStream struct {
	Codec              *string `json:"codec,omitempty" url:"codec,omitempty"`
	Profile            *string `json:"profile,omitempty" url:"profile,omitempty"`
	Width              *int    `json:"width,omitempty" url:"width,omitempty"`
	Height             *int    `json:"height,omitempty" url:"height,omitempty"`
	DisplayAspectRatio *string `json:"displayAspectRatio,omitempty" url:"displayAspectRatio,omitempty"`
	PixelFormat        *string `json:"pixelFormat,omitempty" url:"pixelFormat,omitempty"`
	BitDepth           *int    `json:"bitDepth,omitempty" url:"bitDepth,omitempty"`
	// avg_frame_rate as a number; null for a 0/0 rate
	Fps                 *float64 `json:"fps,omitempty" url:"fps,omitempty"`
	IsVariableFrameRate bool     `json:"isVariableFrameRate" url:"isVariableFrameRate"`
	Rotation            float64  `json:"rotation" url:"rotation"`
	// True for a PQ (smpte2084) or HLG (arib-std-b67) transfer
	IsHdr bool `json:"isHdr" url:"isHdr"`
	// Per-stream bitrate; null when the container omits it
	BitrateBps *int    `json:"bitrateBps,omitempty" url:"bitrateBps,omitempty"`
	Language   *string `json:"language,omitempty" url:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*FfprobeVideoStream) GetBitDepth

func (f *FfprobeVideoStream) GetBitDepth() *int

func (*FfprobeVideoStream) GetBitrateBps

func (f *FfprobeVideoStream) GetBitrateBps() *int

func (*FfprobeVideoStream) GetCodec

func (f *FfprobeVideoStream) GetCodec() *string

func (*FfprobeVideoStream) GetDisplayAspectRatio

func (f *FfprobeVideoStream) GetDisplayAspectRatio() *string

func (*FfprobeVideoStream) GetExtraProperties

func (f *FfprobeVideoStream) GetExtraProperties() map[string]interface{}

func (*FfprobeVideoStream) GetFps

func (f *FfprobeVideoStream) GetFps() *float64

func (*FfprobeVideoStream) GetHeight

func (f *FfprobeVideoStream) GetHeight() *int

func (*FfprobeVideoStream) GetIsHdr

func (f *FfprobeVideoStream) GetIsHdr() bool

func (*FfprobeVideoStream) GetIsVariableFrameRate

func (f *FfprobeVideoStream) GetIsVariableFrameRate() bool

func (*FfprobeVideoStream) GetLanguage

func (f *FfprobeVideoStream) GetLanguage() *string

func (*FfprobeVideoStream) GetPixelFormat

func (f *FfprobeVideoStream) GetPixelFormat() *string

func (*FfprobeVideoStream) GetProfile

func (f *FfprobeVideoStream) GetProfile() *string

func (*FfprobeVideoStream) GetRotation

func (f *FfprobeVideoStream) GetRotation() float64

func (*FfprobeVideoStream) GetWidth

func (f *FfprobeVideoStream) GetWidth() *int

func (*FfprobeVideoStream) MarshalJSON

func (f *FfprobeVideoStream) MarshalJSON() ([]byte, error)

func (*FfprobeVideoStream) SetBitDepth

func (f *FfprobeVideoStream) SetBitDepth(bitDepth *int)

SetBitDepth sets the BitDepth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) SetBitrateBps

func (f *FfprobeVideoStream) SetBitrateBps(bitrateBps *int)

SetBitrateBps sets the BitrateBps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) SetCodec

func (f *FfprobeVideoStream) SetCodec(codec *string)

SetCodec sets the Codec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) SetDisplayAspectRatio

func (f *FfprobeVideoStream) SetDisplayAspectRatio(displayAspectRatio *string)

SetDisplayAspectRatio sets the DisplayAspectRatio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) SetFps

func (f *FfprobeVideoStream) SetFps(fps *float64)

SetFps sets the Fps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) SetHeight

func (f *FfprobeVideoStream) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) SetIsHdr

func (f *FfprobeVideoStream) SetIsHdr(isHdr bool)

SetIsHdr sets the IsHdr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) SetIsVariableFrameRate

func (f *FfprobeVideoStream) SetIsVariableFrameRate(isVariableFrameRate bool)

SetIsVariableFrameRate sets the IsVariableFrameRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) SetLanguage

func (f *FfprobeVideoStream) SetLanguage(language *string)

SetLanguage sets the Language field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) SetPixelFormat

func (f *FfprobeVideoStream) SetPixelFormat(pixelFormat *string)

SetPixelFormat sets the PixelFormat field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) SetProfile

func (f *FfprobeVideoStream) SetProfile(profile *string)

SetProfile sets the Profile field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) SetRotation

func (f *FfprobeVideoStream) SetRotation(rotation float64)

SetRotation sets the Rotation field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) SetWidth

func (f *FfprobeVideoStream) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoStream) String

func (f *FfprobeVideoStream) String() string

func (*FfprobeVideoStream) UnmarshalJSON

func (f *FfprobeVideoStream) UnmarshalJSON(data []byte) error

type FfprobeVideoSummary

type FfprobeVideoSummary struct {
	// format_name, e.g. "mov,mp4,m4a,3gp,3g2,mj2"
	Container      *string `json:"container,omitempty" url:"container,omitempty"`
	FormatLongName *string `json:"formatLongName,omitempty" url:"formatLongName,omitempty"`
	// Duration in seconds
	DurationSec *float64 `json:"durationSec,omitempty" url:"durationSec,omitempty"`
	SizeBytes   *int     `json:"sizeBytes,omitempty" url:"sizeBytes,omitempty"`
	// Container bitrate; null when the container omits it
	BitrateBps   *int                 `json:"bitrateBps,omitempty" url:"bitrateBps,omitempty"`
	StartTimeSec *float64             `json:"startTimeSec,omitempty" url:"startTimeSec,omitempty"`
	StreamCounts *FfprobeStreamCounts `json:"streamCounts" url:"streamCounts"`
	// Container-level tags, {} when none
	Tags  map[string]string   `json:"tags" url:"tags"`
	Video *FfprobeVideoStream `json:"video" url:"video"`
	Audio *FfprobeAudioStream `json:"audio,omitempty" url:"audio,omitempty"`
	// contains filtered or unexported fields
}

func (*FfprobeVideoSummary) GetAudio

func (f *FfprobeVideoSummary) GetAudio() *FfprobeAudioStream

func (*FfprobeVideoSummary) GetBitrateBps

func (f *FfprobeVideoSummary) GetBitrateBps() *int

func (*FfprobeVideoSummary) GetContainer

func (f *FfprobeVideoSummary) GetContainer() *string

func (*FfprobeVideoSummary) GetDurationSec

func (f *FfprobeVideoSummary) GetDurationSec() *float64

func (*FfprobeVideoSummary) GetExtraProperties

func (f *FfprobeVideoSummary) GetExtraProperties() map[string]interface{}

func (*FfprobeVideoSummary) GetFormatLongName

func (f *FfprobeVideoSummary) GetFormatLongName() *string

func (*FfprobeVideoSummary) GetSizeBytes

func (f *FfprobeVideoSummary) GetSizeBytes() *int

func (*FfprobeVideoSummary) GetStartTimeSec

func (f *FfprobeVideoSummary) GetStartTimeSec() *float64

func (*FfprobeVideoSummary) GetStreamCounts

func (f *FfprobeVideoSummary) GetStreamCounts() *FfprobeStreamCounts

func (*FfprobeVideoSummary) GetTags

func (f *FfprobeVideoSummary) GetTags() map[string]string

func (*FfprobeVideoSummary) GetVideo

func (f *FfprobeVideoSummary) GetVideo() *FfprobeVideoStream

func (*FfprobeVideoSummary) MarshalJSON

func (f *FfprobeVideoSummary) MarshalJSON() ([]byte, error)

func (*FfprobeVideoSummary) SetAudio

func (f *FfprobeVideoSummary) SetAudio(audio *FfprobeAudioStream)

SetAudio sets the Audio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoSummary) SetBitrateBps

func (f *FfprobeVideoSummary) SetBitrateBps(bitrateBps *int)

SetBitrateBps sets the BitrateBps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoSummary) SetContainer

func (f *FfprobeVideoSummary) SetContainer(container *string)

SetContainer sets the Container field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoSummary) SetDurationSec

func (f *FfprobeVideoSummary) SetDurationSec(durationSec *float64)

SetDurationSec sets the DurationSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoSummary) SetFormatLongName

func (f *FfprobeVideoSummary) SetFormatLongName(formatLongName *string)

SetFormatLongName sets the FormatLongName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoSummary) SetSizeBytes

func (f *FfprobeVideoSummary) SetSizeBytes(sizeBytes *int)

SetSizeBytes sets the SizeBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoSummary) SetStartTimeSec

func (f *FfprobeVideoSummary) SetStartTimeSec(startTimeSec *float64)

SetStartTimeSec sets the StartTimeSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoSummary) SetStreamCounts

func (f *FfprobeVideoSummary) SetStreamCounts(streamCounts *FfprobeStreamCounts)

SetStreamCounts sets the StreamCounts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoSummary) SetTags

func (f *FfprobeVideoSummary) SetTags(tags map[string]string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoSummary) SetVideo

func (f *FfprobeVideoSummary) SetVideo(video *FfprobeVideoStream)

SetVideo sets the Video field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeVideoSummary) String

func (f *FfprobeVideoSummary) String() string

func (*FfprobeVideoSummary) UnmarshalJSON

func (f *FfprobeVideoSummary) UnmarshalJSON(data []byte) error

type FfprobeWarning

type FfprobeWarning struct {
	Code    string `json:"code" url:"code"`
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*FfprobeWarning) GetCode

func (f *FfprobeWarning) GetCode() string

func (*FfprobeWarning) GetExtraProperties

func (f *FfprobeWarning) GetExtraProperties() map[string]interface{}

func (*FfprobeWarning) GetMessage

func (f *FfprobeWarning) GetMessage() string

func (*FfprobeWarning) MarshalJSON

func (f *FfprobeWarning) MarshalJSON() ([]byte, error)

func (*FfprobeWarning) SetCode

func (f *FfprobeWarning) SetCode(code string)

SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeWarning) SetMessage

func (f *FfprobeWarning) SetMessage(message string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FfprobeWarning) String

func (f *FfprobeWarning) String() string

func (*FfprobeWarning) UnmarshalJSON

func (f *FfprobeWarning) UnmarshalJSON(data []byte) error

type FileParam

type FileParam struct {
	io.Reader
	// contains filtered or unexported fields
}

FileParam is a file type suitable for multipart/form-data uploads.

func NewFileParam

func NewFileParam(
	reader io.Reader,
	filename string,
	contentType string,
	opts ...FileParamOption,
) *FileParam

NewFileParam returns a *FileParam type suitable for multipart/form-data uploads. All file upload endpoints accept a simple io.Reader, which is usually created by opening a file via os.Open.

However, some endpoints require additional metadata about the file such as a specific Content-Type or custom filename. FileParam makes it easier to create the correct type signature for these endpoints.

func (*FileParam) ContentType

func (f *FileParam) ContentType() string

func (*FileParam) Name

func (f *FileParam) Name() string

type FileParamOption

type FileParamOption interface {
	// contains filtered or unexported methods
}

FileParamOption adapts the behavior of the FileParam. No options are implemented yet, but this interface allows for future extensibility.

type ForbiddenError

type ForbiddenError struct {
	*core.APIError
	Body *ErrorResponse
}

Above your plan: the job type, GPU, the timeout, or a compose video's frame size or rate. `error.details[0].upgradeTo` names the plan that runs it.

func (*ForbiddenError) GetBody

func (f *ForbiddenError) GetBody() *ErrorResponse

func (*ForbiddenError) MarshalJSON

func (f *ForbiddenError) MarshalJSON() ([]byte, error)

func (*ForbiddenError) UnmarshalJSON

func (f *ForbiddenError) UnmarshalJSON(data []byte) error

func (*ForbiddenError) Unwrap

func (f *ForbiddenError) Unwrap() error

type GenModel

type GenModel struct {
	// Model identifier — pass as params.model
	ID string `json:"id" url:"id"`
	// Job types this model supports
	Jobs []string `json:"jobs" url:"jobs"`
	// Pricing/quality tier alias, or null for a model with no tier alias
	Tier *GenModelTier `json:"tier,omitempty" url:"tier,omitempty"`
	// True while this model is pulled from tier resolution pending a cost/quality re-evaluation. Still listed for transparency, but submitting it (even by exact id) is rejected.
	UnderReview bool `json:"underReview" url:"underReview"`
	// Relative price, cheapest ($) to priciest ($$$$). Not a dollar estimate.
	PriceTier GenModelPriceTier `json:"priceTier" url:"priceTier"`
	// Max reference images accepted (0 for generate-only models)
	MaxRefImages int `json:"maxRefImages" url:"maxRefImages"`
	// Denoising step range, or null when the model has a fixed step count
	Steps    *GenModelSteps    `json:"steps,omitempty" url:"steps,omitempty"`
	Supports *GenModelSupports `json:"supports" url:"supports"`
	// Whether prompt enhancement defaults to on for this model
	EnhanceDefault bool `json:"enhanceDefault" url:"enhanceDefault"`
	// Model availability status
	Status GenModelStatus `json:"status" url:"status"`
	// contains filtered or unexported fields
}

func (*GenModel) GetEnhanceDefault

func (g *GenModel) GetEnhanceDefault() bool

func (*GenModel) GetExtraProperties

func (g *GenModel) GetExtraProperties() map[string]interface{}

func (*GenModel) GetID

func (g *GenModel) GetID() string

func (*GenModel) GetJobs

func (g *GenModel) GetJobs() []string

func (*GenModel) GetMaxRefImages

func (g *GenModel) GetMaxRefImages() int

func (*GenModel) GetPriceTier

func (g *GenModel) GetPriceTier() GenModelPriceTier

func (*GenModel) GetStatus

func (g *GenModel) GetStatus() GenModelStatus

func (*GenModel) GetSteps

func (g *GenModel) GetSteps() *GenModelSteps

func (*GenModel) GetSupports

func (g *GenModel) GetSupports() *GenModelSupports

func (*GenModel) GetTier

func (g *GenModel) GetTier() *GenModelTier

func (*GenModel) GetUnderReview

func (g *GenModel) GetUnderReview() bool

func (*GenModel) MarshalJSON

func (g *GenModel) MarshalJSON() ([]byte, error)

func (*GenModel) SetEnhanceDefault

func (g *GenModel) SetEnhanceDefault(enhanceDefault bool)

SetEnhanceDefault sets the EnhanceDefault field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModel) SetID

func (g *GenModel) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModel) SetJobs

func (g *GenModel) SetJobs(jobs []string)

SetJobs sets the Jobs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModel) SetMaxRefImages

func (g *GenModel) SetMaxRefImages(maxRefImages int)

SetMaxRefImages sets the MaxRefImages field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModel) SetPriceTier

func (g *GenModel) SetPriceTier(priceTier GenModelPriceTier)

SetPriceTier sets the PriceTier field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModel) SetStatus

func (g *GenModel) SetStatus(status GenModelStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModel) SetSteps

func (g *GenModel) SetSteps(steps *GenModelSteps)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModel) SetSupports

func (g *GenModel) SetSupports(supports *GenModelSupports)

SetSupports sets the Supports field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModel) SetTier

func (g *GenModel) SetTier(tier *GenModelTier)

SetTier sets the Tier field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModel) SetUnderReview

func (g *GenModel) SetUnderReview(underReview bool)

SetUnderReview sets the UnderReview field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModel) String

func (g *GenModel) String() string

func (*GenModel) UnmarshalJSON

func (g *GenModel) UnmarshalJSON(data []byte) error

type GenModelPriceTier

type GenModelPriceTier string

Relative price, cheapest ($) to priciest ($$$$). Not a dollar estimate.

const (
	GenModelPriceTierLow     GenModelPriceTier = "$"
	GenModelPriceTierMedium  GenModelPriceTier = "$$"
	GenModelPriceTierHigh    GenModelPriceTier = "$$$"
	GenModelPriceTierHighest GenModelPriceTier = "$$$$"
)

func NewGenModelPriceTierFromString

func NewGenModelPriceTierFromString(s string) (GenModelPriceTier, error)

func (GenModelPriceTier) Ptr

type GenModelStatus

type GenModelStatus string

Model availability status

const (
	GenModelStatusActive GenModelStatus = "active"
)

func NewGenModelStatusFromString

func NewGenModelStatusFromString(s string) (GenModelStatus, error)

func (GenModelStatus) Ptr

func (g GenModelStatus) Ptr() *GenModelStatus

type GenModelSteps

type GenModelSteps struct {
	Default int `json:"default" url:"default"`
	Min     int `json:"min" url:"min"`
	Max     int `json:"max" url:"max"`
	// contains filtered or unexported fields
}

Denoising step range, or null when the model has a fixed step count

func (*GenModelSteps) GetDefault

func (g *GenModelSteps) GetDefault() int

func (*GenModelSteps) GetExtraProperties

func (g *GenModelSteps) GetExtraProperties() map[string]interface{}

func (*GenModelSteps) GetMax

func (g *GenModelSteps) GetMax() int

func (*GenModelSteps) GetMin

func (g *GenModelSteps) GetMin() int

func (*GenModelSteps) MarshalJSON

func (g *GenModelSteps) MarshalJSON() ([]byte, error)

func (*GenModelSteps) SetDefault

func (g *GenModelSteps) SetDefault(default_ int)

SetDefault sets the Default field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModelSteps) SetMax

func (g *GenModelSteps) SetMax(max int)

SetMax sets the Max field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModelSteps) SetMin

func (g *GenModelSteps) SetMin(min int)

SetMin sets the Min field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModelSteps) String

func (g *GenModelSteps) String() string

func (*GenModelSteps) UnmarshalJSON

func (g *GenModelSteps) UnmarshalJSON(data []byte) error

type GenModelSupports

type GenModelSupports struct {
	NegativePrompt bool `json:"negativePrompt" url:"negativePrompt"`
	Guidance       bool `json:"guidance" url:"guidance"`
	// contains filtered or unexported fields
}

func (*GenModelSupports) GetExtraProperties

func (g *GenModelSupports) GetExtraProperties() map[string]interface{}

func (*GenModelSupports) GetGuidance

func (g *GenModelSupports) GetGuidance() bool

func (*GenModelSupports) GetNegativePrompt

func (g *GenModelSupports) GetNegativePrompt() bool

func (*GenModelSupports) MarshalJSON

func (g *GenModelSupports) MarshalJSON() ([]byte, error)

func (*GenModelSupports) SetGuidance

func (g *GenModelSupports) SetGuidance(guidance bool)

SetGuidance sets the Guidance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModelSupports) SetNegativePrompt

func (g *GenModelSupports) SetNegativePrompt(negativePrompt bool)

SetNegativePrompt sets the NegativePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GenModelSupports) String

func (g *GenModelSupports) String() string

func (*GenModelSupports) UnmarshalJSON

func (g *GenModelSupports) UnmarshalJSON(data []byte) error

type GenModelTier

type GenModelTier string

Pricing/quality tier alias, or null for a model with no tier alias

const (
	GenModelTierEconomy  GenModelTier = "economy"
	GenModelTierStandard GenModelTier = "standard"
	GenModelTierPremium  GenModelTier = "premium"
)

func NewGenModelTierFromString

func NewGenModelTierFromString(s string) (GenModelTier, error)

func (GenModelTier) Ptr

func (g GenModelTier) Ptr() *GenModelTier

type GetAccountCapabilitiesResponse

type GetAccountCapabilitiesResponse struct {
	Data *GetAccountCapabilitiesResponseData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*GetAccountCapabilitiesResponse) GetData

func (*GetAccountCapabilitiesResponse) GetExtraProperties

func (g *GetAccountCapabilitiesResponse) GetExtraProperties() map[string]interface{}

func (*GetAccountCapabilitiesResponse) MarshalJSON

func (g *GetAccountCapabilitiesResponse) MarshalJSON() ([]byte, error)

func (*GetAccountCapabilitiesResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponse) String

func (*GetAccountCapabilitiesResponse) UnmarshalJSON

func (g *GetAccountCapabilitiesResponse) UnmarshalJSON(data []byte) error

type GetAccountCapabilitiesResponseData

type GetAccountCapabilitiesResponseData struct {
	Plan     *GetAccountCapabilitiesResponseDataPlan     `json:"plan" url:"plan"`
	Limits   *GetAccountCapabilitiesResponseDataLimits   `json:"limits" url:"limits"`
	Features *GetAccountCapabilitiesResponseDataFeatures `json:"features" url:"features"`
	// contains filtered or unexported fields
}

func (*GetAccountCapabilitiesResponseData) GetExtraProperties

func (g *GetAccountCapabilitiesResponseData) GetExtraProperties() map[string]interface{}

func (*GetAccountCapabilitiesResponseData) GetFeatures

func (*GetAccountCapabilitiesResponseData) GetLimits

func (*GetAccountCapabilitiesResponseData) GetPlan

func (*GetAccountCapabilitiesResponseData) MarshalJSON

func (g *GetAccountCapabilitiesResponseData) MarshalJSON() ([]byte, error)

func (*GetAccountCapabilitiesResponseData) SetFeatures

SetFeatures sets the Features field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseData) SetLimits

SetLimits sets the Limits field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseData) SetPlan

SetPlan sets the Plan field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseData) String

func (*GetAccountCapabilitiesResponseData) UnmarshalJSON

func (g *GetAccountCapabilitiesResponseData) UnmarshalJSON(data []byte) error

type GetAccountCapabilitiesResponseDataFeatures

type GetAccountCapabilitiesResponseDataFeatures struct {
	RawFfmpeg     bool `json:"rawFfmpeg" url:"rawFfmpeg"`
	Mcp           bool `json:"mcp" url:"mcp"`
	Webhooks      bool `json:"webhooks" url:"webhooks"`
	PriorityQueue bool `json:"priorityQueue" url:"priorityQueue"`
	CustomRunners bool `json:"customRunners" url:"customRunners"`
	Gpu           bool `json:"gpu" url:"gpu"`
	// Support replies the same business day
	PrioritySupport bool `json:"prioritySupport" url:"prioritySupport"`
	// GET /orgs/current/audit-log is available
	AuditLog bool `json:"auditLog" url:"auditLog"`
	// Outputs of 512 MiB or more stream into destination buckets while they upload
	FastOutputDelivery bool `json:"fastOutputDelivery" url:"fastOutputDelivery"`
	// contains filtered or unexported fields
}

func (*GetAccountCapabilitiesResponseDataFeatures) GetAuditLog

func (*GetAccountCapabilitiesResponseDataFeatures) GetCustomRunners

func (g *GetAccountCapabilitiesResponseDataFeatures) GetCustomRunners() bool

func (*GetAccountCapabilitiesResponseDataFeatures) GetExtraProperties

func (g *GetAccountCapabilitiesResponseDataFeatures) GetExtraProperties() map[string]interface{}

func (*GetAccountCapabilitiesResponseDataFeatures) GetFastOutputDelivery

func (g *GetAccountCapabilitiesResponseDataFeatures) GetFastOutputDelivery() bool

func (*GetAccountCapabilitiesResponseDataFeatures) GetGpu

func (*GetAccountCapabilitiesResponseDataFeatures) GetMcp

func (*GetAccountCapabilitiesResponseDataFeatures) GetPriorityQueue

func (g *GetAccountCapabilitiesResponseDataFeatures) GetPriorityQueue() bool

func (*GetAccountCapabilitiesResponseDataFeatures) GetPrioritySupport

func (g *GetAccountCapabilitiesResponseDataFeatures) GetPrioritySupport() bool

func (*GetAccountCapabilitiesResponseDataFeatures) GetRawFfmpeg

func (*GetAccountCapabilitiesResponseDataFeatures) GetWebhooks

func (*GetAccountCapabilitiesResponseDataFeatures) MarshalJSON

func (*GetAccountCapabilitiesResponseDataFeatures) SetAuditLog

func (g *GetAccountCapabilitiesResponseDataFeatures) SetAuditLog(auditLog bool)

SetAuditLog sets the AuditLog field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataFeatures) SetCustomRunners

func (g *GetAccountCapabilitiesResponseDataFeatures) SetCustomRunners(customRunners bool)

SetCustomRunners sets the CustomRunners field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataFeatures) SetFastOutputDelivery

func (g *GetAccountCapabilitiesResponseDataFeatures) SetFastOutputDelivery(fastOutputDelivery bool)

SetFastOutputDelivery sets the FastOutputDelivery field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataFeatures) SetGpu

SetGpu sets the Gpu field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataFeatures) SetMcp

SetMcp sets the Mcp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataFeatures) SetPriorityQueue

func (g *GetAccountCapabilitiesResponseDataFeatures) SetPriorityQueue(priorityQueue bool)

SetPriorityQueue sets the PriorityQueue field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataFeatures) SetPrioritySupport

func (g *GetAccountCapabilitiesResponseDataFeatures) SetPrioritySupport(prioritySupport bool)

SetPrioritySupport sets the PrioritySupport field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataFeatures) SetRawFfmpeg

func (g *GetAccountCapabilitiesResponseDataFeatures) SetRawFfmpeg(rawFfmpeg bool)

SetRawFfmpeg sets the RawFfmpeg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataFeatures) SetWebhooks

func (g *GetAccountCapabilitiesResponseDataFeatures) SetWebhooks(webhooks bool)

SetWebhooks sets the Webhooks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataFeatures) String

func (*GetAccountCapabilitiesResponseDataFeatures) UnmarshalJSON

func (g *GetAccountCapabilitiesResponseDataFeatures) UnmarshalJSON(data []byte) error

type GetAccountCapabilitiesResponseDataLimits

type GetAccountCapabilitiesResponseDataLimits struct {
	ConcurrentJobs       int `json:"concurrentJobs" url:"concurrentJobs"`
	MaxQueuedJobs        int `json:"maxQueuedJobs" url:"maxQueuedJobs"`
	APIRequestsPerMinute int `json:"apiRequestsPerMinute" url:"apiRequestsPerMinute"`
	// Seconds
	MaxJobTimeout int `json:"maxJobTimeout" url:"maxJobTimeout"`
	// Bytes, per input file, uploaded or fetched by URL
	MaxInputFileSize int `json:"maxInputFileSize" url:"maxInputFileSize"`
	// Deprecated: always equal to maxInputFileSize. Read maxInputFileSize.
	MaxJobInputSize int `json:"maxJobInputSize" url:"maxJobInputSize"`
	// Bytes
	StorageQuota          int `json:"storageQuota" url:"storageQuota"`
	OutputRetentionDays   int `json:"outputRetentionDays" url:"outputRetentionDays"`
	MaxUploadSessionFiles int `json:"maxUploadSessionFiles" url:"maxUploadSessionFiles"`
	// Members the organization may hold, pending invitations included
	TeamMembers int `json:"teamMembers" url:"teamMembers"`
	// Largest compose frame, in pixels (width times height)
	ComposeMaxPixels int `json:"composeMaxPixels" url:"composeMaxPixels"`
	// Highest compose frame rate
	ComposeMaxFps int `json:"composeMaxFps" url:"composeMaxFps"`
	// Largest compose frame with animated graphics, in pixels
	ComposeAnimatedMaxPixels int `json:"composeAnimatedMaxPixels" url:"composeAnimatedMaxPixels"`
	// Highest compose frame rate with animated graphics
	ComposeAnimatedMaxFps int `json:"composeAnimatedMaxFps" url:"composeAnimatedMaxFps"`
	// contains filtered or unexported fields
}

func (*GetAccountCapabilitiesResponseDataLimits) GetAPIRequestsPerMinute

func (g *GetAccountCapabilitiesResponseDataLimits) GetAPIRequestsPerMinute() int

func (*GetAccountCapabilitiesResponseDataLimits) GetComposeAnimatedMaxFps

func (g *GetAccountCapabilitiesResponseDataLimits) GetComposeAnimatedMaxFps() int

func (*GetAccountCapabilitiesResponseDataLimits) GetComposeAnimatedMaxPixels

func (g *GetAccountCapabilitiesResponseDataLimits) GetComposeAnimatedMaxPixels() int

func (*GetAccountCapabilitiesResponseDataLimits) GetComposeMaxFps

func (g *GetAccountCapabilitiesResponseDataLimits) GetComposeMaxFps() int

func (*GetAccountCapabilitiesResponseDataLimits) GetComposeMaxPixels

func (g *GetAccountCapabilitiesResponseDataLimits) GetComposeMaxPixels() int

func (*GetAccountCapabilitiesResponseDataLimits) GetConcurrentJobs

func (g *GetAccountCapabilitiesResponseDataLimits) GetConcurrentJobs() int

func (*GetAccountCapabilitiesResponseDataLimits) GetExtraProperties

func (g *GetAccountCapabilitiesResponseDataLimits) GetExtraProperties() map[string]interface{}

func (*GetAccountCapabilitiesResponseDataLimits) GetMaxInputFileSize

func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxInputFileSize() int

func (*GetAccountCapabilitiesResponseDataLimits) GetMaxJobInputSize

func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxJobInputSize() int

func (*GetAccountCapabilitiesResponseDataLimits) GetMaxJobTimeout

func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxJobTimeout() int

func (*GetAccountCapabilitiesResponseDataLimits) GetMaxQueuedJobs

func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxQueuedJobs() int

func (*GetAccountCapabilitiesResponseDataLimits) GetMaxUploadSessionFiles

func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxUploadSessionFiles() int

func (*GetAccountCapabilitiesResponseDataLimits) GetOutputRetentionDays

func (g *GetAccountCapabilitiesResponseDataLimits) GetOutputRetentionDays() int

func (*GetAccountCapabilitiesResponseDataLimits) GetStorageQuota

func (g *GetAccountCapabilitiesResponseDataLimits) GetStorageQuota() int

func (*GetAccountCapabilitiesResponseDataLimits) GetTeamMembers

func (g *GetAccountCapabilitiesResponseDataLimits) GetTeamMembers() int

func (*GetAccountCapabilitiesResponseDataLimits) MarshalJSON

func (g *GetAccountCapabilitiesResponseDataLimits) MarshalJSON() ([]byte, error)

func (*GetAccountCapabilitiesResponseDataLimits) SetAPIRequestsPerMinute

func (g *GetAccountCapabilitiesResponseDataLimits) SetAPIRequestsPerMinute(apiRequestsPerMinute int)

SetAPIRequestsPerMinute sets the APIRequestsPerMinute field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetComposeAnimatedMaxFps

func (g *GetAccountCapabilitiesResponseDataLimits) SetComposeAnimatedMaxFps(composeAnimatedMaxFps int)

SetComposeAnimatedMaxFps sets the ComposeAnimatedMaxFps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetComposeAnimatedMaxPixels

func (g *GetAccountCapabilitiesResponseDataLimits) SetComposeAnimatedMaxPixels(composeAnimatedMaxPixels int)

SetComposeAnimatedMaxPixels sets the ComposeAnimatedMaxPixels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetComposeMaxFps

func (g *GetAccountCapabilitiesResponseDataLimits) SetComposeMaxFps(composeMaxFps int)

SetComposeMaxFps sets the ComposeMaxFps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetComposeMaxPixels

func (g *GetAccountCapabilitiesResponseDataLimits) SetComposeMaxPixels(composeMaxPixels int)

SetComposeMaxPixels sets the ComposeMaxPixels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetConcurrentJobs

func (g *GetAccountCapabilitiesResponseDataLimits) SetConcurrentJobs(concurrentJobs int)

SetConcurrentJobs sets the ConcurrentJobs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetMaxInputFileSize

func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxInputFileSize(maxInputFileSize int)

SetMaxInputFileSize sets the MaxInputFileSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetMaxJobInputSize

func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxJobInputSize(maxJobInputSize int)

SetMaxJobInputSize sets the MaxJobInputSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetMaxJobTimeout

func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxJobTimeout(maxJobTimeout int)

SetMaxJobTimeout sets the MaxJobTimeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetMaxQueuedJobs

func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxQueuedJobs(maxQueuedJobs int)

SetMaxQueuedJobs sets the MaxQueuedJobs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetMaxUploadSessionFiles

func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxUploadSessionFiles(maxUploadSessionFiles int)

SetMaxUploadSessionFiles sets the MaxUploadSessionFiles field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetOutputRetentionDays

func (g *GetAccountCapabilitiesResponseDataLimits) SetOutputRetentionDays(outputRetentionDays int)

SetOutputRetentionDays sets the OutputRetentionDays field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetStorageQuota

func (g *GetAccountCapabilitiesResponseDataLimits) SetStorageQuota(storageQuota int)

SetStorageQuota sets the StorageQuota field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) SetTeamMembers

func (g *GetAccountCapabilitiesResponseDataLimits) SetTeamMembers(teamMembers int)

SetTeamMembers sets the TeamMembers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataLimits) String

func (*GetAccountCapabilitiesResponseDataLimits) UnmarshalJSON

func (g *GetAccountCapabilitiesResponseDataLimits) UnmarshalJSON(data []byte) error

type GetAccountCapabilitiesResponseDataPlan

type GetAccountCapabilitiesResponseDataPlan struct {
	// Plan slug: free, pro, studio
	Slug string `json:"slug" url:"slug"`
	// Display name
	Name string `json:"name" url:"name"`
	// contains filtered or unexported fields
}

func (*GetAccountCapabilitiesResponseDataPlan) GetExtraProperties

func (g *GetAccountCapabilitiesResponseDataPlan) GetExtraProperties() map[string]interface{}

func (*GetAccountCapabilitiesResponseDataPlan) GetName

func (*GetAccountCapabilitiesResponseDataPlan) GetSlug

func (*GetAccountCapabilitiesResponseDataPlan) MarshalJSON

func (g *GetAccountCapabilitiesResponseDataPlan) MarshalJSON() ([]byte, error)

func (*GetAccountCapabilitiesResponseDataPlan) SetName

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataPlan) SetSlug

SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetAccountCapabilitiesResponseDataPlan) String

func (*GetAccountCapabilitiesResponseDataPlan) UnmarshalJSON

func (g *GetAccountCapabilitiesResponseDataPlan) UnmarshalJSON(data []byte) error

type GetJobRequest

type GetJobRequest struct {
	// Job ID (e.g., job_abc123)
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetJobRequest) SetID

func (g *GetJobRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetJobResponse

type GetJobResponse struct {
	Data *Job `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*GetJobResponse) GetData

func (g *GetJobResponse) GetData() *Job

func (*GetJobResponse) GetExtraProperties

func (g *GetJobResponse) GetExtraProperties() map[string]interface{}

func (*GetJobResponse) MarshalJSON

func (g *GetJobResponse) MarshalJSON() ([]byte, error)

func (*GetJobResponse) SetData

func (g *GetJobResponse) SetData(data *Job)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetJobResponse) String

func (g *GetJobResponse) String() string

func (*GetJobResponse) UnmarshalJSON

func (g *GetJobResponse) UnmarshalJSON(data []byte) error

type GetJobTypeSchemaRequest

type GetJobTypeSchemaRequest struct {
	// Job type identifier (e.g., ffmpeg)
	Type string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetJobTypeSchemaRequest) SetType

func (g *GetJobTypeSchemaRequest) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetJobTypeSchemaResponse

type GetJobTypeSchemaResponse struct {
	Data *GetJobTypeSchemaResponseData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*GetJobTypeSchemaResponse) GetData

func (*GetJobTypeSchemaResponse) GetExtraProperties

func (g *GetJobTypeSchemaResponse) GetExtraProperties() map[string]interface{}

func (*GetJobTypeSchemaResponse) MarshalJSON

func (g *GetJobTypeSchemaResponse) MarshalJSON() ([]byte, error)

func (*GetJobTypeSchemaResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetJobTypeSchemaResponse) String

func (g *GetJobTypeSchemaResponse) String() string

func (*GetJobTypeSchemaResponse) UnmarshalJSON

func (g *GetJobTypeSchemaResponse) UnmarshalJSON(data []byte) error

type GetJobTypeSchemaResponseData

type GetJobTypeSchemaResponseData struct {
	Type   string            `json:"type" url:"type"`
	Fields []*ConnectorField `json:"fields" url:"fields"`
	// The media this job reads, described the same way as its params so a connector can render both with one renderer.
	Inputs     *GetJobTypeSchemaResponseDataInputs `json:"inputs" url:"inputs"`
	JSONSchema any                                 `json:"jsonSchema,omitempty" url:"jsonSchema,omitempty"`
	// Field that selects the branch, when the params schema is a union. Absent for plain object schemas.
	Discriminator *string `json:"discriminator,omitempty" url:"discriminator,omitempty"`
	// contains filtered or unexported fields
}

func (*GetJobTypeSchemaResponseData) GetDiscriminator

func (g *GetJobTypeSchemaResponseData) GetDiscriminator() *string

func (*GetJobTypeSchemaResponseData) GetExtraProperties

func (g *GetJobTypeSchemaResponseData) GetExtraProperties() map[string]interface{}

func (*GetJobTypeSchemaResponseData) GetFields

func (g *GetJobTypeSchemaResponseData) GetFields() []*ConnectorField

func (*GetJobTypeSchemaResponseData) GetInputs

func (*GetJobTypeSchemaResponseData) GetJSONSchema

func (g *GetJobTypeSchemaResponseData) GetJSONSchema() any

func (*GetJobTypeSchemaResponseData) GetType

func (g *GetJobTypeSchemaResponseData) GetType() string

func (*GetJobTypeSchemaResponseData) MarshalJSON

func (g *GetJobTypeSchemaResponseData) MarshalJSON() ([]byte, error)

func (*GetJobTypeSchemaResponseData) SetDiscriminator

func (g *GetJobTypeSchemaResponseData) SetDiscriminator(discriminator *string)

SetDiscriminator sets the Discriminator field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetJobTypeSchemaResponseData) SetFields

func (g *GetJobTypeSchemaResponseData) SetFields(fields []*ConnectorField)

SetFields sets the Fields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetJobTypeSchemaResponseData) SetInputs

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetJobTypeSchemaResponseData) SetJSONSchema

func (g *GetJobTypeSchemaResponseData) SetJSONSchema(jsonSchema any)

SetJSONSchema sets the JSONSchema field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetJobTypeSchemaResponseData) SetType

func (g *GetJobTypeSchemaResponseData) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetJobTypeSchemaResponseData) String

func (*GetJobTypeSchemaResponseData) UnmarshalJSON

func (g *GetJobTypeSchemaResponseData) UnmarshalJSON(data []byte) error

type GetJobTypeSchemaResponseDataInputs

type GetJobTypeSchemaResponseDataInputs struct {
	Fields []*ConnectorInput `json:"fields" url:"fields"`
	// Any filename may be used as an input key, rather than a fixed set. True for ffmpeg and ffprobe, whose inputs become files in the working directory and are named by the command.
	Variadic bool `json:"variadic" url:"variadic"`
	// contains filtered or unexported fields
}

The media this job reads, described the same way as its params so a connector can render both with one renderer.

func (*GetJobTypeSchemaResponseDataInputs) GetExtraProperties

func (g *GetJobTypeSchemaResponseDataInputs) GetExtraProperties() map[string]interface{}

func (*GetJobTypeSchemaResponseDataInputs) GetFields

func (*GetJobTypeSchemaResponseDataInputs) GetVariadic

func (g *GetJobTypeSchemaResponseDataInputs) GetVariadic() bool

func (*GetJobTypeSchemaResponseDataInputs) MarshalJSON

func (g *GetJobTypeSchemaResponseDataInputs) MarshalJSON() ([]byte, error)

func (*GetJobTypeSchemaResponseDataInputs) SetFields

func (g *GetJobTypeSchemaResponseDataInputs) SetFields(fields []*ConnectorInput)

SetFields sets the Fields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetJobTypeSchemaResponseDataInputs) SetVariadic

func (g *GetJobTypeSchemaResponseDataInputs) SetVariadic(variadic bool)

SetVariadic sets the Variadic field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetJobTypeSchemaResponseDataInputs) String

func (*GetJobTypeSchemaResponseDataInputs) UnmarshalJSON

func (g *GetJobTypeSchemaResponseDataInputs) UnmarshalJSON(data []byte) error

type ImageEditParams

type ImageEditParams struct {
	Model                      string
	Economy                    *ImageEditParamsEconomy
	Standard                   *ImageEditParamsStandard
	Premium                    *ImageEditParamsPremium
	Flux2Klein4B               *ImageEditParamsFlux2Klein4B
	QwenImageEdit2511          *ImageEditParamsQwenImageEdit2511
	QwenImageEdit2511Lightning *ImageEditParamsQwenImageEdit2511Lightning
	// contains filtered or unexported fields
}

Params of the image.edit job.

func (*ImageEditParams) Accept

func (i *ImageEditParams) Accept(visitor ImageEditParamsVisitor) error

func (*ImageEditParams) GetEconomy

func (i *ImageEditParams) GetEconomy() *ImageEditParamsEconomy

func (*ImageEditParams) GetFlux2Klein4B

func (i *ImageEditParams) GetFlux2Klein4B() *ImageEditParamsFlux2Klein4B

func (*ImageEditParams) GetModel

func (i *ImageEditParams) GetModel() string

func (*ImageEditParams) GetPremium

func (i *ImageEditParams) GetPremium() *ImageEditParamsPremium

func (*ImageEditParams) GetQwenImageEdit2511

func (i *ImageEditParams) GetQwenImageEdit2511() *ImageEditParamsQwenImageEdit2511

func (*ImageEditParams) GetQwenImageEdit2511Lightning

func (i *ImageEditParams) GetQwenImageEdit2511Lightning() *ImageEditParamsQwenImageEdit2511Lightning

func (*ImageEditParams) GetStandard

func (i *ImageEditParams) GetStandard() *ImageEditParamsStandard

func (ImageEditParams) MarshalJSON

func (i ImageEditParams) MarshalJSON() ([]byte, error)

func (*ImageEditParams) UnmarshalJSON

func (i *ImageEditParams) UnmarshalJSON(data []byte) error

type ImageEditParamsEconomy

type ImageEditParamsEconomy struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageEditParamsEconomy) GetEnhancePrompt

func (i *ImageEditParamsEconomy) GetEnhancePrompt() *bool

func (*ImageEditParamsEconomy) GetExtraProperties

func (i *ImageEditParamsEconomy) GetExtraProperties() map[string]interface{}

func (*ImageEditParamsEconomy) GetHeight

func (i *ImageEditParamsEconomy) GetHeight() *int

func (*ImageEditParamsEconomy) GetPrompt

func (i *ImageEditParamsEconomy) GetPrompt() string

func (*ImageEditParamsEconomy) GetSeed

func (i *ImageEditParamsEconomy) GetSeed() *int

func (*ImageEditParamsEconomy) GetWidth

func (i *ImageEditParamsEconomy) GetWidth() *int

func (*ImageEditParamsEconomy) MarshalJSON

func (i *ImageEditParamsEconomy) MarshalJSON() ([]byte, error)

func (*ImageEditParamsEconomy) SetEnhancePrompt

func (i *ImageEditParamsEconomy) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsEconomy) SetHeight

func (i *ImageEditParamsEconomy) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsEconomy) SetPrompt

func (i *ImageEditParamsEconomy) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsEconomy) SetSeed

func (i *ImageEditParamsEconomy) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsEconomy) SetWidth

func (i *ImageEditParamsEconomy) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsEconomy) String

func (i *ImageEditParamsEconomy) String() string

func (*ImageEditParamsEconomy) UnmarshalJSON

func (i *ImageEditParamsEconomy) UnmarshalJSON(data []byte) error

type ImageEditParamsFlux2Klein4B

type ImageEditParamsFlux2Klein4B struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageEditParamsFlux2Klein4B) GetEnhancePrompt

func (i *ImageEditParamsFlux2Klein4B) GetEnhancePrompt() *bool

func (*ImageEditParamsFlux2Klein4B) GetExtraProperties

func (i *ImageEditParamsFlux2Klein4B) GetExtraProperties() map[string]interface{}

func (*ImageEditParamsFlux2Klein4B) GetHeight

func (i *ImageEditParamsFlux2Klein4B) GetHeight() *int

func (*ImageEditParamsFlux2Klein4B) GetPrompt

func (i *ImageEditParamsFlux2Klein4B) GetPrompt() string

func (*ImageEditParamsFlux2Klein4B) GetSeed

func (i *ImageEditParamsFlux2Klein4B) GetSeed() *int

func (*ImageEditParamsFlux2Klein4B) GetWidth

func (i *ImageEditParamsFlux2Klein4B) GetWidth() *int

func (*ImageEditParamsFlux2Klein4B) MarshalJSON

func (i *ImageEditParamsFlux2Klein4B) MarshalJSON() ([]byte, error)

func (*ImageEditParamsFlux2Klein4B) SetEnhancePrompt

func (i *ImageEditParamsFlux2Klein4B) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsFlux2Klein4B) SetHeight

func (i *ImageEditParamsFlux2Klein4B) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsFlux2Klein4B) SetPrompt

func (i *ImageEditParamsFlux2Klein4B) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsFlux2Klein4B) SetSeed

func (i *ImageEditParamsFlux2Klein4B) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsFlux2Klein4B) SetWidth

func (i *ImageEditParamsFlux2Klein4B) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsFlux2Klein4B) String

func (i *ImageEditParamsFlux2Klein4B) String() string

func (*ImageEditParamsFlux2Klein4B) UnmarshalJSON

func (i *ImageEditParamsFlux2Klein4B) UnmarshalJSON(data []byte) error

type ImageEditParamsPremium

type ImageEditParamsPremium struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageEditParamsPremium) GetEnhancePrompt

func (i *ImageEditParamsPremium) GetEnhancePrompt() *bool

func (*ImageEditParamsPremium) GetExtraProperties

func (i *ImageEditParamsPremium) GetExtraProperties() map[string]interface{}

func (*ImageEditParamsPremium) GetHeight

func (i *ImageEditParamsPremium) GetHeight() *int

func (*ImageEditParamsPremium) GetPrompt

func (i *ImageEditParamsPremium) GetPrompt() string

func (*ImageEditParamsPremium) GetSeed

func (i *ImageEditParamsPremium) GetSeed() *int

func (*ImageEditParamsPremium) GetWidth

func (i *ImageEditParamsPremium) GetWidth() *int

func (*ImageEditParamsPremium) MarshalJSON

func (i *ImageEditParamsPremium) MarshalJSON() ([]byte, error)

func (*ImageEditParamsPremium) SetEnhancePrompt

func (i *ImageEditParamsPremium) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsPremium) SetHeight

func (i *ImageEditParamsPremium) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsPremium) SetPrompt

func (i *ImageEditParamsPremium) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsPremium) SetSeed

func (i *ImageEditParamsPremium) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsPremium) SetWidth

func (i *ImageEditParamsPremium) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsPremium) String

func (i *ImageEditParamsPremium) String() string

func (*ImageEditParamsPremium) UnmarshalJSON

func (i *ImageEditParamsPremium) UnmarshalJSON(data []byte) error

type ImageEditParamsQwenImageEdit2511

type ImageEditParamsQwenImageEdit2511 struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// What to keep out of the edited image.
	NegativePrompt *string `json:"negativePrompt,omitempty" url:"negativePrompt,omitempty"`
	// How strictly to follow the instruction. Higher is stricter.
	Guidance *float64 `json:"guidance,omitempty" url:"guidance,omitempty"`
	// Denoise steps. More steps means more detail and more time.
	Steps *int `json:"steps,omitempty" url:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageEditParamsQwenImageEdit2511) GetEnhancePrompt

func (i *ImageEditParamsQwenImageEdit2511) GetEnhancePrompt() *bool

func (*ImageEditParamsQwenImageEdit2511) GetExtraProperties

func (i *ImageEditParamsQwenImageEdit2511) GetExtraProperties() map[string]interface{}

func (*ImageEditParamsQwenImageEdit2511) GetGuidance

func (i *ImageEditParamsQwenImageEdit2511) GetGuidance() *float64

func (*ImageEditParamsQwenImageEdit2511) GetHeight

func (i *ImageEditParamsQwenImageEdit2511) GetHeight() *int

func (*ImageEditParamsQwenImageEdit2511) GetNegativePrompt

func (i *ImageEditParamsQwenImageEdit2511) GetNegativePrompt() *string

func (*ImageEditParamsQwenImageEdit2511) GetPrompt

func (*ImageEditParamsQwenImageEdit2511) GetSeed

func (i *ImageEditParamsQwenImageEdit2511) GetSeed() *int

func (*ImageEditParamsQwenImageEdit2511) GetSteps

func (i *ImageEditParamsQwenImageEdit2511) GetSteps() *int

func (*ImageEditParamsQwenImageEdit2511) GetWidth

func (i *ImageEditParamsQwenImageEdit2511) GetWidth() *int

func (*ImageEditParamsQwenImageEdit2511) MarshalJSON

func (i *ImageEditParamsQwenImageEdit2511) MarshalJSON() ([]byte, error)

func (*ImageEditParamsQwenImageEdit2511) SetEnhancePrompt

func (i *ImageEditParamsQwenImageEdit2511) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511) SetGuidance

func (i *ImageEditParamsQwenImageEdit2511) SetGuidance(guidance *float64)

SetGuidance sets the Guidance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511) SetHeight

func (i *ImageEditParamsQwenImageEdit2511) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511) SetNegativePrompt

func (i *ImageEditParamsQwenImageEdit2511) SetNegativePrompt(negativePrompt *string)

SetNegativePrompt sets the NegativePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511) SetPrompt

func (i *ImageEditParamsQwenImageEdit2511) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511) SetSeed

func (i *ImageEditParamsQwenImageEdit2511) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511) SetSteps

func (i *ImageEditParamsQwenImageEdit2511) SetSteps(steps *int)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511) SetWidth

func (i *ImageEditParamsQwenImageEdit2511) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511) String

func (*ImageEditParamsQwenImageEdit2511) UnmarshalJSON

func (i *ImageEditParamsQwenImageEdit2511) UnmarshalJSON(data []byte) error

type ImageEditParamsQwenImageEdit2511Lightning

type ImageEditParamsQwenImageEdit2511Lightning struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// Denoise steps. More steps means more detail and more time.
	Steps *int `json:"steps,omitempty" url:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageEditParamsQwenImageEdit2511Lightning) GetEnhancePrompt

func (i *ImageEditParamsQwenImageEdit2511Lightning) GetEnhancePrompt() *bool

func (*ImageEditParamsQwenImageEdit2511Lightning) GetExtraProperties

func (i *ImageEditParamsQwenImageEdit2511Lightning) GetExtraProperties() map[string]interface{}

func (*ImageEditParamsQwenImageEdit2511Lightning) GetHeight

func (*ImageEditParamsQwenImageEdit2511Lightning) GetPrompt

func (*ImageEditParamsQwenImageEdit2511Lightning) GetSeed

func (*ImageEditParamsQwenImageEdit2511Lightning) GetSteps

func (*ImageEditParamsQwenImageEdit2511Lightning) GetWidth

func (*ImageEditParamsQwenImageEdit2511Lightning) MarshalJSON

func (*ImageEditParamsQwenImageEdit2511Lightning) SetEnhancePrompt

func (i *ImageEditParamsQwenImageEdit2511Lightning) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511Lightning) SetHeight

func (i *ImageEditParamsQwenImageEdit2511Lightning) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511Lightning) SetPrompt

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511Lightning) SetSeed

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511Lightning) SetSteps

func (i *ImageEditParamsQwenImageEdit2511Lightning) SetSteps(steps *int)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511Lightning) SetWidth

func (i *ImageEditParamsQwenImageEdit2511Lightning) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsQwenImageEdit2511Lightning) String

func (*ImageEditParamsQwenImageEdit2511Lightning) UnmarshalJSON

func (i *ImageEditParamsQwenImageEdit2511Lightning) UnmarshalJSON(data []byte) error

type ImageEditParamsStandard

type ImageEditParamsStandard struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageEditParamsStandard) GetEnhancePrompt

func (i *ImageEditParamsStandard) GetEnhancePrompt() *bool

func (*ImageEditParamsStandard) GetExtraProperties

func (i *ImageEditParamsStandard) GetExtraProperties() map[string]interface{}

func (*ImageEditParamsStandard) GetHeight

func (i *ImageEditParamsStandard) GetHeight() *int

func (*ImageEditParamsStandard) GetPrompt

func (i *ImageEditParamsStandard) GetPrompt() string

func (*ImageEditParamsStandard) GetSeed

func (i *ImageEditParamsStandard) GetSeed() *int

func (*ImageEditParamsStandard) GetWidth

func (i *ImageEditParamsStandard) GetWidth() *int

func (*ImageEditParamsStandard) MarshalJSON

func (i *ImageEditParamsStandard) MarshalJSON() ([]byte, error)

func (*ImageEditParamsStandard) SetEnhancePrompt

func (i *ImageEditParamsStandard) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsStandard) SetHeight

func (i *ImageEditParamsStandard) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsStandard) SetPrompt

func (i *ImageEditParamsStandard) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsStandard) SetSeed

func (i *ImageEditParamsStandard) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsStandard) SetWidth

func (i *ImageEditParamsStandard) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageEditParamsStandard) String

func (i *ImageEditParamsStandard) String() string

func (*ImageEditParamsStandard) UnmarshalJSON

func (i *ImageEditParamsStandard) UnmarshalJSON(data []byte) error

type ImageEditParamsVisitor

type ImageEditParamsVisitor interface {
	VisitEconomy(*ImageEditParamsEconomy) error
	VisitStandard(*ImageEditParamsStandard) error
	VisitPremium(*ImageEditParamsPremium) error
	VisitFlux2Klein4B(*ImageEditParamsFlux2Klein4B) error
	VisitQwenImageEdit2511(*ImageEditParamsQwenImageEdit2511) error
	VisitQwenImageEdit2511Lightning(*ImageEditParamsQwenImageEdit2511Lightning) error
}

type ImageGenerateParams

type ImageGenerateParams struct {
	Model                  string
	Economy                *ImageGenerateParamsEconomy
	Standard               *ImageGenerateParamsStandard
	Premium                *ImageGenerateParamsPremium
	Flux2Klein4B           *ImageGenerateParamsFlux2Klein4B
	ErnieImageTurbo        *ImageGenerateParamsErnieImageTurbo
	ZImageTurbo            *ImageGenerateParamsZImageTurbo
	QwenImage2512          *ImageGenerateParamsQwenImage2512
	QwenImage2512Lightning *ImageGenerateParamsQwenImage2512Lightning
	Flux2Dev               *ImageGenerateParamsFlux2Dev
	// contains filtered or unexported fields
}

Params of the image.generate job.

func (*ImageGenerateParams) Accept

func (*ImageGenerateParams) GetEconomy

func (*ImageGenerateParams) GetErnieImageTurbo

func (*ImageGenerateParams) GetFlux2Dev

func (*ImageGenerateParams) GetFlux2Klein4B

func (*ImageGenerateParams) GetModel

func (i *ImageGenerateParams) GetModel() string

func (*ImageGenerateParams) GetPremium

func (*ImageGenerateParams) GetQwenImage2512

func (*ImageGenerateParams) GetQwenImage2512Lightning

func (i *ImageGenerateParams) GetQwenImage2512Lightning() *ImageGenerateParamsQwenImage2512Lightning

func (*ImageGenerateParams) GetStandard

func (*ImageGenerateParams) GetZImageTurbo

func (ImageGenerateParams) MarshalJSON

func (i ImageGenerateParams) MarshalJSON() ([]byte, error)

func (*ImageGenerateParams) UnmarshalJSON

func (i *ImageGenerateParams) UnmarshalJSON(data []byte) error

type ImageGenerateParamsEconomy

type ImageGenerateParamsEconomy struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageGenerateParamsEconomy) GetEnhancePrompt

func (i *ImageGenerateParamsEconomy) GetEnhancePrompt() *bool

func (*ImageGenerateParamsEconomy) GetExtraProperties

func (i *ImageGenerateParamsEconomy) GetExtraProperties() map[string]interface{}

func (*ImageGenerateParamsEconomy) GetHeight

func (i *ImageGenerateParamsEconomy) GetHeight() *int

func (*ImageGenerateParamsEconomy) GetPrompt

func (i *ImageGenerateParamsEconomy) GetPrompt() string

func (*ImageGenerateParamsEconomy) GetSeed

func (i *ImageGenerateParamsEconomy) GetSeed() *int

func (*ImageGenerateParamsEconomy) GetWidth

func (i *ImageGenerateParamsEconomy) GetWidth() *int

func (*ImageGenerateParamsEconomy) MarshalJSON

func (i *ImageGenerateParamsEconomy) MarshalJSON() ([]byte, error)

func (*ImageGenerateParamsEconomy) SetEnhancePrompt

func (i *ImageGenerateParamsEconomy) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsEconomy) SetHeight

func (i *ImageGenerateParamsEconomy) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsEconomy) SetPrompt

func (i *ImageGenerateParamsEconomy) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsEconomy) SetSeed

func (i *ImageGenerateParamsEconomy) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsEconomy) SetWidth

func (i *ImageGenerateParamsEconomy) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsEconomy) String

func (i *ImageGenerateParamsEconomy) String() string

func (*ImageGenerateParamsEconomy) UnmarshalJSON

func (i *ImageGenerateParamsEconomy) UnmarshalJSON(data []byte) error

type ImageGenerateParamsErnieImageTurbo

type ImageGenerateParamsErnieImageTurbo struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageGenerateParamsErnieImageTurbo) GetEnhancePrompt

func (i *ImageGenerateParamsErnieImageTurbo) GetEnhancePrompt() *bool

func (*ImageGenerateParamsErnieImageTurbo) GetExtraProperties

func (i *ImageGenerateParamsErnieImageTurbo) GetExtraProperties() map[string]interface{}

func (*ImageGenerateParamsErnieImageTurbo) GetHeight

func (i *ImageGenerateParamsErnieImageTurbo) GetHeight() *int

func (*ImageGenerateParamsErnieImageTurbo) GetPrompt

func (*ImageGenerateParamsErnieImageTurbo) GetSeed

func (*ImageGenerateParamsErnieImageTurbo) GetWidth

func (i *ImageGenerateParamsErnieImageTurbo) GetWidth() *int

func (*ImageGenerateParamsErnieImageTurbo) MarshalJSON

func (i *ImageGenerateParamsErnieImageTurbo) MarshalJSON() ([]byte, error)

func (*ImageGenerateParamsErnieImageTurbo) SetEnhancePrompt

func (i *ImageGenerateParamsErnieImageTurbo) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsErnieImageTurbo) SetHeight

func (i *ImageGenerateParamsErnieImageTurbo) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsErnieImageTurbo) SetPrompt

func (i *ImageGenerateParamsErnieImageTurbo) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsErnieImageTurbo) SetSeed

func (i *ImageGenerateParamsErnieImageTurbo) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsErnieImageTurbo) SetWidth

func (i *ImageGenerateParamsErnieImageTurbo) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsErnieImageTurbo) String

func (*ImageGenerateParamsErnieImageTurbo) UnmarshalJSON

func (i *ImageGenerateParamsErnieImageTurbo) UnmarshalJSON(data []byte) error

type ImageGenerateParamsFlux2Dev

type ImageGenerateParamsFlux2Dev struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// How strictly to follow the prompt. Higher is stricter.
	Guidance *float64 `json:"guidance,omitempty" url:"guidance,omitempty"`
	// Denoise steps. More steps means more detail and more time.
	Steps *int `json:"steps,omitempty" url:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageGenerateParamsFlux2Dev) GetEnhancePrompt

func (i *ImageGenerateParamsFlux2Dev) GetEnhancePrompt() *bool

func (*ImageGenerateParamsFlux2Dev) GetExtraProperties

func (i *ImageGenerateParamsFlux2Dev) GetExtraProperties() map[string]interface{}

func (*ImageGenerateParamsFlux2Dev) GetGuidance

func (i *ImageGenerateParamsFlux2Dev) GetGuidance() *float64

func (*ImageGenerateParamsFlux2Dev) GetHeight

func (i *ImageGenerateParamsFlux2Dev) GetHeight() *int

func (*ImageGenerateParamsFlux2Dev) GetPrompt

func (i *ImageGenerateParamsFlux2Dev) GetPrompt() string

func (*ImageGenerateParamsFlux2Dev) GetSeed

func (i *ImageGenerateParamsFlux2Dev) GetSeed() *int

func (*ImageGenerateParamsFlux2Dev) GetSteps

func (i *ImageGenerateParamsFlux2Dev) GetSteps() *int

func (*ImageGenerateParamsFlux2Dev) GetWidth

func (i *ImageGenerateParamsFlux2Dev) GetWidth() *int

func (*ImageGenerateParamsFlux2Dev) MarshalJSON

func (i *ImageGenerateParamsFlux2Dev) MarshalJSON() ([]byte, error)

func (*ImageGenerateParamsFlux2Dev) SetEnhancePrompt

func (i *ImageGenerateParamsFlux2Dev) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsFlux2Dev) SetGuidance

func (i *ImageGenerateParamsFlux2Dev) SetGuidance(guidance *float64)

SetGuidance sets the Guidance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsFlux2Dev) SetHeight

func (i *ImageGenerateParamsFlux2Dev) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsFlux2Dev) SetPrompt

func (i *ImageGenerateParamsFlux2Dev) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsFlux2Dev) SetSeed

func (i *ImageGenerateParamsFlux2Dev) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsFlux2Dev) SetSteps

func (i *ImageGenerateParamsFlux2Dev) SetSteps(steps *int)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsFlux2Dev) SetWidth

func (i *ImageGenerateParamsFlux2Dev) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsFlux2Dev) String

func (i *ImageGenerateParamsFlux2Dev) String() string

func (*ImageGenerateParamsFlux2Dev) UnmarshalJSON

func (i *ImageGenerateParamsFlux2Dev) UnmarshalJSON(data []byte) error

type ImageGenerateParamsFlux2Klein4B

type ImageGenerateParamsFlux2Klein4B struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageGenerateParamsFlux2Klein4B) GetEnhancePrompt

func (i *ImageGenerateParamsFlux2Klein4B) GetEnhancePrompt() *bool

func (*ImageGenerateParamsFlux2Klein4B) GetExtraProperties

func (i *ImageGenerateParamsFlux2Klein4B) GetExtraProperties() map[string]interface{}

func (*ImageGenerateParamsFlux2Klein4B) GetHeight

func (i *ImageGenerateParamsFlux2Klein4B) GetHeight() *int

func (*ImageGenerateParamsFlux2Klein4B) GetPrompt

func (i *ImageGenerateParamsFlux2Klein4B) GetPrompt() string

func (*ImageGenerateParamsFlux2Klein4B) GetSeed

func (i *ImageGenerateParamsFlux2Klein4B) GetSeed() *int

func (*ImageGenerateParamsFlux2Klein4B) GetWidth

func (i *ImageGenerateParamsFlux2Klein4B) GetWidth() *int

func (*ImageGenerateParamsFlux2Klein4B) MarshalJSON

func (i *ImageGenerateParamsFlux2Klein4B) MarshalJSON() ([]byte, error)

func (*ImageGenerateParamsFlux2Klein4B) SetEnhancePrompt

func (i *ImageGenerateParamsFlux2Klein4B) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsFlux2Klein4B) SetHeight

func (i *ImageGenerateParamsFlux2Klein4B) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsFlux2Klein4B) SetPrompt

func (i *ImageGenerateParamsFlux2Klein4B) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsFlux2Klein4B) SetSeed

func (i *ImageGenerateParamsFlux2Klein4B) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsFlux2Klein4B) SetWidth

func (i *ImageGenerateParamsFlux2Klein4B) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsFlux2Klein4B) String

func (*ImageGenerateParamsFlux2Klein4B) UnmarshalJSON

func (i *ImageGenerateParamsFlux2Klein4B) UnmarshalJSON(data []byte) error

type ImageGenerateParamsPremium

type ImageGenerateParamsPremium struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageGenerateParamsPremium) GetEnhancePrompt

func (i *ImageGenerateParamsPremium) GetEnhancePrompt() *bool

func (*ImageGenerateParamsPremium) GetExtraProperties

func (i *ImageGenerateParamsPremium) GetExtraProperties() map[string]interface{}

func (*ImageGenerateParamsPremium) GetHeight

func (i *ImageGenerateParamsPremium) GetHeight() *int

func (*ImageGenerateParamsPremium) GetPrompt

func (i *ImageGenerateParamsPremium) GetPrompt() string

func (*ImageGenerateParamsPremium) GetSeed

func (i *ImageGenerateParamsPremium) GetSeed() *int

func (*ImageGenerateParamsPremium) GetWidth

func (i *ImageGenerateParamsPremium) GetWidth() *int

func (*ImageGenerateParamsPremium) MarshalJSON

func (i *ImageGenerateParamsPremium) MarshalJSON() ([]byte, error)

func (*ImageGenerateParamsPremium) SetEnhancePrompt

func (i *ImageGenerateParamsPremium) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsPremium) SetHeight

func (i *ImageGenerateParamsPremium) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsPremium) SetPrompt

func (i *ImageGenerateParamsPremium) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsPremium) SetSeed

func (i *ImageGenerateParamsPremium) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsPremium) SetWidth

func (i *ImageGenerateParamsPremium) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsPremium) String

func (i *ImageGenerateParamsPremium) String() string

func (*ImageGenerateParamsPremium) UnmarshalJSON

func (i *ImageGenerateParamsPremium) UnmarshalJSON(data []byte) error

type ImageGenerateParamsQwenImage2512

type ImageGenerateParamsQwenImage2512 struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// What to keep out of the image.
	NegativePrompt *string `json:"negativePrompt,omitempty" url:"negativePrompt,omitempty"`
	// How strictly to follow the prompt. Higher is stricter.
	Guidance *float64 `json:"guidance,omitempty" url:"guidance,omitempty"`
	// Denoise steps. More steps means more detail and more time.
	Steps *int `json:"steps,omitempty" url:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageGenerateParamsQwenImage2512) GetEnhancePrompt

func (i *ImageGenerateParamsQwenImage2512) GetEnhancePrompt() *bool

func (*ImageGenerateParamsQwenImage2512) GetExtraProperties

func (i *ImageGenerateParamsQwenImage2512) GetExtraProperties() map[string]interface{}

func (*ImageGenerateParamsQwenImage2512) GetGuidance

func (i *ImageGenerateParamsQwenImage2512) GetGuidance() *float64

func (*ImageGenerateParamsQwenImage2512) GetHeight

func (i *ImageGenerateParamsQwenImage2512) GetHeight() *int

func (*ImageGenerateParamsQwenImage2512) GetNegativePrompt

func (i *ImageGenerateParamsQwenImage2512) GetNegativePrompt() *string

func (*ImageGenerateParamsQwenImage2512) GetPrompt

func (*ImageGenerateParamsQwenImage2512) GetSeed

func (i *ImageGenerateParamsQwenImage2512) GetSeed() *int

func (*ImageGenerateParamsQwenImage2512) GetSteps

func (i *ImageGenerateParamsQwenImage2512) GetSteps() *int

func (*ImageGenerateParamsQwenImage2512) GetWidth

func (i *ImageGenerateParamsQwenImage2512) GetWidth() *int

func (*ImageGenerateParamsQwenImage2512) MarshalJSON

func (i *ImageGenerateParamsQwenImage2512) MarshalJSON() ([]byte, error)

func (*ImageGenerateParamsQwenImage2512) SetEnhancePrompt

func (i *ImageGenerateParamsQwenImage2512) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512) SetGuidance

func (i *ImageGenerateParamsQwenImage2512) SetGuidance(guidance *float64)

SetGuidance sets the Guidance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512) SetHeight

func (i *ImageGenerateParamsQwenImage2512) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512) SetNegativePrompt

func (i *ImageGenerateParamsQwenImage2512) SetNegativePrompt(negativePrompt *string)

SetNegativePrompt sets the NegativePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512) SetPrompt

func (i *ImageGenerateParamsQwenImage2512) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512) SetSeed

func (i *ImageGenerateParamsQwenImage2512) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512) SetSteps

func (i *ImageGenerateParamsQwenImage2512) SetSteps(steps *int)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512) SetWidth

func (i *ImageGenerateParamsQwenImage2512) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512) String

func (*ImageGenerateParamsQwenImage2512) UnmarshalJSON

func (i *ImageGenerateParamsQwenImage2512) UnmarshalJSON(data []byte) error

type ImageGenerateParamsQwenImage2512Lightning

type ImageGenerateParamsQwenImage2512Lightning struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// Denoise steps. More steps means more detail and more time.
	Steps *int `json:"steps,omitempty" url:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageGenerateParamsQwenImage2512Lightning) GetEnhancePrompt

func (i *ImageGenerateParamsQwenImage2512Lightning) GetEnhancePrompt() *bool

func (*ImageGenerateParamsQwenImage2512Lightning) GetExtraProperties

func (i *ImageGenerateParamsQwenImage2512Lightning) GetExtraProperties() map[string]interface{}

func (*ImageGenerateParamsQwenImage2512Lightning) GetHeight

func (*ImageGenerateParamsQwenImage2512Lightning) GetPrompt

func (*ImageGenerateParamsQwenImage2512Lightning) GetSeed

func (*ImageGenerateParamsQwenImage2512Lightning) GetSteps

func (*ImageGenerateParamsQwenImage2512Lightning) GetWidth

func (*ImageGenerateParamsQwenImage2512Lightning) MarshalJSON

func (*ImageGenerateParamsQwenImage2512Lightning) SetEnhancePrompt

func (i *ImageGenerateParamsQwenImage2512Lightning) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512Lightning) SetHeight

func (i *ImageGenerateParamsQwenImage2512Lightning) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512Lightning) SetPrompt

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512Lightning) SetSeed

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512Lightning) SetSteps

func (i *ImageGenerateParamsQwenImage2512Lightning) SetSteps(steps *int)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512Lightning) SetWidth

func (i *ImageGenerateParamsQwenImage2512Lightning) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsQwenImage2512Lightning) String

func (*ImageGenerateParamsQwenImage2512Lightning) UnmarshalJSON

func (i *ImageGenerateParamsQwenImage2512Lightning) UnmarshalJSON(data []byte) error

type ImageGenerateParamsStandard

type ImageGenerateParamsStandard struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageGenerateParamsStandard) GetEnhancePrompt

func (i *ImageGenerateParamsStandard) GetEnhancePrompt() *bool

func (*ImageGenerateParamsStandard) GetExtraProperties

func (i *ImageGenerateParamsStandard) GetExtraProperties() map[string]interface{}

func (*ImageGenerateParamsStandard) GetHeight

func (i *ImageGenerateParamsStandard) GetHeight() *int

func (*ImageGenerateParamsStandard) GetPrompt

func (i *ImageGenerateParamsStandard) GetPrompt() string

func (*ImageGenerateParamsStandard) GetSeed

func (i *ImageGenerateParamsStandard) GetSeed() *int

func (*ImageGenerateParamsStandard) GetWidth

func (i *ImageGenerateParamsStandard) GetWidth() *int

func (*ImageGenerateParamsStandard) MarshalJSON

func (i *ImageGenerateParamsStandard) MarshalJSON() ([]byte, error)

func (*ImageGenerateParamsStandard) SetEnhancePrompt

func (i *ImageGenerateParamsStandard) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsStandard) SetHeight

func (i *ImageGenerateParamsStandard) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsStandard) SetPrompt

func (i *ImageGenerateParamsStandard) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsStandard) SetSeed

func (i *ImageGenerateParamsStandard) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsStandard) SetWidth

func (i *ImageGenerateParamsStandard) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsStandard) String

func (i *ImageGenerateParamsStandard) String() string

func (*ImageGenerateParamsStandard) UnmarshalJSON

func (i *ImageGenerateParamsStandard) UnmarshalJSON(data []byte) error

type ImageGenerateParamsVisitor

type ImageGenerateParamsVisitor interface {
	VisitEconomy(*ImageGenerateParamsEconomy) error
	VisitStandard(*ImageGenerateParamsStandard) error
	VisitPremium(*ImageGenerateParamsPremium) error
	VisitFlux2Klein4B(*ImageGenerateParamsFlux2Klein4B) error
	VisitErnieImageTurbo(*ImageGenerateParamsErnieImageTurbo) error
	VisitZImageTurbo(*ImageGenerateParamsZImageTurbo) error
	VisitQwenImage2512(*ImageGenerateParamsQwenImage2512) error
	VisitQwenImage2512Lightning(*ImageGenerateParamsQwenImage2512Lightning) error
	VisitFlux2Dev(*ImageGenerateParamsFlux2Dev) error
}

type ImageGenerateParamsZImageTurbo

type ImageGenerateParamsZImageTurbo struct {
	// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
	Prompt string `json:"prompt" url:"prompt"`
	// Requested output width in pixels. Snapped to what the model can render.
	Width *int `json:"width,omitempty" url:"width,omitempty"`
	// Requested output height in pixels. Snapped to what the model can render.
	Height *int `json:"height,omitempty" url:"height,omitempty"`
	// Fixed seed for a reproducible result. The seed used is echoed back.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
	EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
	// Denoise steps. More steps means more detail and more time.
	Steps *int `json:"steps,omitempty" url:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageGenerateParamsZImageTurbo) GetEnhancePrompt

func (i *ImageGenerateParamsZImageTurbo) GetEnhancePrompt() *bool

func (*ImageGenerateParamsZImageTurbo) GetExtraProperties

func (i *ImageGenerateParamsZImageTurbo) GetExtraProperties() map[string]interface{}

func (*ImageGenerateParamsZImageTurbo) GetHeight

func (i *ImageGenerateParamsZImageTurbo) GetHeight() *int

func (*ImageGenerateParamsZImageTurbo) GetPrompt

func (i *ImageGenerateParamsZImageTurbo) GetPrompt() string

func (*ImageGenerateParamsZImageTurbo) GetSeed

func (i *ImageGenerateParamsZImageTurbo) GetSeed() *int

func (*ImageGenerateParamsZImageTurbo) GetSteps

func (i *ImageGenerateParamsZImageTurbo) GetSteps() *int

func (*ImageGenerateParamsZImageTurbo) GetWidth

func (i *ImageGenerateParamsZImageTurbo) GetWidth() *int

func (*ImageGenerateParamsZImageTurbo) MarshalJSON

func (i *ImageGenerateParamsZImageTurbo) MarshalJSON() ([]byte, error)

func (*ImageGenerateParamsZImageTurbo) SetEnhancePrompt

func (i *ImageGenerateParamsZImageTurbo) SetEnhancePrompt(enhancePrompt *bool)

SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsZImageTurbo) SetHeight

func (i *ImageGenerateParamsZImageTurbo) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsZImageTurbo) SetPrompt

func (i *ImageGenerateParamsZImageTurbo) SetPrompt(prompt string)

SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsZImageTurbo) SetSeed

func (i *ImageGenerateParamsZImageTurbo) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsZImageTurbo) SetSteps

func (i *ImageGenerateParamsZImageTurbo) SetSteps(steps *int)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsZImageTurbo) SetWidth

func (i *ImageGenerateParamsZImageTurbo) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageGenerateParamsZImageTurbo) String

func (*ImageGenerateParamsZImageTurbo) UnmarshalJSON

func (i *ImageGenerateParamsZImageTurbo) UnmarshalJSON(data []byte) error

type ImageUpscaleParams

type ImageUpscaleParams struct {
	// Which restoration model to run. seedvr2-3b is the default and the one most people prefer; seedvr2-7b is the larger checkpoint, offered as an option rather than an upgrade.
	Model *ImageUpscaleParamsModel `json:"model,omitempty" url:"model,omitempty"`
	// How large the output should be. Defaults to twice the source. Default: {"mode":"factor","factor":2}.
	Sizing *ImageUpscaleParamsSizing `json:"sizing,omitempty" url:"sizing,omitempty"`
	// Artifact reduction, 0 to 1. Higher is smoother and reconstructs less. 0.1 to 0.3 is the useful band.
	InputNoise *float64 `json:"inputNoise,omitempty" url:"inputNoise,omitempty"`
	// Shrink the source before upscaling, 0.25 to 1. Below 1 gives the model less to preserve and more to rebuild. Lower it for a clean uncompressed source; leave it at 1 for anything saved as a JPEG, where the rebuild follows the compression artifacts instead of the subject.
	InputScale *float64 `json:"inputScale,omitempty" url:"inputScale,omitempty"`
	// Softens excessive detail, 0 to 1. Reach for it when a result looks overcooked rather than soft. 0.05 to 0.15 is the useful band. Defaults to off.
	LatentNoise *float64 `json:"latentNoise,omitempty" url:"latentNoise,omitempty"`
	// How colour is matched back to the source. lab is the default and the most faithful. The others exist for sources where it shifts colour.
	ColorCorrection *ImageUpscaleParamsColorCorrection `json:"colorCorrection,omitempty" url:"colorCorrection,omitempty"`
	// Fixed at 42 unless you set one. This model reconstructs detail rather than copying it, so a different seed is a different plausible result. Change it to reroll, keep it to reproduce.
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// Run the model repeatedly, each pass covering an equal share of the total scale factor. Leave it unset and the number of passes follows the factor, keeping every step near a doubling, which is where this model does its best work. Set it explicitly to override. Costs one full render per pass.
	Passes *int `json:"passes,omitempty" url:"passes,omitempty"`
	// contains filtered or unexported fields
}

Params of the image.upscale job.

func (*ImageUpscaleParams) GetColorCorrection

func (i *ImageUpscaleParams) GetColorCorrection() *ImageUpscaleParamsColorCorrection

func (*ImageUpscaleParams) GetExtraProperties

func (i *ImageUpscaleParams) GetExtraProperties() map[string]interface{}

func (*ImageUpscaleParams) GetInputNoise

func (i *ImageUpscaleParams) GetInputNoise() *float64

func (*ImageUpscaleParams) GetInputScale

func (i *ImageUpscaleParams) GetInputScale() *float64

func (*ImageUpscaleParams) GetLatentNoise

func (i *ImageUpscaleParams) GetLatentNoise() *float64

func (*ImageUpscaleParams) GetModel

func (*ImageUpscaleParams) GetPasses

func (i *ImageUpscaleParams) GetPasses() *int

func (*ImageUpscaleParams) GetSeed

func (i *ImageUpscaleParams) GetSeed() *int

func (*ImageUpscaleParams) GetSizing

func (*ImageUpscaleParams) MarshalJSON

func (i *ImageUpscaleParams) MarshalJSON() ([]byte, error)

func (*ImageUpscaleParams) SetColorCorrection

func (i *ImageUpscaleParams) SetColorCorrection(colorCorrection *ImageUpscaleParamsColorCorrection)

SetColorCorrection sets the ColorCorrection field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageUpscaleParams) SetInputNoise

func (i *ImageUpscaleParams) SetInputNoise(inputNoise *float64)

SetInputNoise sets the InputNoise field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageUpscaleParams) SetInputScale

func (i *ImageUpscaleParams) SetInputScale(inputScale *float64)

SetInputScale sets the InputScale field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageUpscaleParams) SetLatentNoise

func (i *ImageUpscaleParams) SetLatentNoise(latentNoise *float64)

SetLatentNoise sets the LatentNoise field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageUpscaleParams) SetModel

func (i *ImageUpscaleParams) SetModel(model *ImageUpscaleParamsModel)

SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageUpscaleParams) SetPasses

func (i *ImageUpscaleParams) SetPasses(passes *int)

SetPasses sets the Passes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageUpscaleParams) SetSeed

func (i *ImageUpscaleParams) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageUpscaleParams) SetSizing

func (i *ImageUpscaleParams) SetSizing(sizing *ImageUpscaleParamsSizing)

SetSizing sets the Sizing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageUpscaleParams) String

func (i *ImageUpscaleParams) String() string

func (*ImageUpscaleParams) UnmarshalJSON

func (i *ImageUpscaleParams) UnmarshalJSON(data []byte) error

type ImageUpscaleParamsColorCorrection

type ImageUpscaleParamsColorCorrection string

How colour is matched back to the source. lab is the default and the most faithful. The others exist for sources where it shifts colour.

const (
	ImageUpscaleParamsColorCorrectionLab             ImageUpscaleParamsColorCorrection = "lab"
	ImageUpscaleParamsColorCorrectionWavelet         ImageUpscaleParamsColorCorrection = "wavelet"
	ImageUpscaleParamsColorCorrectionWaveletAdaptive ImageUpscaleParamsColorCorrection = "wavelet_adaptive"
	ImageUpscaleParamsColorCorrectionHsv             ImageUpscaleParamsColorCorrection = "hsv"
	ImageUpscaleParamsColorCorrectionAdain           ImageUpscaleParamsColorCorrection = "adain"
	ImageUpscaleParamsColorCorrectionNone            ImageUpscaleParamsColorCorrection = "none"
)

func NewImageUpscaleParamsColorCorrectionFromString

func NewImageUpscaleParamsColorCorrectionFromString(s string) (ImageUpscaleParamsColorCorrection, error)

func (ImageUpscaleParamsColorCorrection) Ptr

type ImageUpscaleParamsModel

type ImageUpscaleParamsModel string

Which restoration model to run. seedvr2-3b is the default and the one most people prefer; seedvr2-7b is the larger checkpoint, offered as an option rather than an upgrade.

const (
	ImageUpscaleParamsModelSeedvr23B ImageUpscaleParamsModel = "seedvr2-3b"
	ImageUpscaleParamsModelSeedvr27B ImageUpscaleParamsModel = "seedvr2-7b"
)

func NewImageUpscaleParamsModelFromString

func NewImageUpscaleParamsModelFromString(s string) (ImageUpscaleParamsModel, error)

func (ImageUpscaleParamsModel) Ptr

type ImageUpscaleParamsSizing

type ImageUpscaleParamsSizing struct {
	Mode   string
	Factor *ImageUpscaleParamsSizingFactor
	Height *ImageUpscaleParamsSizingHeight
	// contains filtered or unexported fields
}

How large the output should be. Defaults to twice the source. Default: {"mode":"factor","factor":2}.

func (*ImageUpscaleParamsSizing) Accept

func (*ImageUpscaleParamsSizing) GetFactor

func (*ImageUpscaleParamsSizing) GetHeight

func (*ImageUpscaleParamsSizing) GetMode

func (i *ImageUpscaleParamsSizing) GetMode() string

func (ImageUpscaleParamsSizing) MarshalJSON

func (i ImageUpscaleParamsSizing) MarshalJSON() ([]byte, error)

func (*ImageUpscaleParamsSizing) UnmarshalJSON

func (i *ImageUpscaleParamsSizing) UnmarshalJSON(data []byte) error

type ImageUpscaleParamsSizingFactor

type ImageUpscaleParamsSizingFactor struct {
	// How many times larger to make the image, for example 2 or 4.
	Factor float64 `json:"factor" url:"factor"`
	// contains filtered or unexported fields
}

func (*ImageUpscaleParamsSizingFactor) GetExtraProperties

func (i *ImageUpscaleParamsSizingFactor) GetExtraProperties() map[string]interface{}

func (*ImageUpscaleParamsSizingFactor) GetFactor

func (i *ImageUpscaleParamsSizingFactor) GetFactor() float64

func (*ImageUpscaleParamsSizingFactor) MarshalJSON

func (i *ImageUpscaleParamsSizingFactor) MarshalJSON() ([]byte, error)

func (*ImageUpscaleParamsSizingFactor) SetFactor

func (i *ImageUpscaleParamsSizingFactor) SetFactor(factor float64)

SetFactor sets the Factor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageUpscaleParamsSizingFactor) String

func (*ImageUpscaleParamsSizingFactor) UnmarshalJSON

func (i *ImageUpscaleParamsSizingFactor) UnmarshalJSON(data []byte) error

type ImageUpscaleParamsSizingHeight

type ImageUpscaleParamsSizingHeight struct {
	// Target output height in pixels. Width follows the source aspect ratio.
	Height int `json:"height" url:"height"`
	// contains filtered or unexported fields
}

func (*ImageUpscaleParamsSizingHeight) GetExtraProperties

func (i *ImageUpscaleParamsSizingHeight) GetExtraProperties() map[string]interface{}

func (*ImageUpscaleParamsSizingHeight) GetHeight

func (i *ImageUpscaleParamsSizingHeight) GetHeight() int

func (*ImageUpscaleParamsSizingHeight) MarshalJSON

func (i *ImageUpscaleParamsSizingHeight) MarshalJSON() ([]byte, error)

func (*ImageUpscaleParamsSizingHeight) SetHeight

func (i *ImageUpscaleParamsSizingHeight) SetHeight(height int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageUpscaleParamsSizingHeight) String

func (*ImageUpscaleParamsSizingHeight) UnmarshalJSON

func (i *ImageUpscaleParamsSizingHeight) UnmarshalJSON(data []byte) error

type ImageUpscaleParamsSizingVisitor

type ImageUpscaleParamsSizingVisitor interface {
	VisitFactor(*ImageUpscaleParamsSizingFactor) error
	VisitHeight(*ImageUpscaleParamsSizingHeight) error
}

type InternalServerError

type InternalServerError struct {
	*core.APIError
	Body *ErrorResponse
}

Plan not configured or checkout creation failed

func (*InternalServerError) GetBody

func (i *InternalServerError) GetBody() *ErrorResponse

func (*InternalServerError) MarshalJSON

func (i *InternalServerError) MarshalJSON() ([]byte, error)

func (*InternalServerError) UnmarshalJSON

func (i *InternalServerError) UnmarshalJSON(data []byte) error

func (*InternalServerError) Unwrap

func (i *InternalServerError) Unwrap() error

type Job

type Job struct {
	Status     string
	Waiting    *JobWaiting
	Dispatched *JobDispatched
	Running    *JobRunning
	Complete   *JobComplete
	Failed     *JobFailed
	Cancelled  *JobCancelled
	// contains filtered or unexported fields
}

func (*Job) Accept

func (j *Job) Accept(visitor JobVisitor) error

func (*Job) GetCancelled

func (j *Job) GetCancelled() *JobCancelled

func (*Job) GetComplete

func (j *Job) GetComplete() *JobComplete

func (*Job) GetDispatched

func (j *Job) GetDispatched() *JobDispatched

func (*Job) GetFailed

func (j *Job) GetFailed() *JobFailed

func (*Job) GetRunning

func (j *Job) GetRunning() *JobRunning

func (*Job) GetStatus

func (j *Job) GetStatus() string

func (*Job) GetWaiting

func (j *Job) GetWaiting() *JobWaiting

func (Job) MarshalJSON

func (j Job) MarshalJSON() ([]byte, error)

func (*Job) UnmarshalJSON

func (j *Job) UnmarshalJSON(data []byte) error

type JobCancelled

type JobCancelled struct {
	// Job ID (e.g. job_abc123)
	ID string `json:"id" url:"id"`
	// Organization ID
	OrgID string `json:"orgId" url:"orgId"`
	// Job type (e.g. ffmpeg)
	Type string `json:"type" url:"type"`
	// How the job was created (api | dashboard | mcp ...)
	Source string `json:"source" url:"source"`
	// Originating client (sdk | cli | mcp | n8n | ...), or null
	Client *string `json:"client,omitempty" url:"client,omitempty"`
	// Number of retry attempts
	RetryCount int `json:"retryCount" url:"retryCount"`
	// Caller-supplied idempotency key, or null
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// Caller-chosen name for the job, or null
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Detected media type (video | image | audio), or null
	MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
	// Input file references
	Inputs map[string]any `json:"inputs" url:"inputs"`
	// Job parameters
	Params map[string]any `json:"params" url:"params"`
	Cost   *JobCost       `json:"cost,omitempty" url:"cost,omitempty"`
	// Output category. Clients should tolerate unknown future values.
	OutputCategory JobCancelledOutputCategory `json:"outputCategory" url:"outputCategory"`
	// Execution steps
	Steps []*JobStep `json:"steps" url:"steps"`
	// Whether execution logs are stored
	LogsAvailable bool `json:"logsAvailable" url:"logsAvailable"`
	// Whether the resource-utilization series is stored
	ResourcesAvailable bool `json:"resourcesAvailable" url:"resourcesAvailable"`
	// @deprecated renamed to resourcesAvailable; kept until the next major
	MetricsAvailable *bool `json:"metricsAvailable,omitempty" url:"metricsAvailable,omitempty"`
	// Execution region (e.g. us-east-1), null until dispatched
	Region *string `json:"region,omitempty" url:"region,omitempty"`
	// How long this job is allowed to run, in milliseconds: the requested timeout clamped to the plan ceiling. Null until the job is dispatched. Clients waiting on a job should bound the wait by this rather than a fixed guess.
	TimeoutMs *int `json:"timeoutMs,omitempty" url:"timeoutMs,omitempty"`
	// Creation timestamp (Unix ms)
	CreatedAt int `json:"createdAt" url:"createdAt"`
	// Dispatch timestamp (Unix ms)
	DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
	// Start timestamp (Unix ms)
	StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
	// Completion timestamp (Unix ms)
	CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
	// CF Worker timestamp when terminal status written (Unix ms)
	SettledAt *int `json:"settledAt,omitempty" url:"settledAt,omitempty"`
	// Unix ms when the stored output files are deleted (completion + plan retention window). Null until the job completes with a stored output. Distinct from output.expiresAt, which is the short-lived download-URL expiry.
	RetentionExpiresAt *int `json:"retentionExpiresAt,omitempty" url:"retentionExpiresAt,omitempty"`
	// Dashboard URL for this job
	WebURL string `json:"webUrl" url:"webUrl"`
	// Resolved generation model id (image.generate / image.edit jobs only), else null
	Model *string `json:"model,omitempty" url:"model,omitempty"`
	// True once the job has ended (complete, failed or cancelled), false while it waits or runs. Stop waiting on this rather than on a list of statuses: it stays right when a status is added.
	Terminal bool            `json:"terminal" url:"terminal"`
	Callback *CallbackStatus `json:"callback,omitempty" url:"callback,omitempty"`
	// Where the output was or will be delivered, one entry per destination given at submit. Detail endpoint only; absent when the job had no destinations.
	Deliveries []*JobDelivery `json:"deliveries,omitempty" url:"deliveries,omitempty"`
	// contains filtered or unexported fields
}

func (*JobCancelled) GetCallback

func (j *JobCancelled) GetCallback() *CallbackStatus

func (*JobCancelled) GetClient

func (j *JobCancelled) GetClient() *string

func (*JobCancelled) GetCompletedAt

func (j *JobCancelled) GetCompletedAt() *int

func (*JobCancelled) GetCost

func (j *JobCancelled) GetCost() *JobCost

func (*JobCancelled) GetCreatedAt

func (j *JobCancelled) GetCreatedAt() int

func (*JobCancelled) GetDeliveries

func (j *JobCancelled) GetDeliveries() []*JobDelivery

func (*JobCancelled) GetDispatchedAt

func (j *JobCancelled) GetDispatchedAt() *int

func (*JobCancelled) GetExtraProperties

func (j *JobCancelled) GetExtraProperties() map[string]interface{}

func (*JobCancelled) GetID

func (j *JobCancelled) GetID() string

func (*JobCancelled) GetIdempotencyKey

func (j *JobCancelled) GetIdempotencyKey() *string

func (*JobCancelled) GetInputs

func (j *JobCancelled) GetInputs() map[string]any

func (*JobCancelled) GetLabel

func (j *JobCancelled) GetLabel() *string

func (*JobCancelled) GetLogsAvailable

func (j *JobCancelled) GetLogsAvailable() bool

func (*JobCancelled) GetMediaType

func (j *JobCancelled) GetMediaType() *string

func (*JobCancelled) GetMetricsAvailable

func (j *JobCancelled) GetMetricsAvailable() *bool

func (*JobCancelled) GetModel

func (j *JobCancelled) GetModel() *string

func (*JobCancelled) GetOrgID

func (j *JobCancelled) GetOrgID() string

func (*JobCancelled) GetOutputCategory

func (j *JobCancelled) GetOutputCategory() JobCancelledOutputCategory

func (*JobCancelled) GetParams

func (j *JobCancelled) GetParams() map[string]any

func (*JobCancelled) GetRegion

func (j *JobCancelled) GetRegion() *string

func (*JobCancelled) GetResourcesAvailable

func (j *JobCancelled) GetResourcesAvailable() bool

func (*JobCancelled) GetRetentionExpiresAt

func (j *JobCancelled) GetRetentionExpiresAt() *int

func (*JobCancelled) GetRetryCount

func (j *JobCancelled) GetRetryCount() int

func (*JobCancelled) GetSettledAt

func (j *JobCancelled) GetSettledAt() *int

func (*JobCancelled) GetSource

func (j *JobCancelled) GetSource() string

func (*JobCancelled) GetStartedAt

func (j *JobCancelled) GetStartedAt() *int

func (*JobCancelled) GetSteps

func (j *JobCancelled) GetSteps() []*JobStep

func (*JobCancelled) GetTerminal

func (j *JobCancelled) GetTerminal() bool

func (*JobCancelled) GetTimeoutMs

func (j *JobCancelled) GetTimeoutMs() *int

func (*JobCancelled) GetType

func (j *JobCancelled) GetType() string

func (*JobCancelled) GetWebURL

func (j *JobCancelled) GetWebURL() string

func (*JobCancelled) MarshalJSON

func (j *JobCancelled) MarshalJSON() ([]byte, error)

func (*JobCancelled) SetCallback

func (j *JobCancelled) SetCallback(callback *CallbackStatus)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetClient

func (j *JobCancelled) SetClient(client *string)

SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetCompletedAt

func (j *JobCancelled) SetCompletedAt(completedAt *int)

SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetCost

func (j *JobCancelled) SetCost(cost *JobCost)

SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetCreatedAt

func (j *JobCancelled) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetDeliveries

func (j *JobCancelled) SetDeliveries(deliveries []*JobDelivery)

SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetDispatchedAt

func (j *JobCancelled) SetDispatchedAt(dispatchedAt *int)

SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetID

func (j *JobCancelled) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetIdempotencyKey

func (j *JobCancelled) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetInputs

func (j *JobCancelled) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetLabel

func (j *JobCancelled) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetLogsAvailable

func (j *JobCancelled) SetLogsAvailable(logsAvailable bool)

SetLogsAvailable sets the LogsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetMediaType

func (j *JobCancelled) SetMediaType(mediaType *string)

SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetMetricsAvailable

func (j *JobCancelled) SetMetricsAvailable(metricsAvailable *bool)

SetMetricsAvailable sets the MetricsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetModel

func (j *JobCancelled) SetModel(model *string)

SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetOrgID

func (j *JobCancelled) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetOutputCategory

func (j *JobCancelled) SetOutputCategory(outputCategory JobCancelledOutputCategory)

SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetParams

func (j *JobCancelled) SetParams(params map[string]any)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetRegion

func (j *JobCancelled) SetRegion(region *string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetResourcesAvailable

func (j *JobCancelled) SetResourcesAvailable(resourcesAvailable bool)

SetResourcesAvailable sets the ResourcesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetRetentionExpiresAt

func (j *JobCancelled) SetRetentionExpiresAt(retentionExpiresAt *int)

SetRetentionExpiresAt sets the RetentionExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetRetryCount

func (j *JobCancelled) SetRetryCount(retryCount int)

SetRetryCount sets the RetryCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetSettledAt

func (j *JobCancelled) SetSettledAt(settledAt *int)

SetSettledAt sets the SettledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetSource

func (j *JobCancelled) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetStartedAt

func (j *JobCancelled) SetStartedAt(startedAt *int)

SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetSteps

func (j *JobCancelled) SetSteps(steps []*JobStep)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetTerminal

func (j *JobCancelled) SetTerminal(terminal bool)

SetTerminal sets the Terminal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetTimeoutMs

func (j *JobCancelled) SetTimeoutMs(timeoutMs *int)

SetTimeoutMs sets the TimeoutMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetType

func (j *JobCancelled) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) SetWebURL

func (j *JobCancelled) SetWebURL(webURL string)

SetWebURL sets the WebURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelled) String

func (j *JobCancelled) String() string

func (*JobCancelled) UnmarshalJSON

func (j *JobCancelled) UnmarshalJSON(data []byte) error

type JobCancelledData

type JobCancelledData struct {
	JobID   string                  `json:"jobId" url:"jobId"`
	JobType string                  `json:"jobType" url:"jobType"`
	Status  JobCancelledDataStatus  `json:"status" url:"status"`
	Timing  *JobCancelledDataTiming `json:"timing" url:"timing"`
	// contains filtered or unexported fields
}

func (*JobCancelledData) GetExtraProperties

func (j *JobCancelledData) GetExtraProperties() map[string]interface{}

func (*JobCancelledData) GetJobID

func (j *JobCancelledData) GetJobID() string

func (*JobCancelledData) GetJobType

func (j *JobCancelledData) GetJobType() string

func (*JobCancelledData) GetStatus

func (*JobCancelledData) GetTiming

func (j *JobCancelledData) GetTiming() *JobCancelledDataTiming

func (*JobCancelledData) MarshalJSON

func (j *JobCancelledData) MarshalJSON() ([]byte, error)

func (*JobCancelledData) SetJobID

func (j *JobCancelledData) SetJobID(jobID string)

SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelledData) SetJobType

func (j *JobCancelledData) SetJobType(jobType string)

SetJobType sets the JobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelledData) SetStatus

func (j *JobCancelledData) SetStatus(status JobCancelledDataStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelledData) SetTiming

func (j *JobCancelledData) SetTiming(timing *JobCancelledDataTiming)

SetTiming sets the Timing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelledData) String

func (j *JobCancelledData) String() string

func (*JobCancelledData) UnmarshalJSON

func (j *JobCancelledData) UnmarshalJSON(data []byte) error

type JobCancelledDataStatus

type JobCancelledDataStatus string
const (
	JobCancelledDataStatusCancelled JobCancelledDataStatus = "cancelled"
)

func NewJobCancelledDataStatusFromString

func NewJobCancelledDataStatusFromString(s string) (JobCancelledDataStatus, error)

func (JobCancelledDataStatus) Ptr

type JobCancelledDataTiming

type JobCancelledDataTiming struct {
	CreatedAt   int `json:"createdAt" url:"createdAt"`
	CancelledAt int `json:"cancelledAt" url:"cancelledAt"`
	// contains filtered or unexported fields
}

func (*JobCancelledDataTiming) GetCancelledAt

func (j *JobCancelledDataTiming) GetCancelledAt() int

func (*JobCancelledDataTiming) GetCreatedAt

func (j *JobCancelledDataTiming) GetCreatedAt() int

func (*JobCancelledDataTiming) GetExtraProperties

func (j *JobCancelledDataTiming) GetExtraProperties() map[string]interface{}

func (*JobCancelledDataTiming) MarshalJSON

func (j *JobCancelledDataTiming) MarshalJSON() ([]byte, error)

func (*JobCancelledDataTiming) SetCancelledAt

func (j *JobCancelledDataTiming) SetCancelledAt(cancelledAt int)

SetCancelledAt sets the CancelledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelledDataTiming) SetCreatedAt

func (j *JobCancelledDataTiming) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelledDataTiming) String

func (j *JobCancelledDataTiming) String() string

func (*JobCancelledDataTiming) UnmarshalJSON

func (j *JobCancelledDataTiming) UnmarshalJSON(data []byte) error

type JobCancelledOutputCategory

type JobCancelledOutputCategory string

Output category. Clients should tolerate unknown future values.

const (
	JobCancelledOutputCategoryVideo    JobCancelledOutputCategory = "video"
	JobCancelledOutputCategoryImage    JobCancelledOutputCategory = "image"
	JobCancelledOutputCategoryAudio    JobCancelledOutputCategory = "audio"
	JobCancelledOutputCategoryJSON     JobCancelledOutputCategory = "json"
	JobCancelledOutputCategoryCaptions JobCancelledOutputCategory = "captions"
	JobCancelledOutputCategoryRaw      JobCancelledOutputCategory = "raw"
)

func NewJobCancelledOutputCategoryFromString

func NewJobCancelledOutputCategoryFromString(s string) (JobCancelledOutputCategory, error)

func (JobCancelledOutputCategory) Ptr

type JobCancelledWebhookEvent

type JobCancelledWebhookEvent struct {
	// Envelope version. A new version is a new shape
	Version JobCancelledWebhookEventVersion `json:"version" url:"version"`
	// Unique per delivery. Retries of one delivery share it
	DeliveryID string `json:"deliveryId" url:"deliveryId"`
	// When the event happened (Unix ms)
	Timestamp int               `json:"timestamp" url:"timestamp"`
	OrgID     string            `json:"orgId" url:"orgId"`
	Data      *JobCancelledData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*JobCancelledWebhookEvent) GetData

func (*JobCancelledWebhookEvent) GetDeliveryID

func (j *JobCancelledWebhookEvent) GetDeliveryID() string

func (*JobCancelledWebhookEvent) GetExtraProperties

func (j *JobCancelledWebhookEvent) GetExtraProperties() map[string]interface{}

func (*JobCancelledWebhookEvent) GetOrgID

func (j *JobCancelledWebhookEvent) GetOrgID() string

func (*JobCancelledWebhookEvent) GetTimestamp

func (j *JobCancelledWebhookEvent) GetTimestamp() int

func (*JobCancelledWebhookEvent) GetVersion

func (*JobCancelledWebhookEvent) MarshalJSON

func (j *JobCancelledWebhookEvent) MarshalJSON() ([]byte, error)

func (*JobCancelledWebhookEvent) SetData

func (j *JobCancelledWebhookEvent) SetData(data *JobCancelledData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelledWebhookEvent) SetDeliveryID

func (j *JobCancelledWebhookEvent) SetDeliveryID(deliveryID string)

SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelledWebhookEvent) SetOrgID

func (j *JobCancelledWebhookEvent) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelledWebhookEvent) SetTimestamp

func (j *JobCancelledWebhookEvent) SetTimestamp(timestamp int)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelledWebhookEvent) SetVersion

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCancelledWebhookEvent) String

func (j *JobCancelledWebhookEvent) String() string

func (*JobCancelledWebhookEvent) UnmarshalJSON

func (j *JobCancelledWebhookEvent) UnmarshalJSON(data []byte) error

type JobCancelledWebhookEventVersion

type JobCancelledWebhookEventVersion string

Envelope version. A new version is a new shape

const (
	JobCancelledWebhookEventVersionV1 JobCancelledWebhookEventVersion = "1"
)

func NewJobCancelledWebhookEventVersionFromString

func NewJobCancelledWebhookEventVersionFromString(s string) (JobCancelledWebhookEventVersion, error)

func (JobCancelledWebhookEventVersion) Ptr

type JobComplete

type JobComplete struct {
	// Job ID (e.g. job_abc123)
	ID string `json:"id" url:"id"`
	// Organization ID
	OrgID string `json:"orgId" url:"orgId"`
	// Job type (e.g. ffmpeg)
	Type string `json:"type" url:"type"`
	// How the job was created (api | dashboard | mcp ...)
	Source string `json:"source" url:"source"`
	// Originating client (sdk | cli | mcp | n8n | ...), or null
	Client *string `json:"client,omitempty" url:"client,omitempty"`
	// Number of retry attempts
	RetryCount int `json:"retryCount" url:"retryCount"`
	// Caller-supplied idempotency key, or null
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// Caller-chosen name for the job, or null
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Detected media type (video | image | audio), or null
	MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
	// Input file references
	Inputs map[string]any `json:"inputs" url:"inputs"`
	// Job parameters
	Params map[string]any `json:"params" url:"params"`
	Cost   *JobCost       `json:"cost,omitempty" url:"cost,omitempty"`
	// Output category. Clients should tolerate unknown future values.
	OutputCategory JobCompleteOutputCategory `json:"outputCategory" url:"outputCategory"`
	// Execution steps
	Steps []*JobStep `json:"steps" url:"steps"`
	// Whether execution logs are stored
	LogsAvailable bool `json:"logsAvailable" url:"logsAvailable"`
	// Whether the resource-utilization series is stored
	ResourcesAvailable bool `json:"resourcesAvailable" url:"resourcesAvailable"`
	// @deprecated renamed to resourcesAvailable; kept until the next major
	MetricsAvailable *bool `json:"metricsAvailable,omitempty" url:"metricsAvailable,omitempty"`
	// Execution region (e.g. us-east-1), null until dispatched
	Region *string `json:"region,omitempty" url:"region,omitempty"`
	// How long this job is allowed to run, in milliseconds: the requested timeout clamped to the plan ceiling. Null until the job is dispatched. Clients waiting on a job should bound the wait by this rather than a fixed guess.
	TimeoutMs *int `json:"timeoutMs,omitempty" url:"timeoutMs,omitempty"`
	// Creation timestamp (Unix ms)
	CreatedAt int `json:"createdAt" url:"createdAt"`
	// Dispatch timestamp (Unix ms)
	DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
	// Start timestamp (Unix ms)
	StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
	// Completion timestamp (Unix ms)
	CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
	// CF Worker timestamp when terminal status written (Unix ms)
	SettledAt *int `json:"settledAt,omitempty" url:"settledAt,omitempty"`
	// Unix ms when the stored output files are deleted (completion + plan retention window). Null until the job completes with a stored output. Distinct from output.expiresAt, which is the short-lived download-URL expiry.
	RetentionExpiresAt *int `json:"retentionExpiresAt,omitempty" url:"retentionExpiresAt,omitempty"`
	// Dashboard URL for this job
	WebURL string `json:"webUrl" url:"webUrl"`
	// Resolved generation model id (image.generate / image.edit jobs only), else null
	Model *string `json:"model,omitempty" url:"model,omitempty"`
	// True once the job has ended (complete, failed or cancelled), false while it waits or runs. Stop waiting on this rather than on a list of statuses: it stays right when a status is added.
	Terminal bool            `json:"terminal" url:"terminal"`
	Callback *CallbackStatus `json:"callback,omitempty" url:"callback,omitempty"`
	// Where the output was or will be delivered, one entry per destination given at submit. Detail endpoint only; absent when the job had no destinations.
	Deliveries []*JobDelivery `json:"deliveries,omitempty" url:"deliveries,omitempty"`
	Output     *JobOutput     `json:"output" url:"output"`
	// contains filtered or unexported fields
}

func (*JobComplete) GetCallback

func (j *JobComplete) GetCallback() *CallbackStatus

func (*JobComplete) GetClient

func (j *JobComplete) GetClient() *string

func (*JobComplete) GetCompletedAt

func (j *JobComplete) GetCompletedAt() *int

func (*JobComplete) GetCost

func (j *JobComplete) GetCost() *JobCost

func (*JobComplete) GetCreatedAt

func (j *JobComplete) GetCreatedAt() int

func (*JobComplete) GetDeliveries

func (j *JobComplete) GetDeliveries() []*JobDelivery

func (*JobComplete) GetDispatchedAt

func (j *JobComplete) GetDispatchedAt() *int

func (*JobComplete) GetExtraProperties

func (j *JobComplete) GetExtraProperties() map[string]interface{}

func (*JobComplete) GetID

func (j *JobComplete) GetID() string

func (*JobComplete) GetIdempotencyKey

func (j *JobComplete) GetIdempotencyKey() *string

func (*JobComplete) GetInputs

func (j *JobComplete) GetInputs() map[string]any

func (*JobComplete) GetLabel

func (j *JobComplete) GetLabel() *string

func (*JobComplete) GetLogsAvailable

func (j *JobComplete) GetLogsAvailable() bool

func (*JobComplete) GetMediaType

func (j *JobComplete) GetMediaType() *string

func (*JobComplete) GetMetricsAvailable

func (j *JobComplete) GetMetricsAvailable() *bool

func (*JobComplete) GetModel

func (j *JobComplete) GetModel() *string

func (*JobComplete) GetOrgID

func (j *JobComplete) GetOrgID() string

func (*JobComplete) GetOutput

func (j *JobComplete) GetOutput() *JobOutput

func (*JobComplete) GetOutputCategory

func (j *JobComplete) GetOutputCategory() JobCompleteOutputCategory

func (*JobComplete) GetParams

func (j *JobComplete) GetParams() map[string]any

func (*JobComplete) GetRegion

func (j *JobComplete) GetRegion() *string

func (*JobComplete) GetResourcesAvailable

func (j *JobComplete) GetResourcesAvailable() bool

func (*JobComplete) GetRetentionExpiresAt

func (j *JobComplete) GetRetentionExpiresAt() *int

func (*JobComplete) GetRetryCount

func (j *JobComplete) GetRetryCount() int

func (*JobComplete) GetSettledAt

func (j *JobComplete) GetSettledAt() *int

func (*JobComplete) GetSource

func (j *JobComplete) GetSource() string

func (*JobComplete) GetStartedAt

func (j *JobComplete) GetStartedAt() *int

func (*JobComplete) GetSteps

func (j *JobComplete) GetSteps() []*JobStep

func (*JobComplete) GetTerminal

func (j *JobComplete) GetTerminal() bool

func (*JobComplete) GetTimeoutMs

func (j *JobComplete) GetTimeoutMs() *int

func (*JobComplete) GetType

func (j *JobComplete) GetType() string

func (*JobComplete) GetWebURL

func (j *JobComplete) GetWebURL() string

func (*JobComplete) MarshalJSON

func (j *JobComplete) MarshalJSON() ([]byte, error)

func (*JobComplete) SetCallback

func (j *JobComplete) SetCallback(callback *CallbackStatus)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetClient

func (j *JobComplete) SetClient(client *string)

SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetCompletedAt

func (j *JobComplete) SetCompletedAt(completedAt *int)

SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetCost

func (j *JobComplete) SetCost(cost *JobCost)

SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetCreatedAt

func (j *JobComplete) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetDeliveries

func (j *JobComplete) SetDeliveries(deliveries []*JobDelivery)

SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetDispatchedAt

func (j *JobComplete) SetDispatchedAt(dispatchedAt *int)

SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetID

func (j *JobComplete) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetIdempotencyKey

func (j *JobComplete) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetInputs

func (j *JobComplete) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetLabel

func (j *JobComplete) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetLogsAvailable

func (j *JobComplete) SetLogsAvailable(logsAvailable bool)

SetLogsAvailable sets the LogsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetMediaType

func (j *JobComplete) SetMediaType(mediaType *string)

SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetMetricsAvailable

func (j *JobComplete) SetMetricsAvailable(metricsAvailable *bool)

SetMetricsAvailable sets the MetricsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetModel

func (j *JobComplete) SetModel(model *string)

SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetOrgID

func (j *JobComplete) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetOutput

func (j *JobComplete) SetOutput(output *JobOutput)

SetOutput sets the Output field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetOutputCategory

func (j *JobComplete) SetOutputCategory(outputCategory JobCompleteOutputCategory)

SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetParams

func (j *JobComplete) SetParams(params map[string]any)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetRegion

func (j *JobComplete) SetRegion(region *string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetResourcesAvailable

func (j *JobComplete) SetResourcesAvailable(resourcesAvailable bool)

SetResourcesAvailable sets the ResourcesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetRetentionExpiresAt

func (j *JobComplete) SetRetentionExpiresAt(retentionExpiresAt *int)

SetRetentionExpiresAt sets the RetentionExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetRetryCount

func (j *JobComplete) SetRetryCount(retryCount int)

SetRetryCount sets the RetryCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetSettledAt

func (j *JobComplete) SetSettledAt(settledAt *int)

SetSettledAt sets the SettledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetSource

func (j *JobComplete) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetStartedAt

func (j *JobComplete) SetStartedAt(startedAt *int)

SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetSteps

func (j *JobComplete) SetSteps(steps []*JobStep)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetTerminal

func (j *JobComplete) SetTerminal(terminal bool)

SetTerminal sets the Terminal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetTimeoutMs

func (j *JobComplete) SetTimeoutMs(timeoutMs *int)

SetTimeoutMs sets the TimeoutMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetType

func (j *JobComplete) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) SetWebURL

func (j *JobComplete) SetWebURL(webURL string)

SetWebURL sets the WebURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobComplete) String

func (j *JobComplete) String() string

func (*JobComplete) UnmarshalJSON

func (j *JobComplete) UnmarshalJSON(data []byte) error

type JobCompleteOutputCategory

type JobCompleteOutputCategory string

Output category. Clients should tolerate unknown future values.

const (
	JobCompleteOutputCategoryVideo    JobCompleteOutputCategory = "video"
	JobCompleteOutputCategoryImage    JobCompleteOutputCategory = "image"
	JobCompleteOutputCategoryAudio    JobCompleteOutputCategory = "audio"
	JobCompleteOutputCategoryJSON     JobCompleteOutputCategory = "json"
	JobCompleteOutputCategoryCaptions JobCompleteOutputCategory = "captions"
	JobCompleteOutputCategoryRaw      JobCompleteOutputCategory = "raw"
)

func NewJobCompleteOutputCategoryFromString

func NewJobCompleteOutputCategoryFromString(s string) (JobCompleteOutputCategory, error)

func (JobCompleteOutputCategory) Ptr

type JobCompletedData

type JobCompletedData struct {
	JobID          string                  `json:"jobId" url:"jobId"`
	JobType        string                  `json:"jobType" url:"jobType"`
	Status         JobCompletedDataStatus  `json:"status" url:"status"`
	Output         *JobOutput              `json:"output" url:"output"`
	Cost           *WebhookJobCost         `json:"cost,omitempty" url:"cost,omitempty"`
	Timing         *JobCompletedDataTiming `json:"timing" url:"timing"`
	Steps          []*WebhookJobStep       `json:"steps,omitempty" url:"steps,omitempty"`
	OutputCategory *string                 `json:"outputCategory,omitempty" url:"outputCategory,omitempty"`
	MediaType      *string                 `json:"mediaType,omitempty" url:"mediaType,omitempty"`
	// contains filtered or unexported fields
}

func (*JobCompletedData) GetCost

func (j *JobCompletedData) GetCost() *WebhookJobCost

func (*JobCompletedData) GetExtraProperties

func (j *JobCompletedData) GetExtraProperties() map[string]interface{}

func (*JobCompletedData) GetJobID

func (j *JobCompletedData) GetJobID() string

func (*JobCompletedData) GetJobType

func (j *JobCompletedData) GetJobType() string

func (*JobCompletedData) GetMediaType

func (j *JobCompletedData) GetMediaType() *string

func (*JobCompletedData) GetOutput

func (j *JobCompletedData) GetOutput() *JobOutput

func (*JobCompletedData) GetOutputCategory

func (j *JobCompletedData) GetOutputCategory() *string

func (*JobCompletedData) GetStatus

func (*JobCompletedData) GetSteps

func (j *JobCompletedData) GetSteps() []*WebhookJobStep

func (*JobCompletedData) GetTiming

func (j *JobCompletedData) GetTiming() *JobCompletedDataTiming

func (*JobCompletedData) MarshalJSON

func (j *JobCompletedData) MarshalJSON() ([]byte, error)

func (*JobCompletedData) SetCost

func (j *JobCompletedData) SetCost(cost *WebhookJobCost)

SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedData) SetJobID

func (j *JobCompletedData) SetJobID(jobID string)

SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedData) SetJobType

func (j *JobCompletedData) SetJobType(jobType string)

SetJobType sets the JobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedData) SetMediaType

func (j *JobCompletedData) SetMediaType(mediaType *string)

SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedData) SetOutput

func (j *JobCompletedData) SetOutput(output *JobOutput)

SetOutput sets the Output field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedData) SetOutputCategory

func (j *JobCompletedData) SetOutputCategory(outputCategory *string)

SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedData) SetStatus

func (j *JobCompletedData) SetStatus(status JobCompletedDataStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedData) SetSteps

func (j *JobCompletedData) SetSteps(steps []*WebhookJobStep)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedData) SetTiming

func (j *JobCompletedData) SetTiming(timing *JobCompletedDataTiming)

SetTiming sets the Timing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedData) String

func (j *JobCompletedData) String() string

func (*JobCompletedData) UnmarshalJSON

func (j *JobCompletedData) UnmarshalJSON(data []byte) error

type JobCompletedDataStatus

type JobCompletedDataStatus string
const (
	JobCompletedDataStatusComplete JobCompletedDataStatus = "complete"
)

func NewJobCompletedDataStatusFromString

func NewJobCompletedDataStatusFromString(s string) (JobCompletedDataStatus, error)

func (JobCompletedDataStatus) Ptr

type JobCompletedDataTiming

type JobCompletedDataTiming struct {
	CreatedAt    int  `json:"createdAt" url:"createdAt"`
	DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
	StartedAt    *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
	CompletedAt  int  `json:"completedAt" url:"completedAt"`
	// contains filtered or unexported fields
}

func (*JobCompletedDataTiming) GetCompletedAt

func (j *JobCompletedDataTiming) GetCompletedAt() int

func (*JobCompletedDataTiming) GetCreatedAt

func (j *JobCompletedDataTiming) GetCreatedAt() int

func (*JobCompletedDataTiming) GetDispatchedAt

func (j *JobCompletedDataTiming) GetDispatchedAt() *int

func (*JobCompletedDataTiming) GetExtraProperties

func (j *JobCompletedDataTiming) GetExtraProperties() map[string]interface{}

func (*JobCompletedDataTiming) GetStartedAt

func (j *JobCompletedDataTiming) GetStartedAt() *int

func (*JobCompletedDataTiming) MarshalJSON

func (j *JobCompletedDataTiming) MarshalJSON() ([]byte, error)

func (*JobCompletedDataTiming) SetCompletedAt

func (j *JobCompletedDataTiming) SetCompletedAt(completedAt int)

SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedDataTiming) SetCreatedAt

func (j *JobCompletedDataTiming) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedDataTiming) SetDispatchedAt

func (j *JobCompletedDataTiming) SetDispatchedAt(dispatchedAt *int)

SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedDataTiming) SetStartedAt

func (j *JobCompletedDataTiming) SetStartedAt(startedAt *int)

SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedDataTiming) String

func (j *JobCompletedDataTiming) String() string

func (*JobCompletedDataTiming) UnmarshalJSON

func (j *JobCompletedDataTiming) UnmarshalJSON(data []byte) error

type JobCompletedOnSubmit

type JobCompletedOnSubmit struct {
	// Job ID
	ID string `json:"id" url:"id"`
	// Completed synchronously
	Status JobCompletedOnSubmitStatus `json:"status" url:"status"`
	// Data URL of the result
	URL *string `json:"url,omitempty" url:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*JobCompletedOnSubmit) GetExtraProperties

func (j *JobCompletedOnSubmit) GetExtraProperties() map[string]interface{}

func (*JobCompletedOnSubmit) GetID

func (j *JobCompletedOnSubmit) GetID() string

func (*JobCompletedOnSubmit) GetStatus

func (*JobCompletedOnSubmit) GetURL

func (j *JobCompletedOnSubmit) GetURL() *string

func (*JobCompletedOnSubmit) MarshalJSON

func (j *JobCompletedOnSubmit) MarshalJSON() ([]byte, error)

func (*JobCompletedOnSubmit) SetID

func (j *JobCompletedOnSubmit) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedOnSubmit) SetStatus

func (j *JobCompletedOnSubmit) SetStatus(status JobCompletedOnSubmitStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedOnSubmit) SetURL

func (j *JobCompletedOnSubmit) SetURL(url *string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedOnSubmit) String

func (j *JobCompletedOnSubmit) String() string

func (*JobCompletedOnSubmit) UnmarshalJSON

func (j *JobCompletedOnSubmit) UnmarshalJSON(data []byte) error

type JobCompletedOnSubmitStatus

type JobCompletedOnSubmitStatus string

Completed synchronously

const (
	JobCompletedOnSubmitStatusComplete JobCompletedOnSubmitStatus = "complete"
)

func NewJobCompletedOnSubmitStatusFromString

func NewJobCompletedOnSubmitStatusFromString(s string) (JobCompletedOnSubmitStatus, error)

func (JobCompletedOnSubmitStatus) Ptr

type JobCompletedWebhookEvent

type JobCompletedWebhookEvent struct {
	// Envelope version. A new version is a new shape
	Version JobCompletedWebhookEventVersion `json:"version" url:"version"`
	// Unique per delivery. Retries of one delivery share it
	DeliveryID string `json:"deliveryId" url:"deliveryId"`
	// When the event happened (Unix ms)
	Timestamp int               `json:"timestamp" url:"timestamp"`
	OrgID     string            `json:"orgId" url:"orgId"`
	Data      *JobCompletedData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*JobCompletedWebhookEvent) GetData

func (*JobCompletedWebhookEvent) GetDeliveryID

func (j *JobCompletedWebhookEvent) GetDeliveryID() string

func (*JobCompletedWebhookEvent) GetExtraProperties

func (j *JobCompletedWebhookEvent) GetExtraProperties() map[string]interface{}

func (*JobCompletedWebhookEvent) GetOrgID

func (j *JobCompletedWebhookEvent) GetOrgID() string

func (*JobCompletedWebhookEvent) GetTimestamp

func (j *JobCompletedWebhookEvent) GetTimestamp() int

func (*JobCompletedWebhookEvent) GetVersion

func (*JobCompletedWebhookEvent) MarshalJSON

func (j *JobCompletedWebhookEvent) MarshalJSON() ([]byte, error)

func (*JobCompletedWebhookEvent) SetData

func (j *JobCompletedWebhookEvent) SetData(data *JobCompletedData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedWebhookEvent) SetDeliveryID

func (j *JobCompletedWebhookEvent) SetDeliveryID(deliveryID string)

SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedWebhookEvent) SetOrgID

func (j *JobCompletedWebhookEvent) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedWebhookEvent) SetTimestamp

func (j *JobCompletedWebhookEvent) SetTimestamp(timestamp int)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedWebhookEvent) SetVersion

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCompletedWebhookEvent) String

func (j *JobCompletedWebhookEvent) String() string

func (*JobCompletedWebhookEvent) UnmarshalJSON

func (j *JobCompletedWebhookEvent) UnmarshalJSON(data []byte) error

type JobCompletedWebhookEventVersion

type JobCompletedWebhookEventVersion string

Envelope version. A new version is a new shape

const (
	JobCompletedWebhookEventVersionV1 JobCompletedWebhookEventVersion = "1"
)

func NewJobCompletedWebhookEventVersionFromString

func NewJobCompletedWebhookEventVersionFromString(s string) (JobCompletedWebhookEventVersion, error)

func (JobCompletedWebhookEventVersion) Ptr

type JobCost

type JobCost struct {
	// Amount charged in nanodollars (integer minor units; 1 USD = 1,000,000,000). Use `formatted` for display.
	Amount int `json:"amount" url:"amount"`
	// ISO-4217 currency code
	Currency JobCostCurrency `json:"currency" url:"currency"`
	// Amount formatted as dollars (e.g. "$0.50")
	Formatted string `json:"formatted" url:"formatted"`
	// contains filtered or unexported fields
}

Amount charged, or null when not yet billed

func (*JobCost) GetAmount

func (j *JobCost) GetAmount() int

func (*JobCost) GetCurrency

func (j *JobCost) GetCurrency() JobCostCurrency

func (*JobCost) GetExtraProperties

func (j *JobCost) GetExtraProperties() map[string]interface{}

func (*JobCost) GetFormatted

func (j *JobCost) GetFormatted() string

func (*JobCost) MarshalJSON

func (j *JobCost) MarshalJSON() ([]byte, error)

func (*JobCost) SetAmount

func (j *JobCost) SetAmount(amount int)

SetAmount sets the Amount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCost) SetCurrency

func (j *JobCost) SetCurrency(currency JobCostCurrency)

SetCurrency sets the Currency field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCost) SetFormatted

func (j *JobCost) SetFormatted(formatted string)

SetFormatted sets the Formatted field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCost) String

func (j *JobCost) String() string

func (*JobCost) UnmarshalJSON

func (j *JobCost) UnmarshalJSON(data []byte) error

type JobCostCurrency

type JobCostCurrency string

ISO-4217 currency code

const (
	JobCostCurrencyUsd JobCostCurrency = "USD"
)

func NewJobCostCurrencyFromString

func NewJobCostCurrencyFromString(s string) (JobCostCurrency, error)

func (JobCostCurrency) Ptr

type JobCreated

type JobCreated struct {
	// Job ID
	ID string `json:"id" url:"id"`
	// Initial status
	Status JobCreatedStatus `json:"status" url:"status"`
	// contains filtered or unexported fields
}

func (*JobCreated) GetExtraProperties

func (j *JobCreated) GetExtraProperties() map[string]interface{}

func (*JobCreated) GetID

func (j *JobCreated) GetID() string

func (*JobCreated) GetStatus

func (j *JobCreated) GetStatus() JobCreatedStatus

func (*JobCreated) MarshalJSON

func (j *JobCreated) MarshalJSON() ([]byte, error)

func (*JobCreated) SetID

func (j *JobCreated) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCreated) SetStatus

func (j *JobCreated) SetStatus(status JobCreatedStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCreated) String

func (j *JobCreated) String() string

func (*JobCreated) UnmarshalJSON

func (j *JobCreated) UnmarshalJSON(data []byte) error

type JobCreatedData

type JobCreatedData struct {
	JobID   string                `json:"jobId" url:"jobId"`
	JobType string                `json:"jobType" url:"jobType"`
	Status  JobCreatedDataStatus  `json:"status" url:"status"`
	Timing  *JobCreatedDataTiming `json:"timing" url:"timing"`
	// contains filtered or unexported fields
}

func (*JobCreatedData) GetExtraProperties

func (j *JobCreatedData) GetExtraProperties() map[string]interface{}

func (*JobCreatedData) GetJobID

func (j *JobCreatedData) GetJobID() string

func (*JobCreatedData) GetJobType

func (j *JobCreatedData) GetJobType() string

func (*JobCreatedData) GetStatus

func (j *JobCreatedData) GetStatus() JobCreatedDataStatus

func (*JobCreatedData) GetTiming

func (j *JobCreatedData) GetTiming() *JobCreatedDataTiming

func (*JobCreatedData) MarshalJSON

func (j *JobCreatedData) MarshalJSON() ([]byte, error)

func (*JobCreatedData) SetJobID

func (j *JobCreatedData) SetJobID(jobID string)

SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCreatedData) SetJobType

func (j *JobCreatedData) SetJobType(jobType string)

SetJobType sets the JobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCreatedData) SetStatus

func (j *JobCreatedData) SetStatus(status JobCreatedDataStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCreatedData) SetTiming

func (j *JobCreatedData) SetTiming(timing *JobCreatedDataTiming)

SetTiming sets the Timing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCreatedData) String

func (j *JobCreatedData) String() string

func (*JobCreatedData) UnmarshalJSON

func (j *JobCreatedData) UnmarshalJSON(data []byte) error

type JobCreatedDataStatus

type JobCreatedDataStatus string
const (
	JobCreatedDataStatusWaiting JobCreatedDataStatus = "waiting"
)

func NewJobCreatedDataStatusFromString

func NewJobCreatedDataStatusFromString(s string) (JobCreatedDataStatus, error)

func (JobCreatedDataStatus) Ptr

type JobCreatedDataTiming

type JobCreatedDataTiming struct {
	CreatedAt int `json:"createdAt" url:"createdAt"`
	// contains filtered or unexported fields
}

func (*JobCreatedDataTiming) GetCreatedAt

func (j *JobCreatedDataTiming) GetCreatedAt() int

func (*JobCreatedDataTiming) GetExtraProperties

func (j *JobCreatedDataTiming) GetExtraProperties() map[string]interface{}

func (*JobCreatedDataTiming) MarshalJSON

func (j *JobCreatedDataTiming) MarshalJSON() ([]byte, error)

func (*JobCreatedDataTiming) SetCreatedAt

func (j *JobCreatedDataTiming) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCreatedDataTiming) String

func (j *JobCreatedDataTiming) String() string

func (*JobCreatedDataTiming) UnmarshalJSON

func (j *JobCreatedDataTiming) UnmarshalJSON(data []byte) error

type JobCreatedStatus

type JobCreatedStatus string

Initial status

const (
	JobCreatedStatusWaiting JobCreatedStatus = "waiting"
)

func NewJobCreatedStatusFromString

func NewJobCreatedStatusFromString(s string) (JobCreatedStatus, error)

func (JobCreatedStatus) Ptr

type JobCreatedWebhookEvent

type JobCreatedWebhookEvent struct {
	// Envelope version. A new version is a new shape
	Version JobCreatedWebhookEventVersion `json:"version" url:"version"`
	// Unique per delivery. Retries of one delivery share it
	DeliveryID string `json:"deliveryId" url:"deliveryId"`
	// When the event happened (Unix ms)
	Timestamp int             `json:"timestamp" url:"timestamp"`
	OrgID     string          `json:"orgId" url:"orgId"`
	Data      *JobCreatedData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*JobCreatedWebhookEvent) GetData

func (j *JobCreatedWebhookEvent) GetData() *JobCreatedData

func (*JobCreatedWebhookEvent) GetDeliveryID

func (j *JobCreatedWebhookEvent) GetDeliveryID() string

func (*JobCreatedWebhookEvent) GetExtraProperties

func (j *JobCreatedWebhookEvent) GetExtraProperties() map[string]interface{}

func (*JobCreatedWebhookEvent) GetOrgID

func (j *JobCreatedWebhookEvent) GetOrgID() string

func (*JobCreatedWebhookEvent) GetTimestamp

func (j *JobCreatedWebhookEvent) GetTimestamp() int

func (*JobCreatedWebhookEvent) GetVersion

func (*JobCreatedWebhookEvent) MarshalJSON

func (j *JobCreatedWebhookEvent) MarshalJSON() ([]byte, error)

func (*JobCreatedWebhookEvent) SetData

func (j *JobCreatedWebhookEvent) SetData(data *JobCreatedData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCreatedWebhookEvent) SetDeliveryID

func (j *JobCreatedWebhookEvent) SetDeliveryID(deliveryID string)

SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCreatedWebhookEvent) SetOrgID

func (j *JobCreatedWebhookEvent) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCreatedWebhookEvent) SetTimestamp

func (j *JobCreatedWebhookEvent) SetTimestamp(timestamp int)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCreatedWebhookEvent) SetVersion

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobCreatedWebhookEvent) String

func (j *JobCreatedWebhookEvent) String() string

func (*JobCreatedWebhookEvent) UnmarshalJSON

func (j *JobCreatedWebhookEvent) UnmarshalJSON(data []byte) error

type JobCreatedWebhookEventVersion

type JobCreatedWebhookEventVersion string

Envelope version. A new version is a new shape

const (
	JobCreatedWebhookEventVersionV1 JobCreatedWebhookEventVersion = "1"
)

func NewJobCreatedWebhookEventVersionFromString

func NewJobCreatedWebhookEventVersionFromString(s string) (JobCreatedWebhookEventVersion, error)

func (JobCreatedWebhookEventVersion) Ptr

type JobDeliveriesSettledData

type JobDeliveriesSettledData struct {
	JobID      string             `json:"jobId" url:"jobId"`
	Deliveries []*SettledDelivery `json:"deliveries" url:"deliveries"`
	// contains filtered or unexported fields
}

func (*JobDeliveriesSettledData) GetDeliveries

func (j *JobDeliveriesSettledData) GetDeliveries() []*SettledDelivery

func (*JobDeliveriesSettledData) GetExtraProperties

func (j *JobDeliveriesSettledData) GetExtraProperties() map[string]interface{}

func (*JobDeliveriesSettledData) GetJobID

func (j *JobDeliveriesSettledData) GetJobID() string

func (*JobDeliveriesSettledData) MarshalJSON

func (j *JobDeliveriesSettledData) MarshalJSON() ([]byte, error)

func (*JobDeliveriesSettledData) SetDeliveries

func (j *JobDeliveriesSettledData) SetDeliveries(deliveries []*SettledDelivery)

SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveriesSettledData) SetJobID

func (j *JobDeliveriesSettledData) SetJobID(jobID string)

SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveriesSettledData) String

func (j *JobDeliveriesSettledData) String() string

func (*JobDeliveriesSettledData) UnmarshalJSON

func (j *JobDeliveriesSettledData) UnmarshalJSON(data []byte) error

type JobDeliveriesSettledWebhookEvent

type JobDeliveriesSettledWebhookEvent struct {
	// Envelope version. A new version is a new shape
	Version JobDeliveriesSettledWebhookEventVersion `json:"version" url:"version"`
	// Unique per delivery. Retries of one delivery share it
	DeliveryID string `json:"deliveryId" url:"deliveryId"`
	// When the event happened (Unix ms)
	Timestamp int                       `json:"timestamp" url:"timestamp"`
	OrgID     string                    `json:"orgId" url:"orgId"`
	Data      *JobDeliveriesSettledData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*JobDeliveriesSettledWebhookEvent) GetData

func (*JobDeliveriesSettledWebhookEvent) GetDeliveryID

func (j *JobDeliveriesSettledWebhookEvent) GetDeliveryID() string

func (*JobDeliveriesSettledWebhookEvent) GetExtraProperties

func (j *JobDeliveriesSettledWebhookEvent) GetExtraProperties() map[string]interface{}

func (*JobDeliveriesSettledWebhookEvent) GetOrgID

func (*JobDeliveriesSettledWebhookEvent) GetTimestamp

func (j *JobDeliveriesSettledWebhookEvent) GetTimestamp() int

func (*JobDeliveriesSettledWebhookEvent) GetVersion

func (*JobDeliveriesSettledWebhookEvent) MarshalJSON

func (j *JobDeliveriesSettledWebhookEvent) MarshalJSON() ([]byte, error)

func (*JobDeliveriesSettledWebhookEvent) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveriesSettledWebhookEvent) SetDeliveryID

func (j *JobDeliveriesSettledWebhookEvent) SetDeliveryID(deliveryID string)

SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveriesSettledWebhookEvent) SetOrgID

func (j *JobDeliveriesSettledWebhookEvent) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveriesSettledWebhookEvent) SetTimestamp

func (j *JobDeliveriesSettledWebhookEvent) SetTimestamp(timestamp int)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveriesSettledWebhookEvent) SetVersion

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveriesSettledWebhookEvent) String

func (*JobDeliveriesSettledWebhookEvent) UnmarshalJSON

func (j *JobDeliveriesSettledWebhookEvent) UnmarshalJSON(data []byte) error

type JobDeliveriesSettledWebhookEventVersion

type JobDeliveriesSettledWebhookEventVersion string

Envelope version. A new version is a new shape

const (
	JobDeliveriesSettledWebhookEventVersionV1 JobDeliveriesSettledWebhookEventVersion = "1"
)

func NewJobDeliveriesSettledWebhookEventVersionFromString

func NewJobDeliveriesSettledWebhookEventVersionFromString(s string) (JobDeliveriesSettledWebhookEventVersion, error)

func (JobDeliveriesSettledWebhookEventVersion) Ptr

type JobDelivery

type JobDelivery struct {
	// The storage connection id
	StorageID string            `json:"storageId" url:"storageId"`
	Status    JobDeliveryStatus `json:"status" url:"status"`
	// Object key in the bucket, rendered from the template. A multi-file output is a folder, and its path ends in /
	Path *string `json:"path,omitempty" url:"path,omitempty"`
	// Where to fetch it: the public base URL when set, else our files route. Absent for a folder
	URL    *string            `json:"url,omitempty" url:"url,omitempty"`
	Reason *JobDeliveryReason `json:"reason,omitempty" url:"reason,omitempty"`
	// The name was taken, so the job's tail was appended to free it
	Renamed *bool `json:"renamed,omitempty" url:"renamed,omitempty"`
	// contains filtered or unexported fields
}

func (*JobDelivery) GetExtraProperties

func (j *JobDelivery) GetExtraProperties() map[string]interface{}

func (*JobDelivery) GetPath

func (j *JobDelivery) GetPath() *string

func (*JobDelivery) GetReason

func (j *JobDelivery) GetReason() *JobDeliveryReason

func (*JobDelivery) GetRenamed

func (j *JobDelivery) GetRenamed() *bool

func (*JobDelivery) GetStatus

func (j *JobDelivery) GetStatus() JobDeliveryStatus

func (*JobDelivery) GetStorageID

func (j *JobDelivery) GetStorageID() string

func (*JobDelivery) GetURL

func (j *JobDelivery) GetURL() *string

func (*JobDelivery) MarshalJSON

func (j *JobDelivery) MarshalJSON() ([]byte, error)

func (*JobDelivery) SetPath

func (j *JobDelivery) SetPath(path *string)

SetPath sets the Path field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDelivery) SetReason

func (j *JobDelivery) SetReason(reason *JobDeliveryReason)

SetReason sets the Reason field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDelivery) SetRenamed

func (j *JobDelivery) SetRenamed(renamed *bool)

SetRenamed sets the Renamed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDelivery) SetStatus

func (j *JobDelivery) SetStatus(status JobDeliveryStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDelivery) SetStorageID

func (j *JobDelivery) SetStorageID(storageID string)

SetStorageID sets the StorageID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDelivery) SetURL

func (j *JobDelivery) SetURL(url *string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDelivery) String

func (j *JobDelivery) String() string

func (*JobDelivery) UnmarshalJSON

func (j *JobDelivery) UnmarshalJSON(data []byte) error

type JobDeliveryFailedData

type JobDeliveryFailedData struct {
	JobID     string                      `json:"jobId" url:"jobId"`
	StorageID string                      `json:"storageId" url:"storageId"`
	Status    JobDeliveryFailedDataStatus `json:"status" url:"status"`
	Reason    string                      `json:"reason" url:"reason"`
	// contains filtered or unexported fields
}

func (*JobDeliveryFailedData) GetExtraProperties

func (j *JobDeliveryFailedData) GetExtraProperties() map[string]interface{}

func (*JobDeliveryFailedData) GetJobID

func (j *JobDeliveryFailedData) GetJobID() string

func (*JobDeliveryFailedData) GetReason

func (j *JobDeliveryFailedData) GetReason() string

func (*JobDeliveryFailedData) GetStatus

func (*JobDeliveryFailedData) GetStorageID

func (j *JobDeliveryFailedData) GetStorageID() string

func (*JobDeliveryFailedData) MarshalJSON

func (j *JobDeliveryFailedData) MarshalJSON() ([]byte, error)

func (*JobDeliveryFailedData) SetJobID

func (j *JobDeliveryFailedData) SetJobID(jobID string)

SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveryFailedData) SetReason

func (j *JobDeliveryFailedData) SetReason(reason string)

SetReason sets the Reason field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveryFailedData) SetStatus

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveryFailedData) SetStorageID

func (j *JobDeliveryFailedData) SetStorageID(storageID string)

SetStorageID sets the StorageID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveryFailedData) String

func (j *JobDeliveryFailedData) String() string

func (*JobDeliveryFailedData) UnmarshalJSON

func (j *JobDeliveryFailedData) UnmarshalJSON(data []byte) error

type JobDeliveryFailedDataStatus

type JobDeliveryFailedDataStatus string
const (
	JobDeliveryFailedDataStatusFailed JobDeliveryFailedDataStatus = "failed"
)

func NewJobDeliveryFailedDataStatusFromString

func NewJobDeliveryFailedDataStatusFromString(s string) (JobDeliveryFailedDataStatus, error)

func (JobDeliveryFailedDataStatus) Ptr

type JobDeliveryFailedWebhookEvent

type JobDeliveryFailedWebhookEvent struct {
	// Envelope version. A new version is a new shape
	Version JobDeliveryFailedWebhookEventVersion `json:"version" url:"version"`
	// Unique per delivery. Retries of one delivery share it
	DeliveryID string `json:"deliveryId" url:"deliveryId"`
	// When the event happened (Unix ms)
	Timestamp int                    `json:"timestamp" url:"timestamp"`
	OrgID     string                 `json:"orgId" url:"orgId"`
	Data      *JobDeliveryFailedData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*JobDeliveryFailedWebhookEvent) GetData

func (*JobDeliveryFailedWebhookEvent) GetDeliveryID

func (j *JobDeliveryFailedWebhookEvent) GetDeliveryID() string

func (*JobDeliveryFailedWebhookEvent) GetExtraProperties

func (j *JobDeliveryFailedWebhookEvent) GetExtraProperties() map[string]interface{}

func (*JobDeliveryFailedWebhookEvent) GetOrgID

func (j *JobDeliveryFailedWebhookEvent) GetOrgID() string

func (*JobDeliveryFailedWebhookEvent) GetTimestamp

func (j *JobDeliveryFailedWebhookEvent) GetTimestamp() int

func (*JobDeliveryFailedWebhookEvent) GetVersion

func (*JobDeliveryFailedWebhookEvent) MarshalJSON

func (j *JobDeliveryFailedWebhookEvent) MarshalJSON() ([]byte, error)

func (*JobDeliveryFailedWebhookEvent) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveryFailedWebhookEvent) SetDeliveryID

func (j *JobDeliveryFailedWebhookEvent) SetDeliveryID(deliveryID string)

SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveryFailedWebhookEvent) SetOrgID

func (j *JobDeliveryFailedWebhookEvent) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveryFailedWebhookEvent) SetTimestamp

func (j *JobDeliveryFailedWebhookEvent) SetTimestamp(timestamp int)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveryFailedWebhookEvent) SetVersion

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliveryFailedWebhookEvent) String

func (*JobDeliveryFailedWebhookEvent) UnmarshalJSON

func (j *JobDeliveryFailedWebhookEvent) UnmarshalJSON(data []byte) error

type JobDeliveryFailedWebhookEventVersion

type JobDeliveryFailedWebhookEventVersion string

Envelope version. A new version is a new shape

const (
	JobDeliveryFailedWebhookEventVersionV1 JobDeliveryFailedWebhookEventVersion = "1"
)

func NewJobDeliveryFailedWebhookEventVersionFromString

func NewJobDeliveryFailedWebhookEventVersionFromString(s string) (JobDeliveryFailedWebhookEventVersion, error)

func (JobDeliveryFailedWebhookEventVersion) Ptr

type JobDeliveryReason

type JobDeliveryReason string
const (
	JobDeliveryReasonDestinationDenied      JobDeliveryReason = "destination_denied"
	JobDeliveryReasonSignatureMismatch      JobDeliveryReason = "signature_mismatch"
	JobDeliveryReasonBucketNotFound         JobDeliveryReason = "bucket_not_found"
	JobDeliveryReasonObjectTooLarge         JobDeliveryReason = "object_too_large"
	JobDeliveryReasonAlreadyExists          JobDeliveryReason = "already_exists"
	JobDeliveryReasonDestinationUnavailable JobDeliveryReason = "destination_unavailable"
	JobDeliveryReasonNotDeliverable         JobDeliveryReason = "not_deliverable"
)

func NewJobDeliveryReasonFromString

func NewJobDeliveryReasonFromString(s string) (JobDeliveryReason, error)

func (JobDeliveryReason) Ptr

type JobDeliveryStatus

type JobDeliveryStatus string
const (
	JobDeliveryStatusPending   JobDeliveryStatus = "pending"
	JobDeliveryStatusDelivered JobDeliveryStatus = "delivered"
	JobDeliveryStatusFailed    JobDeliveryStatus = "failed"
)

func NewJobDeliveryStatusFromString

func NewJobDeliveryStatusFromString(s string) (JobDeliveryStatus, error)

func (JobDeliveryStatus) Ptr

type JobDeliverySucceededData

type JobDeliverySucceededData struct {
	JobID     string                         `json:"jobId" url:"jobId"`
	StorageID string                         `json:"storageId" url:"storageId"`
	Status    JobDeliverySucceededDataStatus `json:"status" url:"status"`
	Path      string                         `json:"path" url:"path"`
	URL       *string                        `json:"url,omitempty" url:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*JobDeliverySucceededData) GetExtraProperties

func (j *JobDeliverySucceededData) GetExtraProperties() map[string]interface{}

func (*JobDeliverySucceededData) GetJobID

func (j *JobDeliverySucceededData) GetJobID() string

func (*JobDeliverySucceededData) GetPath

func (j *JobDeliverySucceededData) GetPath() string

func (*JobDeliverySucceededData) GetStatus

func (*JobDeliverySucceededData) GetStorageID

func (j *JobDeliverySucceededData) GetStorageID() string

func (*JobDeliverySucceededData) GetURL

func (j *JobDeliverySucceededData) GetURL() *string

func (*JobDeliverySucceededData) MarshalJSON

func (j *JobDeliverySucceededData) MarshalJSON() ([]byte, error)

func (*JobDeliverySucceededData) SetJobID

func (j *JobDeliverySucceededData) SetJobID(jobID string)

SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliverySucceededData) SetPath

func (j *JobDeliverySucceededData) SetPath(path string)

SetPath sets the Path field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliverySucceededData) SetStatus

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliverySucceededData) SetStorageID

func (j *JobDeliverySucceededData) SetStorageID(storageID string)

SetStorageID sets the StorageID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliverySucceededData) SetURL

func (j *JobDeliverySucceededData) SetURL(url *string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliverySucceededData) String

func (j *JobDeliverySucceededData) String() string

func (*JobDeliverySucceededData) UnmarshalJSON

func (j *JobDeliverySucceededData) UnmarshalJSON(data []byte) error

type JobDeliverySucceededDataStatus

type JobDeliverySucceededDataStatus string
const (
	JobDeliverySucceededDataStatusDelivered JobDeliverySucceededDataStatus = "delivered"
)

func NewJobDeliverySucceededDataStatusFromString

func NewJobDeliverySucceededDataStatusFromString(s string) (JobDeliverySucceededDataStatus, error)

func (JobDeliverySucceededDataStatus) Ptr

type JobDeliverySucceededWebhookEvent

type JobDeliverySucceededWebhookEvent struct {
	// Envelope version. A new version is a new shape
	Version JobDeliverySucceededWebhookEventVersion `json:"version" url:"version"`
	// Unique per delivery. Retries of one delivery share it
	DeliveryID string `json:"deliveryId" url:"deliveryId"`
	// When the event happened (Unix ms)
	Timestamp int                       `json:"timestamp" url:"timestamp"`
	OrgID     string                    `json:"orgId" url:"orgId"`
	Data      *JobDeliverySucceededData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*JobDeliverySucceededWebhookEvent) GetData

func (*JobDeliverySucceededWebhookEvent) GetDeliveryID

func (j *JobDeliverySucceededWebhookEvent) GetDeliveryID() string

func (*JobDeliverySucceededWebhookEvent) GetExtraProperties

func (j *JobDeliverySucceededWebhookEvent) GetExtraProperties() map[string]interface{}

func (*JobDeliverySucceededWebhookEvent) GetOrgID

func (*JobDeliverySucceededWebhookEvent) GetTimestamp

func (j *JobDeliverySucceededWebhookEvent) GetTimestamp() int

func (*JobDeliverySucceededWebhookEvent) GetVersion

func (*JobDeliverySucceededWebhookEvent) MarshalJSON

func (j *JobDeliverySucceededWebhookEvent) MarshalJSON() ([]byte, error)

func (*JobDeliverySucceededWebhookEvent) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliverySucceededWebhookEvent) SetDeliveryID

func (j *JobDeliverySucceededWebhookEvent) SetDeliveryID(deliveryID string)

SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliverySucceededWebhookEvent) SetOrgID

func (j *JobDeliverySucceededWebhookEvent) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliverySucceededWebhookEvent) SetTimestamp

func (j *JobDeliverySucceededWebhookEvent) SetTimestamp(timestamp int)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliverySucceededWebhookEvent) SetVersion

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDeliverySucceededWebhookEvent) String

func (*JobDeliverySucceededWebhookEvent) UnmarshalJSON

func (j *JobDeliverySucceededWebhookEvent) UnmarshalJSON(data []byte) error

type JobDeliverySucceededWebhookEventVersion

type JobDeliverySucceededWebhookEventVersion string

Envelope version. A new version is a new shape

const (
	JobDeliverySucceededWebhookEventVersionV1 JobDeliverySucceededWebhookEventVersion = "1"
)

func NewJobDeliverySucceededWebhookEventVersionFromString

func NewJobDeliverySucceededWebhookEventVersionFromString(s string) (JobDeliverySucceededWebhookEventVersion, error)

func (JobDeliverySucceededWebhookEventVersion) Ptr

type JobDispatched

type JobDispatched struct {
	// Job ID (e.g. job_abc123)
	ID string `json:"id" url:"id"`
	// Organization ID
	OrgID string `json:"orgId" url:"orgId"`
	// Job type (e.g. ffmpeg)
	Type string `json:"type" url:"type"`
	// How the job was created (api | dashboard | mcp ...)
	Source string `json:"source" url:"source"`
	// Originating client (sdk | cli | mcp | n8n | ...), or null
	Client *string `json:"client,omitempty" url:"client,omitempty"`
	// Number of retry attempts
	RetryCount int `json:"retryCount" url:"retryCount"`
	// Caller-supplied idempotency key, or null
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// Caller-chosen name for the job, or null
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Detected media type (video | image | audio), or null
	MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
	// Input file references
	Inputs map[string]any `json:"inputs" url:"inputs"`
	// Job parameters
	Params map[string]any `json:"params" url:"params"`
	Cost   *JobCost       `json:"cost,omitempty" url:"cost,omitempty"`
	// Output category. Clients should tolerate unknown future values.
	OutputCategory JobDispatchedOutputCategory `json:"outputCategory" url:"outputCategory"`
	// Execution steps
	Steps []*JobStep `json:"steps" url:"steps"`
	// Whether execution logs are stored
	LogsAvailable bool `json:"logsAvailable" url:"logsAvailable"`
	// Whether the resource-utilization series is stored
	ResourcesAvailable bool `json:"resourcesAvailable" url:"resourcesAvailable"`
	// @deprecated renamed to resourcesAvailable; kept until the next major
	MetricsAvailable *bool `json:"metricsAvailable,omitempty" url:"metricsAvailable,omitempty"`
	// Execution region (e.g. us-east-1), null until dispatched
	Region *string `json:"region,omitempty" url:"region,omitempty"`
	// How long this job is allowed to run, in milliseconds: the requested timeout clamped to the plan ceiling. Null until the job is dispatched. Clients waiting on a job should bound the wait by this rather than a fixed guess.
	TimeoutMs *int `json:"timeoutMs,omitempty" url:"timeoutMs,omitempty"`
	// Creation timestamp (Unix ms)
	CreatedAt int `json:"createdAt" url:"createdAt"`
	// Dispatch timestamp (Unix ms)
	DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
	// Start timestamp (Unix ms)
	StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
	// Completion timestamp (Unix ms)
	CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
	// CF Worker timestamp when terminal status written (Unix ms)
	SettledAt *int `json:"settledAt,omitempty" url:"settledAt,omitempty"`
	// Unix ms when the stored output files are deleted (completion + plan retention window). Null until the job completes with a stored output. Distinct from output.expiresAt, which is the short-lived download-URL expiry.
	RetentionExpiresAt *int `json:"retentionExpiresAt,omitempty" url:"retentionExpiresAt,omitempty"`
	// Dashboard URL for this job
	WebURL string `json:"webUrl" url:"webUrl"`
	// Resolved generation model id (image.generate / image.edit jobs only), else null
	Model *string `json:"model,omitempty" url:"model,omitempty"`
	// True once the job has ended (complete, failed or cancelled), false while it waits or runs. Stop waiting on this rather than on a list of statuses: it stays right when a status is added.
	Terminal bool            `json:"terminal" url:"terminal"`
	Callback *CallbackStatus `json:"callback,omitempty" url:"callback,omitempty"`
	// Where the output was or will be delivered, one entry per destination given at submit. Detail endpoint only; absent when the job had no destinations.
	Deliveries []*JobDelivery `json:"deliveries,omitempty" url:"deliveries,omitempty"`
	// Completion fraction 0..1, or null when it cannot be determined
	Progress *float64 `json:"progress,omitempty" url:"progress,omitempty"`
	// Estimated seconds remaining, or null
	Eta *float64 `json:"eta,omitempty" url:"eta,omitempty"`
	// Live boot detail while a worker container starts
	BootState *JobDispatchedBootState `json:"bootState,omitempty" url:"bootState,omitempty"`
	// contains filtered or unexported fields
}

func (*JobDispatched) GetBootState

func (j *JobDispatched) GetBootState() *JobDispatchedBootState

func (*JobDispatched) GetCallback

func (j *JobDispatched) GetCallback() *CallbackStatus

func (*JobDispatched) GetClient

func (j *JobDispatched) GetClient() *string

func (*JobDispatched) GetCompletedAt

func (j *JobDispatched) GetCompletedAt() *int

func (*JobDispatched) GetCost

func (j *JobDispatched) GetCost() *JobCost

func (*JobDispatched) GetCreatedAt

func (j *JobDispatched) GetCreatedAt() int

func (*JobDispatched) GetDeliveries

func (j *JobDispatched) GetDeliveries() []*JobDelivery

func (*JobDispatched) GetDispatchedAt

func (j *JobDispatched) GetDispatchedAt() *int

func (*JobDispatched) GetEta

func (j *JobDispatched) GetEta() *float64

func (*JobDispatched) GetExtraProperties

func (j *JobDispatched) GetExtraProperties() map[string]interface{}

func (*JobDispatched) GetID

func (j *JobDispatched) GetID() string

func (*JobDispatched) GetIdempotencyKey

func (j *JobDispatched) GetIdempotencyKey() *string

func (*JobDispatched) GetInputs

func (j *JobDispatched) GetInputs() map[string]any

func (*JobDispatched) GetLabel

func (j *JobDispatched) GetLabel() *string

func (*JobDispatched) GetLogsAvailable

func (j *JobDispatched) GetLogsAvailable() bool

func (*JobDispatched) GetMediaType

func (j *JobDispatched) GetMediaType() *string

func (*JobDispatched) GetMetricsAvailable

func (j *JobDispatched) GetMetricsAvailable() *bool

func (*JobDispatched) GetModel

func (j *JobDispatched) GetModel() *string

func (*JobDispatched) GetOrgID

func (j *JobDispatched) GetOrgID() string

func (*JobDispatched) GetOutputCategory

func (j *JobDispatched) GetOutputCategory() JobDispatchedOutputCategory

func (*JobDispatched) GetParams

func (j *JobDispatched) GetParams() map[string]any

func (*JobDispatched) GetProgress

func (j *JobDispatched) GetProgress() *float64

func (*JobDispatched) GetRegion

func (j *JobDispatched) GetRegion() *string

func (*JobDispatched) GetResourcesAvailable

func (j *JobDispatched) GetResourcesAvailable() bool

func (*JobDispatched) GetRetentionExpiresAt

func (j *JobDispatched) GetRetentionExpiresAt() *int

func (*JobDispatched) GetRetryCount

func (j *JobDispatched) GetRetryCount() int

func (*JobDispatched) GetSettledAt

func (j *JobDispatched) GetSettledAt() *int

func (*JobDispatched) GetSource

func (j *JobDispatched) GetSource() string

func (*JobDispatched) GetStartedAt

func (j *JobDispatched) GetStartedAt() *int

func (*JobDispatched) GetSteps

func (j *JobDispatched) GetSteps() []*JobStep

func (*JobDispatched) GetTerminal

func (j *JobDispatched) GetTerminal() bool

func (*JobDispatched) GetTimeoutMs

func (j *JobDispatched) GetTimeoutMs() *int

func (*JobDispatched) GetType

func (j *JobDispatched) GetType() string

func (*JobDispatched) GetWebURL

func (j *JobDispatched) GetWebURL() string

func (*JobDispatched) MarshalJSON

func (j *JobDispatched) MarshalJSON() ([]byte, error)

func (*JobDispatched) SetBootState

func (j *JobDispatched) SetBootState(bootState *JobDispatchedBootState)

SetBootState sets the BootState field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetCallback

func (j *JobDispatched) SetCallback(callback *CallbackStatus)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetClient

func (j *JobDispatched) SetClient(client *string)

SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetCompletedAt

func (j *JobDispatched) SetCompletedAt(completedAt *int)

SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetCost

func (j *JobDispatched) SetCost(cost *JobCost)

SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetCreatedAt

func (j *JobDispatched) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetDeliveries

func (j *JobDispatched) SetDeliveries(deliveries []*JobDelivery)

SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetDispatchedAt

func (j *JobDispatched) SetDispatchedAt(dispatchedAt *int)

SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetEta

func (j *JobDispatched) SetEta(eta *float64)

SetEta sets the Eta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetID

func (j *JobDispatched) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetIdempotencyKey

func (j *JobDispatched) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetInputs

func (j *JobDispatched) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetLabel

func (j *JobDispatched) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetLogsAvailable

func (j *JobDispatched) SetLogsAvailable(logsAvailable bool)

SetLogsAvailable sets the LogsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetMediaType

func (j *JobDispatched) SetMediaType(mediaType *string)

SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetMetricsAvailable

func (j *JobDispatched) SetMetricsAvailable(metricsAvailable *bool)

SetMetricsAvailable sets the MetricsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetModel

func (j *JobDispatched) SetModel(model *string)

SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetOrgID

func (j *JobDispatched) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetOutputCategory

func (j *JobDispatched) SetOutputCategory(outputCategory JobDispatchedOutputCategory)

SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetParams

func (j *JobDispatched) SetParams(params map[string]any)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetProgress

func (j *JobDispatched) SetProgress(progress *float64)

SetProgress sets the Progress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetRegion

func (j *JobDispatched) SetRegion(region *string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetResourcesAvailable

func (j *JobDispatched) SetResourcesAvailable(resourcesAvailable bool)

SetResourcesAvailable sets the ResourcesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetRetentionExpiresAt

func (j *JobDispatched) SetRetentionExpiresAt(retentionExpiresAt *int)

SetRetentionExpiresAt sets the RetentionExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetRetryCount

func (j *JobDispatched) SetRetryCount(retryCount int)

SetRetryCount sets the RetryCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetSettledAt

func (j *JobDispatched) SetSettledAt(settledAt *int)

SetSettledAt sets the SettledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetSource

func (j *JobDispatched) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetStartedAt

func (j *JobDispatched) SetStartedAt(startedAt *int)

SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetSteps

func (j *JobDispatched) SetSteps(steps []*JobStep)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetTerminal

func (j *JobDispatched) SetTerminal(terminal bool)

SetTerminal sets the Terminal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetTimeoutMs

func (j *JobDispatched) SetTimeoutMs(timeoutMs *int)

SetTimeoutMs sets the TimeoutMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetType

func (j *JobDispatched) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) SetWebURL

func (j *JobDispatched) SetWebURL(webURL string)

SetWebURL sets the WebURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatched) String

func (j *JobDispatched) String() string

func (*JobDispatched) UnmarshalJSON

func (j *JobDispatched) UnmarshalJSON(data []byte) error

type JobDispatchedBootState

type JobDispatchedBootState struct {
	// Boot phase: scheduling | queued | pulling-image | booting | restoring
	Phase string `json:"phase" url:"phase"`
	// Human-readable line, e.g. "waiting for GPU capacity"
	Detail string `json:"detail" url:"detail"`
	// Milliseconds since dispatch
	ElapsedMs int `json:"elapsedMs" url:"elapsedMs"`
	// Typical cold-start duration for this workload, or null when unknown
	TypicalMs *int `json:"typicalMs,omitempty" url:"typicalMs,omitempty"`
	// Whole-job remaining estimate (boot + generation), in milliseconds, or null when unknown
	EtaMs *int `json:"etaMs,omitempty" url:"etaMs,omitempty"`
	// contains filtered or unexported fields
}

Live boot detail while a worker container starts

func (*JobDispatchedBootState) GetDetail

func (j *JobDispatchedBootState) GetDetail() string

func (*JobDispatchedBootState) GetElapsedMs

func (j *JobDispatchedBootState) GetElapsedMs() int

func (*JobDispatchedBootState) GetEtaMs

func (j *JobDispatchedBootState) GetEtaMs() *int

func (*JobDispatchedBootState) GetExtraProperties

func (j *JobDispatchedBootState) GetExtraProperties() map[string]interface{}

func (*JobDispatchedBootState) GetPhase

func (j *JobDispatchedBootState) GetPhase() string

func (*JobDispatchedBootState) GetTypicalMs

func (j *JobDispatchedBootState) GetTypicalMs() *int

func (*JobDispatchedBootState) MarshalJSON

func (j *JobDispatchedBootState) MarshalJSON() ([]byte, error)

func (*JobDispatchedBootState) SetDetail

func (j *JobDispatchedBootState) SetDetail(detail string)

SetDetail sets the Detail field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatchedBootState) SetElapsedMs

func (j *JobDispatchedBootState) SetElapsedMs(elapsedMs int)

SetElapsedMs sets the ElapsedMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatchedBootState) SetEtaMs

func (j *JobDispatchedBootState) SetEtaMs(etaMs *int)

SetEtaMs sets the EtaMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatchedBootState) SetPhase

func (j *JobDispatchedBootState) SetPhase(phase string)

SetPhase sets the Phase field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatchedBootState) SetTypicalMs

func (j *JobDispatchedBootState) SetTypicalMs(typicalMs *int)

SetTypicalMs sets the TypicalMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobDispatchedBootState) String

func (j *JobDispatchedBootState) String() string

func (*JobDispatchedBootState) UnmarshalJSON

func (j *JobDispatchedBootState) UnmarshalJSON(data []byte) error

type JobDispatchedOutputCategory

type JobDispatchedOutputCategory string

Output category. Clients should tolerate unknown future values.

const (
	JobDispatchedOutputCategoryVideo    JobDispatchedOutputCategory = "video"
	JobDispatchedOutputCategoryImage    JobDispatchedOutputCategory = "image"
	JobDispatchedOutputCategoryAudio    JobDispatchedOutputCategory = "audio"
	JobDispatchedOutputCategoryJSON     JobDispatchedOutputCategory = "json"
	JobDispatchedOutputCategoryCaptions JobDispatchedOutputCategory = "captions"
	JobDispatchedOutputCategoryRaw      JobDispatchedOutputCategory = "raw"
)

func NewJobDispatchedOutputCategoryFromString

func NewJobDispatchedOutputCategoryFromString(s string) (JobDispatchedOutputCategory, error)

func (JobDispatchedOutputCategory) Ptr

type JobError

type JobError struct {
	// Machine-readable error code
	Code string `json:"code" url:"code"`
	// Human-readable error message
	Message string `json:"message" url:"message"`
	// Real provider stderr tail (e.g. ffmpeg), or null
	Detail *string `json:"detail,omitempty" url:"detail,omitempty"`
	// True when retrying the same job may succeed
	Retryable bool `json:"retryable" url:"retryable"`
	// Which phase the job failed in, when known
	FailedPhase *JobErrorFailedPhase `json:"failedPhase,omitempty" url:"failedPhase,omitempty"`
	// contains filtered or unexported fields
}

func (*JobError) GetCode

func (j *JobError) GetCode() string

func (*JobError) GetDetail

func (j *JobError) GetDetail() *string

func (*JobError) GetExtraProperties

func (j *JobError) GetExtraProperties() map[string]interface{}

func (*JobError) GetFailedPhase

func (j *JobError) GetFailedPhase() *JobErrorFailedPhase

func (*JobError) GetMessage

func (j *JobError) GetMessage() string

func (*JobError) GetRetryable

func (j *JobError) GetRetryable() bool

func (*JobError) MarshalJSON

func (j *JobError) MarshalJSON() ([]byte, error)

func (*JobError) SetCode

func (j *JobError) SetCode(code string)

SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobError) SetDetail

func (j *JobError) SetDetail(detail *string)

SetDetail sets the Detail field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobError) SetFailedPhase

func (j *JobError) SetFailedPhase(failedPhase *JobErrorFailedPhase)

SetFailedPhase sets the FailedPhase field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobError) SetMessage

func (j *JobError) SetMessage(message string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobError) SetRetryable

func (j *JobError) SetRetryable(retryable bool)

SetRetryable sets the Retryable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobError) String

func (j *JobError) String() string

func (*JobError) UnmarshalJSON

func (j *JobError) UnmarshalJSON(data []byte) error

type JobErrorFailedPhase

type JobErrorFailedPhase string

Which phase the job failed in, when known

const (
	JobErrorFailedPhasePreparing  JobErrorFailedPhase = "preparing"
	JobErrorFailedPhaseProcessing JobErrorFailedPhase = "processing"
	JobErrorFailedPhaseFinalizing JobErrorFailedPhase = "finalizing"
)

func NewJobErrorFailedPhaseFromString

func NewJobErrorFailedPhaseFromString(s string) (JobErrorFailedPhase, error)

func (JobErrorFailedPhase) Ptr

type JobFailed

type JobFailed struct {
	// Job ID (e.g. job_abc123)
	ID string `json:"id" url:"id"`
	// Organization ID
	OrgID string `json:"orgId" url:"orgId"`
	// Job type (e.g. ffmpeg)
	Type string `json:"type" url:"type"`
	// How the job was created (api | dashboard | mcp ...)
	Source string `json:"source" url:"source"`
	// Originating client (sdk | cli | mcp | n8n | ...), or null
	Client *string `json:"client,omitempty" url:"client,omitempty"`
	// Number of retry attempts
	RetryCount int `json:"retryCount" url:"retryCount"`
	// Caller-supplied idempotency key, or null
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// Caller-chosen name for the job, or null
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Detected media type (video | image | audio), or null
	MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
	// Input file references
	Inputs map[string]any `json:"inputs" url:"inputs"`
	// Job parameters
	Params map[string]any `json:"params" url:"params"`
	Cost   *JobCost       `json:"cost,omitempty" url:"cost,omitempty"`
	// Output category. Clients should tolerate unknown future values.
	OutputCategory JobFailedOutputCategory `json:"outputCategory" url:"outputCategory"`
	// Execution steps
	Steps []*JobStep `json:"steps" url:"steps"`
	// Whether execution logs are stored
	LogsAvailable bool `json:"logsAvailable" url:"logsAvailable"`
	// Whether the resource-utilization series is stored
	ResourcesAvailable bool `json:"resourcesAvailable" url:"resourcesAvailable"`
	// @deprecated renamed to resourcesAvailable; kept until the next major
	MetricsAvailable *bool `json:"metricsAvailable,omitempty" url:"metricsAvailable,omitempty"`
	// Execution region (e.g. us-east-1), null until dispatched
	Region *string `json:"region,omitempty" url:"region,omitempty"`
	// How long this job is allowed to run, in milliseconds: the requested timeout clamped to the plan ceiling. Null until the job is dispatched. Clients waiting on a job should bound the wait by this rather than a fixed guess.
	TimeoutMs *int `json:"timeoutMs,omitempty" url:"timeoutMs,omitempty"`
	// Creation timestamp (Unix ms)
	CreatedAt int `json:"createdAt" url:"createdAt"`
	// Dispatch timestamp (Unix ms)
	DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
	// Start timestamp (Unix ms)
	StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
	// Completion timestamp (Unix ms)
	CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
	// CF Worker timestamp when terminal status written (Unix ms)
	SettledAt *int `json:"settledAt,omitempty" url:"settledAt,omitempty"`
	// Unix ms when the stored output files are deleted (completion + plan retention window). Null until the job completes with a stored output. Distinct from output.expiresAt, which is the short-lived download-URL expiry.
	RetentionExpiresAt *int `json:"retentionExpiresAt,omitempty" url:"retentionExpiresAt,omitempty"`
	// Dashboard URL for this job
	WebURL string `json:"webUrl" url:"webUrl"`
	// Resolved generation model id (image.generate / image.edit jobs only), else null
	Model *string `json:"model,omitempty" url:"model,omitempty"`
	// True once the job has ended (complete, failed or cancelled), false while it waits or runs. Stop waiting on this rather than on a list of statuses: it stays right when a status is added.
	Terminal bool            `json:"terminal" url:"terminal"`
	Callback *CallbackStatus `json:"callback,omitempty" url:"callback,omitempty"`
	// Where the output was or will be delivered, one entry per destination given at submit. Detail endpoint only; absent when the job had no destinations.
	Deliveries []*JobDelivery `json:"deliveries,omitempty" url:"deliveries,omitempty"`
	Error      *JobError      `json:"error" url:"error"`
	// contains filtered or unexported fields
}

func (*JobFailed) GetCallback

func (j *JobFailed) GetCallback() *CallbackStatus

func (*JobFailed) GetClient

func (j *JobFailed) GetClient() *string

func (*JobFailed) GetCompletedAt

func (j *JobFailed) GetCompletedAt() *int

func (*JobFailed) GetCost

func (j *JobFailed) GetCost() *JobCost

func (*JobFailed) GetCreatedAt

func (j *JobFailed) GetCreatedAt() int

func (*JobFailed) GetDeliveries

func (j *JobFailed) GetDeliveries() []*JobDelivery

func (*JobFailed) GetDispatchedAt

func (j *JobFailed) GetDispatchedAt() *int

func (*JobFailed) GetError

func (j *JobFailed) GetError() *JobError

func (*JobFailed) GetExtraProperties

func (j *JobFailed) GetExtraProperties() map[string]interface{}

func (*JobFailed) GetID

func (j *JobFailed) GetID() string

func (*JobFailed) GetIdempotencyKey

func (j *JobFailed) GetIdempotencyKey() *string

func (*JobFailed) GetInputs

func (j *JobFailed) GetInputs() map[string]any

func (*JobFailed) GetLabel

func (j *JobFailed) GetLabel() *string

func (*JobFailed) GetLogsAvailable

func (j *JobFailed) GetLogsAvailable() bool

func (*JobFailed) GetMediaType

func (j *JobFailed) GetMediaType() *string

func (*JobFailed) GetMetricsAvailable

func (j *JobFailed) GetMetricsAvailable() *bool

func (*JobFailed) GetModel

func (j *JobFailed) GetModel() *string

func (*JobFailed) GetOrgID

func (j *JobFailed) GetOrgID() string

func (*JobFailed) GetOutputCategory

func (j *JobFailed) GetOutputCategory() JobFailedOutputCategory

func (*JobFailed) GetParams

func (j *JobFailed) GetParams() map[string]any

func (*JobFailed) GetRegion

func (j *JobFailed) GetRegion() *string

func (*JobFailed) GetResourcesAvailable

func (j *JobFailed) GetResourcesAvailable() bool

func (*JobFailed) GetRetentionExpiresAt

func (j *JobFailed) GetRetentionExpiresAt() *int

func (*JobFailed) GetRetryCount

func (j *JobFailed) GetRetryCount() int

func (*JobFailed) GetSettledAt

func (j *JobFailed) GetSettledAt() *int

func (*JobFailed) GetSource

func (j *JobFailed) GetSource() string

func (*JobFailed) GetStartedAt

func (j *JobFailed) GetStartedAt() *int

func (*JobFailed) GetSteps

func (j *JobFailed) GetSteps() []*JobStep

func (*JobFailed) GetTerminal

func (j *JobFailed) GetTerminal() bool

func (*JobFailed) GetTimeoutMs

func (j *JobFailed) GetTimeoutMs() *int

func (*JobFailed) GetType

func (j *JobFailed) GetType() string

func (*JobFailed) GetWebURL

func (j *JobFailed) GetWebURL() string

func (*JobFailed) MarshalJSON

func (j *JobFailed) MarshalJSON() ([]byte, error)

func (*JobFailed) SetCallback

func (j *JobFailed) SetCallback(callback *CallbackStatus)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetClient

func (j *JobFailed) SetClient(client *string)

SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetCompletedAt

func (j *JobFailed) SetCompletedAt(completedAt *int)

SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetCost

func (j *JobFailed) SetCost(cost *JobCost)

SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetCreatedAt

func (j *JobFailed) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetDeliveries

func (j *JobFailed) SetDeliveries(deliveries []*JobDelivery)

SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetDispatchedAt

func (j *JobFailed) SetDispatchedAt(dispatchedAt *int)

SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetError

func (j *JobFailed) SetError(error_ *JobError)

SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetID

func (j *JobFailed) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetIdempotencyKey

func (j *JobFailed) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetInputs

func (j *JobFailed) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetLabel

func (j *JobFailed) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetLogsAvailable

func (j *JobFailed) SetLogsAvailable(logsAvailable bool)

SetLogsAvailable sets the LogsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetMediaType

func (j *JobFailed) SetMediaType(mediaType *string)

SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetMetricsAvailable

func (j *JobFailed) SetMetricsAvailable(metricsAvailable *bool)

SetMetricsAvailable sets the MetricsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetModel

func (j *JobFailed) SetModel(model *string)

SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetOrgID

func (j *JobFailed) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetOutputCategory

func (j *JobFailed) SetOutputCategory(outputCategory JobFailedOutputCategory)

SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetParams

func (j *JobFailed) SetParams(params map[string]any)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetRegion

func (j *JobFailed) SetRegion(region *string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetResourcesAvailable

func (j *JobFailed) SetResourcesAvailable(resourcesAvailable bool)

SetResourcesAvailable sets the ResourcesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetRetentionExpiresAt

func (j *JobFailed) SetRetentionExpiresAt(retentionExpiresAt *int)

SetRetentionExpiresAt sets the RetentionExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetRetryCount

func (j *JobFailed) SetRetryCount(retryCount int)

SetRetryCount sets the RetryCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetSettledAt

func (j *JobFailed) SetSettledAt(settledAt *int)

SetSettledAt sets the SettledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetSource

func (j *JobFailed) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetStartedAt

func (j *JobFailed) SetStartedAt(startedAt *int)

SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetSteps

func (j *JobFailed) SetSteps(steps []*JobStep)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetTerminal

func (j *JobFailed) SetTerminal(terminal bool)

SetTerminal sets the Terminal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetTimeoutMs

func (j *JobFailed) SetTimeoutMs(timeoutMs *int)

SetTimeoutMs sets the TimeoutMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetType

func (j *JobFailed) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) SetWebURL

func (j *JobFailed) SetWebURL(webURL string)

SetWebURL sets the WebURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailed) String

func (j *JobFailed) String() string

func (*JobFailed) UnmarshalJSON

func (j *JobFailed) UnmarshalJSON(data []byte) error

type JobFailedData

type JobFailedData struct {
	JobID   string               `json:"jobId" url:"jobId"`
	JobType string               `json:"jobType" url:"jobType"`
	Status  JobFailedDataStatus  `json:"status" url:"status"`
	Error   *JobError            `json:"error" url:"error"`
	Timing  *JobFailedDataTiming `json:"timing" url:"timing"`
	Steps   []*WebhookJobStep    `json:"steps,omitempty" url:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*JobFailedData) GetError

func (j *JobFailedData) GetError() *JobError

func (*JobFailedData) GetExtraProperties

func (j *JobFailedData) GetExtraProperties() map[string]interface{}

func (*JobFailedData) GetJobID

func (j *JobFailedData) GetJobID() string

func (*JobFailedData) GetJobType

func (j *JobFailedData) GetJobType() string

func (*JobFailedData) GetStatus

func (j *JobFailedData) GetStatus() JobFailedDataStatus

func (*JobFailedData) GetSteps

func (j *JobFailedData) GetSteps() []*WebhookJobStep

func (*JobFailedData) GetTiming

func (j *JobFailedData) GetTiming() *JobFailedDataTiming

func (*JobFailedData) MarshalJSON

func (j *JobFailedData) MarshalJSON() ([]byte, error)

func (*JobFailedData) SetError

func (j *JobFailedData) SetError(error_ *JobError)

SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedData) SetJobID

func (j *JobFailedData) SetJobID(jobID string)

SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedData) SetJobType

func (j *JobFailedData) SetJobType(jobType string)

SetJobType sets the JobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedData) SetStatus

func (j *JobFailedData) SetStatus(status JobFailedDataStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedData) SetSteps

func (j *JobFailedData) SetSteps(steps []*WebhookJobStep)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedData) SetTiming

func (j *JobFailedData) SetTiming(timing *JobFailedDataTiming)

SetTiming sets the Timing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedData) String

func (j *JobFailedData) String() string

func (*JobFailedData) UnmarshalJSON

func (j *JobFailedData) UnmarshalJSON(data []byte) error

type JobFailedDataStatus

type JobFailedDataStatus string
const (
	JobFailedDataStatusFailed JobFailedDataStatus = "failed"
)

func NewJobFailedDataStatusFromString

func NewJobFailedDataStatusFromString(s string) (JobFailedDataStatus, error)

func (JobFailedDataStatus) Ptr

type JobFailedDataTiming

type JobFailedDataTiming struct {
	CreatedAt    int  `json:"createdAt" url:"createdAt"`
	DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
	StartedAt    *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
	FailedAt     int  `json:"failedAt" url:"failedAt"`
	// contains filtered or unexported fields
}

func (*JobFailedDataTiming) GetCreatedAt

func (j *JobFailedDataTiming) GetCreatedAt() int

func (*JobFailedDataTiming) GetDispatchedAt

func (j *JobFailedDataTiming) GetDispatchedAt() *int

func (*JobFailedDataTiming) GetExtraProperties

func (j *JobFailedDataTiming) GetExtraProperties() map[string]interface{}

func (*JobFailedDataTiming) GetFailedAt

func (j *JobFailedDataTiming) GetFailedAt() int

func (*JobFailedDataTiming) GetStartedAt

func (j *JobFailedDataTiming) GetStartedAt() *int

func (*JobFailedDataTiming) MarshalJSON

func (j *JobFailedDataTiming) MarshalJSON() ([]byte, error)

func (*JobFailedDataTiming) SetCreatedAt

func (j *JobFailedDataTiming) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedDataTiming) SetDispatchedAt

func (j *JobFailedDataTiming) SetDispatchedAt(dispatchedAt *int)

SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedDataTiming) SetFailedAt

func (j *JobFailedDataTiming) SetFailedAt(failedAt int)

SetFailedAt sets the FailedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedDataTiming) SetStartedAt

func (j *JobFailedDataTiming) SetStartedAt(startedAt *int)

SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedDataTiming) String

func (j *JobFailedDataTiming) String() string

func (*JobFailedDataTiming) UnmarshalJSON

func (j *JobFailedDataTiming) UnmarshalJSON(data []byte) error

type JobFailedOutputCategory

type JobFailedOutputCategory string

Output category. Clients should tolerate unknown future values.

const (
	JobFailedOutputCategoryVideo    JobFailedOutputCategory = "video"
	JobFailedOutputCategoryImage    JobFailedOutputCategory = "image"
	JobFailedOutputCategoryAudio    JobFailedOutputCategory = "audio"
	JobFailedOutputCategoryJSON     JobFailedOutputCategory = "json"
	JobFailedOutputCategoryCaptions JobFailedOutputCategory = "captions"
	JobFailedOutputCategoryRaw      JobFailedOutputCategory = "raw"
)

func NewJobFailedOutputCategoryFromString

func NewJobFailedOutputCategoryFromString(s string) (JobFailedOutputCategory, error)

func (JobFailedOutputCategory) Ptr

type JobFailedWebhookEvent

type JobFailedWebhookEvent struct {
	// Envelope version. A new version is a new shape
	Version JobFailedWebhookEventVersion `json:"version" url:"version"`
	// Unique per delivery. Retries of one delivery share it
	DeliveryID string `json:"deliveryId" url:"deliveryId"`
	// When the event happened (Unix ms)
	Timestamp int            `json:"timestamp" url:"timestamp"`
	OrgID     string         `json:"orgId" url:"orgId"`
	Data      *JobFailedData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*JobFailedWebhookEvent) GetData

func (j *JobFailedWebhookEvent) GetData() *JobFailedData

func (*JobFailedWebhookEvent) GetDeliveryID

func (j *JobFailedWebhookEvent) GetDeliveryID() string

func (*JobFailedWebhookEvent) GetExtraProperties

func (j *JobFailedWebhookEvent) GetExtraProperties() map[string]interface{}

func (*JobFailedWebhookEvent) GetOrgID

func (j *JobFailedWebhookEvent) GetOrgID() string

func (*JobFailedWebhookEvent) GetTimestamp

func (j *JobFailedWebhookEvent) GetTimestamp() int

func (*JobFailedWebhookEvent) GetVersion

func (*JobFailedWebhookEvent) MarshalJSON

func (j *JobFailedWebhookEvent) MarshalJSON() ([]byte, error)

func (*JobFailedWebhookEvent) SetData

func (j *JobFailedWebhookEvent) SetData(data *JobFailedData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedWebhookEvent) SetDeliveryID

func (j *JobFailedWebhookEvent) SetDeliveryID(deliveryID string)

SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedWebhookEvent) SetOrgID

func (j *JobFailedWebhookEvent) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedWebhookEvent) SetTimestamp

func (j *JobFailedWebhookEvent) SetTimestamp(timestamp int)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedWebhookEvent) SetVersion

func (j *JobFailedWebhookEvent) SetVersion(version JobFailedWebhookEventVersion)

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobFailedWebhookEvent) String

func (j *JobFailedWebhookEvent) String() string

func (*JobFailedWebhookEvent) UnmarshalJSON

func (j *JobFailedWebhookEvent) UnmarshalJSON(data []byte) error

type JobFailedWebhookEventVersion

type JobFailedWebhookEventVersion string

Envelope version. A new version is a new shape

const (
	JobFailedWebhookEventVersionV1 JobFailedWebhookEventVersion = "1"
)

func NewJobFailedWebhookEventVersionFromString

func NewJobFailedWebhookEventVersionFromString(s string) (JobFailedWebhookEventVersion, error)

func (JobFailedWebhookEventVersion) Ptr

type JobOutput

type JobOutput struct {
	// Job-type-specific computed result (probe result, detections, transcript). Shape varies per job type. Null when the job produced no structured data. For an ffprobe job it is an FfprobeResult (#/components/schemas/FfprobeResult).
	Data any `json:"data,omitempty" url:"data,omitempty"`
	// Convenience shortcut to the single headline result: the one output file, or the stream manifest (.m3u8/.mpd). Read `file.url` directly when you expect one output. Always one of `files`. Null for pure file sets and data-only jobs (which have no single headline).
	File *JobOutputFile `json:"file,omitempty" url:"file,omitempty"`
	// Every file the job produced, the complete list. Use this when a job can output many files (image sequence, HLS segments, resolution ladder). Empty for data-only jobs.
	Files []*OutputFile `json:"files" url:"files"`
	// Unix ms when the file URLs expire. Present iff `files` is non-empty.
	ExpiresAt *int `json:"expiresAt,omitempty" url:"expiresAt,omitempty"`
	// contains filtered or unexported fields
}

Job output. Present only when status is complete.

func (*JobOutput) GetData

func (j *JobOutput) GetData() any

func (*JobOutput) GetExpiresAt

func (j *JobOutput) GetExpiresAt() *int

func (*JobOutput) GetExtraProperties

func (j *JobOutput) GetExtraProperties() map[string]interface{}

func (*JobOutput) GetFile

func (j *JobOutput) GetFile() *JobOutputFile

func (*JobOutput) GetFiles

func (j *JobOutput) GetFiles() []*OutputFile

func (*JobOutput) MarshalJSON

func (j *JobOutput) MarshalJSON() ([]byte, error)

func (*JobOutput) SetData

func (j *JobOutput) SetData(data any)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutput) SetExpiresAt

func (j *JobOutput) SetExpiresAt(expiresAt *int)

SetExpiresAt sets the ExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutput) SetFile

func (j *JobOutput) SetFile(file *JobOutputFile)

SetFile sets the File field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutput) SetFiles

func (j *JobOutput) SetFiles(files []*OutputFile)

SetFiles sets the Files field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutput) String

func (j *JobOutput) String() string

func (*JobOutput) UnmarshalJSON

func (j *JobOutput) UnmarshalJSON(data []byte) error

type JobOutputFile

type JobOutputFile struct {
	// Ready-to-fetch, time-limited URL for this file
	URL string `json:"url" url:"url"`
	// File path within the job output (relative). For an ffmpeg job, the name the command wrote.
	Path string         `json:"path" url:"path"`
	Type OutputFileType `json:"type" url:"type"`
	// File size in bytes
	Size int `json:"size" url:"size"`
	// SHA-256 of the file's bytes, 64 lowercase hex characters. Compare it with your own digest of a download or a delivered copy. Null on jobs completed before 2026-10 (single files) or 2026-10-22 (multi-file outputs).
	Sha256 *string `json:"sha256,omitempty" url:"sha256,omitempty"`
	// Optional per-file media metadata, when known
	Meta *JobOutputFileMeta `json:"meta,omitempty" url:"meta,omitempty"`
	// contains filtered or unexported fields
}

Convenience shortcut to the single headline result: the one output file, or the stream manifest (.m3u8/.mpd). Read `file.url` directly when you expect one output. Always one of `files`. Null for pure file sets and data-only jobs (which have no single headline).

func (*JobOutputFile) GetExtraProperties

func (j *JobOutputFile) GetExtraProperties() map[string]interface{}

func (*JobOutputFile) GetMeta

func (j *JobOutputFile) GetMeta() *JobOutputFileMeta

func (*JobOutputFile) GetPath

func (j *JobOutputFile) GetPath() string

func (*JobOutputFile) GetSha256

func (j *JobOutputFile) GetSha256() *string

func (*JobOutputFile) GetSize

func (j *JobOutputFile) GetSize() int

func (*JobOutputFile) GetType

func (j *JobOutputFile) GetType() OutputFileType

func (*JobOutputFile) GetURL

func (j *JobOutputFile) GetURL() string

func (*JobOutputFile) MarshalJSON

func (j *JobOutputFile) MarshalJSON() ([]byte, error)

func (*JobOutputFile) SetMeta

func (j *JobOutputFile) SetMeta(meta *JobOutputFileMeta)

SetMeta sets the Meta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutputFile) SetPath

func (j *JobOutputFile) SetPath(path string)

SetPath sets the Path field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutputFile) SetSha256

func (j *JobOutputFile) SetSha256(sha256 *string)

SetSha256 sets the Sha256 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutputFile) SetSize

func (j *JobOutputFile) SetSize(size int)

SetSize sets the Size field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutputFile) SetType

func (j *JobOutputFile) SetType(type_ OutputFileType)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutputFile) SetURL

func (j *JobOutputFile) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutputFile) String

func (j *JobOutputFile) String() string

func (*JobOutputFile) UnmarshalJSON

func (j *JobOutputFile) UnmarshalJSON(data []byte) error

type JobOutputFileMeta

type JobOutputFileMeta struct {
	// Container/codec format (from extension)
	Format     *string `json:"format,omitempty" url:"format,omitempty"`
	Width      *int    `json:"width,omitempty" url:"width,omitempty"`
	Height     *int    `json:"height,omitempty" url:"height,omitempty"`
	DurationMs *int    `json:"durationMs,omitempty" url:"durationMs,omitempty"`
	// Seed used, for reproducible generation
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// contains filtered or unexported fields
}

Optional per-file media metadata, when known

func (*JobOutputFileMeta) GetDurationMs

func (j *JobOutputFileMeta) GetDurationMs() *int

func (*JobOutputFileMeta) GetExtraProperties

func (j *JobOutputFileMeta) GetExtraProperties() map[string]interface{}

func (*JobOutputFileMeta) GetFormat

func (j *JobOutputFileMeta) GetFormat() *string

func (*JobOutputFileMeta) GetHeight

func (j *JobOutputFileMeta) GetHeight() *int

func (*JobOutputFileMeta) GetSeed

func (j *JobOutputFileMeta) GetSeed() *int

func (*JobOutputFileMeta) GetWidth

func (j *JobOutputFileMeta) GetWidth() *int

func (*JobOutputFileMeta) MarshalJSON

func (j *JobOutputFileMeta) MarshalJSON() ([]byte, error)

func (*JobOutputFileMeta) SetDurationMs

func (j *JobOutputFileMeta) SetDurationMs(durationMs *int)

SetDurationMs sets the DurationMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutputFileMeta) SetFormat

func (j *JobOutputFileMeta) SetFormat(format *string)

SetFormat sets the Format field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutputFileMeta) SetHeight

func (j *JobOutputFileMeta) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutputFileMeta) SetSeed

func (j *JobOutputFileMeta) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutputFileMeta) SetWidth

func (j *JobOutputFileMeta) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobOutputFileMeta) String

func (j *JobOutputFileMeta) String() string

func (*JobOutputFileMeta) UnmarshalJSON

func (j *JobOutputFileMeta) UnmarshalJSON(data []byte) error

type JobReplayed

type JobReplayed struct {
	// Job ID of the earlier submit
	ID string `json:"id" url:"id"`
	// That job's current status: any of waiting, dispatched, running, complete, failed, cancelled
	Status string `json:"status" url:"status"`
	// This submit replayed an earlier one instead of creating a job
	Idempotent bool `json:"idempotent" url:"idempotent"`
	// contains filtered or unexported fields
}

func (*JobReplayed) GetExtraProperties

func (j *JobReplayed) GetExtraProperties() map[string]interface{}

func (*JobReplayed) GetID

func (j *JobReplayed) GetID() string

func (*JobReplayed) GetIdempotent

func (j *JobReplayed) GetIdempotent() bool

func (*JobReplayed) GetStatus

func (j *JobReplayed) GetStatus() string

func (*JobReplayed) MarshalJSON

func (j *JobReplayed) MarshalJSON() ([]byte, error)

func (*JobReplayed) SetID

func (j *JobReplayed) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobReplayed) SetIdempotent

func (j *JobReplayed) SetIdempotent(idempotent bool)

SetIdempotent sets the Idempotent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobReplayed) SetStatus

func (j *JobReplayed) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobReplayed) String

func (j *JobReplayed) String() string

func (*JobReplayed) UnmarshalJSON

func (j *JobReplayed) UnmarshalJSON(data []byte) error

type JobRunning

type JobRunning struct {
	// Job ID (e.g. job_abc123)
	ID string `json:"id" url:"id"`
	// Organization ID
	OrgID string `json:"orgId" url:"orgId"`
	// Job type (e.g. ffmpeg)
	Type string `json:"type" url:"type"`
	// How the job was created (api | dashboard | mcp ...)
	Source string `json:"source" url:"source"`
	// Originating client (sdk | cli | mcp | n8n | ...), or null
	Client *string `json:"client,omitempty" url:"client,omitempty"`
	// Number of retry attempts
	RetryCount int `json:"retryCount" url:"retryCount"`
	// Caller-supplied idempotency key, or null
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// Caller-chosen name for the job, or null
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Detected media type (video | image | audio), or null
	MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
	// Input file references
	Inputs map[string]any `json:"inputs" url:"inputs"`
	// Job parameters
	Params map[string]any `json:"params" url:"params"`
	Cost   *JobCost       `json:"cost,omitempty" url:"cost,omitempty"`
	// Output category. Clients should tolerate unknown future values.
	OutputCategory JobRunningOutputCategory `json:"outputCategory" url:"outputCategory"`
	// Execution steps
	Steps []*JobStep `json:"steps" url:"steps"`
	// Whether execution logs are stored
	LogsAvailable bool `json:"logsAvailable" url:"logsAvailable"`
	// Whether the resource-utilization series is stored
	ResourcesAvailable bool `json:"resourcesAvailable" url:"resourcesAvailable"`
	// @deprecated renamed to resourcesAvailable; kept until the next major
	MetricsAvailable *bool `json:"metricsAvailable,omitempty" url:"metricsAvailable,omitempty"`
	// Execution region (e.g. us-east-1), null until dispatched
	Region *string `json:"region,omitempty" url:"region,omitempty"`
	// How long this job is allowed to run, in milliseconds: the requested timeout clamped to the plan ceiling. Null until the job is dispatched. Clients waiting on a job should bound the wait by this rather than a fixed guess.
	TimeoutMs *int `json:"timeoutMs,omitempty" url:"timeoutMs,omitempty"`
	// Creation timestamp (Unix ms)
	CreatedAt int `json:"createdAt" url:"createdAt"`
	// Dispatch timestamp (Unix ms)
	DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
	// Start timestamp (Unix ms)
	StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
	// Completion timestamp (Unix ms)
	CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
	// CF Worker timestamp when terminal status written (Unix ms)
	SettledAt *int `json:"settledAt,omitempty" url:"settledAt,omitempty"`
	// Unix ms when the stored output files are deleted (completion + plan retention window). Null until the job completes with a stored output. Distinct from output.expiresAt, which is the short-lived download-URL expiry.
	RetentionExpiresAt *int `json:"retentionExpiresAt,omitempty" url:"retentionExpiresAt,omitempty"`
	// Dashboard URL for this job
	WebURL string `json:"webUrl" url:"webUrl"`
	// Resolved generation model id (image.generate / image.edit jobs only), else null
	Model *string `json:"model,omitempty" url:"model,omitempty"`
	// True once the job has ended (complete, failed or cancelled), false while it waits or runs. Stop waiting on this rather than on a list of statuses: it stays right when a status is added.
	Terminal bool            `json:"terminal" url:"terminal"`
	Callback *CallbackStatus `json:"callback,omitempty" url:"callback,omitempty"`
	// Where the output was or will be delivered, one entry per destination given at submit. Detail endpoint only; absent when the job had no destinations.
	Deliveries []*JobDelivery `json:"deliveries,omitempty" url:"deliveries,omitempty"`
	// Completion fraction 0..1, or null when it cannot be determined
	Progress *float64 `json:"progress,omitempty" url:"progress,omitempty"`
	// Estimated seconds remaining, or null
	Eta *float64 `json:"eta,omitempty" url:"eta,omitempty"`
	// contains filtered or unexported fields
}

func (*JobRunning) GetCallback

func (j *JobRunning) GetCallback() *CallbackStatus

func (*JobRunning) GetClient

func (j *JobRunning) GetClient() *string

func (*JobRunning) GetCompletedAt

func (j *JobRunning) GetCompletedAt() *int

func (*JobRunning) GetCost

func (j *JobRunning) GetCost() *JobCost

func (*JobRunning) GetCreatedAt

func (j *JobRunning) GetCreatedAt() int

func (*JobRunning) GetDeliveries

func (j *JobRunning) GetDeliveries() []*JobDelivery

func (*JobRunning) GetDispatchedAt

func (j *JobRunning) GetDispatchedAt() *int

func (*JobRunning) GetEta

func (j *JobRunning) GetEta() *float64

func (*JobRunning) GetExtraProperties

func (j *JobRunning) GetExtraProperties() map[string]interface{}

func (*JobRunning) GetID

func (j *JobRunning) GetID() string

func (*JobRunning) GetIdempotencyKey

func (j *JobRunning) GetIdempotencyKey() *string

func (*JobRunning) GetInputs

func (j *JobRunning) GetInputs() map[string]any

func (*JobRunning) GetLabel

func (j *JobRunning) GetLabel() *string

func (*JobRunning) GetLogsAvailable

func (j *JobRunning) GetLogsAvailable() bool

func (*JobRunning) GetMediaType

func (j *JobRunning) GetMediaType() *string

func (*JobRunning) GetMetricsAvailable

func (j *JobRunning) GetMetricsAvailable() *bool

func (*JobRunning) GetModel

func (j *JobRunning) GetModel() *string

func (*JobRunning) GetOrgID

func (j *JobRunning) GetOrgID() string

func (*JobRunning) GetOutputCategory

func (j *JobRunning) GetOutputCategory() JobRunningOutputCategory

func (*JobRunning) GetParams

func (j *JobRunning) GetParams() map[string]any

func (*JobRunning) GetProgress

func (j *JobRunning) GetProgress() *float64

func (*JobRunning) GetRegion

func (j *JobRunning) GetRegion() *string

func (*JobRunning) GetResourcesAvailable

func (j *JobRunning) GetResourcesAvailable() bool

func (*JobRunning) GetRetentionExpiresAt

func (j *JobRunning) GetRetentionExpiresAt() *int

func (*JobRunning) GetRetryCount

func (j *JobRunning) GetRetryCount() int

func (*JobRunning) GetSettledAt

func (j *JobRunning) GetSettledAt() *int

func (*JobRunning) GetSource

func (j *JobRunning) GetSource() string

func (*JobRunning) GetStartedAt

func (j *JobRunning) GetStartedAt() *int

func (*JobRunning) GetSteps

func (j *JobRunning) GetSteps() []*JobStep

func (*JobRunning) GetTerminal

func (j *JobRunning) GetTerminal() bool

func (*JobRunning) GetTimeoutMs

func (j *JobRunning) GetTimeoutMs() *int

func (*JobRunning) GetType

func (j *JobRunning) GetType() string

func (*JobRunning) GetWebURL

func (j *JobRunning) GetWebURL() string

func (*JobRunning) MarshalJSON

func (j *JobRunning) MarshalJSON() ([]byte, error)

func (*JobRunning) SetCallback

func (j *JobRunning) SetCallback(callback *CallbackStatus)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetClient

func (j *JobRunning) SetClient(client *string)

SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetCompletedAt

func (j *JobRunning) SetCompletedAt(completedAt *int)

SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetCost

func (j *JobRunning) SetCost(cost *JobCost)

SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetCreatedAt

func (j *JobRunning) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetDeliveries

func (j *JobRunning) SetDeliveries(deliveries []*JobDelivery)

SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetDispatchedAt

func (j *JobRunning) SetDispatchedAt(dispatchedAt *int)

SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetEta

func (j *JobRunning) SetEta(eta *float64)

SetEta sets the Eta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetID

func (j *JobRunning) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetIdempotencyKey

func (j *JobRunning) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetInputs

func (j *JobRunning) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetLabel

func (j *JobRunning) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetLogsAvailable

func (j *JobRunning) SetLogsAvailable(logsAvailable bool)

SetLogsAvailable sets the LogsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetMediaType

func (j *JobRunning) SetMediaType(mediaType *string)

SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetMetricsAvailable

func (j *JobRunning) SetMetricsAvailable(metricsAvailable *bool)

SetMetricsAvailable sets the MetricsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetModel

func (j *JobRunning) SetModel(model *string)

SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetOrgID

func (j *JobRunning) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetOutputCategory

func (j *JobRunning) SetOutputCategory(outputCategory JobRunningOutputCategory)

SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetParams

func (j *JobRunning) SetParams(params map[string]any)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetProgress

func (j *JobRunning) SetProgress(progress *float64)

SetProgress sets the Progress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetRegion

func (j *JobRunning) SetRegion(region *string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetResourcesAvailable

func (j *JobRunning) SetResourcesAvailable(resourcesAvailable bool)

SetResourcesAvailable sets the ResourcesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetRetentionExpiresAt

func (j *JobRunning) SetRetentionExpiresAt(retentionExpiresAt *int)

SetRetentionExpiresAt sets the RetentionExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetRetryCount

func (j *JobRunning) SetRetryCount(retryCount int)

SetRetryCount sets the RetryCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetSettledAt

func (j *JobRunning) SetSettledAt(settledAt *int)

SetSettledAt sets the SettledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetSource

func (j *JobRunning) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetStartedAt

func (j *JobRunning) SetStartedAt(startedAt *int)

SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetSteps

func (j *JobRunning) SetSteps(steps []*JobStep)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetTerminal

func (j *JobRunning) SetTerminal(terminal bool)

SetTerminal sets the Terminal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetTimeoutMs

func (j *JobRunning) SetTimeoutMs(timeoutMs *int)

SetTimeoutMs sets the TimeoutMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetType

func (j *JobRunning) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) SetWebURL

func (j *JobRunning) SetWebURL(webURL string)

SetWebURL sets the WebURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobRunning) String

func (j *JobRunning) String() string

func (*JobRunning) UnmarshalJSON

func (j *JobRunning) UnmarshalJSON(data []byte) error

type JobRunningOutputCategory

type JobRunningOutputCategory string

Output category. Clients should tolerate unknown future values.

const (
	JobRunningOutputCategoryVideo    JobRunningOutputCategory = "video"
	JobRunningOutputCategoryImage    JobRunningOutputCategory = "image"
	JobRunningOutputCategoryAudio    JobRunningOutputCategory = "audio"
	JobRunningOutputCategoryJSON     JobRunningOutputCategory = "json"
	JobRunningOutputCategoryCaptions JobRunningOutputCategory = "captions"
	JobRunningOutputCategoryRaw      JobRunningOutputCategory = "raw"
)

func NewJobRunningOutputCategoryFromString

func NewJobRunningOutputCategoryFromString(s string) (JobRunningOutputCategory, error)

func (JobRunningOutputCategory) Ptr

type JobStartedData

type JobStartedData struct {
	JobID   string                `json:"jobId" url:"jobId"`
	JobType string                `json:"jobType" url:"jobType"`
	Status  JobStartedDataStatus  `json:"status" url:"status"`
	Timing  *JobStartedDataTiming `json:"timing" url:"timing"`
	// contains filtered or unexported fields
}

func (*JobStartedData) GetExtraProperties

func (j *JobStartedData) GetExtraProperties() map[string]interface{}

func (*JobStartedData) GetJobID

func (j *JobStartedData) GetJobID() string

func (*JobStartedData) GetJobType

func (j *JobStartedData) GetJobType() string

func (*JobStartedData) GetStatus

func (j *JobStartedData) GetStatus() JobStartedDataStatus

func (*JobStartedData) GetTiming

func (j *JobStartedData) GetTiming() *JobStartedDataTiming

func (*JobStartedData) MarshalJSON

func (j *JobStartedData) MarshalJSON() ([]byte, error)

func (*JobStartedData) SetJobID

func (j *JobStartedData) SetJobID(jobID string)

SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStartedData) SetJobType

func (j *JobStartedData) SetJobType(jobType string)

SetJobType sets the JobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStartedData) SetStatus

func (j *JobStartedData) SetStatus(status JobStartedDataStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStartedData) SetTiming

func (j *JobStartedData) SetTiming(timing *JobStartedDataTiming)

SetTiming sets the Timing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStartedData) String

func (j *JobStartedData) String() string

func (*JobStartedData) UnmarshalJSON

func (j *JobStartedData) UnmarshalJSON(data []byte) error

type JobStartedDataStatus

type JobStartedDataStatus string
const (
	JobStartedDataStatusRunning JobStartedDataStatus = "running"
)

func NewJobStartedDataStatusFromString

func NewJobStartedDataStatusFromString(s string) (JobStartedDataStatus, error)

func (JobStartedDataStatus) Ptr

type JobStartedDataTiming

type JobStartedDataTiming struct {
	CreatedAt    int  `json:"createdAt" url:"createdAt"`
	DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
	StartedAt    int  `json:"startedAt" url:"startedAt"`
	// contains filtered or unexported fields
}

func (*JobStartedDataTiming) GetCreatedAt

func (j *JobStartedDataTiming) GetCreatedAt() int

func (*JobStartedDataTiming) GetDispatchedAt

func (j *JobStartedDataTiming) GetDispatchedAt() *int

func (*JobStartedDataTiming) GetExtraProperties

func (j *JobStartedDataTiming) GetExtraProperties() map[string]interface{}

func (*JobStartedDataTiming) GetStartedAt

func (j *JobStartedDataTiming) GetStartedAt() int

func (*JobStartedDataTiming) MarshalJSON

func (j *JobStartedDataTiming) MarshalJSON() ([]byte, error)

func (*JobStartedDataTiming) SetCreatedAt

func (j *JobStartedDataTiming) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStartedDataTiming) SetDispatchedAt

func (j *JobStartedDataTiming) SetDispatchedAt(dispatchedAt *int)

SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStartedDataTiming) SetStartedAt

func (j *JobStartedDataTiming) SetStartedAt(startedAt int)

SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStartedDataTiming) String

func (j *JobStartedDataTiming) String() string

func (*JobStartedDataTiming) UnmarshalJSON

func (j *JobStartedDataTiming) UnmarshalJSON(data []byte) error

type JobStartedWebhookEvent

type JobStartedWebhookEvent struct {
	// Envelope version. A new version is a new shape
	Version JobStartedWebhookEventVersion `json:"version" url:"version"`
	// Unique per delivery. Retries of one delivery share it
	DeliveryID string `json:"deliveryId" url:"deliveryId"`
	// When the event happened (Unix ms)
	Timestamp int             `json:"timestamp" url:"timestamp"`
	OrgID     string          `json:"orgId" url:"orgId"`
	Data      *JobStartedData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*JobStartedWebhookEvent) GetData

func (j *JobStartedWebhookEvent) GetData() *JobStartedData

func (*JobStartedWebhookEvent) GetDeliveryID

func (j *JobStartedWebhookEvent) GetDeliveryID() string

func (*JobStartedWebhookEvent) GetExtraProperties

func (j *JobStartedWebhookEvent) GetExtraProperties() map[string]interface{}

func (*JobStartedWebhookEvent) GetOrgID

func (j *JobStartedWebhookEvent) GetOrgID() string

func (*JobStartedWebhookEvent) GetTimestamp

func (j *JobStartedWebhookEvent) GetTimestamp() int

func (*JobStartedWebhookEvent) GetVersion

func (*JobStartedWebhookEvent) MarshalJSON

func (j *JobStartedWebhookEvent) MarshalJSON() ([]byte, error)

func (*JobStartedWebhookEvent) SetData

func (j *JobStartedWebhookEvent) SetData(data *JobStartedData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStartedWebhookEvent) SetDeliveryID

func (j *JobStartedWebhookEvent) SetDeliveryID(deliveryID string)

SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStartedWebhookEvent) SetOrgID

func (j *JobStartedWebhookEvent) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStartedWebhookEvent) SetTimestamp

func (j *JobStartedWebhookEvent) SetTimestamp(timestamp int)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStartedWebhookEvent) SetVersion

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStartedWebhookEvent) String

func (j *JobStartedWebhookEvent) String() string

func (*JobStartedWebhookEvent) UnmarshalJSON

func (j *JobStartedWebhookEvent) UnmarshalJSON(data []byte) error

type JobStartedWebhookEventVersion

type JobStartedWebhookEventVersion string

Envelope version. A new version is a new shape

const (
	JobStartedWebhookEventVersionV1 JobStartedWebhookEventVersion = "1"
)

func NewJobStartedWebhookEventVersionFromString

func NewJobStartedWebhookEventVersionFromString(s string) (JobStartedWebhookEventVersion, error)

func (JobStartedWebhookEventVersion) Ptr

type JobStep

type JobStep struct {
	ID   string `json:"id" url:"id"`
	Name string `json:"name" url:"name"`
	// pending | running | complete | skipped | error
	Status      string         `json:"status" url:"status"`
	StartedAt   *int           `json:"startedAt,omitempty" url:"startedAt,omitempty"`
	CompletedAt *int           `json:"completedAt,omitempty" url:"completedAt,omitempty"`
	DurationMs  *int           `json:"durationMs,omitempty" url:"durationMs,omitempty"`
	Meta        map[string]any `json:"meta,omitempty" url:"meta,omitempty"`
	Error       *string        `json:"error,omitempty" url:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*JobStep) GetCompletedAt

func (j *JobStep) GetCompletedAt() *int

func (*JobStep) GetDurationMs

func (j *JobStep) GetDurationMs() *int

func (*JobStep) GetError

func (j *JobStep) GetError() *string

func (*JobStep) GetExtraProperties

func (j *JobStep) GetExtraProperties() map[string]interface{}

func (*JobStep) GetID

func (j *JobStep) GetID() string

func (*JobStep) GetMeta

func (j *JobStep) GetMeta() map[string]any

func (*JobStep) GetName

func (j *JobStep) GetName() string

func (*JobStep) GetStartedAt

func (j *JobStep) GetStartedAt() *int

func (*JobStep) GetStatus

func (j *JobStep) GetStatus() string

func (*JobStep) MarshalJSON

func (j *JobStep) MarshalJSON() ([]byte, error)

func (*JobStep) SetCompletedAt

func (j *JobStep) SetCompletedAt(completedAt *int)

SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStep) SetDurationMs

func (j *JobStep) SetDurationMs(durationMs *int)

SetDurationMs sets the DurationMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStep) SetError

func (j *JobStep) SetError(error_ *string)

SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStep) SetID

func (j *JobStep) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStep) SetMeta

func (j *JobStep) SetMeta(meta map[string]any)

SetMeta sets the Meta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStep) SetName

func (j *JobStep) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStep) SetStartedAt

func (j *JobStep) SetStartedAt(startedAt *int)

SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStep) SetStatus

func (j *JobStep) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobStep) String

func (j *JobStep) String() string

func (*JobStep) UnmarshalJSON

func (j *JobStep) UnmarshalJSON(data []byte) error

type JobType

type JobType struct {
	// Job type identifier (e.g. ffmpeg)
	Type string `json:"type" url:"type"`
	// Category tag
	Tag string `json:"tag" url:"tag"`
	// Short description
	Summary string `json:"summary" url:"summary"`
	// Accepted media types
	AcceptsMedia []string `json:"acceptsMedia" url:"acceptsMedia"`
	// What this job type is typically used for
	UseCases []string `json:"useCases" url:"useCases"`
	// Job types whose output commonly feeds this one, or vice versa
	ChainsWith []string `json:"chainsWith" url:"chainsWith"`
	// contains filtered or unexported fields
}

func (*JobType) GetAcceptsMedia

func (j *JobType) GetAcceptsMedia() []string

func (*JobType) GetChainsWith

func (j *JobType) GetChainsWith() []string

func (*JobType) GetExtraProperties

func (j *JobType) GetExtraProperties() map[string]interface{}

func (*JobType) GetSummary

func (j *JobType) GetSummary() string

func (*JobType) GetTag

func (j *JobType) GetTag() string

func (*JobType) GetType

func (j *JobType) GetType() string

func (*JobType) GetUseCases

func (j *JobType) GetUseCases() []string

func (*JobType) MarshalJSON

func (j *JobType) MarshalJSON() ([]byte, error)

func (*JobType) SetAcceptsMedia

func (j *JobType) SetAcceptsMedia(acceptsMedia []string)

SetAcceptsMedia sets the AcceptsMedia field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobType) SetChainsWith

func (j *JobType) SetChainsWith(chainsWith []string)

SetChainsWith sets the ChainsWith field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobType) SetSummary

func (j *JobType) SetSummary(summary string)

SetSummary sets the Summary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobType) SetTag

func (j *JobType) SetTag(tag string)

SetTag sets the Tag field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobType) SetType

func (j *JobType) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobType) SetUseCases

func (j *JobType) SetUseCases(useCases []string)

SetUseCases sets the UseCases field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobType) String

func (j *JobType) String() string

func (*JobType) UnmarshalJSON

func (j *JobType) UnmarshalJSON(data []byte) error

type JobVisitor

type JobVisitor interface {
	VisitWaiting(*JobWaiting) error
	VisitDispatched(*JobDispatched) error
	VisitRunning(*JobRunning) error
	VisitComplete(*JobComplete) error
	VisitFailed(*JobFailed) error
	VisitCancelled(*JobCancelled) error
}

type JobWaiting

type JobWaiting struct {
	// Job ID (e.g. job_abc123)
	ID string `json:"id" url:"id"`
	// Organization ID
	OrgID string `json:"orgId" url:"orgId"`
	// Job type (e.g. ffmpeg)
	Type string `json:"type" url:"type"`
	// How the job was created (api | dashboard | mcp ...)
	Source string `json:"source" url:"source"`
	// Originating client (sdk | cli | mcp | n8n | ...), or null
	Client *string `json:"client,omitempty" url:"client,omitempty"`
	// Number of retry attempts
	RetryCount int `json:"retryCount" url:"retryCount"`
	// Caller-supplied idempotency key, or null
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// Caller-chosen name for the job, or null
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Detected media type (video | image | audio), or null
	MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
	// Input file references
	Inputs map[string]any `json:"inputs" url:"inputs"`
	// Job parameters
	Params map[string]any `json:"params" url:"params"`
	Cost   *JobCost       `json:"cost,omitempty" url:"cost,omitempty"`
	// Output category. Clients should tolerate unknown future values.
	OutputCategory JobWaitingOutputCategory `json:"outputCategory" url:"outputCategory"`
	// Execution steps
	Steps []*JobStep `json:"steps" url:"steps"`
	// Whether execution logs are stored
	LogsAvailable bool `json:"logsAvailable" url:"logsAvailable"`
	// Whether the resource-utilization series is stored
	ResourcesAvailable bool `json:"resourcesAvailable" url:"resourcesAvailable"`
	// @deprecated renamed to resourcesAvailable; kept until the next major
	MetricsAvailable *bool `json:"metricsAvailable,omitempty" url:"metricsAvailable,omitempty"`
	// Execution region (e.g. us-east-1), null until dispatched
	Region *string `json:"region,omitempty" url:"region,omitempty"`
	// How long this job is allowed to run, in milliseconds: the requested timeout clamped to the plan ceiling. Null until the job is dispatched. Clients waiting on a job should bound the wait by this rather than a fixed guess.
	TimeoutMs *int `json:"timeoutMs,omitempty" url:"timeoutMs,omitempty"`
	// Creation timestamp (Unix ms)
	CreatedAt int `json:"createdAt" url:"createdAt"`
	// Dispatch timestamp (Unix ms)
	DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
	// Start timestamp (Unix ms)
	StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
	// Completion timestamp (Unix ms)
	CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
	// CF Worker timestamp when terminal status written (Unix ms)
	SettledAt *int `json:"settledAt,omitempty" url:"settledAt,omitempty"`
	// Unix ms when the stored output files are deleted (completion + plan retention window). Null until the job completes with a stored output. Distinct from output.expiresAt, which is the short-lived download-URL expiry.
	RetentionExpiresAt *int `json:"retentionExpiresAt,omitempty" url:"retentionExpiresAt,omitempty"`
	// Dashboard URL for this job
	WebURL string `json:"webUrl" url:"webUrl"`
	// Resolved generation model id (image.generate / image.edit jobs only), else null
	Model *string `json:"model,omitempty" url:"model,omitempty"`
	// True once the job has ended (complete, failed or cancelled), false while it waits or runs. Stop waiting on this rather than on a list of statuses: it stays right when a status is added.
	Terminal bool            `json:"terminal" url:"terminal"`
	Callback *CallbackStatus `json:"callback,omitempty" url:"callback,omitempty"`
	// Where the output was or will be delivered, one entry per destination given at submit. Detail endpoint only; absent when the job had no destinations.
	Deliveries []*JobDelivery `json:"deliveries,omitempty" url:"deliveries,omitempty"`
	// contains filtered or unexported fields
}

func (*JobWaiting) GetCallback

func (j *JobWaiting) GetCallback() *CallbackStatus

func (*JobWaiting) GetClient

func (j *JobWaiting) GetClient() *string

func (*JobWaiting) GetCompletedAt

func (j *JobWaiting) GetCompletedAt() *int

func (*JobWaiting) GetCost

func (j *JobWaiting) GetCost() *JobCost

func (*JobWaiting) GetCreatedAt

func (j *JobWaiting) GetCreatedAt() int

func (*JobWaiting) GetDeliveries

func (j *JobWaiting) GetDeliveries() []*JobDelivery

func (*JobWaiting) GetDispatchedAt

func (j *JobWaiting) GetDispatchedAt() *int

func (*JobWaiting) GetExtraProperties

func (j *JobWaiting) GetExtraProperties() map[string]interface{}

func (*JobWaiting) GetID

func (j *JobWaiting) GetID() string

func (*JobWaiting) GetIdempotencyKey

func (j *JobWaiting) GetIdempotencyKey() *string

func (*JobWaiting) GetInputs

func (j *JobWaiting) GetInputs() map[string]any

func (*JobWaiting) GetLabel

func (j *JobWaiting) GetLabel() *string

func (*JobWaiting) GetLogsAvailable

func (j *JobWaiting) GetLogsAvailable() bool

func (*JobWaiting) GetMediaType

func (j *JobWaiting) GetMediaType() *string

func (*JobWaiting) GetMetricsAvailable

func (j *JobWaiting) GetMetricsAvailable() *bool

func (*JobWaiting) GetModel

func (j *JobWaiting) GetModel() *string

func (*JobWaiting) GetOrgID

func (j *JobWaiting) GetOrgID() string

func (*JobWaiting) GetOutputCategory

func (j *JobWaiting) GetOutputCategory() JobWaitingOutputCategory

func (*JobWaiting) GetParams

func (j *JobWaiting) GetParams() map[string]any

func (*JobWaiting) GetRegion

func (j *JobWaiting) GetRegion() *string

func (*JobWaiting) GetResourcesAvailable

func (j *JobWaiting) GetResourcesAvailable() bool

func (*JobWaiting) GetRetentionExpiresAt

func (j *JobWaiting) GetRetentionExpiresAt() *int

func (*JobWaiting) GetRetryCount

func (j *JobWaiting) GetRetryCount() int

func (*JobWaiting) GetSettledAt

func (j *JobWaiting) GetSettledAt() *int

func (*JobWaiting) GetSource

func (j *JobWaiting) GetSource() string

func (*JobWaiting) GetStartedAt

func (j *JobWaiting) GetStartedAt() *int

func (*JobWaiting) GetSteps

func (j *JobWaiting) GetSteps() []*JobStep

func (*JobWaiting) GetTerminal

func (j *JobWaiting) GetTerminal() bool

func (*JobWaiting) GetTimeoutMs

func (j *JobWaiting) GetTimeoutMs() *int

func (*JobWaiting) GetType

func (j *JobWaiting) GetType() string

func (*JobWaiting) GetWebURL

func (j *JobWaiting) GetWebURL() string

func (*JobWaiting) MarshalJSON

func (j *JobWaiting) MarshalJSON() ([]byte, error)

func (*JobWaiting) SetCallback

func (j *JobWaiting) SetCallback(callback *CallbackStatus)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetClient

func (j *JobWaiting) SetClient(client *string)

SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetCompletedAt

func (j *JobWaiting) SetCompletedAt(completedAt *int)

SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetCost

func (j *JobWaiting) SetCost(cost *JobCost)

SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetCreatedAt

func (j *JobWaiting) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetDeliveries

func (j *JobWaiting) SetDeliveries(deliveries []*JobDelivery)

SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetDispatchedAt

func (j *JobWaiting) SetDispatchedAt(dispatchedAt *int)

SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetID

func (j *JobWaiting) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetIdempotencyKey

func (j *JobWaiting) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetInputs

func (j *JobWaiting) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetLabel

func (j *JobWaiting) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetLogsAvailable

func (j *JobWaiting) SetLogsAvailable(logsAvailable bool)

SetLogsAvailable sets the LogsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetMediaType

func (j *JobWaiting) SetMediaType(mediaType *string)

SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetMetricsAvailable

func (j *JobWaiting) SetMetricsAvailable(metricsAvailable *bool)

SetMetricsAvailable sets the MetricsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetModel

func (j *JobWaiting) SetModel(model *string)

SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetOrgID

func (j *JobWaiting) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetOutputCategory

func (j *JobWaiting) SetOutputCategory(outputCategory JobWaitingOutputCategory)

SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetParams

func (j *JobWaiting) SetParams(params map[string]any)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetRegion

func (j *JobWaiting) SetRegion(region *string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetResourcesAvailable

func (j *JobWaiting) SetResourcesAvailable(resourcesAvailable bool)

SetResourcesAvailable sets the ResourcesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetRetentionExpiresAt

func (j *JobWaiting) SetRetentionExpiresAt(retentionExpiresAt *int)

SetRetentionExpiresAt sets the RetentionExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetRetryCount

func (j *JobWaiting) SetRetryCount(retryCount int)

SetRetryCount sets the RetryCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetSettledAt

func (j *JobWaiting) SetSettledAt(settledAt *int)

SetSettledAt sets the SettledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetSource

func (j *JobWaiting) SetSource(source string)

SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetStartedAt

func (j *JobWaiting) SetStartedAt(startedAt *int)

SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetSteps

func (j *JobWaiting) SetSteps(steps []*JobStep)

SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetTerminal

func (j *JobWaiting) SetTerminal(terminal bool)

SetTerminal sets the Terminal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetTimeoutMs

func (j *JobWaiting) SetTimeoutMs(timeoutMs *int)

SetTimeoutMs sets the TimeoutMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetType

func (j *JobWaiting) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) SetWebURL

func (j *JobWaiting) SetWebURL(webURL string)

SetWebURL sets the WebURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*JobWaiting) String

func (j *JobWaiting) String() string

func (*JobWaiting) UnmarshalJSON

func (j *JobWaiting) UnmarshalJSON(data []byte) error

type JobWaitingOutputCategory

type JobWaitingOutputCategory string

Output category. Clients should tolerate unknown future values.

const (
	JobWaitingOutputCategoryVideo    JobWaitingOutputCategory = "video"
	JobWaitingOutputCategoryImage    JobWaitingOutputCategory = "image"
	JobWaitingOutputCategoryAudio    JobWaitingOutputCategory = "audio"
	JobWaitingOutputCategoryJSON     JobWaitingOutputCategory = "json"
	JobWaitingOutputCategoryCaptions JobWaitingOutputCategory = "captions"
	JobWaitingOutputCategoryRaw      JobWaitingOutputCategory = "raw"
)

func NewJobWaitingOutputCategoryFromString

func NewJobWaitingOutputCategoryFromString(s string) (JobWaitingOutputCategory, error)

func (JobWaitingOutputCategory) Ptr

type ListJobTypesResponse

type ListJobTypesResponse struct {
	Data []*JobType `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListJobTypesResponse) GetData

func (l *ListJobTypesResponse) GetData() []*JobType

func (*ListJobTypesResponse) GetExtraProperties

func (l *ListJobTypesResponse) GetExtraProperties() map[string]interface{}

func (*ListJobTypesResponse) MarshalJSON

func (l *ListJobTypesResponse) MarshalJSON() ([]byte, error)

func (*ListJobTypesResponse) SetData

func (l *ListJobTypesResponse) SetData(data []*JobType)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobTypesResponse) String

func (l *ListJobTypesResponse) String() string

func (*ListJobTypesResponse) UnmarshalJSON

func (l *ListJobTypesResponse) UnmarshalJSON(data []byte) error

type ListJobsRequest

type ListJobsRequest struct {
	// Filter by job status
	Status *ListJobsRequestStatus `json:"-" url:"status,omitempty"`
	// Filter by job type (e.g., ffmpeg)
	Type *string `json:"-" url:"type,omitempty"`
	// Page size (default 50, max 100)
	Limit *int `json:"-" url:"limit,omitempty"`
	// Pagination offset (default 0)
	Offset *int `json:"-" url:"offset,omitempty"`
	// Sort field (default created)
	Sort *ListJobsRequestSort `json:"-" url:"sort,omitempty"`
	// Sort order (default desc)
	Order *ListJobsRequestOrder `json:"-" url:"order,omitempty"`
	// Filter by originating client
	Client *string `json:"-" url:"client,omitempty"`
	// Created-after (Unix ms)
	From *int `json:"-" url:"from,omitempty"`
	// Created-before (Unix ms)
	To *int `json:"-" url:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*ListJobsRequest) SetClient

func (l *ListJobsRequest) SetClient(client *string)

SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsRequest) SetFrom

func (l *ListJobsRequest) SetFrom(from *int)

SetFrom sets the From field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsRequest) SetLimit

func (l *ListJobsRequest) SetLimit(limit *int)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsRequest) SetOffset

func (l *ListJobsRequest) SetOffset(offset *int)

SetOffset sets the Offset field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsRequest) SetOrder

func (l *ListJobsRequest) SetOrder(order *ListJobsRequestOrder)

SetOrder sets the Order field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsRequest) SetSort

func (l *ListJobsRequest) SetSort(sort *ListJobsRequestSort)

SetSort sets the Sort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsRequest) SetStatus

func (l *ListJobsRequest) SetStatus(status *ListJobsRequestStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsRequest) SetTo

func (l *ListJobsRequest) SetTo(to *int)

SetTo sets the To field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsRequest) SetType

func (l *ListJobsRequest) SetType(type_ *string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListJobsRequestOrder

type ListJobsRequestOrder string

Sort order (default desc)

const (
	ListJobsRequestOrderAsc  ListJobsRequestOrder = "asc"
	ListJobsRequestOrderDesc ListJobsRequestOrder = "desc"
)

func NewListJobsRequestOrderFromString

func NewListJobsRequestOrderFromString(s string) (ListJobsRequestOrder, error)

func (ListJobsRequestOrder) Ptr

type ListJobsRequestSort

type ListJobsRequestSort string

Sort field (default created)

const (
	ListJobsRequestSortCreated  ListJobsRequestSort = "created"
	ListJobsRequestSortDuration ListJobsRequestSort = "duration"
	ListJobsRequestSortCost     ListJobsRequestSort = "cost"
)

func NewListJobsRequestSortFromString

func NewListJobsRequestSortFromString(s string) (ListJobsRequestSort, error)

func (ListJobsRequestSort) Ptr

type ListJobsRequestStatus

type ListJobsRequestStatus string

Filter by job status

const (
	ListJobsRequestStatusWaiting    ListJobsRequestStatus = "waiting"
	ListJobsRequestStatusDispatched ListJobsRequestStatus = "dispatched"
	ListJobsRequestStatusRunning    ListJobsRequestStatus = "running"
	ListJobsRequestStatusComplete   ListJobsRequestStatus = "complete"
	ListJobsRequestStatusFailed     ListJobsRequestStatus = "failed"
	ListJobsRequestStatusCancelled  ListJobsRequestStatus = "cancelled"
)

func NewListJobsRequestStatusFromString

func NewListJobsRequestStatusFromString(s string) (ListJobsRequestStatus, error)

func (ListJobsRequestStatus) Ptr

type ListJobsResponse

type ListJobsResponse struct {
	Data []*Job                `json:"data" url:"data"`
	Meta *ListJobsResponseMeta `json:"meta" url:"meta"`
	// contains filtered or unexported fields
}

func (*ListJobsResponse) GetData

func (l *ListJobsResponse) GetData() []*Job

func (*ListJobsResponse) GetExtraProperties

func (l *ListJobsResponse) GetExtraProperties() map[string]interface{}

func (*ListJobsResponse) GetMeta

func (l *ListJobsResponse) GetMeta() *ListJobsResponseMeta

func (*ListJobsResponse) MarshalJSON

func (l *ListJobsResponse) MarshalJSON() ([]byte, error)

func (*ListJobsResponse) SetData

func (l *ListJobsResponse) SetData(data []*Job)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsResponse) SetMeta

func (l *ListJobsResponse) SetMeta(meta *ListJobsResponseMeta)

SetMeta sets the Meta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsResponse) String

func (l *ListJobsResponse) String() string

func (*ListJobsResponse) UnmarshalJSON

func (l *ListJobsResponse) UnmarshalJSON(data []byte) error

type ListJobsResponseMeta

type ListJobsResponseMeta struct {
	Total int `json:"total" url:"total"`
	Page  int `json:"page" url:"page"`
	Limit int `json:"limit" url:"limit"`
	// contains filtered or unexported fields
}

func (*ListJobsResponseMeta) GetExtraProperties

func (l *ListJobsResponseMeta) GetExtraProperties() map[string]interface{}

func (*ListJobsResponseMeta) GetLimit

func (l *ListJobsResponseMeta) GetLimit() int

func (*ListJobsResponseMeta) GetPage

func (l *ListJobsResponseMeta) GetPage() int

func (*ListJobsResponseMeta) GetTotal

func (l *ListJobsResponseMeta) GetTotal() int

func (*ListJobsResponseMeta) MarshalJSON

func (l *ListJobsResponseMeta) MarshalJSON() ([]byte, error)

func (*ListJobsResponseMeta) SetLimit

func (l *ListJobsResponseMeta) SetLimit(limit int)

SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsResponseMeta) SetPage

func (l *ListJobsResponseMeta) SetPage(page int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsResponseMeta) SetTotal

func (l *ListJobsResponseMeta) SetTotal(total int)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListJobsResponseMeta) String

func (l *ListJobsResponseMeta) String() string

func (*ListJobsResponseMeta) UnmarshalJSON

func (l *ListJobsResponseMeta) UnmarshalJSON(data []byte) error

type NotFoundError

type NotFoundError struct {
	*core.APIError
	Body *ErrorResponse
}

Job type not found or not active

func (*NotFoundError) GetBody

func (n *NotFoundError) GetBody() *ErrorResponse

func (*NotFoundError) MarshalJSON

func (n *NotFoundError) MarshalJSON() ([]byte, error)

func (*NotFoundError) UnmarshalJSON

func (n *NotFoundError) UnmarshalJSON(data []byte) error

func (*NotFoundError) Unwrap

func (n *NotFoundError) Unwrap() error

type OauthScope

type OauthScope string
const (
	// View your jobs and their results
	OauthScopeJobsRead OauthScope = "jobs:read"
	// Run and cancel jobs, which spends credits
	OauthScopeJobsWrite OauthScope = "jobs:write"
	// View and download your files
	OauthScopeAssetsRead OauthScope = "assets:read"
	// Upload and delete files
	OauthScopeAssetsWrite OauthScope = "assets:write"
	// View your webhooks and their deliveries
	OauthScopeWebhooksRead OauthScope = "webhooks:read"
	// Create, change and remove webhooks
	OauthScopeWebhooksWrite OauthScope = "webhooks:write"
	// View your plan, balance and usage
	OauthScopeBillingRead OauthScope = "billing:read"
	// Buy credits and manage payment methods
	OauthScopeBillingWrite OauthScope = "billing:write"
	// View your workspace settings
	OauthScopeOrgsRead OauthScope = "orgs:read"
	// Change your workspace settings
	OauthScopeOrgsWrite OauthScope = "orgs:write"
	// View which API keys exist
	OauthScopeKeysRead OauthScope = "keys:read"
	// Create and revoke API keys
	OauthScopeKeysWrite OauthScope = "keys:write"
	// View your connected storage
	OauthScopeStorageRead OauthScope = "storage:read"
	// Connect, rotate and remove storage
	OauthScopeStorageWrite OauthScope = "storage:write"
	// View your team and its invitations
	OauthScopeTeamRead OauthScope = "team:read"
	// Manage members and invitations
	OauthScopeTeamWrite OauthScope = "team:write"
	// View your workspace
	OauthScopeWorkspaceRead OauthScope = "workspace:read"
	// Change the plan or delete the workspace
	OauthScopeWorkspaceWrite OauthScope = "workspace:write"
)

func NewOauthScopeFromString

func NewOauthScopeFromString(s string) (OauthScope, error)

func (OauthScope) Ptr

func (o OauthScope) Ptr() *OauthScope

type OutputFile

type OutputFile struct {
	// Ready-to-fetch, time-limited URL for this file
	URL string `json:"url" url:"url"`
	// File path within the job output (relative). For an ffmpeg job, the name the command wrote.
	Path string         `json:"path" url:"path"`
	Type OutputFileType `json:"type" url:"type"`
	// File size in bytes
	Size int `json:"size" url:"size"`
	// SHA-256 of the file's bytes, 64 lowercase hex characters. Compare it with your own digest of a download or a delivered copy. Null on jobs completed before 2026-10 (single files) or 2026-10-22 (multi-file outputs).
	Sha256 *string `json:"sha256,omitempty" url:"sha256,omitempty"`
	// Optional per-file media metadata, when known
	Meta *OutputFileMeta `json:"meta,omitempty" url:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*OutputFile) GetExtraProperties

func (o *OutputFile) GetExtraProperties() map[string]interface{}

func (*OutputFile) GetMeta

func (o *OutputFile) GetMeta() *OutputFileMeta

func (*OutputFile) GetPath

func (o *OutputFile) GetPath() string

func (*OutputFile) GetSha256

func (o *OutputFile) GetSha256() *string

func (*OutputFile) GetSize

func (o *OutputFile) GetSize() int

func (*OutputFile) GetType

func (o *OutputFile) GetType() OutputFileType

func (*OutputFile) GetURL

func (o *OutputFile) GetURL() string

func (*OutputFile) MarshalJSON

func (o *OutputFile) MarshalJSON() ([]byte, error)

func (*OutputFile) SetMeta

func (o *OutputFile) SetMeta(meta *OutputFileMeta)

SetMeta sets the Meta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*OutputFile) SetPath

func (o *OutputFile) SetPath(path string)

SetPath sets the Path field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*OutputFile) SetSha256

func (o *OutputFile) SetSha256(sha256 *string)

SetSha256 sets the Sha256 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*OutputFile) SetSize

func (o *OutputFile) SetSize(size int)

SetSize sets the Size field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*OutputFile) SetType

func (o *OutputFile) SetType(type_ OutputFileType)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*OutputFile) SetURL

func (o *OutputFile) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*OutputFile) String

func (o *OutputFile) String() string

func (*OutputFile) UnmarshalJSON

func (o *OutputFile) UnmarshalJSON(data []byte) error

type OutputFileMeta

type OutputFileMeta struct {
	// Container/codec format (from extension)
	Format     *string `json:"format,omitempty" url:"format,omitempty"`
	Width      *int    `json:"width,omitempty" url:"width,omitempty"`
	Height     *int    `json:"height,omitempty" url:"height,omitempty"`
	DurationMs *int    `json:"durationMs,omitempty" url:"durationMs,omitempty"`
	// Seed used, for reproducible generation
	Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
	// contains filtered or unexported fields
}

Optional per-file media metadata, when known

func (*OutputFileMeta) GetDurationMs

func (o *OutputFileMeta) GetDurationMs() *int

func (*OutputFileMeta) GetExtraProperties

func (o *OutputFileMeta) GetExtraProperties() map[string]interface{}

func (*OutputFileMeta) GetFormat

func (o *OutputFileMeta) GetFormat() *string

func (*OutputFileMeta) GetHeight

func (o *OutputFileMeta) GetHeight() *int

func (*OutputFileMeta) GetSeed

func (o *OutputFileMeta) GetSeed() *int

func (*OutputFileMeta) GetWidth

func (o *OutputFileMeta) GetWidth() *int

func (*OutputFileMeta) MarshalJSON

func (o *OutputFileMeta) MarshalJSON() ([]byte, error)

func (*OutputFileMeta) SetDurationMs

func (o *OutputFileMeta) SetDurationMs(durationMs *int)

SetDurationMs sets the DurationMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*OutputFileMeta) SetFormat

func (o *OutputFileMeta) SetFormat(format *string)

SetFormat sets the Format field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*OutputFileMeta) SetHeight

func (o *OutputFileMeta) SetHeight(height *int)

SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*OutputFileMeta) SetSeed

func (o *OutputFileMeta) SetSeed(seed *int)

SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*OutputFileMeta) SetWidth

func (o *OutputFileMeta) SetWidth(width *int)

SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*OutputFileMeta) String

func (o *OutputFileMeta) String() string

func (*OutputFileMeta) UnmarshalJSON

func (o *OutputFileMeta) UnmarshalJSON(data []byte) error

type OutputFileType

type OutputFileType string

File type, derived from the extension. OPEN enum — tolerate unknown future values.

const (
	OutputFileTypeVideo    OutputFileType = "video"
	OutputFileTypeImage    OutputFileType = "image"
	OutputFileTypeAudio    OutputFileType = "audio"
	OutputFileTypeCaptions OutputFileType = "captions"
	OutputFileTypePlaylist OutputFileType = "playlist"
	OutputFileTypeData     OutputFileType = "data"
	OutputFileTypeOther    OutputFileType = "other"
)

func NewOutputFileTypeFromString

func NewOutputFileTypeFromString(s string) (OutputFileType, error)

func (OutputFileType) Ptr

func (o OutputFileType) Ptr() *OutputFileType

type PaymentRequiredError

type PaymentRequiredError struct {
	*core.APIError
	Body *ErrorResponse
}

Insufficient credits

func (*PaymentRequiredError) GetBody

func (p *PaymentRequiredError) GetBody() *ErrorResponse

func (*PaymentRequiredError) MarshalJSON

func (p *PaymentRequiredError) MarshalJSON() ([]byte, error)

func (*PaymentRequiredError) UnmarshalJSON

func (p *PaymentRequiredError) UnmarshalJSON(data []byte) error

func (*PaymentRequiredError) Unwrap

func (p *PaymentRequiredError) Unwrap() error

type SettledDelivery

type SettledDelivery struct {
	// The storage connection id
	StorageID string                `json:"storageId" url:"storageId"`
	Status    SettledDeliveryStatus `json:"status" url:"status"`
	// Object key in the bucket, rendered from the template. A multi-file output is a folder, and its path ends in /
	Path *string `json:"path,omitempty" url:"path,omitempty"`
	// Where to fetch it: the public base URL when set, else our files route. Absent for a folder
	URL    *string                `json:"url,omitempty" url:"url,omitempty"`
	Reason *SettledDeliveryReason `json:"reason,omitempty" url:"reason,omitempty"`
	// The name was taken, so the job's tail was appended to free it
	Renamed *bool `json:"renamed,omitempty" url:"renamed,omitempty"`
	// contains filtered or unexported fields
}

func (*SettledDelivery) GetExtraProperties

func (s *SettledDelivery) GetExtraProperties() map[string]interface{}

func (*SettledDelivery) GetPath

func (s *SettledDelivery) GetPath() *string

func (*SettledDelivery) GetReason

func (s *SettledDelivery) GetReason() *SettledDeliveryReason

func (*SettledDelivery) GetRenamed

func (s *SettledDelivery) GetRenamed() *bool

func (*SettledDelivery) GetStatus

func (s *SettledDelivery) GetStatus() SettledDeliveryStatus

func (*SettledDelivery) GetStorageID

func (s *SettledDelivery) GetStorageID() string

func (*SettledDelivery) GetURL

func (s *SettledDelivery) GetURL() *string

func (*SettledDelivery) MarshalJSON

func (s *SettledDelivery) MarshalJSON() ([]byte, error)

func (*SettledDelivery) SetPath

func (s *SettledDelivery) SetPath(path *string)

SetPath sets the Path field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SettledDelivery) SetReason

func (s *SettledDelivery) SetReason(reason *SettledDeliveryReason)

SetReason sets the Reason field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SettledDelivery) SetRenamed

func (s *SettledDelivery) SetRenamed(renamed *bool)

SetRenamed sets the Renamed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SettledDelivery) SetStatus

func (s *SettledDelivery) SetStatus(status SettledDeliveryStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SettledDelivery) SetStorageID

func (s *SettledDelivery) SetStorageID(storageID string)

SetStorageID sets the StorageID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SettledDelivery) SetURL

func (s *SettledDelivery) SetURL(url *string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SettledDelivery) String

func (s *SettledDelivery) String() string

func (*SettledDelivery) UnmarshalJSON

func (s *SettledDelivery) UnmarshalJSON(data []byte) error

type SettledDeliveryReason

type SettledDeliveryReason string
const (
	SettledDeliveryReasonDestinationDenied      SettledDeliveryReason = "destination_denied"
	SettledDeliveryReasonSignatureMismatch      SettledDeliveryReason = "signature_mismatch"
	SettledDeliveryReasonBucketNotFound         SettledDeliveryReason = "bucket_not_found"
	SettledDeliveryReasonObjectTooLarge         SettledDeliveryReason = "object_too_large"
	SettledDeliveryReasonAlreadyExists          SettledDeliveryReason = "already_exists"
	SettledDeliveryReasonDestinationUnavailable SettledDeliveryReason = "destination_unavailable"
	SettledDeliveryReasonNotDeliverable         SettledDeliveryReason = "not_deliverable"
)

func NewSettledDeliveryReasonFromString

func NewSettledDeliveryReasonFromString(s string) (SettledDeliveryReason, error)

func (SettledDeliveryReason) Ptr

type SettledDeliveryStatus

type SettledDeliveryStatus string
const (
	SettledDeliveryStatusDelivered SettledDeliveryStatus = "delivered"
	SettledDeliveryStatusFailed    SettledDeliveryStatus = "failed"
)

func NewSettledDeliveryStatusFromString

func NewSettledDeliveryStatusFromString(s string) (SettledDeliveryStatus, error)

func (SettledDeliveryStatus) Ptr

type SubmitAnyJob

type SubmitAnyJob struct {
	// Job type identifier, such as ffmpeg, ffprobe or compose. GET /jobs/types lists every live type.
	Type string `json:"type" url:"type"`
	// Input files (e.g., { source: 'https://...' })
	Inputs map[string]any `json:"inputs,omitempty" url:"inputs,omitempty"`
	// Job-specific parameters (validated per job type)
	Params map[string]any `json:"params,omitempty" url:"params,omitempty"`
	// Force async dispatch even for sync-eligible job types
	ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
	// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
	Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
	// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
	Callback *SubmitAnyJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
	// contains filtered or unexported fields
}

Submit any job type, including one newer than your SDK and compose. `params` is validated per type: read GET /jobs/types/{type}/schema for the fields.

func (*SubmitAnyJob) GetCallback

func (s *SubmitAnyJob) GetCallback() *SubmitAnyJobCallback

func (*SubmitAnyJob) GetDestinations

func (s *SubmitAnyJob) GetDestinations() []string

func (*SubmitAnyJob) GetExtraProperties

func (s *SubmitAnyJob) GetExtraProperties() map[string]interface{}

func (*SubmitAnyJob) GetForceAsync

func (s *SubmitAnyJob) GetForceAsync() *bool

func (*SubmitAnyJob) GetIdempotencyKey

func (s *SubmitAnyJob) GetIdempotencyKey() *string

func (*SubmitAnyJob) GetInputs

func (s *SubmitAnyJob) GetInputs() map[string]any

func (*SubmitAnyJob) GetLabel

func (s *SubmitAnyJob) GetLabel() *string

func (*SubmitAnyJob) GetParams

func (s *SubmitAnyJob) GetParams() map[string]any

func (*SubmitAnyJob) GetType

func (s *SubmitAnyJob) GetType() string

func (*SubmitAnyJob) MarshalJSON

func (s *SubmitAnyJob) MarshalJSON() ([]byte, error)

func (*SubmitAnyJob) SetCallback

func (s *SubmitAnyJob) SetCallback(callback *SubmitAnyJobCallback)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitAnyJob) SetDestinations

func (s *SubmitAnyJob) SetDestinations(destinations []string)

SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitAnyJob) SetForceAsync

func (s *SubmitAnyJob) SetForceAsync(forceAsync *bool)

SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitAnyJob) SetIdempotencyKey

func (s *SubmitAnyJob) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitAnyJob) SetInputs

func (s *SubmitAnyJob) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitAnyJob) SetLabel

func (s *SubmitAnyJob) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitAnyJob) SetParams

func (s *SubmitAnyJob) SetParams(params map[string]any)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitAnyJob) SetType

func (s *SubmitAnyJob) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitAnyJob) String

func (s *SubmitAnyJob) String() string

func (*SubmitAnyJob) UnmarshalJSON

func (s *SubmitAnyJob) UnmarshalJSON(data []byte) error

type SubmitAnyJobCallback

type SubmitAnyJobCallback struct {
	// HTTPS URL Rendobar POSTs the job result to on a terminal state
	URL string `json:"url" url:"url"`
	// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
	Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
	// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
	Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
	// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
	Events []SubmitAnyJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
	// contains filtered or unexported fields
}

Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.

func (*SubmitAnyJobCallback) GetEvents

func (*SubmitAnyJobCallback) GetExtraProperties

func (s *SubmitAnyJobCallback) GetExtraProperties() map[string]interface{}

func (*SubmitAnyJobCallback) GetHeaders

func (s *SubmitAnyJobCallback) GetHeaders() map[string]string

func (*SubmitAnyJobCallback) GetURL

func (s *SubmitAnyJobCallback) GetURL() string

func (*SubmitAnyJobCallback) GetVerify

func (s *SubmitAnyJobCallback) GetVerify() *bool

func (*SubmitAnyJobCallback) MarshalJSON

func (s *SubmitAnyJobCallback) MarshalJSON() ([]byte, error)

func (*SubmitAnyJobCallback) SetEvents

SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitAnyJobCallback) SetHeaders

func (s *SubmitAnyJobCallback) SetHeaders(headers map[string]string)

SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitAnyJobCallback) SetURL

func (s *SubmitAnyJobCallback) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitAnyJobCallback) SetVerify

func (s *SubmitAnyJobCallback) SetVerify(verify *bool)

SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitAnyJobCallback) String

func (s *SubmitAnyJobCallback) String() string

func (*SubmitAnyJobCallback) UnmarshalJSON

func (s *SubmitAnyJobCallback) UnmarshalJSON(data []byte) error

type SubmitAnyJobCallbackEventsItem

type SubmitAnyJobCallbackEventsItem string
const (
	SubmitAnyJobCallbackEventsItemJobStarted SubmitAnyJobCallbackEventsItem = "job.started"
)

func NewSubmitAnyJobCallbackEventsItemFromString

func NewSubmitAnyJobCallbackEventsItemFromString(s string) (SubmitAnyJobCallbackEventsItem, error)

func (SubmitAnyJobCallbackEventsItem) Ptr

type SubmitCaptionBurnJob

type SubmitCaptionBurnJob struct {
	// Job type
	Type SubmitCaptionBurnJobType `json:"type" url:"type"`
	// Input files (e.g., { source: 'https://...' })
	Inputs map[string]any     `json:"inputs,omitempty" url:"inputs,omitempty"`
	Params *CaptionBurnParams `json:"params" url:"params"`
	// Force async dispatch even for sync-eligible job types
	ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
	// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
	Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
	// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
	Callback *SubmitCaptionBurnJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
	// contains filtered or unexported fields
}

Submit a caption.burn job.

func (*SubmitCaptionBurnJob) GetCallback

func (*SubmitCaptionBurnJob) GetDestinations

func (s *SubmitCaptionBurnJob) GetDestinations() []string

func (*SubmitCaptionBurnJob) GetExtraProperties

func (s *SubmitCaptionBurnJob) GetExtraProperties() map[string]interface{}

func (*SubmitCaptionBurnJob) GetForceAsync

func (s *SubmitCaptionBurnJob) GetForceAsync() *bool

func (*SubmitCaptionBurnJob) GetIdempotencyKey

func (s *SubmitCaptionBurnJob) GetIdempotencyKey() *string

func (*SubmitCaptionBurnJob) GetInputs

func (s *SubmitCaptionBurnJob) GetInputs() map[string]any

func (*SubmitCaptionBurnJob) GetLabel

func (s *SubmitCaptionBurnJob) GetLabel() *string

func (*SubmitCaptionBurnJob) GetParams

func (s *SubmitCaptionBurnJob) GetParams() *CaptionBurnParams

func (*SubmitCaptionBurnJob) GetType

func (*SubmitCaptionBurnJob) MarshalJSON

func (s *SubmitCaptionBurnJob) MarshalJSON() ([]byte, error)

func (*SubmitCaptionBurnJob) SetCallback

func (s *SubmitCaptionBurnJob) SetCallback(callback *SubmitCaptionBurnJobCallback)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionBurnJob) SetDestinations

func (s *SubmitCaptionBurnJob) SetDestinations(destinations []string)

SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionBurnJob) SetForceAsync

func (s *SubmitCaptionBurnJob) SetForceAsync(forceAsync *bool)

SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionBurnJob) SetIdempotencyKey

func (s *SubmitCaptionBurnJob) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionBurnJob) SetInputs

func (s *SubmitCaptionBurnJob) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionBurnJob) SetLabel

func (s *SubmitCaptionBurnJob) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionBurnJob) SetParams

func (s *SubmitCaptionBurnJob) SetParams(params *CaptionBurnParams)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionBurnJob) SetType

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionBurnJob) String

func (s *SubmitCaptionBurnJob) String() string

func (*SubmitCaptionBurnJob) UnmarshalJSON

func (s *SubmitCaptionBurnJob) UnmarshalJSON(data []byte) error

type SubmitCaptionBurnJobCallback

type SubmitCaptionBurnJobCallback struct {
	// HTTPS URL Rendobar POSTs the job result to on a terminal state
	URL string `json:"url" url:"url"`
	// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
	Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
	// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
	Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
	// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
	Events []SubmitCaptionBurnJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
	// contains filtered or unexported fields
}

Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.

func (*SubmitCaptionBurnJobCallback) GetEvents

func (*SubmitCaptionBurnJobCallback) GetExtraProperties

func (s *SubmitCaptionBurnJobCallback) GetExtraProperties() map[string]interface{}

func (*SubmitCaptionBurnJobCallback) GetHeaders

func (s *SubmitCaptionBurnJobCallback) GetHeaders() map[string]string

func (*SubmitCaptionBurnJobCallback) GetURL

func (*SubmitCaptionBurnJobCallback) GetVerify

func (s *SubmitCaptionBurnJobCallback) GetVerify() *bool

func (*SubmitCaptionBurnJobCallback) MarshalJSON

func (s *SubmitCaptionBurnJobCallback) MarshalJSON() ([]byte, error)

func (*SubmitCaptionBurnJobCallback) SetEvents

SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionBurnJobCallback) SetHeaders

func (s *SubmitCaptionBurnJobCallback) SetHeaders(headers map[string]string)

SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionBurnJobCallback) SetURL

func (s *SubmitCaptionBurnJobCallback) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionBurnJobCallback) SetVerify

func (s *SubmitCaptionBurnJobCallback) SetVerify(verify *bool)

SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionBurnJobCallback) String

func (*SubmitCaptionBurnJobCallback) UnmarshalJSON

func (s *SubmitCaptionBurnJobCallback) UnmarshalJSON(data []byte) error

type SubmitCaptionBurnJobCallbackEventsItem

type SubmitCaptionBurnJobCallbackEventsItem string
const (
	SubmitCaptionBurnJobCallbackEventsItemJobStarted SubmitCaptionBurnJobCallbackEventsItem = "job.started"
)

func NewSubmitCaptionBurnJobCallbackEventsItemFromString

func NewSubmitCaptionBurnJobCallbackEventsItemFromString(s string) (SubmitCaptionBurnJobCallbackEventsItem, error)

func (SubmitCaptionBurnJobCallbackEventsItem) Ptr

type SubmitCaptionBurnJobType

type SubmitCaptionBurnJobType string

Job type

const (
	SubmitCaptionBurnJobTypeCaptionBurn SubmitCaptionBurnJobType = "caption.burn"
)

func NewSubmitCaptionBurnJobTypeFromString

func NewSubmitCaptionBurnJobTypeFromString(s string) (SubmitCaptionBurnJobType, error)

func (SubmitCaptionBurnJobType) Ptr

type SubmitCaptionsAnimateJob

type SubmitCaptionsAnimateJob struct {
	// Job type
	Type SubmitCaptionsAnimateJobType `json:"type" url:"type"`
	// Input files (e.g., { source: 'https://...' })
	Inputs map[string]any         `json:"inputs,omitempty" url:"inputs,omitempty"`
	Params *CaptionsAnimateParams `json:"params" url:"params"`
	// Force async dispatch even for sync-eligible job types
	ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
	// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
	Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
	// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
	Callback *SubmitCaptionsAnimateJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
	// contains filtered or unexported fields
}

Submit a captions.animate job.

func (*SubmitCaptionsAnimateJob) GetCallback

func (*SubmitCaptionsAnimateJob) GetDestinations

func (s *SubmitCaptionsAnimateJob) GetDestinations() []string

func (*SubmitCaptionsAnimateJob) GetExtraProperties

func (s *SubmitCaptionsAnimateJob) GetExtraProperties() map[string]interface{}

func (*SubmitCaptionsAnimateJob) GetForceAsync

func (s *SubmitCaptionsAnimateJob) GetForceAsync() *bool

func (*SubmitCaptionsAnimateJob) GetIdempotencyKey

func (s *SubmitCaptionsAnimateJob) GetIdempotencyKey() *string

func (*SubmitCaptionsAnimateJob) GetInputs

func (s *SubmitCaptionsAnimateJob) GetInputs() map[string]any

func (*SubmitCaptionsAnimateJob) GetLabel

func (s *SubmitCaptionsAnimateJob) GetLabel() *string

func (*SubmitCaptionsAnimateJob) GetParams

func (*SubmitCaptionsAnimateJob) GetType

func (*SubmitCaptionsAnimateJob) MarshalJSON

func (s *SubmitCaptionsAnimateJob) MarshalJSON() ([]byte, error)

func (*SubmitCaptionsAnimateJob) SetCallback

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionsAnimateJob) SetDestinations

func (s *SubmitCaptionsAnimateJob) SetDestinations(destinations []string)

SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionsAnimateJob) SetForceAsync

func (s *SubmitCaptionsAnimateJob) SetForceAsync(forceAsync *bool)

SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionsAnimateJob) SetIdempotencyKey

func (s *SubmitCaptionsAnimateJob) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionsAnimateJob) SetInputs

func (s *SubmitCaptionsAnimateJob) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionsAnimateJob) SetLabel

func (s *SubmitCaptionsAnimateJob) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionsAnimateJob) SetParams

func (s *SubmitCaptionsAnimateJob) SetParams(params *CaptionsAnimateParams)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionsAnimateJob) SetType

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionsAnimateJob) String

func (s *SubmitCaptionsAnimateJob) String() string

func (*SubmitCaptionsAnimateJob) UnmarshalJSON

func (s *SubmitCaptionsAnimateJob) UnmarshalJSON(data []byte) error

type SubmitCaptionsAnimateJobCallback

type SubmitCaptionsAnimateJobCallback struct {
	// HTTPS URL Rendobar POSTs the job result to on a terminal state
	URL string `json:"url" url:"url"`
	// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
	Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
	// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
	Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
	// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
	Events []SubmitCaptionsAnimateJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
	// contains filtered or unexported fields
}

Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.

func (*SubmitCaptionsAnimateJobCallback) GetEvents

func (*SubmitCaptionsAnimateJobCallback) GetExtraProperties

func (s *SubmitCaptionsAnimateJobCallback) GetExtraProperties() map[string]interface{}

func (*SubmitCaptionsAnimateJobCallback) GetHeaders

func (s *SubmitCaptionsAnimateJobCallback) GetHeaders() map[string]string

func (*SubmitCaptionsAnimateJobCallback) GetURL

func (*SubmitCaptionsAnimateJobCallback) GetVerify

func (s *SubmitCaptionsAnimateJobCallback) GetVerify() *bool

func (*SubmitCaptionsAnimateJobCallback) MarshalJSON

func (s *SubmitCaptionsAnimateJobCallback) MarshalJSON() ([]byte, error)

func (*SubmitCaptionsAnimateJobCallback) SetEvents

SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionsAnimateJobCallback) SetHeaders

func (s *SubmitCaptionsAnimateJobCallback) SetHeaders(headers map[string]string)

SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionsAnimateJobCallback) SetURL

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionsAnimateJobCallback) SetVerify

func (s *SubmitCaptionsAnimateJobCallback) SetVerify(verify *bool)

SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCaptionsAnimateJobCallback) String

func (*SubmitCaptionsAnimateJobCallback) UnmarshalJSON

func (s *SubmitCaptionsAnimateJobCallback) UnmarshalJSON(data []byte) error

type SubmitCaptionsAnimateJobCallbackEventsItem

type SubmitCaptionsAnimateJobCallbackEventsItem string
const (
	SubmitCaptionsAnimateJobCallbackEventsItemJobStarted SubmitCaptionsAnimateJobCallbackEventsItem = "job.started"
)

func NewSubmitCaptionsAnimateJobCallbackEventsItemFromString

func NewSubmitCaptionsAnimateJobCallbackEventsItemFromString(s string) (SubmitCaptionsAnimateJobCallbackEventsItem, error)

func (SubmitCaptionsAnimateJobCallbackEventsItem) Ptr

type SubmitCaptionsAnimateJobType

type SubmitCaptionsAnimateJobType string

Job type

const (
	SubmitCaptionsAnimateJobTypeCaptionsAnimate SubmitCaptionsAnimateJobType = "captions.animate"
)

func NewSubmitCaptionsAnimateJobTypeFromString

func NewSubmitCaptionsAnimateJobTypeFromString(s string) (SubmitCaptionsAnimateJobType, error)

func (SubmitCaptionsAnimateJobType) Ptr

type SubmitCompressTargetJob

type SubmitCompressTargetJob struct {
	// Job type
	Type SubmitCompressTargetJobType `json:"type" url:"type"`
	// Input files (e.g., { source: 'https://...' })
	Inputs map[string]any        `json:"inputs,omitempty" url:"inputs,omitempty"`
	Params *CompressTargetParams `json:"params" url:"params"`
	// Force async dispatch even for sync-eligible job types
	ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
	// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
	Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
	// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
	Callback *SubmitCompressTargetJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
	// contains filtered or unexported fields
}

Submit a compress.target job.

func (*SubmitCompressTargetJob) GetCallback

func (*SubmitCompressTargetJob) GetDestinations

func (s *SubmitCompressTargetJob) GetDestinations() []string

func (*SubmitCompressTargetJob) GetExtraProperties

func (s *SubmitCompressTargetJob) GetExtraProperties() map[string]interface{}

func (*SubmitCompressTargetJob) GetForceAsync

func (s *SubmitCompressTargetJob) GetForceAsync() *bool

func (*SubmitCompressTargetJob) GetIdempotencyKey

func (s *SubmitCompressTargetJob) GetIdempotencyKey() *string

func (*SubmitCompressTargetJob) GetInputs

func (s *SubmitCompressTargetJob) GetInputs() map[string]any

func (*SubmitCompressTargetJob) GetLabel

func (s *SubmitCompressTargetJob) GetLabel() *string

func (*SubmitCompressTargetJob) GetParams

func (*SubmitCompressTargetJob) GetType

func (*SubmitCompressTargetJob) MarshalJSON

func (s *SubmitCompressTargetJob) MarshalJSON() ([]byte, error)

func (*SubmitCompressTargetJob) SetCallback

func (s *SubmitCompressTargetJob) SetCallback(callback *SubmitCompressTargetJobCallback)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCompressTargetJob) SetDestinations

func (s *SubmitCompressTargetJob) SetDestinations(destinations []string)

SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCompressTargetJob) SetForceAsync

func (s *SubmitCompressTargetJob) SetForceAsync(forceAsync *bool)

SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCompressTargetJob) SetIdempotencyKey

func (s *SubmitCompressTargetJob) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCompressTargetJob) SetInputs

func (s *SubmitCompressTargetJob) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCompressTargetJob) SetLabel

func (s *SubmitCompressTargetJob) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCompressTargetJob) SetParams

func (s *SubmitCompressTargetJob) SetParams(params *CompressTargetParams)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCompressTargetJob) SetType

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCompressTargetJob) String

func (s *SubmitCompressTargetJob) String() string

func (*SubmitCompressTargetJob) UnmarshalJSON

func (s *SubmitCompressTargetJob) UnmarshalJSON(data []byte) error

type SubmitCompressTargetJobCallback

type SubmitCompressTargetJobCallback struct {
	// HTTPS URL Rendobar POSTs the job result to on a terminal state
	URL string `json:"url" url:"url"`
	// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
	Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
	// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
	Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
	// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
	Events []SubmitCompressTargetJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
	// contains filtered or unexported fields
}

Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.

func (*SubmitCompressTargetJobCallback) GetEvents

func (*SubmitCompressTargetJobCallback) GetExtraProperties

func (s *SubmitCompressTargetJobCallback) GetExtraProperties() map[string]interface{}

func (*SubmitCompressTargetJobCallback) GetHeaders

func (s *SubmitCompressTargetJobCallback) GetHeaders() map[string]string

func (*SubmitCompressTargetJobCallback) GetURL

func (*SubmitCompressTargetJobCallback) GetVerify

func (s *SubmitCompressTargetJobCallback) GetVerify() *bool

func (*SubmitCompressTargetJobCallback) MarshalJSON

func (s *SubmitCompressTargetJobCallback) MarshalJSON() ([]byte, error)

func (*SubmitCompressTargetJobCallback) SetEvents

SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCompressTargetJobCallback) SetHeaders

func (s *SubmitCompressTargetJobCallback) SetHeaders(headers map[string]string)

SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCompressTargetJobCallback) SetURL

func (s *SubmitCompressTargetJobCallback) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCompressTargetJobCallback) SetVerify

func (s *SubmitCompressTargetJobCallback) SetVerify(verify *bool)

SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitCompressTargetJobCallback) String

func (*SubmitCompressTargetJobCallback) UnmarshalJSON

func (s *SubmitCompressTargetJobCallback) UnmarshalJSON(data []byte) error

type SubmitCompressTargetJobCallbackEventsItem

type SubmitCompressTargetJobCallbackEventsItem string
const (
	SubmitCompressTargetJobCallbackEventsItemJobStarted SubmitCompressTargetJobCallbackEventsItem = "job.started"
)

func NewSubmitCompressTargetJobCallbackEventsItemFromString

func NewSubmitCompressTargetJobCallbackEventsItemFromString(s string) (SubmitCompressTargetJobCallbackEventsItem, error)

func (SubmitCompressTargetJobCallbackEventsItem) Ptr

type SubmitCompressTargetJobType

type SubmitCompressTargetJobType string

Job type

const (
	SubmitCompressTargetJobTypeCompressTarget SubmitCompressTargetJobType = "compress.target"
)

func NewSubmitCompressTargetJobTypeFromString

func NewSubmitCompressTargetJobTypeFromString(s string) (SubmitCompressTargetJobType, error)

func (SubmitCompressTargetJobType) Ptr

type SubmitFfmpegJob

type SubmitFfmpegJob struct {
	// Job type
	Type SubmitFfmpegJobType `json:"type" url:"type"`
	// Input files (e.g., { source: 'https://...' })
	Inputs map[string]any `json:"inputs,omitempty" url:"inputs,omitempty"`
	Params *FfmpegParams  `json:"params" url:"params"`
	// Force async dispatch even for sync-eligible job types
	ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
	// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
	Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
	// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
	Callback *SubmitFfmpegJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
	// contains filtered or unexported fields
}

Submit a ffmpeg job.

func (*SubmitFfmpegJob) GetCallback

func (s *SubmitFfmpegJob) GetCallback() *SubmitFfmpegJobCallback

func (*SubmitFfmpegJob) GetDestinations

func (s *SubmitFfmpegJob) GetDestinations() []string

func (*SubmitFfmpegJob) GetExtraProperties

func (s *SubmitFfmpegJob) GetExtraProperties() map[string]interface{}

func (*SubmitFfmpegJob) GetForceAsync

func (s *SubmitFfmpegJob) GetForceAsync() *bool

func (*SubmitFfmpegJob) GetIdempotencyKey

func (s *SubmitFfmpegJob) GetIdempotencyKey() *string

func (*SubmitFfmpegJob) GetInputs

func (s *SubmitFfmpegJob) GetInputs() map[string]any

func (*SubmitFfmpegJob) GetLabel

func (s *SubmitFfmpegJob) GetLabel() *string

func (*SubmitFfmpegJob) GetParams

func (s *SubmitFfmpegJob) GetParams() *FfmpegParams

func (*SubmitFfmpegJob) GetType

func (s *SubmitFfmpegJob) GetType() SubmitFfmpegJobType

func (*SubmitFfmpegJob) MarshalJSON

func (s *SubmitFfmpegJob) MarshalJSON() ([]byte, error)

func (*SubmitFfmpegJob) SetCallback

func (s *SubmitFfmpegJob) SetCallback(callback *SubmitFfmpegJobCallback)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfmpegJob) SetDestinations

func (s *SubmitFfmpegJob) SetDestinations(destinations []string)

SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfmpegJob) SetForceAsync

func (s *SubmitFfmpegJob) SetForceAsync(forceAsync *bool)

SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfmpegJob) SetIdempotencyKey

func (s *SubmitFfmpegJob) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfmpegJob) SetInputs

func (s *SubmitFfmpegJob) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfmpegJob) SetLabel

func (s *SubmitFfmpegJob) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfmpegJob) SetParams

func (s *SubmitFfmpegJob) SetParams(params *FfmpegParams)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfmpegJob) SetType

func (s *SubmitFfmpegJob) SetType(type_ SubmitFfmpegJobType)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfmpegJob) String

func (s *SubmitFfmpegJob) String() string

func (*SubmitFfmpegJob) UnmarshalJSON

func (s *SubmitFfmpegJob) UnmarshalJSON(data []byte) error

type SubmitFfmpegJobCallback

type SubmitFfmpegJobCallback struct {
	// HTTPS URL Rendobar POSTs the job result to on a terminal state
	URL string `json:"url" url:"url"`
	// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
	Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
	// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
	Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
	// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
	Events []SubmitFfmpegJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
	// contains filtered or unexported fields
}

Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.

func (*SubmitFfmpegJobCallback) GetEvents

func (*SubmitFfmpegJobCallback) GetExtraProperties

func (s *SubmitFfmpegJobCallback) GetExtraProperties() map[string]interface{}

func (*SubmitFfmpegJobCallback) GetHeaders

func (s *SubmitFfmpegJobCallback) GetHeaders() map[string]string

func (*SubmitFfmpegJobCallback) GetURL

func (s *SubmitFfmpegJobCallback) GetURL() string

func (*SubmitFfmpegJobCallback) GetVerify

func (s *SubmitFfmpegJobCallback) GetVerify() *bool

func (*SubmitFfmpegJobCallback) MarshalJSON

func (s *SubmitFfmpegJobCallback) MarshalJSON() ([]byte, error)

func (*SubmitFfmpegJobCallback) SetEvents

SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfmpegJobCallback) SetHeaders

func (s *SubmitFfmpegJobCallback) SetHeaders(headers map[string]string)

SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfmpegJobCallback) SetURL

func (s *SubmitFfmpegJobCallback) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfmpegJobCallback) SetVerify

func (s *SubmitFfmpegJobCallback) SetVerify(verify *bool)

SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfmpegJobCallback) String

func (s *SubmitFfmpegJobCallback) String() string

func (*SubmitFfmpegJobCallback) UnmarshalJSON

func (s *SubmitFfmpegJobCallback) UnmarshalJSON(data []byte) error

type SubmitFfmpegJobCallbackEventsItem

type SubmitFfmpegJobCallbackEventsItem string
const (
	SubmitFfmpegJobCallbackEventsItemJobStarted SubmitFfmpegJobCallbackEventsItem = "job.started"
)

func NewSubmitFfmpegJobCallbackEventsItemFromString

func NewSubmitFfmpegJobCallbackEventsItemFromString(s string) (SubmitFfmpegJobCallbackEventsItem, error)

func (SubmitFfmpegJobCallbackEventsItem) Ptr

type SubmitFfmpegJobType

type SubmitFfmpegJobType string

Job type

const (
	SubmitFfmpegJobTypeFfmpeg SubmitFfmpegJobType = "ffmpeg"
)

func NewSubmitFfmpegJobTypeFromString

func NewSubmitFfmpegJobTypeFromString(s string) (SubmitFfmpegJobType, error)

func (SubmitFfmpegJobType) Ptr

type SubmitFfprobeJob

type SubmitFfprobeJob struct {
	// Job type
	Type SubmitFfprobeJobType `json:"type" url:"type"`
	// Input files (e.g., { source: 'https://...' })
	Inputs map[string]any `json:"inputs,omitempty" url:"inputs,omitempty"`
	Params *FfprobeParams `json:"params" url:"params"`
	// Force async dispatch even for sync-eligible job types
	ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
	// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
	Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
	// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
	Callback *SubmitFfprobeJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
	// contains filtered or unexported fields
}

Submit a ffprobe job.

func (*SubmitFfprobeJob) GetCallback

func (s *SubmitFfprobeJob) GetCallback() *SubmitFfprobeJobCallback

func (*SubmitFfprobeJob) GetDestinations

func (s *SubmitFfprobeJob) GetDestinations() []string

func (*SubmitFfprobeJob) GetExtraProperties

func (s *SubmitFfprobeJob) GetExtraProperties() map[string]interface{}

func (*SubmitFfprobeJob) GetForceAsync

func (s *SubmitFfprobeJob) GetForceAsync() *bool

func (*SubmitFfprobeJob) GetIdempotencyKey

func (s *SubmitFfprobeJob) GetIdempotencyKey() *string

func (*SubmitFfprobeJob) GetInputs

func (s *SubmitFfprobeJob) GetInputs() map[string]any

func (*SubmitFfprobeJob) GetLabel

func (s *SubmitFfprobeJob) GetLabel() *string

func (*SubmitFfprobeJob) GetParams

func (s *SubmitFfprobeJob) GetParams() *FfprobeParams

func (*SubmitFfprobeJob) GetType

func (*SubmitFfprobeJob) MarshalJSON

func (s *SubmitFfprobeJob) MarshalJSON() ([]byte, error)

func (*SubmitFfprobeJob) SetCallback

func (s *SubmitFfprobeJob) SetCallback(callback *SubmitFfprobeJobCallback)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfprobeJob) SetDestinations

func (s *SubmitFfprobeJob) SetDestinations(destinations []string)

SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfprobeJob) SetForceAsync

func (s *SubmitFfprobeJob) SetForceAsync(forceAsync *bool)

SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfprobeJob) SetIdempotencyKey

func (s *SubmitFfprobeJob) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfprobeJob) SetInputs

func (s *SubmitFfprobeJob) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfprobeJob) SetLabel

func (s *SubmitFfprobeJob) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfprobeJob) SetParams

func (s *SubmitFfprobeJob) SetParams(params *FfprobeParams)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfprobeJob) SetType

func (s *SubmitFfprobeJob) SetType(type_ SubmitFfprobeJobType)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfprobeJob) String

func (s *SubmitFfprobeJob) String() string

func (*SubmitFfprobeJob) UnmarshalJSON

func (s *SubmitFfprobeJob) UnmarshalJSON(data []byte) error

type SubmitFfprobeJobCallback

type SubmitFfprobeJobCallback struct {
	// HTTPS URL Rendobar POSTs the job result to on a terminal state
	URL string `json:"url" url:"url"`
	// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
	Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
	// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
	Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
	// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
	Events []SubmitFfprobeJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
	// contains filtered or unexported fields
}

Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.

func (*SubmitFfprobeJobCallback) GetEvents

func (*SubmitFfprobeJobCallback) GetExtraProperties

func (s *SubmitFfprobeJobCallback) GetExtraProperties() map[string]interface{}

func (*SubmitFfprobeJobCallback) GetHeaders

func (s *SubmitFfprobeJobCallback) GetHeaders() map[string]string

func (*SubmitFfprobeJobCallback) GetURL

func (s *SubmitFfprobeJobCallback) GetURL() string

func (*SubmitFfprobeJobCallback) GetVerify

func (s *SubmitFfprobeJobCallback) GetVerify() *bool

func (*SubmitFfprobeJobCallback) MarshalJSON

func (s *SubmitFfprobeJobCallback) MarshalJSON() ([]byte, error)

func (*SubmitFfprobeJobCallback) SetEvents

SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfprobeJobCallback) SetHeaders

func (s *SubmitFfprobeJobCallback) SetHeaders(headers map[string]string)

SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfprobeJobCallback) SetURL

func (s *SubmitFfprobeJobCallback) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfprobeJobCallback) SetVerify

func (s *SubmitFfprobeJobCallback) SetVerify(verify *bool)

SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitFfprobeJobCallback) String

func (s *SubmitFfprobeJobCallback) String() string

func (*SubmitFfprobeJobCallback) UnmarshalJSON

func (s *SubmitFfprobeJobCallback) UnmarshalJSON(data []byte) error

type SubmitFfprobeJobCallbackEventsItem

type SubmitFfprobeJobCallbackEventsItem string
const (
	SubmitFfprobeJobCallbackEventsItemJobStarted SubmitFfprobeJobCallbackEventsItem = "job.started"
)

func NewSubmitFfprobeJobCallbackEventsItemFromString

func NewSubmitFfprobeJobCallbackEventsItemFromString(s string) (SubmitFfprobeJobCallbackEventsItem, error)

func (SubmitFfprobeJobCallbackEventsItem) Ptr

type SubmitFfprobeJobType

type SubmitFfprobeJobType string

Job type

const (
	SubmitFfprobeJobTypeFfprobe SubmitFfprobeJobType = "ffprobe"
)

func NewSubmitFfprobeJobTypeFromString

func NewSubmitFfprobeJobTypeFromString(s string) (SubmitFfprobeJobType, error)

func (SubmitFfprobeJobType) Ptr

type SubmitImageEditJob

type SubmitImageEditJob struct {
	// Job type
	Type SubmitImageEditJobType `json:"type" url:"type"`
	// Input files (e.g., { source: 'https://...' })
	Inputs map[string]any   `json:"inputs,omitempty" url:"inputs,omitempty"`
	Params *ImageEditParams `json:"params" url:"params"`
	// Force async dispatch even for sync-eligible job types
	ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
	// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
	Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
	// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
	Callback *SubmitImageEditJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
	// contains filtered or unexported fields
}

Submit a image.edit job.

func (*SubmitImageEditJob) GetCallback

func (*SubmitImageEditJob) GetDestinations

func (s *SubmitImageEditJob) GetDestinations() []string

func (*SubmitImageEditJob) GetExtraProperties

func (s *SubmitImageEditJob) GetExtraProperties() map[string]interface{}

func (*SubmitImageEditJob) GetForceAsync

func (s *SubmitImageEditJob) GetForceAsync() *bool

func (*SubmitImageEditJob) GetIdempotencyKey

func (s *SubmitImageEditJob) GetIdempotencyKey() *string

func (*SubmitImageEditJob) GetInputs

func (s *SubmitImageEditJob) GetInputs() map[string]any

func (*SubmitImageEditJob) GetLabel

func (s *SubmitImageEditJob) GetLabel() *string

func (*SubmitImageEditJob) GetParams

func (s *SubmitImageEditJob) GetParams() *ImageEditParams

func (*SubmitImageEditJob) GetType

func (*SubmitImageEditJob) MarshalJSON

func (s *SubmitImageEditJob) MarshalJSON() ([]byte, error)

func (*SubmitImageEditJob) SetCallback

func (s *SubmitImageEditJob) SetCallback(callback *SubmitImageEditJobCallback)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageEditJob) SetDestinations

func (s *SubmitImageEditJob) SetDestinations(destinations []string)

SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageEditJob) SetForceAsync

func (s *SubmitImageEditJob) SetForceAsync(forceAsync *bool)

SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageEditJob) SetIdempotencyKey

func (s *SubmitImageEditJob) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageEditJob) SetInputs

func (s *SubmitImageEditJob) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageEditJob) SetLabel

func (s *SubmitImageEditJob) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageEditJob) SetParams

func (s *SubmitImageEditJob) SetParams(params *ImageEditParams)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageEditJob) SetType

func (s *SubmitImageEditJob) SetType(type_ SubmitImageEditJobType)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageEditJob) String

func (s *SubmitImageEditJob) String() string

func (*SubmitImageEditJob) UnmarshalJSON

func (s *SubmitImageEditJob) UnmarshalJSON(data []byte) error

type SubmitImageEditJobCallback

type SubmitImageEditJobCallback struct {
	// HTTPS URL Rendobar POSTs the job result to on a terminal state
	URL string `json:"url" url:"url"`
	// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
	Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
	// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
	Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
	// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
	Events []SubmitImageEditJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
	// contains filtered or unexported fields
}

Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.

func (*SubmitImageEditJobCallback) GetEvents

func (*SubmitImageEditJobCallback) GetExtraProperties

func (s *SubmitImageEditJobCallback) GetExtraProperties() map[string]interface{}

func (*SubmitImageEditJobCallback) GetHeaders

func (s *SubmitImageEditJobCallback) GetHeaders() map[string]string

func (*SubmitImageEditJobCallback) GetURL

func (s *SubmitImageEditJobCallback) GetURL() string

func (*SubmitImageEditJobCallback) GetVerify

func (s *SubmitImageEditJobCallback) GetVerify() *bool

func (*SubmitImageEditJobCallback) MarshalJSON

func (s *SubmitImageEditJobCallback) MarshalJSON() ([]byte, error)

func (*SubmitImageEditJobCallback) SetEvents

SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageEditJobCallback) SetHeaders

func (s *SubmitImageEditJobCallback) SetHeaders(headers map[string]string)

SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageEditJobCallback) SetURL

func (s *SubmitImageEditJobCallback) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageEditJobCallback) SetVerify

func (s *SubmitImageEditJobCallback) SetVerify(verify *bool)

SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageEditJobCallback) String

func (s *SubmitImageEditJobCallback) String() string

func (*SubmitImageEditJobCallback) UnmarshalJSON

func (s *SubmitImageEditJobCallback) UnmarshalJSON(data []byte) error

type SubmitImageEditJobCallbackEventsItem

type SubmitImageEditJobCallbackEventsItem string
const (
	SubmitImageEditJobCallbackEventsItemJobStarted SubmitImageEditJobCallbackEventsItem = "job.started"
)

func NewSubmitImageEditJobCallbackEventsItemFromString

func NewSubmitImageEditJobCallbackEventsItemFromString(s string) (SubmitImageEditJobCallbackEventsItem, error)

func (SubmitImageEditJobCallbackEventsItem) Ptr

type SubmitImageEditJobType

type SubmitImageEditJobType string

Job type

const (
	SubmitImageEditJobTypeImageEdit SubmitImageEditJobType = "image.edit"
)

func NewSubmitImageEditJobTypeFromString

func NewSubmitImageEditJobTypeFromString(s string) (SubmitImageEditJobType, error)

func (SubmitImageEditJobType) Ptr

type SubmitImageGenerateJob

type SubmitImageGenerateJob struct {
	// Job type
	Type SubmitImageGenerateJobType `json:"type" url:"type"`
	// Input files (e.g., { source: 'https://...' })
	Inputs map[string]any       `json:"inputs,omitempty" url:"inputs,omitempty"`
	Params *ImageGenerateParams `json:"params" url:"params"`
	// Force async dispatch even for sync-eligible job types
	ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
	// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
	Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
	// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
	Callback *SubmitImageGenerateJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
	// contains filtered or unexported fields
}

Submit a image.generate job.

func (*SubmitImageGenerateJob) GetCallback

func (*SubmitImageGenerateJob) GetDestinations

func (s *SubmitImageGenerateJob) GetDestinations() []string

func (*SubmitImageGenerateJob) GetExtraProperties

func (s *SubmitImageGenerateJob) GetExtraProperties() map[string]interface{}

func (*SubmitImageGenerateJob) GetForceAsync

func (s *SubmitImageGenerateJob) GetForceAsync() *bool

func (*SubmitImageGenerateJob) GetIdempotencyKey

func (s *SubmitImageGenerateJob) GetIdempotencyKey() *string

func (*SubmitImageGenerateJob) GetInputs

func (s *SubmitImageGenerateJob) GetInputs() map[string]any

func (*SubmitImageGenerateJob) GetLabel

func (s *SubmitImageGenerateJob) GetLabel() *string

func (*SubmitImageGenerateJob) GetParams

func (*SubmitImageGenerateJob) GetType

func (*SubmitImageGenerateJob) MarshalJSON

func (s *SubmitImageGenerateJob) MarshalJSON() ([]byte, error)

func (*SubmitImageGenerateJob) SetCallback

func (s *SubmitImageGenerateJob) SetCallback(callback *SubmitImageGenerateJobCallback)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageGenerateJob) SetDestinations

func (s *SubmitImageGenerateJob) SetDestinations(destinations []string)

SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageGenerateJob) SetForceAsync

func (s *SubmitImageGenerateJob) SetForceAsync(forceAsync *bool)

SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageGenerateJob) SetIdempotencyKey

func (s *SubmitImageGenerateJob) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageGenerateJob) SetInputs

func (s *SubmitImageGenerateJob) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageGenerateJob) SetLabel

func (s *SubmitImageGenerateJob) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageGenerateJob) SetParams

func (s *SubmitImageGenerateJob) SetParams(params *ImageGenerateParams)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageGenerateJob) SetType

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageGenerateJob) String

func (s *SubmitImageGenerateJob) String() string

func (*SubmitImageGenerateJob) UnmarshalJSON

func (s *SubmitImageGenerateJob) UnmarshalJSON(data []byte) error

type SubmitImageGenerateJobCallback

type SubmitImageGenerateJobCallback struct {
	// HTTPS URL Rendobar POSTs the job result to on a terminal state
	URL string `json:"url" url:"url"`
	// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
	Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
	// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
	Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
	// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
	Events []SubmitImageGenerateJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
	// contains filtered or unexported fields
}

Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.

func (*SubmitImageGenerateJobCallback) GetEvents

func (*SubmitImageGenerateJobCallback) GetExtraProperties

func (s *SubmitImageGenerateJobCallback) GetExtraProperties() map[string]interface{}

func (*SubmitImageGenerateJobCallback) GetHeaders

func (s *SubmitImageGenerateJobCallback) GetHeaders() map[string]string

func (*SubmitImageGenerateJobCallback) GetURL

func (*SubmitImageGenerateJobCallback) GetVerify

func (s *SubmitImageGenerateJobCallback) GetVerify() *bool

func (*SubmitImageGenerateJobCallback) MarshalJSON

func (s *SubmitImageGenerateJobCallback) MarshalJSON() ([]byte, error)

func (*SubmitImageGenerateJobCallback) SetEvents

SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageGenerateJobCallback) SetHeaders

func (s *SubmitImageGenerateJobCallback) SetHeaders(headers map[string]string)

SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageGenerateJobCallback) SetURL

func (s *SubmitImageGenerateJobCallback) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageGenerateJobCallback) SetVerify

func (s *SubmitImageGenerateJobCallback) SetVerify(verify *bool)

SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageGenerateJobCallback) String

func (*SubmitImageGenerateJobCallback) UnmarshalJSON

func (s *SubmitImageGenerateJobCallback) UnmarshalJSON(data []byte) error

type SubmitImageGenerateJobCallbackEventsItem

type SubmitImageGenerateJobCallbackEventsItem string
const (
	SubmitImageGenerateJobCallbackEventsItemJobStarted SubmitImageGenerateJobCallbackEventsItem = "job.started"
)

func NewSubmitImageGenerateJobCallbackEventsItemFromString

func NewSubmitImageGenerateJobCallbackEventsItemFromString(s string) (SubmitImageGenerateJobCallbackEventsItem, error)

func (SubmitImageGenerateJobCallbackEventsItem) Ptr

type SubmitImageGenerateJobType

type SubmitImageGenerateJobType string

Job type

const (
	SubmitImageGenerateJobTypeImageGenerate SubmitImageGenerateJobType = "image.generate"
)

func NewSubmitImageGenerateJobTypeFromString

func NewSubmitImageGenerateJobTypeFromString(s string) (SubmitImageGenerateJobType, error)

func (SubmitImageGenerateJobType) Ptr

type SubmitImageUpscaleJob

type SubmitImageUpscaleJob struct {
	// Job type
	Type SubmitImageUpscaleJobType `json:"type" url:"type"`
	// Input files (e.g., { source: 'https://...' })
	Inputs map[string]any      `json:"inputs,omitempty" url:"inputs,omitempty"`
	Params *ImageUpscaleParams `json:"params" url:"params"`
	// Force async dispatch even for sync-eligible job types
	ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
	// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
	IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
	// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
	Label *string `json:"label,omitempty" url:"label,omitempty"`
	// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
	Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
	// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
	Callback *SubmitImageUpscaleJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
	// contains filtered or unexported fields
}

Submit a image.upscale job.

func (*SubmitImageUpscaleJob) GetCallback

func (*SubmitImageUpscaleJob) GetDestinations

func (s *SubmitImageUpscaleJob) GetDestinations() []string

func (*SubmitImageUpscaleJob) GetExtraProperties

func (s *SubmitImageUpscaleJob) GetExtraProperties() map[string]interface{}

func (*SubmitImageUpscaleJob) GetForceAsync

func (s *SubmitImageUpscaleJob) GetForceAsync() *bool

func (*SubmitImageUpscaleJob) GetIdempotencyKey

func (s *SubmitImageUpscaleJob) GetIdempotencyKey() *string

func (*SubmitImageUpscaleJob) GetInputs

func (s *SubmitImageUpscaleJob) GetInputs() map[string]any

func (*SubmitImageUpscaleJob) GetLabel

func (s *SubmitImageUpscaleJob) GetLabel() *string

func (*SubmitImageUpscaleJob) GetParams

func (s *SubmitImageUpscaleJob) GetParams() *ImageUpscaleParams

func (*SubmitImageUpscaleJob) GetType

func (*SubmitImageUpscaleJob) MarshalJSON

func (s *SubmitImageUpscaleJob) MarshalJSON() ([]byte, error)

func (*SubmitImageUpscaleJob) SetCallback

func (s *SubmitImageUpscaleJob) SetCallback(callback *SubmitImageUpscaleJobCallback)

SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageUpscaleJob) SetDestinations

func (s *SubmitImageUpscaleJob) SetDestinations(destinations []string)

SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageUpscaleJob) SetForceAsync

func (s *SubmitImageUpscaleJob) SetForceAsync(forceAsync *bool)

SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageUpscaleJob) SetIdempotencyKey

func (s *SubmitImageUpscaleJob) SetIdempotencyKey(idempotencyKey *string)

SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageUpscaleJob) SetInputs

func (s *SubmitImageUpscaleJob) SetInputs(inputs map[string]any)

SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageUpscaleJob) SetLabel

func (s *SubmitImageUpscaleJob) SetLabel(label *string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageUpscaleJob) SetParams

func (s *SubmitImageUpscaleJob) SetParams(params *ImageUpscaleParams)

SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageUpscaleJob) SetType

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageUpscaleJob) String

func (s *SubmitImageUpscaleJob) String() string

func (*SubmitImageUpscaleJob) UnmarshalJSON

func (s *SubmitImageUpscaleJob) UnmarshalJSON(data []byte) error

type SubmitImageUpscaleJobCallback

type SubmitImageUpscaleJobCallback struct {
	// HTTPS URL Rendobar POSTs the job result to on a terminal state
	URL string `json:"url" url:"url"`
	// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
	Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
	// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
	Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
	// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
	Events []SubmitImageUpscaleJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
	// contains filtered or unexported fields
}

Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.

func (*SubmitImageUpscaleJobCallback) GetEvents

func (*SubmitImageUpscaleJobCallback) GetExtraProperties

func (s *SubmitImageUpscaleJobCallback) GetExtraProperties() map[string]interface{}

func (*SubmitImageUpscaleJobCallback) GetHeaders

func (s *SubmitImageUpscaleJobCallback) GetHeaders() map[string]string

func (*SubmitImageUpscaleJobCallback) GetURL

func (*SubmitImageUpscaleJobCallback) GetVerify

func (s *SubmitImageUpscaleJobCallback) GetVerify() *bool

func (*SubmitImageUpscaleJobCallback) MarshalJSON

func (s *SubmitImageUpscaleJobCallback) MarshalJSON() ([]byte, error)

func (*SubmitImageUpscaleJobCallback) SetEvents

SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageUpscaleJobCallback) SetHeaders

func (s *SubmitImageUpscaleJobCallback) SetHeaders(headers map[string]string)

SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageUpscaleJobCallback) SetURL

func (s *SubmitImageUpscaleJobCallback) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageUpscaleJobCallback) SetVerify

func (s *SubmitImageUpscaleJobCallback) SetVerify(verify *bool)

SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitImageUpscaleJobCallback) String

func (*SubmitImageUpscaleJobCallback) UnmarshalJSON

func (s *SubmitImageUpscaleJobCallback) UnmarshalJSON(data []byte) error

type SubmitImageUpscaleJobCallbackEventsItem

type SubmitImageUpscaleJobCallbackEventsItem string
const (
	SubmitImageUpscaleJobCallbackEventsItemJobStarted SubmitImageUpscaleJobCallbackEventsItem = "job.started"
)

func NewSubmitImageUpscaleJobCallbackEventsItemFromString

func NewSubmitImageUpscaleJobCallbackEventsItemFromString(s string) (SubmitImageUpscaleJobCallbackEventsItem, error)

func (SubmitImageUpscaleJobCallbackEventsItem) Ptr

type SubmitImageUpscaleJobType

type SubmitImageUpscaleJobType string

Job type

const (
	SubmitImageUpscaleJobTypeImageUpscale SubmitImageUpscaleJobType = "image.upscale"
)

func NewSubmitImageUpscaleJobTypeFromString

func NewSubmitImageUpscaleJobTypeFromString(s string) (SubmitImageUpscaleJobType, error)

func (SubmitImageUpscaleJobType) Ptr

type SubmitJobRequest

type SubmitJobRequest struct {
	SubmitCaptionBurnJob     *SubmitCaptionBurnJob
	SubmitCaptionsAnimateJob *SubmitCaptionsAnimateJob
	SubmitCompressTargetJob  *SubmitCompressTargetJob
	SubmitFfmpegJob          *SubmitFfmpegJob
	SubmitFfprobeJob         *SubmitFfprobeJob
	SubmitImageEditJob       *SubmitImageEditJob
	SubmitImageGenerateJob   *SubmitImageGenerateJob
	SubmitImageUpscaleJob    *SubmitImageUpscaleJob
	SubmitAnyJob             *SubmitAnyJob
	// contains filtered or unexported fields
}

func (*SubmitJobRequest) Accept

func (s *SubmitJobRequest) Accept(visitor SubmitJobRequestVisitor) error

func (*SubmitJobRequest) GetSubmitAnyJob

func (s *SubmitJobRequest) GetSubmitAnyJob() *SubmitAnyJob

func (*SubmitJobRequest) GetSubmitCaptionBurnJob

func (s *SubmitJobRequest) GetSubmitCaptionBurnJob() *SubmitCaptionBurnJob

func (*SubmitJobRequest) GetSubmitCaptionsAnimateJob

func (s *SubmitJobRequest) GetSubmitCaptionsAnimateJob() *SubmitCaptionsAnimateJob

func (*SubmitJobRequest) GetSubmitCompressTargetJob

func (s *SubmitJobRequest) GetSubmitCompressTargetJob() *SubmitCompressTargetJob

func (*SubmitJobRequest) GetSubmitFfmpegJob

func (s *SubmitJobRequest) GetSubmitFfmpegJob() *SubmitFfmpegJob

func (*SubmitJobRequest) GetSubmitFfprobeJob

func (s *SubmitJobRequest) GetSubmitFfprobeJob() *SubmitFfprobeJob

func (*SubmitJobRequest) GetSubmitImageEditJob

func (s *SubmitJobRequest) GetSubmitImageEditJob() *SubmitImageEditJob

func (*SubmitJobRequest) GetSubmitImageGenerateJob

func (s *SubmitJobRequest) GetSubmitImageGenerateJob() *SubmitImageGenerateJob

func (*SubmitJobRequest) GetSubmitImageUpscaleJob

func (s *SubmitJobRequest) GetSubmitImageUpscaleJob() *SubmitImageUpscaleJob

func (SubmitJobRequest) MarshalJSON

func (s SubmitJobRequest) MarshalJSON() ([]byte, error)

func (*SubmitJobRequest) UnmarshalJSON

func (s *SubmitJobRequest) UnmarshalJSON(data []byte) error

type SubmitJobRequestVisitor

type SubmitJobRequestVisitor interface {
	VisitSubmitCaptionBurnJob(*SubmitCaptionBurnJob) error
	VisitSubmitCaptionsAnimateJob(*SubmitCaptionsAnimateJob) error
	VisitSubmitCompressTargetJob(*SubmitCompressTargetJob) error
	VisitSubmitFfmpegJob(*SubmitFfmpegJob) error
	VisitSubmitFfprobeJob(*SubmitFfprobeJob) error
	VisitSubmitImageEditJob(*SubmitImageEditJob) error
	VisitSubmitImageGenerateJob(*SubmitImageGenerateJob) error
	VisitSubmitImageUpscaleJob(*SubmitImageUpscaleJob) error
	VisitSubmitAnyJob(*SubmitAnyJob) error
}

type SubmitJobResponse

type SubmitJobResponse struct {
	Data *SubmitJobResponseData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*SubmitJobResponse) GetData

func (*SubmitJobResponse) GetExtraProperties

func (s *SubmitJobResponse) GetExtraProperties() map[string]interface{}

func (*SubmitJobResponse) MarshalJSON

func (s *SubmitJobResponse) MarshalJSON() ([]byte, error)

func (*SubmitJobResponse) SetData

func (s *SubmitJobResponse) SetData(data *SubmitJobResponseData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SubmitJobResponse) String

func (s *SubmitJobResponse) String() string

func (*SubmitJobResponse) UnmarshalJSON

func (s *SubmitJobResponse) UnmarshalJSON(data []byte) error

type SubmitJobResponseData

type SubmitJobResponseData struct {
	JobCompletedOnSubmit *JobCompletedOnSubmit
	JobReplayed          *JobReplayed
	// contains filtered or unexported fields
}

func (*SubmitJobResponseData) Accept

func (*SubmitJobResponseData) GetJobCompletedOnSubmit

func (s *SubmitJobResponseData) GetJobCompletedOnSubmit() *JobCompletedOnSubmit

func (*SubmitJobResponseData) GetJobReplayed

func (s *SubmitJobResponseData) GetJobReplayed() *JobReplayed

func (SubmitJobResponseData) MarshalJSON

func (s SubmitJobResponseData) MarshalJSON() ([]byte, error)

func (*SubmitJobResponseData) UnmarshalJSON

func (s *SubmitJobResponseData) UnmarshalJSON(data []byte) error

type SubmitJobResponseDataVisitor

type SubmitJobResponseDataVisitor interface {
	VisitJobCompletedOnSubmit(*JobCompletedOnSubmit) error
	VisitJobReplayed(*JobReplayed) error
}

type TestEventData

type TestEventData struct {
	Message    string `json:"message" url:"message"`
	EndpointID string `json:"endpointId" url:"endpointId"`
	// contains filtered or unexported fields
}

func (*TestEventData) GetEndpointID

func (t *TestEventData) GetEndpointID() string

func (*TestEventData) GetExtraProperties

func (t *TestEventData) GetExtraProperties() map[string]interface{}

func (*TestEventData) GetMessage

func (t *TestEventData) GetMessage() string

func (*TestEventData) MarshalJSON

func (t *TestEventData) MarshalJSON() ([]byte, error)

func (*TestEventData) SetEndpointID

func (t *TestEventData) SetEndpointID(endpointID string)

SetEndpointID sets the EndpointID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TestEventData) SetMessage

func (t *TestEventData) SetMessage(message string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TestEventData) String

func (t *TestEventData) String() string

func (*TestEventData) UnmarshalJSON

func (t *TestEventData) UnmarshalJSON(data []byte) error

type TestWebhookEvent

type TestWebhookEvent struct {
	// Envelope version. A new version is a new shape
	Version TestWebhookEventVersion `json:"version" url:"version"`
	// Unique per delivery. Retries of one delivery share it
	DeliveryID string `json:"deliveryId" url:"deliveryId"`
	// When the event happened (Unix ms)
	Timestamp int            `json:"timestamp" url:"timestamp"`
	OrgID     string         `json:"orgId" url:"orgId"`
	Data      *TestEventData `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*TestWebhookEvent) GetData

func (t *TestWebhookEvent) GetData() *TestEventData

func (*TestWebhookEvent) GetDeliveryID

func (t *TestWebhookEvent) GetDeliveryID() string

func (*TestWebhookEvent) GetExtraProperties

func (t *TestWebhookEvent) GetExtraProperties() map[string]interface{}

func (*TestWebhookEvent) GetOrgID

func (t *TestWebhookEvent) GetOrgID() string

func (*TestWebhookEvent) GetTimestamp

func (t *TestWebhookEvent) GetTimestamp() int

func (*TestWebhookEvent) GetVersion

func (t *TestWebhookEvent) GetVersion() TestWebhookEventVersion

func (*TestWebhookEvent) MarshalJSON

func (t *TestWebhookEvent) MarshalJSON() ([]byte, error)

func (*TestWebhookEvent) SetData

func (t *TestWebhookEvent) SetData(data *TestEventData)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TestWebhookEvent) SetDeliveryID

func (t *TestWebhookEvent) SetDeliveryID(deliveryID string)

SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TestWebhookEvent) SetOrgID

func (t *TestWebhookEvent) SetOrgID(orgID string)

SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TestWebhookEvent) SetTimestamp

func (t *TestWebhookEvent) SetTimestamp(timestamp int)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TestWebhookEvent) SetVersion

func (t *TestWebhookEvent) SetVersion(version TestWebhookEventVersion)

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TestWebhookEvent) String

func (t *TestWebhookEvent) String() string

func (*TestWebhookEvent) UnmarshalJSON

func (t *TestWebhookEvent) UnmarshalJSON(data []byte) error

type TestWebhookEventVersion

type TestWebhookEventVersion string

Envelope version. A new version is a new shape

const (
	TestWebhookEventVersionV1 TestWebhookEventVersion = "1"
)

func NewTestWebhookEventVersionFromString

func NewTestWebhookEventVersionFromString(s string) (TestWebhookEventVersion, error)

func (TestWebhookEventVersion) Ptr

type TooManyRequestsError

type TooManyRequestsError struct {
	*core.APIError
	Body *ErrorResponse
}

Rate limited

func (*TooManyRequestsError) GetBody

func (t *TooManyRequestsError) GetBody() *ErrorResponse

func (*TooManyRequestsError) MarshalJSON

func (t *TooManyRequestsError) MarshalJSON() ([]byte, error)

func (*TooManyRequestsError) UnmarshalJSON

func (t *TooManyRequestsError) UnmarshalJSON(data []byte) error

func (*TooManyRequestsError) Unwrap

func (t *TooManyRequestsError) Unwrap() error

type UnauthorizedError

type UnauthorizedError struct {
	*core.APIError
	Body *ErrorResponse
}

Unauthorized

func (*UnauthorizedError) GetBody

func (u *UnauthorizedError) GetBody() *ErrorResponse

func (*UnauthorizedError) MarshalJSON

func (u *UnauthorizedError) MarshalJSON() ([]byte, error)

func (*UnauthorizedError) UnmarshalJSON

func (u *UnauthorizedError) UnmarshalJSON(data []byte) error

func (*UnauthorizedError) Unwrap

func (u *UnauthorizedError) Unwrap() error

type WebhookEndpoint

type WebhookEndpoint struct {
	ID   string `json:"id" url:"id"`
	Name string `json:"name" url:"name"`
	URL  string `json:"url" url:"url"`
	// Masked signing secret
	SigningSecret       string   `json:"signingSecret" url:"signingSecret"`
	Active              bool     `json:"active" url:"active"`
	DisabledReason      *string  `json:"disabledReason,omitempty" url:"disabledReason,omitempty"`
	ConsecutiveFailures int      `json:"consecutiveFailures" url:"consecutiveFailures"`
	SubscribedEvents    []string `json:"subscribedEvents" url:"subscribedEvents"`
	RotationActive      bool     `json:"rotationActive" url:"rotationActive"`
	SecretExpiresAt     *int     `json:"secretExpiresAt,omitempty" url:"secretExpiresAt,omitempty"`
	CreatedAt           int      `json:"createdAt" url:"createdAt"`
	UpdatedAt           int      `json:"updatedAt" url:"updatedAt"`
	// contains filtered or unexported fields
}

func (*WebhookEndpoint) GetActive

func (w *WebhookEndpoint) GetActive() bool

func (*WebhookEndpoint) GetConsecutiveFailures

func (w *WebhookEndpoint) GetConsecutiveFailures() int

func (*WebhookEndpoint) GetCreatedAt

func (w *WebhookEndpoint) GetCreatedAt() int

func (*WebhookEndpoint) GetDisabledReason

func (w *WebhookEndpoint) GetDisabledReason() *string

func (*WebhookEndpoint) GetExtraProperties

func (w *WebhookEndpoint) GetExtraProperties() map[string]interface{}

func (*WebhookEndpoint) GetID

func (w *WebhookEndpoint) GetID() string

func (*WebhookEndpoint) GetName

func (w *WebhookEndpoint) GetName() string

func (*WebhookEndpoint) GetRotationActive

func (w *WebhookEndpoint) GetRotationActive() bool

func (*WebhookEndpoint) GetSecretExpiresAt

func (w *WebhookEndpoint) GetSecretExpiresAt() *int

func (*WebhookEndpoint) GetSigningSecret

func (w *WebhookEndpoint) GetSigningSecret() string

func (*WebhookEndpoint) GetSubscribedEvents

func (w *WebhookEndpoint) GetSubscribedEvents() []string

func (*WebhookEndpoint) GetURL

func (w *WebhookEndpoint) GetURL() string

func (*WebhookEndpoint) GetUpdatedAt

func (w *WebhookEndpoint) GetUpdatedAt() int

func (*WebhookEndpoint) MarshalJSON

func (w *WebhookEndpoint) MarshalJSON() ([]byte, error)

func (*WebhookEndpoint) SetActive

func (w *WebhookEndpoint) SetActive(active bool)

SetActive sets the Active field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookEndpoint) SetConsecutiveFailures

func (w *WebhookEndpoint) SetConsecutiveFailures(consecutiveFailures int)

SetConsecutiveFailures sets the ConsecutiveFailures field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookEndpoint) SetCreatedAt

func (w *WebhookEndpoint) SetCreatedAt(createdAt int)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookEndpoint) SetDisabledReason

func (w *WebhookEndpoint) SetDisabledReason(disabledReason *string)

SetDisabledReason sets the DisabledReason field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookEndpoint) SetID

func (w *WebhookEndpoint) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookEndpoint) SetName

func (w *WebhookEndpoint) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookEndpoint) SetRotationActive

func (w *WebhookEndpoint) SetRotationActive(rotationActive bool)

SetRotationActive sets the RotationActive field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookEndpoint) SetSecretExpiresAt

func (w *WebhookEndpoint) SetSecretExpiresAt(secretExpiresAt *int)

SetSecretExpiresAt sets the SecretExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookEndpoint) SetSigningSecret

func (w *WebhookEndpoint) SetSigningSecret(signingSecret string)

SetSigningSecret sets the SigningSecret field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookEndpoint) SetSubscribedEvents

func (w *WebhookEndpoint) SetSubscribedEvents(subscribedEvents []string)

SetSubscribedEvents sets the SubscribedEvents field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookEndpoint) SetURL

func (w *WebhookEndpoint) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookEndpoint) SetUpdatedAt

func (w *WebhookEndpoint) SetUpdatedAt(updatedAt int)

SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookEndpoint) String

func (w *WebhookEndpoint) String() string

func (*WebhookEndpoint) UnmarshalJSON

func (w *WebhookEndpoint) UnmarshalJSON(data []byte) error

type WebhookJobCost

type WebhookJobCost struct {
	Amount    int                    `json:"amount" url:"amount"`
	Currency  WebhookJobCostCurrency `json:"currency" url:"currency"`
	Formatted string                 `json:"formatted" url:"formatted"`
	Breakdown string                 `json:"breakdown" url:"breakdown"`
	// contains filtered or unexported fields
}

func (*WebhookJobCost) GetAmount

func (w *WebhookJobCost) GetAmount() int

func (*WebhookJobCost) GetBreakdown

func (w *WebhookJobCost) GetBreakdown() string

func (*WebhookJobCost) GetCurrency

func (w *WebhookJobCost) GetCurrency() WebhookJobCostCurrency

func (*WebhookJobCost) GetExtraProperties

func (w *WebhookJobCost) GetExtraProperties() map[string]interface{}

func (*WebhookJobCost) GetFormatted

func (w *WebhookJobCost) GetFormatted() string

func (*WebhookJobCost) MarshalJSON

func (w *WebhookJobCost) MarshalJSON() ([]byte, error)

func (*WebhookJobCost) SetAmount

func (w *WebhookJobCost) SetAmount(amount int)

SetAmount sets the Amount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookJobCost) SetBreakdown

func (w *WebhookJobCost) SetBreakdown(breakdown string)

SetBreakdown sets the Breakdown field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookJobCost) SetCurrency

func (w *WebhookJobCost) SetCurrency(currency WebhookJobCostCurrency)

SetCurrency sets the Currency field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookJobCost) SetFormatted

func (w *WebhookJobCost) SetFormatted(formatted string)

SetFormatted sets the Formatted field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookJobCost) String

func (w *WebhookJobCost) String() string

func (*WebhookJobCost) UnmarshalJSON

func (w *WebhookJobCost) UnmarshalJSON(data []byte) error

type WebhookJobCostCurrency

type WebhookJobCostCurrency string
const (
	WebhookJobCostCurrencyUsd WebhookJobCostCurrency = "USD"
)

func NewWebhookJobCostCurrencyFromString

func NewWebhookJobCostCurrencyFromString(s string) (WebhookJobCostCurrency, error)

func (WebhookJobCostCurrency) Ptr

type WebhookJobStep

type WebhookJobStep struct {
	ID         string  `json:"id" url:"id"`
	Name       string  `json:"name" url:"name"`
	Status     string  `json:"status" url:"status"`
	DurationMs *int    `json:"durationMs,omitempty" url:"durationMs,omitempty"`
	Error      *string `json:"error,omitempty" url:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*WebhookJobStep) GetDurationMs

func (w *WebhookJobStep) GetDurationMs() *int

func (*WebhookJobStep) GetError

func (w *WebhookJobStep) GetError() *string

func (*WebhookJobStep) GetExtraProperties

func (w *WebhookJobStep) GetExtraProperties() map[string]interface{}

func (*WebhookJobStep) GetID

func (w *WebhookJobStep) GetID() string

func (*WebhookJobStep) GetName

func (w *WebhookJobStep) GetName() string

func (*WebhookJobStep) GetStatus

func (w *WebhookJobStep) GetStatus() string

func (*WebhookJobStep) MarshalJSON

func (w *WebhookJobStep) MarshalJSON() ([]byte, error)

func (*WebhookJobStep) SetDurationMs

func (w *WebhookJobStep) SetDurationMs(durationMs *int)

SetDurationMs sets the DurationMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookJobStep) SetError

func (w *WebhookJobStep) SetError(error_ *string)

SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookJobStep) SetID

func (w *WebhookJobStep) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookJobStep) SetName

func (w *WebhookJobStep) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookJobStep) SetStatus

func (w *WebhookJobStep) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebhookJobStep) String

func (w *WebhookJobStep) String() string

func (*WebhookJobStep) UnmarshalJSON

func (w *WebhookJobStep) UnmarshalJSON(data []byte) error

type WebhookPayload

type WebhookPayload struct {
	Event                string
	JobCreated           *JobCreatedWebhookEvent
	JobStarted           *JobStartedWebhookEvent
	JobCompleted         *JobCompletedWebhookEvent
	JobFailed            *JobFailedWebhookEvent
	JobCancelled         *JobCancelledWebhookEvent
	JobDeliverySucceeded *JobDeliverySucceededWebhookEvent
	JobDeliveryFailed    *JobDeliveryFailedWebhookEvent
	JobDeliveriesSettled *JobDeliveriesSettledWebhookEvent
	BalanceLow           *BalanceLowWebhookEvent
	BalanceDepleted      *BalanceDepletedWebhookEvent
	Test                 *TestWebhookEvent
	// contains filtered or unexported fields
}

func (*WebhookPayload) Accept

func (w *WebhookPayload) Accept(visitor WebhookPayloadVisitor) error

func (*WebhookPayload) GetBalanceDepleted

func (w *WebhookPayload) GetBalanceDepleted() *BalanceDepletedWebhookEvent

func (*WebhookPayload) GetBalanceLow

func (w *WebhookPayload) GetBalanceLow() *BalanceLowWebhookEvent

func (*WebhookPayload) GetEvent

func (w *WebhookPayload) GetEvent() string

func (*WebhookPayload) GetJobCancelled

func (w *WebhookPayload) GetJobCancelled() *JobCancelledWebhookEvent

func (*WebhookPayload) GetJobCompleted

func (w *WebhookPayload) GetJobCompleted() *JobCompletedWebhookEvent

func (*WebhookPayload) GetJobCreated

func (w *WebhookPayload) GetJobCreated() *JobCreatedWebhookEvent

func (*WebhookPayload) GetJobDeliveriesSettled

func (w *WebhookPayload) GetJobDeliveriesSettled() *JobDeliveriesSettledWebhookEvent

func (*WebhookPayload) GetJobDeliveryFailed

func (w *WebhookPayload) GetJobDeliveryFailed() *JobDeliveryFailedWebhookEvent

func (*WebhookPayload) GetJobDeliverySucceeded

func (w *WebhookPayload) GetJobDeliverySucceeded() *JobDeliverySucceededWebhookEvent

func (*WebhookPayload) GetJobFailed

func (w *WebhookPayload) GetJobFailed() *JobFailedWebhookEvent

func (*WebhookPayload) GetJobStarted

func (w *WebhookPayload) GetJobStarted() *JobStartedWebhookEvent

func (*WebhookPayload) GetTest

func (w *WebhookPayload) GetTest() *TestWebhookEvent

func (WebhookPayload) MarshalJSON

func (w WebhookPayload) MarshalJSON() ([]byte, error)

func (*WebhookPayload) UnmarshalJSON

func (w *WebhookPayload) UnmarshalJSON(data []byte) error

type WebhookPayloadVisitor

type WebhookPayloadVisitor interface {
	VisitJobCreated(*JobCreatedWebhookEvent) error
	VisitJobStarted(*JobStartedWebhookEvent) error
	VisitJobCompleted(*JobCompletedWebhookEvent) error
	VisitJobFailed(*JobFailedWebhookEvent) error
	VisitJobCancelled(*JobCancelledWebhookEvent) error
	VisitJobDeliverySucceeded(*JobDeliverySucceededWebhookEvent) error
	VisitJobDeliveryFailed(*JobDeliveryFailedWebhookEvent) error
	VisitJobDeliveriesSettled(*JobDeliveriesSettledWebhookEvent) error
	VisitBalanceLow(*BalanceLowWebhookEvent) error
	VisitBalanceDepleted(*BalanceDepletedWebhookEvent) error
	VisitTest(*TestWebhookEvent) error
}

Directories

Path Synopsis
Plan limits and enabled features for the authenticated account
Plan limits and enabled features for the authenticated account
Check account balance and usage history
Check account balance and usage history
Job creation and management (submit, list, get, cancel, download)
Job creation and management (submit, list, get, cancel, download)

Jump to

Keyboard shortcuts

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