@openfin/cloud-interop-core-api 0.0.1-alpha.fe96ffc → 0.0.1-alpha.ffa9f89

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.
@@ -1,142 +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
- * This acts as a namespace for the interop messages that allows separation of messages between different groups of applications for the same user
13
- */
14
- platformId: string;
15
- /**
16
- * An identifier for the source environment e.g. a hostname, a browser name etc.
17
- */
18
- sourceId: string;
19
- /**
20
- * A display name for the source environment e.g. Andys Mobile
21
- */
22
- sourceDisplayName?: string;
23
- /**
24
- * The maximum number of times to retry connecting to the cloud interop service when the connection is dropped
25
- * defaults to 30
26
- */
27
- reconnectRetryLimit?: number;
28
- /**
29
- * Specifies how often keep alive messages should be sent to the cloud interop service in seconds
30
- * defaults to 30
31
- */
32
- keepAliveIntervalSeconds?: number;
33
- /**
34
- * Optional function to call with any logging messages to allow integration with the host application's logging
35
- *
36
- * defaults to console.log
37
- */
38
- logger?: CloudInteropLogger;
39
- /**
40
- * Determines the type of authentication to use with the service gateway
41
- * defaults to 'none'
42
- *
43
- * 'jwt' - Use JWT authentication, in this case jwtAuthenticationParameters must also be provided
44
- * 'basic' - Use basic authentication, in this case basicAuthenticationParameters must also be provided
45
- * 'default' - Authentication will be inherited from the current session
46
- */
47
- authenticationType?: 'jwt' | 'basic' | 'default';
48
- /**
49
- * Optional parameters for basic authentication
50
- */
51
- basicAuthenticationParameters?: {
52
- /**
53
- * The username to use for basic authentication
54
- */
55
- username: string;
56
- /**
57
- * The password to use for basic authentication
58
- */
59
- password: string;
60
- };
61
- /**
62
- * Optional parameters for JWT authentication
63
- */
64
- jwtAuthenticationParameters?: {
65
- /**
66
- * When JWT authentication is being used, this will be invoked just whenever a JWT token is required for a request
67
- */
68
- jwtRequestCallback: () => string | object;
69
- /**
70
- * The id of the service gateway JWT authentication definition to use
71
- *
72
- * Note: Contact Here support to to get your organization's authentication id
73
- */
74
- authenticationId: string;
75
- };
76
- };
77
- export type CloudInteropSettings = {
78
- url: string;
79
- };
80
- /**
81
- * Represents a session
82
- */
83
- export type InteropSession = {
84
- sessionId: string;
85
- };
86
- /**
87
- * Represents a source session
88
- */
89
- export type Source = {
90
- /**
91
- * Source session id
92
- */
93
- sessionId: string;
94
- /**
95
- * source environment id
96
- */
97
- sourceId: string;
98
- /**
99
- * source environment display name
100
- */
101
- sourceDisplayName: string;
102
- };
103
- /**
104
- * Represents the details of an intent found during discovery
105
- */
106
- export type IntentDetail = {
107
- /**
108
- * The location of the intent implementation
109
- */
110
- source: Source;
111
- /**
112
- * The instance id of the intent
113
- */
114
- intentInstanceId: string;
115
- /**
116
- * The name of the intent
117
- */
118
- intentName: string;
119
- };
120
- /**
121
- * Represents a context received from another cloud interop publisher
122
- *
123
- * @export
124
- * @type ContextEvent
125
- * @property {string} contextGroup - The context group
126
- * @property {object} context - The context
127
- * @property {Source} source - The source of the context
128
- */
129
- export type ContextEvent = {
130
- /**
131
- * The context group
132
- */
133
- contextGroup: string;
134
- /**
135
- * The context object
136
- */
137
- context: object;
138
- /**
139
- * The source of the context
140
- */
141
- source: Source;
142
- };