Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onbeam/player-api-client

Package Overview
Dependencies
Maintainers
0
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onbeam/player-api-client - npm Package Compare versions

Comparing version 1.2.8 to 1.2.9

159

dist/index.d.ts

@@ -68,2 +68,3 @@ type ApiRequestOptions = {

signature: string | null;
transactionHash: string | null;
operationId: string | null;

@@ -341,3 +342,3 @@ data?: (string | number | boolean | Record<string, any>) | null;

/**
* Transfer the native token (BEAM)
* Transfer the native token
* @param entityId

@@ -370,155 +371,2 @@ * @param requestBody

type GenerateConnectionRequestInput = {
entityId: string;
chainId?: number;
};
type GenerateConnectionRequestResponse = {
status: GenerateConnectionRequestResponse.status;
id: string;
createdAt: string;
updatedAt: string | null;
url: string;
};
declare namespace GenerateConnectionRequestResponse {
enum status {
PENDING = "Pending",
CONNECTED = "Connected",
ERROR = "Error"
}
}
type GetConnectionRequestResponse = {
status: GetConnectionRequestResponse.status;
id: string;
createdAt: string;
updatedAt: string | null;
};
declare namespace GetConnectionRequestResponse {
enum status {
PENDING = "Pending",
CONNECTED = "Connected",
ERROR = "Error"
}
}
type WebConnectionCreateOperationInput = {
accountAddress: string;
chainId: number;
transactions: Array<{
data: any;
type: 'OpenfortTransaction' | 'OpenfortReservoirOrder' | 'OpenfortRevokeSession';
}> | null;
operationProcessing?: WebConnectionCreateOperationInput.operationProcessing;
operationId?: string | null;
};
declare namespace WebConnectionCreateOperationInput {
enum operationProcessing {
SIGN_ONLY = "SignOnly",
EXECUTE = "Execute"
}
}
type WebConnectionRequestInput = {
message: string;
chainId?: number;
};
type WebConnectionRequestResponse = {
url: string;
};
type WebConnectionRevokeSessionInput = {
accountAddress: string;
address: string;
operationId?: string | null;
operationProcessing?: WebConnectionRevokeSessionInput.operationProcessing;
chainId?: number;
};
declare namespace WebConnectionRevokeSessionInput {
enum operationProcessing {
SIGN_ONLY = "SignOnly",
EXECUTE = "Execute"
}
}
type WebConnectionTransactionInput = {
accountAddress: string;
operationId?: string | null;
operationProcessing?: WebConnectionTransactionInput.operationProcessing;
interactions: Array<{
from: string;
to?: string | null;
gas?: string | null;
gasPrice?: string | null;
value?: string | null;
data?: string | null;
nonce?: string | null;
}>;
chainId?: number;
};
declare namespace WebConnectionTransactionInput {
enum operationProcessing {
SIGN_ONLY = "SignOnly",
EXECUTE = "Execute"
}
}
type WebConnectionVerifyRequestInput = {
accountAddress: string;
ownerAddress: string;
chainId?: number;
};
type WebConnectionVerifyRequestResponse = {
success: boolean;
};
declare class ConnectorService {
readonly httpRequest: BaseHttpRequest;
constructor(httpRequest: BaseHttpRequest);
/**
* @param requestBody
* @returns GenerateConnectionRequestResponse
* @throws ApiError
*/
createConnectionRequest(requestBody: GenerateConnectionRequestInput): CancelablePromise<GenerateConnectionRequestResponse>;
/**
* @param requestId
* @returns GetConnectionRequestResponse
* @throws ApiError
*/
getConnectionRequest(requestId: string): CancelablePromise<GetConnectionRequestResponse>;
/**
* @param requestBody
* @returns WebConnectionRequestResponse
* @throws ApiError
*/
generateWebConnection(requestBody: WebConnectionRequestInput): CancelablePromise<WebConnectionRequestResponse>;
/**
* @param requestBody
* @returns WebConnectionVerifyRequestResponse
* @throws ApiError
*/
verifyOwnership(requestBody: WebConnectionVerifyRequestInput): CancelablePromise<WebConnectionVerifyRequestResponse>;
/**
* @param requestBody
* @returns CommonOperationResponse
* @throws ApiError
*/
createWebConnectionOperation(requestBody: WebConnectionCreateOperationInput): CancelablePromise<CommonOperationResponse>;
/**
* @param requestBody
* @returns CommonOperationResponse
* @throws ApiError
*/
revokeSessionByAccountAddress(requestBody: WebConnectionRevokeSessionInput): CancelablePromise<CommonOperationResponse>;
/**
* @param requestBody
* @returns CommonOperationResponse
* @throws ApiError
*/
createTransactionForAddress(requestBody: WebConnectionTransactionInput): CancelablePromise<CommonOperationResponse>;
}
type ConvertTokenRequestInput = {

@@ -1321,3 +1169,2 @@ tokenIn: string;

readonly assets: AssetsService;
readonly connector: ConnectorService;
readonly exchange: ExchangeService;

@@ -1340,2 +1187,2 @@ readonly health: HealthService;

export { AcceptAssetOfferRequestInput, Beam, BuyAssetRequestInput, CancelAssetListingRequestInput, CancelAssetOfferRequestInput, CommonOperationResponse, ConfirmOperationRequest, ConvertTokenRequestInput, CreateAssetOfferRequestInput, CreateOperationRequestInput, CreateTransactionRequestInput, type GenerateConnectionRequestInput, GenerateConnectionRequestResponse, GenerateSessionRequestResponse, type GenerateSessionUrlRequestInput, type GetActiveSessionResponse, type GetActiveSessionsResponse, type GetAllUsersResponse, type GetAssetListingsResponse, GetAssetResponse, GetAssetsForContractBodyInput, type GetAssetsForContractResponse, GetAssetsForUserBodyInput, type GetAssetsForUserResponse, type GetChainCurrenciesResponse, GetConnectionRequestResponse, GetListedAssetsBodyInput, type GetQuoteResponse, GetSessionRequestResponse, type GetTransactionResponse, type GetTransactionsResponse, type GetUserCurrenciesResponse, type GetUserNativeCurrencyResponse, type GetUserResponse, RevokeSessionRequestInput, SellAssetRequestInput, TransferAssetRequestInput, TransferNativeTokenRequestInput, TransferTokenRequestInput, WebConnectionCreateOperationInput, type WebConnectionRequestInput, type WebConnectionRequestResponse, WebConnectionRevokeSessionInput, WebConnectionTransactionInput, type WebConnectionVerifyRequestInput, type WebConnectionVerifyRequestResponse, Beam as default };
export { AcceptAssetOfferRequestInput, Beam, BuyAssetRequestInput, CancelAssetListingRequestInput, CancelAssetOfferRequestInput, CommonOperationResponse, ConfirmOperationRequest, ConvertTokenRequestInput, CreateAssetOfferRequestInput, CreateOperationRequestInput, CreateTransactionRequestInput, GenerateSessionRequestResponse, type GenerateSessionUrlRequestInput, type GetActiveSessionResponse, type GetActiveSessionsResponse, type GetAllUsersResponse, type GetAssetListingsResponse, GetAssetResponse, GetAssetsForContractBodyInput, type GetAssetsForContractResponse, GetAssetsForUserBodyInput, type GetAssetsForUserResponse, type GetChainCurrenciesResponse, GetListedAssetsBodyInput, type GetQuoteResponse, GetSessionRequestResponse, type GetTransactionResponse, type GetTransactionsResponse, type GetUserCurrenciesResponse, type GetUserNativeCurrencyResponse, type GetUserResponse, RevokeSessionRequestInput, SellAssetRequestInput, TransferAssetRequestInput, TransferNativeTokenRequestInput, TransferTokenRequestInput, Beam as default };

@@ -497,3 +497,3 @@ var __accessCheck = (obj, member, msg) => {

/**
* Transfer the native token (BEAM)
* Transfer the native token
* @param entityId

@@ -560,101 +560,2 @@ * @param requestBody

// src/generated/services/ConnectorService.ts
var ConnectorService = class {
constructor(httpRequest) {
this.httpRequest = httpRequest;
}
/**
* @param requestBody
* @returns GenerateConnectionRequestResponse
* @throws ApiError
*/
createConnectionRequest(requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/player/connector",
body: requestBody,
mediaType: "application/json"
});
}
/**
* @param requestId
* @returns GetConnectionRequestResponse
* @throws ApiError
*/
getConnectionRequest(requestId) {
return this.httpRequest.request({
method: "GET",
url: "/v1/player/connector/{requestId}",
path: {
"requestId": requestId
}
});
}
/**
* @param requestBody
* @returns WebConnectionRequestResponse
* @throws ApiError
*/
generateWebConnection(requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/player/connector/web-connection",
body: requestBody,
mediaType: "application/json"
});
}
/**
* @param requestBody
* @returns WebConnectionVerifyRequestResponse
* @throws ApiError
*/
verifyOwnership(requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/player/connector/web-connection/user/verify",
body: requestBody,
mediaType: "application/json"
});
}
/**
* @param requestBody
* @returns CommonOperationResponse
* @throws ApiError
*/
createWebConnectionOperation(requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/player/connector/web-connection/operation",
body: requestBody,
mediaType: "application/json"
});
}
/**
* @param requestBody
* @returns CommonOperationResponse
* @throws ApiError
*/
revokeSessionByAccountAddress(requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/player/connector/web-connection/session/revoke",
body: requestBody,
mediaType: "application/json"
});
}
/**
* @param requestBody
* @returns CommonOperationResponse
* @throws ApiError
*/
createTransactionForAddress(requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/player/connector/web-connection/transaction",
body: requestBody,
mediaType: "application/json"
});
}
};
// src/generated/services/ExchangeService.ts

@@ -1302,3 +1203,2 @@ var ExchangeService = class {

this.assets = new AssetsService(this.request);
this.connector = new ConnectorService(this.request);
this.exchange = new ExchangeService(this.request);

@@ -1305,0 +1205,0 @@ this.health = new HealthService(this.request);

2

package.json

@@ -26,3 +26,3 @@ {

},
"version": "1.2.8",
"version": "1.2.9",
"scripts": {

@@ -29,0 +29,0 @@ "generate": "pnpm generate:client && pnpm generate:barrels && pnpm build",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc