@capawesome/capacitor-intercom 0.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 (73) hide show
  1. package/CapawesomeCapacitorIntercom.podspec +19 -0
  2. package/LICENSE +21 -0
  3. package/Package.swift +30 -0
  4. package/README.md +932 -0
  5. package/android/build.gradle +60 -0
  6. package/android/src/main/AndroidManifest.xml +2 -0
  7. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/Intercom.java +441 -0
  8. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/IntercomHelper.java +38 -0
  9. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/IntercomPlugin.java +307 -0
  10. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/CustomException.java +20 -0
  11. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/CustomExceptions.java +23 -0
  12. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/events/UnreadConversationCountChangeEvent.java +22 -0
  13. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/HandlePushNotificationOptions.java +25 -0
  14. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/InitializeOptions.java +34 -0
  15. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/IsIntercomPushNotificationOptions.java +25 -0
  16. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/LogEventOptions.java +35 -0
  17. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/LoginUserOptions.java +33 -0
  18. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/PresentContentOptions.java +71 -0
  19. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/PresentMessageComposerOptions.java +20 -0
  20. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/PresentOptions.java +19 -0
  21. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/SendPushTokenToIntercomOptions.java +24 -0
  22. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/SetBottomPaddingOptions.java +22 -0
  23. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/SetInAppMessagesVisibleOptions.java +22 -0
  24. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/SetLauncherVisibleOptions.java +22 -0
  25. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/SetUserHashOptions.java +24 -0
  26. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/SetUserJwtOptions.java +24 -0
  27. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/options/UpdateUserOptions.java +108 -0
  28. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/results/GetUnreadConversationCountResult.java +22 -0
  29. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/classes/results/IsIntercomPushNotificationResult.java +22 -0
  30. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/interfaces/Callback.java +5 -0
  31. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/interfaces/EmptyCallback.java +5 -0
  32. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/interfaces/NonEmptyResultCallback.java +7 -0
  33. package/android/src/main/java/io/capawesome/capacitorjs/plugins/intercom/interfaces/Result.java +7 -0
  34. package/android/src/main/res/.gitkeep +0 -0
  35. package/dist/docs.json +1345 -0
  36. package/dist/esm/definitions.d.ts +549 -0
  37. package/dist/esm/definitions.js +27 -0
  38. package/dist/esm/definitions.js.map +1 -0
  39. package/dist/esm/index.d.ts +4 -0
  40. package/dist/esm/index.js +7 -0
  41. package/dist/esm/index.js.map +1 -0
  42. package/dist/esm/web.d.ts +34 -0
  43. package/dist/esm/web.js +175 -0
  44. package/dist/esm/web.js.map +1 -0
  45. package/dist/plugin.cjs.js +215 -0
  46. package/dist/plugin.cjs.js.map +1 -0
  47. package/dist/plugin.js +217 -0
  48. package/dist/plugin.js.map +1 -0
  49. package/ios/Plugin/Classes/Events/UnreadConversationCountChangeEvent.swift +16 -0
  50. package/ios/Plugin/Classes/Options/HandlePushNotificationOptions.swift +13 -0
  51. package/ios/Plugin/Classes/Options/InitializeOptions.swift +15 -0
  52. package/ios/Plugin/Classes/Options/IsIntercomPushNotificationOptions.swift +13 -0
  53. package/ios/Plugin/Classes/Options/LogEventOptions.swift +15 -0
  54. package/ios/Plugin/Classes/Options/LoginUserOptions.swift +17 -0
  55. package/ios/Plugin/Classes/Options/PresentContentOptions.swift +29 -0
  56. package/ios/Plugin/Classes/Options/PresentMessageComposerOptions.swift +10 -0
  57. package/ios/Plugin/Classes/Options/PresentOptions.swift +10 -0
  58. package/ios/Plugin/Classes/Options/SendPushTokenToIntercomOptions.swift +13 -0
  59. package/ios/Plugin/Classes/Options/SetBottomPaddingOptions.swift +13 -0
  60. package/ios/Plugin/Classes/Options/SetInAppMessagesVisibleOptions.swift +13 -0
  61. package/ios/Plugin/Classes/Options/SetLauncherVisibleOptions.swift +13 -0
  62. package/ios/Plugin/Classes/Options/SetUserHashOptions.swift +13 -0
  63. package/ios/Plugin/Classes/Options/SetUserJwtOptions.swift +13 -0
  64. package/ios/Plugin/Classes/Options/UpdateUserOptions.swift +38 -0
  65. package/ios/Plugin/Classes/Results/GetUnreadConversationCountResult.swift +16 -0
  66. package/ios/Plugin/Classes/Results/IsIntercomPushNotificationResult.swift +16 -0
  67. package/ios/Plugin/Enums/CustomError.swift +75 -0
  68. package/ios/Plugin/Info.plist +24 -0
  69. package/ios/Plugin/Intercom.swift +323 -0
  70. package/ios/Plugin/IntercomHelper.swift +17 -0
  71. package/ios/Plugin/IntercomPlugin.swift +261 -0
  72. package/ios/Plugin/Protocols/Result.swift +5 -0
  73. package/package.json +105 -0
package/dist/docs.json ADDED
@@ -0,0 +1,1345 @@
1
+ {
2
+ "api": {
3
+ "name": "IntercomPlugin",
4
+ "slug": "intercomplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "getUnreadConversationCount",
10
+ "signature": "() => Promise<GetUnreadConversationCountResult>",
11
+ "parameters": [],
12
+ "returns": "Promise<GetUnreadConversationCountResult>",
13
+ "tags": [
14
+ {
15
+ "name": "since",
16
+ "text": "0.1.0"
17
+ }
18
+ ],
19
+ "docs": "Get the number of unread conversations for the current user.",
20
+ "complexTypes": [
21
+ "GetUnreadConversationCountResult"
22
+ ],
23
+ "slug": "getunreadconversationcount"
24
+ },
25
+ {
26
+ "name": "handlePushNotification",
27
+ "signature": "(options: HandlePushNotificationOptions) => Promise<void>",
28
+ "parameters": [
29
+ {
30
+ "name": "options",
31
+ "docs": "",
32
+ "type": "HandlePushNotificationOptions"
33
+ }
34
+ ],
35
+ "returns": "Promise<void>",
36
+ "tags": [
37
+ {
38
+ "name": "since",
39
+ "text": "0.1.0"
40
+ }
41
+ ],
42
+ "docs": "Handle an incoming push notification that belongs to Intercom.\n\nUse `isIntercomPushNotification(...)` to check whether the notification\nbelongs to Intercom before calling this method.\n\nOnly available on Android and iOS.",
43
+ "complexTypes": [
44
+ "HandlePushNotificationOptions"
45
+ ],
46
+ "slug": "handlepushnotification"
47
+ },
48
+ {
49
+ "name": "hide",
50
+ "signature": "() => Promise<void>",
51
+ "parameters": [],
52
+ "returns": "Promise<void>",
53
+ "tags": [
54
+ {
55
+ "name": "since",
56
+ "text": "0.1.0"
57
+ }
58
+ ],
59
+ "docs": "Hide any currently presented Intercom UI (e.g. the Messenger).",
60
+ "complexTypes": [],
61
+ "slug": "hide"
62
+ },
63
+ {
64
+ "name": "initialize",
65
+ "signature": "(options: InitializeOptions) => Promise<void>",
66
+ "parameters": [
67
+ {
68
+ "name": "options",
69
+ "docs": "",
70
+ "type": "InitializeOptions"
71
+ }
72
+ ],
73
+ "returns": "Promise<void>",
74
+ "tags": [
75
+ {
76
+ "name": "since",
77
+ "text": "0.1.0"
78
+ }
79
+ ],
80
+ "docs": "Initialize the Intercom SDK with your app ID and API key.\n\nThis method must be called before any other method.",
81
+ "complexTypes": [
82
+ "InitializeOptions"
83
+ ],
84
+ "slug": "initialize"
85
+ },
86
+ {
87
+ "name": "isIntercomPushNotification",
88
+ "signature": "(options: IsIntercomPushNotificationOptions) => Promise<IsIntercomPushNotificationResult>",
89
+ "parameters": [
90
+ {
91
+ "name": "options",
92
+ "docs": "",
93
+ "type": "IsIntercomPushNotificationOptions"
94
+ }
95
+ ],
96
+ "returns": "Promise<IsIntercomPushNotificationResult>",
97
+ "tags": [
98
+ {
99
+ "name": "since",
100
+ "text": "0.1.0"
101
+ }
102
+ ],
103
+ "docs": "Check whether an incoming push notification belongs to Intercom.\n\nOnly available on Android and iOS.",
104
+ "complexTypes": [
105
+ "IsIntercomPushNotificationResult",
106
+ "IsIntercomPushNotificationOptions"
107
+ ],
108
+ "slug": "isintercompushnotification"
109
+ },
110
+ {
111
+ "name": "logEvent",
112
+ "signature": "(options: LogEventOptions) => Promise<void>",
113
+ "parameters": [
114
+ {
115
+ "name": "options",
116
+ "docs": "",
117
+ "type": "LogEventOptions"
118
+ }
119
+ ],
120
+ "returns": "Promise<void>",
121
+ "tags": [
122
+ {
123
+ "name": "since",
124
+ "text": "0.1.0"
125
+ }
126
+ ],
127
+ "docs": "Log an event with an optional set of metadata.",
128
+ "complexTypes": [
129
+ "LogEventOptions"
130
+ ],
131
+ "slug": "logevent"
132
+ },
133
+ {
134
+ "name": "loginUnidentifiedUser",
135
+ "signature": "() => Promise<void>",
136
+ "parameters": [],
137
+ "returns": "Promise<void>",
138
+ "tags": [
139
+ {
140
+ "name": "since",
141
+ "text": "0.1.0"
142
+ }
143
+ ],
144
+ "docs": "Log in an unidentified (anonymous) user.",
145
+ "complexTypes": [],
146
+ "slug": "loginunidentifieduser"
147
+ },
148
+ {
149
+ "name": "loginUser",
150
+ "signature": "(options: LoginUserOptions) => Promise<void>",
151
+ "parameters": [
152
+ {
153
+ "name": "options",
154
+ "docs": "",
155
+ "type": "LoginUserOptions"
156
+ }
157
+ ],
158
+ "returns": "Promise<void>",
159
+ "tags": [
160
+ {
161
+ "name": "since",
162
+ "text": "0.1.0"
163
+ }
164
+ ],
165
+ "docs": "Log in an identified user with a user ID and/or an email address.\n\nAt least one of `userId` or `email` must be provided.",
166
+ "complexTypes": [
167
+ "LoginUserOptions"
168
+ ],
169
+ "slug": "loginuser"
170
+ },
171
+ {
172
+ "name": "logout",
173
+ "signature": "() => Promise<void>",
174
+ "parameters": [],
175
+ "returns": "Promise<void>",
176
+ "tags": [
177
+ {
178
+ "name": "since",
179
+ "text": "0.1.0"
180
+ }
181
+ ],
182
+ "docs": "Log out the current user and clear the local Intercom data.",
183
+ "complexTypes": [],
184
+ "slug": "logout"
185
+ },
186
+ {
187
+ "name": "present",
188
+ "signature": "(options?: PresentOptions | undefined) => Promise<void>",
189
+ "parameters": [
190
+ {
191
+ "name": "options",
192
+ "docs": "",
193
+ "type": "PresentOptions | undefined"
194
+ }
195
+ ],
196
+ "returns": "Promise<void>",
197
+ "tags": [
198
+ {
199
+ "name": "since",
200
+ "text": "0.1.0"
201
+ }
202
+ ],
203
+ "docs": "Present the Intercom Messenger with the given space.",
204
+ "complexTypes": [
205
+ "PresentOptions"
206
+ ],
207
+ "slug": "present"
208
+ },
209
+ {
210
+ "name": "presentContent",
211
+ "signature": "(options: PresentContentOptions) => Promise<void>",
212
+ "parameters": [
213
+ {
214
+ "name": "options",
215
+ "docs": "",
216
+ "type": "PresentContentOptions"
217
+ }
218
+ ],
219
+ "returns": "Promise<void>",
220
+ "tags": [
221
+ {
222
+ "name": "since",
223
+ "text": "0.1.0"
224
+ }
225
+ ],
226
+ "docs": "Present a specific piece of Intercom content (e.g. an article, carousel,\nsurvey, or conversation).",
227
+ "complexTypes": [
228
+ "PresentContentOptions"
229
+ ],
230
+ "slug": "presentcontent"
231
+ },
232
+ {
233
+ "name": "presentMessageComposer",
234
+ "signature": "(options?: PresentMessageComposerOptions | undefined) => Promise<void>",
235
+ "parameters": [
236
+ {
237
+ "name": "options",
238
+ "docs": "",
239
+ "type": "PresentMessageComposerOptions | undefined"
240
+ }
241
+ ],
242
+ "returns": "Promise<void>",
243
+ "tags": [
244
+ {
245
+ "name": "since",
246
+ "text": "0.1.0"
247
+ }
248
+ ],
249
+ "docs": "Present the Intercom message composer, optionally pre-filled with an\ninitial message.",
250
+ "complexTypes": [
251
+ "PresentMessageComposerOptions"
252
+ ],
253
+ "slug": "presentmessagecomposer"
254
+ },
255
+ {
256
+ "name": "sendPushTokenToIntercom",
257
+ "signature": "(options: SendPushTokenToIntercomOptions) => Promise<void>",
258
+ "parameters": [
259
+ {
260
+ "name": "options",
261
+ "docs": "",
262
+ "type": "SendPushTokenToIntercomOptions"
263
+ }
264
+ ],
265
+ "returns": "Promise<void>",
266
+ "tags": [
267
+ {
268
+ "name": "since",
269
+ "text": "0.1.0"
270
+ }
271
+ ],
272
+ "docs": "Forward a push notification token to Intercom.\n\nOn Android, pass the Firebase Cloud Messaging (FCM) token. On iOS, pass\nthe hexadecimal APNs device token.",
273
+ "complexTypes": [
274
+ "SendPushTokenToIntercomOptions"
275
+ ],
276
+ "slug": "sendpushtokentointercom"
277
+ },
278
+ {
279
+ "name": "setBottomPadding",
280
+ "signature": "(options: SetBottomPaddingOptions) => Promise<void>",
281
+ "parameters": [
282
+ {
283
+ "name": "options",
284
+ "docs": "",
285
+ "type": "SetBottomPaddingOptions"
286
+ }
287
+ ],
288
+ "returns": "Promise<void>",
289
+ "tags": [
290
+ {
291
+ "name": "since",
292
+ "text": "0.1.0"
293
+ }
294
+ ],
295
+ "docs": "Set the bottom padding of the Intercom UI (in-app messages and launcher).\n\nOnly available on Android and iOS.",
296
+ "complexTypes": [
297
+ "SetBottomPaddingOptions"
298
+ ],
299
+ "slug": "setbottompadding"
300
+ },
301
+ {
302
+ "name": "setInAppMessagesVisible",
303
+ "signature": "(options: SetInAppMessagesVisibleOptions) => Promise<void>",
304
+ "parameters": [
305
+ {
306
+ "name": "options",
307
+ "docs": "",
308
+ "type": "SetInAppMessagesVisibleOptions"
309
+ }
310
+ ],
311
+ "returns": "Promise<void>",
312
+ "tags": [
313
+ {
314
+ "name": "since",
315
+ "text": "0.1.0"
316
+ }
317
+ ],
318
+ "docs": "Set whether in-app messages are visible.",
319
+ "complexTypes": [
320
+ "SetInAppMessagesVisibleOptions"
321
+ ],
322
+ "slug": "setinappmessagesvisible"
323
+ },
324
+ {
325
+ "name": "setLauncherVisible",
326
+ "signature": "(options: SetLauncherVisibleOptions) => Promise<void>",
327
+ "parameters": [
328
+ {
329
+ "name": "options",
330
+ "docs": "",
331
+ "type": "SetLauncherVisibleOptions"
332
+ }
333
+ ],
334
+ "returns": "Promise<void>",
335
+ "tags": [
336
+ {
337
+ "name": "since",
338
+ "text": "0.1.0"
339
+ }
340
+ ],
341
+ "docs": "Set whether the Intercom launcher is visible.",
342
+ "complexTypes": [
343
+ "SetLauncherVisibleOptions"
344
+ ],
345
+ "slug": "setlaunchervisible"
346
+ },
347
+ {
348
+ "name": "setUserHash",
349
+ "signature": "(options: SetUserHashOptions) => Promise<void>",
350
+ "parameters": [
351
+ {
352
+ "name": "options",
353
+ "docs": "",
354
+ "type": "SetUserHashOptions"
355
+ }
356
+ ],
357
+ "returns": "Promise<void>",
358
+ "tags": [
359
+ {
360
+ "name": "since",
361
+ "text": "0.1.0"
362
+ }
363
+ ],
364
+ "docs": "Set the user hash (HMAC) for identity verification.\n\nThis must be called before logging in the user.",
365
+ "complexTypes": [
366
+ "SetUserHashOptions"
367
+ ],
368
+ "slug": "setuserhash"
369
+ },
370
+ {
371
+ "name": "setUserJwt",
372
+ "signature": "(options: SetUserJwtOptions) => Promise<void>",
373
+ "parameters": [
374
+ {
375
+ "name": "options",
376
+ "docs": "",
377
+ "type": "SetUserJwtOptions"
378
+ }
379
+ ],
380
+ "returns": "Promise<void>",
381
+ "tags": [
382
+ {
383
+ "name": "since",
384
+ "text": "0.1.0"
385
+ }
386
+ ],
387
+ "docs": "Set the JSON Web Token (JWT) for identity verification.\n\nThis must be called before logging in the user.",
388
+ "complexTypes": [
389
+ "SetUserJwtOptions"
390
+ ],
391
+ "slug": "setuserjwt"
392
+ },
393
+ {
394
+ "name": "updateUser",
395
+ "signature": "(options: UpdateUserOptions) => Promise<void>",
396
+ "parameters": [
397
+ {
398
+ "name": "options",
399
+ "docs": "",
400
+ "type": "UpdateUserOptions"
401
+ }
402
+ ],
403
+ "returns": "Promise<void>",
404
+ "tags": [
405
+ {
406
+ "name": "since",
407
+ "text": "0.1.0"
408
+ }
409
+ ],
410
+ "docs": "Update the attributes of the current user.",
411
+ "complexTypes": [
412
+ "UpdateUserOptions"
413
+ ],
414
+ "slug": "updateuser"
415
+ },
416
+ {
417
+ "name": "addListener",
418
+ "signature": "(eventName: 'messengerHidden', listenerFunc: () => void) => Promise<PluginListenerHandle>",
419
+ "parameters": [
420
+ {
421
+ "name": "eventName",
422
+ "docs": "",
423
+ "type": "'messengerHidden'"
424
+ },
425
+ {
426
+ "name": "listenerFunc",
427
+ "docs": "",
428
+ "type": "() => void"
429
+ }
430
+ ],
431
+ "returns": "Promise<PluginListenerHandle>",
432
+ "tags": [
433
+ {
434
+ "name": "since",
435
+ "text": "0.1.0"
436
+ }
437
+ ],
438
+ "docs": "Called when the Intercom Messenger is hidden.\n\nOnly available on iOS and Web.",
439
+ "complexTypes": [
440
+ "PluginListenerHandle"
441
+ ],
442
+ "slug": "addlistenermessengerhidden-"
443
+ },
444
+ {
445
+ "name": "addListener",
446
+ "signature": "(eventName: 'messengerShown', listenerFunc: () => void) => Promise<PluginListenerHandle>",
447
+ "parameters": [
448
+ {
449
+ "name": "eventName",
450
+ "docs": "",
451
+ "type": "'messengerShown'"
452
+ },
453
+ {
454
+ "name": "listenerFunc",
455
+ "docs": "",
456
+ "type": "() => void"
457
+ }
458
+ ],
459
+ "returns": "Promise<PluginListenerHandle>",
460
+ "tags": [
461
+ {
462
+ "name": "since",
463
+ "text": "0.1.0"
464
+ }
465
+ ],
466
+ "docs": "Called when the Intercom Messenger is shown.\n\nOnly available on iOS and Web.",
467
+ "complexTypes": [
468
+ "PluginListenerHandle"
469
+ ],
470
+ "slug": "addlistenermessengershown-"
471
+ },
472
+ {
473
+ "name": "addListener",
474
+ "signature": "(eventName: 'unreadConversationCountChange', listenerFunc: (event: UnreadConversationCountChangeEvent) => void) => Promise<PluginListenerHandle>",
475
+ "parameters": [
476
+ {
477
+ "name": "eventName",
478
+ "docs": "",
479
+ "type": "'unreadConversationCountChange'"
480
+ },
481
+ {
482
+ "name": "listenerFunc",
483
+ "docs": "",
484
+ "type": "(event: UnreadConversationCountChangeEvent) => void"
485
+ }
486
+ ],
487
+ "returns": "Promise<PluginListenerHandle>",
488
+ "tags": [
489
+ {
490
+ "name": "since",
491
+ "text": "0.1.0"
492
+ }
493
+ ],
494
+ "docs": "Called when the number of unread conversations changes.",
495
+ "complexTypes": [
496
+ "PluginListenerHandle",
497
+ "UnreadConversationCountChangeEvent"
498
+ ],
499
+ "slug": "addlistenerunreadconversationcountchange-"
500
+ },
501
+ {
502
+ "name": "removeAllListeners",
503
+ "signature": "() => Promise<void>",
504
+ "parameters": [],
505
+ "returns": "Promise<void>",
506
+ "tags": [
507
+ {
508
+ "name": "since",
509
+ "text": "0.1.0"
510
+ }
511
+ ],
512
+ "docs": "Remove all listeners for this plugin.",
513
+ "complexTypes": [],
514
+ "slug": "removealllisteners"
515
+ }
516
+ ],
517
+ "properties": []
518
+ },
519
+ "interfaces": [
520
+ {
521
+ "name": "GetUnreadConversationCountResult",
522
+ "slug": "getunreadconversationcountresult",
523
+ "docs": "",
524
+ "tags": [
525
+ {
526
+ "text": "0.1.0",
527
+ "name": "since"
528
+ }
529
+ ],
530
+ "methods": [],
531
+ "properties": [
532
+ {
533
+ "name": "count",
534
+ "tags": [
535
+ {
536
+ "text": "0.1.0",
537
+ "name": "since"
538
+ }
539
+ ],
540
+ "docs": "The number of unread conversations.",
541
+ "complexTypes": [],
542
+ "type": "number"
543
+ }
544
+ ]
545
+ },
546
+ {
547
+ "name": "HandlePushNotificationOptions",
548
+ "slug": "handlepushnotificationoptions",
549
+ "docs": "",
550
+ "tags": [
551
+ {
552
+ "text": "0.1.0",
553
+ "name": "since"
554
+ }
555
+ ],
556
+ "methods": [],
557
+ "properties": [
558
+ {
559
+ "name": "data",
560
+ "tags": [
561
+ {
562
+ "text": "0.1.0",
563
+ "name": "since"
564
+ }
565
+ ],
566
+ "docs": "The data of the push notification.",
567
+ "complexTypes": [
568
+ "Record"
569
+ ],
570
+ "type": "Record<string, unknown>"
571
+ }
572
+ ]
573
+ },
574
+ {
575
+ "name": "InitializeOptions",
576
+ "slug": "initializeoptions",
577
+ "docs": "",
578
+ "tags": [
579
+ {
580
+ "text": "0.1.0",
581
+ "name": "since"
582
+ }
583
+ ],
584
+ "methods": [],
585
+ "properties": [
586
+ {
587
+ "name": "androidApiKey",
588
+ "tags": [
589
+ {
590
+ "text": "0.1.0",
591
+ "name": "since"
592
+ }
593
+ ],
594
+ "docs": "The Android API key of your Intercom app.\n\nRequired to use the plugin on Android.",
595
+ "complexTypes": [],
596
+ "type": "string | undefined"
597
+ },
598
+ {
599
+ "name": "appId",
600
+ "tags": [
601
+ {
602
+ "text": "0.1.0",
603
+ "name": "since"
604
+ }
605
+ ],
606
+ "docs": "The app ID of your Intercom app.",
607
+ "complexTypes": [],
608
+ "type": "string"
609
+ },
610
+ {
611
+ "name": "iosApiKey",
612
+ "tags": [
613
+ {
614
+ "text": "0.1.0",
615
+ "name": "since"
616
+ }
617
+ ],
618
+ "docs": "The iOS API key of your Intercom app.\n\nRequired to use the plugin on iOS.",
619
+ "complexTypes": [],
620
+ "type": "string | undefined"
621
+ }
622
+ ]
623
+ },
624
+ {
625
+ "name": "IsIntercomPushNotificationResult",
626
+ "slug": "isintercompushnotificationresult",
627
+ "docs": "",
628
+ "tags": [
629
+ {
630
+ "text": "0.1.0",
631
+ "name": "since"
632
+ }
633
+ ],
634
+ "methods": [],
635
+ "properties": [
636
+ {
637
+ "name": "intercom",
638
+ "tags": [
639
+ {
640
+ "text": "0.1.0",
641
+ "name": "since"
642
+ }
643
+ ],
644
+ "docs": "Whether the push notification belongs to Intercom.",
645
+ "complexTypes": [],
646
+ "type": "boolean"
647
+ }
648
+ ]
649
+ },
650
+ {
651
+ "name": "IsIntercomPushNotificationOptions",
652
+ "slug": "isintercompushnotificationoptions",
653
+ "docs": "",
654
+ "tags": [
655
+ {
656
+ "text": "0.1.0",
657
+ "name": "since"
658
+ }
659
+ ],
660
+ "methods": [],
661
+ "properties": [
662
+ {
663
+ "name": "data",
664
+ "tags": [
665
+ {
666
+ "text": "0.1.0",
667
+ "name": "since"
668
+ }
669
+ ],
670
+ "docs": "The data of the push notification.",
671
+ "complexTypes": [
672
+ "Record"
673
+ ],
674
+ "type": "Record<string, unknown>"
675
+ }
676
+ ]
677
+ },
678
+ {
679
+ "name": "LogEventOptions",
680
+ "slug": "logeventoptions",
681
+ "docs": "",
682
+ "tags": [
683
+ {
684
+ "text": "0.1.0",
685
+ "name": "since"
686
+ }
687
+ ],
688
+ "methods": [],
689
+ "properties": [
690
+ {
691
+ "name": "data",
692
+ "tags": [
693
+ {
694
+ "text": "0.1.0",
695
+ "name": "since"
696
+ }
697
+ ],
698
+ "docs": "The metadata of the event.",
699
+ "complexTypes": [
700
+ "Record"
701
+ ],
702
+ "type": "Record<string, string | number | boolean>"
703
+ },
704
+ {
705
+ "name": "name",
706
+ "tags": [
707
+ {
708
+ "text": "0.1.0",
709
+ "name": "since"
710
+ }
711
+ ],
712
+ "docs": "The name of the event.",
713
+ "complexTypes": [],
714
+ "type": "string"
715
+ }
716
+ ]
717
+ },
718
+ {
719
+ "name": "LoginUserOptions",
720
+ "slug": "loginuseroptions",
721
+ "docs": "",
722
+ "tags": [
723
+ {
724
+ "text": "0.1.0",
725
+ "name": "since"
726
+ }
727
+ ],
728
+ "methods": [],
729
+ "properties": [
730
+ {
731
+ "name": "email",
732
+ "tags": [
733
+ {
734
+ "text": "0.1.0",
735
+ "name": "since"
736
+ }
737
+ ],
738
+ "docs": "The email address of the user.",
739
+ "complexTypes": [],
740
+ "type": "string | undefined"
741
+ },
742
+ {
743
+ "name": "userId",
744
+ "tags": [
745
+ {
746
+ "text": "0.1.0",
747
+ "name": "since"
748
+ }
749
+ ],
750
+ "docs": "The unique identifier of the user.",
751
+ "complexTypes": [],
752
+ "type": "string | undefined"
753
+ }
754
+ ]
755
+ },
756
+ {
757
+ "name": "PresentOptions",
758
+ "slug": "presentoptions",
759
+ "docs": "",
760
+ "tags": [
761
+ {
762
+ "text": "0.1.0",
763
+ "name": "since"
764
+ }
765
+ ],
766
+ "methods": [],
767
+ "properties": [
768
+ {
769
+ "name": "space",
770
+ "tags": [
771
+ {
772
+ "text": "'home'",
773
+ "name": "default"
774
+ },
775
+ {
776
+ "text": "0.1.0",
777
+ "name": "since"
778
+ }
779
+ ],
780
+ "docs": "The space to present.",
781
+ "complexTypes": [
782
+ "IntercomSpace"
783
+ ],
784
+ "type": "IntercomSpace"
785
+ }
786
+ ]
787
+ },
788
+ {
789
+ "name": "PresentContentOptions",
790
+ "slug": "presentcontentoptions",
791
+ "docs": "",
792
+ "tags": [
793
+ {
794
+ "text": "0.1.0",
795
+ "name": "since"
796
+ }
797
+ ],
798
+ "methods": [],
799
+ "properties": [
800
+ {
801
+ "name": "id",
802
+ "tags": [
803
+ {
804
+ "text": "0.1.0",
805
+ "name": "since"
806
+ }
807
+ ],
808
+ "docs": "The identifier of the content to present.\n\nRequired for the `article`, `carousel`, `survey`, and `conversation`\ncontent types.",
809
+ "complexTypes": [],
810
+ "type": "string | undefined"
811
+ },
812
+ {
813
+ "name": "ids",
814
+ "tags": [
815
+ {
816
+ "text": "0.1.0",
817
+ "name": "since"
818
+ }
819
+ ],
820
+ "docs": "The identifiers of the content to present.\n\nRequired for the `help-center-collections` content type.",
821
+ "complexTypes": [],
822
+ "type": "string[] | undefined"
823
+ },
824
+ {
825
+ "name": "type",
826
+ "tags": [
827
+ {
828
+ "text": "0.1.0",
829
+ "name": "since"
830
+ }
831
+ ],
832
+ "docs": "The type of content to present.",
833
+ "complexTypes": [
834
+ "IntercomContentType"
835
+ ],
836
+ "type": "IntercomContentType"
837
+ }
838
+ ]
839
+ },
840
+ {
841
+ "name": "PresentMessageComposerOptions",
842
+ "slug": "presentmessagecomposeroptions",
843
+ "docs": "",
844
+ "tags": [
845
+ {
846
+ "text": "0.1.0",
847
+ "name": "since"
848
+ }
849
+ ],
850
+ "methods": [],
851
+ "properties": [
852
+ {
853
+ "name": "initialMessage",
854
+ "tags": [
855
+ {
856
+ "text": "0.1.0",
857
+ "name": "since"
858
+ }
859
+ ],
860
+ "docs": "The message to pre-fill the composer with.",
861
+ "complexTypes": [],
862
+ "type": "string | undefined"
863
+ }
864
+ ]
865
+ },
866
+ {
867
+ "name": "SendPushTokenToIntercomOptions",
868
+ "slug": "sendpushtokentointercomoptions",
869
+ "docs": "",
870
+ "tags": [
871
+ {
872
+ "text": "0.1.0",
873
+ "name": "since"
874
+ }
875
+ ],
876
+ "methods": [],
877
+ "properties": [
878
+ {
879
+ "name": "token",
880
+ "tags": [
881
+ {
882
+ "text": "0.1.0",
883
+ "name": "since"
884
+ }
885
+ ],
886
+ "docs": "The push notification token.\n\nOn Android, this is the Firebase Cloud Messaging (FCM) token. On iOS,\nthis is the hexadecimal APNs device token.",
887
+ "complexTypes": [],
888
+ "type": "string"
889
+ }
890
+ ]
891
+ },
892
+ {
893
+ "name": "SetBottomPaddingOptions",
894
+ "slug": "setbottompaddingoptions",
895
+ "docs": "",
896
+ "tags": [
897
+ {
898
+ "text": "0.1.0",
899
+ "name": "since"
900
+ }
901
+ ],
902
+ "methods": [],
903
+ "properties": [
904
+ {
905
+ "name": "padding",
906
+ "tags": [
907
+ {
908
+ "text": "0.1.0",
909
+ "name": "since"
910
+ }
911
+ ],
912
+ "docs": "The bottom padding to set.",
913
+ "complexTypes": [],
914
+ "type": "number"
915
+ }
916
+ ]
917
+ },
918
+ {
919
+ "name": "SetInAppMessagesVisibleOptions",
920
+ "slug": "setinappmessagesvisibleoptions",
921
+ "docs": "",
922
+ "tags": [
923
+ {
924
+ "text": "0.1.0",
925
+ "name": "since"
926
+ }
927
+ ],
928
+ "methods": [],
929
+ "properties": [
930
+ {
931
+ "name": "visible",
932
+ "tags": [
933
+ {
934
+ "text": "0.1.0",
935
+ "name": "since"
936
+ }
937
+ ],
938
+ "docs": "Whether in-app messages should be visible.",
939
+ "complexTypes": [],
940
+ "type": "boolean"
941
+ }
942
+ ]
943
+ },
944
+ {
945
+ "name": "SetLauncherVisibleOptions",
946
+ "slug": "setlaunchervisibleoptions",
947
+ "docs": "",
948
+ "tags": [
949
+ {
950
+ "text": "0.1.0",
951
+ "name": "since"
952
+ }
953
+ ],
954
+ "methods": [],
955
+ "properties": [
956
+ {
957
+ "name": "visible",
958
+ "tags": [
959
+ {
960
+ "text": "0.1.0",
961
+ "name": "since"
962
+ }
963
+ ],
964
+ "docs": "Whether the launcher should be visible.",
965
+ "complexTypes": [],
966
+ "type": "boolean"
967
+ }
968
+ ]
969
+ },
970
+ {
971
+ "name": "SetUserHashOptions",
972
+ "slug": "setuserhashoptions",
973
+ "docs": "",
974
+ "tags": [
975
+ {
976
+ "text": "0.1.0",
977
+ "name": "since"
978
+ }
979
+ ],
980
+ "methods": [],
981
+ "properties": [
982
+ {
983
+ "name": "userHash",
984
+ "tags": [
985
+ {
986
+ "text": "0.1.0",
987
+ "name": "since"
988
+ }
989
+ ],
990
+ "docs": "The user hash (HMAC) for identity verification.\n\nThe hash must be generated on your backend using your Intercom secret\nkey. Never expose the secret key in your app.",
991
+ "complexTypes": [],
992
+ "type": "string"
993
+ }
994
+ ]
995
+ },
996
+ {
997
+ "name": "SetUserJwtOptions",
998
+ "slug": "setuserjwtoptions",
999
+ "docs": "",
1000
+ "tags": [
1001
+ {
1002
+ "text": "0.1.0",
1003
+ "name": "since"
1004
+ }
1005
+ ],
1006
+ "methods": [],
1007
+ "properties": [
1008
+ {
1009
+ "name": "jwt",
1010
+ "tags": [
1011
+ {
1012
+ "text": "0.1.0",
1013
+ "name": "since"
1014
+ }
1015
+ ],
1016
+ "docs": "The JSON Web Token (JWT) for identity verification.\n\nThe token must be generated on your backend using your Intercom secret\nkey. Never expose the secret key in your app.",
1017
+ "complexTypes": [],
1018
+ "type": "string"
1019
+ }
1020
+ ]
1021
+ },
1022
+ {
1023
+ "name": "UpdateUserOptions",
1024
+ "slug": "updateuseroptions",
1025
+ "docs": "",
1026
+ "tags": [
1027
+ {
1028
+ "text": "0.1.0",
1029
+ "name": "since"
1030
+ }
1031
+ ],
1032
+ "methods": [],
1033
+ "properties": [
1034
+ {
1035
+ "name": "companies",
1036
+ "tags": [
1037
+ {
1038
+ "text": "0.1.0",
1039
+ "name": "since"
1040
+ }
1041
+ ],
1042
+ "docs": "The companies the user belongs to.",
1043
+ "complexTypes": [
1044
+ "UpdateUserCompany"
1045
+ ],
1046
+ "type": "UpdateUserCompany[] | undefined"
1047
+ },
1048
+ {
1049
+ "name": "customAttributes",
1050
+ "tags": [
1051
+ {
1052
+ "text": "0.1.0",
1053
+ "name": "since"
1054
+ }
1055
+ ],
1056
+ "docs": "The custom attributes of the user.",
1057
+ "complexTypes": [
1058
+ "Record"
1059
+ ],
1060
+ "type": "Record<string, string | number | boolean>"
1061
+ },
1062
+ {
1063
+ "name": "email",
1064
+ "tags": [
1065
+ {
1066
+ "text": "0.1.0",
1067
+ "name": "since"
1068
+ }
1069
+ ],
1070
+ "docs": "The email address of the user.",
1071
+ "complexTypes": [],
1072
+ "type": "string | undefined"
1073
+ },
1074
+ {
1075
+ "name": "languageOverride",
1076
+ "tags": [
1077
+ {
1078
+ "text": "0.1.0",
1079
+ "name": "since"
1080
+ },
1081
+ {
1082
+ "text": "'en'",
1083
+ "name": "example"
1084
+ }
1085
+ ],
1086
+ "docs": "The preferred language of the user as an ISO 639-1 code.",
1087
+ "complexTypes": [],
1088
+ "type": "string | undefined"
1089
+ },
1090
+ {
1091
+ "name": "name",
1092
+ "tags": [
1093
+ {
1094
+ "text": "0.1.0",
1095
+ "name": "since"
1096
+ }
1097
+ ],
1098
+ "docs": "The name of the user.",
1099
+ "complexTypes": [],
1100
+ "type": "string | undefined"
1101
+ },
1102
+ {
1103
+ "name": "phone",
1104
+ "tags": [
1105
+ {
1106
+ "text": "0.1.0",
1107
+ "name": "since"
1108
+ }
1109
+ ],
1110
+ "docs": "The phone number of the user.",
1111
+ "complexTypes": [],
1112
+ "type": "string | undefined"
1113
+ },
1114
+ {
1115
+ "name": "signedUpAt",
1116
+ "tags": [
1117
+ {
1118
+ "text": "0.1.0",
1119
+ "name": "since"
1120
+ },
1121
+ {
1122
+ "text": "1704067200",
1123
+ "name": "example"
1124
+ }
1125
+ ],
1126
+ "docs": "The date the user signed up as a Unix timestamp in seconds.",
1127
+ "complexTypes": [],
1128
+ "type": "number | undefined"
1129
+ },
1130
+ {
1131
+ "name": "unsubscribedFromEmails",
1132
+ "tags": [
1133
+ {
1134
+ "text": "0.1.0",
1135
+ "name": "since"
1136
+ }
1137
+ ],
1138
+ "docs": "Whether the user is unsubscribed from emails.",
1139
+ "complexTypes": [],
1140
+ "type": "boolean | undefined"
1141
+ },
1142
+ {
1143
+ "name": "userId",
1144
+ "tags": [
1145
+ {
1146
+ "text": "0.1.0",
1147
+ "name": "since"
1148
+ }
1149
+ ],
1150
+ "docs": "The unique identifier of the user.",
1151
+ "complexTypes": [],
1152
+ "type": "string | undefined"
1153
+ }
1154
+ ]
1155
+ },
1156
+ {
1157
+ "name": "UpdateUserCompany",
1158
+ "slug": "updateusercompany",
1159
+ "docs": "",
1160
+ "tags": [
1161
+ {
1162
+ "text": "0.1.0",
1163
+ "name": "since"
1164
+ }
1165
+ ],
1166
+ "methods": [],
1167
+ "properties": [
1168
+ {
1169
+ "name": "createdAt",
1170
+ "tags": [
1171
+ {
1172
+ "text": "0.1.0",
1173
+ "name": "since"
1174
+ },
1175
+ {
1176
+ "text": "1704067200",
1177
+ "name": "example"
1178
+ }
1179
+ ],
1180
+ "docs": "The date the company was created as a Unix timestamp in seconds.",
1181
+ "complexTypes": [],
1182
+ "type": "number | undefined"
1183
+ },
1184
+ {
1185
+ "name": "customAttributes",
1186
+ "tags": [
1187
+ {
1188
+ "text": "0.1.0",
1189
+ "name": "since"
1190
+ }
1191
+ ],
1192
+ "docs": "The custom attributes of the company.",
1193
+ "complexTypes": [
1194
+ "Record"
1195
+ ],
1196
+ "type": "Record<string, string | number | boolean>"
1197
+ },
1198
+ {
1199
+ "name": "id",
1200
+ "tags": [
1201
+ {
1202
+ "text": "0.1.0",
1203
+ "name": "since"
1204
+ }
1205
+ ],
1206
+ "docs": "The unique identifier of the company.",
1207
+ "complexTypes": [],
1208
+ "type": "string"
1209
+ },
1210
+ {
1211
+ "name": "monthlySpend",
1212
+ "tags": [
1213
+ {
1214
+ "text": "0.1.0",
1215
+ "name": "since"
1216
+ }
1217
+ ],
1218
+ "docs": "The monthly spend of the company.",
1219
+ "complexTypes": [],
1220
+ "type": "number | undefined"
1221
+ },
1222
+ {
1223
+ "name": "name",
1224
+ "tags": [
1225
+ {
1226
+ "text": "0.1.0",
1227
+ "name": "since"
1228
+ }
1229
+ ],
1230
+ "docs": "The name of the company.",
1231
+ "complexTypes": [],
1232
+ "type": "string | undefined"
1233
+ },
1234
+ {
1235
+ "name": "plan",
1236
+ "tags": [
1237
+ {
1238
+ "text": "0.1.0",
1239
+ "name": "since"
1240
+ }
1241
+ ],
1242
+ "docs": "The plan of the company.",
1243
+ "complexTypes": [],
1244
+ "type": "string | undefined"
1245
+ }
1246
+ ]
1247
+ },
1248
+ {
1249
+ "name": "PluginListenerHandle",
1250
+ "slug": "pluginlistenerhandle",
1251
+ "docs": "",
1252
+ "tags": [],
1253
+ "methods": [],
1254
+ "properties": [
1255
+ {
1256
+ "name": "remove",
1257
+ "tags": [],
1258
+ "docs": "",
1259
+ "complexTypes": [],
1260
+ "type": "() => Promise<void>"
1261
+ }
1262
+ ]
1263
+ },
1264
+ {
1265
+ "name": "UnreadConversationCountChangeEvent",
1266
+ "slug": "unreadconversationcountchangeevent",
1267
+ "docs": "",
1268
+ "tags": [
1269
+ {
1270
+ "text": "0.1.0",
1271
+ "name": "since"
1272
+ }
1273
+ ],
1274
+ "methods": [],
1275
+ "properties": [
1276
+ {
1277
+ "name": "count",
1278
+ "tags": [
1279
+ {
1280
+ "text": "0.1.0",
1281
+ "name": "since"
1282
+ }
1283
+ ],
1284
+ "docs": "The number of unread conversations.",
1285
+ "complexTypes": [],
1286
+ "type": "number"
1287
+ }
1288
+ ]
1289
+ }
1290
+ ],
1291
+ "enums": [],
1292
+ "typeAliases": [
1293
+ {
1294
+ "name": "IntercomSpace",
1295
+ "slug": "intercomspace",
1296
+ "docs": "A space of the Intercom Messenger.",
1297
+ "types": [
1298
+ {
1299
+ "text": "'home'",
1300
+ "complexTypes": []
1301
+ },
1302
+ {
1303
+ "text": "'messages'",
1304
+ "complexTypes": []
1305
+ },
1306
+ {
1307
+ "text": "'help-center'",
1308
+ "complexTypes": []
1309
+ },
1310
+ {
1311
+ "text": "'tickets'",
1312
+ "complexTypes": []
1313
+ }
1314
+ ]
1315
+ },
1316
+ {
1317
+ "name": "IntercomContentType",
1318
+ "slug": "intercomcontenttype",
1319
+ "docs": "A type of Intercom content that can be presented.",
1320
+ "types": [
1321
+ {
1322
+ "text": "'article'",
1323
+ "complexTypes": []
1324
+ },
1325
+ {
1326
+ "text": "'carousel'",
1327
+ "complexTypes": []
1328
+ },
1329
+ {
1330
+ "text": "'conversation'",
1331
+ "complexTypes": []
1332
+ },
1333
+ {
1334
+ "text": "'help-center-collections'",
1335
+ "complexTypes": []
1336
+ },
1337
+ {
1338
+ "text": "'survey'",
1339
+ "complexTypes": []
1340
+ }
1341
+ ]
1342
+ }
1343
+ ],
1344
+ "pluginConfigs": []
1345
+ }