@twilio/conversations 2.5.0-rc.8 → 2.6.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +2 -2
  2. package/builds/browser.esm.js +10713 -0
  3. package/builds/browser.esm.js.map +1 -0
  4. package/builds/browser.js +241 -81
  5. package/builds/browser.js.map +1 -1
  6. package/builds/lib.d.ts +10 -9
  7. package/builds/lib.esm.d.ts +3166 -0
  8. package/builds/lib.esm.js +10712 -0
  9. package/builds/lib.js +250 -81
  10. package/builds/lib.js.map +1 -1
  11. package/builds/twilio-conversations.js +11231 -11244
  12. package/builds/twilio-conversations.min.js +1 -1
  13. package/dist/aggregated-delivery-receipt.js +3 -5
  14. package/dist/aggregated-delivery-receipt.js.map +1 -1
  15. package/dist/channel-metadata-client.js +7 -9
  16. package/dist/channel-metadata-client.js.map +1 -1
  17. package/dist/client.js +201 -166
  18. package/dist/client.js.map +1 -1
  19. package/dist/command-executor.js +8 -8
  20. package/dist/command-executor.js.map +1 -1
  21. package/dist/configuration.js +12 -9
  22. package/dist/configuration.js.map +1 -1
  23. package/dist/content-client.js +11 -8
  24. package/dist/content-client.js.map +1 -1
  25. package/dist/content-template.js +3 -5
  26. package/dist/content-template.js.map +1 -1
  27. package/dist/conversation.js +130 -96
  28. package/dist/conversation.js.map +1 -1
  29. package/dist/data/conversations.js +36 -43
  30. package/dist/data/conversations.js.map +1 -1
  31. package/dist/data/messages.js +23 -21
  32. package/dist/data/messages.js.map +1 -1
  33. package/dist/data/participants.js +27 -24
  34. package/dist/data/participants.js.map +1 -1
  35. package/dist/data/users.js +15 -13
  36. package/dist/data/users.js.map +1 -1
  37. package/dist/detailed-delivery-receipt.js +3 -5
  38. package/dist/detailed-delivery-receipt.js.map +1 -1
  39. package/dist/index.js +17 -49
  40. package/dist/index.js.map +1 -1
  41. package/dist/interfaces/notification-types.js +1 -5
  42. package/dist/interfaces/notification-types.js.map +1 -1
  43. package/dist/interfaces/rules.js +13 -10
  44. package/dist/interfaces/rules.js.map +1 -1
  45. package/dist/logger.js +25 -26
  46. package/dist/logger.js.map +1 -1
  47. package/dist/media.js +11 -8
  48. package/dist/media.js.map +1 -1
  49. package/dist/message-builder.js +48 -40
  50. package/dist/message-builder.js.map +1 -1
  51. package/dist/message-recipients-client.js +11 -13
  52. package/dist/message-recipients-client.js.map +1 -1
  53. package/dist/message.js +96 -83
  54. package/dist/message.js.map +1 -1
  55. package/dist/node_modules/quick-lru/index.js +1 -5
  56. package/dist/node_modules/quick-lru/index.js.map +1 -1
  57. package/dist/node_modules/tslib/tslib.es6.js +1 -7
  58. package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
  59. package/dist/packages/conversations/package.json.js +2 -6
  60. package/dist/packages/conversations/package.json.js.map +1 -1
  61. package/dist/participant.js +40 -31
  62. package/dist/participant.js.map +1 -1
  63. package/dist/push-notification.js +5 -4
  64. package/dist/push-notification.js.map +1 -1
  65. package/dist/rest-paginator.js +9 -8
  66. package/dist/rest-paginator.js.map +1 -1
  67. package/dist/services/network.js +3 -7
  68. package/dist/services/network.js.map +1 -1
  69. package/dist/services/typing-indicator.js +11 -8
  70. package/dist/services/typing-indicator.js.map +1 -1
  71. package/dist/unsent-message.js +9 -8
  72. package/dist/unsent-message.js.map +1 -1
  73. package/dist/user.js +27 -24
  74. package/dist/user.js.map +1 -1
  75. package/dist/util/deferred.js +6 -4
  76. package/dist/util/deferred.js.map +1 -1
  77. package/dist/util/index.js +1 -9
  78. package/dist/util/index.js.map +1 -1
  79. package/docs/classes/Client.html +2 -2
  80. package/docs/index.html +3 -3
  81. package/docs/modules.html +2 -2
  82. package/package.json +10 -10
package/builds/lib.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { SyncClient, SyncDocument, SyncList } from "twilio-sync";
2
3
  import { LogLevelDesc } from "loglevel";
3
4
  import { Transport, TwilsockClient, InitRegistration, TransportResult } from "twilsock";
@@ -1611,7 +1612,7 @@ declare class RestPaginator<T> implements Paginator<T> {
1611
1612
  /**
1612
1613
  * @internal
1613
1614
  */
1614
- constructor(items: any, source: any, prevToken: any, nextToken: any, pageSize: any);
1615
+ constructor(items: any, source: any, prevToken: any, nextToken: any);
1615
1616
  /**
1616
1617
  * Request the next page. Does not modify the existing object.
1617
1618
  */
@@ -2119,11 +2120,6 @@ declare class Conversation extends ReplayEventEmitter<ConversationEvents> {
2119
2120
  * @internal
2120
2121
  */
2121
2122
  readonly _links: ConversationLinks;
2122
- /**
2123
- * Map of participants.
2124
- * @internal
2125
- */
2126
- readonly _participants: Map<string, Participant>;
2127
2123
  /**
2128
2124
  * Configuration of the client that the conversation belongs to.
2129
2125
  */
@@ -2148,6 +2144,11 @@ declare class Conversation extends ReplayEventEmitter<ConversationEvents> {
2148
2144
  * Sync list containing messages.
2149
2145
  */
2150
2146
  private _messagesList?;
2147
+ /**
2148
+ * Map of participants.
2149
+ * @internal
2150
+ */
2151
+ readonly _participants: Map<string, Participant>;
2151
2152
  /**
2152
2153
  * Participants entity.
2153
2154
  */
@@ -2218,7 +2219,7 @@ declare class Conversation extends ReplayEventEmitter<ConversationEvents> {
2218
2219
  */
2219
2220
  get notificationLevel(): NotificationLevel;
2220
2221
  /**
2221
- * Conversation bindings. Undocumented feature (for now).
2222
+ * Conversation bindings. An undocumented feature (for now).
2222
2223
  * @internal
2223
2224
  */
2224
2225
  get bindings(): ConversationBindings;
@@ -2974,7 +2975,7 @@ declare class Client extends ReplayEventEmitter<ClientEvents> {
2974
2975
  */
2975
2976
  private _conversationsPromise;
2976
2977
  /**
2977
- * Returned Conversations instance is not yet fully initialized. Calling any
2978
+ * Returned Conversations Client instance is not yet fully initialized. Calling any
2978
2979
  * operations will block until it is. Use connection events to monitor when
2979
2980
  * client becomes fully available (connectionStateChanged with state
2980
2981
  * 'connected') or not available (connectionStateChange with state 'denied',
@@ -3101,7 +3102,7 @@ declare class Client extends ReplayEventEmitter<ClientEvents> {
3101
3102
  */
3102
3103
  removePushRegistrations(channelType: ChannelType, registrationId: string): Promise<void>;
3103
3104
  /**
3104
- * Current version of the Conversations client.
3105
+ * Parse a push notification payload.
3105
3106
  */
3106
3107
  parsePushNotification: typeof Client.parsePushNotification;
3107
3108
  /**