@twilio/conversations 3.0.0-canary.5 → 3.0.0-rc.5

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/CHANGELOG.md +485 -0
  2. package/builds/browser.js +398 -381
  3. package/builds/browser.js.map +1 -1
  4. package/builds/lib.d.ts +6 -5
  5. package/builds/lib.js +398 -381
  6. package/builds/lib.js.map +1 -1
  7. package/builds/twilio-conversations.js +2185 -1838
  8. package/builds/twilio-conversations.min.js +1 -16
  9. package/dist/aggregated-delivery-receipt.js.map +1 -1
  10. package/dist/client.js +29 -8
  11. package/dist/client.js.map +1 -1
  12. package/dist/command-executor.js.map +1 -1
  13. package/dist/configuration.js.map +1 -1
  14. package/dist/conversation.js +5 -8
  15. package/dist/conversation.js.map +1 -1
  16. package/dist/data/conversations.js +1 -1
  17. package/dist/data/conversations.js.map +1 -1
  18. package/dist/data/messages.js.map +1 -1
  19. package/dist/data/participants.js.map +1 -1
  20. package/dist/data/users.js.map +1 -1
  21. package/dist/detailed-delivery-receipt.js.map +1 -1
  22. package/dist/index.js +6 -4
  23. package/dist/index.js.map +1 -1
  24. package/dist/interfaces/attributes.js.map +1 -1
  25. package/dist/interfaces/notification-types.js.map +1 -1
  26. package/dist/logger.js +2 -4
  27. package/dist/logger.js.map +1 -1
  28. package/dist/media.js.map +1 -1
  29. package/dist/message-builder.js.map +1 -1
  30. package/dist/message.js +16 -12
  31. package/dist/message.js.map +1 -1
  32. package/dist/node_modules/tslib/tslib.es6.js +1 -1
  33. package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
  34. package/dist/packages/conversations/package.json.js +1 -1
  35. package/dist/participant.js +2 -2
  36. package/dist/participant.js.map +1 -1
  37. package/dist/push-notification.js.map +1 -1
  38. package/dist/rest-paginator.js.map +1 -1
  39. package/dist/services/network.js.map +1 -1
  40. package/dist/services/typing-indicator.js.map +1 -1
  41. package/dist/unsent-message.js.map +1 -1
  42. package/dist/user.js +1 -1
  43. package/dist/user.js.map +1 -1
  44. package/dist/util/deferred.js.map +1 -1
  45. package/dist/util/index.js.map +1 -1
  46. package/docs/assets/css/main.css +2660 -0
  47. package/docs/assets/images/icons.png +0 -0
  48. package/docs/assets/images/icons@2x.png +0 -0
  49. package/docs/assets/images/widgets.png +0 -0
  50. package/docs/assets/images/widgets@2x.png +0 -0
  51. package/docs/assets/js/main.js +248 -0
  52. package/docs/assets/js/search.js +1 -0
  53. package/docs/classes/AggregatedDeliveryReceipt.html +3184 -0
  54. package/docs/classes/CancellablePromise.html +3213 -0
  55. package/docs/classes/Client.html +4239 -0
  56. package/docs/classes/Conversation.html +4354 -0
  57. package/docs/classes/DetailedDeliveryReceipt.html +3163 -0
  58. package/docs/classes/Media.html +3167 -0
  59. package/docs/classes/Message.html +3732 -0
  60. package/docs/classes/MessageBuilder.html +3277 -0
  61. package/docs/classes/Participant.html +3444 -0
  62. package/docs/classes/PushNotification.html +3130 -0
  63. package/docs/classes/RestPaginator.html +3160 -0
  64. package/docs/classes/UnsentMessage.html +3042 -0
  65. package/docs/classes/User.html +3349 -0
  66. package/docs/index.html +3509 -0
  67. package/docs/interfaces/ClientOptions.html +3034 -0
  68. package/docs/interfaces/ConversationBindings.html +3001 -0
  69. package/docs/interfaces/ConversationEmailBinding.html +3001 -0
  70. package/docs/interfaces/ConversationLimits.html +3098 -0
  71. package/docs/interfaces/ConversationState.html +3050 -0
  72. package/docs/interfaces/ConversationUpdatedEventArgs.html +3001 -0
  73. package/docs/interfaces/CreateConversationOptions.html +3066 -0
  74. package/docs/interfaces/LastMessage.html +3050 -0
  75. package/docs/interfaces/Paginator.html +3141 -0
  76. package/docs/interfaces/ParticipantBindings.html +3001 -0
  77. package/docs/interfaces/ParticipantEmailBinding.html +3001 -0
  78. package/docs/interfaces/PushNotificationData.html +3114 -0
  79. package/docs/interfaces/SendEmailOptions.html +3034 -0
  80. package/docs/interfaces/SendMediaOptions.html +3068 -0
  81. package/docs/modules.html +3510 -0
  82. package/package.json +21 -20
package/builds/lib.d.ts CHANGED
@@ -872,7 +872,7 @@ declare class Message extends ReplayEventEmitter<MessageEvents> {
872
872
  * Get content URLs for all media attachments in the given set using a single operation.
873
873
  * @param contentSet Set of media attachments to query content URLs.
874
874
  */
875
- getTemporaryContentUrlsForMedia(contentSet: Media[] | null): CancellablePromise<Map<string, string>>;
875
+ getTemporaryContentUrlsForMedia(contentSet: Media[]): CancellablePromise<Map<string, string>>;
876
876
  /**
877
877
  * Get content URLs for all media attachments in the given set of media sids using a single operation.
878
878
  * @param mediaSids Set of media sids to query for the content URL.
@@ -1110,7 +1110,10 @@ declare class UnsentMessage {
1110
1110
  private messagesEntity;
1111
1111
  text?: string;
1112
1112
  attributes: JSONValue;
1113
- mediaContent: [MediaCategory, FormData | SendMediaOptions][];
1113
+ mediaContent: [
1114
+ MediaCategory,
1115
+ FormData | SendMediaOptions
1116
+ ][];
1114
1117
  emailOptions: SendEmailOptions;
1115
1118
  /**
1116
1119
  * @internal
@@ -1689,8 +1692,6 @@ declare class Conversation extends ReplayEventEmitter<ConversationEvents> {
1689
1692
  * argument, it will assume that the string is an identity or SID.
1690
1693
  * @param participant Identity, SID or the participant object to remove.
1691
1694
  */
1692
- /* eslint-disable @typescript-eslint/ban-ts-comment */
1693
- // @ts-ignore TODO: fix validateTypesAsync typing
1694
1695
  removeParticipant(participant: string | Participant): Promise<void>;
1695
1696
  /**
1696
1697
  * Send a message to the conversation.
@@ -2439,4 +2440,4 @@ declare class NotificationTypes {
2439
2440
  static readonly REMOVED_FROM_CONVERSATION = "twilio.conversations.removed_from_conversation";
2440
2441
  static readonly CONSUMPTION_UPDATE = "twilio.channel.consumption_update";
2441
2442
  }
2442
- export { Conversation, ConversationBindings, ConversationEmailBinding, ConversationUpdateReason, ConversationStatus, NotificationLevel, ConversationState, ConversationUpdatedEventArgs, SendMediaOptions, SendEmailOptions, LastMessage, Participant, ParticipantUpdateReason, ParticipantType, ParticipantUpdatedEventArgs, ParticipantBindings, ParticipantEmailBinding, ParticipantEmailLevel, Message, MessageUpdateReason, MessageType, MessageUpdatedEventArgs, Media, MediaCategory$0 as MediaCategory, AggregatedDeliveryReceipt, DeliveryAmount, DetailedDeliveryReceipt, DeliveryStatus, RestPaginator, MessageBuilder, UnsentMessage, Paginator, ParticipantBindingOptions, User, UserUpdateReason, UserUpdatedEventArgs, PushNotification, PushNotificationType, PushNotificationDescriptor, PushNotificationData, NotificationTypes, Client, State, ConnectionState, NotificationsChannelType, ClientOptions, CreateConversationOptions, ConversationLimits, JSONValue, JSONObject, JSONArray };
2443
+ export { Conversation, ConversationBindings, ConversationEmailBinding, ConversationUpdateReason, ConversationStatus, NotificationLevel, ConversationState, ConversationUpdatedEventArgs, SendMediaOptions, SendEmailOptions, LastMessage, Participant, ParticipantUpdateReason, ParticipantType, ParticipantUpdatedEventArgs, ParticipantBindings, ParticipantEmailBinding, ParticipantEmailLevel, Message, MessageUpdateReason, MessageType, MessageUpdatedEventArgs, Media, MediaCategory$0 as MediaCategory, AggregatedDeliveryReceipt, DeliveryAmount, DetailedDeliveryReceipt, DeliveryStatus, RestPaginator, MessageBuilder, UnsentMessage, Paginator, ParticipantBindingOptions, User, UserUpdateReason, UserUpdatedEventArgs, PushNotification, PushNotificationType, PushNotificationDescriptor, PushNotificationData, NotificationTypes, Client, State, ConnectionState, NotificationsChannelType, ClientOptions, CreateConversationOptions, ConversationLimits, JSONValue, JSONObject, JSONArray, CancellablePromise };