Class: OpenAI::Models::ContentProvenanceCheck

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/content_provenance_check.rb,
sig/openai/models/content_provenance_check.rbs

Overview

See Also:

  • OpenAI::Resources::ContentProvenanceChecks#create

Defined Under Namespace

Modules: Object, Result

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(created_at:, object:, results:) ⇒ ContentProvenanceCheck

Returns a new instance of ContentProvenanceCheck.

Parameters:

  • created_at —

    The Unix timestamp, in seconds, when the provenance check was created.

  • object —

    The object type. Always content_provenance_check for this endpoint.

  • results —

    The provenance results that apply to the uploaded file. Image results include C2PA and SynthID; audio results include SynthID.

  • created_at: (Integer)
  • object: (OpenAI::Models::ContentProvenanceCheck::object)
  • results: (::Array[OpenAI::Models::ContentProvenanceCheck::result])


# File 'lib/openai/models/content_provenance_check.rb', line 26

Instance Attribute Details

#created_at ⇒ Integer

The Unix timestamp, in seconds, when the provenance check was created.

Returns:

  • (Integer)


11
# File 'lib/openai/models/content_provenance_check.rb', line 11

required :created_at, Integer

#object ⇒ OpenAI::Models::ContentProvenanceCheck::object

The object type. Always content_provenance_check for this endpoint.

Returns:

  • (OpenAI::Models::ContentProvenanceCheck::object)


17
# File 'lib/openai/models/content_provenance_check.rb', line 17

required :object, enum: -> { OpenAI::ContentProvenanceCheck::Object }

#results ⇒ ::Array[OpenAI::Models::ContentProvenanceCheck::result]

The provenance results that apply to the uploaded file. Image results include C2PA and SynthID; audio results include SynthID.

Returns:

  • (::Array[OpenAI::Models::ContentProvenanceCheck::result])


24
# File 'lib/openai/models/content_provenance_check.rb', line 24

required :results, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::ContentProvenanceCheck::Result] }

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/content_provenance_check.rb', line 45

Instance Method Details

#to_hash ⇒ { created_at: Integer, object: OpenAI::Models::ContentProvenanceCheck::object, results: ::Array[OpenAI::Models::ContentProvenanceCheck::result] }

Returns:

  • ({ created_at: Integer, object: OpenAI::Models::ContentProvenanceCheck::object, results: ::Array[OpenAI::Models::ContentProvenanceCheck::result] })


34
35
36
37
38
# File 'sig/openai/models/content_provenance_check.rbs', line 34

def to_hash: -> {
  created_at: Integer,
  object: OpenAI::Models::ContentProvenanceCheck::object,
  results: ::Array[OpenAI::Models::ContentProvenanceCheck::result]
}