syllable-sdk 0.1.0-alpha.34 → 0.1.0-alpha.35
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/FUNCTIONS.md +3 -1
- package/README.md +21 -7
- package/docs/sdks/agents/README.md +26 -12
- package/docs/sdks/channels/README.md +6 -2
- package/docs/sdks/conversations/README.md +6 -2
- package/docs/sdks/custommessages/README.md +170 -4
- package/docs/sdks/events/README.md +6 -2
- package/docs/sdks/prompts/README.md +6 -6
- package/docs/sdks/services/README.md +6 -2
- package/docs/sdks/sessionlabels/README.md +16 -6
- package/docs/sdks/sessions/README.md +6 -2
- package/docs/sdks/targets/README.md +24 -20
- package/docs/sdks/test/README.md +2 -0
- package/docs/sdks/tools/README.md +12 -8
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +4 -1
- package/lib/schemas.js.map +1 -1
- package/mintlify/mint.json +1 -1
- package/models/components/agentcreate.d.ts +6 -23
- package/models/components/agentcreate.d.ts.map +1 -1
- package/models/components/agentcreate.js +3 -26
- package/models/components/agentcreate.js.map +1 -1
- package/models/components/agentupdate.d.ts +6 -23
- package/models/components/agentupdate.d.ts.map +1 -1
- package/models/components/agentupdate.js +3 -26
- package/models/components/agentupdate.js.map +1 -1
- package/openapi.json +8 -16
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/schemas.ts +5 -0
- package/src/models/components/agentcreate.ts +4 -50
- package/src/models/components/agentupdate.ts +4 -54
package/FUNCTIONS.md
CHANGED
package/README.md
CHANGED
|
@@ -108,7 +108,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
108
108
|
});
|
|
109
109
|
|
|
110
110
|
async function run() {
|
|
111
|
-
const result = await syllableSDK.agents.list({
|
|
111
|
+
const result = await syllableSDK.agents.list({
|
|
112
|
+
limit: 25,
|
|
113
|
+
});
|
|
112
114
|
|
|
113
115
|
// Handle the result
|
|
114
116
|
console.log(result);
|
|
@@ -307,7 +309,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
307
309
|
});
|
|
308
310
|
|
|
309
311
|
async function run() {
|
|
310
|
-
const result = await syllableSDK.agents.list({
|
|
312
|
+
const result = await syllableSDK.agents.list({
|
|
313
|
+
limit: 25,
|
|
314
|
+
}, {
|
|
311
315
|
retries: {
|
|
312
316
|
strategy: "backoff",
|
|
313
317
|
backoff: {
|
|
@@ -347,7 +351,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
347
351
|
});
|
|
348
352
|
|
|
349
353
|
async function run() {
|
|
350
|
-
const result = await syllableSDK.agents.list({
|
|
354
|
+
const result = await syllableSDK.agents.list({
|
|
355
|
+
limit: 25,
|
|
356
|
+
});
|
|
351
357
|
|
|
352
358
|
// Handle the result
|
|
353
359
|
console.log(result);
|
|
@@ -384,7 +390,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
384
390
|
async function run() {
|
|
385
391
|
let result;
|
|
386
392
|
try {
|
|
387
|
-
result = await syllableSDK.agents.list({
|
|
393
|
+
result = await syllableSDK.agents.list({
|
|
394
|
+
limit: 25,
|
|
395
|
+
});
|
|
388
396
|
|
|
389
397
|
// Handle the result
|
|
390
398
|
console.log(result);
|
|
@@ -451,7 +459,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
451
459
|
});
|
|
452
460
|
|
|
453
461
|
async function run() {
|
|
454
|
-
const result = await syllableSDK.agents.list({
|
|
462
|
+
const result = await syllableSDK.agents.list({
|
|
463
|
+
limit: 25,
|
|
464
|
+
});
|
|
455
465
|
|
|
456
466
|
// Handle the result
|
|
457
467
|
console.log(result);
|
|
@@ -473,7 +483,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
473
483
|
});
|
|
474
484
|
|
|
475
485
|
async function run() {
|
|
476
|
-
const result = await syllableSDK.agents.list({
|
|
486
|
+
const result = await syllableSDK.agents.list({
|
|
487
|
+
limit: 25,
|
|
488
|
+
});
|
|
477
489
|
|
|
478
490
|
// Handle the result
|
|
479
491
|
console.log(result);
|
|
@@ -553,7 +565,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
553
565
|
});
|
|
554
566
|
|
|
555
567
|
async function run() {
|
|
556
|
-
const result = await syllableSDK.agents.list({
|
|
568
|
+
const result = await syllableSDK.agents.list({
|
|
569
|
+
limit: 25,
|
|
570
|
+
});
|
|
557
571
|
|
|
558
572
|
// Handle the result
|
|
559
573
|
console.log(result);
|
|
@@ -28,7 +28,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
async function run() {
|
|
31
|
-
const result = await syllableSDK.agents.list({
|
|
31
|
+
const result = await syllableSDK.agents.list({
|
|
32
|
+
limit: 25,
|
|
33
|
+
});
|
|
32
34
|
|
|
33
35
|
// Handle the result
|
|
34
36
|
console.log(result);
|
|
@@ -52,7 +54,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
52
54
|
});
|
|
53
55
|
|
|
54
56
|
async function run() {
|
|
55
|
-
const res = await agentsList(syllableSDK, {
|
|
57
|
+
const res = await agentsList(syllableSDK, {
|
|
58
|
+
limit: 25,
|
|
59
|
+
});
|
|
56
60
|
|
|
57
61
|
if (!res.ok) {
|
|
58
62
|
throw res.error;
|
|
@@ -111,10 +115,11 @@ async function run() {
|
|
|
111
115
|
"en-US",
|
|
112
116
|
"es-US",
|
|
113
117
|
],
|
|
114
|
-
variables: {
|
|
118
|
+
variables: {
|
|
119
|
+
|
|
120
|
+
},
|
|
115
121
|
toolHeaders: {
|
|
116
122
|
"key": "<value>",
|
|
117
|
-
"key1": "<value>",
|
|
118
123
|
},
|
|
119
124
|
});
|
|
120
125
|
|
|
@@ -150,10 +155,11 @@ async function run() {
|
|
|
150
155
|
"en-US",
|
|
151
156
|
"es-US",
|
|
152
157
|
],
|
|
153
|
-
variables: {
|
|
158
|
+
variables: {
|
|
159
|
+
|
|
160
|
+
},
|
|
154
161
|
toolHeaders: {
|
|
155
162
|
"key": "<value>",
|
|
156
|
-
"key1": "<value>",
|
|
157
163
|
},
|
|
158
164
|
});
|
|
159
165
|
|
|
@@ -209,17 +215,21 @@ async function run() {
|
|
|
209
215
|
type: "ca_v1",
|
|
210
216
|
promptId: 857478,
|
|
211
217
|
customMessageId: 597129,
|
|
212
|
-
timezone: "America/
|
|
218
|
+
timezone: "America/New_York",
|
|
213
219
|
languages: [
|
|
214
220
|
"en-US",
|
|
215
221
|
"es-US",
|
|
216
222
|
],
|
|
217
|
-
variables: {
|
|
223
|
+
variables: {
|
|
224
|
+
"key": "<value>",
|
|
225
|
+
"key1": "<value>",
|
|
226
|
+
"key2": "<value>",
|
|
227
|
+
},
|
|
218
228
|
toolHeaders: {
|
|
219
229
|
"key": "<value>",
|
|
220
230
|
"key1": "<value>",
|
|
221
231
|
},
|
|
222
|
-
id:
|
|
232
|
+
id: 488852,
|
|
223
233
|
});
|
|
224
234
|
|
|
225
235
|
// Handle the result
|
|
@@ -249,17 +259,21 @@ async function run() {
|
|
|
249
259
|
type: "ca_v1",
|
|
250
260
|
promptId: 857478,
|
|
251
261
|
customMessageId: 597129,
|
|
252
|
-
timezone: "America/
|
|
262
|
+
timezone: "America/New_York",
|
|
253
263
|
languages: [
|
|
254
264
|
"en-US",
|
|
255
265
|
"es-US",
|
|
256
266
|
],
|
|
257
|
-
variables: {
|
|
267
|
+
variables: {
|
|
268
|
+
"key": "<value>",
|
|
269
|
+
"key1": "<value>",
|
|
270
|
+
"key2": "<value>",
|
|
271
|
+
},
|
|
258
272
|
toolHeaders: {
|
|
259
273
|
"key": "<value>",
|
|
260
274
|
"key1": "<value>",
|
|
261
275
|
},
|
|
262
|
-
id:
|
|
276
|
+
id: 488852,
|
|
263
277
|
});
|
|
264
278
|
|
|
265
279
|
if (!res.ok) {
|
|
@@ -24,7 +24,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
async function run() {
|
|
27
|
-
const result = await syllableSDK.channels.list({
|
|
27
|
+
const result = await syllableSDK.channels.list({
|
|
28
|
+
limit: 25,
|
|
29
|
+
});
|
|
28
30
|
|
|
29
31
|
// Handle the result
|
|
30
32
|
console.log(result);
|
|
@@ -48,7 +50,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
48
50
|
});
|
|
49
51
|
|
|
50
52
|
async function run() {
|
|
51
|
-
const res = await channelsList(syllableSDK, {
|
|
53
|
+
const res = await channelsList(syllableSDK, {
|
|
54
|
+
limit: 25,
|
|
55
|
+
});
|
|
52
56
|
|
|
53
57
|
if (!res.ok) {
|
|
54
58
|
throw res.error;
|
|
@@ -23,7 +23,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
async function run() {
|
|
26
|
-
const result = await syllableSDK.conversations.list({
|
|
26
|
+
const result = await syllableSDK.conversations.list({
|
|
27
|
+
limit: 25,
|
|
28
|
+
});
|
|
27
29
|
|
|
28
30
|
// Handle the result
|
|
29
31
|
console.log(result);
|
|
@@ -47,7 +49,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
47
49
|
});
|
|
48
50
|
|
|
49
51
|
async function run() {
|
|
50
|
-
const res = await conversationsList(syllableSDK, {
|
|
52
|
+
const res = await conversationsList(syllableSDK, {
|
|
53
|
+
limit: 25,
|
|
54
|
+
});
|
|
51
55
|
|
|
52
56
|
if (!res.ok) {
|
|
53
57
|
throw res.error;
|
|
@@ -27,7 +27,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
|
-
const result = await syllableSDK.customMessages.list({
|
|
30
|
+
const result = await syllableSDK.customMessages.list({
|
|
31
|
+
limit: 25,
|
|
32
|
+
});
|
|
31
33
|
|
|
32
34
|
// Handle the result
|
|
33
35
|
console.log(result);
|
|
@@ -51,7 +53,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
51
53
|
});
|
|
52
54
|
|
|
53
55
|
async function run() {
|
|
54
|
-
const res = await customMessagesList(syllableSDK, {
|
|
56
|
+
const res = await customMessagesList(syllableSDK, {
|
|
57
|
+
limit: 25,
|
|
58
|
+
});
|
|
55
59
|
|
|
56
60
|
if (!res.ok) {
|
|
57
61
|
throw res.error;
|
|
@@ -103,6 +107,39 @@ async function run() {
|
|
|
103
107
|
const result = await syllableSDK.customMessages.create({
|
|
104
108
|
name: "<value>",
|
|
105
109
|
text: "<value>",
|
|
110
|
+
rules: [
|
|
111
|
+
{
|
|
112
|
+
description: "delightfully fumigate convection though zowie up bulky electronics",
|
|
113
|
+
timeRangeStart: "09:00",
|
|
114
|
+
timeRangeEnd: "17:00",
|
|
115
|
+
date: "2025-01-01",
|
|
116
|
+
daysOfWeek: [
|
|
117
|
+
"mo",
|
|
118
|
+
"tu",
|
|
119
|
+
"we",
|
|
120
|
+
"th",
|
|
121
|
+
"fr",
|
|
122
|
+
],
|
|
123
|
+
invert: false,
|
|
124
|
+
text: "Sorry, we're closed today",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
description: "yuck forager beneath please shadowy foodstuffs welcome",
|
|
128
|
+
timeRangeStart: "09:00",
|
|
129
|
+
timeRangeEnd: "17:00",
|
|
130
|
+
date: "2025-01-01",
|
|
131
|
+
daysOfWeek: [
|
|
132
|
+
"mo",
|
|
133
|
+
"tu",
|
|
134
|
+
"we",
|
|
135
|
+
"th",
|
|
136
|
+
"fr",
|
|
137
|
+
],
|
|
138
|
+
invert: true,
|
|
139
|
+
text: "Sorry, we're closed today",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
type: "greeting",
|
|
106
143
|
});
|
|
107
144
|
|
|
108
145
|
// Handle the result
|
|
@@ -130,6 +167,39 @@ async function run() {
|
|
|
130
167
|
const res = await customMessagesCreate(syllableSDK, {
|
|
131
168
|
name: "<value>",
|
|
132
169
|
text: "<value>",
|
|
170
|
+
rules: [
|
|
171
|
+
{
|
|
172
|
+
description: "delightfully fumigate convection though zowie up bulky electronics",
|
|
173
|
+
timeRangeStart: "09:00",
|
|
174
|
+
timeRangeEnd: "17:00",
|
|
175
|
+
date: "2025-01-01",
|
|
176
|
+
daysOfWeek: [
|
|
177
|
+
"mo",
|
|
178
|
+
"tu",
|
|
179
|
+
"we",
|
|
180
|
+
"th",
|
|
181
|
+
"fr",
|
|
182
|
+
],
|
|
183
|
+
invert: false,
|
|
184
|
+
text: "Sorry, we're closed today",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
description: "yuck forager beneath please shadowy foodstuffs welcome",
|
|
188
|
+
timeRangeStart: "09:00",
|
|
189
|
+
timeRangeEnd: "17:00",
|
|
190
|
+
date: "2025-01-01",
|
|
191
|
+
daysOfWeek: [
|
|
192
|
+
"mo",
|
|
193
|
+
"tu",
|
|
194
|
+
"we",
|
|
195
|
+
"th",
|
|
196
|
+
"fr",
|
|
197
|
+
],
|
|
198
|
+
invert: true,
|
|
199
|
+
text: "Sorry, we're closed today",
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
type: "greeting",
|
|
133
203
|
});
|
|
134
204
|
|
|
135
205
|
if (!res.ok) {
|
|
@@ -182,7 +252,55 @@ async function run() {
|
|
|
182
252
|
const result = await syllableSDK.customMessages.update({
|
|
183
253
|
name: "<value>",
|
|
184
254
|
text: "<value>",
|
|
185
|
-
|
|
255
|
+
rules: [
|
|
256
|
+
{
|
|
257
|
+
description: "technician eulogise whereas till mild than during",
|
|
258
|
+
timeRangeStart: "09:00",
|
|
259
|
+
timeRangeEnd: "17:00",
|
|
260
|
+
date: "2025-01-01",
|
|
261
|
+
daysOfWeek: [
|
|
262
|
+
"mo",
|
|
263
|
+
"tu",
|
|
264
|
+
"we",
|
|
265
|
+
"th",
|
|
266
|
+
"fr",
|
|
267
|
+
],
|
|
268
|
+
invert: true,
|
|
269
|
+
text: "Sorry, we're closed today",
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
description: "qualified cycle woot abseil perfumed fisherman with duh",
|
|
273
|
+
timeRangeStart: "09:00",
|
|
274
|
+
timeRangeEnd: "17:00",
|
|
275
|
+
date: "2025-01-01",
|
|
276
|
+
daysOfWeek: [
|
|
277
|
+
"mo",
|
|
278
|
+
"tu",
|
|
279
|
+
"we",
|
|
280
|
+
"th",
|
|
281
|
+
"fr",
|
|
282
|
+
],
|
|
283
|
+
invert: true,
|
|
284
|
+
text: "Sorry, we're closed today",
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
description: "ultimately in likely opera please antelope",
|
|
288
|
+
timeRangeStart: "09:00",
|
|
289
|
+
timeRangeEnd: "17:00",
|
|
290
|
+
date: "2025-01-01",
|
|
291
|
+
daysOfWeek: [
|
|
292
|
+
"mo",
|
|
293
|
+
"tu",
|
|
294
|
+
"we",
|
|
295
|
+
"th",
|
|
296
|
+
"fr",
|
|
297
|
+
],
|
|
298
|
+
invert: true,
|
|
299
|
+
text: "Sorry, we're closed today",
|
|
300
|
+
},
|
|
301
|
+
],
|
|
302
|
+
id: 975440,
|
|
303
|
+
type: "greeting",
|
|
186
304
|
});
|
|
187
305
|
|
|
188
306
|
// Handle the result
|
|
@@ -210,7 +328,55 @@ async function run() {
|
|
|
210
328
|
const res = await customMessagesUpdate(syllableSDK, {
|
|
211
329
|
name: "<value>",
|
|
212
330
|
text: "<value>",
|
|
213
|
-
|
|
331
|
+
rules: [
|
|
332
|
+
{
|
|
333
|
+
description: "technician eulogise whereas till mild than during",
|
|
334
|
+
timeRangeStart: "09:00",
|
|
335
|
+
timeRangeEnd: "17:00",
|
|
336
|
+
date: "2025-01-01",
|
|
337
|
+
daysOfWeek: [
|
|
338
|
+
"mo",
|
|
339
|
+
"tu",
|
|
340
|
+
"we",
|
|
341
|
+
"th",
|
|
342
|
+
"fr",
|
|
343
|
+
],
|
|
344
|
+
invert: true,
|
|
345
|
+
text: "Sorry, we're closed today",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
description: "qualified cycle woot abseil perfumed fisherman with duh",
|
|
349
|
+
timeRangeStart: "09:00",
|
|
350
|
+
timeRangeEnd: "17:00",
|
|
351
|
+
date: "2025-01-01",
|
|
352
|
+
daysOfWeek: [
|
|
353
|
+
"mo",
|
|
354
|
+
"tu",
|
|
355
|
+
"we",
|
|
356
|
+
"th",
|
|
357
|
+
"fr",
|
|
358
|
+
],
|
|
359
|
+
invert: true,
|
|
360
|
+
text: "Sorry, we're closed today",
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
description: "ultimately in likely opera please antelope",
|
|
364
|
+
timeRangeStart: "09:00",
|
|
365
|
+
timeRangeEnd: "17:00",
|
|
366
|
+
date: "2025-01-01",
|
|
367
|
+
daysOfWeek: [
|
|
368
|
+
"mo",
|
|
369
|
+
"tu",
|
|
370
|
+
"we",
|
|
371
|
+
"th",
|
|
372
|
+
"fr",
|
|
373
|
+
],
|
|
374
|
+
invert: true,
|
|
375
|
+
text: "Sorry, we're closed today",
|
|
376
|
+
},
|
|
377
|
+
],
|
|
378
|
+
id: 975440,
|
|
379
|
+
type: "greeting",
|
|
214
380
|
});
|
|
215
381
|
|
|
216
382
|
if (!res.ok) {
|
|
@@ -23,7 +23,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
async function run() {
|
|
26
|
-
const result = await syllableSDK.events.list({
|
|
26
|
+
const result = await syllableSDK.events.list({
|
|
27
|
+
limit: 25,
|
|
28
|
+
});
|
|
27
29
|
|
|
28
30
|
// Handle the result
|
|
29
31
|
console.log(result);
|
|
@@ -47,7 +49,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
47
49
|
});
|
|
48
50
|
|
|
49
51
|
async function run() {
|
|
50
|
-
const res = await eventsList(syllableSDK, {
|
|
52
|
+
const res = await eventsList(syllableSDK, {
|
|
53
|
+
limit: 25,
|
|
54
|
+
});
|
|
51
55
|
|
|
52
56
|
if (!res.ok) {
|
|
53
57
|
throw res.error;
|
|
@@ -28,7 +28,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
async function run() {
|
|
31
|
-
const result = await syllableSDK.prompts.list({
|
|
31
|
+
const result = await syllableSDK.prompts.list({
|
|
32
|
+
limit: 25,
|
|
33
|
+
});
|
|
32
34
|
|
|
33
35
|
// Handle the result
|
|
34
36
|
console.log(result);
|
|
@@ -52,7 +54,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
52
54
|
});
|
|
53
55
|
|
|
54
56
|
async function run() {
|
|
55
|
-
const res = await promptsList(syllableSDK, {
|
|
57
|
+
const res = await promptsList(syllableSDK, {
|
|
58
|
+
limit: 25,
|
|
59
|
+
});
|
|
56
60
|
|
|
57
61
|
if (!res.ok) {
|
|
58
62
|
throw res.error;
|
|
@@ -105,7 +109,6 @@ async function run() {
|
|
|
105
109
|
name: "<value>",
|
|
106
110
|
type: "<value>",
|
|
107
111
|
llmConfig: {
|
|
108
|
-
provider: "azure_openai",
|
|
109
112
|
model: "gpt-4o",
|
|
110
113
|
version: "2024-05-13",
|
|
111
114
|
apiVersion: "2024-06-01",
|
|
@@ -138,7 +141,6 @@ async function run() {
|
|
|
138
141
|
name: "<value>",
|
|
139
142
|
type: "<value>",
|
|
140
143
|
llmConfig: {
|
|
141
|
-
provider: "azure_openai",
|
|
142
144
|
model: "gpt-4o",
|
|
143
145
|
version: "2024-05-13",
|
|
144
146
|
apiVersion: "2024-06-01",
|
|
@@ -196,7 +198,6 @@ async function run() {
|
|
|
196
198
|
name: "<value>",
|
|
197
199
|
type: "<value>",
|
|
198
200
|
llmConfig: {
|
|
199
|
-
provider: "openai",
|
|
200
201
|
model: "gpt-4o",
|
|
201
202
|
version: "2024-05-13",
|
|
202
203
|
apiVersion: "2024-06-01",
|
|
@@ -230,7 +231,6 @@ async function run() {
|
|
|
230
231
|
name: "<value>",
|
|
231
232
|
type: "<value>",
|
|
232
233
|
llmConfig: {
|
|
233
|
-
provider: "openai",
|
|
234
234
|
model: "gpt-4o",
|
|
235
235
|
version: "2024-05-13",
|
|
236
236
|
apiVersion: "2024-06-01",
|
|
@@ -25,7 +25,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
async function run() {
|
|
28
|
-
const result = await syllableSDK.services.list({
|
|
28
|
+
const result = await syllableSDK.services.list({
|
|
29
|
+
limit: 25,
|
|
30
|
+
});
|
|
29
31
|
|
|
30
32
|
// Handle the result
|
|
31
33
|
console.log(result);
|
|
@@ -49,7 +51,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
49
51
|
});
|
|
50
52
|
|
|
51
53
|
async function run() {
|
|
52
|
-
const res = await servicesList(syllableSDK, {
|
|
54
|
+
const res = await servicesList(syllableSDK, {
|
|
55
|
+
limit: 25,
|
|
56
|
+
});
|
|
53
57
|
|
|
54
58
|
if (!res.ok) {
|
|
55
59
|
throw res.error;
|
|
@@ -104,9 +104,12 @@ const syllableSDK = new SyllableSDK({
|
|
|
104
104
|
async function run() {
|
|
105
105
|
const result = await syllableSDK.sessionLabels.create({
|
|
106
106
|
sessionId: 486589,
|
|
107
|
-
type: "
|
|
108
|
-
code: "
|
|
107
|
+
type: "human-rating",
|
|
108
|
+
code: "OK",
|
|
109
109
|
userEmail: "<value>",
|
|
110
|
+
issueCategories: [
|
|
111
|
+
"Silent treatment",
|
|
112
|
+
],
|
|
110
113
|
});
|
|
111
114
|
|
|
112
115
|
// Handle the result
|
|
@@ -133,9 +136,12 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
133
136
|
async function run() {
|
|
134
137
|
const res = await sessionLabelsCreate(syllableSDK, {
|
|
135
138
|
sessionId: 486589,
|
|
136
|
-
type: "
|
|
137
|
-
code: "
|
|
139
|
+
type: "human-rating",
|
|
140
|
+
code: "OK",
|
|
138
141
|
userEmail: "<value>",
|
|
142
|
+
issueCategories: [
|
|
143
|
+
"Silent treatment",
|
|
144
|
+
],
|
|
139
145
|
});
|
|
140
146
|
|
|
141
147
|
if (!res.ok) {
|
|
@@ -185,7 +191,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
185
191
|
});
|
|
186
192
|
|
|
187
193
|
async function run() {
|
|
188
|
-
const result = await syllableSDK.sessionLabels.list({
|
|
194
|
+
const result = await syllableSDK.sessionLabels.list({
|
|
195
|
+
limit: 25,
|
|
196
|
+
});
|
|
189
197
|
|
|
190
198
|
// Handle the result
|
|
191
199
|
console.log(result);
|
|
@@ -209,7 +217,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
209
217
|
});
|
|
210
218
|
|
|
211
219
|
async function run() {
|
|
212
|
-
const res = await sessionLabelsList(syllableSDK, {
|
|
220
|
+
const res = await sessionLabelsList(syllableSDK, {
|
|
221
|
+
limit: 25,
|
|
222
|
+
});
|
|
213
223
|
|
|
214
224
|
if (!res.ok) {
|
|
215
225
|
throw res.error;
|
|
@@ -26,7 +26,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
async function run() {
|
|
29
|
-
const result = await syllableSDK.sessions.list({
|
|
29
|
+
const result = await syllableSDK.sessions.list({
|
|
30
|
+
limit: 25,
|
|
31
|
+
});
|
|
30
32
|
|
|
31
33
|
// Handle the result
|
|
32
34
|
console.log(result);
|
|
@@ -50,7 +52,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
50
52
|
});
|
|
51
53
|
|
|
52
54
|
async function run() {
|
|
53
|
-
const res = await sessionsList(syllableSDK, {
|
|
55
|
+
const res = await sessionsList(syllableSDK, {
|
|
56
|
+
limit: 25,
|
|
57
|
+
});
|
|
54
58
|
|
|
55
59
|
if (!res.ok) {
|
|
56
60
|
throw res.error;
|