@lorikeetai/node-sdk 1.1.0 → 1.2.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.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/conversation/conversation.d.ts +4 -0
- package/resources/conversation/conversation.d.ts.map +1 -1
- package/resources/conversation/conversation.js +4 -0
- package/resources/conversation/conversation.js.map +1 -1
- package/resources/conversation/conversation.mjs +4 -0
- package/resources/conversation/conversation.mjs.map +1 -1
- package/resources/conversation/index.d.ts +1 -0
- package/resources/conversation/index.d.ts.map +1 -1
- package/resources/conversation/index.js +3 -1
- package/resources/conversation/index.js.map +1 -1
- package/resources/conversation/index.mjs +1 -0
- package/resources/conversation/index.mjs.map +1 -1
- package/resources/conversation/voice.d.ts +37 -0
- package/resources/conversation/voice.d.ts.map +1 -0
- package/resources/conversation/voice.js +26 -0
- package/resources/conversation/voice.js.map +1 -0
- package/resources/conversation/voice.mjs +22 -0
- package/resources/conversation/voice.mjs.map +1 -0
- package/src/resources/conversation/conversation.ts +6 -0
- package/src/resources/conversation/index.ts +1 -0
- package/src/resources/conversation/voice.ts +50 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.2.0 (2025-08-21)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.1.0...v1.2.0](https://github.com/optechai/node-sdk/compare/v1.1.0...v1.2.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add voice outbound endpoint ([0c8e9f3](https://github.com/optechai/node-sdk/commit/0c8e9f3c686dcece0f08b8725b6a503b626e7a22))
|
|
10
|
+
|
|
3
11
|
## 1.1.0 (2025-08-18)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.0.2...v1.1.0](https://github.com/optechai/node-sdk/compare/v1.0.2...v1.1.0)
|
package/package.json
CHANGED
|
@@ -4,9 +4,12 @@ import * as ChatAPI from "./chat.js";
|
|
|
4
4
|
import { Chat, ChatGenerateParams, ChatGenerateResponse, ChatGetParams, ChatGetResponse, ChatStartParams, ChatStartResponse } from "./chat.js";
|
|
5
5
|
import * as EmailAPI from "./email.js";
|
|
6
6
|
import { Email, EmailGenerateParams, EmailGenerateResponse, EmailGetParams, EmailGetResponse, EmailStartParams, EmailStartResponse } from "./email.js";
|
|
7
|
+
import * as VoiceAPI from "./voice.js";
|
|
8
|
+
import { Voice, VoiceOutboundParams } from "./voice.js";
|
|
7
9
|
export declare class Conversation extends APIResource {
|
|
8
10
|
email: EmailAPI.Email;
|
|
9
11
|
chat: ChatAPI.Chat;
|
|
12
|
+
voice: VoiceAPI.Voice;
|
|
10
13
|
/**
|
|
11
14
|
* @example
|
|
12
15
|
* ```ts
|
|
@@ -126,5 +129,6 @@ export declare namespace Conversation {
|
|
|
126
129
|
export { type AttachmentDto as AttachmentDto, type TicketEvent as TicketEvent, type TicketMessageDto as TicketMessageDto, type ConversationCreateResponse as ConversationCreateResponse, type ConversationRetrieveTranscriptResponse as ConversationRetrieveTranscriptResponse, type ConversationCreateParams as ConversationCreateParams, type ConversationRetrieveTranscriptParams as ConversationRetrieveTranscriptParams, };
|
|
127
130
|
export { Email as Email, type EmailGenerateResponse as EmailGenerateResponse, type EmailGetResponse as EmailGetResponse, type EmailStartResponse as EmailStartResponse, type EmailGenerateParams as EmailGenerateParams, type EmailGetParams as EmailGetParams, type EmailStartParams as EmailStartParams, };
|
|
128
131
|
export { Chat as Chat, type ChatGenerateResponse as ChatGenerateResponse, type ChatGetResponse as ChatGetResponse, type ChatStartResponse as ChatStartResponse, type ChatGenerateParams as ChatGenerateParams, type ChatGetParams as ChatGetParams, type ChatStartParams as ChatStartParams, };
|
|
132
|
+
export { Voice as Voice, type VoiceOutboundParams as VoiceOutboundParams };
|
|
129
133
|
}
|
|
130
134
|
//# sourceMappingURL=conversation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/resources/conversation/conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,EACL,IAAI,EACJ,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,eAAe,EACf,eAAe,EACf,iBAAiB,EAClB,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EACL,KAAK,EACL,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/resources/conversation/conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,EACL,IAAI,EACJ,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,eAAe,EACf,eAAe,EACf,iBAAiB,EAClB,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EACL,KAAK,EACL,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAErD,qBAAa,YAAa,SAAQ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eAAe,GACxC,CAAC;IAEF,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5E"}
|
|
@@ -30,11 +30,14 @@ const ChatAPI = __importStar(require("./chat.js"));
|
|
|
30
30
|
const chat_1 = require("./chat.js");
|
|
31
31
|
const EmailAPI = __importStar(require("./email.js"));
|
|
32
32
|
const email_1 = require("./email.js");
|
|
33
|
+
const VoiceAPI = __importStar(require("./voice.js"));
|
|
34
|
+
const voice_1 = require("./voice.js");
|
|
33
35
|
class Conversation extends resource_1.APIResource {
|
|
34
36
|
constructor() {
|
|
35
37
|
super(...arguments);
|
|
36
38
|
this.email = new EmailAPI.Email(this._client);
|
|
37
39
|
this.chat = new ChatAPI.Chat(this._client);
|
|
40
|
+
this.voice = new VoiceAPI.Voice(this._client);
|
|
38
41
|
}
|
|
39
42
|
/**
|
|
40
43
|
* @example
|
|
@@ -76,4 +79,5 @@ class Conversation extends resource_1.APIResource {
|
|
|
76
79
|
exports.Conversation = Conversation;
|
|
77
80
|
Conversation.Email = email_1.Email;
|
|
78
81
|
Conversation.Chat = chat_1.Chat;
|
|
82
|
+
Conversation.Voice = voice_1.Voice;
|
|
79
83
|
//# sourceMappingURL=conversation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.js","sourceRoot":"","sources":["../../src/resources/conversation/conversation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,mDAAkC;AAClC,oCAQgB;AAChB,qDAAoC;AACpC,sCAQiB;
|
|
1
|
+
{"version":3,"file":"conversation.js","sourceRoot":"","sources":["../../src/resources/conversation/conversation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,mDAAkC;AAClC,oCAQgB;AAChB,qDAAoC;AACpC,sCAQiB;AACjB,qDAAoC;AACpC,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";
|
|
5
5
|
import * as EmailAPI from "./email.mjs";
|
|
6
6
|
import { Email, } from "./email.mjs";
|
|
7
|
+
import * as VoiceAPI from "./voice.mjs";
|
|
8
|
+
import { Voice } from "./voice.mjs";
|
|
7
9
|
export class Conversation extends APIResource {
|
|
8
10
|
constructor() {
|
|
9
11
|
super(...arguments);
|
|
10
12
|
this.email = new EmailAPI.Email(this._client);
|
|
11
13
|
this.chat = new ChatAPI.Chat(this._client);
|
|
14
|
+
this.voice = new VoiceAPI.Voice(this._client);
|
|
12
15
|
}
|
|
13
16
|
/**
|
|
14
17
|
* @example
|
|
@@ -49,4 +52,5 @@ export class Conversation extends APIResource {
|
|
|
49
52
|
}
|
|
50
53
|
Conversation.Email = Email;
|
|
51
54
|
Conversation.Chat = Chat;
|
|
55
|
+
Conversation.Voice = Voice;
|
|
52
56
|
//# sourceMappingURL=conversation.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.mjs","sourceRoot":"","sources":["../../src/resources/conversation/conversation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,OAAO;OACZ,EACL,IAAI,GAOL;OACM,KAAK,QAAQ;OACb,EACL,KAAK,GAON;
|
|
1
|
+
{"version":3,"file":"conversation.mjs","sourceRoot":"","sources":["../../src/resources/conversation/conversation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,OAAO;OACZ,EACL,IAAI,GAOL;OACM,KAAK,QAAQ;OACb,EACL,KAAK,GAON;OACM,KAAK,QAAQ;OACb,EAAE,KAAK,EAAuB;AAErC,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8C3D,CAAC;IA5CC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAgC,EAChC,OAA6B;QAE7B,MAAM,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SACzF,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,kBAAkB,CAChB,QAAgB,EAChB,MAA4C,EAC5C,OAA6B;QAE7B,MAAM,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,GAAG,MAAM,CAAC;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,QAAQ,EAAE,EAAE;YACjE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SACzF,CAAC,CAAC;IACL,CAAC;CACF;AAyHD,YAAY,CAAC,KAAK,GAAG,KAAK,CAAC;AAC3B,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;AACzB,YAAY,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Chat, type ChatGenerateResponse, type ChatGetResponse, type ChatStartResponse, type ChatGenerateParams, type ChatGetParams, type ChatStartParams, } from "./chat.js";
|
|
2
2
|
export { Conversation, type AttachmentDto, type TicketEvent, type TicketMessageDto, type ConversationCreateResponse, type ConversationRetrieveTranscriptResponse, type ConversationCreateParams, type ConversationRetrieveTranscriptParams, } from "./conversation.js";
|
|
3
3
|
export { Email, type EmailGenerateResponse, type EmailGetResponse, type EmailStartResponse, type EmailGenerateParams, type EmailGetParams, type EmailStartParams, } from "./email.js";
|
|
4
|
+
export { Voice, type VoiceOutboundParams } from "./voice.js";
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/conversation/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,GAC1C,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/conversation/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,GAC1C,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Email = exports.Conversation = exports.Chat = void 0;
|
|
4
|
+
exports.Voice = exports.Email = exports.Conversation = exports.Chat = void 0;
|
|
5
5
|
var chat_1 = require("./chat.js");
|
|
6
6
|
Object.defineProperty(exports, "Chat", { enumerable: true, get: function () { return chat_1.Chat; } });
|
|
7
7
|
var conversation_1 = require("./conversation.js");
|
|
8
8
|
Object.defineProperty(exports, "Conversation", { enumerable: true, get: function () { return conversation_1.Conversation; } });
|
|
9
9
|
var email_1 = require("./email.js");
|
|
10
10
|
Object.defineProperty(exports, "Email", { enumerable: true, get: function () { return email_1.Email; } });
|
|
11
|
+
var voice_1 = require("./voice.js");
|
|
12
|
+
Object.defineProperty(exports, "Voice", { enumerable: true, get: function () { return voice_1.Voice; } });
|
|
11
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/conversation/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,oCAQiB;AAPf,8FAAA,KAAK,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/conversation/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,oCAA0D;AAAjD,8FAAA,KAAK,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/conversation/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAOL;OACM,EACL,YAAY,GAQb;OACM,EACL,KAAK,GAON"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/conversation/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAOL;OACM,EACL,YAAY,GAQb;OACM,EACL,KAAK,GAON;OACM,EAAE,KAAK,EAA4B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
export declare class Voice extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* await client.conversation.voice.outbound({
|
|
8
|
+
* brandId: 'brandId',
|
|
9
|
+
* phoneNumber: '+61400000000',
|
|
10
|
+
* workflowId: 'workflowId',
|
|
11
|
+
* });
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
outbound(body: VoiceOutboundParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
15
|
+
}
|
|
16
|
+
export interface VoiceOutboundParams {
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the brand to make the call from
|
|
19
|
+
*/
|
|
20
|
+
brandId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The phone number to call
|
|
23
|
+
*/
|
|
24
|
+
phoneNumber: string;
|
|
25
|
+
/**
|
|
26
|
+
* The ID of the workflow to use for the call
|
|
27
|
+
*/
|
|
28
|
+
workflowId: string;
|
|
29
|
+
/**
|
|
30
|
+
* The input data to pass to the workflow
|
|
31
|
+
*/
|
|
32
|
+
inputData?: unknown;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace Voice {
|
|
35
|
+
export { type VoiceOutboundParams as VoiceOutboundParams };
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=voice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../src/resources/conversation/voice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAO1F;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Voice = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class Voice extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* await client.conversation.voice.outbound({
|
|
11
|
+
* brandId: 'brandId',
|
|
12
|
+
* phoneNumber: '+61400000000',
|
|
13
|
+
* workflowId: 'workflowId',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
outbound(body, options) {
|
|
18
|
+
return this._client.post('/v1/conversation/voice/outbound', {
|
|
19
|
+
body,
|
|
20
|
+
...options,
|
|
21
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Voice = Voice;
|
|
26
|
+
//# sourceMappingURL=voice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/resources/conversation/voice.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE;YAC1D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAlBD,sBAkBC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class Voice extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* await client.conversation.voice.outbound({
|
|
8
|
+
* brandId: 'brandId',
|
|
9
|
+
* phoneNumber: '+61400000000',
|
|
10
|
+
* workflowId: 'workflowId',
|
|
11
|
+
* });
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
outbound(body, options) {
|
|
15
|
+
return this._client.post('/v1/conversation/voice/outbound', {
|
|
16
|
+
body,
|
|
17
|
+
...options,
|
|
18
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=voice.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice.mjs","sourceRoot":"","sources":["../../src/resources/conversation/voice.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE;YAC1D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -22,10 +22,13 @@ import {
|
|
|
22
22
|
EmailStartParams,
|
|
23
23
|
EmailStartResponse,
|
|
24
24
|
} from './email';
|
|
25
|
+
import * as VoiceAPI from './voice';
|
|
26
|
+
import { Voice, VoiceOutboundParams } from './voice';
|
|
25
27
|
|
|
26
28
|
export class Conversation extends APIResource {
|
|
27
29
|
email: EmailAPI.Email = new EmailAPI.Email(this._client);
|
|
28
30
|
chat: ChatAPI.Chat = new ChatAPI.Chat(this._client);
|
|
31
|
+
voice: VoiceAPI.Voice = new VoiceAPI.Voice(this._client);
|
|
29
32
|
|
|
30
33
|
/**
|
|
31
34
|
* @example
|
|
@@ -194,6 +197,7 @@ export interface ConversationRetrieveTranscriptParams {
|
|
|
194
197
|
|
|
195
198
|
Conversation.Email = Email;
|
|
196
199
|
Conversation.Chat = Chat;
|
|
200
|
+
Conversation.Voice = Voice;
|
|
197
201
|
|
|
198
202
|
export declare namespace Conversation {
|
|
199
203
|
export {
|
|
@@ -225,4 +229,6 @@ export declare namespace Conversation {
|
|
|
225
229
|
type ChatGetParams as ChatGetParams,
|
|
226
230
|
type ChatStartParams as ChatStartParams,
|
|
227
231
|
};
|
|
232
|
+
|
|
233
|
+
export { Voice as Voice, type VoiceOutboundParams as VoiceOutboundParams };
|
|
228
234
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
|
|
6
|
+
export class Voice extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* await client.conversation.voice.outbound({
|
|
11
|
+
* brandId: 'brandId',
|
|
12
|
+
* phoneNumber: '+61400000000',
|
|
13
|
+
* workflowId: 'workflowId',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
outbound(body: VoiceOutboundParams, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
18
|
+
return this._client.post('/v1/conversation/voice/outbound', {
|
|
19
|
+
body,
|
|
20
|
+
...options,
|
|
21
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface VoiceOutboundParams {
|
|
27
|
+
/**
|
|
28
|
+
* The ID of the brand to make the call from
|
|
29
|
+
*/
|
|
30
|
+
brandId: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The phone number to call
|
|
34
|
+
*/
|
|
35
|
+
phoneNumber: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The ID of the workflow to use for the call
|
|
39
|
+
*/
|
|
40
|
+
workflowId: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The input data to pass to the workflow
|
|
44
|
+
*/
|
|
45
|
+
inputData?: unknown;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export declare namespace Voice {
|
|
49
|
+
export { type VoiceOutboundParams as VoiceOutboundParams };
|
|
50
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.2.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.2.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|