Skip to documentation
/

Command response types

Command response map#

typescript example
.ts
import type {  CommandName, CommandParameters, CommandResponses,  SuccessResponse, GameSessionResponse,} from '@aggregator-network/sdk';
MethodSuccessful response
getGameListSuccessResponse<GameCatalogue>
getGameDemoGameSessionResponse
createPlayerSuccessResponse<PlayerIdentity>
getGameGameSessionResponse
addFreeRoundsSuccessResponse<FreeRoundsGrant>
deleteFreeRounds{ error: 0 }

Success envelope#

typescript example
.ts
interface SuccessResponse<T> {  error: 0;  response: T;}

Success values appear at the top level, not under a data property. Nonzero numeric errors and gateway rejections throw SDK errors instead of returning this interface.

Launch response#

typescript example
.ts
interface GameSessionResponse extends SuccessResponse<string> {  session_id: string;}

response is a sensitive HTTPS launch URL. Deliver it only to the requesting player. session_id is a gateway request-ID alias, not a verified provider session or settlement join. It cannot by itself establish wallet-event ownership.

Player and free-round responses#

PlayerIdentity describes a workspace player, including its balance and creation timestamp. Identity creation does not credit a player wallet. FreeRoundsGrant describes game, grant count, performed/available rounds, stake level, currency, validity and active state. See their command guides for the complete current public fields.

Runtime validation#

Version 0.1.1 validates the documented success record fields in addition to the envelope. Unknown additive fields may remain in responses. Your integration still validates ownership, business rules and fields it relies on. Financial callback amounts require lossless decimal parsing and are outside these ordinary JSON command response types.

Was this page helpful?