compv1

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthMethod_name = map[int32]string{
		0: "AUTH_METHOD_USER_AGENT",
		1: "AUTH_METHOD_IP",
		2: "AUTH_METHOD_TOKEN",
		3: "AUTH_METHOD_WEBBOT",
		4: "AUTH_METHOD_AGENT_ID",
		5: "AUTH_METHOD_OTHER",
	}
	AuthMethod_value = map[string]int32{
		"AUTH_METHOD_USER_AGENT": 0,
		"AUTH_METHOD_IP":         1,
		"AUTH_METHOD_TOKEN":      2,
		"AUTH_METHOD_WEBBOT":     3,
		"AUTH_METHOD_AGENT_ID":   4,
		"AUTH_METHOD_OTHER":      5,
	}
)

Enum value maps for AuthMethod.

View Source
var (
	ScopeType_name = map[int32]string{
		0: "SCOPE_TYPE_FULL_CORPUS",
		1: "SCOPE_TYPE_SECTION",
		2: "SCOPE_TYPE_DATE_RANGE",
		3: "SCOPE_TYPE_GENRE",
		4: "SCOPE_TYPE_TOPIC",
		5: "SCOPE_TYPE_CURATED",
		6: "SCOPE_TYPE_OTHER",
	}
	ScopeType_value = map[string]int32{
		"SCOPE_TYPE_FULL_CORPUS": 0,
		"SCOPE_TYPE_SECTION":     1,
		"SCOPE_TYPE_DATE_RANGE":  2,
		"SCOPE_TYPE_GENRE":       3,
		"SCOPE_TYPE_TOPIC":       4,
		"SCOPE_TYPE_CURATED":     5,
		"SCOPE_TYPE_OTHER":       6,
	}
)

Enum value maps for ScopeType.

View Source
var (
	Function_name = map[int32]string{
		0: "FUNCTION_ALL",
		1: "FUNCTION_AI_ALL",
		2: "FUNCTION_AI_TRAIN",
		3: "FUNCTION_AI_INPUT",
		4: "FUNCTION_AI_INDEX",
		5: "FUNCTION_SEARCH",
	}
	Function_value = map[string]int32{
		"FUNCTION_ALL":      0,
		"FUNCTION_AI_ALL":   1,
		"FUNCTION_AI_TRAIN": 2,
		"FUNCTION_AI_INPUT": 3,
		"FUNCTION_AI_INDEX": 4,
		"FUNCTION_SEARCH":   5,
	}
)

Enum value maps for Function.

View Source
var (
	SubFunction_name = map[int32]string{
		0: "SUB_FUNCTION_TRAINING",
		1: "SUB_FUNCTION_RAG",
		2: "SUB_FUNCTION_GROUNDING",
		3: "SUB_FUNCTION_AGENT_VIEW",
		4: "SUB_FUNCTION_AGENT_ACTIONS",
		5: "SUB_FUNCTION_OTHER",
	}
	SubFunction_value = map[string]int32{
		"SUB_FUNCTION_TRAINING":      0,
		"SUB_FUNCTION_RAG":           1,
		"SUB_FUNCTION_GROUNDING":     2,
		"SUB_FUNCTION_AGENT_VIEW":    3,
		"SUB_FUNCTION_AGENT_ACTIONS": 4,
		"SUB_FUNCTION_OTHER":         5,
	}
)

Enum value maps for SubFunction.

View Source
var (
	AllowedUse_name = map[int32]string{
		0: "ALLOWED_USE_COMMERCIAL",
		1: "ALLOWED_USE_NON_COMMERCIAL",
		2: "ALLOWED_USE_EDUCATIONAL",
		3: "ALLOWED_USE_GOVERNMENT",
		4: "ALLOWED_USE_PERSONAL",
		5: "ALLOWED_USE_BYO_LICENSE",
		6: "ALLOWED_USE_OTHER",
	}
	AllowedUse_value = map[string]int32{
		"ALLOWED_USE_COMMERCIAL":     0,
		"ALLOWED_USE_NON_COMMERCIAL": 1,
		"ALLOWED_USE_EDUCATIONAL":    2,
		"ALLOWED_USE_GOVERNMENT":     3,
		"ALLOWED_USE_PERSONAL":       4,
		"ALLOWED_USE_BYO_LICENSE":    5,
		"ALLOWED_USE_OTHER":          6,
	}
)

Enum value maps for AllowedUse.

View Source
var (
	PriceType_name = map[int32]string{
		0: "PRICE_TYPE_PER_USE",
		1: "PRICE_TYPE_PER_QUERY",
		2: "PRICE_TYPE_PER_TOKEN",
		3: "PRICE_TYPE_FLAT",
		4: "PRICE_TYPE_TIERED",
		5: "PRICE_TYPE_OTHER",
	}
	PriceType_value = map[string]int32{
		"PRICE_TYPE_PER_USE":   0,
		"PRICE_TYPE_PER_QUERY": 1,
		"PRICE_TYPE_PER_TOKEN": 2,
		"PRICE_TYPE_FLAT":      3,
		"PRICE_TYPE_TIERED":    4,
		"PRICE_TYPE_OTHER":     5,
	}
)

Enum value maps for PriceType.

View Source
var (
	ContentType_name = map[int32]string{
		0: "CONTENT_TYPE_TEXT",
		1: "CONTENT_TYPE_VIDEO",
		2: "CONTENT_TYPE_IMAGE",
		3: "CONTENT_TYPE_AUDIO",
		4: "CONTENT_TYPE_ALL",
		5: "CONTENT_TYPE_OTHER",
	}
	ContentType_value = map[string]int32{
		"CONTENT_TYPE_TEXT":  0,
		"CONTENT_TYPE_VIDEO": 1,
		"CONTENT_TYPE_IMAGE": 2,
		"CONTENT_TYPE_AUDIO": 3,
		"CONTENT_TYPE_ALL":   4,
		"CONTENT_TYPE_OTHER": 5,
	}
)

Enum value maps for ContentType.

View Source
var (
	RetrievalAuth_name = map[int32]string{
		0: "RETRIEVAL_AUTH_NONE",
		1: "RETRIEVAL_AUTH_API_KEY",
		2: "RETRIEVAL_AUTH_OAUTH2",
		3: "RETRIEVAL_AUTH_SSL",
		4: "RETRIEVAL_AUTH_OTHER",
	}
	RetrievalAuth_value = map[string]int32{
		"RETRIEVAL_AUTH_NONE":    0,
		"RETRIEVAL_AUTH_API_KEY": 1,
		"RETRIEVAL_AUTH_OAUTH2":  2,
		"RETRIEVAL_AUTH_SSL":     3,
		"RETRIEVAL_AUTH_OTHER":   4,
	}
)

Enum value maps for RetrievalAuth.

View Source
var (
	RetrievalType_name = map[int32]string{
		0: "RETRIEVAL_TYPE_HTML",
		1: "RETRIEVAL_TYPE_RSS",
		2: "RETRIEVAL_TYPE_API",
		3: "RETRIEVAL_TYPE_MCP",
		4: "RETRIEVAL_TYPE_NLWEB",
		5: "RETRIEVAL_TYPE_XML",
		6: "RETRIEVAL_TYPE_NEWSML",
		7: "RETRIEVAL_TYPE_OTHER",
	}
	RetrievalType_value = map[string]int32{
		"RETRIEVAL_TYPE_HTML":   0,
		"RETRIEVAL_TYPE_RSS":    1,
		"RETRIEVAL_TYPE_API":    2,
		"RETRIEVAL_TYPE_MCP":    3,
		"RETRIEVAL_TYPE_NLWEB":  4,
		"RETRIEVAL_TYPE_XML":    5,
		"RETRIEVAL_TYPE_NEWSML": 6,
		"RETRIEVAL_TYPE_OTHER":  7,
	}
)

Enum value maps for RetrievalType.

View Source
var File_comp_v1_comp_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AISystem

type AISystem struct {

	// Canonical domain of the AI System requesting access.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// User agent of the AI System.
	Ua *string `protobuf:"bytes,2,opt,name=ua,proto3,oneof" json:"ua,omitempty"`
	// ID of the AI system, as registered by Tech Lab Agent Registry.
	Id *string `protobuf:"bytes,3,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// How the AI system will use the content.
	Aisysuse *AISystemUse `protobuf:"bytes,4,opt,name=aisysuse,proto3" json:"aisysuse,omitempty"`
	// Implementer-specific extensions.
	Ext *structpb.Struct `protobuf:"bytes,15,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

AISystem — Information about the AI System making the request. CoMP §aisystem.json

func (*AISystem) Descriptor deprecated

func (*AISystem) Descriptor() ([]byte, []int)

Deprecated: Use AISystem.ProtoReflect.Descriptor instead.

func (*AISystem) GetAisysuse

func (x *AISystem) GetAisysuse() *AISystemUse

func (*AISystem) GetExt

func (x *AISystem) GetExt() *structpb.Struct

func (*AISystem) GetId

func (x *AISystem) GetId() string

func (*AISystem) GetName

func (x *AISystem) GetName() string

func (*AISystem) GetUa

func (x *AISystem) GetUa() string

func (*AISystem) ProtoMessage

func (*AISystem) ProtoMessage()

func (*AISystem) ProtoReflect

func (x *AISystem) ProtoReflect() protoreflect.Message

func (*AISystem) Reset

func (x *AISystem) Reset()

func (*AISystem) String

func (x *AISystem) String() string

type AISystemUse

type AISystemUse struct {

	// License ID — public agent identifier in CoMP. NOT a credential, and it
	// has no counterpart field on the FORA request. Request authentication is
	// an RFC 9421 HTTP Message Signature; the agent's key is resolved by its
	// domain, never by this id.
	Lid string `protobuf:"bytes,1,opt,name=lid,proto3" json:"lid,omitempty"`
	// How the AI system authenticates itself.
	Aiauth AuthMethod `protobuf:"varint,2,opt,name=aiauth,proto3,enum=comp.v1.AuthMethod" json:"aiauth,omitempty"`
	// URI(s) that the AI System is requesting to crawl.
	Uri []string `protobuf:"bytes,3,rep,name=uri,proto3" json:"uri,omitempty"`
	// General information about the content scope requested.
	Scope *ScopeType `protobuf:"varint,4,opt,name=scope,proto3,enum=comp.v1.ScopeType,oneof" json:"scope,omitempty"`
	// Function(s) the AI System will use the content for.
	Function []Function `protobuf:"varint,5,rep,packed,name=function,proto3,enum=comp.v1.Function" json:"function,omitempty"`
	// Sub-function(s) for content use.
	Subfn []SubFunction `protobuf:"varint,6,rep,packed,name=subfn,proto3,enum=comp.v1.SubFunction" json:"subfn,omitempty"`
	// Whether results will be displayed to a human user. 0=no, 1=yes.
	Resdis *int32           `protobuf:"varint,7,opt,name=resdis,proto3,oneof" json:"resdis,omitempty"`
	Ext    *structpb.Struct `protobuf:"bytes,15,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

AISystemUse — Intended use of the requested content. CoMP §aisystemuse.json

func (*AISystemUse) Descriptor deprecated

func (*AISystemUse) Descriptor() ([]byte, []int)

Deprecated: Use AISystemUse.ProtoReflect.Descriptor instead.

func (*AISystemUse) GetAiauth

func (x *AISystemUse) GetAiauth() AuthMethod

func (*AISystemUse) GetExt

func (x *AISystemUse) GetExt() *structpb.Struct

func (*AISystemUse) GetFunction

func (x *AISystemUse) GetFunction() []Function

func (*AISystemUse) GetLid

func (x *AISystemUse) GetLid() string

func (*AISystemUse) GetResdis

func (x *AISystemUse) GetResdis() int32

func (*AISystemUse) GetScope

func (x *AISystemUse) GetScope() ScopeType

func (*AISystemUse) GetSubfn

func (x *AISystemUse) GetSubfn() []SubFunction

func (*AISystemUse) GetUri

func (x *AISystemUse) GetUri() []string

func (*AISystemUse) ProtoMessage

func (*AISystemUse) ProtoMessage()

func (*AISystemUse) ProtoReflect

func (x *AISystemUse) ProtoReflect() protoreflect.Message

func (*AISystemUse) Reset

func (x *AISystemUse) Reset()

func (*AISystemUse) String

func (x *AISystemUse) String() string

type AllowedUse

type AllowedUse int32

AllowedUse — Kind of use allowed for a package. CoMP §scope.ause — List: Allowed Use

const (
	AllowedUse_ALLOWED_USE_COMMERCIAL     AllowedUse = 0 // CoMP 0
	AllowedUse_ALLOWED_USE_NON_COMMERCIAL AllowedUse = 1 // CoMP 1
	AllowedUse_ALLOWED_USE_EDUCATIONAL    AllowedUse = 2 // CoMP 2
	AllowedUse_ALLOWED_USE_GOVERNMENT     AllowedUse = 3 // CoMP 3
	AllowedUse_ALLOWED_USE_PERSONAL       AllowedUse = 4 // CoMP 4
	AllowedUse_ALLOWED_USE_BYO_LICENSE    AllowedUse = 5 // CoMP 5 (refer to terms in licenseurl)
	AllowedUse_ALLOWED_USE_OTHER          AllowedUse = 6 // CoMP 6
)

func (AllowedUse) Descriptor

func (AllowedUse) Descriptor() protoreflect.EnumDescriptor

func (AllowedUse) Enum

func (x AllowedUse) Enum() *AllowedUse

func (AllowedUse) EnumDescriptor deprecated

func (AllowedUse) EnumDescriptor() ([]byte, []int)

Deprecated: Use AllowedUse.Descriptor instead.

func (AllowedUse) Number

func (x AllowedUse) Number() protoreflect.EnumNumber

func (AllowedUse) String

func (x AllowedUse) String() string

func (AllowedUse) Type

type Audio

type Audio struct {
	Title      []string `protobuf:"bytes,1,rep,name=title,proto3" json:"title,omitempty"`
	Dur        []int32  `protobuf:"varint,2,rep,packed,name=dur,proto3" json:"dur,omitempty"`
	Wordcount  []int32  `protobuf:"varint,3,rep,packed,name=wordcount,proto3" json:"wordcount,omitempty"`
	Transcript *int32   `protobuf:"varint,4,opt,name=transcript,proto3,oneof" json:"transcript,omitempty"`
	Pubdate    *string  `protobuf:"bytes,5,opt,name=pubdate,proto3,oneof" json:"pubdate,omitempty"`
	// Denotes if the content is publicly available. Default 0 for Audio.
	Published  *int32   `protobuf:"varint,6,opt,name=published,proto3,oneof" json:"published,omitempty"`
	Update     *string  `protobuf:"bytes,7,opt,name=update,proto3,oneof" json:"update,omitempty"`
	Author     []string `protobuf:"bytes,8,rep,name=author,proto3" json:"author,omitempty"`
	Sourcetype *int32   `protobuf:"varint,9,opt,name=sourcetype,proto3,oneof" json:"sourcetype,omitempty"`
	Provenance *int32   `protobuf:"varint,10,opt,name=provenance,proto3,oneof" json:"provenance,omitempty"`
	Provent    *string  `protobuf:"bytes,11,opt,name=provent,proto3,oneof" json:"provent,omitempty"`
	// IAB category taxonomy in use. Default 9 (IAB Content Category Taxonomy 3.1).
	Cattax *int32 `protobuf:"varint,12,opt,name=cattax,proto3,oneof" json:"cattax,omitempty"`
	// IAB Tech Lab content category codes (per cattax).
	Cat []int32 `protobuf:"varint,13,rep,packed,name=cat,proto3" json:"cat,omitempty"`
	// Content language. CoMP declares this `int` (array) though its prose says
	// ISO-639-1 (alpha-2) — an upstream inconsistency; the proto follows the
	// declared `int` type.
	Language []int32          `protobuf:"varint,14,rep,packed,name=language,proto3" json:"language,omitempty"`
	Ext      *structpb.Struct `protobuf:"bytes,15,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

Audio — An audio asset. CoMP §audio.json

func (*Audio) Descriptor deprecated

func (*Audio) Descriptor() ([]byte, []int)

Deprecated: Use Audio.ProtoReflect.Descriptor instead.

func (*Audio) GetAuthor

func (x *Audio) GetAuthor() []string

func (*Audio) GetCat

func (x *Audio) GetCat() []int32

func (*Audio) GetCattax

func (x *Audio) GetCattax() int32

func (*Audio) GetDur

func (x *Audio) GetDur() []int32

func (*Audio) GetExt

func (x *Audio) GetExt() *structpb.Struct

func (*Audio) GetLanguage

func (x *Audio) GetLanguage() []int32

func (*Audio) GetProvenance

func (x *Audio) GetProvenance() int32

func (*Audio) GetProvent

func (x *Audio) GetProvent() string

func (*Audio) GetPubdate

func (x *Audio) GetPubdate() string

func (*Audio) GetPublished

func (x *Audio) GetPublished() int32

func (*Audio) GetSourcetype

func (x *Audio) GetSourcetype() int32

func (*Audio) GetTitle

func (x *Audio) GetTitle() []string

func (*Audio) GetTranscript

func (x *Audio) GetTranscript() int32

func (*Audio) GetUpdate

func (x *Audio) GetUpdate() string

func (*Audio) GetWordcount

func (x *Audio) GetWordcount() []int32

func (*Audio) ProtoMessage

func (*Audio) ProtoMessage()

func (*Audio) ProtoReflect

func (x *Audio) ProtoReflect() protoreflect.Message

func (*Audio) Reset

func (x *Audio) Reset()

func (*Audio) String

func (x *Audio) String() string

type AuthMethod

type AuthMethod int32

AuthMethod — How the AI system authenticates. CoMP §aisystemuse.aiauth

const (
	AuthMethod_AUTH_METHOD_USER_AGENT AuthMethod = 0 // CoMP 0
	AuthMethod_AUTH_METHOD_IP         AuthMethod = 1 // CoMP 1
	AuthMethod_AUTH_METHOD_TOKEN      AuthMethod = 2 // CoMP 2
	AuthMethod_AUTH_METHOD_WEBBOT     AuthMethod = 3 // CoMP 3
	AuthMethod_AUTH_METHOD_AGENT_ID   AuthMethod = 4 // CoMP 4 (Tech Lab Registry)
	AuthMethod_AUTH_METHOD_OTHER      AuthMethod = 5 // CoMP 5
)

func (AuthMethod) Descriptor

func (AuthMethod) Descriptor() protoreflect.EnumDescriptor

func (AuthMethod) Enum

func (x AuthMethod) Enum() *AuthMethod

func (AuthMethod) EnumDescriptor deprecated

func (AuthMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuthMethod.Descriptor instead.

func (AuthMethod) Number

func (x AuthMethod) Number() protoreflect.EnumNumber

func (AuthMethod) String

func (x AuthMethod) String() string

func (AuthMethod) Type

type ContentType

type ContentType int32

ContentType — Type of content in the package. CoMP §scope.ctype

const (
	ContentType_CONTENT_TYPE_TEXT  ContentType = 0 // CoMP 0
	ContentType_CONTENT_TYPE_VIDEO ContentType = 1 // CoMP 1
	ContentType_CONTENT_TYPE_IMAGE ContentType = 2 // CoMP 2
	ContentType_CONTENT_TYPE_AUDIO ContentType = 3 // CoMP 3
	ContentType_CONTENT_TYPE_ALL   ContentType = 4 // CoMP 4
	ContentType_CONTENT_TYPE_OTHER ContentType = 5 // CoMP 5
)

func (ContentType) Descriptor

func (ContentType) Enum

func (x ContentType) Enum() *ContentType

func (ContentType) EnumDescriptor deprecated

func (ContentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ContentType.Descriptor instead.

func (ContentType) Number

func (x ContentType) Number() protoreflect.EnumNumber

func (ContentType) String

func (x ContentType) String() string

func (ContentType) Type

type Function

type Function int32

Function — What the AI system will use the content for. CoMP §aisystemuse.function — Function Definitions:

0 all       — All functions (no restriction on use).
1 ai-all     — All AI functions (training, input, indexing).
2 ai-train   — Use as AI/ML training data.
3 ai-input   — Use as runtime input/grounding (e.g. RAG, agent view).
4 ai-index   — Use to build a search/retrieval index.
5 search     — Use for traditional search indexing.
const (
	Function_FUNCTION_ALL      Function = 0 // CoMP 0
	Function_FUNCTION_AI_ALL   Function = 1 // CoMP 1
	Function_FUNCTION_AI_TRAIN Function = 2 // CoMP 2
	Function_FUNCTION_AI_INPUT Function = 3 // CoMP 3
	Function_FUNCTION_AI_INDEX Function = 4 // CoMP 4
	Function_FUNCTION_SEARCH   Function = 5 // CoMP 5
)

func (Function) Descriptor

func (Function) Descriptor() protoreflect.EnumDescriptor

func (Function) Enum

func (x Function) Enum() *Function

func (Function) EnumDescriptor deprecated

func (Function) EnumDescriptor() ([]byte, []int)

Deprecated: Use Function.Descriptor instead.

func (Function) Number

func (x Function) Number() protoreflect.EnumNumber

func (Function) String

func (x Function) String() string

func (Function) Type

type Image

type Image struct {
	Title   []string `protobuf:"bytes,1,rep,name=title,proto3" json:"title,omitempty"`
	Pubdate *string  `protobuf:"bytes,2,opt,name=pubdate,proto3,oneof" json:"pubdate,omitempty"`
	// Denotes if the content is publicly available. Default 0 for Image.
	Published  *int32   `protobuf:"varint,3,opt,name=published,proto3,oneof" json:"published,omitempty"`
	Update     *string  `protobuf:"bytes,4,opt,name=update,proto3,oneof" json:"update,omitempty"`
	Author     []string `protobuf:"bytes,5,rep,name=author,proto3" json:"author,omitempty"`
	Sourcetype *int32   `protobuf:"varint,6,opt,name=sourcetype,proto3,oneof" json:"sourcetype,omitempty"`
	Provenance *int32   `protobuf:"varint,7,opt,name=provenance,proto3,oneof" json:"provenance,omitempty"`
	Provent    *string  `protobuf:"bytes,8,opt,name=provent,proto3,oneof" json:"provent,omitempty"`
	// IAB category taxonomy in use. Default 9 (IAB Content Category Taxonomy 3.1).
	Cattax *int32 `protobuf:"varint,9,opt,name=cattax,proto3,oneof" json:"cattax,omitempty"`
	// IAB Tech Lab content category codes (per cattax).
	Cat []int32 `protobuf:"varint,10,rep,packed,name=cat,proto3" json:"cat,omitempty"`
	// Content language. CoMP declares this `int` (array) though its prose says
	// ISO-639-1 (alpha-2) — an upstream inconsistency; the proto follows the
	// declared `int` type.
	Language []int32          `protobuf:"varint,11,rep,packed,name=language,proto3" json:"language,omitempty"`
	Ext      *structpb.Struct `protobuf:"bytes,15,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

Image — An image asset. CoMP §image.json

func (*Image) Descriptor deprecated

func (*Image) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetAuthor

func (x *Image) GetAuthor() []string

func (*Image) GetCat

func (x *Image) GetCat() []int32

func (*Image) GetCattax

func (x *Image) GetCattax() int32

func (*Image) GetExt

func (x *Image) GetExt() *structpb.Struct

func (*Image) GetLanguage

func (x *Image) GetLanguage() []int32

func (*Image) GetProvenance

func (x *Image) GetProvenance() int32

func (*Image) GetProvent

func (x *Image) GetProvent() string

func (*Image) GetPubdate

func (x *Image) GetPubdate() string

func (*Image) GetPublished

func (x *Image) GetPublished() int32

func (*Image) GetSourcetype

func (x *Image) GetSourcetype() int32

func (*Image) GetTitle

func (x *Image) GetTitle() []string

func (*Image) GetUpdate

func (x *Image) GetUpdate() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

func (x *Image) ProtoReflect() protoreflect.Message

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type Package

type Package struct {

	// Unique package identifier defined by the Content Owner or Marketplace.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Title of the package.
	Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"`
	// Canonical domain of the business entity offering the content.
	Seller *string `protobuf:"bytes,3,opt,name=seller,proto3,oneof" json:"seller,omitempty"`
	// Canonical domain of the packager, if different than the seller.
	Packager *string `protobuf:"bytes,4,opt,name=packager,proto3,oneof" json:"packager,omitempty"`
	// URL for AI system to find the License(s) required to access content.
	// SSRF/fetch sink: a consumer that dereferences this URL must apply the
	// countermeasures specified for core License.uri (threat model T-LIC-1).
	Licenseurl *string `protobuf:"bytes,5,opt,name=licenseurl,proto3,oneof" json:"licenseurl,omitempty"`
	// Whether citation of the Content Owner is required. 0=no, 1=yes.
	Citation *int32 `protobuf:"varint,6,opt,name=citation,proto3,oneof" json:"citation,omitempty"`
	// URL for AI system to send usage reporting to the Content Owner or
	// Marketplace. POST/exfil sink: apply the SSRF countermeasures specified
	// for core License.uri (threat model T-LIC-1) before dereferencing.
	Reporturl *string `protobuf:"bytes,7,opt,name=reporturl,proto3,oneof" json:"reporturl,omitempty"`
	// Scope of content in this package.
	Scope *Scope `protobuf:"bytes,8,opt,name=scope,proto3,oneof" json:"scope,omitempty"`
	// How to retrieve the content.
	Retrieval *Retrieval       `protobuf:"bytes,9,opt,name=retrieval,proto3,oneof" json:"retrieval,omitempty"`
	Ext       *structpb.Struct `protobuf:"bytes,15,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

Package — A package of content inventory. CoMP §package.json

func (*Package) Descriptor deprecated

func (*Package) Descriptor() ([]byte, []int)

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetCitation

func (x *Package) GetCitation() int32

func (*Package) GetExt

func (x *Package) GetExt() *structpb.Struct

func (*Package) GetId

func (x *Package) GetId() string

func (*Package) GetLicenseurl

func (x *Package) GetLicenseurl() string

func (*Package) GetPackager

func (x *Package) GetPackager() string

func (*Package) GetReporturl

func (x *Package) GetReporturl() string

func (*Package) GetRetrieval

func (x *Package) GetRetrieval() *Retrieval

func (*Package) GetScope

func (x *Package) GetScope() *Scope

func (*Package) GetSeller

func (x *Package) GetSeller() string

func (*Package) GetTitle

func (x *Package) GetTitle() string

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect

func (x *Package) ProtoReflect() protoreflect.Message

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

type PriceType

type PriceType int32

PriceType — How a package is priced. CoMP §scope.pricetype — List: Price Type

const (
	PriceType_PRICE_TYPE_PER_USE   PriceType = 0 // CoMP 0
	PriceType_PRICE_TYPE_PER_QUERY PriceType = 1 // CoMP 1
	PriceType_PRICE_TYPE_PER_TOKEN PriceType = 2 // CoMP 2
	PriceType_PRICE_TYPE_FLAT      PriceType = 3 // CoMP 3
	PriceType_PRICE_TYPE_TIERED    PriceType = 4 // CoMP 4 (Tiered Rate)
	PriceType_PRICE_TYPE_OTHER     PriceType = 5 // CoMP 5
)

func (PriceType) Descriptor

func (PriceType) Descriptor() protoreflect.EnumDescriptor

func (PriceType) Enum

func (x PriceType) Enum() *PriceType

func (PriceType) EnumDescriptor deprecated

func (PriceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PriceType.Descriptor instead.

func (PriceType) Number

func (x PriceType) Number() protoreflect.EnumNumber

func (PriceType) String

func (x PriceType) String() string

func (PriceType) Type

type Retrieval

type Retrieval struct {

	// Authorization type.
	Auth *RetrievalAuth `protobuf:"varint,1,opt,name=auth,proto3,enum=comp.v1.RetrievalAuth,oneof" json:"auth,omitempty"`
	// Entry point / feed URI. SSRF/fetch sink: apply the countermeasures
	// specified for core License.uri (threat model T-LIC-1) before fetching.
	Endpoint *string `protobuf:"bytes,2,opt,name=endpoint,proto3,oneof" json:"endpoint,omitempty"`
	// Endpoint type(s).
	Type []RetrievalType  `protobuf:"varint,3,rep,packed,name=type,proto3,enum=comp.v1.RetrievalType" json:"type,omitempty"`
	Ext  *structpb.Struct `protobuf:"bytes,15,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

Retrieval — How to access content after authorization. CoMP §retrieval.json

func (*Retrieval) Descriptor deprecated

func (*Retrieval) Descriptor() ([]byte, []int)

Deprecated: Use Retrieval.ProtoReflect.Descriptor instead.

func (*Retrieval) GetAuth

func (x *Retrieval) GetAuth() RetrievalAuth

func (*Retrieval) GetEndpoint

func (x *Retrieval) GetEndpoint() string

func (*Retrieval) GetExt

func (x *Retrieval) GetExt() *structpb.Struct

func (*Retrieval) GetType

func (x *Retrieval) GetType() []RetrievalType

func (*Retrieval) ProtoMessage

func (*Retrieval) ProtoMessage()

func (*Retrieval) ProtoReflect

func (x *Retrieval) ProtoReflect() protoreflect.Message

func (*Retrieval) Reset

func (x *Retrieval) Reset()

func (*Retrieval) String

func (x *Retrieval) String() string

type RetrievalAuth

type RetrievalAuth int32

RetrievalAuth — Authorization method for content access. CoMP §retrieval.auth — List: Authorization Type

const (
	RetrievalAuth_RETRIEVAL_AUTH_NONE    RetrievalAuth = 0 // CoMP 0
	RetrievalAuth_RETRIEVAL_AUTH_API_KEY RetrievalAuth = 1 // CoMP 1 (api_key)
	RetrievalAuth_RETRIEVAL_AUTH_OAUTH2  RetrievalAuth = 2 // CoMP 2 (oauth2)
	RetrievalAuth_RETRIEVAL_AUTH_SSL     RetrievalAuth = 3 // CoMP 3 (SSL)
	RetrievalAuth_RETRIEVAL_AUTH_OTHER   RetrievalAuth = 4 // CoMP 4 (Other)
)

func (RetrievalAuth) Descriptor

func (RetrievalAuth) Enum

func (x RetrievalAuth) Enum() *RetrievalAuth

func (RetrievalAuth) EnumDescriptor deprecated

func (RetrievalAuth) EnumDescriptor() ([]byte, []int)

Deprecated: Use RetrievalAuth.Descriptor instead.

func (RetrievalAuth) Number

func (RetrievalAuth) String

func (x RetrievalAuth) String() string

func (RetrievalAuth) Type

type RetrievalType

type RetrievalType int32

RetrievalType — Endpoint type for content retrieval. CoMP §retrieval.type

const (
	RetrievalType_RETRIEVAL_TYPE_HTML   RetrievalType = 0 // CoMP 0
	RetrievalType_RETRIEVAL_TYPE_RSS    RetrievalType = 1 // CoMP 1
	RetrievalType_RETRIEVAL_TYPE_API    RetrievalType = 2 // CoMP 2
	RetrievalType_RETRIEVAL_TYPE_MCP    RetrievalType = 3 // CoMP 3
	RetrievalType_RETRIEVAL_TYPE_NLWEB  RetrievalType = 4 // CoMP 4
	RetrievalType_RETRIEVAL_TYPE_XML    RetrievalType = 5 // CoMP 5
	RetrievalType_RETRIEVAL_TYPE_NEWSML RetrievalType = 6 // CoMP 6
	RetrievalType_RETRIEVAL_TYPE_OTHER  RetrievalType = 7 // CoMP 7
)

func (RetrievalType) Descriptor

func (RetrievalType) Enum

func (x RetrievalType) Enum() *RetrievalType

func (RetrievalType) EnumDescriptor deprecated

func (RetrievalType) EnumDescriptor() ([]byte, []int)

Deprecated: Use RetrievalType.Descriptor instead.

func (RetrievalType) Number

func (RetrievalType) String

func (x RetrievalType) String() string

func (RetrievalType) Type

type Scope

type Scope struct {

	// How much of the Content Owner's corpus is available in this package.
	Scope *ScopeType `protobuf:"varint,1,opt,name=scope,proto3,enum=comp.v1.ScopeType,oneof" json:"scope,omitempty"`
	// Kind of use that is allowed for this package.
	Ause *AllowedUse `protobuf:"varint,2,opt,name=ause,proto3,enum=comp.v1.AllowedUse,oneof" json:"ause,omitempty"`
	// How the package is priced.
	Pricetype *PriceType `protobuf:"varint,3,opt,name=pricetype,proto3,enum=comp.v1.PriceType,oneof" json:"pricetype,omitempty"`
	// Tier identifier if pricing is tiered (pricetype = 4).
	Pricetier *int32 `protobuf:"varint,4,opt,name=pricetier,proto3,oneof" json:"pricetier,omitempty"`
	// Content Owner set unit price at the given basis. Typed `double` to mirror
	// the CoMP spec; downstream billing must convert to a decimal / minor-units
	// representation — do not settle money directly off this float.
	Unitprice *float64 `protobuf:"fixed64,5,opt,name=unitprice,proto3,oneof" json:"unitprice,omitempty"`
	// Bid currency using ISO-4217 alpha codes. Default "USD".
	Cur *string `protobuf:"bytes,6,opt,name=cur,proto3,oneof" json:"cur,omitempty"`
	// Country code(s) where this package may be used, expressed by
	// ISO-3166-1 numeric codes.
	Country []int32 `protobuf:"varint,7,rep,packed,name=country,proto3" json:"country,omitempty"`
	// Number of days the license is active, once the content package has been
	// delivered to the AI System.
	Licensedur *int32 `protobuf:"varint,8,opt,name=licensedur,proto3,oneof" json:"licensedur,omitempty"`
	// Upper limit on crawl. 0=unlimited, 1=has maximum.
	Max *int32 `protobuf:"varint,9,opt,name=max,proto3,oneof" json:"max,omitempty"`
	// Content type(s) included.
	Ctype []ContentType `protobuf:"varint,10,rep,packed,name=ctype,proto3,enum=comp.v1.ContentType" json:"ctype,omitempty"`
	// Text assets.
	Text []*Text `protobuf:"bytes,11,rep,name=text,proto3" json:"text,omitempty"`
	// Video assets.
	Video []*Video `protobuf:"bytes,12,rep,name=video,proto3" json:"video,omitempty"`
	// Image assets.
	Image []*Image `protobuf:"bytes,13,rep,name=image,proto3" json:"image,omitempty"`
	// Audio assets.
	Audio []*Audio         `protobuf:"bytes,14,rep,name=audio,proto3" json:"audio,omitempty"`
	Ext   *structpb.Struct `protobuf:"bytes,15,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

Scope — What content is included in the package, plus its commercial terms. CoMP §scope.json — canonical V1 folds licensing/pricing into Scope.

func (*Scope) Descriptor deprecated

func (*Scope) Descriptor() ([]byte, []int)

Deprecated: Use Scope.ProtoReflect.Descriptor instead.

func (*Scope) GetAudio

func (x *Scope) GetAudio() []*Audio

func (*Scope) GetAuse

func (x *Scope) GetAuse() AllowedUse

func (*Scope) GetCountry

func (x *Scope) GetCountry() []int32

func (*Scope) GetCtype

func (x *Scope) GetCtype() []ContentType

func (*Scope) GetCur

func (x *Scope) GetCur() string

func (*Scope) GetExt

func (x *Scope) GetExt() *structpb.Struct

func (*Scope) GetImage

func (x *Scope) GetImage() []*Image

func (*Scope) GetLicensedur

func (x *Scope) GetLicensedur() int32

func (*Scope) GetMax

func (x *Scope) GetMax() int32

func (*Scope) GetPricetier

func (x *Scope) GetPricetier() int32

func (*Scope) GetPricetype

func (x *Scope) GetPricetype() PriceType

func (*Scope) GetScope

func (x *Scope) GetScope() ScopeType

func (*Scope) GetText

func (x *Scope) GetText() []*Text

func (*Scope) GetUnitprice

func (x *Scope) GetUnitprice() float64

func (*Scope) GetVideo

func (x *Scope) GetVideo() []*Video

func (*Scope) ProtoMessage

func (*Scope) ProtoMessage()

func (*Scope) ProtoReflect

func (x *Scope) ProtoReflect() protoreflect.Message

func (*Scope) Reset

func (x *Scope) Reset()

func (*Scope) String

func (x *Scope) String() string

type ScopeType

type ScopeType int32

ScopeType — Content scope categories. CoMP §aisystemuse.scope and §scope.scope

const (
	ScopeType_SCOPE_TYPE_FULL_CORPUS ScopeType = 0 // CoMP 0
	ScopeType_SCOPE_TYPE_SECTION     ScopeType = 1 // CoMP 1
	ScopeType_SCOPE_TYPE_DATE_RANGE  ScopeType = 2 // CoMP 2
	ScopeType_SCOPE_TYPE_GENRE       ScopeType = 3 // CoMP 3
	ScopeType_SCOPE_TYPE_TOPIC       ScopeType = 4 // CoMP 4
	ScopeType_SCOPE_TYPE_CURATED     ScopeType = 5 // CoMP 5
	ScopeType_SCOPE_TYPE_OTHER       ScopeType = 6 // CoMP 6
)

func (ScopeType) Descriptor

func (ScopeType) Descriptor() protoreflect.EnumDescriptor

func (ScopeType) Enum

func (x ScopeType) Enum() *ScopeType

func (ScopeType) EnumDescriptor deprecated

func (ScopeType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ScopeType.Descriptor instead.

func (ScopeType) Number

func (x ScopeType) Number() protoreflect.EnumNumber

func (ScopeType) String

func (x ScopeType) String() string

func (ScopeType) Type

type SubFunction

type SubFunction int32

SubFunction — Specific sub-function for content use. CoMP §aisystemuse.subfn — SubFunction Definitions:

0 training       — Model training.
1 rag            — Retrieval-augmented generation.
2 grounding      — Grounding/citation at inference time.
3 agent-view     — Agent reads content on a user's behalf.
4 agent-actions  — Agent acts on content on a user's behalf.
5 other          — Any other sub-function.
const (
	SubFunction_SUB_FUNCTION_TRAINING      SubFunction = 0 // CoMP 0
	SubFunction_SUB_FUNCTION_RAG           SubFunction = 1 // CoMP 1
	SubFunction_SUB_FUNCTION_GROUNDING     SubFunction = 2 // CoMP 2
	SubFunction_SUB_FUNCTION_AGENT_VIEW    SubFunction = 3 // CoMP 3
	SubFunction_SUB_FUNCTION_AGENT_ACTIONS SubFunction = 4 // CoMP 4
	SubFunction_SUB_FUNCTION_OTHER         SubFunction = 5 // CoMP 5
)

func (SubFunction) Descriptor

func (SubFunction) Enum

func (x SubFunction) Enum() *SubFunction

func (SubFunction) EnumDescriptor deprecated

func (SubFunction) EnumDescriptor() ([]byte, []int)

Deprecated: Use SubFunction.Descriptor instead.

func (SubFunction) Number

func (x SubFunction) Number() protoreflect.EnumNumber

func (SubFunction) String

func (x SubFunction) String() string

func (SubFunction) Type

type Text

type Text struct {
	Title *string `protobuf:"bytes,1,opt,name=title,proto3,oneof" json:"title,omitempty"`
	// Count of whitespace-delimited words in main body.
	Wordcount []int32 `protobuf:"varint,2,rep,packed,name=wordcount,proto3" json:"wordcount,omitempty"`
	// Original publication date (ISO 8601).
	Pubdate *string `protobuf:"bytes,3,opt,name=pubdate,proto3,oneof" json:"pubdate,omitempty"`
	// Denotes if the content is publicly available. Default 1 for Text.
	Published *int32 `protobuf:"varint,4,opt,name=published,proto3,oneof" json:"published,omitempty"`
	// Most recent substantive update (ISO 8601).
	Update *string `protobuf:"bytes,5,opt,name=update,proto3,oneof" json:"update,omitempty"`
	// Author name(s).
	Author []string `protobuf:"bytes,6,rep,name=author,proto3" json:"author,omitempty"`
	// Source of creation. 0=human, 1=ai, 2=hybrid.
	Sourcetype *int32 `protobuf:"varint,7,opt,name=sourcetype,proto3,oneof" json:"sourcetype,omitempty"`
	// Provenance available. 0=no, 1=yes.
	Provenance *int32 `protobuf:"varint,8,opt,name=provenance,proto3,oneof" json:"provenance,omitempty"`
	// Canonical domain of the provenance entity (e.g. c2pa.org).
	// Required if provenance = 1.
	Provent *string `protobuf:"bytes,9,opt,name=provent,proto3,oneof" json:"provent,omitempty"`
	// IAB category taxonomy in use. Default 9 (IAB Content Category Taxonomy 3.1).
	Cattax *int32 `protobuf:"varint,10,opt,name=cattax,proto3,oneof" json:"cattax,omitempty"`
	// IAB Tech Lab content category codes (per cattax).
	Cat []int32 `protobuf:"varint,11,rep,packed,name=cat,proto3" json:"cat,omitempty"`
	// Content language. CoMP declares this `int` (array) though its prose says
	// ISO-639-1 (alpha-2) — an upstream inconsistency; the proto follows the
	// declared `int` type.
	Language []int32          `protobuf:"varint,12,rep,packed,name=language,proto3" json:"language,omitempty"`
	Ext      *structpb.Struct `protobuf:"bytes,15,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

Text — A text-based asset. CoMP §text.json

func (*Text) Descriptor deprecated

func (*Text) Descriptor() ([]byte, []int)

Deprecated: Use Text.ProtoReflect.Descriptor instead.

func (*Text) GetAuthor

func (x *Text) GetAuthor() []string

func (*Text) GetCat

func (x *Text) GetCat() []int32

func (*Text) GetCattax

func (x *Text) GetCattax() int32

func (*Text) GetExt

func (x *Text) GetExt() *structpb.Struct

func (*Text) GetLanguage

func (x *Text) GetLanguage() []int32

func (*Text) GetProvenance

func (x *Text) GetProvenance() int32

func (*Text) GetProvent

func (x *Text) GetProvent() string

func (*Text) GetPubdate

func (x *Text) GetPubdate() string

func (*Text) GetPublished

func (x *Text) GetPublished() int32

func (*Text) GetSourcetype

func (x *Text) GetSourcetype() int32

func (*Text) GetTitle

func (x *Text) GetTitle() string

func (*Text) GetUpdate

func (x *Text) GetUpdate() string

func (*Text) GetWordcount

func (x *Text) GetWordcount() []int32

func (*Text) ProtoMessage

func (*Text) ProtoMessage()

func (*Text) ProtoReflect

func (x *Text) ProtoReflect() protoreflect.Message

func (*Text) Reset

func (x *Text) Reset()

func (*Text) String

func (x *Text) String() string

type Video

type Video struct {
	Title      []string `protobuf:"bytes,1,rep,name=title,proto3" json:"title,omitempty"`
	Dur        []int32  `protobuf:"varint,2,rep,packed,name=dur,proto3" json:"dur,omitempty"`  // Duration in seconds.
	Clip       *int32   `protobuf:"varint,3,opt,name=clip,proto3,oneof" json:"clip,omitempty"` // 0=full, 1=clip.
	Wordcount  []int32  `protobuf:"varint,4,rep,packed,name=wordcount,proto3" json:"wordcount,omitempty"`
	Transcript *int32   `protobuf:"varint,5,opt,name=transcript,proto3,oneof" json:"transcript,omitempty"` // 0=no, 1=yes.
	Pubdate    *string  `protobuf:"bytes,6,opt,name=pubdate,proto3,oneof" json:"pubdate,omitempty"`
	// Denotes if the content is publicly available. Default 0 for Video.
	Published  *int32   `protobuf:"varint,7,opt,name=published,proto3,oneof" json:"published,omitempty"`
	Update     *string  `protobuf:"bytes,8,opt,name=update,proto3,oneof" json:"update,omitempty"`
	Author     []string `protobuf:"bytes,9,rep,name=author,proto3" json:"author,omitempty"`
	Sourcetype *int32   `protobuf:"varint,10,opt,name=sourcetype,proto3,oneof" json:"sourcetype,omitempty"`
	Provenance *int32   `protobuf:"varint,11,opt,name=provenance,proto3,oneof" json:"provenance,omitempty"`
	Provent    *string  `protobuf:"bytes,12,opt,name=provent,proto3,oneof" json:"provent,omitempty"`
	// IAB category taxonomy in use. Default 9 (IAB Content Category Taxonomy 3.1).
	Cattax *int32 `protobuf:"varint,13,opt,name=cattax,proto3,oneof" json:"cattax,omitempty"`
	// IAB Tech Lab content category codes (per cattax).
	Cat []int32 `protobuf:"varint,14,rep,packed,name=cat,proto3" json:"cat,omitempty"`
	// Content language. CoMP declares this `int` (array) though its prose says
	// ISO-639-1 (alpha-2) — an upstream inconsistency; the proto follows the
	// declared `int` type.
	// Tag 16 sits above ext (15) only here: cattax/cat consumed 13/14, and ext is
	// kept at 15 for cross-message uniformity rather than the usual terminal slot.
	Language []int32          `protobuf:"varint,16,rep,packed,name=language,proto3" json:"language,omitempty"`
	Ext      *structpb.Struct `protobuf:"bytes,15,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

Video — A video asset. CoMP §video.json

func (*Video) Descriptor deprecated

func (*Video) Descriptor() ([]byte, []int)

Deprecated: Use Video.ProtoReflect.Descriptor instead.

func (*Video) GetAuthor

func (x *Video) GetAuthor() []string

func (*Video) GetCat

func (x *Video) GetCat() []int32

func (*Video) GetCattax

func (x *Video) GetCattax() int32

func (*Video) GetClip

func (x *Video) GetClip() int32

func (*Video) GetDur

func (x *Video) GetDur() []int32

func (*Video) GetExt

func (x *Video) GetExt() *structpb.Struct

func (*Video) GetLanguage

func (x *Video) GetLanguage() []int32

func (*Video) GetProvenance

func (x *Video) GetProvenance() int32

func (*Video) GetProvent

func (x *Video) GetProvent() string

func (*Video) GetPubdate

func (x *Video) GetPubdate() string

func (*Video) GetPublished

func (x *Video) GetPublished() int32

func (*Video) GetSourcetype

func (x *Video) GetSourcetype() int32

func (*Video) GetTitle

func (x *Video) GetTitle() []string

func (*Video) GetTranscript

func (x *Video) GetTranscript() int32

func (*Video) GetUpdate

func (x *Video) GetUpdate() string

func (*Video) GetWordcount

func (x *Video) GetWordcount() []int32

func (*Video) ProtoMessage

func (*Video) ProtoMessage()

func (*Video) ProtoReflect

func (x *Video) ProtoReflect() protoreflect.Message

func (*Video) Reset

func (x *Video) Reset()

func (*Video) String

func (x *Video) String() string

Jump to

Keyboard shortcuts

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