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) => {