mirror of https://github.com/Chocobozzz/PeerTube
33 lines
611 B
TypeScript
33 lines
611 B
TypeScript
import { HttpStatusCode } from '@shared/core-utils'
|
|
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
|
|
}
|