Socket
Socket
Sign inDemoInstall

@ada-support/embed-types

Package Overview
Dependencies
0
Maintainers
16
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.4 to 1.6.5

2

package.json
{
"name": "@ada-support/embed-types",
"version": "1.6.4",
"version": "1.6.5",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts",

@@ -13,2 +13,17 @@ # embed-types

## Set up and development
Install dependencies:
```sh
yarn
```
Run ESLint
```sh
yarn lint
```
## Deployment
The NPM publish job will run automatically via Github actions upon merging your branch to `main`
## Installation

@@ -28,12 +43,1 @@

You can also import any `export`ed items exposed in our public API.
## ESLint
1. Install dependencies:
```sh
yarn
```
1. Run ESLint
```sh
yarn lint
```

@@ -71,2 +71,3 @@ import type { AdaEventKey, AdaEventSubscriptionCallback } from "./ada-events";

export type FlatObjectPayload = Record<string, FlatObjectValue>;
export type Modality = "messaging" | "voice";

@@ -86,2 +87,3 @@ export interface WindowInfo {

sensitiveMetaFields?: FlatObjectPayload;
activeModality?: Modality;
}

@@ -96,3 +98,7 @@

closeCampaign(): Promise<void>;
createProactive(body: string, duration?: number, responseId?: string): Promise<void>;
createProactive(
body: string,
duration?: number,
responseId?: string,
): Promise<void>;
deleteHistory(): Promise<void>;

@@ -106,5 +112,12 @@ evaluateCampaignConditions(options: CampaignParams): Promise<void>;

stop(): Promise<void>;
subscribeEvent<K extends AdaEventKey>(eventKey: K, callback: AdaEventSubscriptionCallback<K>): Promise<number>;
subscribeEvent<K extends AdaEventKey>(
eventKey: K,
callback: AdaEventSubscriptionCallback<K>,
): Promise<number>;
toggle(): Promise<void>;
trackEvent(eventKey: string, value: number, meta: FlatObjectPayload): Promise<void>;
trackEvent(
eventKey: string,
value: number,
meta: FlatObjectPayload,
): Promise<void>;
triggerCampaign(campaignKey: string, options: CampaignParams): Promise<void>;

@@ -123,2 +136,5 @@ unsubscribeEvent(id: number): Promise<void>;

/** A queue of actions created by embed-loader and traversed by embed-2 */
export type AdaEmbedLoaderInitialActionQueue = {method: keyof AdaEmbedAPI; arguments: unknown[]}[];
export type AdaEmbedLoaderInitialActionQueue = {
method: keyof AdaEmbedAPI;
arguments: unknown[];
}[];
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc