syllable-sdk 0.1.0-alpha.35 → 0.1.0-alpha.37

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 (155) hide show
  1. package/FUNCTIONS.md +1 -3
  2. package/README.md +30 -21
  3. package/docs/sdks/agents/README.md +6 -8
  4. package/docs/sdks/channels/README.md +2 -6
  5. package/docs/sdks/conversations/README.md +2 -6
  6. package/docs/sdks/custommessages/README.md +2 -10
  7. package/docs/sdks/datasources/README.md +417 -0
  8. package/docs/sdks/events/README.md +2 -6
  9. package/docs/sdks/prompts/README.md +2 -10
  10. package/docs/sdks/services/README.md +2 -6
  11. package/docs/sdks/sessionlabels/README.md +6 -10
  12. package/docs/sdks/sessions/README.md +2 -6
  13. package/docs/sdks/targets/README.md +4 -16
  14. package/docs/sdks/test/README.md +0 -2
  15. package/docs/sdks/tools/README.md +2 -6
  16. package/docs/sdks/v1/README.md +408 -0
  17. package/funcs/agentsCreate.js +1 -1
  18. package/funcs/agentsCreate.js.map +1 -1
  19. package/funcs/agentsDelete.js +1 -1
  20. package/funcs/agentsDelete.js.map +1 -1
  21. package/funcs/agentsUpdate.js +1 -1
  22. package/funcs/agentsUpdate.js.map +1 -1
  23. package/funcs/dataSourcesCreate.d.ts +16 -0
  24. package/funcs/dataSourcesCreate.d.ts.map +1 -0
  25. package/funcs/dataSourcesCreate.js +101 -0
  26. package/funcs/dataSourcesCreate.js.map +1 -0
  27. package/funcs/dataSourcesDataSourcesDeleteByName.d.ts +16 -0
  28. package/funcs/dataSourcesDataSourcesDeleteByName.d.ts.map +1 -0
  29. package/funcs/dataSourcesDataSourcesDeleteByName.js +111 -0
  30. package/funcs/dataSourcesDataSourcesDeleteByName.js.map +1 -0
  31. package/funcs/dataSourcesGetByName.d.ts +17 -0
  32. package/funcs/dataSourcesGetByName.d.ts.map +1 -0
  33. package/funcs/dataSourcesGetByName.js +107 -0
  34. package/funcs/dataSourcesGetByName.js.map +1 -0
  35. package/funcs/dataSourcesList.d.ts +17 -0
  36. package/funcs/dataSourcesList.d.ts.map +1 -0
  37. package/funcs/dataSourcesList.js +113 -0
  38. package/funcs/dataSourcesList.js.map +1 -0
  39. package/funcs/dataSourcesUpdate.d.ts +16 -0
  40. package/funcs/dataSourcesUpdate.d.ts.map +1 -0
  41. package/funcs/dataSourcesUpdate.js +101 -0
  42. package/funcs/dataSourcesUpdate.js.map +1 -0
  43. package/funcs/v1Create.d.ts +16 -0
  44. package/funcs/v1Create.d.ts.map +1 -0
  45. package/funcs/v1Create.js +101 -0
  46. package/funcs/v1Create.js.map +1 -0
  47. package/funcs/v1DataSourcesDeleteByName.d.ts +16 -0
  48. package/funcs/v1DataSourcesDeleteByName.d.ts.map +1 -0
  49. package/funcs/v1DataSourcesDeleteByName.js +111 -0
  50. package/funcs/v1DataSourcesDeleteByName.js.map +1 -0
  51. package/funcs/v1GetByName.d.ts +17 -0
  52. package/funcs/v1GetByName.d.ts.map +1 -0
  53. package/funcs/v1GetByName.js +107 -0
  54. package/funcs/v1GetByName.js.map +1 -0
  55. package/funcs/v1List.d.ts +17 -0
  56. package/funcs/v1List.d.ts.map +1 -0
  57. package/funcs/v1List.js +113 -0
  58. package/funcs/v1List.js.map +1 -0
  59. package/funcs/v1Update.d.ts +16 -0
  60. package/funcs/v1Update.d.ts.map +1 -0
  61. package/funcs/v1Update.js +101 -0
  62. package/funcs/v1Update.js.map +1 -0
  63. package/jsr.json +1 -1
  64. package/lib/config.d.ts +3 -3
  65. package/lib/config.js +3 -3
  66. package/lib/config.js.map +1 -1
  67. package/lib/retries.js +0 -1
  68. package/lib/retries.js.map +1 -1
  69. package/models/components/datasourcecreaterequest.d.ts +57 -0
  70. package/models/components/datasourcecreaterequest.d.ts.map +1 -0
  71. package/models/components/datasourcecreaterequest.js +78 -0
  72. package/models/components/datasourcecreaterequest.js.map +1 -0
  73. package/models/components/datasourcedetailresponse.d.ts +75 -0
  74. package/models/components/datasourcedetailresponse.d.ts.map +1 -0
  75. package/models/components/datasourcedetailresponse.js +90 -0
  76. package/models/components/datasourcedetailresponse.js.map +1 -0
  77. package/models/components/datasourcemetadataresponse.d.ts +70 -0
  78. package/models/components/datasourcemetadataresponse.d.ts.map +1 -0
  79. package/models/components/datasourcemetadataresponse.js +88 -0
  80. package/models/components/datasourcemetadataresponse.js.map +1 -0
  81. package/models/components/datasourceproperties.d.ts +43 -0
  82. package/models/components/datasourceproperties.d.ts.map +1 -0
  83. package/models/components/datasourceproperties.js +55 -0
  84. package/models/components/datasourceproperties.js.map +1 -0
  85. package/models/components/datasourceupdaterequest.d.ts +62 -0
  86. package/models/components/datasourceupdaterequest.d.ts.map +1 -0
  87. package/models/components/datasourceupdaterequest.js +82 -0
  88. package/models/components/datasourceupdaterequest.js.map +1 -0
  89. package/models/components/index.d.ts +6 -0
  90. package/models/components/index.d.ts.map +1 -1
  91. package/models/components/index.js +6 -0
  92. package/models/components/index.js.map +1 -1
  93. package/models/components/listresponsedatasourcemetadataresponse.d.ts +38 -0
  94. package/models/components/listresponsedatasourcemetadataresponse.d.ts.map +1 -0
  95. package/models/components/listresponsedatasourcemetadataresponse.js +81 -0
  96. package/models/components/listresponsedatasourcemetadataresponse.js.map +1 -0
  97. package/models/operations/datasourcesdeletebyname.d.ts +31 -0
  98. package/models/operations/datasourcesdeletebyname.d.ts.map +1 -0
  99. package/models/operations/datasourcesdeletebyname.js +61 -0
  100. package/models/operations/datasourcesdeletebyname.js.map +1 -0
  101. package/models/operations/datasourcesgetbyname.d.ts +29 -0
  102. package/models/operations/datasourcesgetbyname.d.ts.map +1 -0
  103. package/models/operations/datasourcesgetbyname.js +59 -0
  104. package/models/operations/datasourcesgetbyname.js.map +1 -0
  105. package/models/operations/datasourceslist.d.ts +46 -0
  106. package/models/operations/datasourceslist.d.ts.map +1 -0
  107. package/models/operations/datasourceslist.js +103 -0
  108. package/models/operations/datasourceslist.js.map +1 -0
  109. package/models/operations/index.d.ts +3 -0
  110. package/models/operations/index.d.ts.map +1 -1
  111. package/models/operations/index.js +3 -0
  112. package/models/operations/index.js.map +1 -1
  113. package/openapi.json +3072 -1596
  114. package/package.json +6 -7
  115. package/sdk/datasources.d.ts +41 -0
  116. package/sdk/datasources.d.ts.map +1 -0
  117. package/sdk/datasources.js +62 -0
  118. package/sdk/datasources.js.map +1 -0
  119. package/sdk/sdk.d.ts +5 -2
  120. package/sdk/sdk.d.ts.map +1 -1
  121. package/sdk/sdk.js +7 -3
  122. package/sdk/sdk.js.map +1 -1
  123. package/sdk/v1.d.ts +36 -0
  124. package/sdk/v1.d.ts.map +1 -1
  125. package/sdk/v1.js +50 -0
  126. package/sdk/v1.js.map +1 -1
  127. package/src/funcs/agentsCreate.ts +1 -1
  128. package/src/funcs/agentsDelete.ts +1 -1
  129. package/src/funcs/agentsUpdate.ts +1 -1
  130. package/src/funcs/dataSourcesCreate.ts +134 -0
  131. package/src/funcs/dataSourcesDataSourcesDeleteByName.ts +147 -0
  132. package/src/funcs/dataSourcesGetByName.ts +142 -0
  133. package/src/funcs/dataSourcesList.ts +150 -0
  134. package/src/funcs/dataSourcesUpdate.ts +134 -0
  135. package/src/funcs/v1Create.ts +134 -0
  136. package/src/funcs/v1DataSourcesDeleteByName.ts +147 -0
  137. package/src/funcs/v1GetByName.ts +142 -0
  138. package/src/funcs/v1List.ts +150 -0
  139. package/src/funcs/v1Update.ts +134 -0
  140. package/src/lib/config.ts +3 -3
  141. package/src/lib/retries.ts +0 -1
  142. package/src/models/components/datasourcecreaterequest.ts +113 -0
  143. package/src/models/components/datasourcedetailresponse.ts +143 -0
  144. package/src/models/components/datasourcemetadataresponse.ts +136 -0
  145. package/src/models/components/datasourceproperties.ts +38 -0
  146. package/src/models/components/datasourceupdaterequest.ts +122 -0
  147. package/src/models/components/index.ts +6 -0
  148. package/src/models/components/listresponsedatasourcemetadataresponse.ts +107 -0
  149. package/src/models/operations/datasourcesdeletebyname.ts +72 -0
  150. package/src/models/operations/datasourcesgetbyname.ts +68 -0
  151. package/src/models/operations/datasourceslist.ts +126 -0
  152. package/src/models/operations/index.ts +3 -0
  153. package/src/sdk/datasources.ts +100 -0
  154. package/src/sdk/sdk.ts +11 -5
  155. package/src/sdk/v1.ts +91 -0
@@ -0,0 +1,417 @@
1
+ # DataSources
2
+ (*dataSources*)
3
+
4
+ ## Overview
5
+
6
+ Operations related to data sources. A data source is a blob of text that can be made available to an agent's general info tools to provide more context to the agent when generating its responses.
7
+
8
+ ### Available Operations
9
+
10
+ * [list](#list) - List Data Sources
11
+ * [create](#create) - Create Data Source
12
+ * [update](#update) - Update Data Source
13
+ * [getByName](#getbyname) - Get Data Source
14
+ * [dataSourcesDeleteByName](#datasourcesdeletebyname) - Delete Data Source
15
+
16
+ ## list
17
+
18
+ Fetch metadata about all data sources, not including their text.
19
+
20
+ ### Example Usage
21
+
22
+ ```typescript
23
+ import { SyllableSDK } from "syllable-sdk";
24
+
25
+ const syllableSDK = new SyllableSDK({
26
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
27
+ });
28
+
29
+ async function run() {
30
+ const result = await syllableSDK.dataSources.list({});
31
+
32
+ // Handle the result
33
+ console.log(result);
34
+ }
35
+
36
+ run();
37
+ ```
38
+
39
+ ### Standalone function
40
+
41
+ The standalone function version of this method:
42
+
43
+ ```typescript
44
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
45
+ import { dataSourcesList } from "syllable-sdk/funcs/dataSourcesList.js";
46
+
47
+ // Use `SyllableSDKCore` for best tree-shaking performance.
48
+ // You can create one instance of it to use across an application.
49
+ const syllableSDK = new SyllableSDKCore({
50
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
51
+ });
52
+
53
+ async function run() {
54
+ const res = await dataSourcesList(syllableSDK, {});
55
+
56
+ if (!res.ok) {
57
+ throw res.error;
58
+ }
59
+
60
+ const { value: result } = res;
61
+
62
+ // Handle the result
63
+ console.log(result);
64
+ }
65
+
66
+ run();
67
+ ```
68
+
69
+ ### Parameters
70
+
71
+ | Parameter | Type | Required | Description |
72
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
73
+ | `request` | [operations.DataSourcesListRequest](../../models/operations/datasourceslistrequest.md) | :heavy_check_mark: | The request object to use for the request. |
74
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
75
+ | `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. |
76
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
77
+
78
+ ### Response
79
+
80
+ **Promise\<[components.ListResponseDataSourceMetadataResponse](../../models/components/listresponsedatasourcemetadataresponse.md)\>**
81
+
82
+ ### Errors
83
+
84
+ | Error Type | Status Code | Content Type |
85
+ | -------------------------- | -------------------------- | -------------------------- |
86
+ | errors.HTTPValidationError | 422 | application/json |
87
+ | errors.SDKError | 4XX, 5XX | \*/\* |
88
+
89
+ ## create
90
+
91
+ Create a new data source.
92
+
93
+ ### Example Usage
94
+
95
+ ```typescript
96
+ import { SyllableSDK } from "syllable-sdk";
97
+
98
+ const syllableSDK = new SyllableSDK({
99
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
100
+ });
101
+
102
+ async function run() {
103
+ const result = await syllableSDK.dataSources.create({
104
+ name: "<value>",
105
+ labels: [
106
+ "Location Info",
107
+ ],
108
+ chunk: true,
109
+ text: "<value>",
110
+ });
111
+
112
+ // Handle the result
113
+ console.log(result);
114
+ }
115
+
116
+ run();
117
+ ```
118
+
119
+ ### Standalone function
120
+
121
+ The standalone function version of this method:
122
+
123
+ ```typescript
124
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
125
+ import { dataSourcesCreate } from "syllable-sdk/funcs/dataSourcesCreate.js";
126
+
127
+ // Use `SyllableSDKCore` for best tree-shaking performance.
128
+ // You can create one instance of it to use across an application.
129
+ const syllableSDK = new SyllableSDKCore({
130
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
131
+ });
132
+
133
+ async function run() {
134
+ const res = await dataSourcesCreate(syllableSDK, {
135
+ name: "<value>",
136
+ labels: [
137
+ "Location Info",
138
+ ],
139
+ chunk: true,
140
+ text: "<value>",
141
+ });
142
+
143
+ if (!res.ok) {
144
+ throw res.error;
145
+ }
146
+
147
+ const { value: result } = res;
148
+
149
+ // Handle the result
150
+ console.log(result);
151
+ }
152
+
153
+ run();
154
+ ```
155
+
156
+ ### Parameters
157
+
158
+ | Parameter | Type | Required | Description |
159
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
160
+ | `request` | [components.DataSourceCreateRequest](../../models/components/datasourcecreaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
161
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
162
+ | `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. |
163
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
164
+
165
+ ### Response
166
+
167
+ **Promise\<[components.DataSourceDetailResponse](../../models/components/datasourcedetailresponse.md)\>**
168
+
169
+ ### Errors
170
+
171
+ | Error Type | Status Code | Content Type |
172
+ | -------------------------- | -------------------------- | -------------------------- |
173
+ | errors.HTTPValidationError | 422 | application/json |
174
+ | errors.SDKError | 4XX, 5XX | \*/\* |
175
+
176
+ ## update
177
+
178
+ Update an existing data source.
179
+
180
+ ### Example Usage
181
+
182
+ ```typescript
183
+ import { SyllableSDK } from "syllable-sdk";
184
+
185
+ const syllableSDK = new SyllableSDK({
186
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
187
+ });
188
+
189
+ async function run() {
190
+ const result = await syllableSDK.dataSources.update({
191
+ name: "<value>",
192
+ labels: [
193
+ "Location Info",
194
+ ],
195
+ chunk: false,
196
+ text: "<value>",
197
+ });
198
+
199
+ // Handle the result
200
+ console.log(result);
201
+ }
202
+
203
+ run();
204
+ ```
205
+
206
+ ### Standalone function
207
+
208
+ The standalone function version of this method:
209
+
210
+ ```typescript
211
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
212
+ import { dataSourcesUpdate } from "syllable-sdk/funcs/dataSourcesUpdate.js";
213
+
214
+ // Use `SyllableSDKCore` for best tree-shaking performance.
215
+ // You can create one instance of it to use across an application.
216
+ const syllableSDK = new SyllableSDKCore({
217
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
218
+ });
219
+
220
+ async function run() {
221
+ const res = await dataSourcesUpdate(syllableSDK, {
222
+ name: "<value>",
223
+ labels: [
224
+ "Location Info",
225
+ ],
226
+ chunk: false,
227
+ text: "<value>",
228
+ });
229
+
230
+ if (!res.ok) {
231
+ throw res.error;
232
+ }
233
+
234
+ const { value: result } = res;
235
+
236
+ // Handle the result
237
+ console.log(result);
238
+ }
239
+
240
+ run();
241
+ ```
242
+
243
+ ### Parameters
244
+
245
+ | Parameter | Type | Required | Description |
246
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
247
+ | `request` | [components.DataSourceUpdateRequest](../../models/components/datasourceupdaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
248
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
249
+ | `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. |
250
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
251
+
252
+ ### Response
253
+
254
+ **Promise\<[components.DataSourceDetailResponse](../../models/components/datasourcedetailresponse.md)\>**
255
+
256
+ ### Errors
257
+
258
+ | Error Type | Status Code | Content Type |
259
+ | -------------------------- | -------------------------- | -------------------------- |
260
+ | errors.HTTPValidationError | 422 | application/json |
261
+ | errors.SDKError | 4XX, 5XX | \*/\* |
262
+
263
+ ## getByName
264
+
265
+ Fetch a given data source, including its text.
266
+
267
+ ### Example Usage
268
+
269
+ ```typescript
270
+ import { SyllableSDK } from "syllable-sdk";
271
+
272
+ const syllableSDK = new SyllableSDK({
273
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
274
+ });
275
+
276
+ async function run() {
277
+ const result = await syllableSDK.dataSources.getByName({
278
+ name: "<value>",
279
+ });
280
+
281
+ // Handle the result
282
+ console.log(result);
283
+ }
284
+
285
+ run();
286
+ ```
287
+
288
+ ### Standalone function
289
+
290
+ The standalone function version of this method:
291
+
292
+ ```typescript
293
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
294
+ import { dataSourcesGetByName } from "syllable-sdk/funcs/dataSourcesGetByName.js";
295
+
296
+ // Use `SyllableSDKCore` for best tree-shaking performance.
297
+ // You can create one instance of it to use across an application.
298
+ const syllableSDK = new SyllableSDKCore({
299
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
300
+ });
301
+
302
+ async function run() {
303
+ const res = await dataSourcesGetByName(syllableSDK, {
304
+ name: "<value>",
305
+ });
306
+
307
+ if (!res.ok) {
308
+ throw res.error;
309
+ }
310
+
311
+ const { value: result } = res;
312
+
313
+ // Handle the result
314
+ console.log(result);
315
+ }
316
+
317
+ run();
318
+ ```
319
+
320
+ ### Parameters
321
+
322
+ | Parameter | Type | Required | Description |
323
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
324
+ | `request` | [operations.DataSourcesGetByNameRequest](../../models/operations/datasourcesgetbynamerequest.md) | :heavy_check_mark: | The request object to use for the request. |
325
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
326
+ | `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. |
327
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
328
+
329
+ ### Response
330
+
331
+ **Promise\<[components.DataSourceDetailResponse](../../models/components/datasourcedetailresponse.md)\>**
332
+
333
+ ### Errors
334
+
335
+ | Error Type | Status Code | Content Type |
336
+ | -------------------------- | -------------------------- | -------------------------- |
337
+ | errors.HTTPValidationError | 422 | application/json |
338
+ | errors.SDKError | 4XX, 5XX | \*/\* |
339
+
340
+ ## dataSourcesDeleteByName
341
+
342
+ Delete a given data source.
343
+
344
+ ### Example Usage
345
+
346
+ ```typescript
347
+ import { SyllableSDK } from "syllable-sdk";
348
+
349
+ const syllableSDK = new SyllableSDK({
350
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
351
+ });
352
+
353
+ async function run() {
354
+ const result = await syllableSDK.dataSources.dataSourcesDeleteByName({
355
+ name: "<value>",
356
+ reason: "<value>",
357
+ });
358
+
359
+ // Handle the result
360
+ console.log(result);
361
+ }
362
+
363
+ run();
364
+ ```
365
+
366
+ ### Standalone function
367
+
368
+ The standalone function version of this method:
369
+
370
+ ```typescript
371
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
372
+ import { dataSourcesDataSourcesDeleteByName } from "syllable-sdk/funcs/dataSourcesDataSourcesDeleteByName.js";
373
+
374
+ // Use `SyllableSDKCore` for best tree-shaking performance.
375
+ // You can create one instance of it to use across an application.
376
+ const syllableSDK = new SyllableSDKCore({
377
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
378
+ });
379
+
380
+ async function run() {
381
+ const res = await dataSourcesDataSourcesDeleteByName(syllableSDK, {
382
+ name: "<value>",
383
+ reason: "<value>",
384
+ });
385
+
386
+ if (!res.ok) {
387
+ throw res.error;
388
+ }
389
+
390
+ const { value: result } = res;
391
+
392
+ // Handle the result
393
+ console.log(result);
394
+ }
395
+
396
+ run();
397
+ ```
398
+
399
+ ### Parameters
400
+
401
+ | Parameter | Type | Required | Description |
402
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
403
+ | `request` | [operations.DataSourcesDeleteByNameRequest](../../models/operations/datasourcesdeletebynamerequest.md) | :heavy_check_mark: | The request object to use for the request. |
404
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
405
+ | `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. |
406
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
407
+
408
+ ### Response
409
+
410
+ **Promise\<[any](../../models/.md)\>**
411
+
412
+ ### Errors
413
+
414
+ | Error Type | Status Code | Content Type |
415
+ | -------------------------- | -------------------------- | -------------------------- |
416
+ | errors.HTTPValidationError | 422 | application/json |
417
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -23,9 +23,7 @@ const syllableSDK = new SyllableSDK({
23
23
  });
24
24
 
25
25
  async function run() {
26
- const result = await syllableSDK.events.list({
27
- limit: 25,
28
- });
26
+ const result = await syllableSDK.events.list({});
29
27
 
30
28
  // Handle the result
31
29
  console.log(result);
@@ -49,9 +47,7 @@ const syllableSDK = new SyllableSDKCore({
49
47
  });
50
48
 
51
49
  async function run() {
52
- const res = await eventsList(syllableSDK, {
53
- limit: 25,
54
- });
50
+ const res = await eventsList(syllableSDK, {});
55
51
 
56
52
  if (!res.ok) {
57
53
  throw res.error;
@@ -28,9 +28,7 @@ const syllableSDK = new SyllableSDK({
28
28
  });
29
29
 
30
30
  async function run() {
31
- const result = await syllableSDK.prompts.list({
32
- limit: 25,
33
- });
31
+ const result = await syllableSDK.prompts.list({});
34
32
 
35
33
  // Handle the result
36
34
  console.log(result);
@@ -54,9 +52,7 @@ const syllableSDK = new SyllableSDKCore({
54
52
  });
55
53
 
56
54
  async function run() {
57
- const res = await promptsList(syllableSDK, {
58
- limit: 25,
59
- });
55
+ const res = await promptsList(syllableSDK, {});
60
56
 
61
57
  if (!res.ok) {
62
58
  throw res.error;
@@ -109,7 +105,6 @@ async function run() {
109
105
  name: "<value>",
110
106
  type: "<value>",
111
107
  llmConfig: {
112
- model: "gpt-4o",
113
108
  version: "2024-05-13",
114
109
  apiVersion: "2024-06-01",
115
110
  },
@@ -141,7 +136,6 @@ async function run() {
141
136
  name: "<value>",
142
137
  type: "<value>",
143
138
  llmConfig: {
144
- model: "gpt-4o",
145
139
  version: "2024-05-13",
146
140
  apiVersion: "2024-06-01",
147
141
  },
@@ -198,7 +192,6 @@ async function run() {
198
192
  name: "<value>",
199
193
  type: "<value>",
200
194
  llmConfig: {
201
- model: "gpt-4o",
202
195
  version: "2024-05-13",
203
196
  apiVersion: "2024-06-01",
204
197
  },
@@ -231,7 +224,6 @@ async function run() {
231
224
  name: "<value>",
232
225
  type: "<value>",
233
226
  llmConfig: {
234
- model: "gpt-4o",
235
227
  version: "2024-05-13",
236
228
  apiVersion: "2024-06-01",
237
229
  },
@@ -25,9 +25,7 @@ const syllableSDK = new SyllableSDK({
25
25
  });
26
26
 
27
27
  async function run() {
28
- const result = await syllableSDK.services.list({
29
- limit: 25,
30
- });
28
+ const result = await syllableSDK.services.list({});
31
29
 
32
30
  // Handle the result
33
31
  console.log(result);
@@ -51,9 +49,7 @@ const syllableSDK = new SyllableSDKCore({
51
49
  });
52
50
 
53
51
  async function run() {
54
- const res = await servicesList(syllableSDK, {
55
- limit: 25,
56
- });
52
+ const res = await servicesList(syllableSDK, {});
57
53
 
58
54
  if (!res.ok) {
59
55
  throw res.error;
@@ -104,8 +104,8 @@ const syllableSDK = new SyllableSDK({
104
104
  async function run() {
105
105
  const result = await syllableSDK.sessionLabels.create({
106
106
  sessionId: 486589,
107
- type: "human-rating",
108
- code: "OK",
107
+ type: "auto-rating",
108
+ code: "BAD",
109
109
  userEmail: "<value>",
110
110
  issueCategories: [
111
111
  "Silent treatment",
@@ -136,8 +136,8 @@ const syllableSDK = new SyllableSDKCore({
136
136
  async function run() {
137
137
  const res = await sessionLabelsCreate(syllableSDK, {
138
138
  sessionId: 486589,
139
- type: "human-rating",
140
- code: "OK",
139
+ type: "auto-rating",
140
+ code: "BAD",
141
141
  userEmail: "<value>",
142
142
  issueCategories: [
143
143
  "Silent treatment",
@@ -191,9 +191,7 @@ const syllableSDK = new SyllableSDK({
191
191
  });
192
192
 
193
193
  async function run() {
194
- const result = await syllableSDK.sessionLabels.list({
195
- limit: 25,
196
- });
194
+ const result = await syllableSDK.sessionLabels.list({});
197
195
 
198
196
  // Handle the result
199
197
  console.log(result);
@@ -217,9 +215,7 @@ const syllableSDK = new SyllableSDKCore({
217
215
  });
218
216
 
219
217
  async function run() {
220
- const res = await sessionLabelsList(syllableSDK, {
221
- limit: 25,
222
- });
218
+ const res = await sessionLabelsList(syllableSDK, {});
223
219
 
224
220
  if (!res.ok) {
225
221
  throw res.error;
@@ -26,9 +26,7 @@ const syllableSDK = new SyllableSDK({
26
26
  });
27
27
 
28
28
  async function run() {
29
- const result = await syllableSDK.sessions.list({
30
- limit: 25,
31
- });
29
+ const result = await syllableSDK.sessions.list({});
32
30
 
33
31
  // Handle the result
34
32
  console.log(result);
@@ -52,9 +50,7 @@ const syllableSDK = new SyllableSDKCore({
52
50
  });
53
51
 
54
52
  async function run() {
55
- const res = await sessionsList(syllableSDK, {
56
- limit: 25,
57
- });
53
+ const res = await sessionsList(syllableSDK, {});
58
54
 
59
55
  if (!res.ok) {
60
56
  throw res.error;
@@ -27,9 +27,7 @@ const syllableSDK = new SyllableSDK({
27
27
  });
28
28
 
29
29
  async function run() {
30
- const result = await syllableSDK.channels.targets.availableTargets({
31
- limit: 25,
32
- });
30
+ const result = await syllableSDK.channels.targets.availableTargets({});
33
31
 
34
32
  // Handle the result
35
33
  console.log(result);
@@ -53,9 +51,7 @@ const syllableSDK = new SyllableSDKCore({
53
51
  });
54
52
 
55
53
  async function run() {
56
- const res = await channelsTargetsAvailableTargets(syllableSDK, {
57
- limit: 25,
58
- });
54
+ const res = await channelsTargetsAvailableTargets(syllableSDK, {});
59
55
 
60
56
  if (!res.ok) {
61
57
  throw res.error;
@@ -104,9 +100,7 @@ const syllableSDK = new SyllableSDK({
104
100
  });
105
101
 
106
102
  async function run() {
107
- const result = await syllableSDK.channels.targets.list({
108
- limit: 25,
109
- });
103
+ const result = await syllableSDK.channels.targets.list({});
110
104
 
111
105
  // Handle the result
112
106
  console.log(result);
@@ -130,9 +124,7 @@ const syllableSDK = new SyllableSDKCore({
130
124
  });
131
125
 
132
126
  async function run() {
133
- const res = await channelsTargetsList(syllableSDK, {
134
- limit: 25,
135
- });
127
+ const res = await channelsTargetsList(syllableSDK, {});
136
128
 
137
129
  if (!res.ok) {
138
130
  throw res.error;
@@ -188,7 +180,6 @@ async function run() {
188
180
  channelId: 638424,
189
181
  target: "<value>",
190
182
  targetMode: "chat",
191
- isTest: false,
192
183
  },
193
184
  });
194
185
 
@@ -221,7 +212,6 @@ async function run() {
221
212
  channelId: 638424,
222
213
  target: "<value>",
223
214
  targetMode: "chat",
224
- isTest: false,
225
215
  },
226
216
  });
227
217
 
@@ -359,7 +349,6 @@ async function run() {
359
349
  channelId: 597129,
360
350
  target: "<value>",
361
351
  targetMode: "chat",
362
- isTest: false,
363
352
  id: 991464,
364
353
  },
365
354
  });
@@ -394,7 +383,6 @@ async function run() {
394
383
  channelId: 597129,
395
384
  target: "<value>",
396
385
  targetMode: "chat",
397
- isTest: false,
398
386
  id: 991464,
399
387
  },
400
388
  });