Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@squarecloud/api-types
Advanced tools
Simple type definitions for the Square Cloud API.
Install with npm / yarn / pnpm:
npm install @squarecloud/api-types
yarn add @squarecloud/api-types
pnpm add @squarecloud/api-types
Using these type definitions is straightforward. You just need to specify the desired API version by appending /v*
to the import path, where *
represents your chosen API version. Here are some usage examples:
// Importing the API definitions for version 2
import { APIApplication } from '@squarecloud/api-types/v2';
You can also opt to import only the specific parts of the module that you need. Your choices include common
, utils
, payloads/v*
, rest/v*
. Here are examples:
// Importing a specific REST endpoint for version 2
import { RESTPostAPIApplicationCommitQuery } from '@squarecloud/api-types/rest/v2';
Note: The
v*
exports (@squarecloud/api-types/v*
) include the relevant version ofpayloads
andrest
, alongside thecommon
andutils
exports.
The exported types for each API version are organized into two main categories:
API
prefix represent payloads you may receive from the REST API.REST
prefix represent data that is sent to and received from the REST API.For endpoint options in the REST
category, they follow a specific structure: REST<HTTP Method><Type><Query|(JSON|FormData)Body|Result|ResultPayload>
, where the type indicates the expected return data. For example, RESTPostAPIApplicationCommitQuery
or RESTPostAPIApplicationUploadResult
.
Result
, it represents the expected result when calling its corresponding route.ResultPayload
, it represents the raw result you can expect when calling its corresponding route.0.3.3
RESTPostAPIApplicationCommitQuery
due to API changesFAQs
Typings for Square Cloud API
The npm package @squarecloud/api-types receives a total of 228 weekly downloads. As such, @squarecloud/api-types popularity was classified as not popular.
We found that @squarecloud/api-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.