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 2.0.19 to 2.0.20

530

dist/index.d.ts

@@ -135,7 +135,311 @@ type ApiRequestOptions = {

chainId: number;
url: string;
actions: Array<({
type: 'Sign' | 'SessionRevoke' | 'MarketplaceCreateOffer' | 'MarketplaceCancelOffer' | 'MarketplaceAcceptOffer' | 'MarketplaceBuyAsset' | 'MarketplaceListAsset' | 'MarketplaceCancelListing' | 'ExchangeConvert' | 'ExchangeWrap' | 'ExchangeUnwrap' | 'TransferNFTs' | 'TransferToken' | 'CustomTransaction';
id: string;
index: number;
operationId: string | null;
} & ({
type: 'TransferNFTs';
context: {
assets: Array<{
receiverAddress: string;
contractAddress: string;
assetId: string;
amount: number;
}>;
};
signature: ({
type: 'Message';
id: string;
data: string;
signature: string | null;
actionId: string | null;
} & {
hash: string;
});
transaction: {
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string | null;
};
} | {
type: 'TransferToken';
context: {
amount: string;
contractAddress: string;
receiverAddress: string;
};
signature: ({
type: 'Message';
id: string;
data: string;
signature: string | null;
actionId: string | null;
} & {
hash: string;
});
transaction: {
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string | null;
};
} | {
type: 'MarketplaceCreateOffer';
signature: ({
type: 'TypedData';
id: string;
data?: any;
signature: string | null;
actionId: string | null;
} & {
hash: string;
});
transaction: {
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string | null;
};
} | {
type: 'MarketplaceCancelOffer';
signature: ({
type: 'Message';
id: string;
data: string;
signature: string | null;
actionId: string | null;
} & {
hash: string;
});
transaction: {
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string | null;
};
} | {
type: 'MarketplaceAcceptOffer';
signature: ({
type: 'Message';
id: string;
data: string;
signature: string | null;
actionId: string | null;
} & {
hash: string;
});
transaction: {
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string | null;
};
} | {
type: 'MarketplaceListAsset';
signature: ({
type: 'TypedData';
id: string;
data?: any;
signature: string | null;
actionId: string | null;
} & {
hash: string;
});
} | {
type: 'MarketplaceBuyAsset';
signature: ({
type: 'Message';
id: string;
data: string;
signature: string | null;
actionId: string | null;
} & {
hash: string;
});
transaction: {
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string | null;
};
} | {
type: 'MarketplaceCancelListing';
signature: ({
type: 'Message';
id: string;
data: string;
signature: string | null;
actionId: string | null;
} & {
hash: string;
});
transaction: {
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string | null;
};
} | {
type: 'SessionRevoke';
signature: ({
type: 'Message';
id: string;
data: string;
signature: string | null;
actionId: string | null;
} & {
hash: string;
});
transaction: {
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string | null;
};
} | {
type: 'ExchangeConvert';
context: {
input: {
address: string;
amount: string;
};
output: {
address: string;
amount: string;
};
};
signature: ({
type: 'Message';
id: string;
data: string;
signature: string | null;
actionId: string | null;
} & {
hash: string;
});
transaction: {
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string | null;
};
} | {
type: 'ExchangeWrap';
context: {
amount: string;
};
signature: ({
type: 'Message';
id: string;
data: string;
signature: string | null;
actionId: string | null;
} & {
hash: string;
});
transaction: {
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string | null;
};
} | {
type: 'ExchangeUnwrap';
context: {
amount: string;
};
signature: ({
type: 'Message';
id: string;
data: string;
signature: string | null;
actionId: string | null;
} & {
hash: string;
});
transaction: {
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string | null;
};
} | {
type: 'CustomTransaction';
signature: (({
type: 'Message';
id: string;
data: string;
signature: string | null;
actionId: string | null;
} & {
hash: string;
}) | ({
type: 'TypedData';
id: string;
data?: any;
signature: string | null;
actionId: string | null;
} & {
hash: string;
}));
transaction: {
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string | null;
};
} | {
type: 'Sign';
signature: (({
type: 'Message';
id: string;
data: string;
signature: string | null;
actionId: string | null;
} & {
hash: string;
}) | ({
type: 'TypedData';
id: string;
data?: any;
signature: string | null;
actionId: string | null;
} & {
hash: string;
}));
}))>;
transactions: Array<{
type: 'OpenfortTransaction' | 'OpenfortReservoirOrder' | 'OpenfortRevokeSession';
status: 'Pending' | 'Signed' | 'Rejected' | 'Executed' | 'Error';
id: string;
openfortId: string | null;
sponsored: boolean;
actionId: string | null;
hash: string;
type: 'OpenfortTransaction' | 'OpenfortReservoirOrder' | 'OpenfortRevokeSession' | null;
externalId: string | null;

@@ -146,9 +450,9 @@ signature: string | null;

data?: any;
hash: string;
}>;
url: string;
};
declare namespace CommonOperationResponse {
enum status {
PENDING = "Pending",
SIGNED = "Signed",
PENDING = "Pending",
REJECTED = "Rejected",

@@ -1062,7 +1366,11 @@ EXECUTED = "Executed",

}> | null;
actions?: Array<{
id: string;
signature: string;
}> | null;
};
declare namespace ConfirmOperationRequest {
enum status {
PENDING = "Pending",
SIGNED = "Signed",
PENDING = "Pending",
REJECTED = "Rejected",

@@ -1076,3 +1384,169 @@ EXECUTED = "Executed",

entityId: string;
transactions: Array<{
actions?: Array<({
type: 'Sign' | 'SessionRevoke' | 'MarketplaceCreateOffer' | 'MarketplaceCancelOffer' | 'MarketplaceAcceptOffer' | 'MarketplaceBuyAsset' | 'MarketplaceListAsset' | 'MarketplaceCancelListing' | 'ExchangeConvert' | 'ExchangeWrap' | 'ExchangeUnwrap' | 'TransferNFTs' | 'TransferToken' | 'CustomTransaction';
} & ({
type: 'TransferNFTs';
signature: {
type: 'Message';
data: string;
};
transaction: {
openfortId?: string | null;
sponsored: boolean;
};
context: {
assets: Array<{
receiverAddress: string;
contractAddress: string;
assetId: string;
amount: number;
}>;
};
} | {
type: 'TransferToken';
signature: {
type: 'Message';
data: string;
};
transaction: {
openfortId?: string | null;
sponsored: boolean;
};
context: {
amount: string;
contractAddress: string;
receiverAddress: string;
};
} | {
type: 'MarketplaceCreateOffer';
signature: {
type: 'TypedData';
data?: any;
};
} | {
type: 'MarketplaceCancelOffer';
signature: {
type: 'Message';
data: string;
};
transaction: {
openfortId?: string | null;
sponsored: boolean;
};
} | {
type: 'MarketplaceAcceptOffer';
signature: {
type: 'Message';
data: string;
};
transaction: {
openfortId?: string | null;
sponsored: boolean;
};
} | {
type: 'MarketplaceListAsset';
signature: {
type: 'TypedData';
data?: any;
};
} | {
type: 'MarketplaceBuyAsset';
signature: {
type: 'Message';
data: string;
};
transaction: {
openfortId?: string | null;
sponsored: boolean;
};
} | {
type: 'MarketplaceCancelListing';
signature: {
type: 'Message';
data: string;
};
transaction: {
openfortId?: string | null;
sponsored: boolean;
};
} | {
type: 'SessionRevoke';
signature: {
type: 'Message';
data: string;
};
transaction: {
openfortId?: string | null;
sponsored: boolean;
};
} | {
type: 'ExchangeConvert';
context: {
input: {
address: string;
amount: string;
};
output: {
address: string;
amount: string;
};
};
signature: {
type: 'Message';
data: string;
};
transaction: {
openfortId?: string | null;
sponsored: boolean;
};
} | {
type: 'ExchangeWrap';
context: {
amount: string;
};
signature: {
type: 'Message';
data: string;
};
transaction: {
openfortId?: string | null;
sponsored: boolean;
};
} | {
type: 'ExchangeUnwrap';
context: {
amount: string;
};
signature: {
type: 'Message';
data: string;
};
transaction: {
openfortId?: string | null;
sponsored: boolean;
};
} | {
type: 'CustomTransaction';
signature: ({
type: 'Message';
data: string;
} | {
type: 'TypedData';
data?: any;
});
transaction: {
openfortId?: string | null;
sponsored: boolean;
};
} | {
type: 'Sign';
signature: ({
type: 'Message';
data: string;
} | {
type: 'TypedData';
data?: any;
});
}))> | null;
transactions?: Array<{
data?: any;

@@ -1133,2 +1607,35 @@ type: 'OpenfortTransaction' | 'OpenfortReservoirOrder' | 'OpenfortRevokeSession';

type CreateOnrampRequestInput = {
token?: CreateOnrampRequestInput.token;
tokenAmount?: string;
fiatAmount?: string;
paymentCurrency?: CreateOnrampRequestInput.paymentCurrency;
chainId?: number;
};
declare namespace CreateOnrampRequestInput {
enum token {
BEAM = "BEAM"
}
enum paymentCurrency {
USD = "USD",
EUR = "EUR"
}
}
type CreateOnrampRequestResponse = {
url: string;
};
declare class RampService {
readonly httpRequest: BaseHttpRequest;
constructor(httpRequest: BaseHttpRequest);
/**
* @param entityId
* @param requestBody
* @returns CreateOnrampRequestResponse
* @throws ApiError
*/
createOnrampRequest(entityId: string, requestBody: CreateOnrampRequestInput): CancelablePromise<CreateOnrampRequestResponse>;
}
type GenerateSessionRequestResponse = {

@@ -1154,3 +1661,3 @@ status: GenerateSessionRequestResponse.status;

address: string;
suggestedExpiry?: string;
suggestedExpiry?: string | null;
chainId?: number;

@@ -1196,5 +1703,7 @@ };

address: string;
sponsor?: boolean;
policyId?: string | null;
chainId?: number;
operationProcessing?: RevokeSessionRequestInput.operationProcessing;
operationId?: string | null;
operationProcessing?: RevokeSessionRequestInput.operationProcessing;
chainId?: number;
};

@@ -1538,2 +2047,3 @@ declare namespace RevokeSessionRequestInput {

readonly operation: OperationService;
readonly ramp: RampService;
readonly sessions: SessionsService;

@@ -1553,2 +2063,2 @@ readonly stats: StatsService;

export { AcceptAssetOfferRequestInput, Beam, BuyAssetRequestInput, CancelAssetListingRequestInput, CancelAssetOfferRequestInput, type CommonActivityResponse, type CommonAssetActivityRequestInput, type CommonContractActivityRequestInput, CommonOperationResponse, type CommonStatsRequestInput, type CommonStatsResponse, type CommonUserActivityRequestInput, ConfirmOperationRequest, ConvertTokenRequestInput, CreateAssetOfferRequestInput, type CreateConnectionRequestInput, CreateConnectionRequestResponse, CreateOperationRequestInput, CreateTransactionRequestInput, GenerateSessionRequestResponse, type GenerateSessionUrlRequestInput, type GetActiveSessionResponse, type GetActiveSessionsResponse, type GetAllUsersResponse, type GetAssetListingsResponse, GetAssetResponse, GetAssetsForContractBodyInput, type GetAssetsForContractResponse, GetAssetsForUserBodyInput, type GetAssetsForUserResponse, type GetAttributesResponse, type GetChainCurrenciesResponse, GetConnectionRequestResponse, GetListedAssetsBodyInput, GetOwnerAssetsBodyInput, type GetOwnerAssetsResponse, type GetOwnersResponse, type GetQuoteResponse, GetSessionRequestResponse, type GetTransactionResponse, type GetTransactionsResponse, type GetUserCurrenciesResponse, type GetUserNativeCurrencyResponse, type GetUserResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RevokeSessionRequestInput, SellAssetRequestInput, TransferAssetRequestInput, TransferNativeTokenRequestInput, TransferTokenRequestInput, UnwrappingTokenInput, type UpdateUserRequest, WrappingTokenInput, Beam as default };
export { AcceptAssetOfferRequestInput, Beam, BuyAssetRequestInput, CancelAssetListingRequestInput, CancelAssetOfferRequestInput, type CommonActivityResponse, type CommonAssetActivityRequestInput, type CommonContractActivityRequestInput, CommonOperationResponse, type CommonStatsRequestInput, type CommonStatsResponse, type CommonUserActivityRequestInput, ConfirmOperationRequest, ConvertTokenRequestInput, CreateAssetOfferRequestInput, type CreateConnectionRequestInput, CreateConnectionRequestResponse, CreateOnrampRequestInput, type CreateOnrampRequestResponse, CreateOperationRequestInput, CreateTransactionRequestInput, GenerateSessionRequestResponse, type GenerateSessionUrlRequestInput, type GetActiveSessionResponse, type GetActiveSessionsResponse, type GetAllUsersResponse, type GetAssetListingsResponse, GetAssetResponse, GetAssetsForContractBodyInput, type GetAssetsForContractResponse, GetAssetsForUserBodyInput, type GetAssetsForUserResponse, type GetAttributesResponse, type GetChainCurrenciesResponse, GetConnectionRequestResponse, GetListedAssetsBodyInput, GetOwnerAssetsBodyInput, type GetOwnerAssetsResponse, type GetOwnersResponse, type GetQuoteResponse, GetSessionRequestResponse, type GetTransactionResponse, type GetTransactionsResponse, type GetUserCurrenciesResponse, type GetUserNativeCurrencyResponse, type GetUserResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RevokeSessionRequestInput, SellAssetRequestInput, TransferAssetRequestInput, TransferNativeTokenRequestInput, TransferTokenRequestInput, UnwrappingTokenInput, type UpdateUserRequest, WrappingTokenInput, Beam as default };

@@ -1211,2 +1211,26 @@ var __accessCheck = (obj, member, msg) => {

// src/generated/services/RampService.ts
var RampService = class {
constructor(httpRequest) {
this.httpRequest = httpRequest;
}
/**
* @param entityId
* @param requestBody
* @returns CreateOnrampRequestResponse
* @throws ApiError
*/
createOnrampRequest(entityId, requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/player/ramp/on/{entityId}",
path: {
"entityId": entityId
},
body: requestBody,
mediaType: "application/json"
});
}
};
// src/generated/services/SessionsService.ts

@@ -1521,2 +1545,3 @@ var SessionsService = class {

this.operation = new OperationService(this.request);
this.ramp = new RampService(this.request);
this.sessions = new SessionsService(this.request);

@@ -1523,0 +1548,0 @@ this.stats = new StatsService(this.request);

2

package.json

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

},
"version": "2.0.19",
"version": "2.0.20",
"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