npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@corellium/client-api

v0.3.2

Published

Corellium Client API

Downloads

10

Readme

@corellium/client-api

CorelliumClient - JavaScript client for @corellium/client-api REST API to manage your virtual devices. This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 4.5.0-16775
  • Package version: 0.3.2
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install @corellium/client-api --save

Finally, you need to build the module:

npm run build
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

To use the link you just defined in your project, switch to the directory you want to use your @corellium/client-api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

git

If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var CorelliumClient = require('@corellium/client-api');

var defaultClient = CorelliumClient.ApiClient.instance;
// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.accessToken = "YOUR ACCESS TOKEN"

var api = new CorelliumClient.CorelliumApi()
var projectId = "projectId_example"; // {String} Project ID - uuid
var projectKey = {
  "kind": "ssh",
  "label": "My New Key",
  "key": "ssh-ed25519 <key>"
}; // {ProjectKey} Key to add
api.v1AddProjectKey(projectId, projectKey).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://app.corellium.com/api

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- CorelliumClient.CorelliumApi | v1AddProjectKey | POST /v1/projects/{projectId}/keys | Add Project Authorized Key CorelliumClient.CorelliumApi | v1AddTeamRoleToProject | PUT /v1/roles/projects/{projectId}/teams/{teamId}/roles/{roleId} | Add team role to project CorelliumClient.CorelliumApi | v1AddUserRoleToProject | PUT /v1/roles/projects/{projectId}/users/{userId}/roles/{roleId} | Add user role to project CorelliumClient.CorelliumApi | v1AddUserToTeam | PUT /v1/teams/{teamId}/users/{userId} | Add user to team CorelliumClient.CorelliumApi | v1AgentAppReady | GET /v1/instances/{instanceId}/agent/v1/app/ready | Check if App subsystem is ready CorelliumClient.CorelliumApi | v1AgentDeleteFile | DELETE /v1/instances/{instanceId}/agent/v1/file/device/{filePath} | Delete a File on VM CorelliumClient.CorelliumApi | v1AgentGetFile | GET /v1/instances/{instanceId}/agent/v1/file/device/{filePath} | Download a File from VM CorelliumClient.CorelliumApi | v1AgentGetTempFilename | POST /v1/instances/{instanceId}/agent/v1/file/temp | Get the path for a new temp file CorelliumClient.CorelliumApi | v1AgentInstallApp | POST /v1/instances/{instanceId}/agent/v1/app/install | Install App at path CorelliumClient.CorelliumApi | v1AgentInstallProfile | POST /v1/instances/{instanceId}/agent/v1/profile/install | Install a Profile to VM CorelliumClient.CorelliumApi | v1AgentKillApp | POST /v1/instances/{instanceId}/agent/v1/app/apps/{bundleId}/kill | Kill an App CorelliumClient.CorelliumApi | v1AgentListAppIcons | GET /v1/instances/{instanceId}/agent/v1/app/icons | List App Icons CorelliumClient.CorelliumApi | v1AgentListApps | GET /v1/instances/{instanceId}/agent/v1/app/apps | List Apps CorelliumClient.CorelliumApi | v1AgentListAppsStatus | GET /v1/instances/{instanceId}/agent/v1/app/apps/update | List Apps Status CorelliumClient.CorelliumApi | v1AgentListProfiles | GET /v1/instances/{instanceId}/agent/v1/profile/profiles | List Profiles CorelliumClient.CorelliumApi | v1AgentRunApp | POST /v1/instances/{instanceId}/agent/v1/app/apps/{bundleId}/run | Run an App CorelliumClient.CorelliumApi | v1AgentSetFileAttributes | PATCH /v1/instances/{instanceId}/agent/v1/file/device/{filePath} | Change Attrs of a File on VM CorelliumClient.CorelliumApi | v1AgentSystemGetAdbAuth | GET /v1/instances/{instanceId}/agent/v1/system/adbauth | Get ADB Auth Setting (AOSP only) CorelliumClient.CorelliumApi | v1AgentSystemGetNetwork | GET /v1/instances/{instanceId}/agent/v1/system/network | Get IP of eth0 (AOSP only) CorelliumClient.CorelliumApi | v1AgentSystemGetProp | POST /v1/instances/{instanceId}/agent/v1/system/getprop | Get System Property (AOSP only) CorelliumClient.CorelliumApi | v1AgentSystemInstallOpenGApps | POST /v1/instances/{instanceId}/agent/v1/system/install-opengapps | Install OpenGApps (AOSP only) CorelliumClient.CorelliumApi | v1AgentSystemLock | POST /v1/instances/{instanceId}/agent/v1/system/lock | Lock Device (iOS Only) CorelliumClient.CorelliumApi | v1AgentSystemSetAdbAuth | PUT /v1/instances/{instanceId}/agent/v1/system/adbauth | Set ADB Auth Setting (AOSP only) CorelliumClient.CorelliumApi | v1AgentSystemShutdown | POST /v1/instances/{instanceId}/agent/v1/system/shutdown | Instruct VM to halt CorelliumClient.CorelliumApi | v1AgentSystemUnlock | POST /v1/instances/{instanceId}/agent/v1/system/unlock | Unlock Device (iOS Only) CorelliumClient.CorelliumApi | v1AgentUninstallApp | POST /v1/instances/{instanceId}/agent/v1/app/apps/{bundleId}/uninstall | Uninstall an App CorelliumClient.CorelliumApi | v1AgentUninstallProfile | DELETE /v1/instances/{instanceId}/agent/v1/profile/profiles/{profileId} | Uninstall a Profile from VM CorelliumClient.CorelliumApi | v1AgentUploadFile | PUT /v1/instances/{instanceId}/agent/v1/file/device/{filePath} | Upload a file to VM CorelliumClient.CorelliumApi | v1AuthLogin | POST /v1/auth/login | Log In CorelliumClient.CorelliumApi | v1BtracePreauthorize | GET /v1/instances/{instanceId}/btrace-authorize | Pre-authorize an btrace download CorelliumClient.CorelliumApi | v1ClearCoreTrace | DELETE /v1/instances/{instanceId}/strace | Clear CoreTrace logs CorelliumClient.CorelliumApi | v1ClearHyperTrace | DELETE /v1/instances/{instanceId}/btrace | Clear HyperTrace logs CorelliumClient.CorelliumApi | v1ClearHyperTraceHooks | POST /v1/instances/{instanceId}/hooks/clear | Clear Hooks on an instance CorelliumClient.CorelliumApi | v1ClearInstancePanics | DELETE /v1/instances/{instanceId}/panics | Clear Panics CorelliumClient.CorelliumApi | v1CreateHook | POST /v1/instances/{instanceId}/hooks | Create hypervisor hook for Instance CorelliumClient.CorelliumApi | v1CreateImage | POST /v1/images | Create a new Image CorelliumClient.CorelliumApi | v1CreateInstance | POST /v1/instances | Create Instance CorelliumClient.CorelliumApi | v1CreateProject | POST /v1/projects | Create a Project CorelliumClient.CorelliumApi | v1CreateSnapshot | POST /v1/instances/{instanceId}/snapshots | Create Instance Snapshot CorelliumClient.CorelliumApi | v1CreateSubscriberInvite | POST /v1/billing/invites | Create Subscriber Invite CorelliumClient.CorelliumApi | v1CreateUser | POST /v1/users | Create User CorelliumClient.CorelliumApi | v1DeleteHook | DELETE /v1/hooks/{hookId} | Delete an existing hypervisor hook CorelliumClient.CorelliumApi | v1DeleteImage | DELETE /v2/images/{imageId} | Delete Image CorelliumClient.CorelliumApi | v1DeleteInstance | DELETE /v1/instances/{instanceId} | Remove Instance CorelliumClient.CorelliumApi | v1DeleteInstanceSnapshot | DELETE /v1/instances/{instanceId}/snapshots/{snapshotId} | Delete a Snapshot CorelliumClient.CorelliumApi | v1DeleteProject | DELETE /v1/projects/{projectId} | Delete a Project CorelliumClient.CorelliumApi | v1DeleteSnapshot | DELETE /v1/snapshots/{snapshotId} | Delete a Snapshot CorelliumClient.CorelliumApi | v1DeleteUser | DELETE /v1/users/{userId} | Delete User CorelliumClient.CorelliumApi | v1DisableExposePort | POST /v1/instances/{instanceId}/exposeport/disable | Disable an exposed port on an instance for device access. CorelliumClient.CorelliumApi | v1EnableExposePort | POST /v1/instances/{instanceId}/exposeport/enable | Enable an exposed port on an instance for device access. CorelliumClient.CorelliumApi | v1ExecuteHyperTraceHooks | POST /v1/instances/{instanceId}/hooks/execute | Execute Hooks on an instance CorelliumClient.CorelliumApi | v1GetHookById | GET /v1/hooks/{hookId} | Get hypervisor hook by id CorelliumClient.CorelliumApi | v1GetHooks | GET /v1/instances/{instanceId}/hooks | Get all hypervisor hooks for Instance CorelliumClient.CorelliumApi | v1GetImage | GET /v1/images/{imageId} | Get Image Metadata CorelliumClient.CorelliumApi | v1GetImages | GET /v1/images | Get all Images Metadata CorelliumClient.CorelliumApi | v1GetInstance | GET /v1/instances/{instanceId} | Get Instance CorelliumClient.CorelliumApi | v1GetInstanceConsole | GET /v1/instances/{instanceId}/console | Get console websocket URL CorelliumClient.CorelliumApi | v1GetInstanceConsoleLog | GET /v1/instances/{instanceId}/consoleLog | Get Console Log CorelliumClient.CorelliumApi | v1GetInstanceGpios | GET /v1/instances/{instanceId}/gpios | Get Instance GPIOs CorelliumClient.CorelliumApi | v1GetInstancePanics | GET /v1/instances/{instanceId}/panics | Get Panics CorelliumClient.CorelliumApi | v1GetInstancePeripherals | GET /v1/instances/{instanceId}/peripherals | Get Instance Peripherals CorelliumClient.CorelliumApi | v1GetInstanceRate | GET /v1/instances/{instanceId}/rate | Get rate information CorelliumClient.CorelliumApi | v1GetInstanceScreenshot | GET /v1/instances/{instanceId}/screenshot.{format} | Get Instance Screenshot CorelliumClient.CorelliumApi | v1GetInstanceSnapshot | GET /v1/instances/{instanceId}/snapshots/{snapshotId} | Get Instance Snapshot CorelliumClient.CorelliumApi | v1GetInstanceSnapshots | GET /v1/instances/{instanceId}/snapshots | Get Instance Snapshots CorelliumClient.CorelliumApi | v1GetInstances | GET /v1/instances | Get Instances CorelliumClient.CorelliumApi | v1GetModelSoftware | GET /v1/models/{model}/software | Get Software for Model CorelliumClient.CorelliumApi | v1GetModels | GET /v1/models | Get Supported Models CorelliumClient.CorelliumApi | v1GetProject | GET /v1/projects/{projectId} | Get a Project CorelliumClient.CorelliumApi | v1GetProjectInstances | GET /v1/projects/{projectId}/instances | Get Instances in Project CorelliumClient.CorelliumApi | v1GetProjectKeys | GET /v1/projects/{projectId}/keys | Get Project Authorized Keys CorelliumClient.CorelliumApi | v1GetProjectVpnConfig | GET /v1/projects/{projectId}/vpnconfig/{format} | Get Project VPN Configuration CorelliumClient.CorelliumApi | v1GetProjects | GET /v1/projects | Get Projects CorelliumClient.CorelliumApi | v1GetResetLinkInfo | GET /v1/users/reset-link-info | Send Password Reset Link Info CorelliumClient.CorelliumApi | v1GetSnapshot | GET /v1/snapshots/{snapshotId} | Get Snapshot CorelliumClient.CorelliumApi | v1InstancesInstanceIdMessagePost | POST /v1/instances/{instanceId}/message | Receive a message on an iOS vm CorelliumClient.CorelliumApi | v1InstancesInstanceIdNetdumpPcapGet | GET /v1/instances/{instanceId}/netdump.pcap | Download a netdump pcap file CorelliumClient.CorelliumApi | v1InstancesInstanceIdNetworkMonitorPcapGet | GET /v1/instances/{instanceId}/networkMonitor.pcap | Download a Network Monitor pcap file CorelliumClient.CorelliumApi | v1Kcrange | GET /v1/instances/{instanceId}/btrace-kcrange | Get Kernel extension ranges CorelliumClient.CorelliumApi | v1ListThreads | GET /v1/instances/{instanceId}/strace/thread-list | Get Running Threads (CoreTrace) CorelliumClient.CorelliumApi | v1MediaPlay | POST /v1/instances/{instanceId}/media/play | Start playing media CorelliumClient.CorelliumApi | v1MediaStop | POST /v1/instances/{instanceId}/media/stop | Stop playing media CorelliumClient.CorelliumApi | v1PatchInstance | PATCH /v1/instances/{instanceId} | Update Instance CorelliumClient.CorelliumApi | v1PauseInstance | POST /v1/instances/{instanceId}/pause | Pause an Instance CorelliumClient.CorelliumApi | v1PostInstanceInput | POST /v1/instances/{instanceId}/input | Provide Instance Input CorelliumClient.CorelliumApi | v1Ready | GET /v1/ready | API Status CorelliumClient.CorelliumApi | v1RebootInstance | POST /v1/instances/{instanceId}/reboot | Reboot an Instance CorelliumClient.CorelliumApi | v1RemoveProjectKey | DELETE /v1/projects/{projectId}/keys/{keyId} | Delete Project Authorized Key CorelliumClient.CorelliumApi | v1RemoveTeamRoleFromProject | DELETE /v1/roles/projects/{projectId}/teams/{teamId}/roles/{roleId} | Remove team role from project CorelliumClient.CorelliumApi | v1RemoveUserFromTeam | DELETE /v1/teams/{teamId}/users/{userId} | Remove user from team CorelliumClient.CorelliumApi | v1RemoveUserRoleFromProject | DELETE /v1/roles/projects/{projectId}/users/{userId}/roles/{roleId} | Remove user role from project CorelliumClient.CorelliumApi | v1RenameInstanceSnapshot | PATCH /v1/instances/{instanceId}/snapshots/{snapshotId} | Rename a Snapshot CorelliumClient.CorelliumApi | v1ResetUserPassword | POST /v1/users/reset-password | Reset User Password CorelliumClient.CorelliumApi | v1RestoreBackup | POST /v1/instances/{instanceId}/restoreBackup | Restore backup CorelliumClient.CorelliumApi | v1RestoreInstanceSnapshot | POST /v1/instances/{instanceId}/snapshots/{snapshotId}/restore | Restore a Snapshot CorelliumClient.CorelliumApi | v1Roles | GET /v1/roles | Get all roles CorelliumClient.CorelliumApi | v1RotateInstance | POST /v1/instances/{instanceId}/rotate | Rotate device to specified orientation CorelliumClient.CorelliumApi | v1SendUserResetLink | POST /v1/users/send-reset-link | Send Password Reset Link CorelliumClient.CorelliumApi | v1SetInstanceGpios | PUT /v1/instances/{instanceId}/gpios | Set Instance GPIOs CorelliumClient.CorelliumApi | v1SetInstancePeripherals | PUT /v1/instances/{instanceId}/peripherals | Set Instance Peripherals CorelliumClient.CorelliumApi | v1SetInstanceState | PUT /v1/instances/{instanceId}/state | Set state of Instance CorelliumClient.CorelliumApi | v1SnapshotRename | PATCH /v1/snapshots/{snapshotId} | Rename a Snapshot CorelliumClient.CorelliumApi | v1StartCoreTrace | POST /v1/instances/{instanceId}/strace/enable | Start CoreTrace on an instance CorelliumClient.CorelliumApi | v1StartHyperTrace | POST /v1/instances/{instanceId}/btrace/enable | Start HyperTrace on an instance CorelliumClient.CorelliumApi | v1StartInstance | POST /v1/instances/{instanceId}/start | Start an Instance CorelliumClient.CorelliumApi | v1StartNetdump | POST /v1/instances/{instanceId}/netdump/enable | Start Enhanced Network Monitor on an instance. CorelliumClient.CorelliumApi | v1StartNetworkMonitor | POST /v1/instances/{instanceId}/sslsplit/enable | Start Network Monitor on an instance. CorelliumClient.CorelliumApi | v1StopCoreTrace | POST /v1/instances/{instanceId}/strace/disable | Stop CoreTrace on an instance. CorelliumClient.CorelliumApi | v1StopHyperTrace | POST /v1/instances/{instanceId}/btrace/disable | Stop HyperTrace on an instance. CorelliumClient.CorelliumApi | v1StopInstance | POST /v1/instances/{instanceId}/stop | Stop an Instance CorelliumClient.CorelliumApi | v1StopNetdump | POST /v1/instances/{instanceId}/netdump/disable | Stop Enhanced Network Monitor on an instance. CorelliumClient.CorelliumApi | v1StopNetworkMonitor | POST /v1/instances/{instanceId}/sslsplit/disable | Stop Network Monitor on an instance. CorelliumClient.CorelliumApi | v1TeamChange | PATCH /v1/teams/{teamId} | Update team CorelliumClient.CorelliumApi | v1TeamCreate | POST /v1/teams | Create team CorelliumClient.CorelliumApi | v1TeamDelete | DELETE /v1/teams/{teamId} | Delete team CorelliumClient.CorelliumApi | v1Teams | GET /v1/teams | Get teams CorelliumClient.CorelliumApi | v1UnpauseInstance | POST /v1/instances/{instanceId}/unpause | Unpause an Instance CorelliumClient.CorelliumApi | v1UpdateHook | PUT /v1/hooks/{hookId} | Update an existing hypervisor hook CorelliumClient.CorelliumApi | v1UpdateProject | PATCH /v1/projects/{projectId} | Update a Project CorelliumClient.CorelliumApi | v1UpdateProjectSettings | PATCH /v1/projects/{projectId}/settings | Change Project Settings CorelliumClient.CorelliumApi | v1UpdateUser | PATCH /v1/users/{userId} | Update User CorelliumClient.CorelliumApi | v1UpgradeInstance | POST /v1/instances/{instanceId}/upgrade | Upgrade iOS version CorelliumClient.CorelliumApi | v1UploadImageData | POST /v1/images/{imageId} | Upload Image Data CorelliumClient.CorelliumApi | v1UserAgreeTerms | POST /v1/users/agree | Consent to the current terms and conditions CorelliumClient.CorelliumApi | v1UsersChangePasswordPost | POST /v1/users/change-password | Change User Password CorelliumClient.CorelliumApi | v1UsersLogin | POST /v1/users/login | Log In CorelliumClient.CorelliumApi | v2GetInstanceQuickConnectCommand | GET /v2/instances/{instanceId}/quickConnectCommand | Recommended SSH Command for Quick Connect CorelliumClient.CorelliumApi | v2GetInstanceState | GET /v2/instances/{instanceId}/state | Get state of Instance

Documentation for Models

Documentation for Authorization

BearerAuth

  • Type: Bearer authentication (ApiToken or JWT)