1
0
Fork 0
peertube/shared/models/server/peertube-problem-document.model.ts

33 lines
605 B
TypeScript
Raw Normal View History

2021-07-16 04:42:24 -04:00
import { HttpStatusCode } from '../../models'
2021-06-02 12:15:41 -04:00
import { OAuth2ErrorCode, ServerErrorCode } from './server-error-code.enum'
export interface PeerTubeProblemDocumentData {
'invalid-params'?: Record<string, Object>
originUrl?: string
keyId?: string
targetUrl?: string
actorUrl?: string
// Feeds
format?: string
url?: string
}
export interface PeerTubeProblemDocument extends PeerTubeProblemDocumentData {
type: string
title: string
detail: string
// Compat PeerTube <= 3.2
error: string
status: HttpStatusCode
docs?: string
code?: ServerErrorCode | OAuth2ErrorCode
}