twilio 6.0.0 → 6.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 (119) hide show
  1. package/lib/rest/ConversationsBase.d.ts +3 -0
  2. package/lib/rest/ConversationsBase.js +5 -0
  3. package/lib/rest/InsightsBase.d.ts +3 -0
  4. package/lib/rest/InsightsBase.js +5 -0
  5. package/lib/rest/IntelligenceBase.d.ts +3 -0
  6. package/lib/rest/IntelligenceBase.js +5 -0
  7. package/lib/rest/KnowledgeBase.d.ts +3 -0
  8. package/lib/rest/KnowledgeBase.js +5 -0
  9. package/lib/rest/Memory.d.ts +4 -0
  10. package/lib/rest/Memory.js +8 -0
  11. package/lib/rest/MemoryBase.d.ts +13 -0
  12. package/lib/rest/MemoryBase.js +31 -0
  13. package/lib/rest/Twilio.d.ts +5 -0
  14. package/lib/rest/Twilio.js +5 -0
  15. package/lib/rest/VoiceBase.d.ts +3 -0
  16. package/lib/rest/VoiceBase.js +5 -0
  17. package/lib/rest/api/v2010/account/call/recording.d.ts +2 -0
  18. package/lib/rest/api/v2010/account/call/recording.js +4 -0
  19. package/lib/rest/api/v2010/account/call/transcription.d.ts +1 -1
  20. package/lib/rest/api/v2010/account/call/transcription.js +6 -4
  21. package/lib/rest/api/v2010/account/call.d.ts +2 -0
  22. package/lib/rest/api/v2010/account/call.js +4 -0
  23. package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -0
  24. package/lib/rest/api/v2010/account/conference/participant.js +4 -0
  25. package/lib/rest/conversations/V2.d.ts +35 -0
  26. package/lib/rest/conversations/V2.js +67 -0
  27. package/lib/rest/conversations/v2/communication.d.ts +479 -0
  28. package/lib/rest/conversations/v2/communication.js +436 -0
  29. package/lib/rest/conversations/v2/configuration.d.ts +906 -0
  30. package/lib/rest/conversations/v2/configuration.js +619 -0
  31. package/lib/rest/conversations/v2/conversation.d.ts +936 -0
  32. package/lib/rest/conversations/v2/conversation.js +664 -0
  33. package/lib/rest/conversations/v2/operation.d.ts +167 -0
  34. package/lib/rest/conversations/v2/operation.js +170 -0
  35. package/lib/rest/conversations/v2/participant.d.ts +469 -0
  36. package/lib/rest/conversations/v2/participant.js +442 -0
  37. package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +1 -1
  38. package/lib/rest/flexApi/v1/plugin/pluginVersions.js +8 -6
  39. package/lib/rest/insights/V3.d.ts +20 -0
  40. package/lib/rest/insights/V3.js +42 -0
  41. package/lib/rest/insights/v1/call/callSummary.d.ts +10 -10
  42. package/lib/rest/insights/v1/call/event.d.ts +4 -4
  43. package/lib/rest/insights/v1/callSummaries.d.ts +12 -9
  44. package/lib/rest/insights/v3/metadata.d.ts +115 -0
  45. package/lib/rest/insights/v3/metadata.js +118 -0
  46. package/lib/rest/insights/v3/query.d.ts +180 -0
  47. package/lib/rest/insights/v3/query.js +214 -0
  48. package/lib/rest/intelligence/V3.d.ts +35 -0
  49. package/lib/rest/intelligence/V3.js +65 -0
  50. package/lib/rest/intelligence/v3/configuration.d.ts +693 -0
  51. package/lib/rest/intelligence/v3/configuration.js +528 -0
  52. package/lib/rest/intelligence/v3/conversation.d.ts +478 -0
  53. package/lib/rest/intelligence/v3/conversation.js +342 -0
  54. package/lib/rest/intelligence/v3/operator.d.ts +619 -0
  55. package/lib/rest/intelligence/v3/operator.js +493 -0
  56. package/lib/rest/intelligence/v3/operatorResult.d.ts +543 -0
  57. package/lib/rest/intelligence/v3/operatorResult.js +478 -0
  58. package/lib/rest/intelligence/v3/version.d.ts +469 -0
  59. package/lib/rest/intelligence/v3/version.js +341 -0
  60. package/lib/rest/knowledge/V2.d.ts +31 -0
  61. package/lib/rest/knowledge/V2.js +62 -0
  62. package/lib/rest/knowledge/v2/chunk.d.ts +209 -0
  63. package/lib/rest/knowledge/v2/chunk.js +178 -0
  64. package/lib/rest/knowledge/v2/knowledge.d.ts +507 -0
  65. package/lib/rest/knowledge/v2/knowledge.js +466 -0
  66. package/lib/rest/knowledge/v2/knowledgeBasis.d.ts +484 -0
  67. package/lib/rest/knowledge/v2/knowledgeBasis.js +441 -0
  68. package/lib/rest/knowledge/v2/operation.d.ts +162 -0
  69. package/lib/rest/knowledge/v2/operation.js +175 -0
  70. package/lib/rest/knowledge/v2/search.d.ts +180 -0
  71. package/lib/rest/knowledge/v2/search.js +174 -0
  72. package/lib/rest/memory/V1.d.ts +76 -0
  73. package/lib/rest/memory/V1.js +140 -0
  74. package/lib/rest/memory/v1/bulk.d.ts +129 -0
  75. package/lib/rest/memory/v1/bulk.js +158 -0
  76. package/lib/rest/memory/v1/conversationSummary.d.ts +531 -0
  77. package/lib/rest/memory/v1/conversationSummary.js +473 -0
  78. package/lib/rest/memory/v1/dataMapping.d.ts +630 -0
  79. package/lib/rest/memory/v1/dataMapping.js +512 -0
  80. package/lib/rest/memory/v1/event.d.ts +153 -0
  81. package/lib/rest/memory/v1/event.js +159 -0
  82. package/lib/rest/memory/v1/identifier.d.ts +362 -0
  83. package/lib/rest/memory/v1/identifier.js +369 -0
  84. package/lib/rest/memory/v1/identityResolutionSetting.d.ts +247 -0
  85. package/lib/rest/memory/v1/identityResolutionSetting.js +229 -0
  86. package/lib/rest/memory/v1/import.d.ts +292 -0
  87. package/lib/rest/memory/v1/import.js +280 -0
  88. package/lib/rest/memory/v1/lookup.d.ts +82 -0
  89. package/lib/rest/memory/v1/lookup.js +118 -0
  90. package/lib/rest/memory/v1/observation.d.ts +521 -0
  91. package/lib/rest/memory/v1/observation.js +477 -0
  92. package/lib/rest/memory/v1/operation.d.ts +162 -0
  93. package/lib/rest/memory/v1/operation.js +175 -0
  94. package/lib/rest/memory/v1/profile.d.ts +441 -0
  95. package/lib/rest/memory/v1/profile.js +467 -0
  96. package/lib/rest/memory/v1/recall.d.ts +306 -0
  97. package/lib/rest/memory/v1/recall.js +234 -0
  98. package/lib/rest/memory/v1/revision.d.ts +246 -0
  99. package/lib/rest/memory/v1/revision.js +195 -0
  100. package/lib/rest/memory/v1/store.d.ts +503 -0
  101. package/lib/rest/memory/v1/store.js +482 -0
  102. package/lib/rest/memory/v1/trait.d.ts +233 -0
  103. package/lib/rest/memory/v1/trait.js +190 -0
  104. package/lib/rest/memory/v1/traitGroup.d.ts +758 -0
  105. package/lib/rest/memory/v1/traitGroup.js +555 -0
  106. package/lib/rest/messaging/v2/channelsSender.d.ts +8 -0
  107. package/lib/rest/messaging/v2/channelsSender.js +2 -0
  108. package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +32 -0
  109. package/lib/rest/previewIam/versionless/organization/roleAssignment.js +14 -0
  110. package/lib/rest/studio/v2/flow.d.ts +4 -0
  111. package/lib/rest/studio/v2/flow.js +8 -0
  112. package/lib/rest/verify/v2/service/webhook.d.ts +2 -2
  113. package/lib/rest/verify/v2/service/webhook.js +8 -8
  114. package/lib/rest/voice/V3.d.ts +15 -0
  115. package/lib/rest/voice/V3.js +37 -0
  116. package/lib/rest/voice/v3/transcription.d.ts +378 -0
  117. package/lib/rest/voice/v3/transcription.js +264 -0
  118. package/lib/twiml/VoiceResponse.d.ts +8 -0
  119. package/package.json +1 -1
@@ -1,7 +1,9 @@
1
1
  import Domain from "../base/Domain";
2
2
  import V1 from "./conversations/V1";
3
+ import V2 from "./conversations/V2";
3
4
  declare class ConversationsBase extends Domain {
4
5
  _v1?: V1;
6
+ _v2?: V2;
5
7
  /**
6
8
  * Initialize conversations domain
7
9
  *
@@ -9,5 +11,6 @@ declare class ConversationsBase extends Domain {
9
11
  */
10
12
  constructor(twilio: any);
11
13
  get v1(): V1;
14
+ get v2(): V2;
12
15
  }
13
16
  export = ConversationsBase;
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  };
15
15
  const Domain_1 = __importDefault(require("../base/Domain"));
16
16
  const V1_1 = __importDefault(require("./conversations/V1"));
17
+ const V2_1 = __importDefault(require("./conversations/V2"));
17
18
  class ConversationsBase extends Domain_1.default {
18
19
  /**
19
20
  * Initialize conversations domain
@@ -27,5 +28,9 @@ class ConversationsBase extends Domain_1.default {
27
28
  this._v1 = this._v1 || new V1_1.default(this);
28
29
  return this._v1;
29
30
  }
31
+ get v2() {
32
+ this._v2 = this._v2 || new V2_1.default(this);
33
+ return this._v2;
34
+ }
30
35
  }
31
36
  module.exports = ConversationsBase;
@@ -1,9 +1,11 @@
1
1
  import Domain from "../base/Domain";
2
2
  import V1 from "./insights/V1";
3
3
  import V2 from "./insights/V2";
4
+ import V3 from "./insights/V3";
4
5
  declare class InsightsBase extends Domain {
5
6
  _v1?: V1;
6
7
  _v2?: V2;
8
+ _v3?: V3;
7
9
  /**
8
10
  * Initialize insights domain
9
11
  *
@@ -12,5 +14,6 @@ declare class InsightsBase extends Domain {
12
14
  constructor(twilio: any);
13
15
  get v1(): V1;
14
16
  get v2(): V2;
17
+ get v3(): V3;
15
18
  }
16
19
  export = InsightsBase;
@@ -15,6 +15,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  const Domain_1 = __importDefault(require("../base/Domain"));
16
16
  const V1_1 = __importDefault(require("./insights/V1"));
17
17
  const V2_1 = __importDefault(require("./insights/V2"));
18
+ const V3_1 = __importDefault(require("./insights/V3"));
18
19
  class InsightsBase extends Domain_1.default {
19
20
  /**
20
21
  * Initialize insights domain
@@ -32,5 +33,9 @@ class InsightsBase extends Domain_1.default {
32
33
  this._v2 = this._v2 || new V2_1.default(this);
33
34
  return this._v2;
34
35
  }
36
+ get v3() {
37
+ this._v3 = this._v3 || new V3_1.default(this);
38
+ return this._v3;
39
+ }
35
40
  }
36
41
  module.exports = InsightsBase;
@@ -1,7 +1,9 @@
1
1
  import Domain from "../base/Domain";
2
2
  import V2 from "./intelligence/V2";
3
+ import V3 from "./intelligence/V3";
3
4
  declare class IntelligenceBase extends Domain {
4
5
  _v2?: V2;
6
+ _v3?: V3;
5
7
  /**
6
8
  * Initialize intelligence domain
7
9
  *
@@ -9,5 +11,6 @@ declare class IntelligenceBase extends Domain {
9
11
  */
10
12
  constructor(twilio: any);
11
13
  get v2(): V2;
14
+ get v3(): V3;
12
15
  }
13
16
  export = IntelligenceBase;
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  };
15
15
  const Domain_1 = __importDefault(require("../base/Domain"));
16
16
  const V2_1 = __importDefault(require("./intelligence/V2"));
17
+ const V3_1 = __importDefault(require("./intelligence/V3"));
17
18
  class IntelligenceBase extends Domain_1.default {
18
19
  /**
19
20
  * Initialize intelligence domain
@@ -27,5 +28,9 @@ class IntelligenceBase extends Domain_1.default {
27
28
  this._v2 = this._v2 || new V2_1.default(this);
28
29
  return this._v2;
29
30
  }
31
+ get v3() {
32
+ this._v3 = this._v3 || new V3_1.default(this);
33
+ return this._v3;
34
+ }
30
35
  }
31
36
  module.exports = IntelligenceBase;
@@ -1,7 +1,9 @@
1
1
  import Domain from "../base/Domain";
2
2
  import V1 from "./knowledge/V1";
3
+ import V2 from "./knowledge/V2";
3
4
  declare class KnowledgeBase extends Domain {
4
5
  _v1?: V1;
6
+ _v2?: V2;
5
7
  /**
6
8
  * Initialize knowledge domain
7
9
  *
@@ -9,5 +11,6 @@ declare class KnowledgeBase extends Domain {
9
11
  */
10
12
  constructor(twilio: any);
11
13
  get v1(): V1;
14
+ get v2(): V2;
12
15
  }
13
16
  export = KnowledgeBase;
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  };
15
15
  const Domain_1 = __importDefault(require("../base/Domain"));
16
16
  const V1_1 = __importDefault(require("./knowledge/V1"));
17
+ const V2_1 = __importDefault(require("./knowledge/V2"));
17
18
  class KnowledgeBase extends Domain_1.default {
18
19
  /**
19
20
  * Initialize knowledge domain
@@ -27,5 +28,9 @@ class KnowledgeBase extends Domain_1.default {
27
28
  this._v1 = this._v1 || new V1_1.default(this);
28
29
  return this._v1;
29
30
  }
31
+ get v2() {
32
+ this._v2 = this._v2 || new V2_1.default(this);
33
+ return this._v2;
34
+ }
30
35
  }
31
36
  module.exports = KnowledgeBase;
@@ -0,0 +1,4 @@
1
+ import MemoryBase from "./MemoryBase";
2
+ declare class Memory extends MemoryBase {
3
+ }
4
+ export = Memory;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ const MemoryBase_1 = __importDefault(require("./MemoryBase"));
6
+ class Memory extends MemoryBase_1.default {
7
+ }
8
+ module.exports = Memory;
@@ -0,0 +1,13 @@
1
+ import Domain from "../base/Domain";
2
+ import V1 from "./memory/V1";
3
+ declare class MemoryBase extends Domain {
4
+ _v1?: V1;
5
+ /**
6
+ * Initialize memory domain
7
+ *
8
+ * @param twilio - The twilio client
9
+ */
10
+ constructor(twilio: any);
11
+ get v1(): V1;
12
+ }
13
+ export = MemoryBase;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator.
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ var __importDefault = (this && this.__importDefault) || function (mod) {
13
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14
+ };
15
+ const Domain_1 = __importDefault(require("../base/Domain"));
16
+ const V1_1 = __importDefault(require("./memory/V1"));
17
+ class MemoryBase extends Domain_1.default {
18
+ /**
19
+ * Initialize memory domain
20
+ *
21
+ * @param twilio - The twilio client
22
+ */
23
+ constructor(twilio) {
24
+ super(twilio, "https://memory.twilio.com");
25
+ }
26
+ get v1() {
27
+ this._v1 = this._v1 || new V1_1.default(this);
28
+ return this._v1;
29
+ }
30
+ }
31
+ module.exports = MemoryBase;
@@ -17,6 +17,7 @@ import IpMessaging from "./IpMessaging";
17
17
  import Knowledge from "./Knowledge";
18
18
  import Lookups from "./Lookups";
19
19
  import Marketplace from "./Marketplace";
20
+ import Memory from "./Memory";
20
21
  import Messaging from "./Messaging";
21
22
  import Monitor from "./Monitor";
22
23
  import Notify from "./Notify";
@@ -101,6 +102,8 @@ declare class Twilio extends Client {
101
102
  _lookups?: Lookups;
102
103
  /** (Twilio.Marketplace) - marketplace domain */
103
104
  _marketplace?: Marketplace;
105
+ /** (Twilio.Memory) - memory domain */
106
+ _memory?: Memory;
104
107
  /** (Twilio.Messaging) - messaging domain */
105
108
  _messaging?: Messaging;
106
109
  /** (Twilio.Monitor) - monitor domain */
@@ -189,6 +192,8 @@ declare class Twilio extends Client {
189
192
  get lookups(): Lookups;
190
193
  /** Getter for (Twilio.Marketplace) domain */
191
194
  get marketplace(): Marketplace;
195
+ /** Getter for (Twilio.Memory) domain */
196
+ get memory(): Memory;
192
197
  /** Getter for (Twilio.Messaging) domain */
193
198
  get messaging(): Messaging;
194
199
  /** Getter for (Twilio.Monitor) domain */
@@ -50,6 +50,7 @@ class Twilio extends BaseTwilio_1.Client {
50
50
  this.knowledge;
51
51
  this.lookups;
52
52
  this.marketplace;
53
+ this.memory;
53
54
  this.messaging;
54
55
  this.monitor;
55
56
  this.notify;
@@ -153,6 +154,10 @@ class Twilio extends BaseTwilio_1.Client {
153
154
  return (this._marketplace ??
154
155
  (this._marketplace = new (require("./Marketplace"))(this)));
155
156
  }
157
+ /** Getter for (Twilio.Memory) domain */
158
+ get memory() {
159
+ return this._memory ?? (this._memory = new (require("./Memory"))(this));
160
+ }
156
161
  /** Getter for (Twilio.Messaging) domain */
157
162
  get messaging() {
158
163
  return (this._messaging ?? (this._messaging = new (require("./Messaging"))(this)));
@@ -1,7 +1,9 @@
1
1
  import Domain from "../base/Domain";
2
2
  import V1 from "./voice/V1";
3
+ import V3 from "./voice/V3";
3
4
  declare class VoiceBase extends Domain {
4
5
  _v1?: V1;
6
+ _v3?: V3;
5
7
  /**
6
8
  * Initialize voice domain
7
9
  *
@@ -9,5 +11,6 @@ declare class VoiceBase extends Domain {
9
11
  */
10
12
  constructor(twilio: any);
11
13
  get v1(): V1;
14
+ get v3(): V3;
12
15
  }
13
16
  export = VoiceBase;
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  };
15
15
  const Domain_1 = __importDefault(require("../base/Domain"));
16
16
  const V1_1 = __importDefault(require("./voice/V1"));
17
+ const V3_1 = __importDefault(require("./voice/V3"));
17
18
  class VoiceBase extends Domain_1.default {
18
19
  /**
19
20
  * Initialize voice domain
@@ -27,5 +28,9 @@ class VoiceBase extends Domain_1.default {
27
28
  this._v1 = this._v1 || new V1_1.default(this);
28
29
  return this._v1;
29
30
  }
31
+ get v3() {
32
+ this._v3 = this._v3 || new V3_1.default(this);
33
+ return this._v3;
34
+ }
30
35
  }
31
36
  module.exports = VoiceBase;
@@ -36,6 +36,8 @@ export interface RecordingListInstanceCreateOptions {
36
36
  recordingChannels?: string;
37
37
  /** The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is generated from Twilio. `both` records the audio that is received and generated by Twilio. */
38
38
  recordingTrack?: string;
39
+ /** The identifier of the configuration to be used when creating and processing the recording */
40
+ recordingConfigurationId?: string;
39
41
  }
40
42
  /**
41
43
  * Options to pass to each
@@ -307,6 +307,8 @@ function RecordingListInstance(version, accountSid, callSid) {
307
307
  data["RecordingChannels"] = params["recordingChannels"];
308
308
  if (params["recordingTrack"] !== undefined)
309
309
  data["RecordingTrack"] = params["recordingTrack"];
310
+ if (params["recordingConfigurationId"] !== undefined)
311
+ data["RecordingConfigurationId"] = params["recordingConfigurationId"];
310
312
  const headers = {};
311
313
  headers["Content-Type"] = "application/x-www-form-urlencoded";
312
314
  headers["Accept"] = "application/json";
@@ -342,6 +344,8 @@ function RecordingListInstance(version, accountSid, callSid) {
342
344
  data["RecordingChannels"] = params["recordingChannels"];
343
345
  if (params["recordingTrack"] !== undefined)
344
346
  data["RecordingTrack"] = params["recordingTrack"];
347
+ if (params["recordingConfigurationId"] !== undefined)
348
+ data["RecordingConfigurationId"] = params["recordingConfigurationId"];
345
349
  const headers = {};
346
350
  headers["Content-Type"] = "application/x-www-form-urlencoded";
347
351
  headers["Accept"] = "application/json";
@@ -54,7 +54,7 @@ export interface TranscriptionListInstanceCreateOptions {
54
54
  /** The ID of the Conversation for associating this Transcription with an existing Conversation in Intelligence Service */
55
55
  conversationId?: string;
56
56
  /** The ID of the RealTimeTranscription Configuration for configuring all the non-default behaviors in one go. */
57
- configurationId?: string;
57
+ transcriptionConfigurationId?: string;
58
58
  /** Whether the callback includes raw provider data. */
59
59
  enableProviderData?: boolean;
60
60
  }
@@ -199,8 +199,9 @@ function TranscriptionListInstance(version, accountSid, callSid) {
199
199
  data["ConversationConfiguration"] = params["conversationConfiguration"];
200
200
  if (params["conversationId"] !== undefined)
201
201
  data["ConversationId"] = params["conversationId"];
202
- if (params["configurationId"] !== undefined)
203
- data["ConfigurationId"] = params["configurationId"];
202
+ if (params["transcriptionConfigurationId"] !== undefined)
203
+ data["TranscriptionConfigurationId"] =
204
+ params["transcriptionConfigurationId"];
204
205
  if (params["enableProviderData"] !== undefined)
205
206
  data["EnableProviderData"] = serialize.bool(params["enableProviderData"]);
206
207
  const headers = {};
@@ -257,8 +258,9 @@ function TranscriptionListInstance(version, accountSid, callSid) {
257
258
  data["ConversationConfiguration"] = params["conversationConfiguration"];
258
259
  if (params["conversationId"] !== undefined)
259
260
  data["ConversationId"] = params["conversationId"];
260
- if (params["configurationId"] !== undefined)
261
- data["ConfigurationId"] = params["configurationId"];
261
+ if (params["transcriptionConfigurationId"] !== undefined)
262
+ data["TranscriptionConfigurationId"] =
263
+ params["transcriptionConfigurationId"];
262
264
  if (params["enableProviderData"] !== undefined)
263
265
  data["EnableProviderData"] = serialize.bool(params["enableProviderData"]);
264
266
  const headers = {};
@@ -73,6 +73,8 @@ export interface CallListInstanceCreateOptions {
73
73
  recordingStatusCallback?: string;
74
74
  /** The HTTP method we should use when calling the `recording_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. */
75
75
  recordingStatusCallbackMethod?: string;
76
+ /** The identifier of the configuration to be used when creating and processing the recording */
77
+ recordingConfigurationId?: string;
76
78
  /** The username used to authenticate the caller making a SIP call. */
77
79
  sipAuthUsername?: string;
78
80
  /** The password required to authenticate the user account specified in `sip_auth_username`. */
@@ -482,6 +482,8 @@ function CallListInstance(version, accountSid) {
482
482
  if (params["recordingStatusCallbackMethod"] !== undefined)
483
483
  data["RecordingStatusCallbackMethod"] =
484
484
  params["recordingStatusCallbackMethod"];
485
+ if (params["recordingConfigurationId"] !== undefined)
486
+ data["RecordingConfigurationId"] = params["recordingConfigurationId"];
485
487
  if (params["sipAuthUsername"] !== undefined)
486
488
  data["SipAuthUsername"] = params["sipAuthUsername"];
487
489
  if (params["sipAuthPassword"] !== undefined)
@@ -581,6 +583,8 @@ function CallListInstance(version, accountSid) {
581
583
  if (params["recordingStatusCallbackMethod"] !== undefined)
582
584
  data["RecordingStatusCallbackMethod"] =
583
585
  params["recordingStatusCallbackMethod"];
586
+ if (params["recordingConfigurationId"] !== undefined)
587
+ data["RecordingConfigurationId"] = params["recordingConfigurationId"];
584
588
  if (params["sipAuthUsername"] !== undefined)
585
589
  data["SipAuthUsername"] = params["sipAuthUsername"];
586
590
  if (params["sipAuthPassword"] !== undefined)
@@ -116,6 +116,8 @@ export interface ParticipantListInstanceCreateOptions {
116
116
  callReason?: string;
117
117
  /** The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is sent from Twilio. `both` records the audio that is received and sent by Twilio. */
118
118
  recordingTrack?: string;
119
+ /** The identifier of the configuration to be used when creating and processing the recording */
120
+ recordingConfigurationId?: string;
119
121
  /** The maximum duration of the call in seconds. Constraints depend on account and configuration. */
120
122
  timeLimit?: number;
121
123
  /** Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection). */
@@ -416,6 +416,8 @@ function ParticipantListInstance(version, accountSid, conferenceSid) {
416
416
  data["CallReason"] = params["callReason"];
417
417
  if (params["recordingTrack"] !== undefined)
418
418
  data["RecordingTrack"] = params["recordingTrack"];
419
+ if (params["recordingConfigurationId"] !== undefined)
420
+ data["RecordingConfigurationId"] = params["recordingConfigurationId"];
419
421
  if (params["timeLimit"] !== undefined)
420
422
  data["TimeLimit"] = params["timeLimit"];
421
423
  if (params["machineDetection"] !== undefined)
@@ -545,6 +547,8 @@ function ParticipantListInstance(version, accountSid, conferenceSid) {
545
547
  data["CallReason"] = params["callReason"];
546
548
  if (params["recordingTrack"] !== undefined)
547
549
  data["RecordingTrack"] = params["recordingTrack"];
550
+ if (params["recordingConfigurationId"] !== undefined)
551
+ data["RecordingConfigurationId"] = params["recordingConfigurationId"];
548
552
  if (params["timeLimit"] !== undefined)
549
553
  data["TimeLimit"] = params["timeLimit"];
550
554
  if (params["machineDetection"] !== undefined)
@@ -0,0 +1,35 @@
1
+ import ConversationsBase from "../ConversationsBase";
2
+ import Version from "../../base/Version";
3
+ import { CommunicationListInstance, CommunicationContext } from "./v2/communication";
4
+ import { ConfigurationListInstance } from "./v2/configuration";
5
+ import { ConversationListInstance } from "./v2/conversation";
6
+ import { OperationListInstance } from "./v2/operation";
7
+ import { ParticipantListInstance, ParticipantContext } from "./v2/participant";
8
+ export default class V2 extends Version {
9
+ /**
10
+ * Initialize the V2 version of Conversations
11
+ *
12
+ * @param domain - The Twilio (Twilio.Conversations) domain
13
+ */
14
+ constructor(domain: ConversationsBase);
15
+ /** configurations - { Twilio.Conversations.V2.ConfigurationListInstance } resource */
16
+ protected _configurations?: ConfigurationListInstance;
17
+ /** conversations - { Twilio.Conversations.V2.ConversationListInstance } resource */
18
+ protected _conversations?: ConversationListInstance;
19
+ /** operations - { Twilio.Conversations.V2.OperationListInstance } resource */
20
+ protected _operations?: OperationListInstance;
21
+ /** Accessor for communications resource - list operations */
22
+ communications(ConversationSid: string): CommunicationListInstance;
23
+ /** Accessor for communications resource - instance operations */
24
+ communications(ConversationSid: string, sid: string): CommunicationContext;
25
+ /** Getter for configurations resource */
26
+ get configurations(): ConfigurationListInstance;
27
+ /** Getter for conversations resource */
28
+ get conversations(): ConversationListInstance;
29
+ /** Getter for operations resource */
30
+ get operations(): OperationListInstance;
31
+ /** Accessor for participants resource - list operations */
32
+ participants(ConversationSid: string): ParticipantListInstance;
33
+ /** Accessor for participants resource - instance operations */
34
+ participants(ConversationSid: string, sid: string): ParticipantContext;
35
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Conversation Orchestrator
9
+ * Manage configurations, conversations, participants, and communications. Create configurations to define capture rules and channel settings, then use conversations to group related communications.
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator.
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ const Version_1 = __importDefault(require("../../base/Version"));
20
+ const communication_1 = require("./v2/communication");
21
+ const configuration_1 = require("./v2/configuration");
22
+ const conversation_1 = require("./v2/conversation");
23
+ const operation_1 = require("./v2/operation");
24
+ const participant_1 = require("./v2/participant");
25
+ class V2 extends Version_1.default {
26
+ /**
27
+ * Initialize the V2 version of Conversations
28
+ *
29
+ * @param domain - The Twilio (Twilio.Conversations) domain
30
+ */
31
+ constructor(domain) {
32
+ super(domain, "v2");
33
+ }
34
+ /** Implementation */
35
+ communications(ConversationSid, sid) {
36
+ const listInstance = (0, communication_1.CommunicationListInstance)(this, ConversationSid);
37
+ if (sid !== undefined) {
38
+ return listInstance.get(sid);
39
+ }
40
+ return listInstance;
41
+ }
42
+ /** Getter for configurations resource */
43
+ get configurations() {
44
+ this._configurations =
45
+ this._configurations || (0, configuration_1.ConfigurationListInstance)(this);
46
+ return this._configurations;
47
+ }
48
+ /** Getter for conversations resource */
49
+ get conversations() {
50
+ this._conversations = this._conversations || (0, conversation_1.ConversationListInstance)(this);
51
+ return this._conversations;
52
+ }
53
+ /** Getter for operations resource */
54
+ get operations() {
55
+ this._operations = this._operations || (0, operation_1.OperationListInstance)(this);
56
+ return this._operations;
57
+ }
58
+ /** Implementation */
59
+ participants(ConversationSid, sid) {
60
+ const listInstance = (0, participant_1.ParticipantListInstance)(this, ConversationSid);
61
+ if (sid !== undefined) {
62
+ return listInstance.get(sid);
63
+ }
64
+ return listInstance;
65
+ }
66
+ }
67
+ exports.default = V2;