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

@onbeam/automation-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/automation-api-client - npm Package Compare versions

Comparing version 1.2.19 to 1.2.20

100

dist/index.d.ts

@@ -52,2 +52,61 @@ type ApiRequestOptions = {

type CommonActivityRequestInput = {
limit?: number;
types?: Array<'ask' | 'ask_cancel' | 'bid' | 'bid_cancel' | 'sale' | 'mint' | 'transfer'> | null;
chainId?: number;
};
type CommonActivityResponse = {
data: Array<{
createdAt?: string | null;
contract: {
address?: string | null;
};
transaction: {
timestamp?: number | null;
from?: string | null;
to?: string | null;
hash?: string | null;
};
asset: {
id?: string | null;
};
order?: {
id?: string | null;
} | null;
type?: 'ask' | 'ask_cancel' | 'bid' | 'bid_cancel' | 'sale' | 'mint' | 'transfer' | null;
}>;
continuation?: string | null;
};
declare class ActivityService {
readonly httpRequest: BaseHttpRequest;
constructor(httpRequest: BaseHttpRequest);
/**
* Get profile activity
* @param entityId
* @param requestBody
* @returns CommonActivityResponse
* @throws ApiError
*/
getProfileActivity(entityId: string, requestBody: CommonActivityRequestInput): CancelablePromise<CommonActivityResponse>;
/**
* Get contract activity
* @param assetAddress
* @param requestBody
* @returns CommonActivityResponse
* @throws ApiError
*/
getContractActivity(assetAddress: string, requestBody: CommonActivityRequestInput): CancelablePromise<CommonActivityResponse>;
/**
* Get asset activity
* @param assetAddress
* @param assetId
* @param requestBody
* @returns CommonActivityResponse
* @throws ApiError
*/
getAssetActivity(assetAddress: string, assetId: string, requestBody: CommonActivityRequestInput): CancelablePromise<CommonActivityResponse>;
}
type GetAssetResponseV2 = {

@@ -1417,2 +1476,39 @@ name: string;

type CommonStatsRequestInput = {
attributes?: Array<{
key: string;
value: string;
}> | null;
chainId?: number;
};
type CommonStatsResponse = {
count: {
tokens: number;
listed: number;
};
};
declare class StatsService {
readonly httpRequest: BaseHttpRequest;
constructor(httpRequest: BaseHttpRequest);
/**
* Get contract stats
* @param assetAddress
* @param requestBody
* @returns CommonStatsResponse
* @throws ApiError
*/
getContractStats(assetAddress: string, requestBody: CommonStatsRequestInput): CancelablePromise<CommonStatsResponse>;
/**
* Get asset stats
* @param assetAddress
* @param assetId
* @param requestBody
* @returns CommonStatsResponse
* @throws ApiError
*/
getAssetStats(assetAddress: string, assetId: string, requestBody: CommonStatsRequestInput): CancelablePromise<CommonStatsResponse>;
}
type TradeTokensRequestInput = {

@@ -1724,2 +1820,3 @@ initiator: {

declare class ApiClient {
readonly activity: ActivityService;
readonly assetsV2: AssetsV2Service;

@@ -1734,2 +1831,3 @@ readonly chain: ChainService;

readonly reporting: ReportingService;
readonly stats: StatsService;
readonly trading: TradingService;

@@ -1748,2 +1846,2 @@ readonly transactionsV2: TransactionsV2Service;

export { type AcceptAssetOfferRequestInputV2, type AcceptOfferResponseV2, AddContractRequestInput, AddContractResponse, Beam, type BuyAssetRequestInputV2, type BuyAssetResponseV2, type CancelAssetListingRequestInputV2, type CancelAssetListingResponseV2, type CancelAssetOfferRequestInputV2, type CancelOfferResponseV2, CommonAddPolicyRequestInput, CommonAddPolicyResponse, type CommonGetPoliciesResponse, type CommonRemovePolicyResponse, type ConvertTokenRequestInput, ConvertTokenResponse, CreateAssetOfferRequestInputV2, type CreateOfferResponseV2, type CreateProfileRequestInput, type CreateProfileResponse, type CreateTransactionRequestInputV2, type CreateTransactionResponseV2, type CreateWebhookForGame, type GenerateLinkCodeRequestInput, type GenerateLinkCodeResponse, type GenerateSignInCodeRequestInput, type GenerateSignInCodeResponse, type GetAllGasUsageResponse, type GetAllProfilesResponse, type GetAssetListingsResponseV2, GetAssetResponseV2, GetAssetsForContractBodyInputV2, type GetAssetsForContractResponseV2, GetAssetsForProfileBodyInputV2, type GetAssetsForProfileResponseV2, type GetChainCurrenciesResponseV2, type GetChainResponse, type GetEstimateResponse, GetGameResponse, type GetGasUsageResponse, GetListedAssetsBodyInputV2, GetPolicyUsageResponse, type GetProfileCurrenciesResponseV2, type GetProfileNativeCurrencyResponseV2, type GetProfileResponse, type GetQuoteResponse, type GetTransactionResponseV2, type GetTransactionsResponseV2, type GetWebhooksForGameResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RegenerateGameApiKeysResponse, type RemoveContractResponse, SellAssetRequestInputV2, type SellAssetResponseV2, type TradeTokensRequestInput, TradeTokensResponse, type TransferAssetRequestInputV2, TransferAssetResponseV2, type TransferNativeTokenRequestInputV2, type TransferTokenRequestInputV2, TransferTokenResponseV2, UpdateGameRequestInput, UpdateGameResponse, type UpdateProfileRequestInput, type UpdateProfileResponse, type WebhookForGameResponse, Beam as default };
export { type AcceptAssetOfferRequestInputV2, type AcceptOfferResponseV2, AddContractRequestInput, AddContractResponse, Beam, type BuyAssetRequestInputV2, type BuyAssetResponseV2, type CancelAssetListingRequestInputV2, type CancelAssetListingResponseV2, type CancelAssetOfferRequestInputV2, type CancelOfferResponseV2, type CommonActivityRequestInput, type CommonActivityResponse, CommonAddPolicyRequestInput, CommonAddPolicyResponse, type CommonGetPoliciesResponse, type CommonRemovePolicyResponse, type CommonStatsRequestInput, type CommonStatsResponse, type ConvertTokenRequestInput, ConvertTokenResponse, CreateAssetOfferRequestInputV2, type CreateOfferResponseV2, type CreateProfileRequestInput, type CreateProfileResponse, type CreateTransactionRequestInputV2, type CreateTransactionResponseV2, type CreateWebhookForGame, type GenerateLinkCodeRequestInput, type GenerateLinkCodeResponse, type GenerateSignInCodeRequestInput, type GenerateSignInCodeResponse, type GetAllGasUsageResponse, type GetAllProfilesResponse, type GetAssetListingsResponseV2, GetAssetResponseV2, GetAssetsForContractBodyInputV2, type GetAssetsForContractResponseV2, GetAssetsForProfileBodyInputV2, type GetAssetsForProfileResponseV2, type GetChainCurrenciesResponseV2, type GetChainResponse, type GetEstimateResponse, GetGameResponse, type GetGasUsageResponse, GetListedAssetsBodyInputV2, GetPolicyUsageResponse, type GetProfileCurrenciesResponseV2, type GetProfileNativeCurrencyResponseV2, type GetProfileResponse, type GetQuoteResponse, type GetTransactionResponseV2, type GetTransactionsResponseV2, type GetWebhooksForGameResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RegenerateGameApiKeysResponse, type RemoveContractResponse, SellAssetRequestInputV2, type SellAssetResponseV2, type TradeTokensRequestInput, TradeTokensResponse, type TransferAssetRequestInputV2, TransferAssetResponseV2, type TransferNativeTokenRequestInputV2, type TransferTokenRequestInputV2, TransferTokenResponseV2, UpdateGameRequestInput, UpdateGameResponse, type UpdateProfileRequestInput, type UpdateProfileResponse, type WebhookForGameResponse, Beam as default };

@@ -399,2 +399,65 @@ var __accessCheck = (obj, member, msg) => {

// src/generated/services/ActivityService.ts
var ActivityService = class {
constructor(httpRequest) {
this.httpRequest = httpRequest;
}
/**
* Get profile activity
* @param entityId
* @param requestBody
* @returns CommonActivityResponse
* @throws ApiError
*/
getProfileActivity(entityId, requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/automation/activity/profiles/{entityId}",
path: {
"entityId": entityId
},
body: requestBody,
mediaType: "application/json"
});
}
/**
* Get contract activity
* @param assetAddress
* @param requestBody
* @returns CommonActivityResponse
* @throws ApiError
*/
getContractActivity(assetAddress, requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/automation/activity/assets/{assetAddress}",
path: {
"assetAddress": assetAddress
},
body: requestBody,
mediaType: "application/json"
});
}
/**
* Get asset activity
* @param assetAddress
* @param assetId
* @param requestBody
* @returns CommonActivityResponse
* @throws ApiError
*/
getAssetActivity(assetAddress, assetId, requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/automation/activity/assets/{assetAddress}/asset/{assetId}",
path: {
"assetAddress": assetAddress,
"assetId": assetId
},
body: requestBody,
mediaType: "application/json"
});
}
};
// src/generated/services/AssetsV2Service.ts

@@ -1253,2 +1316,47 @@ var AssetsV2Service = class {

// src/generated/services/StatsService.ts
var StatsService = class {
constructor(httpRequest) {
this.httpRequest = httpRequest;
}
/**
* Get contract stats
* @param assetAddress
* @param requestBody
* @returns CommonStatsResponse
* @throws ApiError
*/
getContractStats(assetAddress, requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/automation/stats/{assetAddress}",
path: {
"assetAddress": assetAddress
},
body: requestBody,
mediaType: "application/json"
});
}
/**
* Get asset stats
* @param assetAddress
* @param assetId
* @param requestBody
* @returns CommonStatsResponse
* @throws ApiError
*/
getAssetStats(assetAddress, assetId, requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/automation/stats/{assetAddress}/assets/{assetId}",
path: {
"assetAddress": assetAddress,
"assetId": assetId
},
body: requestBody,
mediaType: "application/json"
});
}
};
// src/generated/services/TradingService.ts

@@ -1413,2 +1521,3 @@ var TradingService = class {

});
this.activity = new ActivityService(this.request);
this.assetsV2 = new AssetsV2Service(this.request);

@@ -1423,2 +1532,3 @@ this.chain = new ChainService(this.request);

this.reporting = new ReportingService(this.request);
this.stats = new StatsService(this.request);
this.trading = new TradingService(this.request);

@@ -1425,0 +1535,0 @@ this.transactionsV2 = new TransactionsV2Service(this.request);

2

package.json

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

},
"version": "1.2.19",
"version": "1.2.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