oadr3/schema

Types

pub type Anon25ddbf1f {
  Anon25ddbf1f(url: String)
}

Constructors

  • Anon25ddbf1f(url: String)
pub type Anon818bb683 {
  Anon818bb683(
    interval_period: option.Option(IntervalPeriod),
    intervals: List(Interval),
    resource_name: String,
  )
}

Constructors

pub type Anon85c77f13 {
  Anon85c77f13(
    bearer_token: option.Option(String),
    callback_url: String,
    objects: List(String),
    operations: List(String),
  )
}

Constructors

  • Anon85c77f13(
      bearer_token: option.Option(String),
      callback_url: String,
      objects: List(String),
      operations: List(String),
    )
pub type Anon97535fea {
  Anon97535fea(client_id: String)
}

Constructors

  • Anon97535fea(client_id: String)
pub type AuthError {
  AuthError(
    error: String,
    error_description: option.Option(String),
    error_uri: option.Option(String),
  )
}

Constructors

pub type AuthServerInfo {
  AuthServerInfo(token_url: String)
}

Constructors

  • AuthServerInfo(token_url: String)
pub type BlResourceRequest {
  BlResourceRequest(
    attributes: option.Option(List(ValuesMap)),
    client_id: String,
    object_type: String,
    resource_name: String,
    targets: option.Option(List(String)),
    ven_id: String,
  )
}

Constructors

  • BlResourceRequest(
      attributes: option.Option(List(ValuesMap)),
      client_id: String,
      object_type: String,
      resource_name: String,
      targets: option.Option(List(String)),
      ven_id: String,
    )
pub type BlVenRequest {
  BlVenRequest(
    attributes: option.Option(List(ValuesMap)),
    client_id: String,
    object_type: String,
    targets: option.Option(List(String)),
    ven_name: String,
  )
}

Constructors

pub type ClientCredentialRequest {
  ClientCredentialRequest(
    client_id: String,
    client_secret: String,
    grant_type: String,
    scope: option.Option(String),
  )
}

Constructors

  • ClientCredentialRequest(
      client_id: String,
      client_secret: String,
      grant_type: String,
      scope: option.Option(String),
    )
pub type ClientCredentialResponse {
  ClientCredentialResponse(
    access_token: String,
    expires_in: option.Option(Int),
    refresh_token: option.Option(String),
    scope: option.Option(String),
    token_type: String,
  )
}

Constructors

pub type ClientId =
  String
pub type ClientName =
  String
pub type DateTime =
  String
pub type Duration =
  String
pub type EventPayloadDescriptor {
  EventPayloadDescriptor(
    currency: option.Option(String),
    object_type: String,
    payload_type: String,
    units: option.Option(String),
  )
}

Constructors

  • EventPayloadDescriptor(
      currency: option.Option(String),
      object_type: String,
      payload_type: String,
      units: option.Option(String),
    )
pub type EventRequest {
  EventRequest(
    duration: option.Option(String),
    event_name: option.Option(String),
    interval_period: option.Option(IntervalPeriod),
    intervals: option.Option(List(Interval)),
    payload_descriptors: option.Option(
      List(EventPayloadDescriptor),
    ),
    priority: option.Option(Int),
    program_id: String,
    report_descriptors: option.Option(List(ReportDescriptor)),
    targets: option.Option(List(String)),
  )
}

Constructors

pub type Interval {
  Interval(
    id: Int,
    interval_period: option.Option(IntervalPeriod),
    payloads: List(ValuesMap),
  )
}

Constructors

pub type IntervalPeriod {
  IntervalPeriod(
    duration: option.Option(String),
    randomize_start: option.Option(String),
    start: option.Option(String),
  )
}

Constructors

pub type MqttNotifierAuthenticationAnonymous {
  MqttNotifierAuthenticationAnonymous(method_: String)
}

Constructors

  • MqttNotifierAuthenticationAnonymous(method_: String)
pub type MqttNotifierAuthenticationCertificate {
  MqttNotifierAuthenticationCertificate(
    ca_cert: String,
    client_cert: String,
    client_key: String,
    method_: String,
  )
}

Constructors

  • MqttNotifierAuthenticationCertificate(
      ca_cert: String,
      client_cert: String,
      client_key: String,
      method_: String,
    )
pub type MqttNotifierAuthenticationOauth2BearerToken {
  MqttNotifierAuthenticationOauth2BearerToken(
    method_: String,
    username: String,
  )
}

Constructors

  • MqttNotifierAuthenticationOauth2BearerToken(
      method_: String,
      username: String,
    )
pub type MqttNotifierBindingObject {
  MqttNotifierBindingObject(
    uris: List(String),
    authentication: utils.Any,
    serialization: String,
  )
}

Constructors

  • MqttNotifierBindingObject(
      uris: List(String),
      authentication: utils.Any,
      serialization: String,
    )
pub type Notification {
  Notification(
    object: Nil,
    object_type: String,
    operation: String,
    targets: option.Option(List(String)),
  )
}

Constructors

  • Notification(
      object: Nil,
      object_type: String,
      operation: String,
      targets: option.Option(List(String)),
    )
pub type NotifierOperationsTopics {
  NotifierOperationsTopics(
    all: option.Option(String),
    create: option.Option(String),
    delete: String,
    update: String,
  )
}

Constructors

pub type NotifierTopicsResponse {
  NotifierTopicsResponse(topics: NotifierOperationsTopics)
}

Constructors

pub type NotifiersResponse {
  NotifiersResponse(
    mqtt: option.Option(MqttNotifierBindingObject),
    webhook: Bool,
  )
}

Constructors

pub type ObjectId =
  String
pub type ObjectMetadata {
  ObjectMetadata(
    created_date_time: String,
    id: String,
    modification_date_time: String,
    object_type: String,
  )
}

Constructors

  • ObjectMetadata(
      created_date_time: String,
      id: String,
      modification_date_time: String,
      object_type: String,
    )
pub type ObjectTypes =
  String
pub type Point {
  Point(x: Float, y: Float)
}

Constructors

  • Point(x: Float, y: Float)
pub type Problem {
  Problem(
    detail: option.Option(String),
    instance: option.Option(String),
    status: option.Option(Int),
    title: option.Option(String),
    type_: option.Option(String),
  )
}

Constructors

pub type ProgramRequest {
  ProgramRequest(
    attributes: option.Option(List(ValuesMap)),
    interval_period: option.Option(IntervalPeriod),
    payload_descriptors: option.Option(List(utils.Any)),
    program_descriptions: option.Option(List(Anon25ddbf1f)),
    program_name: String,
    targets: option.Option(List(String)),
  )
}

Constructors

pub type ReadingType =
  String
pub type ReportDescriptor {
  ReportDescriptor(
    aggregate: option.Option(Bool),
    frequency: option.Option(Int),
    historical: option.Option(Bool),
    num_intervals: option.Option(Int),
    payload_type: String,
    reading_type: option.Option(String),
    repeat: option.Option(Int),
    report_intervals: option.Option(String),
    start_interval: option.Option(Int),
    targets: option.Option(List(String)),
    units: option.Option(String),
  )
}

Constructors

pub type ReportPayloadDescriptor {
  ReportPayloadDescriptor(
    accuracy: option.Option(Float),
    confidence: option.Option(Int),
    object_type: String,
    payload_type: String,
    reading_type: option.Option(String),
    units: option.Option(String),
  )
}

Constructors

pub type ReportRequest {
  ReportRequest(
    client_name: String,
    event_id: String,
    payload_descriptors: option.Option(
      List(ReportPayloadDescriptor),
    ),
    report_name: option.Option(String),
    resources: List(Anon818bb683),
  )
}

Constructors

pub type ResourceName =
  String
pub type ResourceRequest =
  utils.Any
pub type SubscriptionRequest {
  SubscriptionRequest(
    client_name: String,
    object_operations: List(Anon85c77f13),
    program_id: option.Option(String),
    targets: option.Option(List(String)),
  )
}

Constructors

pub type Target =
  String
pub type Units =
  String
pub type ValuesMap {
  ValuesMap(type_: String, values: List(utils.Any))
}

Constructors

  • ValuesMap(type_: String, values: List(utils.Any))
pub type VenName =
  String
pub type VenRequest =
  utils.Any
pub type VenResourceRequest {
  VenResourceRequest(
    attributes: option.Option(List(ValuesMap)),
    object_type: String,
    resource_name: String,
    ven_id: String,
  )
}

Constructors

  • VenResourceRequest(
      attributes: option.Option(List(ValuesMap)),
      object_type: String,
      resource_name: String,
      ven_id: String,
    )
pub type VenVenRequest {
  VenVenRequest(
    attributes: option.Option(List(ValuesMap)),
    object_type: String,
    ven_name: String,
  )
}

Constructors

Values

pub fn anon_25ddbf1f_decoder() -> decode.Decoder(Anon25ddbf1f)
pub fn anon_25ddbf1f_encode(data: Anon25ddbf1f) -> json.Json
pub fn anon_818bb683_decoder() -> decode.Decoder(Anon818bb683)
pub fn anon_818bb683_encode(data: Anon818bb683) -> json.Json
pub fn anon_85c77f13_decoder() -> decode.Decoder(Anon85c77f13)
pub fn anon_85c77f13_encode(data: Anon85c77f13) -> json.Json
pub fn anon_97535fea_decoder() -> decode.Decoder(Anon97535fea)
pub fn anon_97535fea_encode(data: Anon97535fea) -> json.Json
pub fn auth_error_decoder() -> decode.Decoder(AuthError)
pub fn auth_error_encode(data: AuthError) -> json.Json
pub fn auth_server_info_decoder() -> decode.Decoder(
  AuthServerInfo,
)
pub fn auth_server_info_encode(data: AuthServerInfo) -> json.Json
pub fn bl_resource_request_decoder() -> decode.Decoder(
  BlResourceRequest,
)
pub fn bl_resource_request_encode(
  data: BlResourceRequest,
) -> json.Json
pub fn bl_ven_request_decoder() -> decode.Decoder(BlVenRequest)
pub fn bl_ven_request_encode(data: BlVenRequest) -> json.Json
pub fn client_credential_request_encode(
  data: ClientCredentialRequest,
) -> json.Json
pub fn client_credential_response_encode(
  data: ClientCredentialResponse,
) -> json.Json
pub fn client_id_decoder() -> decode.Decoder(String)
pub fn client_id_encode(data: String) -> json.Json
pub fn client_name_decoder() -> decode.Decoder(String)
pub fn client_name_encode(data: String) -> json.Json
pub fn date_time_decoder() -> decode.Decoder(String)
pub fn date_time_encode(data: String) -> json.Json
pub fn duration_decoder() -> decode.Decoder(String)
pub fn duration_encode(data: String) -> json.Json
pub fn event_encode(
  data: #(ObjectMetadata, EventRequest),
) -> json.Json
pub fn event_payload_descriptor_decoder() -> decode.Decoder(
  EventPayloadDescriptor,
)
pub fn event_payload_descriptor_encode(
  data: EventPayloadDescriptor,
) -> json.Json
pub fn event_request_decoder() -> decode.Decoder(EventRequest)
pub fn event_request_encode(data: EventRequest) -> json.Json
pub fn interval_decoder() -> decode.Decoder(Interval)
pub fn interval_encode(data: Interval) -> json.Json
pub fn interval_period_encode(data: IntervalPeriod) -> json.Json
pub fn mqtt_notifier_authentication_anonymous_encode(
  data: MqttNotifierAuthenticationAnonymous,
) -> json.Json
pub fn mqtt_notifier_authentication_certificate_encode(
  data: MqttNotifierAuthenticationCertificate,
) -> json.Json
pub fn mqtt_notifier_authentication_oauth2_bearer_token_encode(
  data: MqttNotifierAuthenticationOauth2BearerToken,
) -> json.Json
pub fn mqtt_notifier_binding_object_encode(
  data: MqttNotifierBindingObject,
) -> json.Json
pub fn notification_encode(data: Notification) -> json.Json
pub fn notifier_operations_topics_encode(
  data: NotifierOperationsTopics,
) -> json.Json
pub fn notifier_topics_response_decoder() -> decode.Decoder(
  NotifierTopicsResponse,
)
pub fn notifier_topics_response_encode(
  data: NotifierTopicsResponse,
) -> json.Json
pub fn notifiers_response_decoder() -> decode.Decoder(
  NotifiersResponse,
)
pub fn notifiers_response_encode(
  data: NotifiersResponse,
) -> json.Json
pub fn object_id_decoder() -> decode.Decoder(String)
pub fn object_id_encode(data: String) -> json.Json
pub fn object_metadata_encode(data: ObjectMetadata) -> json.Json
pub fn object_types_decoder() -> decode.Decoder(String)
pub fn object_types_encode(data: String) -> json.Json
pub fn point_decoder() -> decode.Decoder(Point)
pub fn point_encode(data: Point) -> json.Json
pub fn problem_decoder() -> decode.Decoder(Problem)
pub fn problem_encode(data: Problem) -> json.Json
pub fn program_encode(
  data: #(ObjectMetadata, ProgramRequest),
) -> json.Json
pub fn program_request_encode(data: ProgramRequest) -> json.Json
pub fn reading_type_decoder() -> decode.Decoder(String)
pub fn reading_type_encode(data: String) -> json.Json
pub fn report_descriptor_decoder() -> decode.Decoder(
  ReportDescriptor,
)
pub fn report_descriptor_encode(
  data: ReportDescriptor,
) -> json.Json
pub fn report_payload_descriptor_encode(
  data: ReportPayloadDescriptor,
) -> json.Json
pub fn report_request_encode(data: ReportRequest) -> json.Json
pub fn resource_encode(
  data: #(ObjectMetadata, BlResourceRequest),
) -> json.Json
pub fn resource_name_decoder() -> decode.Decoder(String)
pub fn resource_name_encode(data: String) -> json.Json
pub fn resource_request_decoder() -> decode.Decoder(utils.Any)
pub fn resource_request_encode(data: utils.Any) -> json.Json
pub fn subscription_request_decoder() -> decode.Decoder(
  SubscriptionRequest,
)
pub fn subscription_request_encode(
  data: SubscriptionRequest,
) -> json.Json
pub fn target_decoder() -> decode.Decoder(String)
pub fn target_encode(data: String) -> json.Json
pub fn units_decoder() -> decode.Decoder(String)
pub fn units_encode(data: String) -> json.Json
pub fn values_map_decoder() -> decode.Decoder(ValuesMap)
pub fn values_map_encode(data: ValuesMap) -> json.Json
pub fn ven_encode(
  data: #(ObjectMetadata, BlVenRequest),
) -> json.Json
pub fn ven_name_decoder() -> decode.Decoder(String)
pub fn ven_name_encode(data: String) -> json.Json
pub fn ven_request_decoder() -> decode.Decoder(utils.Any)
pub fn ven_request_encode(data: utils.Any) -> json.Json
pub fn ven_resource_request_decoder() -> decode.Decoder(
  VenResourceRequest,
)
pub fn ven_resource_request_encode(
  data: VenResourceRequest,
) -> json.Json
pub fn ven_ven_request_decoder() -> decode.Decoder(VenVenRequest)
pub fn ven_ven_request_encode(data: VenVenRequest) -> json.Json
Search Document