@archastro/sdk
    Preparing search index...
    Index

    Constructors

    Methods

    • Issue a single-port relay connect token

      Parameters

      • exposedPort: string

      Returns Promise<{ expires_at: string; token: string }>

      Successful response

    • Expose a port hosted on your device

      Parameters

      • input: { access?: string; host_type: string; name: string; port: number }

        Request body.

      Returns Promise<
          {
              access: string;
              computer?: string;
              host_label: string;
              host_type?: string;
              id: string;
              name: string;
              port: number;
              relay_id?: string;
              state: Record<string, unknown>;
              url: string;
          },
      >

      Successful response

    • Retrieve an exposed port

      Parameters

      • exposedPort: string

      Returns Promise<
          {
              access: string;
              computer?: string;
              host_label: string;
              host_type?: string;
              id: string;
              name: string;
              port: number;
              relay_id?: string;
              state: Record<string, unknown>;
              url: string;
          },
      >

      Successful response

    • Look up an exposed port by host label

      Parameters

      • Optionalparams: { hostLabel?: string }

        Query parameters.

      Returns Promise<
          {
              access: string;
              computer?: string;
              host_label: string;
              host_type?: string;
              id: string;
              name: string;
              port: number;
              relay_id?: string;
              state: Record<string, unknown>;
              url: string;
          },
      >

      Successful response

    • Change an exposed port access policy

      Parameters

      • exposedPort: string
      • input: { access: string }

        Request body.

        • access: string

          owner or computer_viewers.

      Returns Promise<
          {
              access: string;
              computer?: string;
              host_label: string;
              host_type?: string;
              id: string;
              name: string;
              port: number;
              relay_id?: string;
              state: Record<string, unknown>;
              url: string;
          },
      >

      Successful response