@revturbine/sdk 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -25333,40 +25333,6 @@ declare class RevTurbineServer {
25333
25333
  get clientSessions(): {
25334
25334
  create: (input: CreateClientSessionInput) => Promise<ClientSessionResult>;
25335
25335
  };
25336
- /**
25337
- * Evaluate placement decisions, entitlements, and context for a user.
25338
- *
25339
- * Returns a `ServerEvaluationPayload` that can be serialized and sent
25340
- * to the client for hydration.
25341
- */
25342
- evaluate(request: ServerEvaluationRequest): Promise<ServerEvaluationPayload>;
25343
- /**
25344
- * Evaluate a single placement.
25345
- */
25346
- getPlacement(userId: string, placement: ServerPlacementRequest, traits?: Record<string, unknown>): Promise<ServerEvaluationPayloadDecisionsItem>;
25347
- /**
25348
- * Check a single entitlement for a user.
25349
- */
25350
- checkEntitlement(userId: string, handle: string, context?: {
25351
- used?: number;
25352
- balance?: number;
25353
- requiredTier?: string;
25354
- }): Promise<ServerEvaluationPayloadEntitlementsValue>;
25355
- /**
25356
- * Check whether a user can do something — the advertised `can` alias of
25357
- * {@link checkEntitlement}. Declared for the `server` surface in the scaffold
25358
- * SDK function-surface manifest (`@revt-eng/core` `SDK_FUNCTION_SURFACE`), so
25359
- * the hero-API verb is consistent across the web and server SDKs.
25360
- */
25361
- can(userId: string, handle: string, context?: {
25362
- used?: number;
25363
- balance?: number;
25364
- requiredTier?: string;
25365
- }): Promise<ServerEvaluationPayloadEntitlementsValue>;
25366
- /**
25367
- * Fetch trial status for a user.
25368
- */
25369
- getTrialStatus(userId: string): Promise<ServerEvaluationPayloadTrialStatus>;
25370
25336
  /**
25371
25337
  * Mint a short-lived, opaque per-user client-session token (plan 157).
25372
25338
  *
@@ -25386,12 +25352,6 @@ declare class RevTurbineServer {
25386
25352
  createClientSession(input: CreateClientSessionInput): Promise<ClientSessionResult>;
25387
25353
  private apiCall;
25388
25354
  private apiGet;
25389
- private evaluatePlacements;
25390
- private evaluatePlacementsBatch;
25391
- private evaluateEntitlements;
25392
- private fetchTrialStatus;
25393
- private fetchUserContext;
25394
- private fetchTheme;
25395
25355
  }
25396
25356
 
25397
25357
  type BootstrapPlacementInput = Omit<RevTurbinePlacementDecisionInput, 'placementId'> & {