Socket
Socket
Sign inDemoInstall

@forestvpn/forestvpn_api

Package Overview
Dependencies
1
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.7.10 to 3.8.1

dist/models/plan.d.ts

1

api.ts

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

export * from './apis/checkout-api';
export * from './apis/cloud-api';
export * from './apis/device-api';

@@ -22,0 +23,0 @@ export * from './apis/fcm-api';

62

apis/media-api.ts

@@ -28,15 +28,7 @@ /* tslint:disable */

* @summary Upload a file
* @param {string} id
* @param {Blob} data
* @param {string} url
* @param {string} mimetype
* @param {number} size
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
fileUploadForm: async (id: string, data: Blob, url: string, mimetype: string, size: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
if (id === null || id === undefined) {
throw new RequiredError('id','Required parameter id was null or undefined when calling fileUploadForm.');
}
fileUploadForm: async (data: Blob, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'data' is not null or undefined

@@ -46,14 +38,2 @@ if (data === null || data === undefined) {

}
// verify required parameter 'url' is not null or undefined
if (url === null || url === undefined) {
throw new RequiredError('url','Required parameter url was null or undefined when calling fileUploadForm.');
}
// verify required parameter 'mimetype' is not null or undefined
if (mimetype === null || mimetype === undefined) {
throw new RequiredError('mimetype','Required parameter mimetype was null or undefined when calling fileUploadForm.');
}
// verify required parameter 'size' is not null or undefined
if (size === null || size === undefined) {
throw new RequiredError('size','Required parameter size was null or undefined when calling fileUploadForm.');
}
const localVarPath = `/files/`;

@@ -74,6 +54,2 @@ // use dummy base URL string because the URL constructor only accepts absolute URLs.

if (id !== undefined) {
localVarFormParams.append('id', id as any);
}
if (data !== undefined) {

@@ -83,14 +59,2 @@ localVarFormParams.append('data', data as any);

if (url !== undefined) {
localVarFormParams.append('url', url as any);
}
if (mimetype !== undefined) {
localVarFormParams.append('mimetype', mimetype as any);
}
if (size !== undefined) {
localVarFormParams.append('size', size as any);
}
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';

@@ -126,12 +90,8 @@ const query = new URLSearchParams(localVarUrlObj.search);

* @summary Upload a file
* @param {string} id
* @param {Blob} data
* @param {string} url
* @param {string} mimetype
* @param {number} size
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async fileUploadForm(id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>> {
const localVarAxiosArgs = await MediaApiAxiosParamCreator(configuration).fileUploadForm(id, data, url, mimetype, size, options);
async fileUploadForm(data: Blob, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>> {
const localVarAxiosArgs = await MediaApiAxiosParamCreator(configuration).fileUploadForm(data, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {

@@ -154,12 +114,8 @@ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};

* @summary Upload a file
* @param {string} id
* @param {Blob} data
* @param {string} url
* @param {string} mimetype
* @param {number} size
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async fileUploadForm(id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<any>> {
return MediaApiFp(configuration).fileUploadForm(id, data, url, mimetype, size, options).then((request) => request(axios, basePath));
async fileUploadForm(data: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<any>> {
return MediaApiFp(configuration).fileUploadForm(data, options).then((request) => request(axios, basePath));
},

@@ -179,7 +135,3 @@ };

* @summary Upload a file
* @param {string} id
* @param {Blob} data
* @param {string} url
* @param {string} mimetype
* @param {number} size
* @param {*} [options] Override http request option.

@@ -189,5 +141,5 @@ * @throws {RequiredError}

*/
public async fileUploadForm(id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<any>> {
return MediaApiFp(this.configuration).fileUploadForm(id, data, url, mimetype, size, options).then((request) => request(this.axios, this.basePath));
public async fileUploadForm(data: Blob, options?: AxiosRequestConfig) : Promise<AxiosResponse<any>> {
return MediaApiFp(this.configuration).fileUploadForm(data, options).then((request) => request(this.axios, this.basePath));
}
}

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

*/
async listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<NotificationAllList>>>> {
async listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<NotificationAllList>>> {
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).listNotifications(limit, offset, type, options);

@@ -285,3 +285,3 @@ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {

*/
async listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<NotificationAllList>>> {
async listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<NotificationAllList>> {
return NotificationsApiFp(configuration).listNotifications(limit, offset, type, options).then((request) => request(axios, basePath));

@@ -338,3 +338,3 @@ },

*/
public async listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<NotificationAllList>>> {
public async listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<NotificationAllList>> {
return NotificationsApiFp(this.configuration).listNotifications(limit, offset, type, options).then((request) => request(this.axios, this.basePath));

@@ -341,0 +341,0 @@ }

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

export * from './apis/checkout-api';
export * from './apis/cloud-api';
export * from './apis/device-api';

@@ -20,0 +21,0 @@ export * from './apis/fcm-api';

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

__exportStar(require("./apis/checkout-api"), exports);
__exportStar(require("./apis/cloud-api"), exports);
__exportStar(require("./apis/device-api"), exports);

@@ -34,0 +35,0 @@ __exportStar(require("./apis/fcm-api"), exports);

@@ -23,11 +23,7 @@ /**

* @summary Upload a file
* @param {string} id
* @param {Blob} data
* @param {string} url
* @param {string} mimetype
* @param {number} size
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
fileUploadForm: (id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
fileUploadForm: (data: Blob, options?: AxiosRequestConfig) => Promise<RequestArgs>;
};

@@ -42,11 +38,7 @@ /**

* @summary Upload a file
* @param {string} id
* @param {Blob} data
* @param {string} url
* @param {string} mimetype
* @param {number} size
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
fileUploadForm(id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>>;
fileUploadForm(data: Blob, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>>;
};

@@ -61,11 +53,7 @@ /**

* @summary Upload a file
* @param {string} id
* @param {Blob} data
* @param {string} url
* @param {string} mimetype
* @param {number} size
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
fileUploadForm(id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<any>>;
fileUploadForm(data: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<any>>;
};

@@ -82,7 +70,3 @@ /**

* @summary Upload a file
* @param {string} id
* @param {Blob} data
* @param {string} url
* @param {string} mimetype
* @param {number} size
* @param {*} [options] Override http request option.

@@ -92,3 +76,3 @@ * @throws {RequiredError}

*/
fileUploadForm(id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<any>>;
fileUploadForm(data: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<any>>;
}

@@ -91,11 +91,7 @@ "use strict";

* @summary Upload a file
* @param {string} id
* @param {Blob} data
* @param {string} url
* @param {string} mimetype
* @param {number} size
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
fileUploadForm: function (id, data, url, mimetype, size, options) {
fileUploadForm: function (data, options) {
if (options === void 0) { options = {}; }

@@ -105,6 +101,2 @@ return __awaiter(_this, void 0, void 0, function () {

return __generator(this, function (_a) {
// verify required parameter 'id' is not null or undefined
if (id === null || id === undefined) {
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling fileUploadForm.');
}
// verify required parameter 'data' is not null or undefined

@@ -114,14 +106,2 @@ if (data === null || data === undefined) {

}
// verify required parameter 'url' is not null or undefined
if (url === null || url === undefined) {
throw new base_1.RequiredError('url', 'Required parameter url was null or undefined when calling fileUploadForm.');
}
// verify required parameter 'mimetype' is not null or undefined
if (mimetype === null || mimetype === undefined) {
throw new base_1.RequiredError('mimetype', 'Required parameter mimetype was null or undefined when calling fileUploadForm.');
}
// verify required parameter 'size' is not null or undefined
if (size === null || size === undefined) {
throw new base_1.RequiredError('size', 'Required parameter size was null or undefined when calling fileUploadForm.');
}
localVarPath = "/files/";

@@ -137,17 +117,5 @@ localVarUrlObj = new URL(localVarPath, 'https://example.com');

// authentication bearerAuth required
if (id !== undefined) {
localVarFormParams.append('id', id);
}
if (data !== undefined) {
localVarFormParams.append('data', data);
}
if (url !== undefined) {
localVarFormParams.append('url', url);
}
if (mimetype !== undefined) {
localVarFormParams.append('mimetype', mimetype);
}
if (size !== undefined) {
localVarFormParams.append('size', size);
}
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';

@@ -183,11 +151,7 @@ query = new URLSearchParams(localVarUrlObj.search);

* @summary Upload a file
* @param {string} id
* @param {Blob} data
* @param {string} url
* @param {string} mimetype
* @param {number} size
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
fileUploadForm: function (id, data, url, mimetype, size, options) {
fileUploadForm: function (data, options) {
return __awaiter(this, void 0, void 0, function () {

@@ -197,3 +161,3 @@ var localVarAxiosArgs;

switch (_a.label) {
case 0: return [4 /*yield*/, exports.MediaApiAxiosParamCreator(configuration).fileUploadForm(id, data, url, mimetype, size, options)];
case 0: return [4 /*yield*/, exports.MediaApiAxiosParamCreator(configuration).fileUploadForm(data, options)];
case 1:

@@ -222,14 +186,10 @@ localVarAxiosArgs = _a.sent();

* @summary Upload a file
* @param {string} id
* @param {Blob} data
* @param {string} url
* @param {string} mimetype
* @param {number} size
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
fileUploadForm: function (id, data, url, mimetype, size, options) {
fileUploadForm: function (data, options) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, exports.MediaApiFp(configuration).fileUploadForm(id, data, url, mimetype, size, options).then(function (request) { return request(axios, basePath); })];
return [2 /*return*/, exports.MediaApiFp(configuration).fileUploadForm(data, options).then(function (request) { return request(axios, basePath); })];
});

@@ -254,7 +214,3 @@ });

* @summary Upload a file
* @param {string} id
* @param {Blob} data
* @param {string} url
* @param {string} mimetype
* @param {number} size
* @param {*} [options] Override http request option.

@@ -264,7 +220,7 @@ * @throws {RequiredError}

*/
MediaApi.prototype.fileUploadForm = function (id, data, url, mimetype, size, options) {
MediaApi.prototype.fileUploadForm = function (data, options) {
return __awaiter(this, void 0, void 0, function () {
var _this = this;
return __generator(this, function (_a) {
return [2 /*return*/, exports.MediaApiFp(this.configuration).fileUploadForm(id, data, url, mimetype, size, options).then(function (request) { return request(_this.axios, _this.basePath); })];
return [2 /*return*/, exports.MediaApiFp(this.configuration).fileUploadForm(data, options).then(function (request) { return request(_this.axios, _this.basePath); })];
});

@@ -271,0 +227,0 @@ });

@@ -76,3 +76,3 @@ /**

*/
listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<NotificationAllList>>>>;
listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<NotificationAllList>>>;
/**

@@ -115,3 +115,3 @@ *

*/
listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<NotificationAllList>>>;
listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<NotificationAllList>>;
/**

@@ -158,3 +158,3 @@ *

*/
listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<NotificationAllList>>>;
listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<NotificationAllList>>;
/**

@@ -161,0 +161,0 @@ *

@@ -18,5 +18,5 @@ /**

export declare enum Architecture {
X8664 = "x86_64",
Amd64 = "amd64",
Arm64 = "arm64",
Arm32 = "arm32"
}

@@ -24,5 +24,5 @@ "use strict";

(function (Architecture) {
Architecture["X8664"] = "x86_64";
Architecture["Amd64"] = "amd64";
Architecture["Arm64"] = "arm64";
Architecture["Arm32"] = "arm32";
})(Architecture = exports.Architecture || (exports.Architecture = {}));

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

import { PaymentMethod } from './payment-method';
import { Plan } from './plan';
/**

@@ -38,2 +39,8 @@ * Represents billing account

default_payment_method_id: string;
/**
*
* @type {Plan}
* @memberof BillingAccount
*/
current_plan?: Plan;
}

@@ -56,2 +56,8 @@ /**

/**
* Is the device route global networks throughout.
* @type {boolean}
* @memberof CreateOrUpdateDeviceRequest
*/
route_global_net?: boolean | null;
/**
*

@@ -58,0 +64,0 @@ * @type {CreateOrUpdateDeviceRequestInfo}

@@ -59,2 +59,8 @@ /**

/**
* Is the device route global networks throughout.
* @type {boolean}
* @memberof Device
*/
route_global_net?: boolean;
/**
*

@@ -61,0 +67,0 @@ * @type {ConnectionMode}

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

export * from './fcmdevice';
export * from './file-request';
export * from './friendship';

@@ -64,2 +65,3 @@ export * from './friendship-invitation';

export * from './payment-option';
export * from './plan';
export * from './play-store-purchase-verification-request';

@@ -66,0 +68,0 @@ export * from './port-forwarding';

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

__exportStar(require("./fcmdevice"), exports);
__exportStar(require("./file-request"), exports);
__exportStar(require("./friendship"), exports);

@@ -76,2 +77,3 @@ __exportStar(require("./friendship-invitation"), exports);

__exportStar(require("./payment-option"), exports);
__exportStar(require("./plan"), exports);
__exportStar(require("./play-store-purchase-verification-request"), exports);

@@ -78,0 +80,0 @@ __exportStar(require("./port-forwarding"), exports);

@@ -24,3 +24,3 @@ /**

*/
unread_count?: number;
all_count: number;
/**

@@ -27,0 +27,0 @@ *

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

export enum Architecture {
X8664 = 'x86_64',
Amd64 = 'amd64',
Arm64 = 'arm64',

@@ -23,0 +23,0 @@ Arm32 = 'arm32'

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

import { PaymentMethod } from './payment-method';
import { Plan } from './plan';
/**

@@ -40,2 +41,8 @@ * Represents billing account

default_payment_method_id: string;
/**
*
* @type {Plan}
* @memberof BillingAccount
*/
current_plan?: Plan;
}

@@ -58,2 +58,8 @@ /* tslint:disable */

/**
* Is the device route global networks throughout.
* @type {boolean}
* @memberof CreateOrUpdateDeviceRequest
*/
route_global_net?: boolean | null;
/**
*

@@ -60,0 +66,0 @@ * @type {CreateOrUpdateDeviceRequestInfo}

@@ -61,2 +61,8 @@ /* tslint:disable */

/**
* Is the device route global networks throughout.
* @type {boolean}
* @memberof Device
*/
route_global_net?: boolean;
/**
*

@@ -63,0 +69,0 @@ * @type {ConnectionMode}

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

export * from './fcmdevice';
export * from './file-request';
export * from './friendship';

@@ -64,2 +65,3 @@ export * from './friendship-invitation';

export * from './payment-option';
export * from './plan';
export * from './play-store-purchase-verification-request';

@@ -66,0 +68,0 @@ export * from './port-forwarding';

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

*/
unread_count?: number;
all_count: number;
/**

@@ -29,0 +29,0 @@ *

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

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc