UNPKG

@realitydefender/realitydefender

Version:

SDK for the Reality Defender API for deepfake detection

28 lines (27 loc) 825 B
"use strict"; /** * Constants used throughout the SDK */ Object.defineProperty(exports, "__esModule", { value: true }); exports.API_PATHS = exports.DEFAULT_TIMEOUT = exports.DEFAULT_POLLING_INTERVAL = exports.DEFAULT_BASE_URL = void 0; /** * Default base URL for the Reality Defender API */ exports.DEFAULT_BASE_URL = 'https://api.prd.realitydefender.xyz'; /** * Default interval (in milliseconds) between polling attempts */ exports.DEFAULT_POLLING_INTERVAL = 5000; // 5 seconds /** * Default timeout (in milliseconds) for polling operations */ exports.DEFAULT_TIMEOUT = 300000; // 5 minutes /** * API paths */ exports.API_PATHS = { /** Path for requesting a signed upload URL */ SIGNED_URL: '/api/files/aws-presigned', /** Path for retrieving media results */ MEDIA_RESULT: '/api/media/users', };