@levelmoment/sdk-core
v0.4.3
Published
Platform-agnostic core of the LevelMoment SDK. Consumed by @levelmoment/sdk-web and @levelmoment/sdk-react-native.
Maintainers
Readme
@levelmoment/sdk-core
Public TypeScript contracts shared by the Level Moment platform SDKs.
Note: Version 0.4.3 is on npm. Install @levelmoment/sdk-web or
@levelmoment/sdk-react-native instead of this package; each depends on the
matching sdk-core.
The package exposes the configuration, break-format, sign-in result, reward, and public error types used by web and React Native integrations. It contains no learning content or game runtime. Install a platform package to show a break; the platform package brings this contract package along.
placementId is the stable public key for one game, not a key per in-game
location. One game can declare several slots. The optional slot declaration
combines serving settings (adType, targetDurationSeconds, and an optional
game-owned rewardAmount) with pre-registered reporting fields (slotType
and dimensions). The studio portal registers category codes and integer
ranges before the game sends them. rewardId is the server-confirmed break ID
for one earned reward; no game-currency value is supplied by Level Moment.
Give a coding agent the placement ID, SDK version, target slot, reward action, and verification commands. Require it to load the current porting documentation and the migration guide for the game platform before it edits the game.
See the developer documentation for setup and the SDK repository for release notes.
