0.0.21 • Published 1 year ago

@david-vectara/vectara-ts-node v0.0.21

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

Vectara Client Implementation - typescript-node

Purpose

This project provides the client interface generated from the OpenAPI specification for Vectara API V2.

Project Metadata

This project has been created by David Levy within Vectara's Field Engineering. Although this library is not formerly supported, we will endeavor to answer requests which utilise this library for paying customers with best effort.

Getting Started

To install the library issue the following command:

npm install @david-vectara/vectara-ts-node

Initializing the Client

To initialize the client, you can either use implicit or explicit configuration. Explicit configuration is strongly recommended for production, where you can utilize a secret store and inject the credentials.

Explicity Configuration

You can create the client with explicit injection of configuration parameters. This is useful for production deployments where you source your properties from env parameters or a vault.

API Key Explicit Initialization

    const config = new Config("YOUR_CUSTOMER_ID", {"apiKey": "YOUR_API_KEY"});
    const temp: Promise<Client | void> = new Factory().config(config).build();

OAuth2 Explicit Initialization

    const config = new Config("YOUR_CUSTOMER_ID", {"oauth2AppId": "YOUR_APP_ID", "oauth2AppSecret": "YOUR_APP_SECRET"});
    const temp: Client | void = await new Factory().config(config).build();
0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago