From 35ac1a263e34d1cbcb8c1a24a70051b535b768c3 Mon Sep 17 00:00:00 2001 From: Anthony Messerschmidt Date: Thu, 17 Aug 2017 12:16:32 -0500 Subject: [PATCH] Added support for the sessionId parameter on the listArchives call. --- types/opentok/index.d.ts | 2 ++ types/opentok/opentok-tests.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/types/opentok/index.d.ts b/types/opentok/index.d.ts index d41e50b3e5..4667324d2e 100644 --- a/types/opentok/index.d.ts +++ b/types/opentok/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for opentok v2.3.2 // Project: https://github.com/opentok/opentok-node // Definitions by: Seth Westphal +// Anthony Messerschmidt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'opentok' { @@ -61,6 +62,7 @@ declare module 'opentok' { export interface ListArchivesOptions { count?: number; offset?: number; + sessionId?: string; } } diff --git a/types/opentok/opentok-tests.ts b/types/opentok/opentok-tests.ts index c6cdfbca66..e1df18c6ea 100644 --- a/types/opentok/opentok-tests.ts +++ b/types/opentok/opentok-tests.ts @@ -51,6 +51,7 @@ client.deleteArchive('ARCHIVE_ID', (err: Error) => { const listArchivesOptions: OpenTok.ListArchivesOptions = { count: 10, offset: 5, + sessionId: '9_JY17LWC6LeKsGQ2-DXQlBac32PLwRSI7TV0FKOIDEX0PsmejJOGhrRtAW3PWABpEW3C-cp', } client.listArchives(listArchivesOptions, (err: Error, archives: OpenTok.Archive[], totalCount: number) => {