syllable-sdk 1.0.7 → 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 (92) hide show
  1. package/bin/mcp-server.js +54 -17
  2. package/bin/mcp-server.js.map +11 -10
  3. package/examples/package-lock.json +1 -1
  4. package/funcs/directoryUpdate.js +3 -1
  5. package/funcs/directoryUpdate.js.map +1 -1
  6. package/jsr.json +1 -1
  7. package/lib/config.d.ts +3 -3
  8. package/lib/config.js +3 -3
  9. package/lib/config.js.map +1 -1
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/mcp-server.js.map +1 -1
  12. package/mcp-server/server.js +1 -1
  13. package/mcp-server/server.js.map +1 -1
  14. package/models/components/directorymember.d.ts +4 -4
  15. package/models/components/directorymember.d.ts.map +1 -1
  16. package/models/components/directorymember.js +4 -4
  17. package/models/components/directorymember.js.map +1 -1
  18. package/models/components/directorymemberupdate.d.ts +60 -0
  19. package/models/components/directorymemberupdate.d.ts.map +1 -0
  20. package/models/components/directorymemberupdate.js +87 -0
  21. package/models/components/directorymemberupdate.js.map +1 -0
  22. package/models/components/index.d.ts +1 -0
  23. package/models/components/index.d.ts.map +1 -1
  24. package/models/components/index.js +1 -0
  25. package/models/components/index.js.map +1 -1
  26. package/models/operations/directorymemberupdate.d.ts +2 -2
  27. package/models/operations/directorymemberupdate.d.ts.map +1 -1
  28. package/models/operations/directorymemberupdate.js +4 -4
  29. package/models/operations/directorymemberupdate.js.map +1 -1
  30. package/openapi.json +136 -52
  31. package/package.json +1 -1
  32. package/src/funcs/directoryUpdate.ts +3 -1
  33. package/src/lib/config.ts +3 -3
  34. package/src/mcp-server/mcp-server.ts +1 -1
  35. package/src/mcp-server/server.ts +1 -1
  36. package/src/models/components/directorymember.ts +8 -10
  37. package/src/models/components/directorymemberupdate.ts +115 -0
  38. package/src/models/components/index.ts +1 -0
  39. package/src/models/operations/directorymemberupdate.ts +6 -6
  40. package/.devcontainer/README.md +0 -35
  41. package/api-reference/sdks/agents/README.md +0 -224
  42. package/api-reference/sdks/availabletargets/README.md +0 -49
  43. package/api-reference/sdks/channels/README.md +0 -92
  44. package/api-reference/sdks/chats/README.md +0 -55
  45. package/api-reference/sdks/conversations/README.md +0 -91
  46. package/api-reference/sdks/dashboards/README.md +0 -321
  47. package/api-reference/sdks/events/README.md +0 -50
  48. package/api-reference/sdks/greetings/README.md +0 -223
  49. package/api-reference/sdks/organizations/README.md +0 -48
  50. package/api-reference/sdks/prompts/README.md +0 -225
  51. package/api-reference/sdks/sessions/README.md +0 -50
  52. package/api-reference/sdks/syllable/README.md +0 -22
  53. package/api-reference/sdks/targets/README.md +0 -194
  54. package/api-reference/sdks/tools/README.md +0 -92
  55. package/docs/sdks/agents/README.md +0 -589
  56. package/docs/sdks/batches/README.md +0 -742
  57. package/docs/sdks/campaigns/README.md +0 -526
  58. package/docs/sdks/channels/README.md +0 -401
  59. package/docs/sdks/conversations/README.md +0 -100
  60. package/docs/sdks/custommessages/README.md +0 -496
  61. package/docs/sdks/dashboards/README.md +0 -481
  62. package/docs/sdks/datasources/README.md +0 -458
  63. package/docs/sdks/directory/README.md +0 -731
  64. package/docs/sdks/events/README.md +0 -100
  65. package/docs/sdks/folders/README.md +0 -675
  66. package/docs/sdks/fullsummary/README.md +0 -82
  67. package/docs/sdks/incidents/README.md +0 -501
  68. package/docs/sdks/insights/README.md +0 -100
  69. package/docs/sdks/languagegroups/README.md +0 -565
  70. package/docs/sdks/latency/README.md +0 -82
  71. package/docs/sdks/numbers/README.md +0 -250
  72. package/docs/sdks/organizations/README.md +0 -317
  73. package/docs/sdks/permissions/README.md +0 -78
  74. package/docs/sdks/prompts/README.md +0 -592
  75. package/docs/sdks/pronunciations/README.md +0 -360
  76. package/docs/sdks/roles/README.md +0 -430
  77. package/docs/sdks/services/README.md +0 -430
  78. package/docs/sdks/sessiondebug/README.md +0 -236
  79. package/docs/sdks/sessionlabels/README.md +0 -262
  80. package/docs/sdks/sessions/README.md +0 -325
  81. package/docs/sdks/syllablesdktools/README.md +0 -578
  82. package/docs/sdks/takeouts/README.md +0 -228
  83. package/docs/sdks/targets/README.md +0 -454
  84. package/docs/sdks/test/README.md +0 -92
  85. package/docs/sdks/tools/README.md +0 -518
  86. package/docs/sdks/transcript/README.md +0 -82
  87. package/docs/sdks/twilio/README.md +0 -246
  88. package/docs/sdks/users/README.md +0 -561
  89. package/docs/sdks/v1/README.md +0 -561
  90. package/docs/sdks/voicegroups/README.md +0 -551
  91. package/docs/sdks/workflows/README.md +0 -781
  92. 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 | \*/\* |