-
Notifications
You must be signed in to change notification settings - Fork 116
/
redirectUri.ts
74 lines (71 loc) · 1.26 KB
/
redirectUri.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
72
73
74
/**
* Interface representation of a Redirect URI object
*/
export type RedirectUri = {
/**
* Globally unique object identifier
*/
id: string;
/**
* Redirect URL
*/
url: string;
/**
* Platform identifier
*/
platform: string;
/**
* Configuration settings
*/
settings?: RedirectUriSettings;
};
/**
* Configuration settings for a Redirect URI object
*/
export type RedirectUriSettings = {
/**
* Related to JS platform
*/
origin?: string;
/**
* Related to iOS platform
*/
bundleId?: string;
/**
* Related to iOS platform
*/
appStoreId?: string;
/**
* Related to iOS platform
*/
teamId?: string;
/**
* Related to Android platform
*/
packageName?: string;
/**
* Related to Android platform
*/
sha1CertificateFingerprint?: string;
};
/**
* Class representing a request to create a redirect uri.
*/
export type CreateRedirectUriRequest = {
/**
* Redirect URL.
*/
url: string;
/**
* Platform identifier.
*/
platform: string;
/**
* Optional settings for the redirect uri.
*/
settings?: RedirectUriSettings;
};
/**
* Interface representation of a Nylas update redirect uri request
*/
export type UpdateRedirectUriRequest = Partial<CreateRedirectUriRequest>;