peertube-problem-document.model.ts 605 B

1234567891011121314151617181920212223242526272829303132
  1. import { HttpStatusCode } from '../../models'
  2. import { OAuth2ErrorCode, ServerErrorCode } from './server-error-code.enum'
  3. export interface PeerTubeProblemDocumentData {
  4. 'invalid-params'?: Record<string, Object>
  5. originUrl?: string
  6. keyId?: string
  7. targetUrl?: string
  8. actorUrl?: string
  9. // Feeds
  10. format?: string
  11. url?: string
  12. }
  13. export interface PeerTubeProblemDocument extends PeerTubeProblemDocumentData {
  14. type: string
  15. title: string
  16. detail: string
  17. // Compat PeerTube <= 3.2
  18. error: string
  19. status: HttpStatusCode
  20. docs?: string
  21. code?: ServerErrorCode | OAuth2ErrorCode
  22. }