+75
-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 @@ /** |
+75
-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 @@ /** |
+75
-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": { |
2770862
0.21%40044
0.16%