New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@deepgram/sdk

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deepgram/sdk - npm Package Compare versions

Comparing version 3.9.0 to 3.10.0

dist/main/lib/enums/AgentEvents.d.ts

9

dist/main/DeepgramClient.d.ts

@@ -1,2 +0,2 @@

import { AbstractClient, ListenClient, ManageClient, ReadClient, OnPremClient, SelfHostedRestClient, SpeakClient, ModelsRestClient } from "./packages";
import { AbstractClient, AgentLiveClient, ListenClient, ManageClient, ReadClient, OnPremClient, SelfHostedRestClient, SpeakClient, ModelsRestClient } from "./packages";
/**

@@ -52,2 +52,9 @@ * The DeepgramClient class provides access to various Deepgram API clients, including ListenClient, ManageClient, SelfHostedRestClient, ReadClient, and SpeakClient.

/**
* Returns a new instance of the AgentLiveClient, which provides access to Deepgram's Voice Agent API.
*
* @returns {AgentLiveClient} A new instance of the AgentLiveClient.
* @beta
*/
agent(endpoint?: string): AgentLiveClient;
/**
* @deprecated

@@ -54,0 +61,0 @@ * @see https://dpgr.am/js-v3

@@ -69,2 +69,11 @@ "use strict";

/**
* Returns a new instance of the AgentLiveClient, which provides access to Deepgram's Voice Agent API.
*
* @returns {AgentLiveClient} A new instance of the AgentLiveClient.
* @beta
*/
agent(endpoint = "/agent") {
return new packages_1.AgentLiveClient(this.options, endpoint);
}
/**
* @deprecated

@@ -71,0 +80,0 @@ * @see https://dpgr.am/js-v3

@@ -11,3 +11,5 @@ import type { DefaultNamespaceOptions, DefaultClientOptions } from "./types";

export declare const DEFAULT_URL = "https://api.deepgram.com";
export declare const DEFAULT_AGENT_URL = "wss://agent.deepgram.com";
export declare const DEFAULT_GLOBAL_OPTIONS: Partial<DefaultNamespaceOptions>;
export declare const DEFAULT_AGENT_OPTIONS: Partial<DefaultNamespaceOptions>;
export declare const DEFAULT_OPTIONS: DefaultClientOptions;

@@ -14,0 +16,0 @@ export declare enum SOCKET_STATES {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CONNECTION_STATE = exports.SOCKET_STATES = exports.DEFAULT_OPTIONS = exports.DEFAULT_GLOBAL_OPTIONS = exports.DEFAULT_URL = exports.DEFAULT_HEADERS = exports.BROWSER_AGENT = exports.BUN_VERSION = exports.NODE_VERSION = void 0;
exports.CONNECTION_STATE = exports.SOCKET_STATES = exports.DEFAULT_OPTIONS = exports.DEFAULT_AGENT_OPTIONS = exports.DEFAULT_GLOBAL_OPTIONS = exports.DEFAULT_AGENT_URL = exports.DEFAULT_URL = exports.DEFAULT_HEADERS = exports.BROWSER_AGENT = exports.BUN_VERSION = exports.NODE_VERSION = void 0;
const helpers_1 = require("./helpers");

@@ -35,2 +35,3 @@ const version_1 = require("./version");

exports.DEFAULT_URL = "https://api.deepgram.com";
exports.DEFAULT_AGENT_URL = "wss://agent.deepgram.com";
exports.DEFAULT_GLOBAL_OPTIONS = {

@@ -42,4 +43,11 @@ fetch: { options: { url: exports.DEFAULT_URL, headers: exports.DEFAULT_HEADERS } },

};
exports.DEFAULT_AGENT_OPTIONS = {
fetch: { options: { url: exports.DEFAULT_URL, headers: exports.DEFAULT_HEADERS } },
websocket: {
options: { url: exports.DEFAULT_AGENT_URL, _nodeOnlyHeaders: exports.DEFAULT_HEADERS },
},
};
exports.DEFAULT_OPTIONS = {
global: exports.DEFAULT_GLOBAL_OPTIONS,
agent: exports.DEFAULT_AGENT_OPTIONS,
};

@@ -46,0 +54,0 @@ var SOCKET_STATES;

@@ -0,1 +1,2 @@

export * from "./AgentEvents";
export * from "./LiveConnectionState";

@@ -2,0 +3,0 @@ export * from "./LiveTranscriptionEvents";

@@ -17,2 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./AgentEvents"), exports);
__exportStar(require("./LiveConnectionState"), exports);

@@ -19,0 +20,0 @@ __exportStar(require("./LiveTranscriptionEvents"), exports);

@@ -70,2 +70,3 @@ import { Fetch, FetchOptions } from "./Fetch";

speak?: NamespaceOptions;
agent?: NamespaceOptions;
/**

@@ -72,0 +73,0 @@ * @deprecated as of 3.4, use a namespace like `global` instead

@@ -0,1 +1,2 @@

export * from "./AgentLiveSchema";
export * from "./AnalyzeSchema";

@@ -11,2 +12,3 @@ export * from "./AsyncAnalyzeResponse";

export * from "./Fetch";
export * from "./FunctionCallResponse";
export * from "./GetModelsResponse";

@@ -13,0 +15,0 @@ export * from "./GetModelsSchema";

@@ -17,2 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./AgentLiveSchema"), exports);
__exportStar(require("./AnalyzeSchema"), exports);

@@ -28,2 +29,3 @@ __exportStar(require("./AsyncAnalyzeResponse"), exports);

__exportStar(require("./Fetch"), exports);
__exportStar(require("./FunctionCallResponse"), exports);
__exportStar(require("./GetModelsResponse"), exports);

@@ -30,0 +32,0 @@ __exportStar(require("./GetModelsSchema"), exports);

@@ -33,3 +33,4 @@ export interface LiveTranscriptionEvent {

};
from_finalize?: boolean;
}
//# sourceMappingURL=LiveTranscriptionEvent.d.ts.map

2

dist/main/lib/version.d.ts

@@ -1,2 +0,2 @@

export declare const version = "3.9.0";
export declare const version = "3.10.0";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "3.9.0";
exports.version = "3.10.0";
//# sourceMappingURL=version.js.map

@@ -227,4 +227,4 @@ "use strict";

if (typeof data !== "string") {
if (data.byteLength === 0) {
this.log("warn", "skipping `send` for zero-byte blob", data);
if (!(data === null || data === void 0 ? void 0 : data.byteLength)) {
this.log("warn", "skipping `send` for zero-byte payload", data);
return;

@@ -231,0 +231,0 @@ }

export * from "./AbstractClient";
export * from "./AbstractLiveClient";
export * from "./AbstractRestClient";
export * from "./AgentLiveClient";
export * from "./ListenClient";

@@ -5,0 +6,0 @@ export * from "./ListenLiveClient";

@@ -20,2 +20,3 @@ "use strict";

__exportStar(require("./AbstractRestClient"), exports);
__exportStar(require("./AgentLiveClient"), exports);
__exportStar(require("./ListenClient"), exports);

@@ -22,0 +23,0 @@ __exportStar(require("./ListenLiveClient"), exports);

@@ -1,2 +0,2 @@

import { AbstractClient, ListenClient, ManageClient, ReadClient, OnPremClient, SelfHostedRestClient, SpeakClient, ModelsRestClient } from "./packages";
import { AbstractClient, AgentLiveClient, ListenClient, ManageClient, ReadClient, OnPremClient, SelfHostedRestClient, SpeakClient, ModelsRestClient } from "./packages";
/**

@@ -52,2 +52,9 @@ * The DeepgramClient class provides access to various Deepgram API clients, including ListenClient, ManageClient, SelfHostedRestClient, ReadClient, and SpeakClient.

/**
* Returns a new instance of the AgentLiveClient, which provides access to Deepgram's Voice Agent API.
*
* @returns {AgentLiveClient} A new instance of the AgentLiveClient.
* @beta
*/
agent(endpoint?: string): AgentLiveClient;
/**
* @deprecated

@@ -54,0 +61,0 @@ * @see https://dpgr.am/js-v3

import { DeepgramVersionError } from "./lib/errors";
import { AbstractClient, ListenClient, ManageClient, ReadClient, SelfHostedRestClient, SpeakClient, ModelsRestClient, } from "./packages";
import { AbstractClient, AgentLiveClient, ListenClient, ManageClient, ReadClient, SelfHostedRestClient, SpeakClient, ModelsRestClient, } from "./packages";
/**

@@ -67,2 +67,11 @@ * The DeepgramClient class provides access to various Deepgram API clients, including ListenClient, ManageClient, SelfHostedRestClient, ReadClient, and SpeakClient.

/**
* Returns a new instance of the AgentLiveClient, which provides access to Deepgram's Voice Agent API.
*
* @returns {AgentLiveClient} A new instance of the AgentLiveClient.
* @beta
*/
agent(endpoint = "/agent") {
return new AgentLiveClient(this.options, endpoint);
}
/**
* @deprecated

@@ -69,0 +78,0 @@ * @see https://dpgr.am/js-v3

@@ -11,3 +11,5 @@ import type { DefaultNamespaceOptions, DefaultClientOptions } from "./types";

export declare const DEFAULT_URL = "https://api.deepgram.com";
export declare const DEFAULT_AGENT_URL = "wss://agent.deepgram.com";
export declare const DEFAULT_GLOBAL_OPTIONS: Partial<DefaultNamespaceOptions>;
export declare const DEFAULT_AGENT_OPTIONS: Partial<DefaultNamespaceOptions>;
export declare const DEFAULT_OPTIONS: DefaultClientOptions;

@@ -14,0 +16,0 @@ export declare enum SOCKET_STATES {

@@ -32,2 +32,3 @@ import { convertProtocolToWs, isBrowser, isBun, isNode } from "./helpers";

export const DEFAULT_URL = "https://api.deepgram.com";
export const DEFAULT_AGENT_URL = "wss://agent.deepgram.com";
export const DEFAULT_GLOBAL_OPTIONS = {

@@ -39,4 +40,11 @@ fetch: { options: { url: DEFAULT_URL, headers: DEFAULT_HEADERS } },

};
export const DEFAULT_AGENT_OPTIONS = {
fetch: { options: { url: DEFAULT_URL, headers: DEFAULT_HEADERS } },
websocket: {
options: { url: DEFAULT_AGENT_URL, _nodeOnlyHeaders: DEFAULT_HEADERS },
},
};
export const DEFAULT_OPTIONS = {
global: DEFAULT_GLOBAL_OPTIONS,
agent: DEFAULT_AGENT_OPTIONS,
};

@@ -43,0 +51,0 @@ export var SOCKET_STATES;

@@ -0,1 +1,2 @@

export * from "./AgentEvents";
export * from "./LiveConnectionState";

@@ -2,0 +3,0 @@ export * from "./LiveTranscriptionEvents";

@@ -0,1 +1,2 @@

export * from "./AgentEvents";
export * from "./LiveConnectionState";

@@ -2,0 +3,0 @@ export * from "./LiveTranscriptionEvents";

@@ -70,2 +70,3 @@ import { Fetch, FetchOptions } from "./Fetch";

speak?: NamespaceOptions;
agent?: NamespaceOptions;
/**

@@ -72,0 +73,0 @@ * @deprecated as of 3.4, use a namespace like `global` instead

@@ -0,1 +1,2 @@

export * from "./AgentLiveSchema";
export * from "./AnalyzeSchema";

@@ -11,2 +12,3 @@ export * from "./AsyncAnalyzeResponse";

export * from "./Fetch";
export * from "./FunctionCallResponse";
export * from "./GetModelsResponse";

@@ -13,0 +15,0 @@ export * from "./GetModelsSchema";

@@ -0,1 +1,2 @@

export * from "./AgentLiveSchema";
export * from "./AnalyzeSchema";

@@ -11,2 +12,3 @@ export * from "./AsyncAnalyzeResponse";

export * from "./Fetch";
export * from "./FunctionCallResponse";
export * from "./GetModelsResponse";

@@ -13,0 +15,0 @@ export * from "./GetModelsSchema";

@@ -33,3 +33,4 @@ export interface LiveTranscriptionEvent {

};
from_finalize?: boolean;
}
//# sourceMappingURL=LiveTranscriptionEvent.d.ts.map

@@ -1,2 +0,2 @@

export declare const version = "3.9.0";
export declare const version = "3.10.0";
//# sourceMappingURL=version.d.ts.map

@@ -1,2 +0,2 @@

export const version = "3.9.0";
export const version = "3.10.0";
//# sourceMappingURL=version.js.map

@@ -201,4 +201,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

if (typeof data !== "string") {
if (data.byteLength === 0) {
this.log("warn", "skipping `send` for zero-byte blob", data);
if (!(data === null || data === void 0 ? void 0 : data.byteLength)) {
this.log("warn", "skipping `send` for zero-byte payload", data);
return;

@@ -205,0 +205,0 @@ }

export * from "./AbstractClient";
export * from "./AbstractLiveClient";
export * from "./AbstractRestClient";
export * from "./AgentLiveClient";
export * from "./ListenClient";

@@ -5,0 +6,0 @@ export * from "./ListenLiveClient";

export * from "./AbstractClient";
export * from "./AbstractLiveClient";
export * from "./AbstractRestClient";
export * from "./AgentLiveClient";
export * from "./ListenClient";

@@ -5,0 +6,0 @@ export * from "./ListenLiveClient";

{
"name": "@deepgram/sdk",
"version": "3.9.0",
"version": "3.10.0",
"description": "Isomorphic Javascript client for Deepgram",

@@ -5,0 +5,0 @@ "keywords": [

import { DeepgramVersionError } from "./lib/errors";
import {
AbstractClient,
AgentLiveClient,
ListenClient,

@@ -84,2 +85,12 @@ ManageClient,

/**
* Returns a new instance of the AgentLiveClient, which provides access to Deepgram's Voice Agent API.
*
* @returns {AgentLiveClient} A new instance of the AgentLiveClient.
* @beta
*/
public agent(endpoint: string = "/agent"): AgentLiveClient {
return new AgentLiveClient(this.options, endpoint);
}
/**
* @deprecated

@@ -86,0 +97,0 @@ * @see https://dpgr.am/js-v3

@@ -39,2 +39,3 @@ import { convertProtocolToWs, isBrowser, isBun, isNode } from "./helpers";

export const DEFAULT_URL = "https://api.deepgram.com";
export const DEFAULT_AGENT_URL = "wss://agent.deepgram.com";

@@ -48,4 +49,12 @@ export const DEFAULT_GLOBAL_OPTIONS: Partial<DefaultNamespaceOptions> = {

export const DEFAULT_AGENT_OPTIONS: Partial<DefaultNamespaceOptions> = {
fetch: { options: { url: DEFAULT_URL, headers: DEFAULT_HEADERS } },
websocket: {
options: { url: DEFAULT_AGENT_URL, _nodeOnlyHeaders: DEFAULT_HEADERS },
},
};
export const DEFAULT_OPTIONS: DefaultClientOptions = {
global: DEFAULT_GLOBAL_OPTIONS,
agent: DEFAULT_AGENT_OPTIONS,
};

@@ -52,0 +61,0 @@

@@ -0,3 +1,4 @@

export * from "./AgentEvents";
export * from "./LiveConnectionState";
export * from "./LiveTranscriptionEvents";
export * from "./LiveTTSEvents";

@@ -67,2 +67,3 @@ import { Fetch, FetchOptions } from "./Fetch";

speak?: NamespaceOptions;
agent?: NamespaceOptions;

@@ -69,0 +70,0 @@ /**

@@ -0,1 +1,2 @@

export * from "./AgentLiveSchema";
export * from "./AnalyzeSchema";

@@ -11,2 +12,3 @@ export * from "./AsyncAnalyzeResponse";

export * from "./Fetch";
export * from "./FunctionCallResponse";
export * from "./GetModelsResponse";

@@ -13,0 +15,0 @@ export * from "./GetModelsSchema";

@@ -33,2 +33,3 @@ export interface LiveTranscriptionEvent {

};
from_finalize?: boolean;
}

@@ -1,1 +0,1 @@

export const version = "3.9.0";
export const version = "3.10.0";

@@ -248,4 +248,4 @@ import { AbstractClient, noop } from "./AbstractClient";

if (typeof data !== "string") {
if (data.byteLength === 0) {
this.log("warn", "skipping `send` for zero-byte blob", data);
if (!data?.byteLength) {
this.log("warn", "skipping `send` for zero-byte payload", data);

@@ -252,0 +252,0 @@ return;

export * from "./AbstractClient";
export * from "./AbstractLiveClient";
export * from "./AbstractRestClient";
export * from "./AgentLiveClient";
export * from "./ListenClient";

@@ -5,0 +6,0 @@ export * from "./ListenLiveClient";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc