Constructors

Methods

  • Confirm a successful S3 upload and create the database record. Call this after the direct S3 upload is complete.

    Type Parameters

    • T

    Parameters

    Returns AxiosPromise<default<T>>

    AxiosPromise containing the created Media resource.

  • Generate an S3 Presigned URL for direct upload.

    Type Parameters

    Parameters

    • filename: string

      The original name of the file.

    • extension: string

      The file extension (e.g., 'mp4').

    • is_public: boolean = false

      Set to true if the file should be publicly accessible via URL.

    Returns AxiosPromise<default<T>>

  • Get Steam capsule type information and requirements.

    Parameters

    • capsuleType: string

      The type of Steam capsule.

    Returns any

    Information about the capsule type.

  • Get Steam library logo requirements.

    Returns {
        content: string;
        format: string;
        maxHeight: number;
        maxWidth: number;
        requirement: string;
    }

    Library logo requirements object.

    • content: string
    • format: string
    • maxHeight: number
    • maxWidth: number
    • requirement: string
  • Get Steam screenshot requirements.

    Returns {
        aspectRatio: number;
        content: string;
        format: string;
        minCount: number;
        minHeight: number;
        minWidth: number;
    }

    Screenshot requirements object.

    • aspectRatio: number
    • content: string
    • format: string
    • minCount: number
    • minHeight: number
    • minWidth: number
  • Submit a video for processing (Trim, Crop, Text, etc.) This triggers a background job on the server.

    Type Parameters

    • T

    Parameters

    • media_id: string

      The UUID of the source video.

    • data: VideoProcessRequest

      The edit manifest containing the array of transformations.

    Returns AxiosPromise<default<T>>

    Promise with the pending_media_id.

  • Upload media content using a Blob.

    Type Parameters

    • T

    Parameters

    • blob: Blob

      The Blob object to upload.

    • Optional data: object

      Any additional data to pass along to the upload.

    • Optional params: Record<string, any>
    • Optional onUploadProgress: ((progressEvent) => void)
        • (progressEvent): void
        • Parameters

          • progressEvent: AxiosProgressEvent

          Returns void

    Returns AxiosPromise<default<T>>

    promise

  • Upload media content using a File object.

    Type Parameters

    • T

    Parameters

    • file: File

      The file object to upload.

    • Optional data: object

      Any additional data to pass along to the upload.

    • Optional params: Record<string, any>
    • Optional onUploadProgress: ((progressEvent) => void)
        • (progressEvent): void
        • Parameters

          • progressEvent: AxiosProgressEvent

          Returns void

    Returns AxiosPromise<default<T>>

    promise

  • Upload an audio file to TikTok's asset library via our Media controller.

    Type Parameters

    • T

    Parameters

    • file: File

      The audio file (mp3).

    • scheduler_id: string

      The ID of the scheduler to provide OAuth context.

    Returns AxiosPromise<default<T>>

Generated using TypeDoc