@linqapp/sdk 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/LICENSE +198 -4
- package/README.md +52 -52
- package/client.d.mts +34 -22
- package/client.d.mts.map +1 -1
- package/client.d.ts +34 -22
- package/client.d.ts.map +1 -1
- package/client.js +50 -41
- package/client.js.map +1 -1
- package/client.mjs +49 -40
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -2
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -2
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +2 -2
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +2 -2
- package/core/error.d.ts.map +1 -1
- package/core/error.js +4 -4
- package/core/error.js.map +1 -1
- package/core/error.mjs +2 -2
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +3 -3
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +3 -3
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/index.d.mts +3 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- package/internal/parse.d.mts +2 -2
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -2
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/shims.js +1 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/uploads.d.mts +4 -4
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +4 -4
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.js +2 -2
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +3 -3
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts +3 -3
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -3
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.js +1 -1
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +2 -2
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/values.js +5 -5
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -6
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +4 -4
- package/resources/attachments.d.mts +28 -3
- package/resources/attachments.d.mts.map +1 -1
- package/resources/attachments.d.ts +28 -3
- package/resources/attachments.d.ts.map +1 -1
- package/resources/capability.d.mts +74 -0
- package/resources/capability.d.mts.map +1 -0
- package/resources/capability.d.ts +74 -0
- package/resources/capability.d.ts.map +1 -0
- package/resources/capability.js +36 -0
- package/resources/capability.js.map +1 -0
- package/resources/capability.mjs +32 -0
- package/resources/capability.mjs.map +1 -0
- package/resources/chats/chats.d.mts +133 -663
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +133 -663
- package/resources/chats/chats.d.ts.map +1 -1
- package/resources/chats/chats.js +2 -2
- package/resources/chats/chats.js.map +1 -1
- package/resources/chats/chats.mjs +2 -2
- package/resources/chats/chats.mjs.map +1 -1
- package/resources/chats/index.d.mts +2 -2
- package/resources/chats/index.d.mts.map +1 -1
- package/resources/chats/index.d.ts +2 -2
- package/resources/chats/index.d.ts.map +1 -1
- package/resources/chats/index.js.map +1 -1
- package/resources/chats/index.mjs.map +1 -1
- package/resources/chats/messages.d.mts +55 -716
- package/resources/chats/messages.d.mts.map +1 -1
- package/resources/chats/messages.d.ts +55 -716
- package/resources/chats/messages.d.ts.map +1 -1
- package/resources/chats/messages.js.map +1 -1
- package/resources/chats/messages.mjs.map +1 -1
- package/resources/index.d.mts +8 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -2
- package/resources/index.mjs.map +1 -1
- package/resources/messages.d.mts +129 -553
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +129 -553
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +1 -1
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +1 -1
- package/resources/messages.mjs.map +1 -1
- package/resources/phone-numbers.d.mts +1 -50
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +1 -50
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers.js +0 -8
- package/resources/phone-numbers.js.map +1 -1
- package/resources/phone-numbers.mjs +0 -8
- package/resources/phone-numbers.mjs.map +1 -1
- package/resources/phonenumbers.d.mts +58 -0
- package/resources/phonenumbers.d.mts.map +1 -0
- package/resources/phonenumbers.d.ts +58 -0
- package/resources/phonenumbers.d.ts.map +1 -0
- package/resources/phonenumbers.js +17 -0
- package/resources/phonenumbers.js.map +1 -0
- package/resources/phonenumbers.mjs +13 -0
- package/resources/phonenumbers.mjs.map +1 -0
- package/resources/webhook-events.d.mts +29 -0
- package/resources/webhook-events.d.mts.map +1 -0
- package/resources/webhook-events.d.ts +29 -0
- package/resources/webhook-events.d.ts.map +1 -0
- package/resources/{webhooks/events.js → webhook-events.js} +5 -10
- package/resources/webhook-events.js.map +1 -0
- package/resources/{webhooks/events.mjs → webhook-events.mjs} +3 -8
- package/resources/webhook-events.mjs.map +1 -0
- package/resources/webhook-subscriptions.d.mts +184 -0
- package/resources/webhook-subscriptions.d.mts.map +1 -0
- package/resources/webhook-subscriptions.d.ts +184 -0
- package/resources/webhook-subscriptions.d.ts.map +1 -0
- package/resources/{webhooks/subscriptions.js → webhook-subscriptions.js} +16 -16
- package/resources/webhook-subscriptions.js.map +1 -0
- package/resources/{webhooks/subscriptions.mjs → webhook-subscriptions.mjs} +14 -14
- package/resources/webhook-subscriptions.mjs.map +1 -0
- package/src/client.ts +97 -41
- package/src/core/api-promise.ts +4 -4
- package/src/core/error.ts +2 -2
- package/src/core/resource.ts +3 -3
- package/src/index.ts +3 -3
- package/src/internal/parse.ts +2 -2
- package/src/internal/shims.ts +1 -1
- package/src/internal/uploads.ts +5 -5
- package/src/internal/utils/base64.ts +3 -3
- package/src/internal/utils/log.ts +3 -3
- package/src/internal/utils/path.ts +2 -2
- package/src/internal/utils/values.ts +6 -6
- package/src/resources/attachments.ts +81 -106
- package/src/resources/capability.ts +98 -0
- package/src/resources/chats/chats.ts +135 -770
- package/src/resources/chats/index.ts +4 -2
- package/src/resources/chats/messages.ts +60 -839
- package/src/resources/index.ts +29 -9
- package/src/resources/messages.ts +153 -659
- package/src/resources/phone-numbers.ts +1 -65
- package/src/resources/phonenumbers.ts +72 -0
- package/src/resources/webhook-events.ts +57 -0
- package/src/resources/webhook-subscriptions.ts +238 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/webhooks/events.d.mts +0 -30
- package/resources/webhooks/events.d.mts.map +0 -1
- package/resources/webhooks/events.d.ts +0 -30
- package/resources/webhooks/events.d.ts.map +0 -1
- package/resources/webhooks/events.js.map +0 -1
- package/resources/webhooks/events.mjs.map +0 -1
- package/resources/webhooks/index.d.mts +0 -4
- package/resources/webhooks/index.d.mts.map +0 -1
- package/resources/webhooks/index.d.ts +0 -4
- package/resources/webhooks/index.d.ts.map +0 -1
- package/resources/webhooks/index.js +0 -11
- package/resources/webhooks/index.js.map +0 -1
- package/resources/webhooks/index.mjs +0 -5
- package/resources/webhooks/index.mjs.map +0 -1
- package/resources/webhooks/subscriptions.d.mts +0 -237
- package/resources/webhooks/subscriptions.d.mts.map +0 -1
- package/resources/webhooks/subscriptions.d.ts +0 -237
- package/resources/webhooks/subscriptions.d.ts.map +0 -1
- package/resources/webhooks/subscriptions.js.map +0 -1
- package/resources/webhooks/subscriptions.mjs.map +0 -1
- package/resources/webhooks/webhooks.d.mts +0 -14
- package/resources/webhooks/webhooks.d.mts.map +0 -1
- package/resources/webhooks/webhooks.d.ts +0 -14
- package/resources/webhooks/webhooks.d.ts.map +0 -1
- package/resources/webhooks/webhooks.js +0 -21
- package/resources/webhooks/webhooks.js.map +0 -1
- package/resources/webhooks/webhooks.mjs +0 -16
- package/resources/webhooks/webhooks.mjs.map +0 -1
- package/resources/webhooks.d.mts +0 -2
- package/resources/webhooks.d.mts.map +0 -1
- package/resources/webhooks.d.ts +0 -2
- package/resources/webhooks.d.ts.map +0 -1
- package/resources/webhooks.js +0 -6
- package/resources/webhooks.js.map +0 -1
- package/resources/webhooks.mjs +0 -3
- package/resources/webhooks.mjs.map +0 -1
- package/src/resources/webhooks/events.ts +0 -55
- package/src/resources/webhooks/index.ts +0 -13
- package/src/resources/webhooks/subscriptions.ts +0 -409
- package/src/resources/webhooks/webhooks.ts +0 -37
- package/src/resources/webhooks.ts +0 -3
|
@@ -101,6 +101,84 @@ export class Attachments extends APIResource {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Supported MIME types for file attachments and media URLs.
|
|
106
|
+
*
|
|
107
|
+
* **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
|
|
108
|
+
* image/tiff, image/bmp
|
|
109
|
+
*
|
|
110
|
+
* **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
|
|
111
|
+
*
|
|
112
|
+
* **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
|
|
113
|
+
* audio/aiff, audio/aac, audio/amr
|
|
114
|
+
*
|
|
115
|
+
* **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
|
|
116
|
+
* text/csv, text/html, text/calendar, application/msword,
|
|
117
|
+
* application/vnd.openxmlformats-officedocument.wordprocessingml.document,
|
|
118
|
+
* application/vnd.ms-excel,
|
|
119
|
+
* application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
|
|
120
|
+
* application/vnd.ms-powerpoint,
|
|
121
|
+
* application/vnd.openxmlformats-officedocument.presentationml.presentation,
|
|
122
|
+
* application/vnd.apple.pages, application/vnd.apple.numbers,
|
|
123
|
+
* application/vnd.apple.keynote, application/epub+zip, application/zip
|
|
124
|
+
*
|
|
125
|
+
* **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
|
|
126
|
+
* rejected.
|
|
127
|
+
*/
|
|
128
|
+
export type SupportedContentType =
|
|
129
|
+
| 'image/jpeg'
|
|
130
|
+
| 'image/jpg'
|
|
131
|
+
| 'image/png'
|
|
132
|
+
| 'image/gif'
|
|
133
|
+
| 'image/heic'
|
|
134
|
+
| 'image/heif'
|
|
135
|
+
| 'image/tiff'
|
|
136
|
+
| 'image/bmp'
|
|
137
|
+
| 'image/x-ms-bmp'
|
|
138
|
+
| 'video/mp4'
|
|
139
|
+
| 'video/quicktime'
|
|
140
|
+
| 'video/mpeg'
|
|
141
|
+
| 'video/x-m4v'
|
|
142
|
+
| 'video/3gpp'
|
|
143
|
+
| 'audio/mpeg'
|
|
144
|
+
| 'audio/mp3'
|
|
145
|
+
| 'audio/mp4'
|
|
146
|
+
| 'audio/x-m4a'
|
|
147
|
+
| 'audio/m4a'
|
|
148
|
+
| 'audio/x-caf'
|
|
149
|
+
| 'audio/wav'
|
|
150
|
+
| 'audio/x-wav'
|
|
151
|
+
| 'audio/aiff'
|
|
152
|
+
| 'audio/x-aiff'
|
|
153
|
+
| 'audio/aac'
|
|
154
|
+
| 'audio/x-aac'
|
|
155
|
+
| 'audio/amr'
|
|
156
|
+
| 'application/pdf'
|
|
157
|
+
| 'text/plain'
|
|
158
|
+
| 'text/markdown'
|
|
159
|
+
| 'text/vcard'
|
|
160
|
+
| 'text/x-vcard'
|
|
161
|
+
| 'text/rtf'
|
|
162
|
+
| 'application/rtf'
|
|
163
|
+
| 'text/csv'
|
|
164
|
+
| 'text/html'
|
|
165
|
+
| 'text/calendar'
|
|
166
|
+
| 'application/msword'
|
|
167
|
+
| 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
|
|
168
|
+
| 'application/vnd.ms-excel'
|
|
169
|
+
| 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
170
|
+
| 'application/vnd.ms-powerpoint'
|
|
171
|
+
| 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
|
|
172
|
+
| 'application/vnd.apple.pages'
|
|
173
|
+
| 'application/x-iwork-pages-sffpages'
|
|
174
|
+
| 'application/vnd.apple.numbers'
|
|
175
|
+
| 'application/x-iwork-numbers-sffnumbers'
|
|
176
|
+
| 'application/vnd.apple.keynote'
|
|
177
|
+
| 'application/x-iwork-keynote-sffkey'
|
|
178
|
+
| 'application/epub+zip'
|
|
179
|
+
| 'application/zip'
|
|
180
|
+
| 'application/x-zip-compressed';
|
|
181
|
+
|
|
104
182
|
export interface AttachmentCreateResponse {
|
|
105
183
|
/**
|
|
106
184
|
* Unique identifier for the attachment (for status checks via GET
|
|
@@ -167,59 +245,7 @@ export interface AttachmentRetrieveResponse {
|
|
|
167
245
|
* **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
|
|
168
246
|
* rejected.
|
|
169
247
|
*/
|
|
170
|
-
content_type:
|
|
171
|
-
| 'image/jpeg'
|
|
172
|
-
| 'image/jpg'
|
|
173
|
-
| 'image/png'
|
|
174
|
-
| 'image/gif'
|
|
175
|
-
| 'image/heic'
|
|
176
|
-
| 'image/heif'
|
|
177
|
-
| 'image/tiff'
|
|
178
|
-
| 'image/bmp'
|
|
179
|
-
| 'image/x-ms-bmp'
|
|
180
|
-
| 'video/mp4'
|
|
181
|
-
| 'video/quicktime'
|
|
182
|
-
| 'video/mpeg'
|
|
183
|
-
| 'video/x-m4v'
|
|
184
|
-
| 'video/3gpp'
|
|
185
|
-
| 'audio/mpeg'
|
|
186
|
-
| 'audio/mp3'
|
|
187
|
-
| 'audio/mp4'
|
|
188
|
-
| 'audio/x-m4a'
|
|
189
|
-
| 'audio/m4a'
|
|
190
|
-
| 'audio/x-caf'
|
|
191
|
-
| 'audio/wav'
|
|
192
|
-
| 'audio/x-wav'
|
|
193
|
-
| 'audio/aiff'
|
|
194
|
-
| 'audio/x-aiff'
|
|
195
|
-
| 'audio/aac'
|
|
196
|
-
| 'audio/x-aac'
|
|
197
|
-
| 'audio/amr'
|
|
198
|
-
| 'application/pdf'
|
|
199
|
-
| 'text/plain'
|
|
200
|
-
| 'text/markdown'
|
|
201
|
-
| 'text/vcard'
|
|
202
|
-
| 'text/x-vcard'
|
|
203
|
-
| 'text/rtf'
|
|
204
|
-
| 'application/rtf'
|
|
205
|
-
| 'text/csv'
|
|
206
|
-
| 'text/html'
|
|
207
|
-
| 'text/calendar'
|
|
208
|
-
| 'application/msword'
|
|
209
|
-
| 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
|
|
210
|
-
| 'application/vnd.ms-excel'
|
|
211
|
-
| 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
212
|
-
| 'application/vnd.ms-powerpoint'
|
|
213
|
-
| 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
|
|
214
|
-
| 'application/vnd.apple.pages'
|
|
215
|
-
| 'application/x-iwork-pages-sffpages'
|
|
216
|
-
| 'application/vnd.apple.numbers'
|
|
217
|
-
| 'application/x-iwork-numbers-sffnumbers'
|
|
218
|
-
| 'application/vnd.apple.keynote'
|
|
219
|
-
| 'application/x-iwork-keynote-sffkey'
|
|
220
|
-
| 'application/epub+zip'
|
|
221
|
-
| 'application/zip'
|
|
222
|
-
| 'application/x-zip-compressed';
|
|
248
|
+
content_type: SupportedContentType;
|
|
223
249
|
|
|
224
250
|
/**
|
|
225
251
|
* When the attachment was created
|
|
@@ -272,59 +298,7 @@ export interface AttachmentCreateParams {
|
|
|
272
298
|
* **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
|
|
273
299
|
* rejected.
|
|
274
300
|
*/
|
|
275
|
-
content_type:
|
|
276
|
-
| 'image/jpeg'
|
|
277
|
-
| 'image/jpg'
|
|
278
|
-
| 'image/png'
|
|
279
|
-
| 'image/gif'
|
|
280
|
-
| 'image/heic'
|
|
281
|
-
| 'image/heif'
|
|
282
|
-
| 'image/tiff'
|
|
283
|
-
| 'image/bmp'
|
|
284
|
-
| 'image/x-ms-bmp'
|
|
285
|
-
| 'video/mp4'
|
|
286
|
-
| 'video/quicktime'
|
|
287
|
-
| 'video/mpeg'
|
|
288
|
-
| 'video/x-m4v'
|
|
289
|
-
| 'video/3gpp'
|
|
290
|
-
| 'audio/mpeg'
|
|
291
|
-
| 'audio/mp3'
|
|
292
|
-
| 'audio/mp4'
|
|
293
|
-
| 'audio/x-m4a'
|
|
294
|
-
| 'audio/m4a'
|
|
295
|
-
| 'audio/x-caf'
|
|
296
|
-
| 'audio/wav'
|
|
297
|
-
| 'audio/x-wav'
|
|
298
|
-
| 'audio/aiff'
|
|
299
|
-
| 'audio/x-aiff'
|
|
300
|
-
| 'audio/aac'
|
|
301
|
-
| 'audio/x-aac'
|
|
302
|
-
| 'audio/amr'
|
|
303
|
-
| 'application/pdf'
|
|
304
|
-
| 'text/plain'
|
|
305
|
-
| 'text/markdown'
|
|
306
|
-
| 'text/vcard'
|
|
307
|
-
| 'text/x-vcard'
|
|
308
|
-
| 'text/rtf'
|
|
309
|
-
| 'application/rtf'
|
|
310
|
-
| 'text/csv'
|
|
311
|
-
| 'text/html'
|
|
312
|
-
| 'text/calendar'
|
|
313
|
-
| 'application/msword'
|
|
314
|
-
| 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
|
|
315
|
-
| 'application/vnd.ms-excel'
|
|
316
|
-
| 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
317
|
-
| 'application/vnd.ms-powerpoint'
|
|
318
|
-
| 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
|
|
319
|
-
| 'application/vnd.apple.pages'
|
|
320
|
-
| 'application/x-iwork-pages-sffpages'
|
|
321
|
-
| 'application/vnd.apple.numbers'
|
|
322
|
-
| 'application/x-iwork-numbers-sffnumbers'
|
|
323
|
-
| 'application/vnd.apple.keynote'
|
|
324
|
-
| 'application/x-iwork-keynote-sffkey'
|
|
325
|
-
| 'application/epub+zip'
|
|
326
|
-
| 'application/zip'
|
|
327
|
-
| 'application/x-zip-compressed';
|
|
301
|
+
content_type: SupportedContentType;
|
|
328
302
|
|
|
329
303
|
/**
|
|
330
304
|
* Name of the file to upload
|
|
@@ -339,6 +313,7 @@ export interface AttachmentCreateParams {
|
|
|
339
313
|
|
|
340
314
|
export declare namespace Attachments {
|
|
341
315
|
export {
|
|
316
|
+
type SupportedContentType as SupportedContentType,
|
|
342
317
|
type AttachmentCreateResponse as AttachmentCreateResponse,
|
|
343
318
|
type AttachmentRetrieveResponse as AttachmentRetrieveResponse,
|
|
344
319
|
type AttachmentCreateParams as AttachmentCreateParams,
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Capability extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Check whether a recipient address (phone number or email) is reachable via
|
|
10
|
+
* iMessage.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const response = await client.capability.checkImessage({
|
|
15
|
+
* address: '+15551234567',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
checkImessage(
|
|
20
|
+
body: CapabilityCheckImessageParams,
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): APIPromise<CapabilityCheckImessageResponse> {
|
|
23
|
+
return this._client.post('/v3/capability/check_imessage', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Check whether a recipient address (phone number) supports RCS messaging.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const response = await client.capability.checkRcs({
|
|
32
|
+
* address: '+15551234567',
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
checkRcs(body: CapabilityCheckRcsParams, options?: RequestOptions): APIPromise<CapabilityCheckRcsResponse> {
|
|
37
|
+
return this._client.post('/v3/capability/check_rcs', { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface CapabilityCheckImessageResponse {
|
|
42
|
+
/**
|
|
43
|
+
* The recipient address that was checked
|
|
44
|
+
*/
|
|
45
|
+
address: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Whether the recipient supports the checked messaging service
|
|
49
|
+
*/
|
|
50
|
+
available: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface CapabilityCheckRcsResponse {
|
|
54
|
+
/**
|
|
55
|
+
* The recipient address that was checked
|
|
56
|
+
*/
|
|
57
|
+
address: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Whether the recipient supports the checked messaging service
|
|
61
|
+
*/
|
|
62
|
+
available: boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface CapabilityCheckImessageParams {
|
|
66
|
+
/**
|
|
67
|
+
* The recipient phone number or email address to check
|
|
68
|
+
*/
|
|
69
|
+
address: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Optional sender phone number. If omitted, an available phone from your pool is
|
|
73
|
+
* used automatically.
|
|
74
|
+
*/
|
|
75
|
+
from?: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface CapabilityCheckRcsParams {
|
|
79
|
+
/**
|
|
80
|
+
* The recipient phone number or email address to check
|
|
81
|
+
*/
|
|
82
|
+
address: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Optional sender phone number. If omitted, an available phone from your pool is
|
|
86
|
+
* used automatically.
|
|
87
|
+
*/
|
|
88
|
+
from?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export declare namespace Capability {
|
|
92
|
+
export {
|
|
93
|
+
type CapabilityCheckImessageResponse as CapabilityCheckImessageResponse,
|
|
94
|
+
type CapabilityCheckRcsResponse as CapabilityCheckRcsResponse,
|
|
95
|
+
type CapabilityCheckImessageParams as CapabilityCheckImessageParams,
|
|
96
|
+
type CapabilityCheckRcsParams as CapabilityCheckRcsParams,
|
|
97
|
+
};
|
|
98
|
+
}
|