Socket
Socket
Sign inDemoInstall

@forestvpn/forestvpn_api

Package Overview
Dependencies
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forestvpn/forestvpn_api - npm Package Compare versions

Comparing version 3.8.6 to 3.9.2

apis/user-api.ts

1

api.ts

@@ -29,3 +29,4 @@ /* tslint:disable */

export * from './apis/support-api';
export * from './apis/user-api';
export * from './apis/wireguard-api';

@@ -156,2 +156,44 @@ /* tslint:disable */

/**
*
* @summary Std data
* @param {string} functionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getFunctionStdDataCache: async (functionID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'functionID' is not null or undefined
if (functionID === null || functionID === undefined) {
throw new RequiredError('functionID','Required parameter functionID was null or undefined when calling getFunctionStdDataCache.');
}
const localVarPath = `/cloud/functions/stream_data_cache/{functionID}/`
.replace(`{${"functionID"}}`, encodeURIComponent(String(functionID)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication bearerAuth required
const query = new URLSearchParams(localVarUrlObj.search);
for (const key in localVarQueryParameter) {
query.set(key, localVarQueryParameter[key]);
}
for (const key in options.params) {
query.set(key, options.params[key]);
}
localVarUrlObj.search = (new URLSearchParams(query)).toString();
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
/**
* Retrieve cloud functions list

@@ -305,2 +347,16 @@ * @summary Functions List

/**
*
* @summary Std data
* @param {string} functionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getFunctionStdDataCache(functionID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<string>>>> {
const localVarAxiosArgs = await CloudApiAxiosParamCreator(configuration).getFunctionStdDataCache(functionID, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
* Retrieve cloud functions list

@@ -375,2 +431,12 @@ * @summary Functions List

/**
*
* @summary Std data
* @param {string} functionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getFunctionStdDataCache(functionID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<string>>> {
return CloudApiFp(configuration).getFunctionStdDataCache(functionID, options).then((request) => request(axios, basePath));
},
/**
* Retrieve cloud functions list

@@ -441,2 +507,13 @@ * @summary Functions List

/**
*
* @summary Std data
* @param {string} functionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CloudApi
*/
public async getFunctionStdDataCache(functionID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<string>>> {
return CloudApiFp(this.configuration).getFunctionStdDataCache(functionID, options).then((request) => request(this.axios, this.basePath));
}
/**
* Retrieve cloud functions list

@@ -443,0 +520,0 @@ * @summary Functions List

@@ -27,2 +27,3 @@ /**

export * from './apis/support-api';
export * from './apis/user-api';
export * from './apis/wireguard-api';

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

__exportStar(require("./apis/support-api"), exports);
__exportStar(require("./apis/user-api"), exports);
__exportStar(require("./apis/wireguard-api"), exports);

@@ -46,2 +46,10 @@ /**

/**
*
* @summary Std data
* @param {string} functionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getFunctionStdDataCache: (functionID: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Retrieve cloud functions list

@@ -95,2 +103,10 @@ * @summary Functions List

/**
*
* @summary Std data
* @param {string} functionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getFunctionStdDataCache(functionID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<string>>>>;
/**
* Retrieve cloud functions list

@@ -144,2 +160,10 @@ * @summary Functions List

/**
*
* @summary Std data
* @param {string} functionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getFunctionStdDataCache(functionID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<string>>>;
/**
* Retrieve cloud functions list

@@ -198,2 +222,11 @@ * @summary Functions List

/**
*
* @summary Std data
* @param {string} functionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CloudApi
*/
getFunctionStdDataCache(functionID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<string>>>;
/**
* Retrieve cloud functions list

@@ -200,0 +233,0 @@ * @summary Functions List

@@ -218,2 +218,44 @@ "use strict";

/**
*
* @summary Std data
* @param {string} functionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getFunctionStdDataCache: function (functionID, options) {
if (options === void 0) { options = {}; }
return __awaiter(_this, void 0, void 0, function () {
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
return __generator(this, function (_a) {
// verify required parameter 'functionID' is not null or undefined
if (functionID === null || functionID === undefined) {
throw new base_1.RequiredError('functionID', 'Required parameter functionID was null or undefined when calling getFunctionStdDataCache.');
}
localVarPath = "/cloud/functions/stream_data_cache/{functionID}/"
.replace("{" + "functionID" + "}", encodeURIComponent(String(functionID)));
localVarUrlObj = new URL(localVarPath, 'https://example.com');
if (configuration) {
baseOptions = configuration.baseOptions;
}
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
localVarHeaderParameter = {};
localVarQueryParameter = {};
query = new URLSearchParams(localVarUrlObj.search);
for (key in localVarQueryParameter) {
query.set(key, localVarQueryParameter[key]);
}
for (key in options.params) {
query.set(key, options.params[key]);
}
localVarUrlObj.search = (new URLSearchParams(query)).toString();
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
return [2 /*return*/, {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
}];
});
});
},
/**
* Retrieve cloud functions list

@@ -398,2 +440,27 @@ * @summary Functions List

/**
*
* @summary Std data
* @param {string} functionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getFunctionStdDataCache: function (functionID, options) {
return __awaiter(this, void 0, void 0, function () {
var localVarAxiosArgs;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, exports.CloudApiAxiosParamCreator(configuration).getFunctionStdDataCache(functionID, options)];
case 1:
localVarAxiosArgs = _a.sent();
return [2 /*return*/, function (axios, basePath) {
if (axios === void 0) { axios = axios_1.default; }
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
return axios.request(axiosRequestArgs);
}];
}
});
});
},
/**
* Retrieve cloud functions list

@@ -501,2 +568,16 @@ * @summary Functions List

/**
*
* @summary Std data
* @param {string} functionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getFunctionStdDataCache: function (functionID, options) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, exports.CloudApiFp(configuration).getFunctionStdDataCache(functionID, options).then(function (request) { return request(axios, basePath); })];
});
});
},
/**
* Retrieve cloud functions list

@@ -593,2 +674,18 @@ * @summary Functions List

/**
*
* @summary Std data
* @param {string} functionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CloudApi
*/
CloudApi.prototype.getFunctionStdDataCache = function (functionID, options) {
return __awaiter(this, void 0, void 0, function () {
var _this = this;
return __generator(this, function (_a) {
return [2 /*return*/, exports.CloudApiFp(this.configuration).getFunctionStdDataCache(functionID, options).then(function (request) { return request(_this.axios, _this.basePath); })];
});
});
};
/**
* Retrieve cloud functions list

@@ -595,0 +692,0 @@ * @summary Functions List

@@ -79,2 +79,3 @@ export * from './access-token-request';

export * from './subscription-status';
export * from './task';
export * from './ticket-category';

@@ -81,0 +82,0 @@ export * from './token-login';

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

__exportStar(require("./subscription-status"), exports);
__exportStar(require("./task"), exports);
__exportStar(require("./ticket-category"), exports);

@@ -93,0 +94,0 @@ __exportStar(require("./token-login"), exports);

8

dist/models/model-file.d.ts

@@ -29,3 +29,3 @@ /**

*/
data: Blob;
data: Blob | null;
/**

@@ -36,3 +36,3 @@ *

*/
url?: string;
url?: string | null;
/**

@@ -43,3 +43,3 @@ *

*/
mimetype: string;
mimetype: string | null;
/**

@@ -50,3 +50,3 @@ *

*/
size: number;
size: number | null;
}

@@ -14,2 +14,3 @@ /**

import { FunctionEnvironment } from './function-environment';
import { Task } from './task';
/**

@@ -81,2 +82,8 @@ *

environment?: FunctionEnvironment;
/**
*
* @type {Task}
* @memberof ModelFunction
*/
task?: Task | null;
}

@@ -36,3 +36,3 @@ /**

*/
price_id: string;
price_id: string | null;
/**

@@ -39,0 +39,0 @@ *

@@ -79,2 +79,3 @@ export * from './access-token-request';

export * from './subscription-status';
export * from './task';
export * from './ticket-category';

@@ -81,0 +82,0 @@ export * from './token-login';

@@ -31,3 +31,3 @@ /* tslint:disable */

*/
data: Blob;
data: Blob | null;
/**

@@ -38,3 +38,3 @@ *

*/
url?: string;
url?: string | null;
/**

@@ -45,3 +45,3 @@ *

*/
mimetype: string;
mimetype: string | null;
/**

@@ -52,3 +52,3 @@ *

*/
size: number;
size: number | null;
}

@@ -16,2 +16,3 @@ /* tslint:disable */

import { FunctionEnvironment } from './function-environment';
import { Task } from './task';
/**

@@ -83,2 +84,8 @@ *

environment?: FunctionEnvironment;
/**
*
* @type {Task}
* @memberof ModelFunction
*/
task?: Task | null;
}

@@ -38,3 +38,3 @@ /* tslint:disable */

*/
price_id: string;
price_id: string | null;
/**

@@ -41,0 +41,0 @@ *

{
"name": "@forestvpn/forestvpn_api",
"version": "3.8.6",
"version": "3.9.2",
"description": "A package to interact api.forestvpn.com (manage vpn profiles, check usage statistics, manage locations, ...)",

@@ -5,0 +5,0 @@ "author": "ForestVPN",

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