capacitor-launchdarkly 0.0.0-stage → 0.1.0
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/CapacitorLaunchdarkly.podspec +20 -0
- package/LICENSE +21 -0
- package/Package.swift +32 -0
- package/README.md +747 -2
- package/android/build.gradle +68 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/kotlin/io/github/maximbelov/launchdarkly/Json.kt +67 -0
- package/android/src/main/kotlin/io/github/maximbelov/launchdarkly/LaunchDarklyClient.kt +250 -0
- package/android/src/main/kotlin/io/github/maximbelov/launchdarkly/LaunchDarklyPlugin.kt +148 -0
- package/android/src/main/kotlin/io/github/maximbelov/launchdarkly/LdConfigFactory.kt +34 -0
- package/android/src/main/kotlin/io/github/maximbelov/launchdarkly/StartOptions.kt +76 -0
- package/android/src/main/kotlin/io/github/maximbelov/launchdarkly/StoredContext.kt +47 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/dist/docs.json +1174 -0
- package/dist/esm/definitions.d.ts +520 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +46 -0
- package/dist/esm/web.js +204 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +221 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +224 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Sources/LaunchDarklyPlugin/ConfigFactory.swift +29 -0
- package/ios/Sources/LaunchDarklyPlugin/JSONValues.swift +68 -0
- package/ios/Sources/LaunchDarklyPlugin/LaunchDarklyClient.swift +165 -0
- package/ios/Sources/LaunchDarklyPlugin/LaunchDarklyPlugin.swift +169 -0
- package/ios/Sources/LaunchDarklyPlugin/PrivacyInfo.xcprivacy +23 -0
- package/ios/Sources/LaunchDarklyPlugin/StartOptions.swift +79 -0
- package/ios/Sources/LaunchDarklyPlugin/StoredContext.swift +43 -0
- package/ios/Tests/LaunchDarklyPluginTests/BillingSafetyTests.swift +53 -0
- package/ios/Tests/LaunchDarklyPluginTests/JSONValuesTests.swift +67 -0
- package/ios/Tests/LaunchDarklyPluginTests/LaunchDarklyPluginTests.swift +37 -0
- package/ios/Tests/LaunchDarklyPluginTests/PluginConfigurationTests.swift +52 -0
- package/ios/Tests/LaunchDarklyPluginTests/StartContextTests.swift +36 -0
- package/package.json +105 -4
package/dist/docs.json
ADDED
|
@@ -0,0 +1,1174 @@
|
|
|
1
|
+
{
|
|
2
|
+
"api": {
|
|
3
|
+
"name": "LaunchDarklyPlugin",
|
|
4
|
+
"slug": "launchdarklyplugin",
|
|
5
|
+
"docs": "",
|
|
6
|
+
"tags": [],
|
|
7
|
+
"methods": [
|
|
8
|
+
{
|
|
9
|
+
"name": "initialize",
|
|
10
|
+
"signature": "(options: InitializeOptions) => Promise<LaunchDarklyState>",
|
|
11
|
+
"parameters": [
|
|
12
|
+
{
|
|
13
|
+
"name": "options",
|
|
14
|
+
"docs": "",
|
|
15
|
+
"type": "InitializeOptions"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"returns": "Promise<LaunchDarklyState>",
|
|
19
|
+
"tags": [
|
|
20
|
+
{
|
|
21
|
+
"name": "since",
|
|
22
|
+
"text": "0.1.0"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"docs": "Starts the client from JavaScript and waits for the first set of flags or\n`options.startWaitSeconds` (5 by default), whichever comes first.\n\n- **iOS, Android**: takes `mobileKey`. Needed only by an app that does not\n put a `mobileKey` in `capacitor.config`; with one there, the client is\n already running when the app's code starts, and this call only answers\n its state.\n- **Web**: takes `clientSideId`, and is the only way to start the client.\n Needs `@launchdarkly/js-client-sdk` installed (see the README).\n\n`context` plays the part of `initialContext`: when an earlier `identify()`\nstored a context, the client starts with the stored one instead, so the\napp does not flip to an anonymous context for a moment after a restart.\n\nThere is one client per process (per page on the web). A second call with\nthe same key, or a call after the native start-up already started a\nclient with that key, changes nothing: the client is not created again,\n`context` and `options` are ignored, and the current state is answered.\nUse `identify()` to switch the context. A call with a different key closes\nthe running client and starts a new one.",
|
|
26
|
+
"complexTypes": [
|
|
27
|
+
"LaunchDarklyState",
|
|
28
|
+
"InitializeOptions"
|
|
29
|
+
],
|
|
30
|
+
"slug": "initialize"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "waitForInitialization",
|
|
34
|
+
"signature": "(options?: WaitForInitializationOptions | undefined) => Promise<WaitForInitializationResult>",
|
|
35
|
+
"parameters": [
|
|
36
|
+
{
|
|
37
|
+
"name": "options",
|
|
38
|
+
"docs": "",
|
|
39
|
+
"type": "WaitForInitializationOptions | undefined"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"returns": "Promise<WaitForInitializationResult>",
|
|
43
|
+
"tags": [
|
|
44
|
+
{
|
|
45
|
+
"name": "since",
|
|
46
|
+
"text": "0.1.0"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"docs": "Answers whether the client has received its first set of flags, waiting\nup to `timeoutSeconds` (5 by default) for that when it has not yet.\n\nResolves `{ initialized: false }` straight away when no client was\nstarted, neither natively nor with `initialize()`.",
|
|
50
|
+
"complexTypes": [
|
|
51
|
+
"WaitForInitializationResult",
|
|
52
|
+
"WaitForInitializationOptions"
|
|
53
|
+
],
|
|
54
|
+
"slug": "waitforinitialization"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "getState",
|
|
58
|
+
"signature": "() => Promise<LaunchDarklyState>",
|
|
59
|
+
"parameters": [],
|
|
60
|
+
"returns": "Promise<LaunchDarklyState>",
|
|
61
|
+
"tags": [
|
|
62
|
+
{
|
|
63
|
+
"name": "since",
|
|
64
|
+
"text": "0.1.0"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"docs": "The state of the native client: whether it has its flags, the current\ncontext and the value of every flag, read from the native SDK's own\nstore. Meant for bootstrapping the web layer at start without a second\nnetwork round trip.\n\nWhile the native start-up is still running, this waits until it is done:\nuntil the first set of flags is in, or `startWaitSeconds` has passed.\nWith no client at all it answers `initialized: false` and no flags.\n\nReading the flags this way sends no evaluation events.",
|
|
68
|
+
"complexTypes": [
|
|
69
|
+
"LaunchDarklyState"
|
|
70
|
+
],
|
|
71
|
+
"slug": "getstate"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "identify",
|
|
75
|
+
"signature": "(options: IdentifyOptions) => Promise<IdentifyResult>",
|
|
76
|
+
"parameters": [
|
|
77
|
+
{
|
|
78
|
+
"name": "options",
|
|
79
|
+
"docs": "",
|
|
80
|
+
"type": "IdentifyOptions"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"returns": "Promise<IdentifyResult>",
|
|
84
|
+
"tags": [
|
|
85
|
+
{
|
|
86
|
+
"name": "since",
|
|
87
|
+
"text": "0.1.0"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"docs": "Switches the client to another context and resolves when the flags for\nit are loaded, or when `timeoutSeconds` (5 by default) has passed.\n\nThe context the SDK accepted is stored natively, under a key of the\nplugin's own, and the next native start-up begins with it instead of\n`initialContext`. So an app logs out by identifying its anonymous\ncontext, which then becomes the stored one; `clearStoredContext()`\nforgets it altogether.\n\nAn anonymous context keeps the key it is given. The plugin never asks the\nSDK to generate one.",
|
|
91
|
+
"complexTypes": [
|
|
92
|
+
"IdentifyResult",
|
|
93
|
+
"IdentifyOptions"
|
|
94
|
+
],
|
|
95
|
+
"slug": "identify"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "variation",
|
|
99
|
+
"signature": "(options: VariationOptions) => Promise<VariationResult>",
|
|
100
|
+
"parameters": [
|
|
101
|
+
{
|
|
102
|
+
"name": "options",
|
|
103
|
+
"docs": "",
|
|
104
|
+
"type": "VariationOptions"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"returns": "Promise<VariationResult>",
|
|
108
|
+
"tags": [
|
|
109
|
+
{
|
|
110
|
+
"name": "since",
|
|
111
|
+
"text": "0.1.0"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"docs": "Evaluates one flag for the current context and answers its value, of any\nJSON type, or `defaultValue` (`null` when left out) when the flag is\nunknown or the client has not started. Goes through the SDK's JSON\nvariation call, so it records an evaluation event like any SDK call.",
|
|
115
|
+
"complexTypes": [
|
|
116
|
+
"VariationResult",
|
|
117
|
+
"VariationOptions"
|
|
118
|
+
],
|
|
119
|
+
"slug": "variation"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "allFlags",
|
|
123
|
+
"signature": "() => Promise<AllFlagsResult>",
|
|
124
|
+
"parameters": [],
|
|
125
|
+
"returns": "Promise<AllFlagsResult>",
|
|
126
|
+
"tags": [
|
|
127
|
+
{
|
|
128
|
+
"name": "since",
|
|
129
|
+
"text": "0.1.0"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"docs": "The value of every flag for the current context, from the native SDK's\nstore. Sends no evaluation events. Empty when the client has not started.",
|
|
133
|
+
"complexTypes": [
|
|
134
|
+
"AllFlagsResult"
|
|
135
|
+
],
|
|
136
|
+
"slug": "allflags"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "setStreaming",
|
|
140
|
+
"signature": "(options: SetStreamingOptions) => Promise<void>",
|
|
141
|
+
"parameters": [
|
|
142
|
+
{
|
|
143
|
+
"name": "options",
|
|
144
|
+
"docs": "",
|
|
145
|
+
"type": "SetStreamingOptions"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"returns": "Promise<void>",
|
|
149
|
+
"tags": [
|
|
150
|
+
{
|
|
151
|
+
"name": "since",
|
|
152
|
+
"text": "0.1.0"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"docs": "Switches between streaming and polling. Neither native SDK can change its\ndata source while it runs, so the plugin closes the client and starts it\nagain with the same mobile key, options and current context, then waits as\nat start-up. Flag listeners stay registered. The web SDK switches in place\n(`setStreaming()`).",
|
|
156
|
+
"complexTypes": [
|
|
157
|
+
"SetStreamingOptions"
|
|
158
|
+
],
|
|
159
|
+
"slug": "setstreaming"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "setOnline",
|
|
163
|
+
"signature": "(options: SetOnlineOptions) => Promise<void>",
|
|
164
|
+
"parameters": [
|
|
165
|
+
{
|
|
166
|
+
"name": "options",
|
|
167
|
+
"docs": "",
|
|
168
|
+
"type": "SetOnlineOptions"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"returns": "Promise<void>",
|
|
172
|
+
"tags": [
|
|
173
|
+
{
|
|
174
|
+
"name": "since",
|
|
175
|
+
"text": "0.1.0"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"docs": "Takes the client online or offline (`setOnline()` / `setOffline()` on\nAndroid, `setOnline(_:)` on iOS). Offline, the client keeps answering the\nvalues it has.\n\nThe web SDK has no offline mode. There, going offline closes the stream so\nno flag updates arrive, and going online opens it again if `streaming` is\non; analytics events are still sent.",
|
|
179
|
+
"complexTypes": [
|
|
180
|
+
"SetOnlineOptions"
|
|
181
|
+
],
|
|
182
|
+
"slug": "setonline"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "flush",
|
|
186
|
+
"signature": "() => Promise<void>",
|
|
187
|
+
"parameters": [],
|
|
188
|
+
"returns": "Promise<void>",
|
|
189
|
+
"tags": [
|
|
190
|
+
{
|
|
191
|
+
"name": "since",
|
|
192
|
+
"text": "0.1.0"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"docs": "Sends the analytics events the client has queued.",
|
|
196
|
+
"complexTypes": [],
|
|
197
|
+
"slug": "flush"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "close",
|
|
201
|
+
"signature": "() => Promise<void>",
|
|
202
|
+
"parameters": [],
|
|
203
|
+
"returns": "Promise<void>",
|
|
204
|
+
"tags": [
|
|
205
|
+
{
|
|
206
|
+
"name": "since",
|
|
207
|
+
"text": "0.1.0"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"docs": "Closes the client. It can be started again with `initialize()`; until\nthen, `variation()` answers the default value. The stored context is\nkept.",
|
|
211
|
+
"complexTypes": [],
|
|
212
|
+
"slug": "close"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "clearStoredContext",
|
|
216
|
+
"signature": "() => Promise<void>",
|
|
217
|
+
"parameters": [],
|
|
218
|
+
"returns": "Promise<void>",
|
|
219
|
+
"tags": [
|
|
220
|
+
{
|
|
221
|
+
"name": "since",
|
|
222
|
+
"text": "0.1.0"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"docs": "Forgets the context `identify()` stored, so the next native start-up\nbegins with `initialContext` again. The running client is not changed.",
|
|
226
|
+
"complexTypes": [],
|
|
227
|
+
"slug": "clearstoredcontext"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "addListener",
|
|
231
|
+
"signature": "(eventName: 'flagChange', listenerFunc: (change: FlagChange) => void) => Promise<PluginListenerHandle>",
|
|
232
|
+
"parameters": [
|
|
233
|
+
{
|
|
234
|
+
"name": "eventName",
|
|
235
|
+
"docs": "",
|
|
236
|
+
"type": "'flagChange'"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "listenerFunc",
|
|
240
|
+
"docs": "",
|
|
241
|
+
"type": "(change: FlagChange) => void"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
245
|
+
"tags": [
|
|
246
|
+
{
|
|
247
|
+
"name": "since",
|
|
248
|
+
"text": "0.1.0"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"docs": "Called for every flag whose value changes: from the stream or a poll, and\nafter `identify()` for each flag whose value differs for the new context.",
|
|
252
|
+
"complexTypes": [
|
|
253
|
+
"PluginListenerHandle",
|
|
254
|
+
"FlagChange"
|
|
255
|
+
],
|
|
256
|
+
"slug": "addlistenerflagchange-"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "addListener",
|
|
260
|
+
"signature": "(eventName: 'connectionModeChange', listenerFunc: (change: ConnectionModeChange) => void) => Promise<PluginListenerHandle>",
|
|
261
|
+
"parameters": [
|
|
262
|
+
{
|
|
263
|
+
"name": "eventName",
|
|
264
|
+
"docs": "",
|
|
265
|
+
"type": "'connectionModeChange'"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "listenerFunc",
|
|
269
|
+
"docs": "",
|
|
270
|
+
"type": "(change: ConnectionModeChange) => void"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
274
|
+
"tags": [
|
|
275
|
+
{
|
|
276
|
+
"name": "since",
|
|
277
|
+
"text": "0.1.0"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"docs": "Called when the SDK's connection mode changes, for example from streaming\nto offline. iOS and Android only: the web SDK has no connection mode, and\nthis is never called there.",
|
|
281
|
+
"complexTypes": [
|
|
282
|
+
"PluginListenerHandle",
|
|
283
|
+
"ConnectionModeChange"
|
|
284
|
+
],
|
|
285
|
+
"slug": "addlistenerconnectionmodechange-"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "removeAllListeners",
|
|
289
|
+
"signature": "() => Promise<void>",
|
|
290
|
+
"parameters": [],
|
|
291
|
+
"returns": "Promise<void>",
|
|
292
|
+
"tags": [
|
|
293
|
+
{
|
|
294
|
+
"name": "since",
|
|
295
|
+
"text": "0.1.0"
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"docs": "Removes every listener of this plugin.",
|
|
299
|
+
"complexTypes": [],
|
|
300
|
+
"slug": "removealllisteners"
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"properties": []
|
|
304
|
+
},
|
|
305
|
+
"interfaces": [
|
|
306
|
+
{
|
|
307
|
+
"name": "LaunchDarklyState",
|
|
308
|
+
"slug": "launchdarklystate",
|
|
309
|
+
"docs": "",
|
|
310
|
+
"tags": [],
|
|
311
|
+
"methods": [],
|
|
312
|
+
"properties": [
|
|
313
|
+
{
|
|
314
|
+
"name": "initialized",
|
|
315
|
+
"tags": [
|
|
316
|
+
{
|
|
317
|
+
"text": "0.1.0",
|
|
318
|
+
"name": "since"
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
"docs": "Whether the client has received its first set of flags, from the network\nor, when it was started offline, from its cache.",
|
|
322
|
+
"complexTypes": [],
|
|
323
|
+
"type": "boolean"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "context",
|
|
327
|
+
"tags": [
|
|
328
|
+
{
|
|
329
|
+
"text": "0.1.0",
|
|
330
|
+
"name": "since"
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"docs": "The current context. Absent when no client was started.",
|
|
334
|
+
"complexTypes": [
|
|
335
|
+
"LDContext"
|
|
336
|
+
],
|
|
337
|
+
"type": "LDContext"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"name": "flags",
|
|
341
|
+
"tags": [
|
|
342
|
+
{
|
|
343
|
+
"text": "0.1.0",
|
|
344
|
+
"name": "since"
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
"docs": "The value of every flag for the current context.",
|
|
348
|
+
"complexTypes": [
|
|
349
|
+
"LDFlagSet"
|
|
350
|
+
],
|
|
351
|
+
"type": "LDFlagSet"
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "LDSingleKindContext",
|
|
357
|
+
"slug": "ldsinglekindcontext",
|
|
358
|
+
"docs": "A context of one kind. Any other property is a custom attribute: a string,\nnumber, boolean, array or object.",
|
|
359
|
+
"tags": [],
|
|
360
|
+
"methods": [],
|
|
361
|
+
"properties": [
|
|
362
|
+
{
|
|
363
|
+
"name": "kind",
|
|
364
|
+
"tags": [
|
|
365
|
+
{
|
|
366
|
+
"text": "0.1.0",
|
|
367
|
+
"name": "since"
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"docs": "The context kind, for example `user` or `organization`.",
|
|
371
|
+
"complexTypes": [],
|
|
372
|
+
"type": "string"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "key",
|
|
376
|
+
"tags": [
|
|
377
|
+
{
|
|
378
|
+
"text": "0.1.0",
|
|
379
|
+
"name": "since"
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"docs": "The key. An anonymous context keeps the key it is given.",
|
|
383
|
+
"complexTypes": [],
|
|
384
|
+
"type": "string"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "name",
|
|
388
|
+
"tags": [
|
|
389
|
+
{
|
|
390
|
+
"text": "0.1.0",
|
|
391
|
+
"name": "since"
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
"docs": "",
|
|
395
|
+
"complexTypes": [],
|
|
396
|
+
"type": "string | undefined"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"name": "anonymous",
|
|
400
|
+
"tags": [
|
|
401
|
+
{
|
|
402
|
+
"text": "0.1.0",
|
|
403
|
+
"name": "since"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"docs": "Leaves the context out of the dashboard's context list. It is still\ncounted for billing by its key.",
|
|
407
|
+
"complexTypes": [],
|
|
408
|
+
"type": "boolean | undefined"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"name": "_meta",
|
|
412
|
+
"tags": [
|
|
413
|
+
{
|
|
414
|
+
"text": "0.1.0",
|
|
415
|
+
"name": "since"
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"docs": "",
|
|
419
|
+
"complexTypes": [
|
|
420
|
+
"LDContextMeta"
|
|
421
|
+
],
|
|
422
|
+
"type": "LDContextMeta"
|
|
423
|
+
}
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"name": "LDContextMeta",
|
|
428
|
+
"slug": "ldcontextmeta",
|
|
429
|
+
"docs": "",
|
|
430
|
+
"tags": [],
|
|
431
|
+
"methods": [],
|
|
432
|
+
"properties": [
|
|
433
|
+
{
|
|
434
|
+
"name": "privateAttributes",
|
|
435
|
+
"tags": [
|
|
436
|
+
{
|
|
437
|
+
"text": "0.1.0",
|
|
438
|
+
"name": "since"
|
|
439
|
+
}
|
|
440
|
+
],
|
|
441
|
+
"docs": "Attributes, by name or `/`-separated reference, that are not sent to\nLaunchDarkly in analytics events.",
|
|
442
|
+
"complexTypes": [],
|
|
443
|
+
"type": "string[] | undefined"
|
|
444
|
+
}
|
|
445
|
+
]
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"name": "LDMultiKindContext",
|
|
449
|
+
"slug": "ldmultikindcontext",
|
|
450
|
+
"docs": "A context made of several kinds: `{ kind: 'multi', user: {...}, organization: {...} }`.\nEach kind's object has no `kind` of its own.",
|
|
451
|
+
"tags": [],
|
|
452
|
+
"methods": [],
|
|
453
|
+
"properties": [
|
|
454
|
+
{
|
|
455
|
+
"name": "kind",
|
|
456
|
+
"tags": [
|
|
457
|
+
{
|
|
458
|
+
"text": "0.1.0",
|
|
459
|
+
"name": "since"
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
"docs": "",
|
|
463
|
+
"complexTypes": [],
|
|
464
|
+
"type": "'multi'"
|
|
465
|
+
}
|
|
466
|
+
]
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "LDFlagSet",
|
|
470
|
+
"slug": "ldflagset",
|
|
471
|
+
"docs": "",
|
|
472
|
+
"tags": [],
|
|
473
|
+
"methods": [],
|
|
474
|
+
"properties": []
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "InitializeOptions",
|
|
478
|
+
"slug": "initializeoptions",
|
|
479
|
+
"docs": "",
|
|
480
|
+
"tags": [],
|
|
481
|
+
"methods": [],
|
|
482
|
+
"properties": [
|
|
483
|
+
{
|
|
484
|
+
"name": "mobileKey",
|
|
485
|
+
"tags": [
|
|
486
|
+
{
|
|
487
|
+
"text": "0.1.0",
|
|
488
|
+
"name": "since"
|
|
489
|
+
}
|
|
490
|
+
],
|
|
491
|
+
"docs": "The mobile key of the LaunchDarkly environment, used on iOS and Android.",
|
|
492
|
+
"complexTypes": [],
|
|
493
|
+
"type": "string | undefined"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "clientSideId",
|
|
497
|
+
"tags": [
|
|
498
|
+
{
|
|
499
|
+
"text": "0.1.0",
|
|
500
|
+
"name": "since"
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
"docs": "The client-side ID of the LaunchDarkly environment, used on the web.",
|
|
504
|
+
"complexTypes": [],
|
|
505
|
+
"type": "string | undefined"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"name": "context",
|
|
509
|
+
"tags": [
|
|
510
|
+
{
|
|
511
|
+
"text": "0.1.0",
|
|
512
|
+
"name": "since"
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"docs": "",
|
|
516
|
+
"complexTypes": [
|
|
517
|
+
"LDContext"
|
|
518
|
+
],
|
|
519
|
+
"type": "LDContext"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "options",
|
|
523
|
+
"tags": [
|
|
524
|
+
{
|
|
525
|
+
"text": "0.1.0",
|
|
526
|
+
"name": "since"
|
|
527
|
+
}
|
|
528
|
+
],
|
|
529
|
+
"docs": "",
|
|
530
|
+
"complexTypes": [
|
|
531
|
+
"LaunchDarklyOptions"
|
|
532
|
+
],
|
|
533
|
+
"type": "LaunchDarklyOptions"
|
|
534
|
+
}
|
|
535
|
+
]
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "LaunchDarklyOptions",
|
|
539
|
+
"slug": "launchdarklyoptions",
|
|
540
|
+
"docs": "",
|
|
541
|
+
"tags": [],
|
|
542
|
+
"methods": [],
|
|
543
|
+
"properties": [
|
|
544
|
+
{
|
|
545
|
+
"name": "streaming",
|
|
546
|
+
"tags": [
|
|
547
|
+
{
|
|
548
|
+
"text": "0.1.0",
|
|
549
|
+
"name": "since"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"text": "true",
|
|
553
|
+
"name": "default"
|
|
554
|
+
}
|
|
555
|
+
],
|
|
556
|
+
"docs": "Streams flag updates when `true`, polls when `false`.",
|
|
557
|
+
"complexTypes": [],
|
|
558
|
+
"type": "boolean | undefined"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"name": "evaluationReasons",
|
|
562
|
+
"tags": [
|
|
563
|
+
{
|
|
564
|
+
"text": "0.1.0",
|
|
565
|
+
"name": "since"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"text": "false",
|
|
569
|
+
"name": "default"
|
|
570
|
+
}
|
|
571
|
+
],
|
|
572
|
+
"docs": "Asks LaunchDarkly for the reason behind each evaluation. The SDKs then\nattach it to their evaluation events.",
|
|
573
|
+
"complexTypes": [],
|
|
574
|
+
"type": "boolean | undefined"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "offline",
|
|
578
|
+
"tags": [
|
|
579
|
+
{
|
|
580
|
+
"text": "0.1.0",
|
|
581
|
+
"name": "since"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"text": "false",
|
|
585
|
+
"name": "default"
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
"docs": "Starts the client offline: it answers cached or default values and does\nnot connect until `setOnline({ online: true })`.\n\nThe web SDK has no offline mode: there `offline: true` starts without a\nstream, and the first flags are still fetched once.",
|
|
589
|
+
"complexTypes": [],
|
|
590
|
+
"type": "boolean | undefined"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"name": "startWaitSeconds",
|
|
594
|
+
"tags": [
|
|
595
|
+
{
|
|
596
|
+
"text": "0.1.0",
|
|
597
|
+
"name": "since"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"text": "5",
|
|
601
|
+
"name": "default"
|
|
602
|
+
}
|
|
603
|
+
],
|
|
604
|
+
"docs": "How long the start waits for the first set of flags, in seconds.",
|
|
605
|
+
"complexTypes": [],
|
|
606
|
+
"type": "number | undefined"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"name": "application",
|
|
610
|
+
"tags": [
|
|
611
|
+
{
|
|
612
|
+
"text": "0.1.0",
|
|
613
|
+
"name": "since"
|
|
614
|
+
}
|
|
615
|
+
],
|
|
616
|
+
"docs": "Application metadata sent to LaunchDarkly with every request. It\ndescribes the app; it is not a context, and adds nothing to the contexts\ncounted for billing.",
|
|
617
|
+
"complexTypes": [
|
|
618
|
+
"LDApplicationInfo"
|
|
619
|
+
],
|
|
620
|
+
"type": "LDApplicationInfo"
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "bootstrap",
|
|
624
|
+
"tags": [
|
|
625
|
+
{
|
|
626
|
+
"text": "0.1.0",
|
|
627
|
+
"name": "since"
|
|
628
|
+
}
|
|
629
|
+
],
|
|
630
|
+
"docs": "Web only: flags to start with before LaunchDarkly answers. `'localStorage'`\nstarts from the flags the web SDK cached in `localStorage` for the context\non an earlier visit, which the SDK does on its own; a flag object (for\nexample rendered by your server) starts from those values. The native\nSDKs always start from their own cache and ignore this.",
|
|
631
|
+
"complexTypes": [
|
|
632
|
+
"LDFlagSet"
|
|
633
|
+
],
|
|
634
|
+
"type": "'localStorage' | LDFlagSet | undefined"
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"name": "LDApplicationInfo",
|
|
640
|
+
"slug": "ldapplicationinfo",
|
|
641
|
+
"docs": "",
|
|
642
|
+
"tags": [],
|
|
643
|
+
"methods": [],
|
|
644
|
+
"properties": [
|
|
645
|
+
{
|
|
646
|
+
"name": "id",
|
|
647
|
+
"tags": [
|
|
648
|
+
{
|
|
649
|
+
"text": "0.1.0",
|
|
650
|
+
"name": "since"
|
|
651
|
+
}
|
|
652
|
+
],
|
|
653
|
+
"docs": "",
|
|
654
|
+
"complexTypes": [],
|
|
655
|
+
"type": "string | undefined"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "name",
|
|
659
|
+
"tags": [
|
|
660
|
+
{
|
|
661
|
+
"text": "0.1.0",
|
|
662
|
+
"name": "since"
|
|
663
|
+
}
|
|
664
|
+
],
|
|
665
|
+
"docs": "",
|
|
666
|
+
"complexTypes": [],
|
|
667
|
+
"type": "string | undefined"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"name": "version",
|
|
671
|
+
"tags": [
|
|
672
|
+
{
|
|
673
|
+
"text": "0.1.0",
|
|
674
|
+
"name": "since"
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
"docs": "",
|
|
678
|
+
"complexTypes": [],
|
|
679
|
+
"type": "string | undefined"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "versionName",
|
|
683
|
+
"tags": [
|
|
684
|
+
{
|
|
685
|
+
"text": "0.1.0",
|
|
686
|
+
"name": "since"
|
|
687
|
+
}
|
|
688
|
+
],
|
|
689
|
+
"docs": "",
|
|
690
|
+
"complexTypes": [],
|
|
691
|
+
"type": "string | undefined"
|
|
692
|
+
}
|
|
693
|
+
]
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"name": "WaitForInitializationResult",
|
|
697
|
+
"slug": "waitforinitializationresult",
|
|
698
|
+
"docs": "",
|
|
699
|
+
"tags": [],
|
|
700
|
+
"methods": [],
|
|
701
|
+
"properties": [
|
|
702
|
+
{
|
|
703
|
+
"name": "initialized",
|
|
704
|
+
"tags": [
|
|
705
|
+
{
|
|
706
|
+
"text": "0.1.0",
|
|
707
|
+
"name": "since"
|
|
708
|
+
}
|
|
709
|
+
],
|
|
710
|
+
"docs": "",
|
|
711
|
+
"complexTypes": [],
|
|
712
|
+
"type": "boolean"
|
|
713
|
+
}
|
|
714
|
+
]
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"name": "WaitForInitializationOptions",
|
|
718
|
+
"slug": "waitforinitializationoptions",
|
|
719
|
+
"docs": "",
|
|
720
|
+
"tags": [],
|
|
721
|
+
"methods": [],
|
|
722
|
+
"properties": [
|
|
723
|
+
{
|
|
724
|
+
"name": "timeoutSeconds",
|
|
725
|
+
"tags": [
|
|
726
|
+
{
|
|
727
|
+
"text": "0.1.0",
|
|
728
|
+
"name": "since"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"text": "5",
|
|
732
|
+
"name": "default"
|
|
733
|
+
}
|
|
734
|
+
],
|
|
735
|
+
"docs": "",
|
|
736
|
+
"complexTypes": [],
|
|
737
|
+
"type": "number | undefined"
|
|
738
|
+
}
|
|
739
|
+
]
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "IdentifyResult",
|
|
743
|
+
"slug": "identifyresult",
|
|
744
|
+
"docs": "",
|
|
745
|
+
"tags": [],
|
|
746
|
+
"methods": [],
|
|
747
|
+
"properties": [
|
|
748
|
+
{
|
|
749
|
+
"name": "timedOut",
|
|
750
|
+
"tags": [
|
|
751
|
+
{
|
|
752
|
+
"text": "0.1.0",
|
|
753
|
+
"name": "since"
|
|
754
|
+
}
|
|
755
|
+
],
|
|
756
|
+
"docs": "`true` when the flags of the new context did not arrive in time. The\ncontext is switched all the same, and the flags follow when they arrive.",
|
|
757
|
+
"complexTypes": [],
|
|
758
|
+
"type": "boolean"
|
|
759
|
+
}
|
|
760
|
+
]
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"name": "IdentifyOptions",
|
|
764
|
+
"slug": "identifyoptions",
|
|
765
|
+
"docs": "",
|
|
766
|
+
"tags": [],
|
|
767
|
+
"methods": [],
|
|
768
|
+
"properties": [
|
|
769
|
+
{
|
|
770
|
+
"name": "context",
|
|
771
|
+
"tags": [
|
|
772
|
+
{
|
|
773
|
+
"text": "0.1.0",
|
|
774
|
+
"name": "since"
|
|
775
|
+
}
|
|
776
|
+
],
|
|
777
|
+
"docs": "",
|
|
778
|
+
"complexTypes": [
|
|
779
|
+
"LDContext"
|
|
780
|
+
],
|
|
781
|
+
"type": "LDContext"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"name": "timeoutSeconds",
|
|
785
|
+
"tags": [
|
|
786
|
+
{
|
|
787
|
+
"text": "0.1.0",
|
|
788
|
+
"name": "since"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"text": "5",
|
|
792
|
+
"name": "default"
|
|
793
|
+
}
|
|
794
|
+
],
|
|
795
|
+
"docs": "How long to wait for the flags of the new context, in seconds.",
|
|
796
|
+
"complexTypes": [],
|
|
797
|
+
"type": "number | undefined"
|
|
798
|
+
}
|
|
799
|
+
]
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"name": "VariationResult",
|
|
803
|
+
"slug": "variationresult",
|
|
804
|
+
"docs": "",
|
|
805
|
+
"tags": [],
|
|
806
|
+
"methods": [],
|
|
807
|
+
"properties": [
|
|
808
|
+
{
|
|
809
|
+
"name": "value",
|
|
810
|
+
"tags": [
|
|
811
|
+
{
|
|
812
|
+
"text": "0.1.0",
|
|
813
|
+
"name": "since"
|
|
814
|
+
}
|
|
815
|
+
],
|
|
816
|
+
"docs": "",
|
|
817
|
+
"complexTypes": [],
|
|
818
|
+
"type": "unknown"
|
|
819
|
+
}
|
|
820
|
+
]
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"name": "VariationOptions",
|
|
824
|
+
"slug": "variationoptions",
|
|
825
|
+
"docs": "",
|
|
826
|
+
"tags": [],
|
|
827
|
+
"methods": [],
|
|
828
|
+
"properties": [
|
|
829
|
+
{
|
|
830
|
+
"name": "key",
|
|
831
|
+
"tags": [
|
|
832
|
+
{
|
|
833
|
+
"text": "0.1.0",
|
|
834
|
+
"name": "since"
|
|
835
|
+
}
|
|
836
|
+
],
|
|
837
|
+
"docs": "",
|
|
838
|
+
"complexTypes": [],
|
|
839
|
+
"type": "string"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "defaultValue",
|
|
843
|
+
"tags": [
|
|
844
|
+
{
|
|
845
|
+
"text": "0.1.0",
|
|
846
|
+
"name": "since"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"text": "null",
|
|
850
|
+
"name": "default"
|
|
851
|
+
}
|
|
852
|
+
],
|
|
853
|
+
"docs": "",
|
|
854
|
+
"complexTypes": [],
|
|
855
|
+
"type": "unknown"
|
|
856
|
+
}
|
|
857
|
+
]
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"name": "AllFlagsResult",
|
|
861
|
+
"slug": "allflagsresult",
|
|
862
|
+
"docs": "",
|
|
863
|
+
"tags": [],
|
|
864
|
+
"methods": [],
|
|
865
|
+
"properties": [
|
|
866
|
+
{
|
|
867
|
+
"name": "flags",
|
|
868
|
+
"tags": [
|
|
869
|
+
{
|
|
870
|
+
"text": "0.1.0",
|
|
871
|
+
"name": "since"
|
|
872
|
+
}
|
|
873
|
+
],
|
|
874
|
+
"docs": "",
|
|
875
|
+
"complexTypes": [
|
|
876
|
+
"LDFlagSet"
|
|
877
|
+
],
|
|
878
|
+
"type": "LDFlagSet"
|
|
879
|
+
}
|
|
880
|
+
]
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"name": "SetStreamingOptions",
|
|
884
|
+
"slug": "setstreamingoptions",
|
|
885
|
+
"docs": "",
|
|
886
|
+
"tags": [],
|
|
887
|
+
"methods": [],
|
|
888
|
+
"properties": [
|
|
889
|
+
{
|
|
890
|
+
"name": "enabled",
|
|
891
|
+
"tags": [
|
|
892
|
+
{
|
|
893
|
+
"text": "0.1.0",
|
|
894
|
+
"name": "since"
|
|
895
|
+
}
|
|
896
|
+
],
|
|
897
|
+
"docs": "",
|
|
898
|
+
"complexTypes": [],
|
|
899
|
+
"type": "boolean"
|
|
900
|
+
}
|
|
901
|
+
]
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"name": "SetOnlineOptions",
|
|
905
|
+
"slug": "setonlineoptions",
|
|
906
|
+
"docs": "",
|
|
907
|
+
"tags": [],
|
|
908
|
+
"methods": [],
|
|
909
|
+
"properties": [
|
|
910
|
+
{
|
|
911
|
+
"name": "online",
|
|
912
|
+
"tags": [
|
|
913
|
+
{
|
|
914
|
+
"text": "0.1.0",
|
|
915
|
+
"name": "since"
|
|
916
|
+
}
|
|
917
|
+
],
|
|
918
|
+
"docs": "",
|
|
919
|
+
"complexTypes": [],
|
|
920
|
+
"type": "boolean"
|
|
921
|
+
}
|
|
922
|
+
]
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"name": "PluginListenerHandle",
|
|
926
|
+
"slug": "pluginlistenerhandle",
|
|
927
|
+
"docs": "",
|
|
928
|
+
"tags": [],
|
|
929
|
+
"methods": [],
|
|
930
|
+
"properties": [
|
|
931
|
+
{
|
|
932
|
+
"name": "remove",
|
|
933
|
+
"tags": [],
|
|
934
|
+
"docs": "",
|
|
935
|
+
"complexTypes": [],
|
|
936
|
+
"type": "() => Promise<void>"
|
|
937
|
+
}
|
|
938
|
+
]
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"name": "FlagChange",
|
|
942
|
+
"slug": "flagchange",
|
|
943
|
+
"docs": "",
|
|
944
|
+
"tags": [],
|
|
945
|
+
"methods": [],
|
|
946
|
+
"properties": [
|
|
947
|
+
{
|
|
948
|
+
"name": "key",
|
|
949
|
+
"tags": [
|
|
950
|
+
{
|
|
951
|
+
"text": "0.1.0",
|
|
952
|
+
"name": "since"
|
|
953
|
+
}
|
|
954
|
+
],
|
|
955
|
+
"docs": "",
|
|
956
|
+
"complexTypes": [],
|
|
957
|
+
"type": "string"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"name": "value",
|
|
961
|
+
"tags": [
|
|
962
|
+
{
|
|
963
|
+
"text": "0.1.0",
|
|
964
|
+
"name": "since"
|
|
965
|
+
}
|
|
966
|
+
],
|
|
967
|
+
"docs": "The new value; `null` when the flag was deleted.",
|
|
968
|
+
"complexTypes": [],
|
|
969
|
+
"type": "unknown"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"name": "previous",
|
|
973
|
+
"tags": [
|
|
974
|
+
{
|
|
975
|
+
"text": "0.1.0",
|
|
976
|
+
"name": "since"
|
|
977
|
+
}
|
|
978
|
+
],
|
|
979
|
+
"docs": "The value before the change, when the plugin knew one.",
|
|
980
|
+
"complexTypes": [],
|
|
981
|
+
"type": "unknown"
|
|
982
|
+
}
|
|
983
|
+
]
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"name": "ConnectionModeChange",
|
|
987
|
+
"slug": "connectionmodechange",
|
|
988
|
+
"docs": "",
|
|
989
|
+
"tags": [],
|
|
990
|
+
"methods": [],
|
|
991
|
+
"properties": [
|
|
992
|
+
{
|
|
993
|
+
"name": "mode",
|
|
994
|
+
"tags": [
|
|
995
|
+
{
|
|
996
|
+
"text": "0.1.0",
|
|
997
|
+
"name": "since"
|
|
998
|
+
}
|
|
999
|
+
],
|
|
1000
|
+
"docs": "The SDK's own name for the mode, which differs between the platforms:\non iOS `streaming`, `polling`, `offline` or\n`establishingStreamingConnection`; on Android the name of the SDK's\n`ConnectionMode`, such as `STREAMING`, `POLLING`, `OFFLINE`,\n`SET_OFFLINE` or `BACKGROUND_POLLING`.",
|
|
1001
|
+
"complexTypes": [],
|
|
1002
|
+
"type": "string"
|
|
1003
|
+
}
|
|
1004
|
+
]
|
|
1005
|
+
}
|
|
1006
|
+
],
|
|
1007
|
+
"enums": [],
|
|
1008
|
+
"typeAliases": [
|
|
1009
|
+
{
|
|
1010
|
+
"name": "LDContext",
|
|
1011
|
+
"slug": "ldcontext",
|
|
1012
|
+
"docs": "A context in the JSON shape LaunchDarkly's SDKs use: a single-kind context\nor a multi-context.",
|
|
1013
|
+
"types": [
|
|
1014
|
+
{
|
|
1015
|
+
"text": "LDSingleKindContext",
|
|
1016
|
+
"complexTypes": [
|
|
1017
|
+
"LDSingleKindContext"
|
|
1018
|
+
]
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"text": "LDMultiKindContext",
|
|
1022
|
+
"complexTypes": [
|
|
1023
|
+
"LDMultiKindContext"
|
|
1024
|
+
]
|
|
1025
|
+
}
|
|
1026
|
+
]
|
|
1027
|
+
}
|
|
1028
|
+
],
|
|
1029
|
+
"pluginConfigs": [
|
|
1030
|
+
{
|
|
1031
|
+
"name": "LaunchDarkly",
|
|
1032
|
+
"slug": "launchdarkly",
|
|
1033
|
+
"properties": [
|
|
1034
|
+
{
|
|
1035
|
+
"name": "mobileKey",
|
|
1036
|
+
"tags": [
|
|
1037
|
+
{
|
|
1038
|
+
"text": "0.1.0",
|
|
1039
|
+
"name": "since"
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"text": "\"mob-00000000-0000-0000-0000-000000000000\"",
|
|
1043
|
+
"name": "example"
|
|
1044
|
+
}
|
|
1045
|
+
],
|
|
1046
|
+
"docs": "The mobile key of the LaunchDarkly environment. Without it there is\nno native start-up, and `initialize()` starts the client instead.",
|
|
1047
|
+
"complexTypes": [],
|
|
1048
|
+
"type": "string | undefined"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "initialContext",
|
|
1052
|
+
"tags": [
|
|
1053
|
+
{
|
|
1054
|
+
"text": "0.1.0",
|
|
1055
|
+
"name": "since"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"text": "{ kind: 'user', key: 'anonymous_user', anonymous: true }",
|
|
1059
|
+
"name": "default"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"text": "{ \"kind\": \"user\", \"key\": \"anonymous_user\", \"anonymous\": true }",
|
|
1063
|
+
"name": "example"
|
|
1064
|
+
}
|
|
1065
|
+
],
|
|
1066
|
+
"docs": "The context the native start-up uses when no context was stored by an\nearlier `identify()`.",
|
|
1067
|
+
"complexTypes": [
|
|
1068
|
+
"LDContext"
|
|
1069
|
+
],
|
|
1070
|
+
"type": "LDContext"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"name": "streaming",
|
|
1074
|
+
"tags": [
|
|
1075
|
+
{
|
|
1076
|
+
"text": "0.1.0",
|
|
1077
|
+
"name": "since"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"text": "true",
|
|
1081
|
+
"name": "default"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"text": "true",
|
|
1085
|
+
"name": "example"
|
|
1086
|
+
}
|
|
1087
|
+
],
|
|
1088
|
+
"docs": "Streams flag updates when `true`, polls when `false`.",
|
|
1089
|
+
"complexTypes": [],
|
|
1090
|
+
"type": "boolean | undefined"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"name": "evaluationReasons",
|
|
1094
|
+
"tags": [
|
|
1095
|
+
{
|
|
1096
|
+
"text": "0.1.0",
|
|
1097
|
+
"name": "since"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"text": "false",
|
|
1101
|
+
"name": "default"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"text": "false",
|
|
1105
|
+
"name": "example"
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
"docs": "Asks LaunchDarkly for the reason behind each evaluation.",
|
|
1109
|
+
"complexTypes": [],
|
|
1110
|
+
"type": "boolean | undefined"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"name": "offline",
|
|
1114
|
+
"tags": [
|
|
1115
|
+
{
|
|
1116
|
+
"text": "0.1.0",
|
|
1117
|
+
"name": "since"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"text": "false",
|
|
1121
|
+
"name": "default"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"text": "false",
|
|
1125
|
+
"name": "example"
|
|
1126
|
+
}
|
|
1127
|
+
],
|
|
1128
|
+
"docs": "Starts the client offline, until `setOnline({ online: true })`.",
|
|
1129
|
+
"complexTypes": [],
|
|
1130
|
+
"type": "boolean | undefined"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"name": "startWaitSeconds",
|
|
1134
|
+
"tags": [
|
|
1135
|
+
{
|
|
1136
|
+
"text": "0.1.0",
|
|
1137
|
+
"name": "since"
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"text": "5",
|
|
1141
|
+
"name": "default"
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"text": "5",
|
|
1145
|
+
"name": "example"
|
|
1146
|
+
}
|
|
1147
|
+
],
|
|
1148
|
+
"docs": "How long the start waits for the first set of flags, in seconds.",
|
|
1149
|
+
"complexTypes": [],
|
|
1150
|
+
"type": "number | undefined"
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"name": "application",
|
|
1154
|
+
"tags": [
|
|
1155
|
+
{
|
|
1156
|
+
"text": "0.1.0",
|
|
1157
|
+
"name": "since"
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
"text": "{ \"id\": \"com.example.plugin\", \"version\": \"1.0.0\" }",
|
|
1161
|
+
"name": "example"
|
|
1162
|
+
}
|
|
1163
|
+
],
|
|
1164
|
+
"docs": "Application metadata sent to LaunchDarkly with every request.",
|
|
1165
|
+
"complexTypes": [
|
|
1166
|
+
"LDApplicationInfo"
|
|
1167
|
+
],
|
|
1168
|
+
"type": "LDApplicationInfo"
|
|
1169
|
+
}
|
|
1170
|
+
],
|
|
1171
|
+
"docs": "Starts the native LaunchDarkly client as the app launches, before the\nweb view runs any app code. Leave `mobileKey` out to start it from\nJavaScript with `initialize()` instead. iOS and Android only."
|
|
1172
|
+
}
|
|
1173
|
+
]
|
|
1174
|
+
}
|