shared

package
v0.1.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 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

This section is empty.

Functions

This section is empty.

Types

type FormattedText

type FormattedText struct {
	// The content formatted as Markdown text.
	Markdown string `json:"markdown"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Markdown    respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Structured content that can be rendered in multiple formats, currently supporting Markdown.

func (FormattedText) RawJSON

func (r FormattedText) RawJSON() string

Returns the unmodified JSON received from the API

func (FormattedText) ToParam

func (r FormattedText) ToParam() FormattedTextParam

ToParam converts this FormattedText to a FormattedTextParam.

Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with FormattedTextParam.Overrides()

func (*FormattedText) UnmarshalJSON

func (r *FormattedText) UnmarshalJSON(data []byte) error

type FormattedTextParam

type FormattedTextParam struct {
	// The content formatted as Markdown text.
	Markdown param.Opt[string] `json:"markdown,omitzero"`
	// contains filtered or unexported fields
}

Structured content that can be rendered in multiple formats, currently supporting Markdown.

func (FormattedTextParam) MarshalJSON

func (r FormattedTextParam) MarshalJSON() (data []byte, err error)

func (*FormattedTextParam) UnmarshalJSON

func (r *FormattedTextParam) UnmarshalJSON(data []byte) error

type Tag

type Tag struct {
	// Unique identifier for the object.
	ID string `json:"id" api:"required"`
	// The color for the tag.
	//
	// Any of "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime",
	// "lunar", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet",
	// "yellow".
	Color TagColor `json:"color" api:"required"`
	// The name of the tag.
	Name string `json:"name" api:"required"`
	// String representing the object’s type. Always `tag` for this object.
	Type constant.Tag `json:"type" default:"tag"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID          respjson.Field
		Color       respjson.Field
		Name        respjson.Field
		Type        respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

A Tag is a label that can be applied to supported resources (such as conversations, calls, and meetings) for organization and filtering.

func (Tag) RawJSON

func (r Tag) RawJSON() string

Returns the unmodified JSON received from the API

func (*Tag) UnmarshalJSON

func (r *Tag) UnmarshalJSON(data []byte) error

type TagColor

type TagColor string

The color for the tag.

const (
	TagColorAmber   TagColor = "amber"
	TagColorBlue    TagColor = "blue"
	TagColorCyan    TagColor = "cyan"
	TagColorEmerald TagColor = "emerald"
	TagColorFuchsia TagColor = "fuchsia"
	TagColorGreen   TagColor = "green"
	TagColorIndigo  TagColor = "indigo"
	TagColorLime    TagColor = "lime"
	TagColorLunar   TagColor = "lunar"
	TagColorOrange  TagColor = "orange"
	TagColorPink    TagColor = "pink"
	TagColorPurple  TagColor = "purple"
	TagColorRed     TagColor = "red"
	TagColorRose    TagColor = "rose"
	TagColorSky     TagColor = "sky"
	TagColorTeal    TagColor = "teal"
	TagColorViolet  TagColor = "violet"
	TagColorYellow  TagColor = "yellow"
)

type TagPointerParam

type TagPointerParam struct {
	// Unique identifier of the tag.
	ID string `json:"id" api:"required"`
	// String representing the object’s type. Always `tag` for this object.
	//
	// This field can be elided, and will marshal its zero value as "tag".
	Type constant.Tag `json:"type" default:"tag"`
	// contains filtered or unexported fields
}

A lightweight reference to a `Tag` used in request bodies.

The properties ID, Type are required.

func (TagPointerParam) MarshalJSON

func (r TagPointerParam) MarshalJSON() (data []byte, err error)

func (*TagPointerParam) UnmarshalJSON

func (r *TagPointerParam) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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