-
Notifications
You must be signed in to change notification settings - Fork 7
/
window.d.ts
78 lines (64 loc) · 3.12 KB
/
window.d.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
75
76
77
78
import {Encoding, FS, Process, Util} from "./CEPEngine_extensions";
import {CSEvent, CSInterface} from "./src"
declare global {
interface IMSInterface {
imsConnect(): string
imsDisconnect(imsRef: string): void
imsFetchAccounts(imsRef: string, clientId: string): string
imsFetchUserProfileData(imsRef: string, userAccountGuid: string): string
imsConnectWithEndpoint(imsEndpoint: any): string
imsFetchAccounts(imsRef: string, clientId: string): string
imsFetchAccessToken(imsRef: string, clientId: string, clientSecret: string, userAccountGuid: string, serviceAccountGuid?: string, scope?: string): boolean
imsFetchContinueToken(imsRef: any, bearerToken: string, targetClientId: string, redirectUri?: string, scope?: string, responseType?: string, locale?: string): string
imsRevokeDeviceToken(imsRef: string, clientId: string, clientSecret: string, userAccountGuid: string, serviceAccountGuid?: string): boolean
imsSetProxyCredentials(proxyUsername: string, proxyPassword: string): void
showAAM(clientId: string, clientSecret: string, redirectUri: string, userAccountGuid: string, serviceAccountGuid: string, scope: string): boolean
imsGetCurrentUserId(): object
imsGetCurrentUserIdHelper(callback: Function): void
imsLogoutUser(imsRef: string, userAccountGuid: string, clientId: string): object
}
interface CEP extends IMSInterface {
addEventListener(type: string, listener: Function, obj?: object): void
removeEventListener(type: string, listener: any, obj?: object): void
requestOpenExtension(extensionId: string, startupParams?: string): void
closeExtension(): void
dispatchEvent(event: CSEvent): void
dumpInstallationInfo(): string
evalScript(script: string, callback?: Function): void
getCurrentApiVersion(): string
getCurrentImsUserId(): object
getExtensionId(): string
getExtensions(extensionIds?: string): string
getHostCapabilities(): string
getHostEnvironment(): string
getMonitorScaleFactor(): number
getNetworkPreferences(): string
getScaleFactor(): number
getSystemPath(pathType: CSInterface.SystemPath): string
initResourceBundle(): string
invokeAsync(type: string, params: string, callback: Function, obj?: object): Function
invokeSync(type: string, a?: string): string
registerInvalidCertificateCallback(callback: Function): void
registerKeyEventsInterest(keyEventsInterest?: string): void
resizeContent(width: number, height: number): void
setScaleFactorChangedHandler(handler: Function): void
loadSnapshot(unknown: string): void
}
interface Window {
cep: {
fs: FS,
process: Process,
util: Util,
encoding: Encoding
},
cep_node: {
Buffer: Buffer
global: Window
process: NodeJS.Process
require: NodeJS.Require
__dirname: string
__filename: string
}
__adobe_cep__: CEP
}
}