-
Notifications
You must be signed in to change notification settings - Fork 181
/
urlResponse.ts
71 lines (60 loc) · 1.34 KB
/
urlResponse.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { LogoType } from '../../enums';
/**
* Represents a response containing URL and associated fields for an image.
*
* @remarks
* Uploading a theme requires fetching a singed URL form AWS. The SDK handles
* this process for you so there should be no need to use the type. It is included
* for convenience.
*/
export type UrlResponse = {
/**
* The URL for the image.
*/
url: string;
/**
* Fields related to the image URL.
*/
fields: {
/**
* The content type of the image, typically 'image/png'.
*/
'Content-Type': 'image/png';
/**
* The key associated with the image.
*/
key: string;
/**
* The logo type of the image.
*/
logoType: LogoType;
/**
* The bucket where the image is stored.
*/
bucket: string;
/**
* The AWS S3 algorithm used for access.
*/
'X-Amz-Algorithm': string;
/**
* The AWS S3 credential for access.
*/
'X-Amz-Credential': string;
/**
* The date associated with the image access.
*/
'X-Amz-Date': string;
/**
* The security token for AWS access.
*/
'X-Amz-Security-Token': string;
/**
* The policy associated with image access.
*/
Policy: string;
/**
* The AWS S3 signature for image access.
*/
'X-Amz-Signature': string;
};
};