@runwayml/sdk 3.17.0 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/package.json +1 -1
- package/resources/realtime-sessions.d.mts +274 -0
- package/resources/realtime-sessions.d.mts.map +1 -1
- package/resources/realtime-sessions.d.ts +274 -0
- package/resources/realtime-sessions.d.ts.map +1 -1
- package/src/resources/realtime-sessions.ts +354 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.18.0 (2026-04-01)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.17.0...v3.18.0](https://github.com/runwayml/sdk-node/compare/v3.17.0...v3.18.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add tools parameter to realtime sessions ([3ca95a7](https://github.com/runwayml/sdk-node/commit/3ca95a7d79eb510b1156d3bd02ba3554109be274))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **internal:** gitignore generated `oidc` dir ([4beb1b1](https://github.com/runwayml/sdk-node/commit/4beb1b1826a5763cd28c966c705b270e5c89c501))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Chores
|
|
18
|
+
|
|
19
|
+
* **internal:** codegen related update ([5923778](https://github.com/runwayml/sdk-node/commit/5923778aefb50508e2b61ac31368e127d96ab22e))
|
|
20
|
+
* **internal:** update multipart form array serialization ([6034e99](https://github.com/runwayml/sdk-node/commit/6034e9945f15a789984853fcc1911bc04cdda8c4))
|
|
21
|
+
* **tests:** bump steady to v0.20.1 ([20342cd](https://github.com/runwayml/sdk-node/commit/20342cd1f609dcdef034a6b24fcbf3843c3459b9))
|
|
22
|
+
* **tests:** bump steady to v0.20.2 ([6cd7202](https://github.com/runwayml/sdk-node/commit/6cd7202bad8927cfa12a8bdf69f007c310ce71da))
|
|
23
|
+
|
|
3
24
|
## 3.17.0 (2026-03-25)
|
|
4
25
|
|
|
5
26
|
Full Changelog: [v3.16.0...v3.17.0](https://github.com/runwayml/sdk-node/compare/v3.16.0...v3.17.0)
|
package/package.json
CHANGED
|
@@ -161,6 +161,10 @@ export interface RealtimeSessionCreateParams {
|
|
|
161
161
|
* avatar default.
|
|
162
162
|
*/
|
|
163
163
|
startScript?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Tools available to the avatar during the session.
|
|
166
|
+
*/
|
|
167
|
+
tools?: Array<RealtimeSessionCreateParams.ClientEvent | RealtimeSessionCreateParams.BackendRpc>;
|
|
164
168
|
}
|
|
165
169
|
export declare namespace RealtimeSessionCreateParams {
|
|
166
170
|
/**
|
|
@@ -183,6 +187,276 @@ export declare namespace RealtimeSessionCreateParams {
|
|
|
183
187
|
avatarId: string;
|
|
184
188
|
type: 'custom';
|
|
185
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* A fire-and-forget tool that sends arguments to the frontend client of the
|
|
192
|
+
* realtime session.
|
|
193
|
+
*/
|
|
194
|
+
interface ClientEvent {
|
|
195
|
+
/**
|
|
196
|
+
* A description of when and how the tool should be used. Be specific so the avatar
|
|
197
|
+
* understands the right context to invoke it.
|
|
198
|
+
*/
|
|
199
|
+
description: string;
|
|
200
|
+
/**
|
|
201
|
+
* The tool name. Must start with a letter or underscore, followed by alphanumeric
|
|
202
|
+
* characters or underscores.
|
|
203
|
+
*/
|
|
204
|
+
name: string;
|
|
205
|
+
type: 'client_event';
|
|
206
|
+
parameters?: Array<ClientEvent.String | ClientEvent.Integer | ClientEvent.Number | ClientEvent.Boolean | ClientEvent.Array_ | ClientEvent.Object>;
|
|
207
|
+
}
|
|
208
|
+
namespace ClientEvent {
|
|
209
|
+
interface String {
|
|
210
|
+
/**
|
|
211
|
+
* A description of the parameter.
|
|
212
|
+
*/
|
|
213
|
+
description: string;
|
|
214
|
+
/**
|
|
215
|
+
* The parameter name.
|
|
216
|
+
*/
|
|
217
|
+
name: string;
|
|
218
|
+
type: 'string';
|
|
219
|
+
/**
|
|
220
|
+
* Allowed values for the parameter.
|
|
221
|
+
*/
|
|
222
|
+
enum?: Array<string>;
|
|
223
|
+
/**
|
|
224
|
+
* Whether the parameter is required.
|
|
225
|
+
*/
|
|
226
|
+
required?: boolean;
|
|
227
|
+
}
|
|
228
|
+
interface Integer {
|
|
229
|
+
/**
|
|
230
|
+
* A description of the parameter.
|
|
231
|
+
*/
|
|
232
|
+
description: string;
|
|
233
|
+
/**
|
|
234
|
+
* The parameter name.
|
|
235
|
+
*/
|
|
236
|
+
name: string;
|
|
237
|
+
type: 'integer';
|
|
238
|
+
/**
|
|
239
|
+
* Whether the parameter is required.
|
|
240
|
+
*/
|
|
241
|
+
required?: boolean;
|
|
242
|
+
}
|
|
243
|
+
interface Number {
|
|
244
|
+
/**
|
|
245
|
+
* A description of the parameter.
|
|
246
|
+
*/
|
|
247
|
+
description: string;
|
|
248
|
+
/**
|
|
249
|
+
* The parameter name.
|
|
250
|
+
*/
|
|
251
|
+
name: string;
|
|
252
|
+
type: 'number';
|
|
253
|
+
/**
|
|
254
|
+
* Whether the parameter is required.
|
|
255
|
+
*/
|
|
256
|
+
required?: boolean;
|
|
257
|
+
}
|
|
258
|
+
interface Boolean {
|
|
259
|
+
/**
|
|
260
|
+
* A description of the parameter.
|
|
261
|
+
*/
|
|
262
|
+
description: string;
|
|
263
|
+
/**
|
|
264
|
+
* The parameter name.
|
|
265
|
+
*/
|
|
266
|
+
name: string;
|
|
267
|
+
type: 'boolean';
|
|
268
|
+
/**
|
|
269
|
+
* Whether the parameter is required.
|
|
270
|
+
*/
|
|
271
|
+
required?: boolean;
|
|
272
|
+
}
|
|
273
|
+
interface Array_ {
|
|
274
|
+
/**
|
|
275
|
+
* A description of the parameter.
|
|
276
|
+
*/
|
|
277
|
+
description: string;
|
|
278
|
+
/**
|
|
279
|
+
* Item schema for array elements.
|
|
280
|
+
*/
|
|
281
|
+
items: Array_.Items;
|
|
282
|
+
/**
|
|
283
|
+
* The parameter name.
|
|
284
|
+
*/
|
|
285
|
+
name: string;
|
|
286
|
+
type: 'array';
|
|
287
|
+
/**
|
|
288
|
+
* Whether the parameter is required.
|
|
289
|
+
*/
|
|
290
|
+
required?: boolean;
|
|
291
|
+
}
|
|
292
|
+
namespace Array_ {
|
|
293
|
+
/**
|
|
294
|
+
* Item schema for array elements.
|
|
295
|
+
*/
|
|
296
|
+
interface Items {
|
|
297
|
+
/**
|
|
298
|
+
* The type of each element in the array.
|
|
299
|
+
*/
|
|
300
|
+
type: 'string' | 'integer' | 'number' | 'boolean';
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
interface Object {
|
|
304
|
+
/**
|
|
305
|
+
* A description of the parameter.
|
|
306
|
+
*/
|
|
307
|
+
description: string;
|
|
308
|
+
/**
|
|
309
|
+
* The parameter name.
|
|
310
|
+
*/
|
|
311
|
+
name: string;
|
|
312
|
+
/**
|
|
313
|
+
* The properties of the object.
|
|
314
|
+
*/
|
|
315
|
+
properties: Array<unknown>;
|
|
316
|
+
type: 'object';
|
|
317
|
+
/**
|
|
318
|
+
* Whether the parameter is required.
|
|
319
|
+
*/
|
|
320
|
+
required?: boolean;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* A tool that makes a round-trip RPC call to your backend server during the
|
|
325
|
+
* session.
|
|
326
|
+
*/
|
|
327
|
+
interface BackendRpc {
|
|
328
|
+
/**
|
|
329
|
+
* A description of when and how the tool should be used. Be specific so the avatar
|
|
330
|
+
* understands the right context to invoke it.
|
|
331
|
+
*/
|
|
332
|
+
description: string;
|
|
333
|
+
/**
|
|
334
|
+
* The tool name. Must start with a letter or underscore, followed by alphanumeric
|
|
335
|
+
* characters or underscores.
|
|
336
|
+
*/
|
|
337
|
+
name: string;
|
|
338
|
+
type: 'backend_rpc';
|
|
339
|
+
parameters?: Array<BackendRpc.String | BackendRpc.Integer | BackendRpc.Number | BackendRpc.Boolean | BackendRpc.Array_ | BackendRpc.Object>;
|
|
340
|
+
/**
|
|
341
|
+
* Maximum time to wait for the backend to respond.
|
|
342
|
+
*/
|
|
343
|
+
timeoutSeconds?: number;
|
|
344
|
+
}
|
|
345
|
+
namespace BackendRpc {
|
|
346
|
+
interface String {
|
|
347
|
+
/**
|
|
348
|
+
* A description of the parameter.
|
|
349
|
+
*/
|
|
350
|
+
description: string;
|
|
351
|
+
/**
|
|
352
|
+
* The parameter name.
|
|
353
|
+
*/
|
|
354
|
+
name: string;
|
|
355
|
+
type: 'string';
|
|
356
|
+
/**
|
|
357
|
+
* Allowed values for the parameter.
|
|
358
|
+
*/
|
|
359
|
+
enum?: Array<string>;
|
|
360
|
+
/**
|
|
361
|
+
* Whether the parameter is required.
|
|
362
|
+
*/
|
|
363
|
+
required?: boolean;
|
|
364
|
+
}
|
|
365
|
+
interface Integer {
|
|
366
|
+
/**
|
|
367
|
+
* A description of the parameter.
|
|
368
|
+
*/
|
|
369
|
+
description: string;
|
|
370
|
+
/**
|
|
371
|
+
* The parameter name.
|
|
372
|
+
*/
|
|
373
|
+
name: string;
|
|
374
|
+
type: 'integer';
|
|
375
|
+
/**
|
|
376
|
+
* Whether the parameter is required.
|
|
377
|
+
*/
|
|
378
|
+
required?: boolean;
|
|
379
|
+
}
|
|
380
|
+
interface Number {
|
|
381
|
+
/**
|
|
382
|
+
* A description of the parameter.
|
|
383
|
+
*/
|
|
384
|
+
description: string;
|
|
385
|
+
/**
|
|
386
|
+
* The parameter name.
|
|
387
|
+
*/
|
|
388
|
+
name: string;
|
|
389
|
+
type: 'number';
|
|
390
|
+
/**
|
|
391
|
+
* Whether the parameter is required.
|
|
392
|
+
*/
|
|
393
|
+
required?: boolean;
|
|
394
|
+
}
|
|
395
|
+
interface Boolean {
|
|
396
|
+
/**
|
|
397
|
+
* A description of the parameter.
|
|
398
|
+
*/
|
|
399
|
+
description: string;
|
|
400
|
+
/**
|
|
401
|
+
* The parameter name.
|
|
402
|
+
*/
|
|
403
|
+
name: string;
|
|
404
|
+
type: 'boolean';
|
|
405
|
+
/**
|
|
406
|
+
* Whether the parameter is required.
|
|
407
|
+
*/
|
|
408
|
+
required?: boolean;
|
|
409
|
+
}
|
|
410
|
+
interface Array_ {
|
|
411
|
+
/**
|
|
412
|
+
* A description of the parameter.
|
|
413
|
+
*/
|
|
414
|
+
description: string;
|
|
415
|
+
/**
|
|
416
|
+
* Item schema for array elements.
|
|
417
|
+
*/
|
|
418
|
+
items: Array_.Items;
|
|
419
|
+
/**
|
|
420
|
+
* The parameter name.
|
|
421
|
+
*/
|
|
422
|
+
name: string;
|
|
423
|
+
type: 'array';
|
|
424
|
+
/**
|
|
425
|
+
* Whether the parameter is required.
|
|
426
|
+
*/
|
|
427
|
+
required?: boolean;
|
|
428
|
+
}
|
|
429
|
+
namespace Array_ {
|
|
430
|
+
/**
|
|
431
|
+
* Item schema for array elements.
|
|
432
|
+
*/
|
|
433
|
+
interface Items {
|
|
434
|
+
/**
|
|
435
|
+
* The type of each element in the array.
|
|
436
|
+
*/
|
|
437
|
+
type: 'string' | 'integer' | 'number' | 'boolean';
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
interface Object {
|
|
441
|
+
/**
|
|
442
|
+
* A description of the parameter.
|
|
443
|
+
*/
|
|
444
|
+
description: string;
|
|
445
|
+
/**
|
|
446
|
+
* The parameter name.
|
|
447
|
+
*/
|
|
448
|
+
name: string;
|
|
449
|
+
/**
|
|
450
|
+
* The properties of the object.
|
|
451
|
+
*/
|
|
452
|
+
properties: Array<unknown>;
|
|
453
|
+
type: 'object';
|
|
454
|
+
/**
|
|
455
|
+
* Whether the parameter is required.
|
|
456
|
+
*/
|
|
457
|
+
required?: boolean;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
186
460
|
}
|
|
187
461
|
export declare namespace RealtimeSessions {
|
|
188
462
|
export { type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse, type RealtimeSessionRetrieveResponse as RealtimeSessionRetrieveResponse, type RealtimeSessionCreateParams as RealtimeSessionCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-sessions.d.mts","sourceRoot":"","sources":["../src/resources/realtime-sessions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,+BAA+B,CAAC;IAI3F;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,MAAM,+BAA+B,GACvC,+BAA+B,CAAC,QAAQ,GACxC,+BAA+B,CAAC,KAAK,GACrC,+BAA+B,CAAC,OAAO,GACvC,+BAA+B,CAAC,SAAS,GACzC,+BAA+B,CAAC,MAAM,GACtC,+BAA+B,CAAC,SAAS,CAAC;AAE9C,yBAAiB,+BAA+B,CAAC;IAC/C;;OAEG;IACH,UAAiB,QAAQ;QACvB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,WAAW,CAAC;QAEpB;;;WAGG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB;IAED;;OAEG;IACH,UAAi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pB;QAED,UAAiB,MAAM,CAAC;YACtB;;eAEG;YACH,UAAiB,KAAK;gBACpB;;mBAEG;gBACH,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;aACnD;SACF;QAED,UAAiB,MAAM;YACrB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YAE3B,IAAI,EAAE,QAAQ,CAAC;YAEf;;eAEG;YACH,QAAQ,CAAC,EAAE,OAAO,CAAC;SACpB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -161,6 +161,10 @@ export interface RealtimeSessionCreateParams {
|
|
|
161
161
|
* avatar default.
|
|
162
162
|
*/
|
|
163
163
|
startScript?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Tools available to the avatar during the session.
|
|
166
|
+
*/
|
|
167
|
+
tools?: Array<RealtimeSessionCreateParams.ClientEvent | RealtimeSessionCreateParams.BackendRpc>;
|
|
164
168
|
}
|
|
165
169
|
export declare namespace RealtimeSessionCreateParams {
|
|
166
170
|
/**
|
|
@@ -183,6 +187,276 @@ export declare namespace RealtimeSessionCreateParams {
|
|
|
183
187
|
avatarId: string;
|
|
184
188
|
type: 'custom';
|
|
185
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* A fire-and-forget tool that sends arguments to the frontend client of the
|
|
192
|
+
* realtime session.
|
|
193
|
+
*/
|
|
194
|
+
interface ClientEvent {
|
|
195
|
+
/**
|
|
196
|
+
* A description of when and how the tool should be used. Be specific so the avatar
|
|
197
|
+
* understands the right context to invoke it.
|
|
198
|
+
*/
|
|
199
|
+
description: string;
|
|
200
|
+
/**
|
|
201
|
+
* The tool name. Must start with a letter or underscore, followed by alphanumeric
|
|
202
|
+
* characters or underscores.
|
|
203
|
+
*/
|
|
204
|
+
name: string;
|
|
205
|
+
type: 'client_event';
|
|
206
|
+
parameters?: Array<ClientEvent.String | ClientEvent.Integer | ClientEvent.Number | ClientEvent.Boolean | ClientEvent.Array_ | ClientEvent.Object>;
|
|
207
|
+
}
|
|
208
|
+
namespace ClientEvent {
|
|
209
|
+
interface String {
|
|
210
|
+
/**
|
|
211
|
+
* A description of the parameter.
|
|
212
|
+
*/
|
|
213
|
+
description: string;
|
|
214
|
+
/**
|
|
215
|
+
* The parameter name.
|
|
216
|
+
*/
|
|
217
|
+
name: string;
|
|
218
|
+
type: 'string';
|
|
219
|
+
/**
|
|
220
|
+
* Allowed values for the parameter.
|
|
221
|
+
*/
|
|
222
|
+
enum?: Array<string>;
|
|
223
|
+
/**
|
|
224
|
+
* Whether the parameter is required.
|
|
225
|
+
*/
|
|
226
|
+
required?: boolean;
|
|
227
|
+
}
|
|
228
|
+
interface Integer {
|
|
229
|
+
/**
|
|
230
|
+
* A description of the parameter.
|
|
231
|
+
*/
|
|
232
|
+
description: string;
|
|
233
|
+
/**
|
|
234
|
+
* The parameter name.
|
|
235
|
+
*/
|
|
236
|
+
name: string;
|
|
237
|
+
type: 'integer';
|
|
238
|
+
/**
|
|
239
|
+
* Whether the parameter is required.
|
|
240
|
+
*/
|
|
241
|
+
required?: boolean;
|
|
242
|
+
}
|
|
243
|
+
interface Number {
|
|
244
|
+
/**
|
|
245
|
+
* A description of the parameter.
|
|
246
|
+
*/
|
|
247
|
+
description: string;
|
|
248
|
+
/**
|
|
249
|
+
* The parameter name.
|
|
250
|
+
*/
|
|
251
|
+
name: string;
|
|
252
|
+
type: 'number';
|
|
253
|
+
/**
|
|
254
|
+
* Whether the parameter is required.
|
|
255
|
+
*/
|
|
256
|
+
required?: boolean;
|
|
257
|
+
}
|
|
258
|
+
interface Boolean {
|
|
259
|
+
/**
|
|
260
|
+
* A description of the parameter.
|
|
261
|
+
*/
|
|
262
|
+
description: string;
|
|
263
|
+
/**
|
|
264
|
+
* The parameter name.
|
|
265
|
+
*/
|
|
266
|
+
name: string;
|
|
267
|
+
type: 'boolean';
|
|
268
|
+
/**
|
|
269
|
+
* Whether the parameter is required.
|
|
270
|
+
*/
|
|
271
|
+
required?: boolean;
|
|
272
|
+
}
|
|
273
|
+
interface Array_ {
|
|
274
|
+
/**
|
|
275
|
+
* A description of the parameter.
|
|
276
|
+
*/
|
|
277
|
+
description: string;
|
|
278
|
+
/**
|
|
279
|
+
* Item schema for array elements.
|
|
280
|
+
*/
|
|
281
|
+
items: Array_.Items;
|
|
282
|
+
/**
|
|
283
|
+
* The parameter name.
|
|
284
|
+
*/
|
|
285
|
+
name: string;
|
|
286
|
+
type: 'array';
|
|
287
|
+
/**
|
|
288
|
+
* Whether the parameter is required.
|
|
289
|
+
*/
|
|
290
|
+
required?: boolean;
|
|
291
|
+
}
|
|
292
|
+
namespace Array_ {
|
|
293
|
+
/**
|
|
294
|
+
* Item schema for array elements.
|
|
295
|
+
*/
|
|
296
|
+
interface Items {
|
|
297
|
+
/**
|
|
298
|
+
* The type of each element in the array.
|
|
299
|
+
*/
|
|
300
|
+
type: 'string' | 'integer' | 'number' | 'boolean';
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
interface Object {
|
|
304
|
+
/**
|
|
305
|
+
* A description of the parameter.
|
|
306
|
+
*/
|
|
307
|
+
description: string;
|
|
308
|
+
/**
|
|
309
|
+
* The parameter name.
|
|
310
|
+
*/
|
|
311
|
+
name: string;
|
|
312
|
+
/**
|
|
313
|
+
* The properties of the object.
|
|
314
|
+
*/
|
|
315
|
+
properties: Array<unknown>;
|
|
316
|
+
type: 'object';
|
|
317
|
+
/**
|
|
318
|
+
* Whether the parameter is required.
|
|
319
|
+
*/
|
|
320
|
+
required?: boolean;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* A tool that makes a round-trip RPC call to your backend server during the
|
|
325
|
+
* session.
|
|
326
|
+
*/
|
|
327
|
+
interface BackendRpc {
|
|
328
|
+
/**
|
|
329
|
+
* A description of when and how the tool should be used. Be specific so the avatar
|
|
330
|
+
* understands the right context to invoke it.
|
|
331
|
+
*/
|
|
332
|
+
description: string;
|
|
333
|
+
/**
|
|
334
|
+
* The tool name. Must start with a letter or underscore, followed by alphanumeric
|
|
335
|
+
* characters or underscores.
|
|
336
|
+
*/
|
|
337
|
+
name: string;
|
|
338
|
+
type: 'backend_rpc';
|
|
339
|
+
parameters?: Array<BackendRpc.String | BackendRpc.Integer | BackendRpc.Number | BackendRpc.Boolean | BackendRpc.Array_ | BackendRpc.Object>;
|
|
340
|
+
/**
|
|
341
|
+
* Maximum time to wait for the backend to respond.
|
|
342
|
+
*/
|
|
343
|
+
timeoutSeconds?: number;
|
|
344
|
+
}
|
|
345
|
+
namespace BackendRpc {
|
|
346
|
+
interface String {
|
|
347
|
+
/**
|
|
348
|
+
* A description of the parameter.
|
|
349
|
+
*/
|
|
350
|
+
description: string;
|
|
351
|
+
/**
|
|
352
|
+
* The parameter name.
|
|
353
|
+
*/
|
|
354
|
+
name: string;
|
|
355
|
+
type: 'string';
|
|
356
|
+
/**
|
|
357
|
+
* Allowed values for the parameter.
|
|
358
|
+
*/
|
|
359
|
+
enum?: Array<string>;
|
|
360
|
+
/**
|
|
361
|
+
* Whether the parameter is required.
|
|
362
|
+
*/
|
|
363
|
+
required?: boolean;
|
|
364
|
+
}
|
|
365
|
+
interface Integer {
|
|
366
|
+
/**
|
|
367
|
+
* A description of the parameter.
|
|
368
|
+
*/
|
|
369
|
+
description: string;
|
|
370
|
+
/**
|
|
371
|
+
* The parameter name.
|
|
372
|
+
*/
|
|
373
|
+
name: string;
|
|
374
|
+
type: 'integer';
|
|
375
|
+
/**
|
|
376
|
+
* Whether the parameter is required.
|
|
377
|
+
*/
|
|
378
|
+
required?: boolean;
|
|
379
|
+
}
|
|
380
|
+
interface Number {
|
|
381
|
+
/**
|
|
382
|
+
* A description of the parameter.
|
|
383
|
+
*/
|
|
384
|
+
description: string;
|
|
385
|
+
/**
|
|
386
|
+
* The parameter name.
|
|
387
|
+
*/
|
|
388
|
+
name: string;
|
|
389
|
+
type: 'number';
|
|
390
|
+
/**
|
|
391
|
+
* Whether the parameter is required.
|
|
392
|
+
*/
|
|
393
|
+
required?: boolean;
|
|
394
|
+
}
|
|
395
|
+
interface Boolean {
|
|
396
|
+
/**
|
|
397
|
+
* A description of the parameter.
|
|
398
|
+
*/
|
|
399
|
+
description: string;
|
|
400
|
+
/**
|
|
401
|
+
* The parameter name.
|
|
402
|
+
*/
|
|
403
|
+
name: string;
|
|
404
|
+
type: 'boolean';
|
|
405
|
+
/**
|
|
406
|
+
* Whether the parameter is required.
|
|
407
|
+
*/
|
|
408
|
+
required?: boolean;
|
|
409
|
+
}
|
|
410
|
+
interface Array_ {
|
|
411
|
+
/**
|
|
412
|
+
* A description of the parameter.
|
|
413
|
+
*/
|
|
414
|
+
description: string;
|
|
415
|
+
/**
|
|
416
|
+
* Item schema for array elements.
|
|
417
|
+
*/
|
|
418
|
+
items: Array_.Items;
|
|
419
|
+
/**
|
|
420
|
+
* The parameter name.
|
|
421
|
+
*/
|
|
422
|
+
name: string;
|
|
423
|
+
type: 'array';
|
|
424
|
+
/**
|
|
425
|
+
* Whether the parameter is required.
|
|
426
|
+
*/
|
|
427
|
+
required?: boolean;
|
|
428
|
+
}
|
|
429
|
+
namespace Array_ {
|
|
430
|
+
/**
|
|
431
|
+
* Item schema for array elements.
|
|
432
|
+
*/
|
|
433
|
+
interface Items {
|
|
434
|
+
/**
|
|
435
|
+
* The type of each element in the array.
|
|
436
|
+
*/
|
|
437
|
+
type: 'string' | 'integer' | 'number' | 'boolean';
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
interface Object {
|
|
441
|
+
/**
|
|
442
|
+
* A description of the parameter.
|
|
443
|
+
*/
|
|
444
|
+
description: string;
|
|
445
|
+
/**
|
|
446
|
+
* The parameter name.
|
|
447
|
+
*/
|
|
448
|
+
name: string;
|
|
449
|
+
/**
|
|
450
|
+
* The properties of the object.
|
|
451
|
+
*/
|
|
452
|
+
properties: Array<unknown>;
|
|
453
|
+
type: 'object';
|
|
454
|
+
/**
|
|
455
|
+
* Whether the parameter is required.
|
|
456
|
+
*/
|
|
457
|
+
required?: boolean;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
186
460
|
}
|
|
187
461
|
export declare namespace RealtimeSessions {
|
|
188
462
|
export { type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse, type RealtimeSessionRetrieveResponse as RealtimeSessionRetrieveResponse, type RealtimeSessionCreateParams as RealtimeSessionCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-sessions.d.ts","sourceRoot":"","sources":["../src/resources/realtime-sessions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,+BAA+B,CAAC;IAI3F;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,MAAM,+BAA+B,GACvC,+BAA+B,CAAC,QAAQ,GACxC,+BAA+B,CAAC,KAAK,GACrC,+BAA+B,CAAC,OAA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AAE,MAAM,CAAC;YAEb,IAAI,EAAE,SAAS,CAAC;YAEhB;;eAEG;YACH,QAAQ,CAAC,EAAE,OAAO,CAAC;SACpB;QAED,UAAiB,MAAM;YACrB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;YAEpB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb,IAAI,EAAE,OAAO,CAAC;YAEd;;eAEG;YACH,QAAQ,CAAC,EAAE,OAAO,CAAC;SACpB;QAED,UAAiB,MAAM,CAAC;YACtB;;eAEG;YACH,UAAiB,KAAK;gBACpB;;mBAEG;gBACH,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;aACnD;SACF;QAED,UAAiB,MAAM;YACrB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YAE3B,IAAI,EAAE,QAAQ,CAAC;YAEf;;eAEG;YACH,QAAQ,CAAC,EAAE,OAAO,CAAC;SACpB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -217,6 +217,11 @@ export interface RealtimeSessionCreateParams {
|
|
|
217
217
|
* avatar default.
|
|
218
218
|
*/
|
|
219
219
|
startScript?: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Tools available to the avatar during the session.
|
|
223
|
+
*/
|
|
224
|
+
tools?: Array<RealtimeSessionCreateParams.ClientEvent | RealtimeSessionCreateParams.BackendRpc>;
|
|
220
225
|
}
|
|
221
226
|
|
|
222
227
|
export namespace RealtimeSessionCreateParams {
|
|
@@ -252,6 +257,355 @@ export namespace RealtimeSessionCreateParams {
|
|
|
252
257
|
|
|
253
258
|
type: 'custom';
|
|
254
259
|
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* A fire-and-forget tool that sends arguments to the frontend client of the
|
|
263
|
+
* realtime session.
|
|
264
|
+
*/
|
|
265
|
+
export interface ClientEvent {
|
|
266
|
+
/**
|
|
267
|
+
* A description of when and how the tool should be used. Be specific so the avatar
|
|
268
|
+
* understands the right context to invoke it.
|
|
269
|
+
*/
|
|
270
|
+
description: string;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* The tool name. Must start with a letter or underscore, followed by alphanumeric
|
|
274
|
+
* characters or underscores.
|
|
275
|
+
*/
|
|
276
|
+
name: string;
|
|
277
|
+
|
|
278
|
+
type: 'client_event';
|
|
279
|
+
|
|
280
|
+
parameters?: Array<
|
|
281
|
+
| ClientEvent.String
|
|
282
|
+
| ClientEvent.Integer
|
|
283
|
+
| ClientEvent.Number
|
|
284
|
+
| ClientEvent.Boolean
|
|
285
|
+
| ClientEvent.Array_
|
|
286
|
+
| ClientEvent.Object
|
|
287
|
+
>;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export namespace ClientEvent {
|
|
291
|
+
export interface String {
|
|
292
|
+
/**
|
|
293
|
+
* A description of the parameter.
|
|
294
|
+
*/
|
|
295
|
+
description: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* The parameter name.
|
|
299
|
+
*/
|
|
300
|
+
name: string;
|
|
301
|
+
|
|
302
|
+
type: 'string';
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Allowed values for the parameter.
|
|
306
|
+
*/
|
|
307
|
+
enum?: Array<string>;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Whether the parameter is required.
|
|
311
|
+
*/
|
|
312
|
+
required?: boolean;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export interface Integer {
|
|
316
|
+
/**
|
|
317
|
+
* A description of the parameter.
|
|
318
|
+
*/
|
|
319
|
+
description: string;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* The parameter name.
|
|
323
|
+
*/
|
|
324
|
+
name: string;
|
|
325
|
+
|
|
326
|
+
type: 'integer';
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Whether the parameter is required.
|
|
330
|
+
*/
|
|
331
|
+
required?: boolean;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export interface Number {
|
|
335
|
+
/**
|
|
336
|
+
* A description of the parameter.
|
|
337
|
+
*/
|
|
338
|
+
description: string;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* The parameter name.
|
|
342
|
+
*/
|
|
343
|
+
name: string;
|
|
344
|
+
|
|
345
|
+
type: 'number';
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Whether the parameter is required.
|
|
349
|
+
*/
|
|
350
|
+
required?: boolean;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export interface Boolean {
|
|
354
|
+
/**
|
|
355
|
+
* A description of the parameter.
|
|
356
|
+
*/
|
|
357
|
+
description: string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* The parameter name.
|
|
361
|
+
*/
|
|
362
|
+
name: string;
|
|
363
|
+
|
|
364
|
+
type: 'boolean';
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Whether the parameter is required.
|
|
368
|
+
*/
|
|
369
|
+
required?: boolean;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export interface Array_ {
|
|
373
|
+
/**
|
|
374
|
+
* A description of the parameter.
|
|
375
|
+
*/
|
|
376
|
+
description: string;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Item schema for array elements.
|
|
380
|
+
*/
|
|
381
|
+
items: Array_.Items;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* The parameter name.
|
|
385
|
+
*/
|
|
386
|
+
name: string;
|
|
387
|
+
|
|
388
|
+
type: 'array';
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Whether the parameter is required.
|
|
392
|
+
*/
|
|
393
|
+
required?: boolean;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export namespace Array_ {
|
|
397
|
+
/**
|
|
398
|
+
* Item schema for array elements.
|
|
399
|
+
*/
|
|
400
|
+
export interface Items {
|
|
401
|
+
/**
|
|
402
|
+
* The type of each element in the array.
|
|
403
|
+
*/
|
|
404
|
+
type: 'string' | 'integer' | 'number' | 'boolean';
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export interface Object {
|
|
409
|
+
/**
|
|
410
|
+
* A description of the parameter.
|
|
411
|
+
*/
|
|
412
|
+
description: string;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* The parameter name.
|
|
416
|
+
*/
|
|
417
|
+
name: string;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* The properties of the object.
|
|
421
|
+
*/
|
|
422
|
+
properties: Array<unknown>;
|
|
423
|
+
|
|
424
|
+
type: 'object';
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Whether the parameter is required.
|
|
428
|
+
*/
|
|
429
|
+
required?: boolean;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* A tool that makes a round-trip RPC call to your backend server during the
|
|
435
|
+
* session.
|
|
436
|
+
*/
|
|
437
|
+
export interface BackendRpc {
|
|
438
|
+
/**
|
|
439
|
+
* A description of when and how the tool should be used. Be specific so the avatar
|
|
440
|
+
* understands the right context to invoke it.
|
|
441
|
+
*/
|
|
442
|
+
description: string;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* The tool name. Must start with a letter or underscore, followed by alphanumeric
|
|
446
|
+
* characters or underscores.
|
|
447
|
+
*/
|
|
448
|
+
name: string;
|
|
449
|
+
|
|
450
|
+
type: 'backend_rpc';
|
|
451
|
+
|
|
452
|
+
parameters?: Array<
|
|
453
|
+
| BackendRpc.String
|
|
454
|
+
| BackendRpc.Integer
|
|
455
|
+
| BackendRpc.Number
|
|
456
|
+
| BackendRpc.Boolean
|
|
457
|
+
| BackendRpc.Array_
|
|
458
|
+
| BackendRpc.Object
|
|
459
|
+
>;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Maximum time to wait for the backend to respond.
|
|
463
|
+
*/
|
|
464
|
+
timeoutSeconds?: number;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export namespace BackendRpc {
|
|
468
|
+
export interface String {
|
|
469
|
+
/**
|
|
470
|
+
* A description of the parameter.
|
|
471
|
+
*/
|
|
472
|
+
description: string;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* The parameter name.
|
|
476
|
+
*/
|
|
477
|
+
name: string;
|
|
478
|
+
|
|
479
|
+
type: 'string';
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Allowed values for the parameter.
|
|
483
|
+
*/
|
|
484
|
+
enum?: Array<string>;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Whether the parameter is required.
|
|
488
|
+
*/
|
|
489
|
+
required?: boolean;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export interface Integer {
|
|
493
|
+
/**
|
|
494
|
+
* A description of the parameter.
|
|
495
|
+
*/
|
|
496
|
+
description: string;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* The parameter name.
|
|
500
|
+
*/
|
|
501
|
+
name: string;
|
|
502
|
+
|
|
503
|
+
type: 'integer';
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Whether the parameter is required.
|
|
507
|
+
*/
|
|
508
|
+
required?: boolean;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export interface Number {
|
|
512
|
+
/**
|
|
513
|
+
* A description of the parameter.
|
|
514
|
+
*/
|
|
515
|
+
description: string;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* The parameter name.
|
|
519
|
+
*/
|
|
520
|
+
name: string;
|
|
521
|
+
|
|
522
|
+
type: 'number';
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Whether the parameter is required.
|
|
526
|
+
*/
|
|
527
|
+
required?: boolean;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
export interface Boolean {
|
|
531
|
+
/**
|
|
532
|
+
* A description of the parameter.
|
|
533
|
+
*/
|
|
534
|
+
description: string;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* The parameter name.
|
|
538
|
+
*/
|
|
539
|
+
name: string;
|
|
540
|
+
|
|
541
|
+
type: 'boolean';
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Whether the parameter is required.
|
|
545
|
+
*/
|
|
546
|
+
required?: boolean;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export interface Array_ {
|
|
550
|
+
/**
|
|
551
|
+
* A description of the parameter.
|
|
552
|
+
*/
|
|
553
|
+
description: string;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Item schema for array elements.
|
|
557
|
+
*/
|
|
558
|
+
items: Array_.Items;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* The parameter name.
|
|
562
|
+
*/
|
|
563
|
+
name: string;
|
|
564
|
+
|
|
565
|
+
type: 'array';
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Whether the parameter is required.
|
|
569
|
+
*/
|
|
570
|
+
required?: boolean;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
export namespace Array_ {
|
|
574
|
+
/**
|
|
575
|
+
* Item schema for array elements.
|
|
576
|
+
*/
|
|
577
|
+
export interface Items {
|
|
578
|
+
/**
|
|
579
|
+
* The type of each element in the array.
|
|
580
|
+
*/
|
|
581
|
+
type: 'string' | 'integer' | 'number' | 'boolean';
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export interface Object {
|
|
586
|
+
/**
|
|
587
|
+
* A description of the parameter.
|
|
588
|
+
*/
|
|
589
|
+
description: string;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* The parameter name.
|
|
593
|
+
*/
|
|
594
|
+
name: string;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* The properties of the object.
|
|
598
|
+
*/
|
|
599
|
+
properties: Array<unknown>;
|
|
600
|
+
|
|
601
|
+
type: 'object';
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Whether the parameter is required.
|
|
605
|
+
*/
|
|
606
|
+
required?: boolean;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
255
609
|
}
|
|
256
610
|
|
|
257
611
|
export declare namespace RealtimeSessions {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.18.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.18.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.18.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.18.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|