/** * Shell Data & Reporting APIsLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { dict, nullable, object, optional, Schema, string } from '../schema.js'; export interface ErrorDetails { /** Error code representing the error encountered */ code?: string; /** Error type description */ title?: string; /** Detailed inforamtion about the error */ detail?: string; /** Applicable when more details related to error to be returned */ additionalInfo?: Record; } export const errorDetailsSchema: Schema = object({ code: ['Code', optional(string())], title: ['Title', optional(string())], detail: ['Detail', optional(string())], additionalInfo: ['AdditionalInfo', optional(dict(nullable(string())))], });