// Copyright Abridged, Inc. 2021,2024. All Rights Reserved. // Node module: @collabland/sdk // This file is licensed under the MIT License. // License text available at https://opensource.org/license/mit/ import {model, property} from '@loopback/repository'; import {JsonRpcError} from './json-rpc-error.model.js'; /** * The model class is generated from OpenAPI schema - JsonRpcResponse * JsonRpcResponse */ @model({name: 'JsonRpcResponse'}) export class JsonRpcResponse { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ jsonSchema: { type: 'string', }, }) jsonrpc?: string; /** * */ @property({jsonSchema: {}}) result?: string; /** * */ @property({ jsonSchema: { $ref: '#/components/schemas/JsonRpcError', }, }) error?: JsonRpcError; /** * */ @property({ jsonSchema: { oneOf: [ { type: 'string', }, { type: 'number', }, ], }, }) id?: string | number; } export interface JsonRpcResponseRelations { // describe navigational properties here } export type JsonRpcResponseWithRelations = JsonRpcResponse & JsonRpcResponseRelations;