2021-07-16 03:42:24 -05:00
|
|
|
import { HttpStatusCode } from '../../models'
|
2021-06-02 11:15:41 -05:00
|
|
|
import { OAuth2ErrorCode, ServerErrorCode } from './server-error-code.enum'
|
|
|
|
|
|
|
|
export interface PeerTubeProblemDocumentData {
|
2023-02-16 04:56:58 -06:00
|
|
|
'invalid-params'?: Record<string, object>
|
2021-06-02 11:15:41 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|