🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

freestyle

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freestyle - npm Package Compare versions

Comparing version
0.1.54
to
0.1.55
+75
-0
index.d.cts

@@ -11,2 +11,3 @@ export type FreestyleOptions =

readonly dns: DnsNamespace;
readonly vpc: VpcNamespace;

@@ -68,2 +69,76 @@ constructor(options?: FreestyleOptions);

export type CreateVpcOptions = {
cidr: string;
name?: string;
}
export type CreateVpcResponse = {
vpcId: string;
vpc: VpcHandle;
}
export type ConfigureVpcWireGuardPeerOptions = {
gatewayVmId: string;
clientPublicKey: string;
}
export type ConfigureVpcWireGuardPeerResponse = {
vpcId: string;
gatewayVmId: string;
endpointHost?: string;
endpointPort: number;
listenPort: number;
interfaceName: string;
serverPublicKey: string;
serverTunnelIp: string;
clientTunnelIp: string;
vpcCidr: string;
clientConfig: string;
}
export type CreateVpcWireGuardEphemeralOptions = Record<string, never>;
export type CreateVpcWireGuardEphemeralResponse = {
vpcId: string;
sessionId: string;
endpointHost?: string;
endpointPort: number;
listenPort: number;
interfaceName: string;
serverPublicKey: string;
clientPublicKey: string;
clientPrivateKey?: string;
serverTunnelIp: string;
clientTunnelIp: string;
vpcIp: string;
clientAllowedIps: string[];
vpcCidr: string;
clientConfig: string;
}
export type VpcWireGuardEphemeralConnection = CreateVpcWireGuardEphemeralResponse & {
close(): Promise<void>;
}
export type DeleteVpcWireGuardEphemeralOptions = {
sessionId: string;
}
export class VpcWireGuardNamespace {
createEphemeral(options?: CreateVpcWireGuardEphemeralOptions): Promise<VpcWireGuardEphemeralConnection>;
deleteEphemeral(options: DeleteVpcWireGuardEphemeralOptions): Promise<void>;
}
export class VpcHandle {
readonly wireguard: VpcWireGuardNamespace;
readonly vpcId: string;
}
export class VpcNamespace {
create(options: CreateVpcOptions): Promise<CreateVpcResponse>;
configureWireGuardPeer(vpcId: string, options: ConfigureVpcWireGuardPeerOptions): Promise<ConfigureVpcWireGuardPeerResponse>;
}
class VmsNamespace {

@@ -70,0 +145,0 @@ /**

@@ -11,2 +11,3 @@ export type FreestyleOptions =

readonly dns: DnsNamespace;
readonly vpc: VpcNamespace;

@@ -68,2 +69,76 @@ constructor(options?: FreestyleOptions);

export type CreateVpcOptions = {
cidr: string;
name?: string;
}
export type CreateVpcResponse = {
vpcId: string;
vpc: VpcHandle;
}
export type ConfigureVpcWireGuardPeerOptions = {
gatewayVmId: string;
clientPublicKey: string;
}
export type ConfigureVpcWireGuardPeerResponse = {
vpcId: string;
gatewayVmId: string;
endpointHost?: string;
endpointPort: number;
listenPort: number;
interfaceName: string;
serverPublicKey: string;
serverTunnelIp: string;
clientTunnelIp: string;
vpcCidr: string;
clientConfig: string;
}
export type CreateVpcWireGuardEphemeralOptions = Record<string, never>;
export type CreateVpcWireGuardEphemeralResponse = {
vpcId: string;
sessionId: string;
endpointHost?: string;
endpointPort: number;
listenPort: number;
interfaceName: string;
serverPublicKey: string;
clientPublicKey: string;
clientPrivateKey?: string;
serverTunnelIp: string;
clientTunnelIp: string;
vpcIp: string;
clientAllowedIps: string[];
vpcCidr: string;
clientConfig: string;
}
export type VpcWireGuardEphemeralConnection = CreateVpcWireGuardEphemeralResponse & {
close(): Promise<void>;
}
export type DeleteVpcWireGuardEphemeralOptions = {
sessionId: string;
}
export class VpcWireGuardNamespace {
createEphemeral(options?: CreateVpcWireGuardEphemeralOptions): Promise<VpcWireGuardEphemeralConnection>;
deleteEphemeral(options: DeleteVpcWireGuardEphemeralOptions): Promise<void>;
}
export class VpcHandle {
readonly wireguard: VpcWireGuardNamespace;
readonly vpcId: string;
}
export class VpcNamespace {
create(options: CreateVpcOptions): Promise<CreateVpcResponse>;
configureWireGuardPeer(vpcId: string, options: ConfigureVpcWireGuardPeerOptions): Promise<ConfigureVpcWireGuardPeerResponse>;
}
class VmsNamespace {

@@ -70,0 +145,0 @@ /**

@@ -11,2 +11,3 @@ export type FreestyleOptions =

readonly dns: DnsNamespace;
readonly vpc: VpcNamespace;

@@ -68,2 +69,76 @@ constructor(options?: FreestyleOptions);

export type CreateVpcOptions = {
cidr: string;
name?: string;
}
export type CreateVpcResponse = {
vpcId: string;
vpc: VpcHandle;
}
export type ConfigureVpcWireGuardPeerOptions = {
gatewayVmId: string;
clientPublicKey: string;
}
export type ConfigureVpcWireGuardPeerResponse = {
vpcId: string;
gatewayVmId: string;
endpointHost?: string;
endpointPort: number;
listenPort: number;
interfaceName: string;
serverPublicKey: string;
serverTunnelIp: string;
clientTunnelIp: string;
vpcCidr: string;
clientConfig: string;
}
export type CreateVpcWireGuardEphemeralOptions = Record<string, never>;
export type CreateVpcWireGuardEphemeralResponse = {
vpcId: string;
sessionId: string;
endpointHost?: string;
endpointPort: number;
listenPort: number;
interfaceName: string;
serverPublicKey: string;
clientPublicKey: string;
clientPrivateKey?: string;
serverTunnelIp: string;
clientTunnelIp: string;
vpcIp: string;
clientAllowedIps: string[];
vpcCidr: string;
clientConfig: string;
}
export type VpcWireGuardEphemeralConnection = CreateVpcWireGuardEphemeralResponse & {
close(): Promise<void>;
}
export type DeleteVpcWireGuardEphemeralOptions = {
sessionId: string;
}
export class VpcWireGuardNamespace {
createEphemeral(options?: CreateVpcWireGuardEphemeralOptions): Promise<VpcWireGuardEphemeralConnection>;
deleteEphemeral(options: DeleteVpcWireGuardEphemeralOptions): Promise<void>;
}
export class VpcHandle {
readonly wireguard: VpcWireGuardNamespace;
readonly vpcId: string;
}
export class VpcNamespace {
create(options: CreateVpcOptions): Promise<CreateVpcResponse>;
configureWireGuardPeer(vpcId: string, options: ConfigureVpcWireGuardPeerOptions): Promise<ConfigureVpcWireGuardPeerResponse>;
}
class VmsNamespace {

@@ -70,0 +145,0 @@ /**

+1
-1
{
"name": "freestyle",
"version": "0.1.54",
"version": "0.1.55",
"type": "module",

@@ -5,0 +5,0 @@ "exports": {