@sentdm/sentdm 0.46.0 → 0.48.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.
Files changed (113) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/client.d.mts +3 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -1
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/core/pagination.d.mts +25 -0
  9. package/core/pagination.d.mts.map +1 -1
  10. package/core/pagination.d.ts +25 -0
  11. package/core/pagination.d.ts.map +1 -1
  12. package/core/pagination.js +28 -1
  13. package/core/pagination.js.map +1 -1
  14. package/core/pagination.mjs +26 -0
  15. package/core/pagination.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/channels/voice.d.mts +68 -19
  18. package/resources/channels/voice.d.mts.map +1 -1
  19. package/resources/channels/voice.d.ts +68 -19
  20. package/resources/channels/voice.d.ts.map +1 -1
  21. package/resources/channels/voice.js +31 -12
  22. package/resources/channels/voice.js.map +1 -1
  23. package/resources/channels/voice.mjs +31 -12
  24. package/resources/channels/voice.mjs.map +1 -1
  25. package/resources/profiles/campaigns.d.mts +3 -2
  26. package/resources/profiles/campaigns.d.mts.map +1 -1
  27. package/resources/profiles/campaigns.d.ts +3 -2
  28. package/resources/profiles/campaigns.d.ts.map +1 -1
  29. package/resources/profiles/campaigns.js +3 -2
  30. package/resources/profiles/campaigns.js.map +1 -1
  31. package/resources/profiles/campaigns.mjs +3 -2
  32. package/resources/profiles/campaigns.mjs.map +1 -1
  33. package/resources/voice/agents.d.mts +524 -0
  34. package/resources/voice/agents.d.mts.map +1 -0
  35. package/resources/voice/agents.d.ts +524 -0
  36. package/resources/voice/agents.d.ts.map +1 -0
  37. package/resources/voice/agents.js +193 -0
  38. package/resources/voice/agents.js.map +1 -0
  39. package/resources/voice/agents.mjs +189 -0
  40. package/resources/voice/agents.mjs.map +1 -0
  41. package/resources/voice/calls/calls.d.mts +87 -15
  42. package/resources/voice/calls/calls.d.mts.map +1 -1
  43. package/resources/voice/calls/calls.d.ts +87 -15
  44. package/resources/voice/calls/calls.d.ts.map +1 -1
  45. package/resources/voice/calls/calls.js +18 -11
  46. package/resources/voice/calls/calls.js.map +1 -1
  47. package/resources/voice/calls/calls.mjs +18 -11
  48. package/resources/voice/calls/calls.mjs.map +1 -1
  49. package/resources/voice/calls/participants.d.mts +2 -0
  50. package/resources/voice/calls/participants.d.mts.map +1 -1
  51. package/resources/voice/calls/participants.d.ts +2 -0
  52. package/resources/voice/calls/participants.d.ts.map +1 -1
  53. package/resources/voice/calls/participants.js +2 -0
  54. package/resources/voice/calls/participants.js.map +1 -1
  55. package/resources/voice/calls/participants.mjs +2 -0
  56. package/resources/voice/calls/participants.mjs.map +1 -1
  57. package/resources/voice/catalogue.d.mts +86 -0
  58. package/resources/voice/catalogue.d.mts.map +1 -0
  59. package/resources/voice/catalogue.d.ts +86 -0
  60. package/resources/voice/catalogue.d.ts.map +1 -0
  61. package/resources/voice/catalogue.js +40 -0
  62. package/resources/voice/catalogue.js.map +1 -0
  63. package/resources/voice/catalogue.mjs +36 -0
  64. package/resources/voice/catalogue.mjs.map +1 -0
  65. package/resources/voice/index.d.mts +2 -0
  66. package/resources/voice/index.d.mts.map +1 -1
  67. package/resources/voice/index.d.ts +2 -0
  68. package/resources/voice/index.d.ts.map +1 -1
  69. package/resources/voice/index.js +5 -1
  70. package/resources/voice/index.js.map +1 -1
  71. package/resources/voice/index.mjs +2 -0
  72. package/resources/voice/index.mjs.map +1 -1
  73. package/resources/voice/tokens.d.mts +2 -0
  74. package/resources/voice/tokens.d.mts.map +1 -1
  75. package/resources/voice/tokens.d.ts +2 -0
  76. package/resources/voice/tokens.d.ts.map +1 -1
  77. package/resources/voice/tokens.js +2 -0
  78. package/resources/voice/tokens.js.map +1 -1
  79. package/resources/voice/tokens.mjs +2 -0
  80. package/resources/voice/tokens.mjs.map +1 -1
  81. package/resources/voice/voice.d.mts +8 -0
  82. package/resources/voice/voice.d.mts.map +1 -1
  83. package/resources/voice/voice.d.ts +8 -0
  84. package/resources/voice/voice.d.ts.map +1 -1
  85. package/resources/voice/voice.js +8 -0
  86. package/resources/voice/voice.js.map +1 -1
  87. package/resources/voice/voice.mjs +8 -0
  88. package/resources/voice/voice.mjs.map +1 -1
  89. package/resources/webhooks.d.mts +151 -29
  90. package/resources/webhooks.d.mts.map +1 -1
  91. package/resources/webhooks.d.ts +151 -29
  92. package/resources/webhooks.d.ts.map +1 -1
  93. package/resources/webhooks.js +51 -11
  94. package/resources/webhooks.js.map +1 -1
  95. package/resources/webhooks.mjs +51 -11
  96. package/resources/webhooks.mjs.map +1 -1
  97. package/src/client.ts +8 -0
  98. package/src/core/pagination.ts +64 -0
  99. package/src/resources/channels/voice.ts +72 -19
  100. package/src/resources/profiles/campaigns.ts +3 -2
  101. package/src/resources/voice/agents.ts +729 -0
  102. package/src/resources/voice/calls/calls.ts +98 -15
  103. package/src/resources/voice/calls/participants.ts +2 -0
  104. package/src/resources/voice/catalogue.ts +118 -0
  105. package/src/resources/voice/index.ts +33 -0
  106. package/src/resources/voice/tokens.ts +2 -0
  107. package/src/resources/voice/voice.ts +74 -0
  108. package/src/resources/webhooks.ts +159 -29
  109. package/src/version.ts +1 -1
  110. package/version.d.mts +1 -1
  111. package/version.d.ts +1 -1
  112. package/version.js +1 -1
  113. package/version.mjs +1 -1
@@ -0,0 +1,86 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as WebhooksAPI from "../webhooks.js";
3
+ import { APIPromise } from "../../core/api-promise.js";
4
+ import { RequestOptions } from "../../internal/request-options.js";
5
+ /**
6
+ * Phone calls from the numbers you hold, driven by your own callback URL.
7
+ *
8
+ * `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/voice/tokens` mints a short-lived token that lets a user of your app place and receive calls as that number. When a call arrives or a caller presses a key, a signed question is POSTed to the callback URL and the answer decides the call; `POST /v3/channels/voice/{number}/test` checks the URL answers the way we need before a real call reaches it, and `POST /v3/channels/voice/{number}/rotate-secret` replaces the signing secret. The call events themselves (`call.completed` and the rest) arrive through your webhooks.
9
+ *
10
+ * Every call is a record under `/v3/voice/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
11
+ *
12
+ * **Voice agents.** `POST /v3/voice/agents` creates an agent that answers calls through the Sent Voice Gateway: `session_type` says whether Sent carries the call as text (speech recognised and spoken for the agent) or as audio, `websocket_url` is where the gateway dials the agent for each call (leave it out and the agent dials in with your API key), and `tools`, `transfer_targets`, `fallback` and `limits` say what it may do on a call. The agent's `signing_secret` is shown on create and on `POST /v3/voice/agents/{id}/rotate-secret` only. Voices and languages for text sessions come from `GET /v3/voice/voices`. A number takes calls to an agent once it is bound to it on `/v3/channels/voice`.
13
+ */
14
+ export declare class Catalogue extends APIResource {
15
+ /**
16
+ * The names a voice agent's `speech.voice` and `speech.language` accept, with the
17
+ * default marked. The list grows as voices are added; a name is never removed
18
+ * without notice.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const apiResponseOfVoiceCatalogue =
23
+ * await client.voice.catalogue.list();
24
+ * ```
25
+ */
26
+ list(params?: CatalogueListParams | null | undefined, options?: RequestOptions): APIPromise<APIResponseOfVoiceCatalogue>;
27
+ }
28
+ /**
29
+ * Standard API response envelope for all v3 endpoints
30
+ */
31
+ export interface APIResponseOfVoiceCatalogue {
32
+ /**
33
+ * The voices and languages a text-session agent may name in its speech settings:
34
+ * what GET /v3/voice/voices and the admin GET /voice/voices answer, in one shape.
35
+ */
36
+ data?: VoiceCatalogue | null;
37
+ /**
38
+ * Error information
39
+ */
40
+ error?: WebhooksAPI.ErrorDetail | null;
41
+ /**
42
+ * Request and response metadata
43
+ */
44
+ meta?: WebhooksAPI.APIMeta;
45
+ /**
46
+ * Indicates whether the request was successful
47
+ */
48
+ success?: boolean;
49
+ }
50
+ /**
51
+ * The voices and languages a text-session agent may name in its speech settings:
52
+ * what GET /v3/voice/voices and the admin GET /voice/voices answer, in one shape.
53
+ */
54
+ export interface VoiceCatalogue {
55
+ /**
56
+ * BCP 47 tags accepted as speech.language.
57
+ */
58
+ languages?: Array<string>;
59
+ voices?: Array<VoiceCatalogueVoice>;
60
+ }
61
+ export interface VoiceCatalogueVoice {
62
+ /**
63
+ * Whether this is the voice used when an agent names none.
64
+ */
65
+ default?: boolean;
66
+ description?: string;
67
+ /**
68
+ * The language the voice speaks.
69
+ */
70
+ language?: string;
71
+ /**
72
+ * The value to send as speech.voice.
73
+ */
74
+ name?: string;
75
+ }
76
+ export interface CatalogueListParams {
77
+ /**
78
+ * Profile UUID to scope the request to a child profile. Only organization API keys
79
+ * can use this header. The profile must belong to the calling organization.
80
+ */
81
+ 'x-profile-id'?: string;
82
+ }
83
+ export declare namespace Catalogue {
84
+ export { type APIResponseOfVoiceCatalogue as APIResponseOfVoiceCatalogue, type VoiceCatalogue as VoiceCatalogue, type VoiceCatalogueVoice as VoiceCatalogueVoice, type CatalogueListParams as CatalogueListParams, };
85
+ }
86
+ //# sourceMappingURL=catalogue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogue.d.ts","sourceRoot":"","sources":["../../src/resources/voice/catalogue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,WAAW,uBAAoB;AAC3C,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;;;;;;;GAQG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,IAAI,CACF,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;CAU3C;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B,MAAM,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,40 @@
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.Catalogue = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const headers_1 = require("../../internal/headers.js");
7
+ /**
8
+ * Phone calls from the numbers you hold, driven by your own callback URL.
9
+ *
10
+ * `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/voice/tokens` mints a short-lived token that lets a user of your app place and receive calls as that number. When a call arrives or a caller presses a key, a signed question is POSTed to the callback URL and the answer decides the call; `POST /v3/channels/voice/{number}/test` checks the URL answers the way we need before a real call reaches it, and `POST /v3/channels/voice/{number}/rotate-secret` replaces the signing secret. The call events themselves (`call.completed` and the rest) arrive through your webhooks.
11
+ *
12
+ * Every call is a record under `/v3/voice/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
13
+ *
14
+ * **Voice agents.** `POST /v3/voice/agents` creates an agent that answers calls through the Sent Voice Gateway: `session_type` says whether Sent carries the call as text (speech recognised and spoken for the agent) or as audio, `websocket_url` is where the gateway dials the agent for each call (leave it out and the agent dials in with your API key), and `tools`, `transfer_targets`, `fallback` and `limits` say what it may do on a call. The agent's `signing_secret` is shown on create and on `POST /v3/voice/agents/{id}/rotate-secret` only. Voices and languages for text sessions come from `GET /v3/voice/voices`. A number takes calls to an agent once it is bound to it on `/v3/channels/voice`.
15
+ */
16
+ class Catalogue extends resource_1.APIResource {
17
+ /**
18
+ * The names a voice agent's `speech.voice` and `speech.language` accept, with the
19
+ * default marked. The list grows as voices are added; a name is never removed
20
+ * without notice.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const apiResponseOfVoiceCatalogue =
25
+ * await client.voice.catalogue.list();
26
+ * ```
27
+ */
28
+ list(params = {}, options) {
29
+ const { 'x-profile-id': xProfileID } = params ?? {};
30
+ return this._client.get('/v3/voice/voices', {
31
+ ...options,
32
+ headers: (0, headers_1.buildHeaders)([
33
+ { ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
34
+ options?.headers,
35
+ ]),
36
+ });
37
+ }
38
+ }
39
+ exports.Catalogue = Catalogue;
40
+ //# sourceMappingURL=catalogue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogue.js","sourceRoot":"","sources":["../../src/resources/voice/catalogue.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAGtD;;;;;;;;GAQG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;OAUG;IACH,IAAI,CACF,SAAiD,EAAE,EACnD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE;YAC1C,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAzBD,8BAyBC"}
@@ -0,0 +1,36 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { buildHeaders } from "../../internal/headers.mjs";
4
+ /**
5
+ * Phone calls from the numbers you hold, driven by your own callback URL.
6
+ *
7
+ * `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/voice/tokens` mints a short-lived token that lets a user of your app place and receive calls as that number. When a call arrives or a caller presses a key, a signed question is POSTed to the callback URL and the answer decides the call; `POST /v3/channels/voice/{number}/test` checks the URL answers the way we need before a real call reaches it, and `POST /v3/channels/voice/{number}/rotate-secret` replaces the signing secret. The call events themselves (`call.completed` and the rest) arrive through your webhooks.
8
+ *
9
+ * Every call is a record under `/v3/voice/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
10
+ *
11
+ * **Voice agents.** `POST /v3/voice/agents` creates an agent that answers calls through the Sent Voice Gateway: `session_type` says whether Sent carries the call as text (speech recognised and spoken for the agent) or as audio, `websocket_url` is where the gateway dials the agent for each call (leave it out and the agent dials in with your API key), and `tools`, `transfer_targets`, `fallback` and `limits` say what it may do on a call. The agent's `signing_secret` is shown on create and on `POST /v3/voice/agents/{id}/rotate-secret` only. Voices and languages for text sessions come from `GET /v3/voice/voices`. A number takes calls to an agent once it is bound to it on `/v3/channels/voice`.
12
+ */
13
+ export class Catalogue extends APIResource {
14
+ /**
15
+ * The names a voice agent's `speech.voice` and `speech.language` accept, with the
16
+ * default marked. The list grows as voices are added; a name is never removed
17
+ * without notice.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const apiResponseOfVoiceCatalogue =
22
+ * await client.voice.catalogue.list();
23
+ * ```
24
+ */
25
+ list(params = {}, options) {
26
+ const { 'x-profile-id': xProfileID } = params ?? {};
27
+ return this._client.get('/v3/voice/voices', {
28
+ ...options,
29
+ headers: buildHeaders([
30
+ { ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
31
+ options?.headers,
32
+ ]),
33
+ });
34
+ }
35
+ }
36
+ //# sourceMappingURL=catalogue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogue.mjs","sourceRoot":"","sources":["../../src/resources/voice/catalogue.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAGtD;;;;;;;;GAQG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,IAAI,CACF,SAAiD,EAAE,EACnD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE;YAC1C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,4 +1,6 @@
1
+ export { Agents, type APIResponseOfVoiceAgent, type APIResponseOfVoiceAgentSecret, type APIResponseOfVoiceAgentsList, type VoiceAgent, type VoiceAgentAudio, type VoiceAgentAudioSpec, type VoiceAgentLimits, type VoiceAgentLimitsSpec, type VoiceAgentParty, type VoiceAgentPartySpec, type VoiceAgentSecret, type VoiceAgentSpeech, type VoiceAgentSpeechSpec, type VoiceAgentTranscripts, type VoiceAgentTranscriptsSpec, type VoiceAgentsList, type AgentCreateParams, type AgentRetrieveParams, type AgentUpdateParams, type AgentListParams, type AgentDeleteParams, type AgentRotateSecretParams, type VoiceAgentsVoiceAgentsPage, } from "./agents.mjs";
1
2
  export { Calls, type APIResponseOfCall, type APIResponseOfCallRecordings, type APIResponseOfCallsList, type Call, type CallParty, type CallRecording, type CallRecordings, type CallTimelineEntry, type CallsList, type CallRetrieveParams, type CallListParams, type CallHangupParams, type CallListRecordingsParams, type CallRecordParams, type CallsCallsPage, } from "./calls/index.mjs";
3
+ export { Catalogue, type APIResponseOfVoiceCatalogue, type VoiceCatalogue, type VoiceCatalogueVoice, type CatalogueListParams, } from "./catalogue.mjs";
2
4
  export { Tokens, type APIResponseOfVoiceToken, type VoiceToken, type TokenCreateParams } from "./tokens.mjs";
3
5
  export { Voice } from "./voice.mjs";
4
6
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/voice/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,0BAAsB;AACvB,OAAO,EAAE,MAAM,EAAE,KAAK,uBAAuB,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,qBAAiB;AACzG,OAAO,EAAE,KAAK,EAAE,oBAAgB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/voice/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,GAChC,qBAAiB;AAClB,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,0BAAsB;AACvB,OAAO,EACL,SAAS,EACT,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,wBAAoB;AACrB,OAAO,EAAE,MAAM,EAAE,KAAK,uBAAuB,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,qBAAiB;AACzG,OAAO,EAAE,KAAK,EAAE,oBAAgB"}
@@ -1,4 +1,6 @@
1
+ export { Agents, type APIResponseOfVoiceAgent, type APIResponseOfVoiceAgentSecret, type APIResponseOfVoiceAgentsList, type VoiceAgent, type VoiceAgentAudio, type VoiceAgentAudioSpec, type VoiceAgentLimits, type VoiceAgentLimitsSpec, type VoiceAgentParty, type VoiceAgentPartySpec, type VoiceAgentSecret, type VoiceAgentSpeech, type VoiceAgentSpeechSpec, type VoiceAgentTranscripts, type VoiceAgentTranscriptsSpec, type VoiceAgentsList, type AgentCreateParams, type AgentRetrieveParams, type AgentUpdateParams, type AgentListParams, type AgentDeleteParams, type AgentRotateSecretParams, type VoiceAgentsVoiceAgentsPage, } from "./agents.js";
1
2
  export { Calls, type APIResponseOfCall, type APIResponseOfCallRecordings, type APIResponseOfCallsList, type Call, type CallParty, type CallRecording, type CallRecordings, type CallTimelineEntry, type CallsList, type CallRetrieveParams, type CallListParams, type CallHangupParams, type CallListRecordingsParams, type CallRecordParams, type CallsCallsPage, } from "./calls/index.js";
3
+ export { Catalogue, type APIResponseOfVoiceCatalogue, type VoiceCatalogue, type VoiceCatalogueVoice, type CatalogueListParams, } from "./catalogue.js";
2
4
  export { Tokens, type APIResponseOfVoiceToken, type VoiceToken, type TokenCreateParams } from "./tokens.js";
3
5
  export { Voice } from "./voice.js";
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/voice/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,yBAAsB;AACvB,OAAO,EAAE,MAAM,EAAE,KAAK,uBAAuB,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,oBAAiB;AACzG,OAAO,EAAE,KAAK,EAAE,mBAAgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/voice/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,GAChC,oBAAiB;AAClB,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,yBAAsB;AACvB,OAAO,EACL,SAAS,EACT,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,uBAAoB;AACrB,OAAO,EAAE,MAAM,EAAE,KAAK,uBAAuB,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,oBAAiB;AACzG,OAAO,EAAE,KAAK,EAAE,mBAAgB"}
@@ -1,9 +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.Voice = exports.Tokens = exports.Calls = void 0;
4
+ exports.Voice = exports.Tokens = exports.Catalogue = exports.Calls = exports.Agents = void 0;
5
+ var agents_1 = require("./agents.js");
6
+ Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
5
7
  var index_1 = require("./calls/index.js");
6
8
  Object.defineProperty(exports, "Calls", { enumerable: true, get: function () { return index_1.Calls; } });
9
+ var catalogue_1 = require("./catalogue.js");
10
+ Object.defineProperty(exports, "Catalogue", { enumerable: true, get: function () { return catalogue_1.Catalogue; } });
7
11
  var tokens_1 = require("./tokens.js");
8
12
  Object.defineProperty(exports, "Tokens", { enumerable: true, get: function () { return tokens_1.Tokens; } });
9
13
  var voice_1 = require("./voice.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/voice/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAiBuB;AAhBrB,8FAAA,KAAK,OAAA;AAiBP,sCAAyG;AAAhG,gGAAA,MAAM,OAAA;AACf,oCAAgC;AAAvB,8FAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/voice/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAyBkB;AAxBhB,gGAAA,MAAM,OAAA;AAyBR,0CAiBuB;AAhBrB,8FAAA,KAAK,OAAA;AAiBP,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,sCAAyG;AAAhG,gGAAA,MAAM,OAAA;AACf,oCAAgC;AAAvB,8FAAA,KAAK,OAAA"}
@@ -1,5 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Agents, } from "./agents.mjs";
2
3
  export { Calls, } from "./calls/index.mjs";
4
+ export { Catalogue, } from "./catalogue.mjs";
3
5
  export { Tokens } from "./tokens.mjs";
4
6
  export { Voice } from "./voice.mjs";
5
7
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/voice/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAgBN,0BAAsB;AACvB,OAAO,EAAE,MAAM,EAAyE,qBAAiB;AACzG,OAAO,EAAE,KAAK,EAAE,oBAAgB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/voice/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,GAwBP,qBAAiB;AAClB,OAAO,EACL,KAAK,GAgBN,0BAAsB;AACvB,OAAO,EACL,SAAS,GAKV,wBAAoB;AACrB,OAAO,EAAE,MAAM,EAAyE,qBAAiB;AACzG,OAAO,EAAE,KAAK,EAAE,oBAAgB"}
@@ -8,6 +8,8 @@ import { RequestOptions } from "../../internal/request-options.mjs";
8
8
  * `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/voice/tokens` mints a short-lived token that lets a user of your app place and receive calls as that number. When a call arrives or a caller presses a key, a signed question is POSTed to the callback URL and the answer decides the call; `POST /v3/channels/voice/{number}/test` checks the URL answers the way we need before a real call reaches it, and `POST /v3/channels/voice/{number}/rotate-secret` replaces the signing secret. The call events themselves (`call.completed` and the rest) arrive through your webhooks.
9
9
  *
10
10
  * Every call is a record under `/v3/voice/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
11
+ *
12
+ * **Voice agents.** `POST /v3/voice/agents` creates an agent that answers calls through the Sent Voice Gateway: `session_type` says whether Sent carries the call as text (speech recognised and spoken for the agent) or as audio, `websocket_url` is where the gateway dials the agent for each call (leave it out and the agent dials in with your API key), and `tools`, `transfer_targets`, `fallback` and `limits` say what it may do on a call. The agent's `signing_secret` is shown on create and on `POST /v3/voice/agents/{id}/rotate-secret` only. Voices and languages for text sessions come from `GET /v3/voice/voices`. A number takes calls to an agent once it is bound to it on `/v3/channels/voice`.
11
13
  */
12
14
  export declare class Tokens extends APIResource {
13
15
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.mts","sourceRoot":"","sources":["../../src/resources/voice/tokens.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,WAAW,wBAAoB;AAC3C,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;;;;;GAMG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAcjG;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;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AI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -8,6 +8,8 @@ import { RequestOptions } from "../../internal/request-options.js";
8
8
  * `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/voice/tokens` mints a short-lived token that lets a user of your app place and receive calls as that number. When a call arrives or a caller presses a key, a signed question is POSTed to the callback URL and the answer decides the call; `POST /v3/channels/voice/{number}/test` checks the URL answers the way we need before a real call reaches it, and `POST /v3/channels/voice/{number}/rotate-secret` replaces the signing secret. The call events themselves (`call.completed` and the rest) arrive through your webhooks.
9
9
  *
10
10
  * Every call is a record under `/v3/voice/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
11
+ *
12
+ * **Voice agents.** `POST /v3/voice/agents` creates an agent that answers calls through the Sent Voice Gateway: `session_type` says whether Sent carries the call as text (speech recognised and spoken for the agent) or as audio, `websocket_url` is where the gateway dials the agent for each call (leave it out and the agent dials in with your API key), and `tools`, `transfer_targets`, `fallback` and `limits` say what it may do on a call. The agent's `signing_secret` is shown on create and on `POST /v3/voice/agents/{id}/rotate-secret` only. Voices and languages for text sessions come from `GET /v3/voice/voices`. A number takes calls to an agent once it is bound to it on `/v3/channels/voice`.
11
13
  */
12
14
  export declare class Tokens extends APIResource {
13
15
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/resources/voice/tokens.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,WAAW,uBAAoB;AAC3C,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;;;;;GAMG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAcjG;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAE3B;;OAEG;IACH,OAAO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ACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -10,6 +10,8 @@ const headers_1 = require("../../internal/headers.js");
10
10
  * `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/voice/tokens` mints a short-lived token that lets a user of your app place and receive calls as that number. When a call arrives or a caller presses a key, a signed question is POSTed to the callback URL and the answer decides the call; `POST /v3/channels/voice/{number}/test` checks the URL answers the way we need before a real call reaches it, and `POST /v3/channels/voice/{number}/rotate-secret` replaces the signing secret. The call events themselves (`call.completed` and the rest) arrive through your webhooks.
11
11
  *
12
12
  * Every call is a record under `/v3/voice/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
13
+ *
14
+ * **Voice agents.** `POST /v3/voice/agents` creates an agent that answers calls through the Sent Voice Gateway: `session_type` says whether Sent carries the call as text (speech recognised and spoken for the agent) or as audio, `websocket_url` is where the gateway dials the agent for each call (leave it out and the agent dials in with your API key), and `tools`, `transfer_targets`, `fallback` and `limits` say what it may do on a call. The agent's `signing_secret` is shown on create and on `POST /v3/voice/agents/{id}/rotate-secret` only. Voices and languages for text sessions come from `GET /v3/voice/voices`. A number takes calls to an agent once it is bound to it on `/v3/channels/voice`.
13
15
  */
14
16
  class Tokens extends resource_1.APIResource {
15
17
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/resources/voice/tokens.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAGtD;;;;;;GAMG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE;YAC3C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACrE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA7BD,wBA6BC"}
1
+ {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/resources/voice/tokens.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAGtD;;;;;;;;GAQG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE;YAC3C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACrE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA7BD,wBA6BC"}
@@ -7,6 +7,8 @@ import { buildHeaders } from "../../internal/headers.mjs";
7
7
  * `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/voice/tokens` mints a short-lived token that lets a user of your app place and receive calls as that number. When a call arrives or a caller presses a key, a signed question is POSTed to the callback URL and the answer decides the call; `POST /v3/channels/voice/{number}/test` checks the URL answers the way we need before a real call reaches it, and `POST /v3/channels/voice/{number}/rotate-secret` replaces the signing secret. The call events themselves (`call.completed` and the rest) arrive through your webhooks.
8
8
  *
9
9
  * Every call is a record under `/v3/voice/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
10
+ *
11
+ * **Voice agents.** `POST /v3/voice/agents` creates an agent that answers calls through the Sent Voice Gateway: `session_type` says whether Sent carries the call as text (speech recognised and spoken for the agent) or as audio, `websocket_url` is where the gateway dials the agent for each call (leave it out and the agent dials in with your API key), and `tools`, `transfer_targets`, `fallback` and `limits` say what it may do on a call. The agent's `signing_secret` is shown on create and on `POST /v3/voice/agents/{id}/rotate-secret` only. Voices and languages for text sessions come from `GET /v3/voice/voices`. A number takes calls to an agent once it is bound to it on `/v3/channels/voice`.
10
12
  */
11
13
  export class Tokens extends APIResource {
12
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.mjs","sourceRoot":"","sources":["../../src/resources/voice/tokens.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAGtD;;;;;;GAMG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE;YAC3C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACrE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"tokens.mjs","sourceRoot":"","sources":["../../src/resources/voice/tokens.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAGtD;;;;;;;;GAQG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE;YAC3C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACrE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,4 +1,8 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
+ import * as AgentsAPI from "./agents.mjs";
3
+ import { APIResponseOfVoiceAgent, APIResponseOfVoiceAgentSecret, APIResponseOfVoiceAgentsList, AgentCreateParams, AgentDeleteParams, AgentListParams, AgentRetrieveParams, AgentRotateSecretParams, AgentUpdateParams, Agents, VoiceAgent, VoiceAgentAudio, VoiceAgentAudioSpec, VoiceAgentLimits, VoiceAgentLimitsSpec, VoiceAgentParty, VoiceAgentPartySpec, VoiceAgentSecret, VoiceAgentSpeech, VoiceAgentSpeechSpec, VoiceAgentTranscripts, VoiceAgentTranscriptsSpec, VoiceAgentsList, VoiceAgentsVoiceAgentsPage } from "./agents.mjs";
4
+ import * as CatalogueAPI from "./catalogue.mjs";
5
+ import { APIResponseOfVoiceCatalogue, Catalogue, CatalogueListParams, VoiceCatalogue, VoiceCatalogueVoice } from "./catalogue.mjs";
2
6
  import * as TokensAPI from "./tokens.mjs";
3
7
  import { APIResponseOfVoiceToken, TokenCreateParams, Tokens, VoiceToken } from "./tokens.mjs";
4
8
  import * as CallsAPI from "./calls/calls.mjs";
@@ -6,9 +10,13 @@ import { APIResponseOfCall, APIResponseOfCallRecordings, APIResponseOfCallsList,
6
10
  export declare class Voice extends APIResource {
7
11
  calls: CallsAPI.Calls;
8
12
  tokens: TokensAPI.Tokens;
13
+ agents: AgentsAPI.Agents;
14
+ catalogue: CatalogueAPI.Catalogue;
9
15
  }
10
16
  export declare namespace Voice {
11
17
  export { Calls as Calls, type APIResponseOfCall as APIResponseOfCall, type APIResponseOfCallRecordings as APIResponseOfCallRecordings, type APIResponseOfCallsList as APIResponseOfCallsList, type Call as Call, type CallParty as CallParty, type CallRecording as CallRecording, type CallRecordings as CallRecordings, type CallTimelineEntry as CallTimelineEntry, type CallsList as CallsList, type CallsCallsPage as CallsCallsPage, type CallRetrieveParams as CallRetrieveParams, type CallListParams as CallListParams, type CallHangupParams as CallHangupParams, type CallListRecordingsParams as CallListRecordingsParams, type CallRecordParams as CallRecordParams, };
12
18
  export { Tokens as Tokens, type APIResponseOfVoiceToken as APIResponseOfVoiceToken, type VoiceToken as VoiceToken, type TokenCreateParams as TokenCreateParams, };
19
+ export { Agents as Agents, type APIResponseOfVoiceAgent as APIResponseOfVoiceAgent, type APIResponseOfVoiceAgentSecret as APIResponseOfVoiceAgentSecret, type APIResponseOfVoiceAgentsList as APIResponseOfVoiceAgentsList, type VoiceAgent as VoiceAgent, type VoiceAgentAudio as VoiceAgentAudio, type VoiceAgentAudioSpec as VoiceAgentAudioSpec, type VoiceAgentLimits as VoiceAgentLimits, type VoiceAgentLimitsSpec as VoiceAgentLimitsSpec, type VoiceAgentParty as VoiceAgentParty, type VoiceAgentPartySpec as VoiceAgentPartySpec, type VoiceAgentSecret as VoiceAgentSecret, type VoiceAgentSpeech as VoiceAgentSpeech, type VoiceAgentSpeechSpec as VoiceAgentSpeechSpec, type VoiceAgentTranscripts as VoiceAgentTranscripts, type VoiceAgentTranscriptsSpec as VoiceAgentTranscriptsSpec, type VoiceAgentsList as VoiceAgentsList, type VoiceAgentsVoiceAgentsPage as VoiceAgentsVoiceAgentsPage, type AgentCreateParams as AgentCreateParams, type AgentRetrieveParams as AgentRetrieveParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, type AgentDeleteParams as AgentDeleteParams, type AgentRotateSecretParams as AgentRotateSecretParams, };
20
+ export { Catalogue as Catalogue, type APIResponseOfVoiceCatalogue as APIResponseOfVoiceCatalogue, type VoiceCatalogue as VoiceCatalogue, type VoiceCatalogueVoice as VoiceCatalogueVoice, type CatalogueListParams as CatalogueListParams, };
13
21
  }
14
22
  //# sourceMappingURL=voice.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"voice.d.mts","sourceRoot":"","sources":["../../src/resources/voice/voice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,EAAE,UAAU,EAAE,qBAAiB;AAC1F,OAAO,KAAK,QAAQ,0BAAsB;AAC1C,OAAO,EACL,iBAAiB,EACjB,2BAA2B,EAC3B,sBAAsB,EACtB,IAAI,EACJ,g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I,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,4 +1,8 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
+ import * as AgentsAPI from "./agents.js";
3
+ import { APIResponseOfVoiceAgent, APIResponseOfVoiceAgentSecret, APIResponseOfVoiceAgentsList, AgentCreateParams, AgentDeleteParams, AgentListParams, AgentRetrieveParams, AgentRotateSecretParams, AgentUpdateParams, Agents, VoiceAgent, VoiceAgentAudio, VoiceAgentAudioSpec, VoiceAgentLimits, VoiceAgentLimitsSpec, VoiceAgentParty, VoiceAgentPartySpec, VoiceAgentSecret, VoiceAgentSpeech, VoiceAgentSpeechSpec, VoiceAgentTranscripts, VoiceAgentTranscriptsSpec, VoiceAgentsList, VoiceAgentsVoiceAgentsPage } from "./agents.js";
4
+ import * as CatalogueAPI from "./catalogue.js";
5
+ import { APIResponseOfVoiceCatalogue, Catalogue, CatalogueListParams, VoiceCatalogue, VoiceCatalogueVoice } from "./catalogue.js";
2
6
  import * as TokensAPI from "./tokens.js";
3
7
  import { APIResponseOfVoiceToken, TokenCreateParams, Tokens, VoiceToken } from "./tokens.js";
4
8
  import * as CallsAPI from "./calls/calls.js";
@@ -6,9 +10,13 @@ import { APIResponseOfCall, APIResponseOfCallRecordings, APIResponseOfCallsList,
6
10
  export declare class Voice extends APIResource {
7
11
  calls: CallsAPI.Calls;
8
12
  tokens: TokensAPI.Tokens;
13
+ agents: AgentsAPI.Agents;
14
+ catalogue: CatalogueAPI.Catalogue;
9
15
  }
10
16
  export declare namespace Voice {
11
17
  export { Calls as Calls, type APIResponseOfCall as APIResponseOfCall, type APIResponseOfCallRecordings as APIResponseOfCallRecordings, type APIResponseOfCallsList as APIResponseOfCallsList, type Call as Call, type CallParty as CallParty, type CallRecording as CallRecording, type CallRecordings as CallRecordings, type CallTimelineEntry as CallTimelineEntry, type CallsList as CallsList, type CallsCallsPage as CallsCallsPage, type CallRetrieveParams as CallRetrieveParams, type CallListParams as CallListParams, type CallHangupParams as CallHangupParams, type CallListRecordingsParams as CallListRecordingsParams, type CallRecordParams as CallRecordParams, };
12
18
  export { Tokens as Tokens, type APIResponseOfVoiceToken as APIResponseOfVoiceToken, type VoiceToken as VoiceToken, type TokenCreateParams as TokenCreateParams, };
19
+ export { Agents as Agents, type APIResponseOfVoiceAgent as APIResponseOfVoiceAgent, type APIResponseOfVoiceAgentSecret as APIResponseOfVoiceAgentSecret, type APIResponseOfVoiceAgentsList as APIResponseOfVoiceAgentsList, type VoiceAgent as VoiceAgent, type VoiceAgentAudio as VoiceAgentAudio, type VoiceAgentAudioSpec as VoiceAgentAudioSpec, type VoiceAgentLimits as VoiceAgentLimits, type VoiceAgentLimitsSpec as VoiceAgentLimitsSpec, type VoiceAgentParty as VoiceAgentParty, type VoiceAgentPartySpec as VoiceAgentPartySpec, type VoiceAgentSecret as VoiceAgentSecret, type VoiceAgentSpeech as VoiceAgentSpeech, type VoiceAgentSpeechSpec as VoiceAgentSpeechSpec, type VoiceAgentTranscripts as VoiceAgentTranscripts, type VoiceAgentTranscriptsSpec as VoiceAgentTranscriptsSpec, type VoiceAgentsList as VoiceAgentsList, type VoiceAgentsVoiceAgentsPage as VoiceAgentsVoiceAgentsPage, type AgentCreateParams as AgentCreateParams, type AgentRetrieveParams as AgentRetrieveParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, type AgentDeleteParams as AgentDeleteParams, type AgentRotateSecretParams as AgentRotateSecretParams, };
20
+ export { Catalogue as Catalogue, type APIResponseOfVoiceCatalogue as APIResponseOfVoiceCatalogue, type VoiceCatalogue as VoiceCatalogue, type VoiceCatalogueVoice as VoiceCatalogueVoice, type CatalogueListParams as CatalogueListParams, };
13
21
  }
14
22
  //# sourceMappingURL=voice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../src/resources/voice/voice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,EAAE,UAAU,EAAE,oBAAiB;AAC1F,OAAO,KAAK,QAAQ,yBAAsB;AAC1C,OAAO,EACL,iBAAiB,EACjB,2BAA2B,EAC3B,sBAAsB,EACtB,IAAI,EACJ,gBAAgB,EAChB,cAAc,EACd,wBAAwB,EACxB,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,EACL,cAAc,EACd,SAAS,EACV,yBAAsB;AAEvB,qBAAa,KAAM,SAAQ,WAAW;IACpC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAKD,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
1
+ {"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../src/resources/voice/voice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,4BAA4B,EAC5B,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,MAAM,EACN,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,eAAe,EACf,0BAA0B,EAC3B,oBAAiB;AAClB,OAAO,KAAK,YAAY,uBAAoB;AAC5C,OAAO,EACL,2BAA2B,EAC3B,SAAS,EACT,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACpB,uBAAoB;AACrB,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,EAAE,UAAU,EAAE,oBAAiB;AAC1F,OAAO,KAAK,QAAQ,yBAAsB;AAC1C,OAAO,EACL,iBAAiB,EACjB,2BAA2B,EAC3B,sBAAsB,EACtB,IAAI,EACJ,gBAAgB,EAChB,cAAc,EACd,wBAAwB,EACxB,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,K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C/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -4,6 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Voice = void 0;
5
5
  const tslib_1 = require("../../internal/tslib.js");
6
6
  const resource_1 = require("../../core/resource.js");
7
+ const AgentsAPI = tslib_1.__importStar(require("./agents.js"));
8
+ const agents_1 = require("./agents.js");
9
+ const CatalogueAPI = tslib_1.__importStar(require("./catalogue.js"));
10
+ const catalogue_1 = require("./catalogue.js");
7
11
  const TokensAPI = tslib_1.__importStar(require("./tokens.js"));
8
12
  const tokens_1 = require("./tokens.js");
9
13
  const CallsAPI = tslib_1.__importStar(require("./calls/calls.js"));
@@ -13,9 +17,13 @@ class Voice extends resource_1.APIResource {
13
17
  super(...arguments);
14
18
  this.calls = new CallsAPI.Calls(this._client);
15
19
  this.tokens = new TokensAPI.Tokens(this._client);
20
+ this.agents = new AgentsAPI.Agents(this._client);
21
+ this.catalogue = new CatalogueAPI.Catalogue(this._client);
16
22
  }
17
23
  }
18
24
  exports.Voice = Voice;
19
25
  Voice.Calls = calls_1.Calls;
20
26
  Voice.Tokens = tokens_1.Tokens;
27
+ Voice.Agents = agents_1.Agents;
28
+ Voice.Catalogue = catalogue_1.Catalogue;
21
29
  //# sourceMappingURL=voice.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/resources/voice/voice.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAA0F;AAC1F,mEAA0C;AAC1C,4CAiBuB;AAEvB,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAHD,sBAGC;AAED,KAAK,CAAC,KAAK,GAAG,aAAK,CAAC;AACpB,KAAK,CAAC,MAAM,GAAG,eAAM,CAAC"}
1
+ {"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/resources/voice/voice.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAyBkB;AAClB,qEAA4C;AAC5C,8CAMqB;AACrB,+DAAsC;AACtC,wCAA0F;AAC1F,mEAA0C;AAC1C,4CAiBuB;AAEvB,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AALD,sBAKC;AAED,KAAK,CAAC,KAAK,GAAG,aAAK,CAAC;AACpB,KAAK,CAAC,MAAM,GAAG,eAAM,CAAC;AACtB,KAAK,CAAC,MAAM,GAAG,eAAM,CAAC;AACtB,KAAK,CAAC,SAAS,GAAG,qBAAS,CAAC"}
@@ -1,5 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
+ import * as AgentsAPI from "./agents.mjs";
4
+ import { Agents, } from "./agents.mjs";
5
+ import * as CatalogueAPI from "./catalogue.mjs";
6
+ import { Catalogue, } from "./catalogue.mjs";
3
7
  import * as TokensAPI from "./tokens.mjs";
4
8
  import { Tokens } from "./tokens.mjs";
5
9
  import * as CallsAPI from "./calls/calls.mjs";
@@ -9,8 +13,12 @@ export class Voice extends APIResource {
9
13
  super(...arguments);
10
14
  this.calls = new CallsAPI.Calls(this._client);
11
15
  this.tokens = new TokensAPI.Tokens(this._client);
16
+ this.agents = new AgentsAPI.Agents(this._client);
17
+ this.catalogue = new CatalogueAPI.Catalogue(this._client);
12
18
  }
13
19
  }
14
20
  Voice.Calls = Calls;
15
21
  Voice.Tokens = Tokens;
22
+ Voice.Agents = Agents;
23
+ Voice.Catalogue = Catalogue;
16
24
  //# sourceMappingURL=voice.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"voice.mjs","sourceRoot":"","sources":["../../src/resources/voice/voice.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAA8C,MAAM,EAAc,qBAAiB;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