UNPKG

738 BTypeScriptView Raw
1import { DefaultElements, MakeRequest } from '../common-types';
2export declare type AssetKeyProps = {
3 /** A JWT describing a policy; needs to be attached to signed URLs */
4 policy: string;
5 /** A secret key to be used for signing URLs */
6 secret: string;
7};
8export declare type CreateAssetKeyProps = {
9 /** (required) UNIX timestamp in the future (but not more than 48 hours from now) */
10 expiresAt: number;
11};
12export interface AssetKey extends AssetKeyProps, DefaultElements<AssetKeyProps> {
13}
14/**
15 * @private
16 * @param http - HTTP client instance
17 * @param data - Raw asset key data
18 * @return Wrapped asset key data
19 */
20export declare function wrapAssetKey(_makeRequest: MakeRequest, data: AssetKeyProps): AssetKey;