@onbeam/player-api-client
Advanced tools
Comparing version 2.0.22 to 2.0.23
@@ -184,3 +184,4 @@ type ApiRequestOptions = { | ||
RARITY = "rarity", | ||
UPDATED_AT = "updatedAt" | ||
UPDATED_AT = "updatedAt", | ||
MINTED_AT = "mintedAt" | ||
} | ||
@@ -199,2 +200,4 @@ } | ||
rarityScore?: number | null; | ||
updatedAt?: string | null; | ||
mintedAt?: string | null; | ||
attributes?: Array<{ | ||
@@ -242,2 +245,4 @@ displayType?: string | null; | ||
rarityScore?: number | null; | ||
updatedAt?: string | null; | ||
mintedAt?: string | null; | ||
attributes?: Array<{ | ||
@@ -296,2 +301,4 @@ displayType?: string | null; | ||
rarityScore?: number | null; | ||
updatedAt?: string | null; | ||
mintedAt?: string | null; | ||
attributes?: Array<{ | ||
@@ -355,3 +362,3 @@ displayType?: string | null; | ||
actions: Array<{ | ||
type: 'Sign' | 'SessionRevoke' | 'MarketplaceCreateOffer' | 'MarketplaceCancelOffer' | 'MarketplaceAcceptOffer' | 'MarketplaceBuyAsset' | 'MarketplaceListAsset' | 'MarketplaceCancelListing' | 'ExchangeConvert' | 'ExchangeWrap' | 'ExchangeUnwrap' | 'TransferNFTs' | 'TransferToken' | 'CustomTransaction'; | ||
type: 'FiatOnRamp' | 'Sign' | 'SessionRevoke' | 'MarketplaceCreateOffer' | 'MarketplaceCancelOffer' | 'MarketplaceAcceptOffer' | 'MarketplaceBuyAsset' | 'MarketplaceListAsset' | 'MarketplaceCancelListing' | 'ExchangeConvert' | 'ExchangeWrap' | 'ExchangeUnwrap' | 'TransferNFTs' | 'TransferToken' | 'CustomTransaction'; | ||
id: string; | ||
@@ -1132,3 +1139,3 @@ index: number; | ||
fiatAmount?: string; | ||
paymentCurrency?: CreateOnrampRequestInput.paymentCurrency; | ||
paymentCurrency?: string; | ||
chainId?: number; | ||
@@ -1140,12 +1147,4 @@ }; | ||
} | ||
enum paymentCurrency { | ||
USD = "USD", | ||
EUR = "EUR" | ||
} | ||
} | ||
type CreateOnrampRequestResponse = { | ||
url: string; | ||
}; | ||
declare class RampService { | ||
@@ -1157,6 +1156,6 @@ readonly httpRequest: BaseHttpRequest; | ||
* @param requestBody | ||
* @returns CreateOnrampRequestResponse | ||
* @returns PlayerOperationResponse | ||
* @throws ApiError | ||
*/ | ||
createOnrampRequest(entityId: string, requestBody: CreateOnrampRequestInput): CancelablePromise<CreateOnrampRequestResponse>; | ||
createOnrampRequest(entityId: string, requestBody: CreateOnrampRequestInput): CancelablePromise<PlayerOperationResponse>; | ||
} | ||
@@ -1196,2 +1195,12 @@ | ||
type GetActiveSessionResponseV2 = { | ||
session?: { | ||
id: string; | ||
isActive: boolean; | ||
startTime: string; | ||
endTime: string; | ||
sessionAddress: string; | ||
} | null; | ||
}; | ||
type GetActiveSessionsResponse = { | ||
@@ -1269,2 +1278,3 @@ sessions: Array<{ | ||
/** | ||
* @deprecated | ||
* @param entityId | ||
@@ -1277,2 +1287,10 @@ * @param accountAddress | ||
getActiveSession(entityId: string, accountAddress: string, chainId?: number): CancelablePromise<GetActiveSessionResponse>; | ||
/** | ||
* @param entityId | ||
* @param accountAddress | ||
* @param chainId | ||
* @returns GetActiveSessionResponseV2 | ||
* @throws ApiError | ||
*/ | ||
getActiveSessionV2(entityId: string, accountAddress: string, chainId?: number): CancelablePromise<GetActiveSessionResponseV2>; | ||
} | ||
@@ -1584,2 +1602,13 @@ | ||
export { AcceptAssetOfferRequestInput, Beam, BuyAssetRequestInput, CancelAssetListingRequestInput, CancelAssetOfferRequestInput, type CommonActivityResponse, type CommonAssetActivityRequestInput, type CommonContractActivityRequestInput, type CommonStatsRequestInput, type CommonStatsResponse, type CommonUserActivityRequestInput, ConfirmOperationRequest, ConvertTokenRequestInput, CreateAssetOfferRequestInput, type CreateConnectionRequestInput, CreateConnectionRequestResponse, CreateOnrampRequestInput, type CreateOnrampRequestResponse, 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, GetOwnerAssetsBodyInput, type GetOwnerAssetsResponse, type GetOwnersResponse, type GetQuoteResponse, GetSessionRequestResponse, type GetTransactionResponse, type GetTransactionsResponse, type GetUserCurrenciesResponse, type GetUserNativeCurrencyResponse, type GetUserResponse, PlayerOperationResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RevokeSessionRequestInput, SellAssetRequestInput, TransferAssetRequestInput, TransferNativeTokenRequestInput, TransferTokenRequestInput, UnwrappingTokenInput, type UpdateUserRequest, WrappingTokenInput, Beam as default }; | ||
type BeamErrorResponse = { | ||
path: string; | ||
timestamp: string; | ||
status: number; | ||
error?: string; | ||
validation?: Array<any>; | ||
type?: string; | ||
message?: string; | ||
traceId?: string; | ||
}; | ||
export { AcceptAssetOfferRequestInput, Beam, type BeamErrorResponse, BuyAssetRequestInput, CancelAssetListingRequestInput, CancelAssetOfferRequestInput, type CommonActivityResponse, type CommonAssetActivityRequestInput, type CommonContractActivityRequestInput, type CommonStatsRequestInput, type CommonStatsResponse, type CommonUserActivityRequestInput, ConfirmOperationRequest, ConvertTokenRequestInput, CreateAssetOfferRequestInput, type CreateConnectionRequestInput, CreateConnectionRequestResponse, CreateOnrampRequestInput, CreateTransactionRequestInput, GenerateSessionRequestResponse, type GenerateSessionUrlRequestInput, type GetActiveSessionResponse, type GetActiveSessionResponseV2, type GetActiveSessionsResponse, type GetAllUsersResponse, type GetAssetListingsResponse, GetAssetResponse, GetAssetsForContractBodyInput, type GetAssetsForContractResponse, GetAssetsForUserBodyInput, type GetAssetsForUserResponse, type GetAttributesResponse, type GetChainCurrenciesResponse, GetConnectionRequestResponse, GetListedAssetsBodyInput, GetOwnerAssetsBodyInput, type GetOwnerAssetsResponse, type GetOwnersResponse, type GetQuoteResponse, GetSessionRequestResponse, type GetTransactionResponse, type GetTransactionsResponse, type GetUserCurrenciesResponse, type GetUserNativeCurrencyResponse, type GetUserResponse, PlayerOperationResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RevokeSessionRequestInput, SellAssetRequestInput, TransferAssetRequestInput, TransferNativeTokenRequestInput, TransferTokenRequestInput, UnwrappingTokenInput, type UpdateUserRequest, WrappingTokenInput, Beam as default }; |
@@ -1205,3 +1205,3 @@ var __accessCheck = (obj, member, msg) => { | ||
* @param requestBody | ||
* @returns CreateOnrampRequestResponse | ||
* @returns PlayerOperationResponse | ||
* @throws ApiError | ||
@@ -1294,2 +1294,3 @@ */ | ||
/** | ||
* @deprecated | ||
* @param entityId | ||
@@ -1314,2 +1315,22 @@ * @param accountAddress | ||
} | ||
/** | ||
* @param entityId | ||
* @param accountAddress | ||
* @param chainId | ||
* @returns GetActiveSessionResponseV2 | ||
* @throws ApiError | ||
*/ | ||
getActiveSessionV2(entityId, accountAddress, chainId) { | ||
return this.httpRequest.request({ | ||
method: "GET", | ||
url: "/v2/player/sessions/users/{entityId}/{accountAddress}/active", | ||
path: { | ||
"entityId": entityId, | ||
"accountAddress": accountAddress | ||
}, | ||
query: { | ||
"chainId": chainId | ||
} | ||
}); | ||
} | ||
}; | ||
@@ -1316,0 +1337,0 @@ |
@@ -26,3 +26,3 @@ { | ||
}, | ||
"version": "2.0.22", | ||
"version": "2.0.23", | ||
"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
777222
21582