1 | import type { DefaultElements, MakeRequest } from '../common-types';
|
2 | export 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 | };
|
8 | export type CreateAssetKeyProps = {
|
9 | /** (required) UNIX timestamp in the future (but not more than 48 hours from now) */
|
10 | expiresAt: number;
|
11 | };
|
12 | export 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 | */
|
20 | export declare function wrapAssetKey(_makeRequest: MakeRequest, data: AssetKeyProps): AssetKey;
|