@openfin/cloud-interop-core-api 0.0.1-alpha.fba3468 → 0.0.1-alpha.fc11463
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.d.ts +882 -0
- package/index.cjs +665 -0
- package/index.mjs +661 -0
- package/package.json +16 -229
- package/dist/api.d.ts +0 -63
- package/dist/errors/api.error.d.ts +0 -7
- package/dist/index.cjs +0 -296
- package/dist/index.d.ts +0 -3
- package/dist/index.mjs +0 -4058
- package/dist/interfaces.d.ts +0 -147
package/dist/interfaces.d.ts
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
export type LogLevel = 'log' | 'debug' | 'info' | 'warn' | 'error';
|
|
2
|
-
/**
|
|
3
|
-
* Represents a logging function to be used by the cloud interop client
|
|
4
|
-
*/
|
|
5
|
-
export type CloudInteropLogger = (level: LogLevel, message: string) => void;
|
|
6
|
-
/**
|
|
7
|
-
* Represents the parameters to use to connect to an interop server
|
|
8
|
-
*/
|
|
9
|
-
export type ConnectParameters = {
|
|
10
|
-
/**
|
|
11
|
-
* ID for a group of shared applications.
|
|
12
|
-
*/
|
|
13
|
-
platformId: string;
|
|
14
|
-
/**
|
|
15
|
-
* An identifier for the source environment e.g. a hostname, a browser name etc.
|
|
16
|
-
*/
|
|
17
|
-
sourceId?: string;
|
|
18
|
-
/**
|
|
19
|
-
* A display name for the source environment e.g. Andys Mobile
|
|
20
|
-
*/
|
|
21
|
-
sourceDisplayName?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Specifies an optional extra divider to use that allows separation of interop messages for the
|
|
24
|
-
* same user
|
|
25
|
-
* defaults to "default"
|
|
26
|
-
*/
|
|
27
|
-
realm?: string;
|
|
28
|
-
/**
|
|
29
|
-
* The maximum number of times to retry connecting to the cloud interop service when the connection is dropped
|
|
30
|
-
* defaults to 30
|
|
31
|
-
*/
|
|
32
|
-
reconnectRetryLimit?: number;
|
|
33
|
-
/**
|
|
34
|
-
* Specifies how often keep alive messages should be sent to the cloud interop service in seconds
|
|
35
|
-
* defaults to 30
|
|
36
|
-
*/
|
|
37
|
-
keepAliveIntervalSeconds?: number;
|
|
38
|
-
/**
|
|
39
|
-
* Optional function to call with any logging messages to allow integration with the host application's logging
|
|
40
|
-
*
|
|
41
|
-
* defaults to console.log
|
|
42
|
-
*/
|
|
43
|
-
logger?: CloudInteropLogger;
|
|
44
|
-
/**
|
|
45
|
-
* Determines the type of authentication to use with the service gateway
|
|
46
|
-
* defaults to 'none'
|
|
47
|
-
*
|
|
48
|
-
* 'jwt' - Use JWT authentication, in this case jwtAuthenticationParameters must also be provided
|
|
49
|
-
* 'basic' - Use basic authentication, in this case basicAuthenticationParameters must also be provided
|
|
50
|
-
* 'default' - Authentication will be inherited from the current session
|
|
51
|
-
*/
|
|
52
|
-
authenticationType?: 'jwt' | 'basic' | 'default';
|
|
53
|
-
/**
|
|
54
|
-
* Optional parameters for basic authentication
|
|
55
|
-
*/
|
|
56
|
-
basicAuthenticationParameters?: {
|
|
57
|
-
/**
|
|
58
|
-
* The username to use for basic authentication
|
|
59
|
-
*/
|
|
60
|
-
username: string;
|
|
61
|
-
/**
|
|
62
|
-
* The password to use for basic authentication
|
|
63
|
-
*/
|
|
64
|
-
password: string;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Optional parameters for JWT authentication
|
|
68
|
-
*/
|
|
69
|
-
jwtAuthenticationParameters?: {
|
|
70
|
-
/**
|
|
71
|
-
* When JWT authentication is being used, this will be invoked just whenever a JWT token is required for a request
|
|
72
|
-
*/
|
|
73
|
-
jwtRequestCallback: () => string | object;
|
|
74
|
-
/**
|
|
75
|
-
* The id of the service gateway JWT authentication definition to use
|
|
76
|
-
*
|
|
77
|
-
* Note: Contact Here support to to get your organization's authentication id
|
|
78
|
-
*/
|
|
79
|
-
authenticationId: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
export type CloudInteropSettings = {
|
|
83
|
-
url: string;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Represents a session
|
|
87
|
-
*/
|
|
88
|
-
export type InteropSession = {
|
|
89
|
-
sessionId: string;
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* Represents a source session
|
|
93
|
-
*/
|
|
94
|
-
export type Source = {
|
|
95
|
-
/**
|
|
96
|
-
* Source session id
|
|
97
|
-
*/
|
|
98
|
-
sessionId: string;
|
|
99
|
-
/**
|
|
100
|
-
* source environment id
|
|
101
|
-
*/
|
|
102
|
-
sourceId: string;
|
|
103
|
-
/**
|
|
104
|
-
* source environment display name
|
|
105
|
-
*/
|
|
106
|
-
sourceDisplayName: string;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* Represents the details of an intent found during discovery
|
|
110
|
-
*/
|
|
111
|
-
export type IntentDetail = {
|
|
112
|
-
/**
|
|
113
|
-
* The location of the intent implementation
|
|
114
|
-
*/
|
|
115
|
-
source: Source;
|
|
116
|
-
/**
|
|
117
|
-
* The instance id of the intent
|
|
118
|
-
*/
|
|
119
|
-
intentInstanceId: string;
|
|
120
|
-
/**
|
|
121
|
-
* The name of the intent
|
|
122
|
-
*/
|
|
123
|
-
intentName: string;
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* Represents a context received from another cloud interop publisher
|
|
127
|
-
*
|
|
128
|
-
* @export
|
|
129
|
-
* @type ContextEvent
|
|
130
|
-
* @property {string} contextGroup - The context group
|
|
131
|
-
* @property {object} context - The context
|
|
132
|
-
* @property {Source} source - The source of the context
|
|
133
|
-
*/
|
|
134
|
-
export type ContextEvent = {
|
|
135
|
-
/**
|
|
136
|
-
* The context group
|
|
137
|
-
*/
|
|
138
|
-
contextGroup: string;
|
|
139
|
-
/**
|
|
140
|
-
* The context object
|
|
141
|
-
*/
|
|
142
|
-
context: object;
|
|
143
|
-
/**
|
|
144
|
-
* The source of the context
|
|
145
|
-
*/
|
|
146
|
-
source: Source;
|
|
147
|
-
};
|