New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@onbeam/automation-api-client

Package Overview
Dependencies
Maintainers
0
Versions
48
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 2.0.10 to 2.0.11

126

dist/index.d.ts

@@ -591,31 +591,2 @@ type ApiRequestOptions = {

type AddContractRequestInput = {
address: string;
chainId: number;
name: string;
};
type AddContractResponse = {
type: AddContractResponse.type;
id: string;
createdAt: string;
updatedAt: string;
externalId: string;
address: string;
name: string | null;
chainId: number;
gameId: string | null;
abi: any;
};
declare namespace AddContractResponse {
enum type {
ERC20 = "ERC20",
ERC721 = "ERC721",
ERC1155 = "ERC1155",
SEAPORT = "SEAPORT",
UNISWAPV2 = "UNISWAPV2",
WETH = "WETH"
}
}
type GetGameResponse = {

@@ -724,75 +695,2 @@ pegiRating: GetGameResponse.pegiRating | null;

type RemoveContractResponse = {
success: boolean;
};
type UpdateGameRequestInput = {
name?: string;
description?: string | null;
coverImageUrl?: string | null;
backgroundImageUrl?: string | null;
logoImageUrl?: string | null;
pegiRating?: UpdateGameRequestInput.pegiRating | null;
pegiContent?: Array<'BadLanguage' | 'Discrimination' | 'Drugs' | 'Fear' | 'Gambling' | 'Sex' | 'Violence' | 'InGamePurchases'>;
};
declare namespace UpdateGameRequestInput {
enum pegiRating {
THREE = "Three",
SEVEN = "Seven",
TWELVE = "Twelve",
SIXTEEN = "Sixteen",
EIGHTEEN = "Eighteen"
}
}
type UpdateGameResponse = {
pegiRating: UpdateGameResponse.pegiRating | null;
pegiContent: Array<'BadLanguage' | 'Discrimination' | 'Drugs' | 'Fear' | 'Gambling' | 'Sex' | 'Violence' | 'InGamePurchases'>;
id: string;
createdAt: string;
updatedAt: string;
name: string;
description: string | null;
coverImageUrl: string | null;
logoImageUrl: string | null;
backgroundImageUrl: string | null;
chainIds: Array<number>;
contracts: Array<{
type: 'ERC20' | 'ERC721' | 'ERC1155' | 'SEAPORT' | 'UNISWAPV2' | 'WETH';
id: string;
createdAt: string;
updatedAt: string;
externalId: string;
address: string;
name: string | null;
chainId: number;
gameId: string | null;
abi: any;
}>;
policies: Array<{
model: 'ContractFunctions' | 'AccountFunctions';
type: 'PayForUser' | 'ChargeCustomToken';
rateType: 'Fixed' | 'Dynamic' | null;
id: string;
createdAt: string;
updatedAt: string;
externalId: string;
name: string;
chainId: number;
gameId: string;
token: string | null;
amount: string | null;
depositorId: string | null;
}>;
};
declare namespace UpdateGameResponse {
enum pegiRating {
THREE = "Three",
SEVEN = "Seven",
TWELVE = "Twelve",
SIXTEEN = "Sixteen",
EIGHTEEN = "Eighteen"
}
}
declare class GameService {

@@ -808,9 +706,2 @@ readonly httpRequest: BaseHttpRequest;

/**
* Updating name, description and/or coverImageUrl
* @param requestBody
* @returns UpdateGameResponse Game was successfully updated
* @throws ApiError
*/
updateGame(requestBody: UpdateGameRequestInput): CancelablePromise<UpdateGameResponse>;
/**
* Regenerate all your API keys through the provided regenerate key. Note that existing keys will be invalidated immediately

@@ -821,17 +712,2 @@ * @returns RegenerateGameApiKeysResponse Old keys were revoked and new ones were generated successfully

regenerateApiKeys(): CancelablePromise<RegenerateGameApiKeysResponse>;
/**
* Add a new contract to the game
* @param requestBody
* @returns AddContractResponse The contract was successfully added to the game
* @throws ApiError
*/
addContractToGame(requestBody: AddContractRequestInput): CancelablePromise<AddContractResponse>;
/**
* Delete a contract from a game
* @param chainId
* @param address
* @returns RemoveContractResponse The contract was successfully deleted from the game
* @throws ApiError
*/
removeContractFromGame(chainId: number, address: string): CancelablePromise<RemoveContractResponse>;
}

@@ -1753,2 +1629,2 @@

export { type AcceptAssetOfferRequestInputV2, type AddContractRequestInput, AddContractResponse, Beam, type BuyAssetRequestInputV2, type CancelAssetListingRequestInputV2, type CancelAssetOfferRequestInputV2, type CommonActivityResponse, CommonAddPolicyRequestInput, CommonAddPolicyResponse, type CommonAssetActivityRequestInput, type CommonContractActivityRequestInput, type CommonGetPoliciesResponse, type CommonRemovePolicyResponse, type CommonStatsRequestInput, type CommonStatsResponse, type CommonUserActivityRequestInput, type ConvertTokenRequestInput, CreateAssetOfferRequestInputV2, type CreateOfferResponseV2, type CreateProfileRequestInput, type CreateProfileResponse, type CreateTransactionRequestInputV2, 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 GetTransactionsResponseV2, type GetWebhooksForGameResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RegenerateGameApiKeysResponse, type RemoveContractResponse, SellAssetRequestInputV2, type SellAssetResponseV2, type TradeTokensRequestInput, TransactionResponse, type TransferAssetRequestInputV2, type TransferNativeTokenRequestInputV2, type TransferTokenRequestInputV2, type UnwrappingTokenInput, UpdateGameRequestInput, UpdateGameResponse, type UpdateProfileRequestInput, type UpdateProfileResponse, type WebhookForGameResponse, type WrappingTokenInput, Beam as default };
export { type AcceptAssetOfferRequestInputV2, Beam, type BuyAssetRequestInputV2, type CancelAssetListingRequestInputV2, type CancelAssetOfferRequestInputV2, type CommonActivityResponse, CommonAddPolicyRequestInput, CommonAddPolicyResponse, type CommonAssetActivityRequestInput, type CommonContractActivityRequestInput, type CommonGetPoliciesResponse, type CommonRemovePolicyResponse, type CommonStatsRequestInput, type CommonStatsResponse, type CommonUserActivityRequestInput, type ConvertTokenRequestInput, CreateAssetOfferRequestInputV2, type CreateOfferResponseV2, type CreateProfileRequestInput, type CreateProfileResponse, type CreateTransactionRequestInputV2, 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 GetTransactionsResponseV2, type GetWebhooksForGameResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RegenerateGameApiKeysResponse, SellAssetRequestInputV2, type SellAssetResponseV2, type TradeTokensRequestInput, TransactionResponse, type TransferAssetRequestInputV2, type TransferNativeTokenRequestInputV2, type TransferTokenRequestInputV2, type UnwrappingTokenInput, type UpdateProfileRequestInput, type UpdateProfileResponse, type WebhookForGameResponse, type WrappingTokenInput, Beam as default };

@@ -799,16 +799,2 @@ var __accessCheck = (obj, member, msg) => {

/**
* Updating name, description and/or coverImageUrl
* @param requestBody
* @returns UpdateGameResponse Game was successfully updated
* @throws ApiError
*/
updateGame(requestBody) {
return this.httpRequest.request({
method: "PATCH",
url: "/v1/game",
body: requestBody,
mediaType: "application/json"
});
}
/**
* Regenerate all your API keys through the provided regenerate key. Note that existing keys will be invalidated immediately

@@ -824,33 +810,2 @@ * @returns RegenerateGameApiKeysResponse Old keys were revoked and new ones were generated successfully

}
/**
* Add a new contract to the game
* @param requestBody
* @returns AddContractResponse The contract was successfully added to the game
* @throws ApiError
*/
addContractToGame(requestBody) {
return this.httpRequest.request({
method: "POST",
url: "/v1/game/contracts",
body: requestBody,
mediaType: "application/json"
});
}
/**
* Delete a contract from a game
* @param chainId
* @param address
* @returns RemoveContractResponse The contract was successfully deleted from the game
* @throws ApiError
*/
removeContractFromGame(chainId, address) {
return this.httpRequest.request({
method: "DELETE",
url: "/v1/game/contracts/{address}/{chainId}",
path: {
"chainId": chainId,
"address": address
}
});
}
};

@@ -857,0 +812,0 @@

2

package.json

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

},
"version": "2.0.10",
"version": "2.0.11",
"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