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.15 to 1.2.16

38

dist/index.d.ts

@@ -215,2 +215,20 @@ type ApiRequestOptions = {

type GetAttributesResponse = {
data: Array<{
key: string;
kind: 'string' | 'number' | 'date' | 'range';
values?: Array<{
count?: number | null;
value: string;
}> | null;
}>;
};
type GetOwnersResponse = {
data: Array<{
address?: string | null;
quantity?: number | null;
}>;
};
type GetUserCurrenciesResponse = {

@@ -356,3 +374,3 @@ data: Array<{

*/
getContractAssetsPost(assetAddress: string, requestBody: GetAssetsForContractBodyInput): CancelablePromise<GetAssetsForContractResponse>;
getAssetsForContract(assetAddress: string, requestBody: GetAssetsForContractBodyInput): CancelablePromise<GetAssetsForContractResponse>;
/**

@@ -369,2 +387,18 @@ * Get a single NFT (e.g. ERC721 / ERC1155)

getAsset(assetAddress: string, assetId: string, chainId?: number, entityId?: string, owners?: boolean): CancelablePromise<GetAssetResponse>;
/**
* @param assetAddress
* @param chainId
* @returns GetAttributesResponse
* @throws ApiError
*/
getAttributes(assetAddress: string, chainId: number): CancelablePromise<GetAttributesResponse>;
/**
* @param assetAddress
* @param chainId
* @param limit
* @param offset
* @returns GetOwnersResponse
* @throws ApiError
*/
getOwners(assetAddress: string, chainId: number, limit?: string, offset?: string): CancelablePromise<GetOwnersResponse>;
}

@@ -1263,2 +1297,2 @@

export { AcceptAssetOfferRequestInput, Beam, BuyAssetRequestInput, CancelAssetListingRequestInput, CancelAssetOfferRequestInput, CommonOperationResponse, 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 GetChainCurrenciesResponse, GetConnectionRequestResponse, GetListedAssetsBodyInput, type GetQuoteResponse, GetSessionRequestResponse, type GetTransactionResponse, type GetTransactionsResponse, type GetUserCurrenciesResponse, type GetUserNativeCurrencyResponse, type GetUserResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RevokeSessionRequestInput, SellAssetRequestInput, TransferAssetRequestInput, TransferNativeTokenRequestInput, TransferTokenRequestInput, Beam as default };
export { AcceptAssetOfferRequestInput, Beam, BuyAssetRequestInput, CancelAssetListingRequestInput, CancelAssetOfferRequestInput, CommonOperationResponse, 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, type GetOwnersResponse, type GetQuoteResponse, GetSessionRequestResponse, type GetTransactionResponse, type GetTransactionsResponse, type GetUserCurrenciesResponse, type GetUserNativeCurrencyResponse, type GetUserResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RevokeSessionRequestInput, SellAssetRequestInput, TransferAssetRequestInput, TransferNativeTokenRequestInput, TransferTokenRequestInput, Beam as default };

@@ -521,6 +521,6 @@ var __accessCheck = (obj, member, msg) => {

*/
getContractAssetsPost(assetAddress, requestBody) {
getAssetsForContract(assetAddress, requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/player/assets/{assetAddress}",
url: "/v1/player/assets/{assetAddress}/assets",
path: {

@@ -546,3 +546,3 @@ "assetAddress": assetAddress

method: "GET",
url: "/v1/player/assets/{assetAddress}/{assetId}",
url: "/v1/player/assets/{assetAddress}/assets/{assetId}",
path: {

@@ -559,2 +559,42 @@ "assetAddress": assetAddress,

}
/**
* @param assetAddress
* @param chainId
* @returns GetAttributesResponse
* @throws ApiError
*/
getAttributes(assetAddress, chainId) {
return this.httpRequest.request({
method: "GET",
url: "/v1/player/assets/{assetAddress}/attributes",
path: {
"assetAddress": assetAddress
},
query: {
"chainId": chainId
}
});
}
/**
* @param assetAddress
* @param chainId
* @param limit
* @param offset
* @returns GetOwnersResponse
* @throws ApiError
*/
getOwners(assetAddress, chainId, limit = "10", offset = "0") {
return this.httpRequest.request({
method: "GET",
url: "/v1/player/assets/{assetAddress}/owners",
path: {
"assetAddress": assetAddress
},
query: {
"chainId": chainId,
"limit": limit,
"offset": offset
}
});
}
};

@@ -561,0 +601,0 @@

2

package.json

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

},
"version": "1.2.15",
"version": "1.2.16",
"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