twilio 5.13.1 → 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.
- package/README.md +2 -4
- package/lib/rest/ConversationsBase.d.ts +3 -0
- package/lib/rest/ConversationsBase.js +5 -0
- package/lib/rest/InsightsBase.d.ts +3 -0
- package/lib/rest/InsightsBase.js +5 -0
- package/lib/rest/IntelligenceBase.d.ts +3 -0
- package/lib/rest/IntelligenceBase.js +5 -0
- package/lib/rest/KnowledgeBase.d.ts +3 -0
- package/lib/rest/KnowledgeBase.js +5 -0
- package/lib/rest/Memory.d.ts +4 -0
- package/lib/rest/Memory.js +8 -0
- package/lib/rest/MemoryBase.d.ts +13 -0
- package/lib/rest/MemoryBase.js +31 -0
- package/lib/rest/MessagingBase.d.ts +3 -0
- package/lib/rest/MessagingBase.js +5 -0
- package/lib/rest/Twilio.d.ts +5 -0
- package/lib/rest/Twilio.js +5 -0
- package/lib/rest/VoiceBase.d.ts +3 -0
- package/lib/rest/VoiceBase.js +5 -0
- package/lib/rest/api/v2010/account/call/recording.d.ts +2 -0
- package/lib/rest/api/v2010/account/call/recording.js +4 -0
- package/lib/rest/api/v2010/account/call/transcription.d.ts +2 -0
- package/lib/rest/api/v2010/account/call/transcription.js +6 -0
- package/lib/rest/api/v2010/account/call.d.ts +2 -0
- package/lib/rest/api/v2010/account/call.js +4 -0
- package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -0
- package/lib/rest/api/v2010/account/conference/participant.js +4 -0
- package/lib/rest/api/v2010/account/message.d.ts +2 -0
- package/lib/rest/api/v2010/account/message.js +4 -0
- package/lib/rest/conversations/V2.d.ts +35 -0
- package/lib/rest/conversations/V2.js +67 -0
- package/lib/rest/conversations/v2/communication.d.ts +479 -0
- package/lib/rest/conversations/v2/communication.js +436 -0
- package/lib/rest/conversations/v2/configuration.d.ts +906 -0
- package/lib/rest/conversations/v2/configuration.js +619 -0
- package/lib/rest/conversations/v2/conversation.d.ts +936 -0
- package/lib/rest/conversations/v2/conversation.js +664 -0
- package/lib/rest/conversations/v2/operation.d.ts +167 -0
- package/lib/rest/conversations/v2/operation.js +170 -0
- package/lib/rest/conversations/v2/participant.d.ts +469 -0
- package/lib/rest/conversations/v2/participant.js +442 -0
- package/lib/rest/flexApi/V1.d.ts +0 -5
- package/lib/rest/flexApi/V1.js +0 -7
- package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +1 -1
- package/lib/rest/flexApi/v1/plugin/pluginVersions.js +8 -6
- package/lib/rest/iam/V1.d.ts +3 -0
- package/lib/rest/iam/V1.js +5 -0
- package/lib/rest/iam/v1/rolePermission.d.ts +225 -0
- package/lib/rest/iam/v1/rolePermission.js +181 -0
- package/lib/rest/insights/V3.d.ts +20 -0
- package/lib/rest/insights/V3.js +42 -0
- package/lib/rest/insights/v1/call/callSummary.d.ts +10 -10
- package/lib/rest/insights/v1/call/event.d.ts +4 -4
- package/lib/rest/insights/v1/callSummaries.d.ts +12 -9
- package/lib/rest/insights/v2/inbound.d.ts +8 -8
- package/lib/rest/insights/v2/inbound.js +4 -4
- package/lib/rest/insights/v2/outbound.d.ts +8 -8
- package/lib/rest/insights/v2/outbound.js +4 -4
- package/lib/rest/insights/v2/report.d.ts +8 -8
- package/lib/rest/insights/v2/report.js +4 -4
- package/lib/rest/insights/v3/metadata.d.ts +115 -0
- package/lib/rest/insights/v3/metadata.js +118 -0
- package/lib/rest/insights/v3/query.d.ts +180 -0
- package/lib/rest/insights/v3/query.js +214 -0
- package/lib/rest/intelligence/V3.d.ts +35 -0
- package/lib/rest/intelligence/V3.js +65 -0
- package/lib/rest/intelligence/v3/configuration.d.ts +693 -0
- package/lib/rest/intelligence/v3/configuration.js +528 -0
- package/lib/rest/intelligence/v3/conversation.d.ts +478 -0
- package/lib/rest/intelligence/v3/conversation.js +342 -0
- package/lib/rest/intelligence/v3/operator.d.ts +619 -0
- package/lib/rest/intelligence/v3/operator.js +493 -0
- package/lib/rest/intelligence/v3/operatorResult.d.ts +543 -0
- package/lib/rest/intelligence/v3/operatorResult.js +478 -0
- package/lib/rest/intelligence/v3/version.d.ts +469 -0
- package/lib/rest/intelligence/v3/version.js +341 -0
- package/lib/rest/knowledge/V2.d.ts +31 -0
- package/lib/rest/knowledge/V2.js +62 -0
- package/lib/rest/knowledge/v2/chunk.d.ts +209 -0
- package/lib/rest/knowledge/v2/chunk.js +178 -0
- package/lib/rest/knowledge/v2/knowledge.d.ts +507 -0
- package/lib/rest/knowledge/v2/knowledge.js +466 -0
- package/lib/rest/knowledge/v2/knowledgeBasis.d.ts +484 -0
- package/lib/rest/knowledge/v2/knowledgeBasis.js +441 -0
- package/lib/rest/knowledge/v2/operation.d.ts +162 -0
- package/lib/rest/knowledge/v2/operation.js +175 -0
- package/lib/rest/knowledge/v2/search.d.ts +180 -0
- package/lib/rest/{flexApi/v1/createFlexInstance.js → knowledge/v2/search.js} +45 -36
- package/lib/rest/memory/V1.d.ts +76 -0
- package/lib/rest/memory/V1.js +140 -0
- package/lib/rest/memory/v1/bulk.d.ts +129 -0
- package/lib/rest/memory/v1/bulk.js +158 -0
- package/lib/rest/memory/v1/conversationSummary.d.ts +531 -0
- package/lib/rest/memory/v1/conversationSummary.js +473 -0
- package/lib/rest/memory/v1/dataMapping.d.ts +630 -0
- package/lib/rest/memory/v1/dataMapping.js +512 -0
- package/lib/rest/memory/v1/event.d.ts +153 -0
- package/lib/rest/memory/v1/event.js +159 -0
- package/lib/rest/memory/v1/identifier.d.ts +362 -0
- package/lib/rest/memory/v1/identifier.js +369 -0
- package/lib/rest/memory/v1/identityResolutionSetting.d.ts +247 -0
- package/lib/rest/memory/v1/identityResolutionSetting.js +229 -0
- package/lib/rest/memory/v1/import.d.ts +292 -0
- package/lib/rest/memory/v1/import.js +280 -0
- package/lib/rest/memory/v1/lookup.d.ts +82 -0
- package/lib/rest/memory/v1/lookup.js +118 -0
- package/lib/rest/memory/v1/observation.d.ts +521 -0
- package/lib/rest/memory/v1/observation.js +477 -0
- package/lib/rest/memory/v1/operation.d.ts +162 -0
- package/lib/rest/memory/v1/operation.js +175 -0
- package/lib/rest/memory/v1/profile.d.ts +441 -0
- package/lib/rest/memory/v1/profile.js +467 -0
- package/lib/rest/memory/v1/recall.d.ts +306 -0
- package/lib/rest/memory/v1/recall.js +234 -0
- package/lib/rest/memory/v1/revision.d.ts +246 -0
- package/lib/rest/memory/v1/revision.js +195 -0
- package/lib/rest/memory/v1/store.d.ts +503 -0
- package/lib/rest/memory/v1/store.js +482 -0
- package/lib/rest/memory/v1/trait.d.ts +233 -0
- package/lib/rest/memory/v1/trait.js +190 -0
- package/lib/rest/memory/v1/traitGroup.d.ts +758 -0
- package/lib/rest/memory/v1/traitGroup.js +555 -0
- package/lib/rest/messaging/V3.d.ts +15 -0
- package/lib/rest/messaging/V3.js +37 -0
- package/lib/rest/messaging/v2/channelsSender.d.ts +9 -1
- package/lib/rest/messaging/v2/channelsSender.js +2 -0
- package/lib/rest/messaging/v3/typingIndicator.d.ts +90 -0
- package/lib/rest/messaging/v3/typingIndicator.js +114 -0
- package/lib/rest/numbers/v3/hostedNumberOrder.d.ts +1 -1
- package/lib/rest/numbers/v3/hostedNumberOrder.js +2 -1
- package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +32 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.js +14 -0
- package/lib/rest/studio/v2/flow/execution.d.ts +12 -0
- package/lib/rest/studio/v2/flow/execution.js +6 -0
- package/lib/rest/studio/v2/flow.d.ts +4 -0
- package/lib/rest/studio/v2/flow.js +8 -0
- package/lib/rest/verify/v2/service/approveChallenge.d.ts +6 -6
- package/lib/rest/verify/v2/service/approveChallenge.js +2 -2
- package/lib/rest/verify/v2/service/newChallenge.d.ts +6 -6
- package/lib/rest/verify/v2/service/newChallenge.js +2 -2
- package/lib/rest/verify/v2/service/verification.d.ts +1 -1
- package/lib/rest/verify/v2/service/webhook.d.ts +2 -2
- package/lib/rest/verify/v2/service/webhook.js +8 -8
- package/lib/rest/video/v1/room.d.ts +4 -1
- package/lib/rest/voice/V3.d.ts +15 -0
- package/lib/rest/voice/V3.js +37 -0
- package/lib/rest/voice/v3/transcription.d.ts +378 -0
- package/lib/rest/voice/v3/transcription.js +264 -0
- package/lib/twiml/VoiceResponse.d.ts +18 -0
- package/package.json +2 -2
- package/lib/rest/flexApi/v1/createFlexInstance.d.ts +0 -165
package/README.md
CHANGED
|
@@ -19,11 +19,9 @@ The Node library documentation can be found [here][libdocs].
|
|
|
19
19
|
|
|
20
20
|
This library supports the following Node.js implementations:
|
|
21
21
|
|
|
22
|
-
- Node.js 14
|
|
23
|
-
- Node.js 16
|
|
24
|
-
- Node.js 18
|
|
25
22
|
- Node.js 20
|
|
26
|
-
- Node.js
|
|
23
|
+
- Node.js 22
|
|
24
|
+
- Node.js 24 (lts)
|
|
27
25
|
|
|
28
26
|
TypeScript is supported for TypeScript version 2.9 and above.
|
|
29
27
|
|
|
@@ -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;
|
package/lib/rest/InsightsBase.js
CHANGED
|
@@ -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,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;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import Domain from "../base/Domain";
|
|
2
2
|
import V1 from "./messaging/V1";
|
|
3
3
|
import V2 from "./messaging/V2";
|
|
4
|
+
import V3 from "./messaging/V3";
|
|
4
5
|
declare class MessagingBase extends Domain {
|
|
5
6
|
_v1?: V1;
|
|
6
7
|
_v2?: V2;
|
|
8
|
+
_v3?: V3;
|
|
7
9
|
/**
|
|
8
10
|
* Initialize messaging domain
|
|
9
11
|
*
|
|
@@ -12,5 +14,6 @@ declare class MessagingBase 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 = MessagingBase;
|
|
@@ -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("./messaging/V1"));
|
|
17
17
|
const V2_1 = __importDefault(require("./messaging/V2"));
|
|
18
|
+
const V3_1 = __importDefault(require("./messaging/V3"));
|
|
18
19
|
class MessagingBase extends Domain_1.default {
|
|
19
20
|
/**
|
|
20
21
|
* Initialize messaging domain
|
|
@@ -32,5 +33,9 @@ class MessagingBase 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 = MessagingBase;
|
package/lib/rest/Twilio.d.ts
CHANGED
|
@@ -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 */
|
package/lib/rest/Twilio.js
CHANGED
|
@@ -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)));
|
package/lib/rest/VoiceBase.d.ts
CHANGED
|
@@ -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;
|
package/lib/rest/VoiceBase.js
CHANGED
|
@@ -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";
|
|
@@ -53,6 +53,8 @@ export interface TranscriptionListInstanceCreateOptions {
|
|
|
53
53
|
conversationConfiguration?: string;
|
|
54
54
|
/** The ID of the Conversation for associating this Transcription with an existing Conversation in Intelligence Service */
|
|
55
55
|
conversationId?: string;
|
|
56
|
+
/** The ID of the RealTimeTranscription Configuration for configuring all the non-default behaviors in one go. */
|
|
57
|
+
transcriptionConfigurationId?: string;
|
|
56
58
|
/** Whether the callback includes raw provider data. */
|
|
57
59
|
enableProviderData?: boolean;
|
|
58
60
|
}
|
|
@@ -199,6 +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["transcriptionConfigurationId"] !== undefined)
|
|
203
|
+
data["TranscriptionConfigurationId"] =
|
|
204
|
+
params["transcriptionConfigurationId"];
|
|
202
205
|
if (params["enableProviderData"] !== undefined)
|
|
203
206
|
data["EnableProviderData"] = serialize.bool(params["enableProviderData"]);
|
|
204
207
|
const headers = {};
|
|
@@ -255,6 +258,9 @@ function TranscriptionListInstance(version, accountSid, callSid) {
|
|
|
255
258
|
data["ConversationConfiguration"] = params["conversationConfiguration"];
|
|
256
259
|
if (params["conversationId"] !== undefined)
|
|
257
260
|
data["ConversationId"] = params["conversationId"];
|
|
261
|
+
if (params["transcriptionConfigurationId"] !== undefined)
|
|
262
|
+
data["TranscriptionConfigurationId"] =
|
|
263
|
+
params["transcriptionConfigurationId"];
|
|
258
264
|
if (params["enableProviderData"] !== undefined)
|
|
259
265
|
data["EnableProviderData"] = serialize.bool(params["enableProviderData"]);
|
|
260
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)
|
|
@@ -84,6 +84,8 @@ export interface MessageListInstanceCreateOptions {
|
|
|
84
84
|
riskCheck?: MessageRiskCheck;
|
|
85
85
|
/** The sender\\\'s Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service\\\'s Sender Pool) or you can provide a specific sender from your Sender Pool. */
|
|
86
86
|
from?: string;
|
|
87
|
+
/** A fallback SMS sender to use when the recipient cannot be reached over RCS. This parameter may only be used when also providing a [Messaging Service](https://twilio.com/docs/messaging/services) containing an RCS sender. The fallback SMS sender must be either a Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), or [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), hosted within Twilio and belong to the Account creating the Message. */
|
|
88
|
+
fallbackFrom?: string;
|
|
87
89
|
/** The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service\\\'s Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool. */
|
|
88
90
|
messagingServiceSid?: string;
|
|
89
91
|
/** The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages). */
|
|
@@ -360,6 +360,8 @@ function MessageListInstance(version, accountSid) {
|
|
|
360
360
|
data["RiskCheck"] = params["riskCheck"];
|
|
361
361
|
if (params["from"] !== undefined)
|
|
362
362
|
data["From"] = params["from"];
|
|
363
|
+
if (params["fallbackFrom"] !== undefined)
|
|
364
|
+
data["FallbackFrom"] = params["fallbackFrom"];
|
|
363
365
|
if (params["messagingServiceSid"] !== undefined)
|
|
364
366
|
data["MessagingServiceSid"] = params["messagingServiceSid"];
|
|
365
367
|
if (params["body"] !== undefined)
|
|
@@ -428,6 +430,8 @@ function MessageListInstance(version, accountSid) {
|
|
|
428
430
|
data["RiskCheck"] = params["riskCheck"];
|
|
429
431
|
if (params["from"] !== undefined)
|
|
430
432
|
data["From"] = params["from"];
|
|
433
|
+
if (params["fallbackFrom"] !== undefined)
|
|
434
|
+
data["FallbackFrom"] = params["fallbackFrom"];
|
|
431
435
|
if (params["messagingServiceSid"] !== undefined)
|
|
432
436
|
data["MessagingServiceSid"] = params["messagingServiceSid"];
|
|
433
437
|
if (params["body"] !== 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;
|