telnyx 7.14.0 → 7.16.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 (229) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/client.d.mts +8 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/calls/actions.d.mts +10 -8
  12. package/resources/calls/actions.d.mts.map +1 -1
  13. package/resources/calls/actions.d.ts +10 -8
  14. package/resources/calls/actions.d.ts.map +1 -1
  15. package/resources/calls/calls.d.mts +5 -5
  16. package/resources/calls/calls.d.mts.map +1 -1
  17. package/resources/calls/calls.d.ts +5 -5
  18. package/resources/calls/calls.d.ts.map +1 -1
  19. package/resources/index.d.mts +3 -1
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +3 -1
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +7 -3
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +2 -0
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/meeting-sessions/actions.d.mts +82 -0
  28. package/resources/meeting-sessions/actions.d.mts.map +1 -0
  29. package/resources/meeting-sessions/actions.d.ts +82 -0
  30. package/resources/meeting-sessions/actions.d.ts.map +1 -0
  31. package/resources/meeting-sessions/actions.js +59 -0
  32. package/resources/meeting-sessions/actions.js.map +1 -0
  33. package/resources/meeting-sessions/actions.mjs +55 -0
  34. package/resources/meeting-sessions/actions.mjs.map +1 -0
  35. package/resources/meeting-sessions/artifacts.d.mts +92 -0
  36. package/resources/meeting-sessions/artifacts.d.mts.map +1 -0
  37. package/resources/meeting-sessions/artifacts.d.ts +92 -0
  38. package/resources/meeting-sessions/artifacts.d.ts.map +1 -0
  39. package/resources/meeting-sessions/artifacts.js +62 -0
  40. package/resources/meeting-sessions/artifacts.js.map +1 -0
  41. package/resources/meeting-sessions/artifacts.mjs +58 -0
  42. package/resources/meeting-sessions/artifacts.mjs.map +1 -0
  43. package/resources/meeting-sessions/index.d.mts +4 -0
  44. package/resources/meeting-sessions/index.d.mts.map +1 -0
  45. package/resources/meeting-sessions/index.d.ts +4 -0
  46. package/resources/meeting-sessions/index.d.ts.map +1 -0
  47. package/resources/meeting-sessions/index.js +11 -0
  48. package/resources/meeting-sessions/index.js.map +1 -0
  49. package/resources/meeting-sessions/index.mjs +5 -0
  50. package/resources/meeting-sessions/index.mjs.map +1 -0
  51. package/resources/meeting-sessions/meeting-sessions.d.mts +580 -0
  52. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -0
  53. package/resources/meeting-sessions/meeting-sessions.d.ts +580 -0
  54. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -0
  55. package/resources/meeting-sessions/meeting-sessions.js +175 -0
  56. package/resources/meeting-sessions/meeting-sessions.js.map +1 -0
  57. package/resources/meeting-sessions/meeting-sessions.mjs +170 -0
  58. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -0
  59. package/resources/meeting-sessions.d.mts +2 -0
  60. package/resources/meeting-sessions.d.mts.map +1 -0
  61. package/resources/meeting-sessions.d.ts +2 -0
  62. package/resources/meeting-sessions.d.ts.map +1 -0
  63. package/resources/meeting-sessions.js +6 -0
  64. package/resources/meeting-sessions.js.map +1 -0
  65. package/resources/meeting-sessions.mjs +3 -0
  66. package/resources/meeting-sessions.mjs.map +1 -0
  67. package/resources/messaging-profiles/messaging-profiles.d.mts +1 -1
  68. package/resources/messaging-profiles/messaging-profiles.d.ts +1 -1
  69. package/resources/messaging-profiles/messaging-profiles.js +1 -1
  70. package/resources/messaging-profiles/messaging-profiles.mjs +1 -1
  71. package/resources/phone-numbers/voicemail.d.mts +132 -2
  72. package/resources/phone-numbers/voicemail.d.mts.map +1 -1
  73. package/resources/phone-numbers/voicemail.d.ts +132 -2
  74. package/resources/phone-numbers/voicemail.d.ts.map +1 -1
  75. package/resources/phone-numbers/voicemail.js +8 -2
  76. package/resources/phone-numbers/voicemail.js.map +1 -1
  77. package/resources/phone-numbers/voicemail.mjs +8 -2
  78. package/resources/phone-numbers/voicemail.mjs.map +1 -1
  79. package/resources/private-wireless-gateways.d.mts +1 -1
  80. package/resources/private-wireless-gateways.d.ts +1 -1
  81. package/resources/sim-cards/actions.d.mts +69 -3
  82. package/resources/sim-cards/actions.d.mts.map +1 -1
  83. package/resources/sim-cards/actions.d.ts +69 -3
  84. package/resources/sim-cards/actions.d.ts.map +1 -1
  85. package/resources/sim-cards/actions.js +38 -0
  86. package/resources/sim-cards/actions.js.map +1 -1
  87. package/resources/sim-cards/actions.mjs +38 -0
  88. package/resources/sim-cards/actions.mjs.map +1 -1
  89. package/resources/sim-cards/index.d.mts +1 -1
  90. package/resources/sim-cards/index.d.mts.map +1 -1
  91. package/resources/sim-cards/index.d.ts +1 -1
  92. package/resources/sim-cards/index.d.ts.map +1 -1
  93. package/resources/sim-cards/index.js.map +1 -1
  94. package/resources/sim-cards/index.mjs.map +1 -1
  95. package/resources/sim-cards/sim-cards.d.mts +2 -2
  96. package/resources/sim-cards/sim-cards.d.mts.map +1 -1
  97. package/resources/sim-cards/sim-cards.d.ts +2 -2
  98. package/resources/sim-cards/sim-cards.d.ts.map +1 -1
  99. package/resources/sim-cards/sim-cards.js.map +1 -1
  100. package/resources/sim-cards/sim-cards.mjs.map +1 -1
  101. package/resources/storage/index.d.mts +2 -1
  102. package/resources/storage/index.d.mts.map +1 -1
  103. package/resources/storage/index.d.ts +2 -1
  104. package/resources/storage/index.d.ts.map +1 -1
  105. package/resources/storage/index.js +3 -1
  106. package/resources/storage/index.js.map +1 -1
  107. package/resources/storage/index.mjs +1 -0
  108. package/resources/storage/index.mjs.map +1 -1
  109. package/resources/storage/kvs/index.d.mts +1 -1
  110. package/resources/storage/kvs/index.d.mts.map +1 -1
  111. package/resources/storage/kvs/index.d.ts +1 -1
  112. package/resources/storage/kvs/index.d.ts.map +1 -1
  113. package/resources/storage/kvs/index.js.map +1 -1
  114. package/resources/storage/kvs/index.mjs.map +1 -1
  115. package/resources/storage/kvs/kvs.d.mts +7 -1
  116. package/resources/storage/kvs/kvs.d.mts.map +1 -1
  117. package/resources/storage/kvs/kvs.d.ts +7 -1
  118. package/resources/storage/kvs/kvs.d.ts.map +1 -1
  119. package/resources/storage/kvs/kvs.js.map +1 -1
  120. package/resources/storage/kvs/kvs.mjs.map +1 -1
  121. package/resources/storage/sqldbs/actions.d.mts +84 -0
  122. package/resources/storage/sqldbs/actions.d.mts.map +1 -0
  123. package/resources/storage/sqldbs/actions.d.ts +84 -0
  124. package/resources/storage/sqldbs/actions.d.ts.map +1 -0
  125. package/resources/storage/sqldbs/actions.js +29 -0
  126. package/resources/storage/sqldbs/actions.js.map +1 -0
  127. package/resources/storage/sqldbs/actions.mjs +25 -0
  128. package/resources/storage/sqldbs/actions.mjs.map +1 -0
  129. package/resources/storage/sqldbs/index.d.mts +3 -0
  130. package/resources/storage/sqldbs/index.d.mts.map +1 -0
  131. package/resources/storage/sqldbs/index.d.ts +3 -0
  132. package/resources/storage/sqldbs/index.d.ts.map +1 -0
  133. package/resources/storage/sqldbs/index.js +9 -0
  134. package/resources/storage/sqldbs/index.js.map +1 -0
  135. package/resources/storage/sqldbs/index.mjs +4 -0
  136. package/resources/storage/sqldbs/index.mjs.map +1 -0
  137. package/resources/storage/sqldbs/sqldbs.d.mts +116 -0
  138. package/resources/storage/sqldbs/sqldbs.d.mts.map +1 -0
  139. package/resources/storage/sqldbs/sqldbs.d.ts +116 -0
  140. package/resources/storage/sqldbs/sqldbs.d.ts.map +1 -0
  141. package/resources/storage/sqldbs/sqldbs.js +94 -0
  142. package/resources/storage/sqldbs/sqldbs.js.map +1 -0
  143. package/resources/storage/sqldbs/sqldbs.mjs +89 -0
  144. package/resources/storage/sqldbs/sqldbs.mjs.map +1 -0
  145. package/resources/storage/sqldbs.d.mts +2 -0
  146. package/resources/storage/sqldbs.d.mts.map +1 -0
  147. package/resources/storage/sqldbs.d.ts +2 -0
  148. package/resources/storage/sqldbs.d.ts.map +1 -0
  149. package/resources/storage/sqldbs.js +6 -0
  150. package/resources/storage/sqldbs.js.map +1 -0
  151. package/resources/storage/sqldbs.mjs +3 -0
  152. package/resources/storage/sqldbs.mjs.map +1 -0
  153. package/resources/storage/storage.d.mts +6 -2
  154. package/resources/storage/storage.d.mts.map +1 -1
  155. package/resources/storage/storage.d.ts +6 -2
  156. package/resources/storage/storage.d.ts.map +1 -1
  157. package/resources/storage/storage.js +4 -0
  158. package/resources/storage/storage.js.map +1 -1
  159. package/resources/storage/storage.mjs +4 -0
  160. package/resources/storage/storage.mjs.map +1 -1
  161. package/resources/web-search/index.d.mts +3 -0
  162. package/resources/web-search/index.d.mts.map +1 -0
  163. package/resources/web-search/index.d.ts +3 -0
  164. package/resources/web-search/index.d.ts.map +1 -0
  165. package/resources/web-search/index.js +9 -0
  166. package/resources/web-search/index.js.map +1 -0
  167. package/resources/web-search/index.mjs +4 -0
  168. package/resources/web-search/index.mjs.map +1 -0
  169. package/resources/web-search/research.d.mts +148 -0
  170. package/resources/web-search/research.d.mts.map +1 -0
  171. package/resources/web-search/research.d.ts +148 -0
  172. package/resources/web-search/research.d.ts.map +1 -0
  173. package/resources/web-search/research.js +57 -0
  174. package/resources/web-search/research.js.map +1 -0
  175. package/resources/web-search/research.mjs +53 -0
  176. package/resources/web-search/research.mjs.map +1 -0
  177. package/resources/web-search/web-search.d.mts +204 -0
  178. package/resources/web-search/web-search.d.mts.map +1 -0
  179. package/resources/web-search/web-search.d.ts +204 -0
  180. package/resources/web-search/web-search.d.ts.map +1 -0
  181. package/resources/web-search/web-search.js +59 -0
  182. package/resources/web-search/web-search.js.map +1 -0
  183. package/resources/web-search/web-search.mjs +54 -0
  184. package/resources/web-search/web-search.mjs.map +1 -0
  185. package/resources/web-search.d.mts +2 -0
  186. package/resources/web-search.d.mts.map +1 -0
  187. package/resources/web-search.d.ts +2 -0
  188. package/resources/web-search.d.ts.map +1 -0
  189. package/resources/web-search.js +6 -0
  190. package/resources/web-search.js.map +1 -0
  191. package/resources/web-search.mjs +3 -0
  192. package/resources/web-search.mjs.map +1 -0
  193. package/resources/webhooks.d.mts +475 -3
  194. package/resources/webhooks.d.mts.map +1 -1
  195. package/resources/webhooks.d.ts +475 -3
  196. package/resources/webhooks.d.ts.map +1 -1
  197. package/src/client.ts +62 -0
  198. package/src/resources/calls/actions.ts +10 -8
  199. package/src/resources/calls/calls.ts +5 -5
  200. package/src/resources/index.ts +28 -0
  201. package/src/resources/meeting-sessions/actions.ts +108 -0
  202. package/src/resources/meeting-sessions/artifacts.ts +135 -0
  203. package/src/resources/meeting-sessions/index.ts +31 -0
  204. package/src/resources/meeting-sessions/meeting-sessions.ts +771 -0
  205. package/src/resources/meeting-sessions.ts +3 -0
  206. package/src/resources/messaging-profiles/messaging-profiles.ts +1 -1
  207. package/src/resources/phone-numbers/voicemail.ts +144 -2
  208. package/src/resources/private-wireless-gateways.ts +1 -1
  209. package/src/resources/sim-cards/actions.ts +93 -2
  210. package/src/resources/sim-cards/index.ts +3 -0
  211. package/src/resources/sim-cards/sim-cards.ts +6 -0
  212. package/src/resources/storage/index.ts +10 -0
  213. package/src/resources/storage/kvs/index.ts +1 -0
  214. package/src/resources/storage/kvs/kvs.ts +11 -0
  215. package/src/resources/storage/sqldbs/actions.ts +101 -0
  216. package/src/resources/storage/sqldbs/index.ts +12 -0
  217. package/src/resources/storage/sqldbs/sqldbs.ts +179 -0
  218. package/src/resources/storage/sqldbs.ts +3 -0
  219. package/src/resources/storage/storage.ts +24 -0
  220. package/src/resources/web-search/index.ts +17 -0
  221. package/src/resources/web-search/research.ts +180 -0
  222. package/src/resources/web-search/web-search.ts +266 -0
  223. package/src/resources/web-search.ts +3 -0
  224. package/src/resources/webhooks.ts +579 -0
  225. package/src/version.ts +1 -1
  226. package/version.d.mts +1 -1
  227. package/version.d.ts +1 -1
  228. package/version.js +1 -1
  229. package/version.mjs +1 -1
@@ -0,0 +1,175 @@
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.MeetingSessions = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const ActionsAPI = tslib_1.__importStar(require("./actions.js"));
8
+ const actions_1 = require("./actions.js");
9
+ const ArtifactsAPI = tslib_1.__importStar(require("./artifacts.js"));
10
+ const artifacts_1 = require("./artifacts.js");
11
+ const path_1 = require("../../internal/utils/path.js");
12
+ class MeetingSessions extends resource_1.APIResource {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.actions = new ActionsAPI.Actions(this._client);
16
+ this.artifacts = new ArtifactsAPI.Artifacts(this._client);
17
+ }
18
+ /**
19
+ * Returns a list of meeting sessions, optionally filtered by status.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const meetingSessions = await client.meetingSessions.list();
24
+ * ```
25
+ */
26
+ list(query = {}, options) {
27
+ return this._client.get('/meeting_sessions', { query, ...options });
28
+ }
29
+ /**
30
+ * Creates a new meeting session. When an idempotency_key is supplied in the
31
+ * request body, replay lookup is scoped to the authenticated account and compares
32
+ * only the key; the request payload is not fingerprinted or compared. If a session
33
+ * with that key already exists for the account, the existing session is replayed
34
+ * (200); otherwise a new session is created (201). Supports bring-your-own-key
35
+ * (BYOK) configuration. The session may enter asynchronous states (e.g. joining,
36
+ * waiting_for_admission) before becoming active. Optional `camera_image` input is
37
+ * write-only and applies only when no Avatar or Assistant webpage output takes
38
+ * precedence. An ignored URL is not fetched. An effective URL source is resolved
39
+ * before bot creation; neither the source URL nor image bytes are persisted,
40
+ * returned, or logged. Treat signed URLs as credentials.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const meetingSessionResponse =
45
+ * await client.meetingSessions.create({
46
+ * meeting_url: 'https://zoom.us/j/1234567890',
47
+ * });
48
+ * ```
49
+ */
50
+ create(body, options) {
51
+ return this._client.post('/meeting_sessions', { body, ...options });
52
+ }
53
+ /**
54
+ * Stops a meeting session without deleting its persisted record. Scheduled bots
55
+ * are cancelled, while bots that are joining or active are asked to leave. The
56
+ * persisted meeting session record remains available.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const meetingSessionResponse =
61
+ * await client.meetingSessions.delete(
62
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
63
+ * );
64
+ * ```
65
+ */
66
+ delete(id, options) {
67
+ return this._client.delete((0, path_1.path) `/meeting_sessions/${id}`, options);
68
+ }
69
+ /**
70
+ * Retrieves a single meeting session by ID. A session that does not exist or that
71
+ * belongs to a different account both return 404.
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * const meetingSessionResponse =
76
+ * await client.meetingSessions.retrieve(
77
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
78
+ * );
79
+ * ```
80
+ */
81
+ retrieve(id, options) {
82
+ return this._client.get((0, path_1.path) `/meeting_sessions/${id}`, options);
83
+ }
84
+ /**
85
+ * Updates mutable properties of a meeting session. Only sessions in the scheduled
86
+ * state can be updated; any other state returns 409 with the invalid_state error
87
+ * code. All request fields are optional, and an empty object is a valid no-op
88
+ * update.
89
+ *
90
+ * @example
91
+ * ```ts
92
+ * const meetingSessionResponse =
93
+ * await client.meetingSessions.update(
94
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
95
+ * { join_at: '2026-08-05T17:00:00Z' },
96
+ * );
97
+ * ```
98
+ */
99
+ update(id, body, options) {
100
+ return this._client.patch((0, path_1.path) `/meeting_sessions/${id}`, { body, ...options });
101
+ }
102
+ /**
103
+ * Returns stored events ordered by ascending `seq`. To continue, pass the last
104
+ * returned item's `seq` as `after`. An empty page means no later stored events
105
+ * existed at read time; this operation returns no separate next-page cursor.
106
+ * Default `limit` is 100 and maximum is 1,000.
107
+ *
108
+ * @example
109
+ * ```ts
110
+ * const response =
111
+ * await client.meetingSessions.retrieveEvents(
112
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
113
+ * );
114
+ * ```
115
+ */
116
+ retrieveEvents(id, query = {}, options) {
117
+ return this._client.get((0, path_1.path) `/meeting_sessions/${id}/events`, { query, ...options });
118
+ }
119
+ /**
120
+ * **Not yet available in production** — this route is not currently routed on
121
+ * api.telnyx.com and returns a generic 404; it is documented ahead of rollout.
122
+ * Irreversibly requests deletion of provider-hosted aggregate recording media
123
+ * under the provider contract. The operation retains the Telnyx-local Meeting
124
+ * session, transcript segments, events, artifacts, and usage records. It is
125
+ * separate from `DELETE /meeting_sessions/{id}`, which stops or cancels
126
+ * participation without deleting the persisted session. A missing/foreign session
127
+ * returns 404; provider deletion failures return 502.
128
+ *
129
+ * @example
130
+ * ```ts
131
+ * const response =
132
+ * await client.meetingSessions.deleteRecordingMedia(
133
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
134
+ * );
135
+ * ```
136
+ */
137
+ deleteRecordingMedia(id, options) {
138
+ return this._client.delete((0, path_1.path) `/meeting_sessions/${id}/recording_media`, options);
139
+ }
140
+ /**
141
+ * Returns recordings for a meeting session.
142
+ *
143
+ * @example
144
+ * ```ts
145
+ * const response =
146
+ * await client.meetingSessions.retrieveRecordings(
147
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
148
+ * );
149
+ * ```
150
+ */
151
+ retrieveRecordings(id, options) {
152
+ return this._client.get((0, path_1.path) `/meeting_sessions/${id}/recordings`, options);
153
+ }
154
+ /**
155
+ * Returns transcript segments ordered by ascending `seq`. Default `limit` is 100
156
+ * and maximum is 1,000. Continue with `after=meta.next_after`. A long-poll timeout
157
+ * returns 200 with empty `data` and `meta.next_after: null`; retain the cursor
158
+ * supplied to that request because null is not a replacement cursor.
159
+ *
160
+ * @example
161
+ * ```ts
162
+ * const response =
163
+ * await client.meetingSessions.retrieveTranscript(
164
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
165
+ * );
166
+ * ```
167
+ */
168
+ retrieveTranscript(id, query = {}, options) {
169
+ return this._client.get((0, path_1.path) `/meeting_sessions/${id}/transcript`, { query, ...options });
170
+ }
171
+ }
172
+ exports.MeetingSessions = MeetingSessions;
173
+ MeetingSessions.Actions = actions_1.Actions;
174
+ MeetingSessions.Artifacts = artifacts_1.Artifacts;
175
+ //# sourceMappingURL=meeting-sessions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-sessions.js","sourceRoot":"","sources":["../../src/resources/meeting-sessions/meeting-sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,iEAAwC;AACxC,0CAAqG;AACrG,qEAA4C;AAC5C,8CAOqB;AAGrB,uDAAiD;AAEjD,MAAa,eAAgB,SAAQ,sBAAW;IAAhD;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwL/E,CAAC;IAtLC;;;;;;;OAOG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qBAAqB,EA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a,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AA1LD,0CA0LC;AAohBD,eAAe,CAAC,OAAO,GAAG,iBAAO,CAAC;AAClC,eAAe,CAAC,SAAS,GAAG,qBAAS,CAAC"}
@@ -0,0 +1,170 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as ActionsAPI from "./actions.mjs";
4
+ import { Actions } from "./actions.mjs";
5
+ import * as ArtifactsAPI from "./artifacts.mjs";
6
+ import { Artifacts, } from "./artifacts.mjs";
7
+ import { path } from "../../internal/utils/path.mjs";
8
+ export class MeetingSessions extends APIResource {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.actions = new ActionsAPI.Actions(this._client);
12
+ this.artifacts = new ArtifactsAPI.Artifacts(this._client);
13
+ }
14
+ /**
15
+ * Returns a list of meeting sessions, optionally filtered by status.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const meetingSessions = await client.meetingSessions.list();
20
+ * ```
21
+ */
22
+ list(query = {}, options) {
23
+ return this._client.get('/meeting_sessions', { query, ...options });
24
+ }
25
+ /**
26
+ * Creates a new meeting session. When an idempotency_key is supplied in the
27
+ * request body, replay lookup is scoped to the authenticated account and compares
28
+ * only the key; the request payload is not fingerprinted or compared. If a session
29
+ * with that key already exists for the account, the existing session is replayed
30
+ * (200); otherwise a new session is created (201). Supports bring-your-own-key
31
+ * (BYOK) configuration. The session may enter asynchronous states (e.g. joining,
32
+ * waiting_for_admission) before becoming active. Optional `camera_image` input is
33
+ * write-only and applies only when no Avatar or Assistant webpage output takes
34
+ * precedence. An ignored URL is not fetched. An effective URL source is resolved
35
+ * before bot creation; neither the source URL nor image bytes are persisted,
36
+ * returned, or logged. Treat signed URLs as credentials.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const meetingSessionResponse =
41
+ * await client.meetingSessions.create({
42
+ * meeting_url: 'https://zoom.us/j/1234567890',
43
+ * });
44
+ * ```
45
+ */
46
+ create(body, options) {
47
+ return this._client.post('/meeting_sessions', { body, ...options });
48
+ }
49
+ /**
50
+ * Stops a meeting session without deleting its persisted record. Scheduled bots
51
+ * are cancelled, while bots that are joining or active are asked to leave. The
52
+ * persisted meeting session record remains available.
53
+ *
54
+ * @example
55
+ * ```ts
56
+ * const meetingSessionResponse =
57
+ * await client.meetingSessions.delete(
58
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
59
+ * );
60
+ * ```
61
+ */
62
+ delete(id, options) {
63
+ return this._client.delete(path `/meeting_sessions/${id}`, options);
64
+ }
65
+ /**
66
+ * Retrieves a single meeting session by ID. A session that does not exist or that
67
+ * belongs to a different account both return 404.
68
+ *
69
+ * @example
70
+ * ```ts
71
+ * const meetingSessionResponse =
72
+ * await client.meetingSessions.retrieve(
73
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
74
+ * );
75
+ * ```
76
+ */
77
+ retrieve(id, options) {
78
+ return this._client.get(path `/meeting_sessions/${id}`, options);
79
+ }
80
+ /**
81
+ * Updates mutable properties of a meeting session. Only sessions in the scheduled
82
+ * state can be updated; any other state returns 409 with the invalid_state error
83
+ * code. All request fields are optional, and an empty object is a valid no-op
84
+ * update.
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * const meetingSessionResponse =
89
+ * await client.meetingSessions.update(
90
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
91
+ * { join_at: '2026-08-05T17:00:00Z' },
92
+ * );
93
+ * ```
94
+ */
95
+ update(id, body, options) {
96
+ return this._client.patch(path `/meeting_sessions/${id}`, { body, ...options });
97
+ }
98
+ /**
99
+ * Returns stored events ordered by ascending `seq`. To continue, pass the last
100
+ * returned item's `seq` as `after`. An empty page means no later stored events
101
+ * existed at read time; this operation returns no separate next-page cursor.
102
+ * Default `limit` is 100 and maximum is 1,000.
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * const response =
107
+ * await client.meetingSessions.retrieveEvents(
108
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
109
+ * );
110
+ * ```
111
+ */
112
+ retrieveEvents(id, query = {}, options) {
113
+ return this._client.get(path `/meeting_sessions/${id}/events`, { query, ...options });
114
+ }
115
+ /**
116
+ * **Not yet available in production** — this route is not currently routed on
117
+ * api.telnyx.com and returns a generic 404; it is documented ahead of rollout.
118
+ * Irreversibly requests deletion of provider-hosted aggregate recording media
119
+ * under the provider contract. The operation retains the Telnyx-local Meeting
120
+ * session, transcript segments, events, artifacts, and usage records. It is
121
+ * separate from `DELETE /meeting_sessions/{id}`, which stops or cancels
122
+ * participation without deleting the persisted session. A missing/foreign session
123
+ * returns 404; provider deletion failures return 502.
124
+ *
125
+ * @example
126
+ * ```ts
127
+ * const response =
128
+ * await client.meetingSessions.deleteRecordingMedia(
129
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
130
+ * );
131
+ * ```
132
+ */
133
+ deleteRecordingMedia(id, options) {
134
+ return this._client.delete(path `/meeting_sessions/${id}/recording_media`, options);
135
+ }
136
+ /**
137
+ * Returns recordings for a meeting session.
138
+ *
139
+ * @example
140
+ * ```ts
141
+ * const response =
142
+ * await client.meetingSessions.retrieveRecordings(
143
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
144
+ * );
145
+ * ```
146
+ */
147
+ retrieveRecordings(id, options) {
148
+ return this._client.get(path `/meeting_sessions/${id}/recordings`, options);
149
+ }
150
+ /**
151
+ * Returns transcript segments ordered by ascending `seq`. Default `limit` is 100
152
+ * and maximum is 1,000. Continue with `after=meta.next_after`. A long-poll timeout
153
+ * returns 200 with empty `data` and `meta.next_after: null`; retain the cursor
154
+ * supplied to that request because null is not a replacement cursor.
155
+ *
156
+ * @example
157
+ * ```ts
158
+ * const response =
159
+ * await client.meetingSessions.retrieveTranscript(
160
+ * 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
161
+ * );
162
+ * ```
163
+ */
164
+ retrieveTranscript(id, query = {}, options) {
165
+ return this._client.get(path `/meeting_sessions/${id}/transcript`, { query, ...options });
166
+ }
167
+ }
168
+ MeetingSessions.Actions = Actions;
169
+ MeetingSessions.Artifacts = Artifacts;
170
+ //# sourceMappingURL=meeting-sessions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-sessions.mjs","sourceRoot":"","sources":["../../src/resources/meeting-sessions/meeting-sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAmE,OAAO,EAAE,sBAAkB;AACrG,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAIL,SAAS,GAGV,wBAAoB;AAGrB,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAAhD;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwL/E,CAAC;IAtLC;;;;;;;OAOG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OA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I,CAAA,qBAAqB,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAohBD,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC;AAClC,eAAe,CAAC,SAAS,GAAG,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./meeting-sessions/index.mjs";
2
+ //# sourceMappingURL=meeting-sessions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-sessions.d.mts","sourceRoot":"","sources":["../src/resources/meeting-sessions.ts"],"names":[],"mappings":"AAEA,6CAAyC"}
@@ -0,0 +1,2 @@
1
+ export * from "./meeting-sessions/index.js";
2
+ //# sourceMappingURL=meeting-sessions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-sessions.d.ts","sourceRoot":"","sources":["../src/resources/meeting-sessions.ts"],"names":[],"mappings":"AAEA,4CAAyC"}
@@ -0,0 +1,6 @@
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
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./meeting-sessions/index.js"), exports);
6
+ //# sourceMappingURL=meeting-sessions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-sessions.js","sourceRoot":"","sources":["../src/resources/meeting-sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sEAAyC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./meeting-sessions/index.mjs";
3
+ //# sourceMappingURL=meeting-sessions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-sessions.mjs","sourceRoot":"","sources":["../src/resources/meeting-sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6CAAyC"}
@@ -15,7 +15,7 @@ export declare class MessagingProfiles extends APIResource {
15
15
  autorespConfigs: AutorespConfigsAPI.AutorespConfigs;
16
16
  actions: ActionsAPI.Actions;
17
17
  /**
18
- * Returns messaging profiles owned by the authenticated account. Apply the
18
+ * Lists messaging profiles owned by the authenticated account. Apply the
19
19
  * documented filters and pagination parameters to narrow the result set.
20
20
  *
21
21
  * @example
@@ -15,7 +15,7 @@ export declare class MessagingProfiles extends APIResource {
15
15
  autorespConfigs: AutorespConfigsAPI.AutorespConfigs;
16
16
  actions: ActionsAPI.Actions;
17
17
  /**
18
- * Returns messaging profiles owned by the authenticated account. Apply the
18
+ * Lists messaging profiles owned by the authenticated account. Apply the
19
19
  * documented filters and pagination parameters to narrow the result set.
20
20
  *
21
21
  * @example
@@ -17,7 +17,7 @@ class MessagingProfiles extends resource_1.APIResource {
17
17
  this.actions = new ActionsAPI.Actions(this._client);
18
18
  }
19
19
  /**
20
- * Returns messaging profiles owned by the authenticated account. Apply the
20
+ * Lists messaging profiles owned by the authenticated account. Apply the
21
21
  * documented filters and pagination parameters to narrow the result set.
22
22
  *
23
23
  * @example
@@ -13,7 +13,7 @@ export class MessagingProfiles extends APIResource {
13
13
  this.actions = new ActionsAPI.Actions(this._client);
14
14
  }
15
15
  /**
16
- * Returns messaging profiles owned by the authenticated account. Apply the
16
+ * Lists messaging profiles owned by the authenticated account. Apply the
17
17
  * documented filters and pagination parameters to narrow the result set.
18
18
  *
19
19
  * @example
@@ -18,7 +18,10 @@ export declare class Voicemail extends APIResource {
18
18
  */
19
19
  retrieve(phoneNumberID: string, options?: RequestOptions): APIPromise<VoicemailRetrieveResponse>;
20
20
  /**
21
- * Update voicemail settings for a phone number
21
+ * Update voicemail settings for a phone number. You can also configure a custom
22
+ * greeting by setting the `greeting` object: use `mode` `custom_greeting` together
23
+ * with a `media_name` that points to an audio file uploaded through the Media
24
+ * Storage API, or `mode` `default` to use the standard system greeting.
22
25
  *
23
26
  * @example
24
27
  * ```ts
@@ -30,7 +33,10 @@ export declare class Voicemail extends APIResource {
30
33
  */
31
34
  update(phoneNumberID: string, body: VoicemailUpdateParams, options?: RequestOptions): APIPromise<VoicemailUpdateResponse>;
32
35
  /**
33
- * Create voicemail settings for a phone number
36
+ * Create voicemail settings for a phone number. You can also configure a custom
37
+ * greeting by setting the `greeting` object: use `mode` `custom_greeting` together
38
+ * with a `media_name` that points to an audio file uploaded through the Media
39
+ * Storage API, or `mode` `default` to use the standard system greeting.
34
40
  *
35
41
  * @example
36
42
  * ```ts
@@ -47,21 +53,83 @@ export interface VoicemailPrefResponse {
47
53
  * Whether voicemail is enabled.
48
54
  */
49
55
  enabled?: boolean;
56
+ /**
57
+ * Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
58
+ * `default` to play the standard system greeting, or to `custom_greeting` to play
59
+ * your own audio. When `mode` is `custom_greeting`, `media_name` is required and
60
+ * must reference an audio file already uploaded to your account through the Media
61
+ * Storage API.
62
+ */
63
+ greeting?: VoicemailPrefResponse.Greeting;
50
64
  /**
51
65
  * The pin used for the voicemail.
52
66
  */
53
67
  pin?: string;
54
68
  }
69
+ export declare namespace VoicemailPrefResponse {
70
+ /**
71
+ * Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
72
+ * `default` to play the standard system greeting, or to `custom_greeting` to play
73
+ * your own audio. When `mode` is `custom_greeting`, `media_name` is required and
74
+ * must reference an audio file already uploaded to your account through the Media
75
+ * Storage API.
76
+ */
77
+ interface Greeting {
78
+ /**
79
+ * The name of the media file to play as the greeting. Required when `mode` is
80
+ * `custom_greeting`; ignored when `mode` is `default`. The value must match the
81
+ * `media_name` of a file you previously uploaded with the Media Storage API
82
+ * (`POST /v2/media`).
83
+ */
84
+ media_name?: string | null;
85
+ /**
86
+ * The greeting mode. `default` plays the standard system greeting.
87
+ * `custom_greeting` plays the audio referenced by `media_name`.
88
+ */
89
+ mode?: 'default' | 'custom_greeting';
90
+ }
91
+ }
55
92
  export interface VoicemailRequest {
56
93
  /**
57
94
  * Whether voicemail is enabled.
58
95
  */
59
96
  enabled?: boolean;
97
+ /**
98
+ * Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
99
+ * `default` to play the standard system greeting, or to `custom_greeting` to play
100
+ * your own audio. When `mode` is `custom_greeting`, `media_name` is required and
101
+ * must reference an audio file already uploaded to your account through the Media
102
+ * Storage API.
103
+ */
104
+ greeting?: VoicemailRequest.Greeting;
60
105
  /**
61
106
  * The pin used for voicemail
62
107
  */
63
108
  pin?: string;
64
109
  }
110
+ export declare namespace VoicemailRequest {
111
+ /**
112
+ * Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
113
+ * `default` to play the standard system greeting, or to `custom_greeting` to play
114
+ * your own audio. When `mode` is `custom_greeting`, `media_name` is required and
115
+ * must reference an audio file already uploaded to your account through the Media
116
+ * Storage API.
117
+ */
118
+ interface Greeting {
119
+ /**
120
+ * The name of the media file to play as the greeting. Required when `mode` is
121
+ * `custom_greeting`; ignored when `mode` is `default`. The value must match the
122
+ * `media_name` of a file you previously uploaded with the Media Storage API
123
+ * (`POST /v2/media`).
124
+ */
125
+ media_name?: string | null;
126
+ /**
127
+ * The greeting mode. `default` plays the standard system greeting.
128
+ * `custom_greeting` plays the audio referenced by `media_name`.
129
+ */
130
+ mode?: 'default' | 'custom_greeting';
131
+ }
132
+ }
65
133
  export interface VoicemailCreateResponse {
66
134
  data?: VoicemailPrefResponse;
67
135
  }
@@ -76,21 +144,83 @@ export interface VoicemailUpdateParams {
76
144
  * Whether voicemail is enabled.
77
145
  */
78
146
  enabled?: boolean;
147
+ /**
148
+ * Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
149
+ * `default` to play the standard system greeting, or to `custom_greeting` to play
150
+ * your own audio. When `mode` is `custom_greeting`, `media_name` is required and
151
+ * must reference an audio file already uploaded to your account through the Media
152
+ * Storage API.
153
+ */
154
+ greeting?: VoicemailUpdateParams.Greeting;
79
155
  /**
80
156
  * The pin used for voicemail
81
157
  */
82
158
  pin?: string;
83
159
  }
160
+ export declare namespace VoicemailUpdateParams {
161
+ /**
162
+ * Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
163
+ * `default` to play the standard system greeting, or to `custom_greeting` to play
164
+ * your own audio. When `mode` is `custom_greeting`, `media_name` is required and
165
+ * must reference an audio file already uploaded to your account through the Media
166
+ * Storage API.
167
+ */
168
+ interface Greeting {
169
+ /**
170
+ * The name of the media file to play as the greeting. Required when `mode` is
171
+ * `custom_greeting`; ignored when `mode` is `default`. The value must match the
172
+ * `media_name` of a file you previously uploaded with the Media Storage API
173
+ * (`POST /v2/media`).
174
+ */
175
+ media_name?: string | null;
176
+ /**
177
+ * The greeting mode. `default` plays the standard system greeting.
178
+ * `custom_greeting` plays the audio referenced by `media_name`.
179
+ */
180
+ mode?: 'default' | 'custom_greeting';
181
+ }
182
+ }
84
183
  export interface VoicemailCreateParams {
85
184
  /**
86
185
  * Whether voicemail is enabled.
87
186
  */
88
187
  enabled?: boolean;
188
+ /**
189
+ * Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
190
+ * `default` to play the standard system greeting, or to `custom_greeting` to play
191
+ * your own audio. When `mode` is `custom_greeting`, `media_name` is required and
192
+ * must reference an audio file already uploaded to your account through the Media
193
+ * Storage API.
194
+ */
195
+ greeting?: VoicemailCreateParams.Greeting;
89
196
  /**
90
197
  * The pin used for voicemail
91
198
  */
92
199
  pin?: string;
93
200
  }
201
+ export declare namespace VoicemailCreateParams {
202
+ /**
203
+ * Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
204
+ * `default` to play the standard system greeting, or to `custom_greeting` to play
205
+ * your own audio. When `mode` is `custom_greeting`, `media_name` is required and
206
+ * must reference an audio file already uploaded to your account through the Media
207
+ * Storage API.
208
+ */
209
+ interface Greeting {
210
+ /**
211
+ * The name of the media file to play as the greeting. Required when `mode` is
212
+ * `custom_greeting`; ignored when `mode` is `default`. The value must match the
213
+ * `media_name` of a file you previously uploaded with the Media Storage API
214
+ * (`POST /v2/media`).
215
+ */
216
+ media_name?: string | null;
217
+ /**
218
+ * The greeting mode. `default` plays the standard system greeting.
219
+ * `custom_greeting` plays the audio referenced by `media_name`.
220
+ */
221
+ mode?: 'default' | 'custom_greeting';
222
+ }
223
+ }
94
224
  export declare namespace Voicemail {
95
225
  export { type VoicemailPrefResponse as VoicemailPrefResponse, type VoicemailRequest as VoicemailRequest, type VoicemailCreateResponse as VoicemailCreateResponse, type VoicemailRetrieveResponse as VoicemailRetrieveResponse, type VoicemailUpdateResponse as VoicemailUpdateResponse, type VoicemailUpdateParams as VoicemailUpdateParams, type VoicemailCreateParams as VoicemailCreateParams, };
96
226
  }
@@ -1 +1 @@
1
- {"version":3,"file":"voicemail.d.mts","sourceRoot":"","sources":["../../src/resources/phone-numbers/voicemail.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAIhG;;;;;;;;;;OAUG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;CAGvC;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC9B;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC9B;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
1
+ {"version":3,"file":"voicemail.d.mts","sourceRoot":"","sources":["../../src/resources/phone-numbers/voicemail.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAIhG;;;;;;;;;;;;;OAa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