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

@doflo/flow-interfaces

Package Overview
Dependencies
Maintainers
1
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@doflo/flow-interfaces - npm Package Compare versions

Comparing version 1.16.2 to 1.16.3

7

dist/types/api/action/index.d.ts

@@ -0,5 +1,8 @@

import { IResponse } from '../..';
import { ExecutionWrapper } from '../../executionWrapper';
export interface actionAPI {
execute: <O = any, I = void>(job: ExecutionWrapper<I>) => Promise<O>;
run: <O = any>(namespace: string, actionName: string, credential?: any) => Promise<O>;
execute<O = IResponse, I = any>(job: ExecutionWrapper<I>): Promise<O>;
run<O = IResponse>(namespace: string, actionName: string): Promise<O>;
run<O = IResponse>(namespace: string, actionName: string, credential: any): Promise<O>;
run<O = IResponse>(namespace: string, actionName: string, credential?: any): Promise<O>;
}

@@ -45,16 +45,4 @@ /// <reference types="node" />

}
export interface IRPCContext {
export interface IStash {
/**
* ![doFlo Logo](https://schemas.doflo.com/docslogo.png?topic=IRPCContext;env&v=1.0.0)
*
* **env** holds environmental data as well as the secrets specified for the name space
*/
env: EnvironmentData;
/**
* ![doFlo Logo](https://schemas.doflo.com/docslogo.png?topic=IRPCContext;fetch&v=1.0.0)
*
* **node-fetch** http client for making requests use it if you need it
*/
fetch: (url: RequestInfo, init?: RequestInit) => Promise<Response>;
/**
* ![doFlo Logo](https://schemas.doflo.com/docslogo.png?topic=IRPCContext;stash&v=1.0.0)

@@ -65,3 +53,18 @@ *

*/
stash: (data: any) => string;
stash(data: any): Promise<{
key: string;
stashedDate: Date;
}>;
stash(data: any, type: 'JSON' | 'BASE64' | 'STRING'): Promise<{
key: string;
stashedDate: Date;
}>;
stash(data: any, ttl: number): Promise<{
key: string;
stashedDate: Date;
}>;
stash(data: any, ttl: number, type: 'JSON' | 'BASE64' | 'STRING'): Promise<{
key: string;
stashedDate: Date;
}>;
/**

@@ -73,4 +76,16 @@ * ![doFlo Logo](https://schemas.doflo.com/docslogo.png?topic=IRPCContext;pickup&v=1.0.0)

*/
pickup: <T>(ticket: string, preserve: boolean) => T;
pickup<T>(ticket: string): Promise<{
stashedDate: Date;
data: T;
expired: boolean;
}>;
/**
*
*/
pickup<T>(ticket: string, preserve: boolean): Promise<{
stashedDate: Date;
data: T;
expired: boolean;
}>;
/**
* ![doFlo Logo](https://schemas.doflo.com/docslogo.png?topic=IRPCContext;expire&v=1.0.0)

@@ -81,4 +96,22 @@ *

*/
expire: (ticket: string) => void;
expire(ticket: string): Promise<boolean>;
}
export interface IFetch {
/**
* ![doFlo Logo](https://schemas.doflo.com/docslogo.png?topic=IRPCContext;fetch&v=1.0.0)
*
* **node-fetch** http client for making requests use it if you need it
*/
fetch: (url: RequestInfo, init?: RequestInit) => Promise<Response>;
}
export interface IRPCContext extends IFetch, IStash, IContext {
}
export interface IContext {
/**
* ![doFlo Logo](https://schemas.doflo.com/docslogo.png?topic=IRPCContext;env&v=1.0.0)
*
* **env** holds environmental data as well as the secrets specified for the name space
*/
env: EnvironmentData;
/**
* ![doFlo Logo](https://schemas.doflo.com/docslogo.png?topic=IRPCContext;log&v=1.0.0)

@@ -93,4 +126,27 @@ *

}
export interface IResponse {
export declare type IResponse<T = any> = IVoidResponse | IValueResponse<T> | ICredentialCreationResponse;
export interface ICredentialCreationResponse extends IValueResponse {
data: {
credentialName: string;
id: string;
};
}
export interface IVoidResponse {
deferred?: boolean;
/**
* ![doFlo Logo](https://schemas.doflo.com/docslogo.png?topic=IResponse;httpData&v=1.0.0)
*
* **httpData** refers to the data that utilized in the workflow
* this data object is almost immediately striped from the
* response and wrapped into a new object that is passed
* into the workflow
*/
httpData?: any;
httpOptions?: {
doNotRespond?: boolean;
status?: HTTPStatus;
};
}
export interface IValueResponse<T = undefined | any> {
/**
* ![doFlo Logo](https://schemas.doflo.com/docslogo.png?topic=IResponse;data&v=1.0.0)

@@ -103,3 +159,3 @@ *

*/
data?: any;
data: T;
deferred?: boolean;

@@ -106,0 +162,0 @@ /**

{
"name": "@doflo/flow-interfaces",
"version": "1.16.2",
"version": "1.16.3",
"description": "Public Interfaces, Schemas, & GRPC Signatures for doFlo developers",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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