syllable-sdk 1.0.8-rc.1 → 1.0.8-rc.2

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 (66) hide show
  1. package/bin/mcp-server.js +6 -6
  2. package/bin/mcp-server.js.map +4 -4
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/openapi.json +33 -33
  10. package/package.json +1 -1
  11. package/src/lib/config.ts +3 -3
  12. package/src/mcp-server/mcp-server.ts +1 -1
  13. package/src/mcp-server/server.ts +1 -1
  14. package/.devcontainer/README.md +0 -35
  15. package/api-reference/sdks/agents/README.md +0 -224
  16. package/api-reference/sdks/availabletargets/README.md +0 -49
  17. package/api-reference/sdks/channels/README.md +0 -92
  18. package/api-reference/sdks/chats/README.md +0 -55
  19. package/api-reference/sdks/conversations/README.md +0 -91
  20. package/api-reference/sdks/dashboards/README.md +0 -321
  21. package/api-reference/sdks/events/README.md +0 -50
  22. package/api-reference/sdks/greetings/README.md +0 -223
  23. package/api-reference/sdks/organizations/README.md +0 -48
  24. package/api-reference/sdks/prompts/README.md +0 -225
  25. package/api-reference/sdks/sessions/README.md +0 -50
  26. package/api-reference/sdks/syllable/README.md +0 -22
  27. package/api-reference/sdks/targets/README.md +0 -194
  28. package/api-reference/sdks/tools/README.md +0 -92
  29. package/docs/sdks/agents/README.md +0 -589
  30. package/docs/sdks/batches/README.md +0 -742
  31. package/docs/sdks/campaigns/README.md +0 -526
  32. package/docs/sdks/channels/README.md +0 -401
  33. package/docs/sdks/conversations/README.md +0 -100
  34. package/docs/sdks/custommessages/README.md +0 -496
  35. package/docs/sdks/dashboards/README.md +0 -481
  36. package/docs/sdks/datasources/README.md +0 -458
  37. package/docs/sdks/directory/README.md +0 -727
  38. package/docs/sdks/events/README.md +0 -100
  39. package/docs/sdks/folders/README.md +0 -675
  40. package/docs/sdks/fullsummary/README.md +0 -82
  41. package/docs/sdks/incidents/README.md +0 -501
  42. package/docs/sdks/insights/README.md +0 -100
  43. package/docs/sdks/languagegroups/README.md +0 -565
  44. package/docs/sdks/latency/README.md +0 -82
  45. package/docs/sdks/numbers/README.md +0 -250
  46. package/docs/sdks/organizations/README.md +0 -317
  47. package/docs/sdks/permissions/README.md +0 -78
  48. package/docs/sdks/prompts/README.md +0 -592
  49. package/docs/sdks/pronunciations/README.md +0 -360
  50. package/docs/sdks/roles/README.md +0 -430
  51. package/docs/sdks/services/README.md +0 -430
  52. package/docs/sdks/sessiondebug/README.md +0 -236
  53. package/docs/sdks/sessionlabels/README.md +0 -262
  54. package/docs/sdks/sessions/README.md +0 -325
  55. package/docs/sdks/syllablesdktools/README.md +0 -578
  56. package/docs/sdks/takeouts/README.md +0 -228
  57. package/docs/sdks/targets/README.md +0 -454
  58. package/docs/sdks/test/README.md +0 -92
  59. package/docs/sdks/tools/README.md +0 -518
  60. package/docs/sdks/transcript/README.md +0 -82
  61. package/docs/sdks/twilio/README.md +0 -246
  62. package/docs/sdks/users/README.md +0 -561
  63. package/docs/sdks/v1/README.md +0 -561
  64. package/docs/sdks/voicegroups/README.md +0 -551
  65. package/docs/sdks/workflows/README.md +0 -781
  66. package/examples/README.md +0 -31
@@ -1,430 +0,0 @@
1
- # Services
2
- (*services*)
3
-
4
- ## Overview
5
-
6
- Operations related to service configuration. A service is a collection of tools. You can specify an authentication method and values on a service, and any linked tools will use that auth information to generate headers for HTTP calls.
7
-
8
- ### Available Operations
9
-
10
- * [list](#list) - Service List
11
- * [create](#create) - Create Service
12
- * [update](#update) - Update Service
13
- * [getById](#getbyid) - Get Service By Id
14
- * [delete](#delete) - Delete Service
15
-
16
- ## list
17
-
18
- List the existing services
19
-
20
- ### Example Usage
21
-
22
- <!-- UsageSnippet language="typescript" operationID="service_list" method="get" path="/api/v1/services/" -->
23
- ```typescript
24
- import { SyllableSDK } from "syllable-sdk";
25
-
26
- const syllableSDK = new SyllableSDK({
27
- apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
28
- });
29
-
30
- async function run() {
31
- const result = await syllableSDK.services.list({
32
- page: 0,
33
- searchFields: [
34
- "name",
35
- ],
36
- searchFieldValues: [
37
- "Some Object Name",
38
- ],
39
- startDatetime: "2023-01-01T00:00:00Z",
40
- endDatetime: "2024-01-01T00:00:00Z",
41
- });
42
-
43
- console.log(result);
44
- }
45
-
46
- run();
47
- ```
48
-
49
- ### Standalone function
50
-
51
- The standalone function version of this method:
52
-
53
- ```typescript
54
- import { SyllableSDKCore } from "syllable-sdk/core.js";
55
- import { servicesList } from "syllable-sdk/funcs/servicesList.js";
56
-
57
- // Use `SyllableSDKCore` for best tree-shaking performance.
58
- // You can create one instance of it to use across an application.
59
- const syllableSDK = new SyllableSDKCore({
60
- apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
61
- });
62
-
63
- async function run() {
64
- const res = await servicesList(syllableSDK, {
65
- page: 0,
66
- searchFields: [
67
- "name",
68
- ],
69
- searchFieldValues: [
70
- "Some Object Name",
71
- ],
72
- startDatetime: "2023-01-01T00:00:00Z",
73
- endDatetime: "2024-01-01T00:00:00Z",
74
- });
75
- if (res.ok) {
76
- const { value: result } = res;
77
- console.log(result);
78
- } else {
79
- console.log("servicesList failed:", res.error);
80
- }
81
- }
82
-
83
- run();
84
- ```
85
-
86
- ### Parameters
87
-
88
- | Parameter | Type | Required | Description |
89
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
90
- | `request` | [operations.ServiceListRequest](../../models/operations/servicelistrequest.md) | :heavy_check_mark: | The request object to use for the request. |
91
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
92
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
93
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
94
-
95
- ### Response
96
-
97
- **Promise\<[components.ListResponseServiceResponse](../../models/components/listresponseserviceresponse.md)\>**
98
-
99
- ### Errors
100
-
101
- | Error Type | Status Code | Content Type |
102
- | -------------------------- | -------------------------- | -------------------------- |
103
- | errors.HTTPValidationError | 422 | application/json |
104
- | errors.SDKError | 4XX, 5XX | \*/\* |
105
-
106
- ## create
107
-
108
- Create a new service.
109
-
110
- ### Example Usage
111
-
112
- <!-- UsageSnippet language="typescript" operationID="service_create" method="post" path="/api/v1/services/" -->
113
- ```typescript
114
- import { SyllableSDK } from "syllable-sdk";
115
-
116
- const syllableSDK = new SyllableSDK({
117
- apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
118
- });
119
-
120
- async function run() {
121
- const result = await syllableSDK.services.create({
122
- name: "Weather tools",
123
- description: "Service containing tools for fetching weather information",
124
- authType: "basic",
125
- authValues: {
126
- "password": "my-password",
127
- "username": "my-username",
128
- },
129
- });
130
-
131
- console.log(result);
132
- }
133
-
134
- run();
135
- ```
136
-
137
- ### Standalone function
138
-
139
- The standalone function version of this method:
140
-
141
- ```typescript
142
- import { SyllableSDKCore } from "syllable-sdk/core.js";
143
- import { servicesCreate } from "syllable-sdk/funcs/servicesCreate.js";
144
-
145
- // Use `SyllableSDKCore` for best tree-shaking performance.
146
- // You can create one instance of it to use across an application.
147
- const syllableSDK = new SyllableSDKCore({
148
- apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
149
- });
150
-
151
- async function run() {
152
- const res = await servicesCreate(syllableSDK, {
153
- name: "Weather tools",
154
- description: "Service containing tools for fetching weather information",
155
- authType: "basic",
156
- authValues: {
157
- "password": "my-password",
158
- "username": "my-username",
159
- },
160
- });
161
- if (res.ok) {
162
- const { value: result } = res;
163
- console.log(result);
164
- } else {
165
- console.log("servicesCreate failed:", res.error);
166
- }
167
- }
168
-
169
- run();
170
- ```
171
-
172
- ### Parameters
173
-
174
- | Parameter | Type | Required | Description |
175
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
176
- | `request` | [components.ServiceCreateRequest](../../models/components/servicecreaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
177
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
178
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
179
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
180
-
181
- ### Response
182
-
183
- **Promise\<[components.ServiceResponse](../../models/components/serviceresponse.md)\>**
184
-
185
- ### Errors
186
-
187
- | Error Type | Status Code | Content Type |
188
- | -------------------------- | -------------------------- | -------------------------- |
189
- | errors.HTTPValidationError | 422 | application/json |
190
- | errors.SDKError | 4XX, 5XX | \*/\* |
191
-
192
- ## update
193
-
194
- Update an existing service.
195
-
196
- ### Example Usage
197
-
198
- <!-- UsageSnippet language="typescript" operationID="service_update" method="put" path="/api/v1/services/" -->
199
- ```typescript
200
- import { SyllableSDK } from "syllable-sdk";
201
-
202
- const syllableSDK = new SyllableSDK({
203
- apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
204
- });
205
-
206
- async function run() {
207
- const result = await syllableSDK.services.update({
208
- name: "Weather tools",
209
- description: "Service containing tools for fetching weather information",
210
- authType: "basic",
211
- authValues: {
212
- "password": "my-password",
213
- "username": "my-username",
214
- },
215
- id: 1,
216
- lastUpdatedComments: "Updated description to correct typo",
217
- });
218
-
219
- console.log(result);
220
- }
221
-
222
- run();
223
- ```
224
-
225
- ### Standalone function
226
-
227
- The standalone function version of this method:
228
-
229
- ```typescript
230
- import { SyllableSDKCore } from "syllable-sdk/core.js";
231
- import { servicesUpdate } from "syllable-sdk/funcs/servicesUpdate.js";
232
-
233
- // Use `SyllableSDKCore` for best tree-shaking performance.
234
- // You can create one instance of it to use across an application.
235
- const syllableSDK = new SyllableSDKCore({
236
- apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
237
- });
238
-
239
- async function run() {
240
- const res = await servicesUpdate(syllableSDK, {
241
- name: "Weather tools",
242
- description: "Service containing tools for fetching weather information",
243
- authType: "basic",
244
- authValues: {
245
- "password": "my-password",
246
- "username": "my-username",
247
- },
248
- id: 1,
249
- lastUpdatedComments: "Updated description to correct typo",
250
- });
251
- if (res.ok) {
252
- const { value: result } = res;
253
- console.log(result);
254
- } else {
255
- console.log("servicesUpdate failed:", res.error);
256
- }
257
- }
258
-
259
- run();
260
- ```
261
-
262
- ### Parameters
263
-
264
- | Parameter | Type | Required | Description |
265
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
266
- | `request` | [components.ServiceUpdateRequest](../../models/components/serviceupdaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
267
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
268
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
269
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
270
-
271
- ### Response
272
-
273
- **Promise\<[components.ServiceResponse](../../models/components/serviceresponse.md)\>**
274
-
275
- ### Errors
276
-
277
- | Error Type | Status Code | Content Type |
278
- | -------------------------- | -------------------------- | -------------------------- |
279
- | errors.HTTPValidationError | 422 | application/json |
280
- | errors.SDKError | 4XX, 5XX | \*/\* |
281
-
282
- ## getById
283
-
284
- Get a service by its ID
285
-
286
- ### Example Usage
287
-
288
- <!-- UsageSnippet language="typescript" operationID="services_get_by_id" method="get" path="/api/v1/services/{service_id}" -->
289
- ```typescript
290
- import { SyllableSDK } from "syllable-sdk";
291
-
292
- const syllableSDK = new SyllableSDK({
293
- apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
294
- });
295
-
296
- async function run() {
297
- const result = await syllableSDK.services.getById({
298
- serviceId: 902529,
299
- });
300
-
301
- console.log(result);
302
- }
303
-
304
- run();
305
- ```
306
-
307
- ### Standalone function
308
-
309
- The standalone function version of this method:
310
-
311
- ```typescript
312
- import { SyllableSDKCore } from "syllable-sdk/core.js";
313
- import { servicesGetById } from "syllable-sdk/funcs/servicesGetById.js";
314
-
315
- // Use `SyllableSDKCore` for best tree-shaking performance.
316
- // You can create one instance of it to use across an application.
317
- const syllableSDK = new SyllableSDKCore({
318
- apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
319
- });
320
-
321
- async function run() {
322
- const res = await servicesGetById(syllableSDK, {
323
- serviceId: 902529,
324
- });
325
- if (res.ok) {
326
- const { value: result } = res;
327
- console.log(result);
328
- } else {
329
- console.log("servicesGetById failed:", res.error);
330
- }
331
- }
332
-
333
- run();
334
- ```
335
-
336
- ### Parameters
337
-
338
- | Parameter | Type | Required | Description |
339
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
340
- | `request` | [operations.ServicesGetByIdRequest](../../models/operations/servicesgetbyidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
341
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
342
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
343
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
344
-
345
- ### Response
346
-
347
- **Promise\<[components.ServiceResponse](../../models/components/serviceresponse.md)\>**
348
-
349
- ### Errors
350
-
351
- | Error Type | Status Code | Content Type |
352
- | -------------------------- | -------------------------- | -------------------------- |
353
- | errors.HTTPValidationError | 422 | application/json |
354
- | errors.SDKError | 4XX, 5XX | \*/\* |
355
-
356
- ## delete
357
-
358
- Delete a service. A service with linked tools cannot be deleted.
359
-
360
- ### Example Usage
361
-
362
- <!-- UsageSnippet language="typescript" operationID="service_delete" method="delete" path="/api/v1/services/{service_id}" -->
363
- ```typescript
364
- import { SyllableSDK } from "syllable-sdk";
365
-
366
- const syllableSDK = new SyllableSDK({
367
- apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
368
- });
369
-
370
- async function run() {
371
- const result = await syllableSDK.services.delete({
372
- serviceId: 754999,
373
- reason: "<value>",
374
- });
375
-
376
- console.log(result);
377
- }
378
-
379
- run();
380
- ```
381
-
382
- ### Standalone function
383
-
384
- The standalone function version of this method:
385
-
386
- ```typescript
387
- import { SyllableSDKCore } from "syllable-sdk/core.js";
388
- import { servicesDelete } from "syllable-sdk/funcs/servicesDelete.js";
389
-
390
- // Use `SyllableSDKCore` for best tree-shaking performance.
391
- // You can create one instance of it to use across an application.
392
- const syllableSDK = new SyllableSDKCore({
393
- apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
394
- });
395
-
396
- async function run() {
397
- const res = await servicesDelete(syllableSDK, {
398
- serviceId: 754999,
399
- reason: "<value>",
400
- });
401
- if (res.ok) {
402
- const { value: result } = res;
403
- console.log(result);
404
- } else {
405
- console.log("servicesDelete failed:", res.error);
406
- }
407
- }
408
-
409
- run();
410
- ```
411
-
412
- ### Parameters
413
-
414
- | Parameter | Type | Required | Description |
415
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
416
- | `request` | [operations.ServiceDeleteRequest](../../models/operations/servicedeleterequest.md) | :heavy_check_mark: | The request object to use for the request. |
417
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
418
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
419
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
420
-
421
- ### Response
422
-
423
- **Promise\<[any](../../models/.md)\>**
424
-
425
- ### Errors
426
-
427
- | Error Type | Status Code | Content Type |
428
- | -------------------------- | -------------------------- | -------------------------- |
429
- | errors.HTTPValidationError | 422 | application/json |
430
- | errors.SDKError | 4XX, 5XX | \*/\* |