@twilio/conversations 2.6.1-rc.1 → 2.6.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.
package/builds/lib.d.ts CHANGED
@@ -2691,6 +2691,11 @@ interface CreateConversationOptions {
2691
2691
  * A unique identifier of the conversation.
2692
2692
  */
2693
2693
  uniqueName?: string;
2694
+ /**
2695
+ * The access control for the conversation.
2696
+ * null for existing conversations, 'restricted' for conversations that need to support users with restricted access
2697
+ */
2698
+ access?: string;
2694
2699
  }
2695
2700
  /**
2696
2701
  * A client is the starting point to the Twilio Conversations functionality.
@@ -2691,6 +2691,11 @@ interface CreateConversationOptions {
2691
2691
  * A unique identifier of the conversation.
2692
2692
  */
2693
2693
  uniqueName?: string;
2694
+ /**
2695
+ * The access control for the conversation.
2696
+ * null for existing conversations, 'restricted' for conversations that need to support users with restricted access
2697
+ */
2698
+ access?: string;
2694
2699
  }
2695
2700
  /**
2696
2701
  * A client is the starting point to the Twilio Conversations functionality.
package/builds/lib.esm.js CHANGED
@@ -6819,6 +6819,7 @@ var Conversations = /*#__PURE__*/function (_ReplayEventEmitter) {
6819
6819
  return this.services.commandExecutor.mutateResource("post", this.configuration.links.conversations, {
6820
6820
  friendly_name: options.friendlyName,
6821
6821
  unique_name: options.uniqueName,
6822
+ access: options.access,
6822
6823
  attributes: typeof attributes !== "undefined" ? JSON.stringify(attributes) : undefined
6823
6824
  });
6824
6825
 
@@ -8029,7 +8030,7 @@ function PushNotification(data) {
8029
8030
  this.data = data.data || {};
8030
8031
  });
8031
8032
 
8032
- var version = "2.6.1-rc.1";
8033
+ var version = "2.6.1";
8033
8034
 
8034
8035
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8035
8036
 
@@ -10439,6 +10440,7 @@ var Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter) {
10439
10440
  this._conversationsPromise = this._conversationsEntity.fetchConversations().then(function () {
10440
10441
  return _this3._conversationsEntity;
10441
10442
  }).catch(function (error) {
10443
+ console.error("Failed to fetch conversations _conversationsPromise -> client.ts", error);
10442
10444
  throw error;
10443
10445
  });
10444
10446
  _context17.next = 30;
package/builds/lib.js CHANGED
@@ -6858,6 +6858,7 @@ var Conversations = /*#__PURE__*/function (_ReplayEventEmitter) {
6858
6858
  return this.services.commandExecutor.mutateResource("post", this.configuration.links.conversations, {
6859
6859
  friendly_name: options.friendlyName,
6860
6860
  unique_name: options.uniqueName,
6861
+ access: options.access,
6861
6862
  attributes: typeof attributes !== "undefined" ? JSON.stringify(attributes) : undefined
6862
6863
  });
6863
6864
 
@@ -8068,7 +8069,7 @@ function PushNotification(data) {
8068
8069
  this.data = data.data || {};
8069
8070
  });
8070
8071
 
8071
- var version = "2.6.1-rc.1";
8072
+ var version = "2.6.1";
8072
8073
 
8073
8074
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8074
8075
 
@@ -10478,6 +10479,7 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
10478
10479
  this._conversationsPromise = this._conversationsEntity.fetchConversations().then(function () {
10479
10480
  return _this3._conversationsEntity;
10480
10481
  }).catch(function (error) {
10482
+ console.error("Failed to fetch conversations _conversationsPromise -> client.ts", error);
10481
10483
  throw error;
10482
10484
  });
10483
10485
  _context17.next = 30;