@capgo/capacitor-updater 8.0.0 → 8.0.1

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.
Files changed (40) hide show
  1. package/CapgoCapacitorUpdater.podspec +2 -2
  2. package/Package.swift +35 -0
  3. package/README.md +667 -206
  4. package/android/build.gradle +16 -11
  5. package/android/proguard-rules.pro +28 -0
  6. package/android/src/main/AndroidManifest.xml +0 -1
  7. package/android/src/main/java/ee/forgr/capacitor_updater/BundleInfo.java +134 -194
  8. package/android/src/main/java/ee/forgr/capacitor_updater/BundleStatus.java +23 -23
  9. package/android/src/main/java/ee/forgr/capacitor_updater/Callback.java +13 -0
  10. package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdater.java +967 -1027
  11. package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +1283 -1180
  12. package/android/src/main/java/ee/forgr/capacitor_updater/CryptoCipherV2.java +276 -0
  13. package/android/src/main/java/ee/forgr/capacitor_updater/DataManager.java +28 -0
  14. package/android/src/main/java/ee/forgr/capacitor_updater/DelayCondition.java +45 -48
  15. package/android/src/main/java/ee/forgr/capacitor_updater/DelayUntilNext.java +4 -4
  16. package/android/src/main/java/ee/forgr/capacitor_updater/DownloadService.java +440 -113
  17. package/android/src/main/java/ee/forgr/capacitor_updater/DownloadWorkerManager.java +101 -0
  18. package/android/src/main/java/ee/forgr/capacitor_updater/InternalUtils.java +32 -0
  19. package/dist/docs.json +1316 -473
  20. package/dist/esm/definitions.d.ts +518 -248
  21. package/dist/esm/definitions.js.map +1 -1
  22. package/dist/esm/index.d.ts +2 -2
  23. package/dist/esm/index.js +4 -4
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/web.d.ts +25 -41
  26. package/dist/esm/web.js +67 -35
  27. package/dist/esm/web.js.map +1 -1
  28. package/dist/plugin.cjs.js +67 -35
  29. package/dist/plugin.cjs.js.map +1 -1
  30. package/dist/plugin.js +67 -35
  31. package/dist/plugin.js.map +1 -1
  32. package/ios/Plugin/CapacitorUpdater.swift +736 -361
  33. package/ios/Plugin/CapacitorUpdaterPlugin.swift +436 -136
  34. package/ios/Plugin/CryptoCipherV2.swift +310 -0
  35. package/ios/Plugin/InternalUtils.swift +258 -0
  36. package/package.json +33 -29
  37. package/android/src/main/java/ee/forgr/capacitor_updater/CryptoCipher.java +0 -153
  38. package/ios/Plugin/CapacitorUpdaterPlugin.h +0 -10
  39. package/ios/Plugin/CapacitorUpdaterPlugin.m +0 -27
  40. package/ios/Plugin/CryptoCipher.swift +0 -240
package/dist/docs.json CHANGED
@@ -7,9 +7,9 @@
7
7
  "methods": [
8
8
  {
9
9
  "name": "notifyAppReady",
10
- "signature": "() => Promise<BundleInfo>",
10
+ "signature": "() => Promise<AppReadyResult>",
11
11
  "parameters": [],
12
- "returns": "Promise<BundleInfo>",
12
+ "returns": "Promise<AppReadyResult>",
13
13
  "tags": [
14
14
  {
15
15
  "name": "returns",
@@ -17,207 +17,322 @@
17
17
  },
18
18
  {
19
19
  "name": "throws",
20
- "text": "An error if something went wrong"
20
+ "text": "{Error}"
21
21
  }
22
22
  ],
23
- "docs": "Notify Capacitor Updater that the current bundle is working (a rollback will occur of this method is not called on every app launch)\nBy default this method should be called in the first 10 sec after app launch, otherwise a rollback will occur.\nChange this behaviour with {@link appReadyTimeout}",
23
+ "docs": "Notify Capacitor Updater that the current bundle is working (a rollback will occur if this method is not called on every app launch)\nBy default this method should be called in the first 10 sec after app launch, otherwise a rollback will occur.\nChange this behaviour with {@link appReadyTimeout}",
24
24
  "complexTypes": [
25
- "BundleInfo"
25
+ "AppReadyResult"
26
26
  ],
27
27
  "slug": "notifyappready"
28
28
  },
29
29
  {
30
- "name": "download",
31
- "signature": "(options: { url: string; version: string; sessionKey?: string; checksum?: string; }) => Promise<BundleInfo>",
30
+ "name": "setUpdateUrl",
31
+ "signature": "(options: UpdateUrl) => Promise<void>",
32
32
  "parameters": [
33
33
  {
34
34
  "name": "options",
35
- "docs": "",
36
- "type": "{ url: string; version: string; sessionKey?: string | undefined; checksum?: string | undefined; }"
35
+ "docs": "contains the URL to use for checking for updates.",
36
+ "type": "UpdateUrl"
37
37
  }
38
38
  ],
39
- "returns": "Promise<BundleInfo>",
39
+ "returns": "Promise<void>",
40
40
  "tags": [
41
41
  {
42
- "name": "returns",
43
- "text": "The {@link BundleInfo} for the specified bundle."
42
+ "name": "param",
43
+ "text": "options contains the URL to use for checking for updates."
44
+ },
45
+ {
46
+ "name": "returns"
47
+ },
48
+ {
49
+ "name": "throws",
50
+ "text": "{Error}"
44
51
  },
52
+ {
53
+ "name": "since",
54
+ "text": "5.4.0"
55
+ }
56
+ ],
57
+ "docs": "Set the updateUrl for the app, this will be used to check for updates.",
58
+ "complexTypes": [
59
+ "UpdateUrl"
60
+ ],
61
+ "slug": "setupdateurl"
62
+ },
63
+ {
64
+ "name": "setStatsUrl",
65
+ "signature": "(options: StatsUrl) => Promise<void>",
66
+ "parameters": [
67
+ {
68
+ "name": "options",
69
+ "docs": "contains the URL to use for sending statistics.",
70
+ "type": "StatsUrl"
71
+ }
72
+ ],
73
+ "returns": "Promise<void>",
74
+ "tags": [
45
75
  {
46
76
  "name": "param",
47
- "text": "url The URL of the bundle zip file (e.g: dist.zip) to be downloaded. (This can be any URL. E.g: Amazon S3, a github tag, any other place you've hosted your bundle.)"
77
+ "text": "options contains the URL to use for sending statistics."
78
+ },
79
+ {
80
+ "name": "returns"
81
+ },
82
+ {
83
+ "name": "throws",
84
+ "text": "{Error}"
48
85
  },
86
+ {
87
+ "name": "since",
88
+ "text": "5.4.0"
89
+ }
90
+ ],
91
+ "docs": "Set the statsUrl for the app, this will be used to send statistics. Passing an empty string will disable statistics gathering.",
92
+ "complexTypes": [
93
+ "StatsUrl"
94
+ ],
95
+ "slug": "setstatsurl"
96
+ },
97
+ {
98
+ "name": "setChannelUrl",
99
+ "signature": "(options: ChannelUrl) => Promise<void>",
100
+ "parameters": [
101
+ {
102
+ "name": "options",
103
+ "docs": "contains the URL to use for setting the channel.",
104
+ "type": "ChannelUrl"
105
+ }
106
+ ],
107
+ "returns": "Promise<void>",
108
+ "tags": [
49
109
  {
50
110
  "name": "param",
51
- "text": "version set the version code/name of this bundle/version"
111
+ "text": "options contains the URL to use for setting the channel."
112
+ },
113
+ {
114
+ "name": "returns"
115
+ },
116
+ {
117
+ "name": "throws",
118
+ "text": "{Error}"
52
119
  },
120
+ {
121
+ "name": "since",
122
+ "text": "5.4.0"
123
+ }
124
+ ],
125
+ "docs": "Set the channelUrl for the app, this will be used to set the channel.",
126
+ "complexTypes": [
127
+ "ChannelUrl"
128
+ ],
129
+ "slug": "setchannelurl"
130
+ },
131
+ {
132
+ "name": "download",
133
+ "signature": "(options: DownloadOptions) => Promise<BundleInfo>",
134
+ "parameters": [
135
+ {
136
+ "name": "options",
137
+ "docs": "The {@link DownloadOptions} for downloading a new bundle zip.",
138
+ "type": "DownloadOptions"
139
+ }
140
+ ],
141
+ "returns": "Promise<BundleInfo>",
142
+ "tags": [
53
143
  {
54
144
  "name": "example",
55
- "text": "https://example.com/versions/{version}/dist.zip"
145
+ "text": "const bundle = await CapacitorUpdater.download({ url: `https://example.com/versions/${version}/dist.zip`, version });"
146
+ },
147
+ {
148
+ "name": "returns",
149
+ "text": "The {@link BundleInfo} for the specified bundle."
150
+ },
151
+ {
152
+ "name": "param",
153
+ "text": "options The {@link DownloadOptions} for downloading a new bundle zip."
56
154
  }
57
155
  ],
58
156
  "docs": "Download a new bundle from the provided URL, it should be a zip file, with files inside or with a unique id inside with all your files",
59
157
  "complexTypes": [
60
- "BundleInfo"
158
+ "BundleInfo",
159
+ "DownloadOptions"
61
160
  ],
62
161
  "slug": "download"
63
162
  },
64
163
  {
65
164
  "name": "next",
66
- "signature": "(options: { id: string; }) => Promise<BundleInfo>",
165
+ "signature": "(options: BundleId) => Promise<BundleInfo>",
67
166
  "parameters": [
68
167
  {
69
168
  "name": "options",
70
- "docs": "",
71
- "type": "{ id: string; }"
169
+ "docs": "Contains the ID of the next Bundle to set on next app launch. {@link BundleInfo.id}",
170
+ "type": "BundleId"
72
171
  }
73
172
  ],
74
173
  "returns": "Promise<BundleInfo>",
75
174
  "tags": [
76
175
  {
77
- "name": "returns",
78
- "text": "The {@link BundleInfo} for the specified bundle id."
176
+ "name": "param",
177
+ "text": "options Contains the ID of the next Bundle to set on next app launch. {@link BundleInfo.id}"
79
178
  },
80
179
  {
81
- "name": "param",
82
- "text": "id The bundle id to set as current, next time the app is reloaded. See {@link BundleInfo.id}"
180
+ "name": "returns",
181
+ "text": "The {@link BundleInfo} for the specified bundle id."
83
182
  },
84
183
  {
85
184
  "name": "throws",
86
- "text": "An error if there are is no index.html file inside the bundle folder."
185
+ "text": "{Error} When there is no index.html file inside the bundle folder."
87
186
  }
88
187
  ],
89
188
  "docs": "Set the next bundle to be used when the app is reloaded.",
90
189
  "complexTypes": [
91
- "BundleInfo"
190
+ "BundleInfo",
191
+ "BundleId"
92
192
  ],
93
193
  "slug": "next"
94
194
  },
95
195
  {
96
196
  "name": "set",
97
- "signature": "(options: { id: string; }) => Promise<void>",
197
+ "signature": "(options: BundleId) => Promise<void>",
98
198
  "parameters": [
99
199
  {
100
200
  "name": "options",
101
- "docs": "",
102
- "type": "{ id: string; }"
201
+ "docs": "A {@link BundleId} object containing the new bundle id to set as current.",
202
+ "type": "BundleId"
103
203
  }
104
204
  ],
105
205
  "returns": "Promise<void>",
106
206
  "tags": [
107
207
  {
108
208
  "name": "param",
109
- "text": "id The bundle id to set as current. See {@link BundleInfo.id}"
209
+ "text": "options A {@link BundleId} object containing the new bundle id to set as current."
110
210
  },
111
211
  {
112
- "name": "returns",
113
- "text": "An empty promise."
212
+ "name": "returns"
114
213
  },
115
214
  {
116
215
  "name": "throws",
117
- "text": "An error if there are is no index.html file inside the bundle folder."
216
+ "text": "{Error} When there are is no index.html file inside the bundle folder."
118
217
  }
119
218
  ],
120
219
  "docs": "Set the current bundle and immediately reloads the app.",
121
- "complexTypes": [],
220
+ "complexTypes": [
221
+ "BundleId"
222
+ ],
122
223
  "slug": "set"
123
224
  },
124
225
  {
125
226
  "name": "delete",
126
- "signature": "(options: { id: string; }) => Promise<void>",
227
+ "signature": "(options: BundleId) => Promise<void>",
127
228
  "parameters": [
128
229
  {
129
230
  "name": "options",
130
- "docs": "",
131
- "type": "{ id: string; }"
231
+ "docs": "A {@link BundleId} object containing the ID of a bundle to delete (note, this is the bundle id, NOT the version name)",
232
+ "type": "BundleId"
132
233
  }
133
234
  ],
134
235
  "returns": "Promise<void>",
135
236
  "tags": [
136
237
  {
137
- "name": "returns",
138
- "text": "an empty Promise when the bundle is deleted"
238
+ "name": "param",
239
+ "text": "options A {@link BundleId} object containing the ID of a bundle to delete (note, this is the bundle id, NOT the version name)"
139
240
  },
140
241
  {
141
- "name": "param",
142
- "text": "id The bundle id to delete (note, this is the bundle id, NOT the version name)"
242
+ "name": "returns",
243
+ "text": "When the bundle is deleted"
143
244
  },
144
245
  {
145
246
  "name": "throws",
146
- "text": "An error if the something went wrong"
247
+ "text": "{Error}"
147
248
  }
148
249
  ],
149
- "docs": "Delete bundle in storage",
150
- "complexTypes": [],
250
+ "docs": "Deletes the specified bundle from the native app storage. Use with {@link list} to get the stored Bundle IDs.",
251
+ "complexTypes": [
252
+ "BundleId"
253
+ ],
151
254
  "slug": "delete"
152
255
  },
153
256
  {
154
257
  "name": "list",
155
- "signature": "() => Promise<{ bundles: BundleInfo[]; }>",
156
- "parameters": [],
157
- "returns": "Promise<{ bundles: BundleInfo[]; }>",
258
+ "signature": "(options?: ListOptions | undefined) => Promise<BundleListResult>",
259
+ "parameters": [
260
+ {
261
+ "name": "options",
262
+ "docs": "The {@link ListOptions} for listing bundles",
263
+ "type": "ListOptions | undefined"
264
+ }
265
+ ],
266
+ "returns": "Promise<BundleListResult>",
158
267
  "tags": [
159
268
  {
160
269
  "name": "returns",
161
- "text": "an Promise witht the bundles list"
270
+ "text": "A Promise containing the {@link BundleListResult.bundles}"
271
+ },
272
+ {
273
+ "name": "param",
274
+ "text": "options The {@link ListOptions} for listing bundles"
162
275
  },
163
276
  {
164
277
  "name": "throws",
165
- "text": "An error if the something went wrong"
278
+ "text": "{Error}"
166
279
  }
167
280
  ],
168
- "docs": "Get all available bundles",
281
+ "docs": "Get all locally downloaded bundles in your app",
169
282
  "complexTypes": [
170
- "BundleInfo"
283
+ "BundleListResult",
284
+ "ListOptions"
171
285
  ],
172
286
  "slug": "list"
173
287
  },
174
288
  {
175
289
  "name": "reset",
176
- "signature": "(options?: { toLastSuccessful?: boolean | undefined; } | undefined) => Promise<void>",
290
+ "signature": "(options?: ResetOptions | undefined) => Promise<void>",
177
291
  "parameters": [
178
292
  {
179
293
  "name": "options",
180
- "docs": "",
181
- "type": "{ toLastSuccessful?: boolean | undefined; } | undefined"
294
+ "docs": "Containing {@link ResetOptions.toLastSuccessful}, `true` resets to the builtin bundle and `false` will reset to the last successfully loaded bundle.",
295
+ "type": "ResetOptions | undefined"
182
296
  }
183
297
  ],
184
298
  "returns": "Promise<void>",
185
299
  "tags": [
186
300
  {
187
- "name": "returns",
188
- "text": "an empty Promise"
301
+ "name": "param",
302
+ "text": "options Containing {@link ResetOptions.toLastSuccessful}, `true` resets to the builtin bundle and `false` will reset to the last successfully loaded bundle."
189
303
  },
190
304
  {
191
- "name": "param",
192
- "text": "toLastSuccessful [false] if yes it reset to to the last successfully loaded bundle instead of `builtin`"
305
+ "name": "returns"
193
306
  },
194
307
  {
195
308
  "name": "throws",
196
- "text": "An error if the something went wrong"
309
+ "text": "{Error}"
197
310
  }
198
311
  ],
199
- "docs": "Set the `builtin` bundle (the one sent to Apple store / Google play store ) as current bundle",
200
- "complexTypes": [],
312
+ "docs": "Reset the app to the `builtin` bundle (the one sent to Apple App Store / Google Play Store ) or the last successfully loaded bundle.",
313
+ "complexTypes": [
314
+ "ResetOptions"
315
+ ],
201
316
  "slug": "reset"
202
317
  },
203
318
  {
204
319
  "name": "current",
205
- "signature": "() => Promise<{ bundle: BundleInfo; native: string; }>",
320
+ "signature": "() => Promise<CurrentBundleResult>",
206
321
  "parameters": [],
207
- "returns": "Promise<{ bundle: BundleInfo; native: string; }>",
322
+ "returns": "Promise<CurrentBundleResult>",
208
323
  "tags": [
209
324
  {
210
325
  "name": "returns",
211
- "text": "an Promise with the current bundle info"
326
+ "text": "A Promise evaluating to the {@link CurrentBundleResult}"
212
327
  },
213
328
  {
214
329
  "name": "throws",
215
- "text": "An error if the something went wrong"
330
+ "text": "{Error}"
216
331
  }
217
332
  ],
218
- "docs": "Get the current bundle, if none are set it returns `builtin`, currentNative is the original bundle installed on the device",
333
+ "docs": "Get the current bundle, if none are set it returns `builtin`. currentNative is the original bundle installed on the device",
219
334
  "complexTypes": [
220
- "BundleInfo"
335
+ "CurrentBundleResult"
221
336
  ],
222
337
  "slug": "current"
223
338
  },
@@ -229,11 +344,11 @@
229
344
  "tags": [
230
345
  {
231
346
  "name": "returns",
232
- "text": "an Promise resolved when the view is reloaded"
347
+ "text": "A Promise which is resolved when the view is reloaded"
233
348
  },
234
349
  {
235
350
  "name": "throws",
236
- "text": "An error if the something went wrong"
351
+ "text": "{Error}"
237
352
  }
238
353
  ],
239
354
  "docs": "Reload the view",
@@ -242,48 +357,47 @@
242
357
  },
243
358
  {
244
359
  "name": "setMultiDelay",
245
- "signature": "(options: { delayConditions: DelayCondition[]; }) => Promise<void>",
360
+ "signature": "(options: MultiDelayConditions) => Promise<void>",
246
361
  "parameters": [
247
362
  {
248
363
  "name": "options",
249
- "docs": "are the {@link DelayCondition} list to set",
250
- "type": "{ delayConditions: DelayCondition[]; }"
364
+ "docs": "Containing the {@link MultiDelayConditions} array of conditions to set",
365
+ "type": "MultiDelayConditions"
251
366
  }
252
367
  ],
253
368
  "returns": "Promise<void>",
254
369
  "tags": [
255
370
  {
256
- "name": "returns",
257
- "text": "an Promise resolved directly"
371
+ "name": "example",
372
+ "text": "// Delay the update after the user kills the app or after a background of 300000 ms (5 minutes)\nawait CapacitorUpdater.setMultiDelay({ delayConditions: [{ kind: 'kill' }, { kind: 'background', value: '300000' }] })"
258
373
  },
259
374
  {
260
- "name": "param",
261
- "text": "options are the {@link DelayCondition} list to set"
375
+ "name": "example",
376
+ "text": "// Delay the update after the specific iso8601 date is expired\nawait CapacitorUpdater.setMultiDelay({ delayConditions: [{ kind: 'date', value: '2022-09-14T06:14:11.920Z' }] })"
262
377
  },
263
378
  {
264
379
  "name": "example",
265
- "text": "setMultiDelay({ delayConditions: [{ kind: 'kill' }, { kind: 'background', value: '300000' }] })\n// installs the update after the user kills the app or after a background of 300000 ms (5 minutes)"
380
+ "text": "// Delay the update after the first background (default behaviour without setting delay)\nawait CapacitorUpdater.setMultiDelay({ delayConditions: [{ kind: 'background' }] })"
266
381
  },
267
382
  {
268
- "name": "example",
269
- "text": "setMultiDelay({ delayConditions: [{ kind: 'date', value: '2022-09-14T06:14:11.920Z' }] })\n// installs the update after the specific iso8601 date is expired"
383
+ "name": "param",
384
+ "text": "options Containing the {@link MultiDelayConditions} array of conditions to set"
270
385
  },
271
386
  {
272
- "name": "example",
273
- "text": "setMultiDelay({ delayConditions: [{ kind: 'background' }] })\n// installs the update after the the first background (default behaviour without setting delay)"
387
+ "name": "returns"
274
388
  },
275
389
  {
276
390
  "name": "throws",
277
- "text": "An error if the something went wrong"
391
+ "text": "{Error}"
278
392
  },
279
393
  {
280
394
  "name": "since",
281
395
  "text": "4.3.0"
282
396
  }
283
397
  ],
284
- "docs": "Set DelayCondition, skip updates until one of the conditions is met",
398
+ "docs": "Sets a {@link DelayCondition} array containing conditions that the Plugin will use to delay the update.\nAfter all conditions are met, the update process will run start again as usual, so update will be installed after a backgrounding or killing the app.\nFor the `date` kind, the value should be an iso8601 date string.\nFor the `background` kind, the value should be a number in milliseconds.\nFor the `nativeVersion` kind, the value should be the version number.\nFor the `kill` kind, the value is not used.\nThe function has unconsistent behavior the option kill do trigger the update after the first kill and not after the next background like other options. This will be fixed in a future major release.",
285
399
  "complexTypes": [
286
- "DelayCondition"
400
+ "MultiDelayConditions"
287
401
  ],
288
402
  "slug": "setmultidelay"
289
403
  },
@@ -294,35 +408,40 @@
294
408
  "returns": "Promise<void>",
295
409
  "tags": [
296
410
  {
297
- "name": "returns",
298
- "text": "an Promise resolved directly"
411
+ "name": "returns"
299
412
  },
300
413
  {
301
414
  "name": "throws",
302
- "text": "An error if the something went wrong"
415
+ "text": "{Error}"
303
416
  },
304
417
  {
305
418
  "name": "since",
306
419
  "text": "4.0.0"
307
420
  }
308
421
  ],
309
- "docs": "Cancel delay to updates as usual",
422
+ "docs": "Cancels a {@link DelayCondition} to process an update immediately.",
310
423
  "complexTypes": [],
311
424
  "slug": "canceldelay"
312
425
  },
313
426
  {
314
427
  "name": "getLatest",
315
- "signature": "() => Promise<latestVersion>",
316
- "parameters": [],
317
- "returns": "Promise<latestVersion>",
428
+ "signature": "(options?: GetLatestOptions | undefined) => Promise<LatestVersion>",
429
+ "parameters": [
430
+ {
431
+ "name": "options",
432
+ "docs": "",
433
+ "type": "GetLatestOptions | undefined"
434
+ }
435
+ ],
436
+ "returns": "Promise<LatestVersion>",
318
437
  "tags": [
319
438
  {
320
439
  "name": "returns",
321
- "text": "an Promise resolved when url is loaded"
440
+ "text": "A Promise resolved when url is loaded"
322
441
  },
323
442
  {
324
443
  "name": "throws",
325
- "text": "An error if the something went wrong"
444
+ "text": "{Error}"
326
445
  },
327
446
  {
328
447
  "name": "since",
@@ -331,68 +450,100 @@
331
450
  ],
332
451
  "docs": "Get Latest bundle available from update Url",
333
452
  "complexTypes": [
334
- "latestVersion"
453
+ "LatestVersion",
454
+ "GetLatestOptions"
335
455
  ],
336
456
  "slug": "getlatest"
337
457
  },
338
458
  {
339
459
  "name": "setChannel",
340
- "signature": "(options: SetChannelOptions) => Promise<channelRes>",
460
+ "signature": "(options: SetChannelOptions) => Promise<ChannelRes>",
341
461
  "parameters": [
342
462
  {
343
463
  "name": "options",
344
- "docs": "is the {@link SetChannelOptions} channel to set",
464
+ "docs": "Is the {@link SetChannelOptions} channel to set",
345
465
  "type": "SetChannelOptions"
346
466
  }
347
467
  ],
348
- "returns": "Promise<channelRes>",
468
+ "returns": "Promise<ChannelRes>",
349
469
  "tags": [
350
470
  {
351
- "name": "returns",
352
- "text": "an Promise resolved when channel is set"
471
+ "name": "param",
472
+ "text": "options Is the {@link SetChannelOptions} channel to set"
353
473
  },
354
474
  {
355
- "name": "param",
356
- "text": "options is the {@link SetChannelOptions} channel to set"
475
+ "name": "returns",
476
+ "text": "A Promise which is resolved when the new channel is set"
357
477
  },
358
478
  {
359
479
  "name": "throws",
360
- "text": "An error if the something went wrong"
480
+ "text": "{Error}"
361
481
  },
362
482
  {
363
483
  "name": "since",
364
484
  "text": "4.7.0"
365
485
  }
366
486
  ],
367
- "docs": "Set Channel for this device",
487
+ "docs": "Sets the channel for this device. The channel has to allow for self assignment for this to work.\nDo not use this method to set the channel at boot when `autoUpdate` is enabled in the {@link PluginsConfig}.\nThis method is to set the channel after the app is ready.\nThis methods send to Capgo backend a request to link the device ID to the channel. Capgo can accept or refuse depending of the setting of your channel.",
368
488
  "complexTypes": [
369
- "channelRes",
489
+ "ChannelRes",
370
490
  "SetChannelOptions"
371
491
  ],
372
492
  "slug": "setchannel"
373
493
  },
494
+ {
495
+ "name": "unsetChannel",
496
+ "signature": "(options: UnsetChannelOptions) => Promise<void>",
497
+ "parameters": [
498
+ {
499
+ "name": "options",
500
+ "docs": "",
501
+ "type": "UnsetChannelOptions"
502
+ }
503
+ ],
504
+ "returns": "Promise<void>",
505
+ "tags": [
506
+ {
507
+ "name": "returns",
508
+ "text": "A Promise resolved when channel is set"
509
+ },
510
+ {
511
+ "name": "throws",
512
+ "text": "{Error}"
513
+ },
514
+ {
515
+ "name": "since",
516
+ "text": "4.7.0"
517
+ }
518
+ ],
519
+ "docs": "Unset the channel for this device. The device will then return to the default channel",
520
+ "complexTypes": [
521
+ "UnsetChannelOptions"
522
+ ],
523
+ "slug": "unsetchannel"
524
+ },
374
525
  {
375
526
  "name": "getChannel",
376
- "signature": "() => Promise<getChannelRes>",
527
+ "signature": "() => Promise<GetChannelRes>",
377
528
  "parameters": [],
378
- "returns": "Promise<getChannelRes>",
529
+ "returns": "Promise<GetChannelRes>",
379
530
  "tags": [
380
531
  {
381
532
  "name": "returns",
382
- "text": "an Promise resolved with channel info"
533
+ "text": "A Promise that resolves with the channel info"
383
534
  },
384
535
  {
385
536
  "name": "throws",
386
- "text": "An error if the something went wrong"
537
+ "text": "{Error}"
387
538
  },
388
539
  {
389
540
  "name": "since",
390
541
  "text": "4.8.0"
391
542
  }
392
543
  ],
393
- "docs": "get Channel for this device",
544
+ "docs": "Get the channel for this device",
394
545
  "complexTypes": [
395
- "getChannelRes"
546
+ "GetChannelRes"
396
547
  ],
397
548
  "slug": "getchannel"
398
549
  },
@@ -408,32 +559,131 @@
408
559
  ],
409
560
  "returns": "Promise<void>",
410
561
  "tags": [
411
- {
412
- "name": "returns",
413
- "text": "an Promise resolved instantly"
414
- },
415
562
  {
416
563
  "name": "param",
417
564
  "text": "options is the {@link SetCustomIdOptions} customId to set"
418
565
  },
566
+ {
567
+ "name": "returns",
568
+ "text": "an Promise resolved instantly"
569
+ },
419
570
  {
420
571
  "name": "throws",
421
- "text": "An error if the something went wrong"
572
+ "text": "{Error}"
422
573
  },
423
574
  {
424
575
  "name": "since",
425
576
  "text": "4.9.0"
426
577
  }
427
578
  ],
428
- "docs": "Set Channel for this device",
579
+ "docs": "Set a custom ID for this device",
429
580
  "complexTypes": [
430
581
  "SetCustomIdOptions"
431
582
  ],
432
583
  "slug": "setcustomid"
433
584
  },
585
+ {
586
+ "name": "getBuiltinVersion",
587
+ "signature": "() => Promise<BuiltinVersion>",
588
+ "parameters": [],
589
+ "returns": "Promise<BuiltinVersion>",
590
+ "tags": [
591
+ {
592
+ "name": "returns",
593
+ "text": "A Promise with version for this device"
594
+ },
595
+ {
596
+ "name": "since",
597
+ "text": "5.2.0"
598
+ }
599
+ ],
600
+ "docs": "Get the native app version or the builtin version if set in config",
601
+ "complexTypes": [
602
+ "BuiltinVersion"
603
+ ],
604
+ "slug": "getbuiltinversion"
605
+ },
606
+ {
607
+ "name": "getDeviceId",
608
+ "signature": "() => Promise<DeviceId>",
609
+ "parameters": [],
610
+ "returns": "Promise<DeviceId>",
611
+ "tags": [
612
+ {
613
+ "name": "returns",
614
+ "text": "A Promise with id for this device"
615
+ },
616
+ {
617
+ "name": "throws",
618
+ "text": "{Error}"
619
+ }
620
+ ],
621
+ "docs": "Get unique ID used to identify device (sent to auto update server)",
622
+ "complexTypes": [
623
+ "DeviceId"
624
+ ],
625
+ "slug": "getdeviceid"
626
+ },
627
+ {
628
+ "name": "getPluginVersion",
629
+ "signature": "() => Promise<PluginVersion>",
630
+ "parameters": [],
631
+ "returns": "Promise<PluginVersion>",
632
+ "tags": [
633
+ {
634
+ "name": "returns",
635
+ "text": "A Promise with Plugin version"
636
+ },
637
+ {
638
+ "name": "throws",
639
+ "text": "{Error}"
640
+ }
641
+ ],
642
+ "docs": "Get the native Capacitor Updater plugin version (sent to auto update server)",
643
+ "complexTypes": [
644
+ "PluginVersion"
645
+ ],
646
+ "slug": "getpluginversion"
647
+ },
648
+ {
649
+ "name": "isAutoUpdateEnabled",
650
+ "signature": "() => Promise<AutoUpdateEnabled>",
651
+ "parameters": [],
652
+ "returns": "Promise<AutoUpdateEnabled>",
653
+ "tags": [
654
+ {
655
+ "name": "returns",
656
+ "text": "The status for auto update. Evaluates to `false` in manual mode."
657
+ },
658
+ {
659
+ "name": "throws",
660
+ "text": "{Error}"
661
+ }
662
+ ],
663
+ "docs": "Get the state of auto update config.",
664
+ "complexTypes": [
665
+ "AutoUpdateEnabled"
666
+ ],
667
+ "slug": "isautoupdateenabled"
668
+ },
669
+ {
670
+ "name": "removeAllListeners",
671
+ "signature": "() => Promise<void>",
672
+ "parameters": [],
673
+ "returns": "Promise<void>",
674
+ "tags": [
675
+ {
676
+ "name": "since",
677
+ "text": "1.0.0"
678
+ }
679
+ ],
680
+ "docs": "Remove all listeners for this plugin.",
681
+ "complexTypes": [],
682
+ "slug": "removealllisteners"
683
+ },
434
684
  {
435
685
  "name": "addListener",
436
- "signature": "(eventName: \"download\", listenerFunc: DownloadChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
686
+ "signature": "(eventName: 'download', listenerFunc: (state: DownloadEvent) => void) => Promise<PluginListenerHandle>",
437
687
  "parameters": [
438
688
  {
439
689
  "name": "eventName",
@@ -443,26 +693,26 @@
443
693
  {
444
694
  "name": "listenerFunc",
445
695
  "docs": "",
446
- "type": "DownloadChangeListener"
696
+ "type": "(state: DownloadEvent) => void"
447
697
  }
448
698
  ],
449
- "returns": "Promise<PluginListenerHandle> & PluginListenerHandle",
699
+ "returns": "Promise<PluginListenerHandle>",
450
700
  "tags": [
451
701
  {
452
702
  "name": "since",
453
703
  "text": "2.0.11"
454
704
  }
455
705
  ],
456
- "docs": "Listen for download event in the App, let you know when the download is started, loading and finished",
706
+ "docs": "Listen for bundle download event in the App. Fires once a download has started, during downloading and when finished.",
457
707
  "complexTypes": [
458
708
  "PluginListenerHandle",
459
- "DownloadChangeListener"
709
+ "DownloadEvent"
460
710
  ],
461
- "slug": "addlistenerdownload"
711
+ "slug": "addlistenerdownload-"
462
712
  },
463
713
  {
464
714
  "name": "addListener",
465
- "signature": "(eventName: \"noNeedUpdate\", listenerFunc: NoNeedListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
715
+ "signature": "(eventName: 'noNeedUpdate', listenerFunc: (state: NoNeedEvent) => void) => Promise<PluginListenerHandle>",
466
716
  "parameters": [
467
717
  {
468
718
  "name": "eventName",
@@ -472,26 +722,26 @@
472
722
  {
473
723
  "name": "listenerFunc",
474
724
  "docs": "",
475
- "type": "NoNeedListener"
725
+ "type": "(state: NoNeedEvent) => void"
476
726
  }
477
727
  ],
478
- "returns": "Promise<PluginListenerHandle> & PluginListenerHandle",
728
+ "returns": "Promise<PluginListenerHandle>",
479
729
  "tags": [
480
730
  {
481
731
  "name": "since",
482
732
  "text": "4.0.0"
483
733
  }
484
734
  ],
485
- "docs": "Listen for no need to update event, usefull when you want force check every time the app is launched",
735
+ "docs": "Listen for no need to update event, useful when you want force check every time the app is launched",
486
736
  "complexTypes": [
487
737
  "PluginListenerHandle",
488
- "NoNeedListener"
738
+ "NoNeedEvent"
489
739
  ],
490
- "slug": "addlistenernoneedupdate"
740
+ "slug": "addlistenernoneedupdate-"
491
741
  },
492
742
  {
493
743
  "name": "addListener",
494
- "signature": "(eventName: \"updateAvailable\", listenerFunc: UpdateAvailabledListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
744
+ "signature": "(eventName: 'updateAvailable', listenerFunc: (state: UpdateAvailableEvent) => void) => Promise<PluginListenerHandle>",
495
745
  "parameters": [
496
746
  {
497
747
  "name": "eventName",
@@ -501,26 +751,26 @@
501
751
  {
502
752
  "name": "listenerFunc",
503
753
  "docs": "",
504
- "type": "UpdateAvailabledListener"
754
+ "type": "(state: UpdateAvailableEvent) => void"
505
755
  }
506
756
  ],
507
- "returns": "Promise<PluginListenerHandle> & PluginListenerHandle",
757
+ "returns": "Promise<PluginListenerHandle>",
508
758
  "tags": [
509
759
  {
510
760
  "name": "since",
511
761
  "text": "4.0.0"
512
762
  }
513
763
  ],
514
- "docs": "Listen for availbale update event, usefull when you want to force check every time the app is launched",
764
+ "docs": "Listen for available update event, useful when you want to force check every time the app is launched",
515
765
  "complexTypes": [
516
766
  "PluginListenerHandle",
517
- "UpdateAvailabledListener"
767
+ "UpdateAvailableEvent"
518
768
  ],
519
- "slug": "addlistenerupdateavailable"
769
+ "slug": "addlistenerupdateavailable-"
520
770
  },
521
771
  {
522
772
  "name": "addListener",
523
- "signature": "(eventName: \"downloadComplete\", listenerFunc: DownloadCompleteListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
773
+ "signature": "(eventName: 'downloadComplete', listenerFunc: (state: DownloadCompleteEvent) => void) => Promise<PluginListenerHandle>",
524
774
  "parameters": [
525
775
  {
526
776
  "name": "eventName",
@@ -530,26 +780,26 @@
530
780
  {
531
781
  "name": "listenerFunc",
532
782
  "docs": "",
533
- "type": "DownloadCompleteListener"
783
+ "type": "(state: DownloadCompleteEvent) => void"
534
784
  }
535
785
  ],
536
- "returns": "Promise<PluginListenerHandle> & PluginListenerHandle",
786
+ "returns": "Promise<PluginListenerHandle>",
537
787
  "tags": [
538
788
  {
539
789
  "name": "since",
540
790
  "text": "4.0.0"
541
791
  }
542
792
  ],
543
- "docs": "Listen for download event in the App, let you know when the download is started, loading and finished",
793
+ "docs": "Listen for downloadComplete events.",
544
794
  "complexTypes": [
545
795
  "PluginListenerHandle",
546
- "DownloadCompleteListener"
796
+ "DownloadCompleteEvent"
547
797
  ],
548
- "slug": "addlistenerdownloadcomplete"
798
+ "slug": "addlistenerdownloadcomplete-"
549
799
  },
550
800
  {
551
801
  "name": "addListener",
552
- "signature": "(eventName: \"majorAvailable\", listenerFunc: MajorAvailableListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
802
+ "signature": "(eventName: 'majorAvailable', listenerFunc: (state: MajorAvailableEvent) => void) => Promise<PluginListenerHandle>",
553
803
  "parameters": [
554
804
  {
555
805
  "name": "eventName",
@@ -559,10 +809,10 @@
559
809
  {
560
810
  "name": "listenerFunc",
561
811
  "docs": "",
562
- "type": "MajorAvailableListener"
812
+ "type": "(state: MajorAvailableEvent) => void"
563
813
  }
564
814
  ],
565
- "returns": "Promise<PluginListenerHandle> & PluginListenerHandle",
815
+ "returns": "Promise<PluginListenerHandle>",
566
816
  "tags": [
567
817
  {
568
818
  "name": "since",
@@ -572,13 +822,13 @@
572
822
  "docs": "Listen for Major update event in the App, let you know when major update is blocked by setting disableAutoUpdateBreaking",
573
823
  "complexTypes": [
574
824
  "PluginListenerHandle",
575
- "MajorAvailableListener"
825
+ "MajorAvailableEvent"
576
826
  ],
577
- "slug": "addlistenermajoravailable"
827
+ "slug": "addlistenermajoravailable-"
578
828
  },
579
829
  {
580
830
  "name": "addListener",
581
- "signature": "(eventName: \"updateFailed\", listenerFunc: UpdateFailedListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
831
+ "signature": "(eventName: 'updateFailed', listenerFunc: (state: UpdateFailedEvent) => void) => Promise<PluginListenerHandle>",
582
832
  "parameters": [
583
833
  {
584
834
  "name": "eventName",
@@ -588,10 +838,10 @@
588
838
  {
589
839
  "name": "listenerFunc",
590
840
  "docs": "",
591
- "type": "UpdateFailedListener"
841
+ "type": "(state: UpdateFailedEvent) => void"
592
842
  }
593
843
  ],
594
- "returns": "Promise<PluginListenerHandle> & PluginListenerHandle",
844
+ "returns": "Promise<PluginListenerHandle>",
595
845
  "tags": [
596
846
  {
597
847
  "name": "since",
@@ -601,13 +851,13 @@
601
851
  "docs": "Listen for update fail event in the App, let you know when update has fail to install at next app start",
602
852
  "complexTypes": [
603
853
  "PluginListenerHandle",
604
- "UpdateFailedListener"
854
+ "UpdateFailedEvent"
605
855
  ],
606
- "slug": "addlistenerupdatefailed"
856
+ "slug": "addlistenerupdatefailed-"
607
857
  },
608
858
  {
609
859
  "name": "addListener",
610
- "signature": "(eventName: \"downloadFailed\", listenerFunc: DownloadFailedListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
860
+ "signature": "(eventName: 'downloadFailed', listenerFunc: (state: DownloadFailedEvent) => void) => Promise<PluginListenerHandle>",
611
861
  "parameters": [
612
862
  {
613
863
  "name": "eventName",
@@ -617,26 +867,26 @@
617
867
  {
618
868
  "name": "listenerFunc",
619
869
  "docs": "",
620
- "type": "DownloadFailedListener"
870
+ "type": "(state: DownloadFailedEvent) => void"
621
871
  }
622
872
  ],
623
- "returns": "Promise<PluginListenerHandle> & PluginListenerHandle",
873
+ "returns": "Promise<PluginListenerHandle>",
624
874
  "tags": [
625
875
  {
626
876
  "name": "since",
627
877
  "text": "4.0.0"
628
878
  }
629
879
  ],
630
- "docs": "Listen for download fail event in the App, let you know when download has fail finished",
880
+ "docs": "Listen for download fail event in the App, let you know when a bundle download has failed",
631
881
  "complexTypes": [
632
882
  "PluginListenerHandle",
633
- "DownloadFailedListener"
883
+ "DownloadFailedEvent"
634
884
  ],
635
- "slug": "addlistenerdownloadfailed"
885
+ "slug": "addlistenerdownloadfailed-"
636
886
  },
637
887
  {
638
888
  "name": "addListener",
639
- "signature": "(eventName: \"appReloaded\", listenerFunc: AppReloadedListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
889
+ "signature": "(eventName: 'appReloaded', listenerFunc: () => void) => Promise<PluginListenerHandle>",
640
890
  "parameters": [
641
891
  {
642
892
  "name": "eventName",
@@ -646,99 +896,119 @@
646
896
  {
647
897
  "name": "listenerFunc",
648
898
  "docs": "",
649
- "type": "AppReloadedListener"
899
+ "type": "() => void"
650
900
  }
651
901
  ],
652
- "returns": "Promise<PluginListenerHandle> & PluginListenerHandle",
902
+ "returns": "Promise<PluginListenerHandle>",
653
903
  "tags": [
654
904
  {
655
905
  "name": "since",
656
906
  "text": "4.3.0"
657
907
  }
658
908
  ],
659
- "docs": "Listen for download fail event in the App, let you know when download has fail finished",
909
+ "docs": "Listen for reload event in the App, let you know when reload has happened",
660
910
  "complexTypes": [
661
- "PluginListenerHandle",
662
- "AppReloadedListener"
911
+ "PluginListenerHandle"
663
912
  ],
664
- "slug": "addlistenerappreloaded"
913
+ "slug": "addlistenerappreloaded-"
665
914
  },
666
915
  {
667
- "name": "getDeviceId",
668
- "signature": "() => Promise<{ deviceId: string; }>",
669
- "parameters": [],
670
- "returns": "Promise<{ deviceId: string; }>",
671
- "tags": [
916
+ "name": "addListener",
917
+ "signature": "(eventName: 'appReady', listenerFunc: (state: AppReadyEvent) => void) => Promise<PluginListenerHandle>",
918
+ "parameters": [
672
919
  {
673
- "name": "returns",
674
- "text": "an Promise with id for this device"
920
+ "name": "eventName",
921
+ "docs": "",
922
+ "type": "'appReady'"
675
923
  },
676
924
  {
677
- "name": "throws",
678
- "text": "An error if the something went wrong"
925
+ "name": "listenerFunc",
926
+ "docs": "",
927
+ "type": "(state: AppReadyEvent) => void"
679
928
  }
680
929
  ],
681
- "docs": "Get unique ID used to identify device (sent to auto update server)",
682
- "complexTypes": [],
683
- "slug": "getdeviceid"
930
+ "returns": "Promise<PluginListenerHandle>",
931
+ "tags": [
932
+ {
933
+ "name": "since",
934
+ "text": "5.1.0"
935
+ }
936
+ ],
937
+ "docs": "Listen for app ready event in the App, let you know when app is ready to use",
938
+ "complexTypes": [
939
+ "PluginListenerHandle",
940
+ "AppReadyEvent"
941
+ ],
942
+ "slug": "addlistenerappready-"
684
943
  },
685
944
  {
686
- "name": "getPluginVersion",
687
- "signature": "() => Promise<{ version: string; }>",
945
+ "name": "isAutoUpdateAvailable",
946
+ "signature": "() => Promise<AutoUpdateAvailable>",
688
947
  "parameters": [],
689
- "returns": "Promise<{ version: string; }>",
948
+ "returns": "Promise<AutoUpdateAvailable>",
690
949
  "tags": [
691
950
  {
692
951
  "name": "returns",
693
- "text": "an Promise with version for this device"
952
+ "text": "The availability status for auto update. Evaluates to `false` when serverUrl is set."
694
953
  },
695
954
  {
696
955
  "name": "throws",
697
- "text": "An error if the something went wrong"
956
+ "text": "{Error}"
698
957
  }
699
958
  ],
700
- "docs": "Get the native Capacitor Updater plugin version (sent to auto update server)",
701
- "complexTypes": [],
702
- "slug": "getpluginversion"
959
+ "docs": "Get if auto update is available (not disabled by serverUrl).",
960
+ "complexTypes": [
961
+ "AutoUpdateAvailable"
962
+ ],
963
+ "slug": "isautoupdateavailable"
703
964
  },
704
965
  {
705
- "name": "isAutoUpdateEnabled",
706
- "signature": "() => Promise<{ enabled: boolean; }>",
966
+ "name": "getNextBundle",
967
+ "signature": "() => Promise<BundleInfo | null>",
707
968
  "parameters": [],
708
- "returns": "Promise<{ enabled: boolean; }>",
969
+ "returns": "Promise<BundleInfo | null>",
709
970
  "tags": [
710
971
  {
711
972
  "name": "returns",
712
- "text": "The status for auto update."
973
+ "text": "A Promise that resolves with the next bundle information or null"
713
974
  },
714
975
  {
715
976
  "name": "throws",
716
- "text": "An error if the something went wrong"
717
- }
718
- ],
719
- "docs": "Get the state of auto update config. This will return `false` in manual mode.",
720
- "complexTypes": [],
721
- "slug": "isautoupdateenabled"
722
- },
723
- {
724
- "name": "removeAllListeners",
725
- "signature": "() => Promise<void>",
726
- "parameters": [],
727
- "returns": "Promise<void>",
728
- "tags": [
977
+ "text": "{Error}"
978
+ },
729
979
  {
730
980
  "name": "since",
731
- "text": "1.0.0"
981
+ "text": "6.8.0"
732
982
  }
733
983
  ],
734
- "docs": "Remove all listeners for this plugin.",
735
- "complexTypes": [],
736
- "slug": "removealllisteners"
984
+ "docs": "Get the next bundle that will be used when the app reloads.\nReturns null if no next bundle is set.",
985
+ "complexTypes": [
986
+ "BundleInfo"
987
+ ],
988
+ "slug": "getnextbundle"
737
989
  }
738
990
  ],
739
991
  "properties": []
740
992
  },
741
993
  "interfaces": [
994
+ {
995
+ "name": "AppReadyResult",
996
+ "slug": "appreadyresult",
997
+ "docs": "",
998
+ "tags": [],
999
+ "methods": [],
1000
+ "properties": [
1001
+ {
1002
+ "name": "bundle",
1003
+ "tags": [],
1004
+ "docs": "",
1005
+ "complexTypes": [
1006
+ "BundleInfo"
1007
+ ],
1008
+ "type": "BundleInfo"
1009
+ }
1010
+ ]
1011
+ },
742
1012
  {
743
1013
  "name": "BundleInfo",
744
1014
  "slug": "bundleinfo",
@@ -786,545 +1056,878 @@
786
1056
  ]
787
1057
  },
788
1058
  {
789
- "name": "DelayCondition",
790
- "slug": "delaycondition",
1059
+ "name": "UpdateUrl",
1060
+ "slug": "updateurl",
791
1061
  "docs": "",
792
1062
  "tags": [],
793
1063
  "methods": [],
794
1064
  "properties": [
795
1065
  {
796
- "name": "kind",
797
- "tags": [
798
- {
799
- "text": "value is useless for",
800
- "name": "param"
801
- },
802
- {
803
- "text": "kind \"kill\", optional for \"background\" (default value: \"0\") and required for \"nativeVersion\" and \"date\"",
804
- "name": "param"
805
- }
806
- ],
807
- "docs": "Set up delay conditions in setMultiDelay",
808
- "complexTypes": [
809
- "DelayUntilNext"
810
- ],
811
- "type": "DelayUntilNext"
812
- },
813
- {
814
- "name": "value",
1066
+ "name": "url",
815
1067
  "tags": [],
816
1068
  "docs": "",
817
1069
  "complexTypes": [],
818
- "type": "string | undefined"
1070
+ "type": "string"
819
1071
  }
820
1072
  ]
821
1073
  },
822
1074
  {
823
- "name": "latestVersion",
824
- "slug": "latestversion",
1075
+ "name": "StatsUrl",
1076
+ "slug": "statsurl",
825
1077
  "docs": "",
826
1078
  "tags": [],
827
1079
  "methods": [],
828
1080
  "properties": [
829
1081
  {
830
- "name": "version",
831
- "tags": [
832
- {
833
- "text": "4.0.0",
834
- "name": "since"
835
- }
836
- ],
837
- "docs": "Res of getLatest method",
838
- "complexTypes": [],
839
- "type": "string"
840
- },
841
- {
842
- "name": "major",
1082
+ "name": "url",
843
1083
  "tags": [],
844
1084
  "docs": "",
845
1085
  "complexTypes": [],
846
- "type": "boolean | undefined"
847
- },
1086
+ "type": "string"
1087
+ }
1088
+ ]
1089
+ },
1090
+ {
1091
+ "name": "ChannelUrl",
1092
+ "slug": "channelurl",
1093
+ "docs": "",
1094
+ "tags": [],
1095
+ "methods": [],
1096
+ "properties": [
848
1097
  {
849
- "name": "message",
1098
+ "name": "url",
850
1099
  "tags": [],
851
1100
  "docs": "",
852
1101
  "complexTypes": [],
853
- "type": "string | undefined"
854
- },
1102
+ "type": "string"
1103
+ }
1104
+ ]
1105
+ },
1106
+ {
1107
+ "name": "DownloadOptions",
1108
+ "slug": "downloadoptions",
1109
+ "docs": "",
1110
+ "tags": [],
1111
+ "methods": [],
1112
+ "properties": [
855
1113
  {
856
- "name": "sessionKey",
1114
+ "name": "url",
857
1115
  "tags": [],
858
- "docs": "",
1116
+ "docs": "The URL of the bundle zip file (e.g: dist.zip) to be downloaded. (This can be any URL. E.g: Amazon S3, a GitHub tag, any other place you've hosted your bundle.)",
859
1117
  "complexTypes": [],
860
1118
  "type": "string | undefined"
861
1119
  },
862
1120
  {
863
- "name": "error",
1121
+ "name": "version",
864
1122
  "tags": [],
865
- "docs": "",
1123
+ "docs": "The version code/name of this bundle/version",
866
1124
  "complexTypes": [],
867
- "type": "string | undefined"
1125
+ "type": "string"
868
1126
  },
869
1127
  {
870
- "name": "old",
871
- "tags": [],
872
- "docs": "",
1128
+ "name": "sessionKey",
1129
+ "tags": [
1130
+ {
1131
+ "text": "4.0.0",
1132
+ "name": "since"
1133
+ },
1134
+ {
1135
+ "text": "undefined",
1136
+ "name": "default"
1137
+ }
1138
+ ],
1139
+ "docs": "The session key for the update",
873
1140
  "complexTypes": [],
874
1141
  "type": "string | undefined"
875
1142
  },
876
1143
  {
877
- "name": "url",
878
- "tags": [],
879
- "docs": "",
1144
+ "name": "checksum",
1145
+ "tags": [
1146
+ {
1147
+ "text": "4.0.0",
1148
+ "name": "since"
1149
+ },
1150
+ {
1151
+ "text": "undefined",
1152
+ "name": "default"
1153
+ }
1154
+ ],
1155
+ "docs": "The checksum for the update",
880
1156
  "complexTypes": [],
881
1157
  "type": "string | undefined"
882
1158
  }
883
1159
  ]
884
1160
  },
885
1161
  {
886
- "name": "channelRes",
887
- "slug": "channelres",
1162
+ "name": "BundleId",
1163
+ "slug": "bundleid",
888
1164
  "docs": "",
889
1165
  "tags": [],
890
1166
  "methods": [],
891
1167
  "properties": [
892
1168
  {
893
- "name": "status",
894
- "tags": [
895
- {
896
- "text": "4.7.0",
897
- "name": "since"
898
- }
899
- ],
900
- "docs": "Current status of set channel",
901
- "complexTypes": [],
902
- "type": "string"
903
- },
904
- {
905
- "name": "error",
906
- "tags": [],
907
- "docs": "",
908
- "complexTypes": [],
909
- "type": "any"
910
- },
911
- {
912
- "name": "message",
1169
+ "name": "id",
913
1170
  "tags": [],
914
1171
  "docs": "",
915
1172
  "complexTypes": [],
916
- "type": "any"
1173
+ "type": "string"
917
1174
  }
918
1175
  ]
919
1176
  },
920
1177
  {
921
- "name": "SetChannelOptions",
922
- "slug": "setchanneloptions",
1178
+ "name": "BundleListResult",
1179
+ "slug": "bundlelistresult",
923
1180
  "docs": "",
924
1181
  "tags": [],
925
1182
  "methods": [],
926
1183
  "properties": [
927
1184
  {
928
- "name": "channel",
1185
+ "name": "bundles",
929
1186
  "tags": [],
930
1187
  "docs": "",
931
- "complexTypes": [],
932
- "type": "string"
1188
+ "complexTypes": [
1189
+ "BundleInfo"
1190
+ ],
1191
+ "type": "BundleInfo[]"
933
1192
  }
934
1193
  ]
935
1194
  },
936
1195
  {
937
- "name": "getChannelRes",
938
- "slug": "getchannelres",
1196
+ "name": "ListOptions",
1197
+ "slug": "listoptions",
939
1198
  "docs": "",
940
1199
  "tags": [],
941
1200
  "methods": [],
942
1201
  "properties": [
943
1202
  {
944
- "name": "channel",
1203
+ "name": "raw",
945
1204
  "tags": [
946
1205
  {
947
- "text": "4.8.0",
1206
+ "text": "6.14.0",
948
1207
  "name": "since"
1208
+ },
1209
+ {
1210
+ "text": "false",
1211
+ "name": "default"
949
1212
  }
950
1213
  ],
951
- "docs": "Current status of get channel",
952
- "complexTypes": [],
953
- "type": "string | undefined"
954
- },
955
- {
956
- "name": "error",
957
- "tags": [],
958
- "docs": "",
959
- "complexTypes": [],
960
- "type": "any"
961
- },
962
- {
963
- "name": "message",
964
- "tags": [],
965
- "docs": "",
966
- "complexTypes": [],
967
- "type": "any"
968
- },
969
- {
970
- "name": "status",
971
- "tags": [],
972
- "docs": "",
973
- "complexTypes": [],
974
- "type": "string | undefined"
975
- },
976
- {
977
- "name": "allowSet",
978
- "tags": [],
979
- "docs": "",
1214
+ "docs": "Whether to return the raw bundle list or the manifest. If true, the list will attempt to read the internal database instead of files on disk.",
980
1215
  "complexTypes": [],
981
1216
  "type": "boolean | undefined"
982
1217
  }
983
1218
  ]
984
1219
  },
985
1220
  {
986
- "name": "SetCustomIdOptions",
987
- "slug": "setcustomidoptions",
1221
+ "name": "ResetOptions",
1222
+ "slug": "resetoptions",
988
1223
  "docs": "",
989
1224
  "tags": [],
990
1225
  "methods": [],
991
1226
  "properties": [
992
1227
  {
993
- "name": "customId",
1228
+ "name": "toLastSuccessful",
994
1229
  "tags": [],
995
1230
  "docs": "",
996
1231
  "complexTypes": [],
997
- "type": "string"
1232
+ "type": "boolean"
998
1233
  }
999
1234
  ]
1000
1235
  },
1001
1236
  {
1002
- "name": "PluginListenerHandle",
1003
- "slug": "pluginlistenerhandle",
1237
+ "name": "CurrentBundleResult",
1238
+ "slug": "currentbundleresult",
1004
1239
  "docs": "",
1005
1240
  "tags": [],
1006
1241
  "methods": [],
1007
1242
  "properties": [
1008
1243
  {
1009
- "name": "remove",
1244
+ "name": "bundle",
1245
+ "tags": [],
1246
+ "docs": "",
1247
+ "complexTypes": [
1248
+ "BundleInfo"
1249
+ ],
1250
+ "type": "BundleInfo"
1251
+ },
1252
+ {
1253
+ "name": "native",
1010
1254
  "tags": [],
1011
1255
  "docs": "",
1012
1256
  "complexTypes": [],
1013
- "type": "() => Promise<void>"
1257
+ "type": "string"
1014
1258
  }
1015
1259
  ]
1016
1260
  },
1017
1261
  {
1018
- "name": "DownloadEvent",
1019
- "slug": "downloadevent",
1262
+ "name": "MultiDelayConditions",
1263
+ "slug": "multidelayconditions",
1020
1264
  "docs": "",
1021
1265
  "tags": [],
1022
1266
  "methods": [],
1023
1267
  "properties": [
1024
1268
  {
1025
- "name": "percent",
1026
- "tags": [
1027
- {
1028
- "text": "4.0.0",
1029
- "name": "since"
1030
- }
1031
- ],
1032
- "docs": "Current status of download, between 0 and 100.",
1033
- "complexTypes": [],
1034
- "type": "number"
1035
- },
1036
- {
1037
- "name": "bundle",
1269
+ "name": "delayConditions",
1038
1270
  "tags": [],
1039
1271
  "docs": "",
1040
1272
  "complexTypes": [
1041
- "BundleInfo"
1273
+ "DelayCondition"
1042
1274
  ],
1043
- "type": "BundleInfo"
1275
+ "type": "DelayCondition[]"
1044
1276
  }
1045
1277
  ]
1046
1278
  },
1047
1279
  {
1048
- "name": "noNeedEvent",
1049
- "slug": "noneedevent",
1280
+ "name": "DelayCondition",
1281
+ "slug": "delaycondition",
1050
1282
  "docs": "",
1051
1283
  "tags": [],
1052
1284
  "methods": [],
1053
1285
  "properties": [
1054
1286
  {
1055
- "name": "bundle",
1287
+ "name": "kind",
1056
1288
  "tags": [
1057
1289
  {
1058
- "text": "4.0.0",
1059
- "name": "since"
1290
+ "text": "value is useless for",
1291
+ "name": "param"
1292
+ },
1293
+ {
1294
+ "text": "kind \"kill\", optional for \"background\" (default value: \"0\") and required for \"nativeVersion\" and \"date\"",
1295
+ "name": "param"
1060
1296
  }
1061
1297
  ],
1062
- "docs": "Current status of download, between 0 and 100.",
1298
+ "docs": "Set up delay conditions in setMultiDelay",
1063
1299
  "complexTypes": [
1064
- "BundleInfo"
1300
+ "DelayUntilNext"
1065
1301
  ],
1066
- "type": "BundleInfo"
1302
+ "type": "DelayUntilNext"
1303
+ },
1304
+ {
1305
+ "name": "value",
1306
+ "tags": [],
1307
+ "docs": "",
1308
+ "complexTypes": [],
1309
+ "type": "string | undefined"
1067
1310
  }
1068
1311
  ]
1069
1312
  },
1070
1313
  {
1071
- "name": "updateAvailableEvent",
1072
- "slug": "updateavailableevent",
1314
+ "name": "LatestVersion",
1315
+ "slug": "latestversion",
1073
1316
  "docs": "",
1074
1317
  "tags": [],
1075
1318
  "methods": [],
1076
1319
  "properties": [
1077
1320
  {
1078
- "name": "bundle",
1321
+ "name": "version",
1079
1322
  "tags": [
1080
1323
  {
1081
1324
  "text": "4.0.0",
1082
1325
  "name": "since"
1083
1326
  }
1084
1327
  ],
1085
- "docs": "Current status of download, between 0 and 100.",
1328
+ "docs": "Result of getLatest method",
1329
+ "complexTypes": [],
1330
+ "type": "string"
1331
+ },
1332
+ {
1333
+ "name": "checksum",
1334
+ "tags": [
1335
+ {
1336
+ "text": "6",
1337
+ "name": "since"
1338
+ }
1339
+ ],
1340
+ "docs": "",
1341
+ "complexTypes": [],
1342
+ "type": "string | undefined"
1343
+ },
1344
+ {
1345
+ "name": "major",
1346
+ "tags": [],
1347
+ "docs": "",
1348
+ "complexTypes": [],
1349
+ "type": "boolean | undefined"
1350
+ },
1351
+ {
1352
+ "name": "message",
1353
+ "tags": [],
1354
+ "docs": "",
1355
+ "complexTypes": [],
1356
+ "type": "string | undefined"
1357
+ },
1358
+ {
1359
+ "name": "sessionKey",
1360
+ "tags": [],
1361
+ "docs": "",
1362
+ "complexTypes": [],
1363
+ "type": "string | undefined"
1364
+ },
1365
+ {
1366
+ "name": "error",
1367
+ "tags": [],
1368
+ "docs": "",
1369
+ "complexTypes": [],
1370
+ "type": "string | undefined"
1371
+ },
1372
+ {
1373
+ "name": "old",
1374
+ "tags": [],
1375
+ "docs": "",
1376
+ "complexTypes": [],
1377
+ "type": "string | undefined"
1378
+ },
1379
+ {
1380
+ "name": "url",
1381
+ "tags": [],
1382
+ "docs": "",
1383
+ "complexTypes": [],
1384
+ "type": "string | undefined"
1385
+ },
1386
+ {
1387
+ "name": "manifest",
1388
+ "tags": [
1389
+ {
1390
+ "text": "6.1",
1391
+ "name": "since"
1392
+ }
1393
+ ],
1394
+ "docs": "",
1086
1395
  "complexTypes": [
1087
- "BundleInfo"
1396
+ "ManifestEntry"
1088
1397
  ],
1089
- "type": "BundleInfo"
1398
+ "type": "ManifestEntry[] | undefined"
1090
1399
  }
1091
1400
  ]
1092
1401
  },
1093
1402
  {
1094
- "name": "DownloadCompleteEvent",
1095
- "slug": "downloadcompleteevent",
1403
+ "name": "ManifestEntry",
1404
+ "slug": "manifestentry",
1096
1405
  "docs": "",
1097
1406
  "tags": [],
1098
1407
  "methods": [],
1099
1408
  "properties": [
1100
1409
  {
1101
- "name": "bundle",
1410
+ "name": "file_name",
1411
+ "tags": [],
1412
+ "docs": "",
1413
+ "complexTypes": [],
1414
+ "type": "string | null"
1415
+ },
1416
+ {
1417
+ "name": "file_hash",
1418
+ "tags": [],
1419
+ "docs": "",
1420
+ "complexTypes": [],
1421
+ "type": "string | null"
1422
+ },
1423
+ {
1424
+ "name": "download_url",
1425
+ "tags": [],
1426
+ "docs": "",
1427
+ "complexTypes": [],
1428
+ "type": "string | null"
1429
+ }
1430
+ ]
1431
+ },
1432
+ {
1433
+ "name": "GetLatestOptions",
1434
+ "slug": "getlatestoptions",
1435
+ "docs": "",
1436
+ "tags": [],
1437
+ "methods": [],
1438
+ "properties": [
1439
+ {
1440
+ "name": "channel",
1102
1441
  "tags": [
1103
1442
  {
1104
- "text": "4.0.0",
1443
+ "text": "6.8.0",
1105
1444
  "name": "since"
1445
+ },
1446
+ {
1447
+ "text": "undefined",
1448
+ "name": "default"
1106
1449
  }
1107
1450
  ],
1108
- "docs": "Emit when a new update is available.",
1109
- "complexTypes": [
1110
- "BundleInfo"
1111
- ],
1112
- "type": "BundleInfo"
1451
+ "docs": "The channel to get the latest version for\nThe channel must allow 'self_assign' for this to work",
1452
+ "complexTypes": [],
1453
+ "type": "string | undefined"
1113
1454
  }
1114
1455
  ]
1115
1456
  },
1116
1457
  {
1117
- "name": "MajorAvailableEvent",
1118
- "slug": "majoravailableevent",
1458
+ "name": "ChannelRes",
1459
+ "slug": "channelres",
1119
1460
  "docs": "",
1120
1461
  "tags": [],
1121
1462
  "methods": [],
1122
1463
  "properties": [
1123
1464
  {
1124
- "name": "version",
1465
+ "name": "status",
1125
1466
  "tags": [
1126
1467
  {
1127
- "text": "4.0.0",
1468
+ "text": "4.7.0",
1128
1469
  "name": "since"
1129
1470
  }
1130
1471
  ],
1131
- "docs": "Emit when a new major bundle is available.",
1472
+ "docs": "Current status of set channel",
1132
1473
  "complexTypes": [],
1133
1474
  "type": "string"
1475
+ },
1476
+ {
1477
+ "name": "error",
1478
+ "tags": [],
1479
+ "docs": "",
1480
+ "complexTypes": [],
1481
+ "type": "string | undefined"
1482
+ },
1483
+ {
1484
+ "name": "message",
1485
+ "tags": [],
1486
+ "docs": "",
1487
+ "complexTypes": [],
1488
+ "type": "string | undefined"
1134
1489
  }
1135
1490
  ]
1136
1491
  },
1137
1492
  {
1138
- "name": "UpdateFailedEvent",
1139
- "slug": "updatefailedevent",
1493
+ "name": "SetChannelOptions",
1494
+ "slug": "setchanneloptions",
1140
1495
  "docs": "",
1141
1496
  "tags": [],
1142
1497
  "methods": [],
1143
1498
  "properties": [
1144
1499
  {
1145
- "name": "bundle",
1146
- "tags": [
1147
- {
1148
- "text": "4.0.0",
1149
- "name": "since"
1150
- }
1151
- ],
1152
- "docs": "Emit when a update failed to install.",
1153
- "complexTypes": [
1154
- "BundleInfo"
1155
- ],
1156
- "type": "BundleInfo"
1500
+ "name": "channel",
1501
+ "tags": [],
1502
+ "docs": "",
1503
+ "complexTypes": [],
1504
+ "type": "string"
1505
+ },
1506
+ {
1507
+ "name": "triggerAutoUpdate",
1508
+ "tags": [],
1509
+ "docs": "",
1510
+ "complexTypes": [],
1511
+ "type": "boolean | undefined"
1157
1512
  }
1158
1513
  ]
1159
1514
  },
1160
1515
  {
1161
- "name": "DownloadFailedEvent",
1162
- "slug": "downloadfailedevent",
1516
+ "name": "UnsetChannelOptions",
1517
+ "slug": "unsetchanneloptions",
1163
1518
  "docs": "",
1164
1519
  "tags": [],
1165
1520
  "methods": [],
1166
1521
  "properties": [
1167
1522
  {
1168
- "name": "version",
1523
+ "name": "triggerAutoUpdate",
1524
+ "tags": [],
1525
+ "docs": "",
1526
+ "complexTypes": [],
1527
+ "type": "boolean | undefined"
1528
+ }
1529
+ ]
1530
+ },
1531
+ {
1532
+ "name": "GetChannelRes",
1533
+ "slug": "getchannelres",
1534
+ "docs": "",
1535
+ "tags": [],
1536
+ "methods": [],
1537
+ "properties": [
1538
+ {
1539
+ "name": "channel",
1169
1540
  "tags": [
1170
1541
  {
1171
- "text": "4.0.0",
1542
+ "text": "4.8.0",
1172
1543
  "name": "since"
1173
1544
  }
1174
1545
  ],
1175
- "docs": "Emit when a download fail.",
1546
+ "docs": "Current status of get channel",
1176
1547
  "complexTypes": [],
1177
- "type": "string"
1548
+ "type": "string | undefined"
1549
+ },
1550
+ {
1551
+ "name": "error",
1552
+ "tags": [],
1553
+ "docs": "",
1554
+ "complexTypes": [],
1555
+ "type": "string | undefined"
1556
+ },
1557
+ {
1558
+ "name": "message",
1559
+ "tags": [],
1560
+ "docs": "",
1561
+ "complexTypes": [],
1562
+ "type": "string | undefined"
1563
+ },
1564
+ {
1565
+ "name": "status",
1566
+ "tags": [],
1567
+ "docs": "",
1568
+ "complexTypes": [],
1569
+ "type": "string | undefined"
1570
+ },
1571
+ {
1572
+ "name": "allowSet",
1573
+ "tags": [],
1574
+ "docs": "",
1575
+ "complexTypes": [],
1576
+ "type": "boolean | undefined"
1178
1577
  }
1179
1578
  ]
1180
- }
1181
- ],
1182
- "enums": [],
1183
- "typeAliases": [
1579
+ },
1184
1580
  {
1185
- "name": "BundleStatus",
1186
- "slug": "bundlestatus",
1581
+ "name": "SetCustomIdOptions",
1582
+ "slug": "setcustomidoptions",
1187
1583
  "docs": "",
1188
- "types": [
1584
+ "tags": [],
1585
+ "methods": [],
1586
+ "properties": [
1189
1587
  {
1190
- "text": "\"success\"",
1191
- "complexTypes": []
1192
- },
1588
+ "name": "customId",
1589
+ "tags": [],
1590
+ "docs": "",
1591
+ "complexTypes": [],
1592
+ "type": "string"
1593
+ }
1594
+ ]
1595
+ },
1596
+ {
1597
+ "name": "BuiltinVersion",
1598
+ "slug": "builtinversion",
1599
+ "docs": "",
1600
+ "tags": [],
1601
+ "methods": [],
1602
+ "properties": [
1193
1603
  {
1194
- "text": "\"error\"",
1195
- "complexTypes": []
1196
- },
1604
+ "name": "version",
1605
+ "tags": [],
1606
+ "docs": "",
1607
+ "complexTypes": [],
1608
+ "type": "string"
1609
+ }
1610
+ ]
1611
+ },
1612
+ {
1613
+ "name": "DeviceId",
1614
+ "slug": "deviceid",
1615
+ "docs": "",
1616
+ "tags": [],
1617
+ "methods": [],
1618
+ "properties": [
1197
1619
  {
1198
- "text": "\"pending\"",
1199
- "complexTypes": []
1200
- },
1620
+ "name": "deviceId",
1621
+ "tags": [],
1622
+ "docs": "",
1623
+ "complexTypes": [],
1624
+ "type": "string"
1625
+ }
1626
+ ]
1627
+ },
1628
+ {
1629
+ "name": "PluginVersion",
1630
+ "slug": "pluginversion",
1631
+ "docs": "",
1632
+ "tags": [],
1633
+ "methods": [],
1634
+ "properties": [
1201
1635
  {
1202
- "text": "\"downloading\"",
1203
- "complexTypes": []
1636
+ "name": "version",
1637
+ "tags": [],
1638
+ "docs": "",
1639
+ "complexTypes": [],
1640
+ "type": "string"
1204
1641
  }
1205
1642
  ]
1206
1643
  },
1207
1644
  {
1208
- "name": "DelayUntilNext",
1209
- "slug": "delayuntilnext",
1645
+ "name": "AutoUpdateEnabled",
1646
+ "slug": "autoupdateenabled",
1210
1647
  "docs": "",
1211
- "types": [
1648
+ "tags": [],
1649
+ "methods": [],
1650
+ "properties": [
1212
1651
  {
1213
- "text": "\"background\"",
1214
- "complexTypes": []
1215
- },
1652
+ "name": "enabled",
1653
+ "tags": [],
1654
+ "docs": "",
1655
+ "complexTypes": [],
1656
+ "type": "boolean"
1657
+ }
1658
+ ]
1659
+ },
1660
+ {
1661
+ "name": "PluginListenerHandle",
1662
+ "slug": "pluginlistenerhandle",
1663
+ "docs": "",
1664
+ "tags": [],
1665
+ "methods": [],
1666
+ "properties": [
1216
1667
  {
1217
- "text": "\"kill\"",
1218
- "complexTypes": []
1219
- },
1668
+ "name": "remove",
1669
+ "tags": [],
1670
+ "docs": "",
1671
+ "complexTypes": [],
1672
+ "type": "() => Promise<void>"
1673
+ }
1674
+ ]
1675
+ },
1676
+ {
1677
+ "name": "DownloadEvent",
1678
+ "slug": "downloadevent",
1679
+ "docs": "",
1680
+ "tags": [],
1681
+ "methods": [],
1682
+ "properties": [
1220
1683
  {
1221
- "text": "\"nativeVersion\"",
1222
- "complexTypes": []
1684
+ "name": "percent",
1685
+ "tags": [
1686
+ {
1687
+ "text": "4.0.0",
1688
+ "name": "since"
1689
+ }
1690
+ ],
1691
+ "docs": "Current status of download, between 0 and 100.",
1692
+ "complexTypes": [],
1693
+ "type": "number"
1223
1694
  },
1224
1695
  {
1225
- "text": "\"date\"",
1226
- "complexTypes": []
1696
+ "name": "bundle",
1697
+ "tags": [],
1698
+ "docs": "",
1699
+ "complexTypes": [
1700
+ "BundleInfo"
1701
+ ],
1702
+ "type": "BundleInfo"
1227
1703
  }
1228
1704
  ]
1229
1705
  },
1230
1706
  {
1231
- "name": "DownloadChangeListener",
1232
- "slug": "downloadchangelistener",
1707
+ "name": "NoNeedEvent",
1708
+ "slug": "noneedevent",
1233
1709
  "docs": "",
1234
- "types": [
1710
+ "tags": [],
1711
+ "methods": [],
1712
+ "properties": [
1235
1713
  {
1236
- "text": "(state: DownloadEvent): void",
1714
+ "name": "bundle",
1715
+ "tags": [
1716
+ {
1717
+ "text": "4.0.0",
1718
+ "name": "since"
1719
+ }
1720
+ ],
1721
+ "docs": "Current status of download, between 0 and 100.",
1237
1722
  "complexTypes": [
1238
- "DownloadEvent"
1239
- ]
1723
+ "BundleInfo"
1724
+ ],
1725
+ "type": "BundleInfo"
1240
1726
  }
1241
1727
  ]
1242
1728
  },
1243
1729
  {
1244
- "name": "NoNeedListener",
1245
- "slug": "noneedlistener",
1730
+ "name": "UpdateAvailableEvent",
1731
+ "slug": "updateavailableevent",
1246
1732
  "docs": "",
1247
- "types": [
1733
+ "tags": [],
1734
+ "methods": [],
1735
+ "properties": [
1248
1736
  {
1249
- "text": "(state: noNeedEvent): void",
1737
+ "name": "bundle",
1738
+ "tags": [
1739
+ {
1740
+ "text": "4.0.0",
1741
+ "name": "since"
1742
+ }
1743
+ ],
1744
+ "docs": "Current status of download, between 0 and 100.",
1250
1745
  "complexTypes": [
1251
- "noNeedEvent"
1252
- ]
1746
+ "BundleInfo"
1747
+ ],
1748
+ "type": "BundleInfo"
1253
1749
  }
1254
1750
  ]
1255
1751
  },
1256
1752
  {
1257
- "name": "UpdateAvailabledListener",
1258
- "slug": "updateavailabledlistener",
1753
+ "name": "DownloadCompleteEvent",
1754
+ "slug": "downloadcompleteevent",
1259
1755
  "docs": "",
1260
- "types": [
1756
+ "tags": [],
1757
+ "methods": [],
1758
+ "properties": [
1261
1759
  {
1262
- "text": "(state: updateAvailableEvent): void",
1760
+ "name": "bundle",
1761
+ "tags": [
1762
+ {
1763
+ "text": "4.0.0",
1764
+ "name": "since"
1765
+ }
1766
+ ],
1767
+ "docs": "Emit when a new update is available.",
1263
1768
  "complexTypes": [
1264
- "updateAvailableEvent"
1265
- ]
1769
+ "BundleInfo"
1770
+ ],
1771
+ "type": "BundleInfo"
1266
1772
  }
1267
1773
  ]
1268
1774
  },
1269
1775
  {
1270
- "name": "DownloadCompleteListener",
1271
- "slug": "downloadcompletelistener",
1776
+ "name": "MajorAvailableEvent",
1777
+ "slug": "majoravailableevent",
1272
1778
  "docs": "",
1273
- "types": [
1779
+ "tags": [],
1780
+ "methods": [],
1781
+ "properties": [
1274
1782
  {
1275
- "text": "(state: DownloadCompleteEvent): void",
1783
+ "name": "version",
1784
+ "tags": [
1785
+ {
1786
+ "text": "4.0.0",
1787
+ "name": "since"
1788
+ }
1789
+ ],
1790
+ "docs": "Emit when a new major bundle is available.",
1791
+ "complexTypes": [],
1792
+ "type": "string"
1793
+ }
1794
+ ]
1795
+ },
1796
+ {
1797
+ "name": "UpdateFailedEvent",
1798
+ "slug": "updatefailedevent",
1799
+ "docs": "",
1800
+ "tags": [],
1801
+ "methods": [],
1802
+ "properties": [
1803
+ {
1804
+ "name": "bundle",
1805
+ "tags": [
1806
+ {
1807
+ "text": "4.0.0",
1808
+ "name": "since"
1809
+ }
1810
+ ],
1811
+ "docs": "Emit when a update failed to install.",
1276
1812
  "complexTypes": [
1277
- "DownloadCompleteEvent"
1278
- ]
1813
+ "BundleInfo"
1814
+ ],
1815
+ "type": "BundleInfo"
1816
+ }
1817
+ ]
1818
+ },
1819
+ {
1820
+ "name": "DownloadFailedEvent",
1821
+ "slug": "downloadfailedevent",
1822
+ "docs": "",
1823
+ "tags": [],
1824
+ "methods": [],
1825
+ "properties": [
1826
+ {
1827
+ "name": "version",
1828
+ "tags": [
1829
+ {
1830
+ "text": "4.0.0",
1831
+ "name": "since"
1832
+ }
1833
+ ],
1834
+ "docs": "Emit when a download fail.",
1835
+ "complexTypes": [],
1836
+ "type": "string"
1279
1837
  }
1280
1838
  ]
1281
1839
  },
1282
1840
  {
1283
- "name": "MajorAvailableListener",
1284
- "slug": "majoravailablelistener",
1841
+ "name": "AppReadyEvent",
1842
+ "slug": "appreadyevent",
1285
1843
  "docs": "",
1286
- "types": [
1844
+ "tags": [],
1845
+ "methods": [],
1846
+ "properties": [
1287
1847
  {
1288
- "text": "(state: MajorAvailableEvent): void",
1848
+ "name": "bundle",
1849
+ "tags": [
1850
+ {
1851
+ "text": "5.2.0",
1852
+ "name": "since"
1853
+ }
1854
+ ],
1855
+ "docs": "Emitted when the app is ready to use.",
1289
1856
  "complexTypes": [
1290
- "MajorAvailableEvent"
1291
- ]
1857
+ "BundleInfo"
1858
+ ],
1859
+ "type": "BundleInfo"
1860
+ },
1861
+ {
1862
+ "name": "status",
1863
+ "tags": [],
1864
+ "docs": "",
1865
+ "complexTypes": [],
1866
+ "type": "string"
1292
1867
  }
1293
1868
  ]
1294
1869
  },
1295
1870
  {
1296
- "name": "UpdateFailedListener",
1297
- "slug": "updatefailedlistener",
1871
+ "name": "AutoUpdateAvailable",
1872
+ "slug": "autoupdateavailable",
1298
1873
  "docs": "",
1299
- "types": [
1874
+ "tags": [],
1875
+ "methods": [],
1876
+ "properties": [
1300
1877
  {
1301
- "text": "(state: UpdateFailedEvent): void",
1302
- "complexTypes": [
1303
- "UpdateFailedEvent"
1304
- ]
1878
+ "name": "available",
1879
+ "tags": [],
1880
+ "docs": "",
1881
+ "complexTypes": [],
1882
+ "type": "boolean"
1305
1883
  }
1306
1884
  ]
1307
- },
1885
+ }
1886
+ ],
1887
+ "enums": [],
1888
+ "typeAliases": [
1308
1889
  {
1309
- "name": "DownloadFailedListener",
1310
- "slug": "downloadfailedlistener",
1890
+ "name": "BundleStatus",
1891
+ "slug": "bundlestatus",
1311
1892
  "docs": "",
1312
1893
  "types": [
1313
1894
  {
1314
- "text": "(state: DownloadFailedEvent): void",
1315
- "complexTypes": [
1316
- "DownloadFailedEvent"
1317
- ]
1895
+ "text": "'success'",
1896
+ "complexTypes": []
1897
+ },
1898
+ {
1899
+ "text": "'error'",
1900
+ "complexTypes": []
1901
+ },
1902
+ {
1903
+ "text": "'pending'",
1904
+ "complexTypes": []
1905
+ },
1906
+ {
1907
+ "text": "'downloading'",
1908
+ "complexTypes": []
1318
1909
  }
1319
1910
  ]
1320
1911
  },
1321
1912
  {
1322
- "name": "AppReloadedListener",
1323
- "slug": "appreloadedlistener",
1913
+ "name": "DelayUntilNext",
1914
+ "slug": "delayuntilnext",
1324
1915
  "docs": "",
1325
1916
  "types": [
1326
1917
  {
1327
- "text": "(state: void): void",
1918
+ "text": "'background'",
1919
+ "complexTypes": []
1920
+ },
1921
+ {
1922
+ "text": "'kill'",
1923
+ "complexTypes": []
1924
+ },
1925
+ {
1926
+ "text": "'nativeVersion'",
1927
+ "complexTypes": []
1928
+ },
1929
+ {
1930
+ "text": "'date'",
1328
1931
  "complexTypes": []
1329
1932
  }
1330
1933
  ]
@@ -1351,6 +1954,22 @@
1351
1954
  "complexTypes": [],
1352
1955
  "type": "number | undefined"
1353
1956
  },
1957
+ {
1958
+ "name": "responseTimeout",
1959
+ "tags": [
1960
+ {
1961
+ "text": "20 // (20 second)",
1962
+ "name": "default"
1963
+ },
1964
+ {
1965
+ "text": "10 // (10 second)",
1966
+ "name": "example"
1967
+ }
1968
+ ],
1969
+ "docs": "Configure the number of milliseconds the native plugin should wait before considering API timeout.\n\nOnly available for Android and iOS.",
1970
+ "complexTypes": [],
1971
+ "type": "number | undefined"
1972
+ },
1354
1973
  {
1355
1974
  "name": "autoDeleteFailed",
1356
1975
  "tags": [
@@ -1419,7 +2038,7 @@
1419
2038
  "name": "updateUrl",
1420
2039
  "tags": [
1421
2040
  {
1422
- "text": "https://api.capgo.app/auto_update",
2041
+ "text": "https://plugin.capgo.app/updates",
1423
2042
  "name": "default"
1424
2043
  },
1425
2044
  {
@@ -1431,11 +2050,27 @@
1431
2050
  "complexTypes": [],
1432
2051
  "type": "string | undefined"
1433
2052
  },
2053
+ {
2054
+ "name": "channelUrl",
2055
+ "tags": [
2056
+ {
2057
+ "text": "https://plugin.capgo.app/channel_self",
2058
+ "name": "default"
2059
+ },
2060
+ {
2061
+ "text": "https://example.com/api/channel",
2062
+ "name": "example"
2063
+ }
2064
+ ],
2065
+ "docs": "Configure the URL / endpoint for channel operations.\n\nOnly available for Android and iOS.",
2066
+ "complexTypes": [],
2067
+ "type": "string | undefined"
2068
+ },
1434
2069
  {
1435
2070
  "name": "statsUrl",
1436
2071
  "tags": [
1437
2072
  {
1438
- "text": "https://api.capgo.app/stats",
2073
+ "text": "https://plugin.capgo.app/stats",
1439
2074
  "name": "default"
1440
2075
  },
1441
2076
  {
@@ -1448,14 +2083,18 @@
1448
2083
  "type": "string | undefined"
1449
2084
  },
1450
2085
  {
1451
- "name": "privateKey",
2086
+ "name": "publicKey",
1452
2087
  "tags": [
1453
2088
  {
1454
2089
  "text": "undefined",
1455
2090
  "name": "default"
2091
+ },
2092
+ {
2093
+ "text": "6.2.0",
2094
+ "name": "since"
1456
2095
  }
1457
2096
  ],
1458
- "docs": "Configure the private key for end to end live update encryption.\n\nOnly available for Android and iOS.",
2097
+ "docs": "Configure the public key for end to end live update encryption Version 2\n\nOnly available for Android and iOS.",
1459
2098
  "complexTypes": [],
1460
2099
  "type": "string | undefined"
1461
2100
  },
@@ -1474,9 +2113,213 @@
1474
2113
  "docs": "Configure the current version of the app. This will be used for the first update request.\nIf not set, the plugin will get the version from the native code.\n\nOnly available for Android and iOS.",
1475
2114
  "complexTypes": [],
1476
2115
  "type": "string | undefined"
2116
+ },
2117
+ {
2118
+ "name": "directUpdate",
2119
+ "tags": [
2120
+ {
2121
+ "text": "undefined",
2122
+ "name": "default"
2123
+ },
2124
+ {
2125
+ "text": "5.1.0",
2126
+ "name": "since"
2127
+ }
2128
+ ],
2129
+ "docs": "Make the plugin direct install the update when the app what just updated/installed. Only for autoUpdate mode.\n\nOnly available for Android and iOS.",
2130
+ "complexTypes": [],
2131
+ "type": "boolean | undefined"
2132
+ },
2133
+ {
2134
+ "name": "periodCheckDelay",
2135
+ "tags": [
2136
+ {
2137
+ "text": "600 // (10 minutes)",
2138
+ "name": "default"
2139
+ }
2140
+ ],
2141
+ "docs": "Configure the delay period for period update check. the unit is in seconds.\n\nOnly available for Android and iOS.\nCannot be less than 600 seconds (10 minutes).",
2142
+ "complexTypes": [],
2143
+ "type": "number | undefined"
2144
+ },
2145
+ {
2146
+ "name": "localS3",
2147
+ "tags": [
2148
+ {
2149
+ "text": "undefined",
2150
+ "name": "default"
2151
+ },
2152
+ {
2153
+ "text": "4.17.48",
2154
+ "name": "since"
2155
+ }
2156
+ ],
2157
+ "docs": "Configure the CLI to use a local server for testing or self-hosted update server.",
2158
+ "complexTypes": [],
2159
+ "type": "boolean | undefined"
2160
+ },
2161
+ {
2162
+ "name": "localHost",
2163
+ "tags": [
2164
+ {
2165
+ "text": "undefined",
2166
+ "name": "default"
2167
+ },
2168
+ {
2169
+ "text": "4.17.48",
2170
+ "name": "since"
2171
+ }
2172
+ ],
2173
+ "docs": "Configure the CLI to use a local server for testing or self-hosted update server.",
2174
+ "complexTypes": [],
2175
+ "type": "string | undefined"
2176
+ },
2177
+ {
2178
+ "name": "localWebHost",
2179
+ "tags": [
2180
+ {
2181
+ "text": "undefined",
2182
+ "name": "default"
2183
+ },
2184
+ {
2185
+ "text": "4.17.48",
2186
+ "name": "since"
2187
+ }
2188
+ ],
2189
+ "docs": "Configure the CLI to use a local server for testing or self-hosted update server.",
2190
+ "complexTypes": [],
2191
+ "type": "string | undefined"
2192
+ },
2193
+ {
2194
+ "name": "localSupa",
2195
+ "tags": [
2196
+ {
2197
+ "text": "undefined",
2198
+ "name": "default"
2199
+ },
2200
+ {
2201
+ "text": "4.17.48",
2202
+ "name": "since"
2203
+ }
2204
+ ],
2205
+ "docs": "Configure the CLI to use a local server for testing or self-hosted update server.",
2206
+ "complexTypes": [],
2207
+ "type": "string | undefined"
2208
+ },
2209
+ {
2210
+ "name": "localSupaAnon",
2211
+ "tags": [
2212
+ {
2213
+ "text": "undefined",
2214
+ "name": "default"
2215
+ },
2216
+ {
2217
+ "text": "4.17.48",
2218
+ "name": "since"
2219
+ }
2220
+ ],
2221
+ "docs": "Configure the CLI to use a local server for testing.",
2222
+ "complexTypes": [],
2223
+ "type": "string | undefined"
2224
+ },
2225
+ {
2226
+ "name": "localApi",
2227
+ "tags": [
2228
+ {
2229
+ "text": "undefined",
2230
+ "name": "default"
2231
+ },
2232
+ {
2233
+ "text": "6.3.3",
2234
+ "name": "since"
2235
+ }
2236
+ ],
2237
+ "docs": "Configure the CLI to use a local api for testing.",
2238
+ "complexTypes": [],
2239
+ "type": "string | undefined"
2240
+ },
2241
+ {
2242
+ "name": "localApiFiles",
2243
+ "tags": [
2244
+ {
2245
+ "text": "undefined",
2246
+ "name": "default"
2247
+ },
2248
+ {
2249
+ "text": "6.3.3",
2250
+ "name": "since"
2251
+ }
2252
+ ],
2253
+ "docs": "Configure the CLI to use a local file api for testing.",
2254
+ "complexTypes": [],
2255
+ "type": "string | undefined"
2256
+ },
2257
+ {
2258
+ "name": "allowModifyUrl",
2259
+ "tags": [
2260
+ {
2261
+ "text": "false",
2262
+ "name": "default"
2263
+ },
2264
+ {
2265
+ "text": "5.4.0",
2266
+ "name": "since"
2267
+ }
2268
+ ],
2269
+ "docs": "Allow the plugin to modify the updateUrl, statsUrl and channelUrl dynamically from the JavaScript side.",
2270
+ "complexTypes": [],
2271
+ "type": "boolean | undefined"
2272
+ },
2273
+ {
2274
+ "name": "defaultChannel",
2275
+ "tags": [
2276
+ {
2277
+ "text": "undefined",
2278
+ "name": "default"
2279
+ },
2280
+ {
2281
+ "text": "5.5.0",
2282
+ "name": "since"
2283
+ }
2284
+ ],
2285
+ "docs": "Set the default channel for the app in the config.",
2286
+ "complexTypes": [],
2287
+ "type": "string | undefined"
2288
+ },
2289
+ {
2290
+ "name": "appId",
2291
+ "tags": [
2292
+ {
2293
+ "text": "undefined",
2294
+ "name": "default"
2295
+ },
2296
+ {
2297
+ "text": "6.0.0",
2298
+ "name": "since"
2299
+ }
2300
+ ],
2301
+ "docs": "Configure the app id for the app in the config.",
2302
+ "complexTypes": [],
2303
+ "type": "string | undefined"
2304
+ },
2305
+ {
2306
+ "name": "keepUrlPathAfterReload",
2307
+ "tags": [
2308
+ {
2309
+ "text": "false",
2310
+ "name": "default"
2311
+ },
2312
+ {
2313
+ "text": "6.8.0",
2314
+ "name": "since"
2315
+ }
2316
+ ],
2317
+ "docs": "Configure the plugin to keep the URL path after a reload.\nWARNING: When a reload is triggered, 'window.history' will be cleared.",
2318
+ "complexTypes": [],
2319
+ "type": "boolean | undefined"
1477
2320
  }
1478
2321
  ],
1479
- "docs": "These configuration values are available:"
2322
+ "docs": "CapacitorUpdater can be configured with these options:"
1480
2323
  }
1481
2324
  ]
1482
2325
  }