@onbeam/automation-api-client
Advanced tools
Comparing version 2.0.23 to 2.0.24
@@ -1568,65 +1568,2 @@ type ApiRequestOptions = { | ||
type CreateWebhookForGame = { | ||
url: string; | ||
contract: string; | ||
events: Array<'TokenTransfers'>; | ||
chainId?: number; | ||
}; | ||
type GetWebhooksForGameResponse = { | ||
webhooks: Array<{ | ||
id: string; | ||
url: string; | ||
createdAt: string; | ||
events: Array<'TokenTransfers'>; | ||
contract: string; | ||
/** | ||
* Signature that can be used to validate whether data comes from Beam API | ||
*/ | ||
signature: string; | ||
chainId?: number; | ||
}>; | ||
}; | ||
type WebhookForGameResponse = { | ||
id: string; | ||
url: string; | ||
createdAt: string; | ||
events: Array<'TokenTransfers'>; | ||
contract: string; | ||
/** | ||
* Signature that can be used to validate whether data comes from Beam API | ||
*/ | ||
signature: string; | ||
chainId?: number; | ||
}; | ||
declare class WebhooksService { | ||
readonly httpRequest: BaseHttpRequest; | ||
constructor(httpRequest: BaseHttpRequest); | ||
/** | ||
* @deprecated | ||
* Get webhooks registered by your game | ||
* @returns GetWebhooksForGameResponse List of webhooks registered for your game | ||
* @throws ApiError | ||
*/ | ||
getWebhooksForGame(): CancelablePromise<GetWebhooksForGameResponse>; | ||
/** | ||
* @deprecated | ||
* Create webhook for your game | ||
* @param requestBody | ||
* @returns WebhookForGameResponse Create webhook for your game. | ||
* @throws ApiError | ||
*/ | ||
createWebhook(requestBody: CreateWebhookForGame): CancelablePromise<WebhookForGameResponse>; | ||
/** | ||
* @deprecated | ||
* Delete webhook from your game | ||
* @param webhookId | ||
* @returns void | ||
* @throws ApiError | ||
*/ | ||
deleteWebhook(webhookId: string): CancelablePromise<void>; | ||
} | ||
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest; | ||
@@ -1648,3 +1585,2 @@ declare class ApiClient { | ||
readonly transactionsV2: TransactionsV2Service; | ||
readonly webhooks: WebhooksService; | ||
readonly request: BaseHttpRequest; | ||
@@ -1671,2 +1607,2 @@ constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor); | ||
export { type AcceptAssetOfferRequestInputV2, Beam, type BeamErrorResponse, 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 MigrateRequestInput, type MigrateResponse, 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 }; | ||
export { type AcceptAssetOfferRequestInputV2, Beam, type BeamErrorResponse, 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 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 MigrateRequestInput, type MigrateResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RegenerateGameApiKeysResponse, SellAssetRequestInputV2, type SellAssetResponseV2, type TradeTokensRequestInput, TransactionResponse, type TransferAssetRequestInputV2, type TransferNativeTokenRequestInputV2, type TransferTokenRequestInputV2, type UnwrappingTokenInput, type UpdateProfileRequestInput, type UpdateProfileResponse, type WrappingTokenInput, Beam as default }; |
@@ -1470,52 +1470,2 @@ var __accessCheck = (obj, member, msg) => { | ||
// src/generated/services/WebhooksService.ts | ||
var WebhooksService = class { | ||
constructor(httpRequest) { | ||
this.httpRequest = httpRequest; | ||
} | ||
/** | ||
* @deprecated | ||
* Get webhooks registered by your game | ||
* @returns GetWebhooksForGameResponse List of webhooks registered for your game | ||
* @throws ApiError | ||
*/ | ||
getWebhooksForGame() { | ||
return this.httpRequest.request({ | ||
method: "GET", | ||
url: "/v1/webhook" | ||
}); | ||
} | ||
/** | ||
* @deprecated | ||
* Create webhook for your game | ||
* @param requestBody | ||
* @returns WebhookForGameResponse Create webhook for your game. | ||
* @throws ApiError | ||
*/ | ||
createWebhook(requestBody) { | ||
return this.httpRequest.request({ | ||
method: "POST", | ||
url: "/v1/webhook", | ||
body: requestBody, | ||
mediaType: "application/json" | ||
}); | ||
} | ||
/** | ||
* @deprecated | ||
* Delete webhook from your game | ||
* @param webhookId | ||
* @returns void | ||
* @throws ApiError | ||
*/ | ||
deleteWebhook(webhookId) { | ||
return this.httpRequest.request({ | ||
method: "DELETE", | ||
url: "/v1/webhook/{webhookId}", | ||
path: { | ||
"webhookId": webhookId | ||
} | ||
}); | ||
} | ||
}; | ||
// src/generated/ApiClient.ts | ||
@@ -1549,3 +1499,2 @@ var ApiClient = class { | ||
this.transactionsV2 = new TransactionsV2Service(this.request); | ||
this.webhooks = new WebhooksService(this.request); | ||
} | ||
@@ -1552,0 +1501,0 @@ }; |
@@ -26,3 +26,3 @@ { | ||
}, | ||
"version": "2.0.23", | ||
"version": "2.0.24", | ||
"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
775144
21396