model

package
v0.0.0-...-467dd59 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VCon

type VCon struct {
	VCon        string           `json:"vcon,default=0.0.1"`
	UUID        string           `json:"uuid"`
	Subject     string           `json:"subject"`
	Appended    *VConAppended    `json:"appended,omitempty"`
	Parties     []VConParty      `json:"parties,omitempty"`
	Dialog      []VConDialog     `json:"dialog,omitempty"`
	Attachments []VConAttachment `json:"attachments,omitempty"`
	Analysis    []VConAnalysis   `json:"analysis,omitempty"`
}

type VConAnalysis

type VConAnalysis struct {
	Type     VConAnalysisType `json:"type"`
	Dialog   []int64          `json:"dialog"`
	MimeType string           `json:"mimetype"`
	Body     string           `json:"body"`
	Encoding VConEncoding     `json:"encoding"`
}

type VConAnalysisType

type VConAnalysisType string
const (
	SUMMARY     VConAnalysisType = "summary"
	TRANSCRIPT  VConAnalysisType = "transcript"
	TRANSLATION VConAnalysisType = "translation"
	SENTIMENT   VConAnalysisType = "sentiment"
	TTS         VConAnalysisType = "tts"
)

type VConAppended

type VConAppended struct {
	UUID string `json:"uuid"`
}

type VConAttachment

type VConAttachment struct {
	Parties  []int64      `json:"parties"`
	MimeType string       `json:"mimetype"`
	Body     string       `json:"body"`
	Encoding VConEncoding `json:"encoding"`
}

type VConDialog

type VConDialog struct {
	Type     VConDialogType `json:"type"`
	Start    time.Time      `json:"start"`
	Duration int64          `json:"duration"`
	Parties  []int64        `json:"parties"`
	MimeType string         `json:"mimetype"`
	Body     string         `json:"body"`
	Encoding VConEncoding   `json:"encoding"`
}

type VConDialogType

type VConDialogType string
const (
	TEXT      VConDialogType = "text"
	RECORDING VConDialogType = "recording"
)

type VConEncoding

type VConEncoding string
const (
	NONE   VConEncoding = "None"
	BASE64 VConEncoding = "base64url"
	JSON   VConEncoding = "json"
)

type VConParty

type VConParty struct {
	Tel    *string `json:"tel,omitempty"`
	Stir   *string `json:"stir,omitempty"`
	Mailto *string `json:"mailto,omitempty"`
	Name   *string `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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