@onbeam/player-api-client
Advanced tools
Comparing version 1.2.9 to 1.2.10
@@ -369,2 +369,53 @@ type ApiRequestOptions = { | ||
type CreateConnectionRequestInput = { | ||
entityId: string; | ||
chainId?: number; | ||
}; | ||
type CreateConnectionRequestResponse = { | ||
status: CreateConnectionRequestResponse.status; | ||
id: string; | ||
createdAt: string; | ||
updatedAt: string | null; | ||
url: string; | ||
}; | ||
declare namespace CreateConnectionRequestResponse { | ||
enum status { | ||
PENDING = "Pending", | ||
CONNECTED = "Connected", | ||
ERROR = "Error" | ||
} | ||
} | ||
type GetConnectionRequestResponse = { | ||
status: GetConnectionRequestResponse.status; | ||
id: string; | ||
createdAt: string; | ||
updatedAt: string | null; | ||
}; | ||
declare namespace GetConnectionRequestResponse { | ||
enum status { | ||
PENDING = "Pending", | ||
CONNECTED = "Connected", | ||
ERROR = "Error" | ||
} | ||
} | ||
declare class ConnectorService { | ||
readonly httpRequest: BaseHttpRequest; | ||
constructor(httpRequest: BaseHttpRequest); | ||
/** | ||
* @param requestBody | ||
* @returns CreateConnectionRequestResponse | ||
* @throws ApiError | ||
*/ | ||
createConnectionRequest(requestBody: CreateConnectionRequestInput): CancelablePromise<CreateConnectionRequestResponse>; | ||
/** | ||
* @param requestId | ||
* @returns GetConnectionRequestResponse | ||
* @throws ApiError | ||
*/ | ||
getConnectionRequest(requestId: string): CancelablePromise<GetConnectionRequestResponse>; | ||
} | ||
type ConvertTokenRequestInput = { | ||
@@ -1167,2 +1218,3 @@ tokenIn: string; | ||
readonly assets: AssetsService; | ||
readonly connector: ConnectorService; | ||
readonly exchange: ExchangeService; | ||
@@ -1185,2 +1237,2 @@ readonly health: HealthService; | ||
export { AcceptAssetOfferRequestInput, Beam, BuyAssetRequestInput, CancelAssetListingRequestInput, CancelAssetOfferRequestInput, CommonOperationResponse, ConfirmOperationRequest, ConvertTokenRequestInput, CreateAssetOfferRequestInput, CreateOperationRequestInput, CreateTransactionRequestInput, GenerateSessionRequestResponse, type GenerateSessionUrlRequestInput, type GetActiveSessionResponse, type GetActiveSessionsResponse, type GetAllUsersResponse, type GetAssetListingsResponse, GetAssetResponse, GetAssetsForContractBodyInput, type GetAssetsForContractResponse, GetAssetsForUserBodyInput, type GetAssetsForUserResponse, type GetChainCurrenciesResponse, GetListedAssetsBodyInput, type GetQuoteResponse, GetSessionRequestResponse, type GetTransactionResponse, type GetTransactionsResponse, type GetUserCurrenciesResponse, type GetUserNativeCurrencyResponse, type GetUserResponse, 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 GetChainCurrenciesResponse, GetConnectionRequestResponse, GetListedAssetsBodyInput, type GetQuoteResponse, GetSessionRequestResponse, type GetTransactionResponse, type GetTransactionsResponse, type GetUserCurrenciesResponse, type GetUserNativeCurrencyResponse, type GetUserResponse, RevokeSessionRequestInput, SellAssetRequestInput, TransferAssetRequestInput, TransferNativeTokenRequestInput, TransferTokenRequestInput, Beam as default }; |
@@ -559,2 +559,36 @@ var __accessCheck = (obj, member, msg) => { | ||
// src/generated/services/ConnectorService.ts | ||
var ConnectorService = class { | ||
constructor(httpRequest) { | ||
this.httpRequest = httpRequest; | ||
} | ||
/** | ||
* @param requestBody | ||
* @returns CreateConnectionRequestResponse | ||
* @throws ApiError | ||
*/ | ||
createConnectionRequest(requestBody) { | ||
return this.httpRequest.request({ | ||
method: "POST", | ||
url: "/v1/connection/request", | ||
body: requestBody, | ||
mediaType: "application/json" | ||
}); | ||
} | ||
/** | ||
* @param requestId | ||
* @returns GetConnectionRequestResponse | ||
* @throws ApiError | ||
*/ | ||
getConnectionRequest(requestId) { | ||
return this.httpRequest.request({ | ||
method: "GET", | ||
url: "/v1/connection/request/{requestId}", | ||
path: { | ||
"requestId": requestId | ||
} | ||
}); | ||
} | ||
}; | ||
// src/generated/services/ExchangeService.ts | ||
@@ -1202,2 +1236,3 @@ var ExchangeService = class { | ||
this.assets = new AssetsService(this.request); | ||
this.connector = new ConnectorService(this.request); | ||
this.exchange = new ExchangeService(this.request); | ||
@@ -1204,0 +1239,0 @@ this.health = new HealthService(this.request); |
@@ -26,3 +26,3 @@ { | ||
}, | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
732010
20302