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

@epilot/automation-client

Package Overview
Dependencies
Maintainers
24
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@epilot/automation-client - npm Package Compare versions

Comparing version

to
1.9.3

dist/openapi.json

2

dist/index.d.ts

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

export * from './client';
export type { Client, Components, Paths, PathsDictionary, OperationMethods } from './openapi';
export type { OpenAPIClient, OpenAPIClientAxios, Document } from 'openapi-client-axios';
export * from './client';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {

@@ -10,0 +6,0 @@ if (k2 === undefined) k2 = k;

{
"name": "@epilot/automation-client",
"version": "1.9.2",
"description": "API Client for epilot automation API",
"version": "1.9.3",
"description": "Client library for epilot automation API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "epilot GmbH",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/epilot-dev/sdk-js.git",
"directory": "clients/automation-client"
},
"bugs": {
"url": "https://github.com/epilot-dev/sdk-js/issues"
},
"homepage": "https://github.com/epilot-dev/sdk-js/tree/main/clients/automation-client#readme",
"keywords": [
"epilot",
"sdk",
"automation"
],
"scripts": {
"test": "jest --clearCache",
"test": "jest",
"typescript": "tsc",
"bundle-definition": "webpack",
"openapi": "openapi read --json --dereference --bundle ../lambda/ApiHandlerFunction/openapi.yml > src/openapi.json",
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ../lambda/ApiHandlerFunction/openapi.yml >> src/openapi.d.ts",
"build": "npm run openapi && npm run typegen && npm run typescript && npm run bundle-definition",
"eslint": "../node_modules/.bin/eslint -c ../.eslintrc.yml",
"prepublishOnly": "npm run build"
"openapi": "../../scripts/update-openapi.sh https://docs.api.epilot.io/automation.yaml",
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
"build": "tsc && npm run bundle-definition",
"build:watch": "npm run build && tsc -w",
"prepublishOnly": "npm run typegen && npm run build",
"lint": "../../node_modules/eslint/bin/eslint.js src"
},

@@ -22,2 +39,3 @@ "files": [

"**/*.d.ts",
"**/*.json",
"!*.test.*",

@@ -27,7 +45,5 @@ "!**/*.test.*",

"!src",
"!src/**",
"!*.config.js"
],
"keywords": [],
"author": "epilot GmbH",
"license": "UNLICENSED",
"peerDependencies": {

@@ -39,3 +55,3 @@ "axios": "^0.25.0"

"https-browserify": "^1.0.0",
"openapi-client-axios": "^5.1.2",
"openapi-client-axios": "^5.1.1",
"stream-http": "^3.1.1",

@@ -46,10 +62,10 @@ "url": "^0.11.0",

"devDependencies": {
"@types/jest": "^28.1.1",
"@types/jest": "^26.0.20",
"axios": "^0.25.0",
"copy-webpack-plugin": "^7.0.0",
"jest": "^28.1.1",
"jest": "^26.6.3",
"json-loader": "^0.5.7",
"openapi-client-axios-typegen": "^5.0.2",
"openapicmd": "^1.6.2",
"ts-jest": "^28.0.4",
"openapi-client-axios-typegen": "^5.0.1",
"openapicmd": "^1.13.3",
"ts-jest": "^26.5.0",
"ts-loader": "^8.0.14",

@@ -56,0 +72,0 @@ "ts-node": "^9.1.1",

@@ -1,43 +0,31 @@

# `@epilot/automation-client`
# @epilot/automation-client
API Client for epilot automation API.
[![CI](https://github.com/epilot-dev/sdk-js/workflows/CI/badge.svg)](https://github.com/epilot-dev/sdk-js/actions?query=automation%3ACI)
[![npm version](https://img.shields.io/npm/v/@epilot/automation-client.svg)](https://www.npmjs.com/package/@epilot/automation-client)
[![bundle size](https://img.shields.io/bundlephobia/minzip/@epilot/automation-client?label=gzip%20bundle)](https://bundlephobia.com/package/@epilot/automation-client)
[![License](http://img.shields.io/:license-mit-blue.svg)](https://github.com/epilot-dev/sdk-js/blob/main/LICENSE)
Client library for epilot [Workflow API](https://docs.epilot.io/api/automation)
Uses [`openapi-client-axios`](https://github.com/anttiviljami/openapi-client-axios)
## Getting Started
## Installation
Install the package:
```bash
npm install --save-dev @epilot/automation-client
npm install --save @epilot/automation-client
```
Import the package:
## Usage
```typescript
import { getClient } from '@epilot/automation-client';
```
import { getClient } from "@epilot/automation-client";
Use the client:
```typescript
// get typed client
const client = await getClient();
// call an operation
const res = await client.testS3();
const automationClient = getClient();
const res = await automationClient.searchFlows(null, {
schema: "mySchema",
});
```
## BaseURL & Authorization
## Documentation
To pass an authorization header and set up the API url, you can use axios
defaults:
```typescript
const client = getClient();
client.defaults.baseURL = config.API_URL;
client.defaults.headers['authorization'] = `Bearer ${token}`;
```
## API Docs:
https://docs.api.epilot.io/
https://docs.epilot.io/docs/automation/intro

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