import { AuthApiTransports } from "../../shared/transports.js"; import { PolyesterMutationOptions, PolyesterRequestOptions } from "../../shared/request-options.js"; import { AcknowledgeRewardAwardInput, AcknowledgeRewardAwardResult, ListRewardAwardsInput, ListRewardAwardsResult, SetRewardDestinationInput, SetRewardDestinationResult } from "./rewards.schemas.js"; //#region src/services/rewards/rewards.d.ts /** * Reads published reward campaign awards for the authenticated root account, records payout * destinations, and acknowledges seen awards. Every call accepts a session JWT. `listAwards` also * accepts an API key scoped to the main account whose policy grants `read-rewards`. */ declare class RewardsService { #private; constructor(transports: AuthApiTransports); /** * Returns published awards newest first. `limit` is 0 through 100 (0 or omitted uses 50); pass the previous `nextPageToken` as `pageToken` to continue. An empty `nextPageToken` means no more awards. When `awardsMayChange` is false, polling cannot surface new awards or changes until a new campaign is created. */ listAwards(input?: ListRewardAwardsInput, options?: PolyesterRequestOptions): Promise; /** * Records a write-once payout destination for an award, interpreted in the award's `network`. Pass the award's `fulfillmentRevision` as `expectedRevision` and reuse the same `requestId` when retrying. Requires a fresh step-up proof via `options.stepUpToken`. This does not execute a transfer or mark the award delivered. */ setDestination(input: SetRewardDestinationInput, options?: PolyesterMutationOptions): Promise; /** * Records that the recipient revealed an award (`revealed: true`) or saw a paid award's * delivery (`deliverySeen: true`), so other sessions and devices do not show the dialog again. * Set at least one. Marks are independent, permanent and idempotent: the first timestamp is * kept, `false` leaves a mark unchanged, and a failed call can be retried as is. `deliverySeen` * on an award that is not paid fails the whole call with `PreconditionFailedError`. Returns the * current award with its marks; fulfillment state and revision are unchanged. Session JWT only. */ acknowledgeAward(input: AcknowledgeRewardAwardInput, options?: PolyesterRequestOptions): Promise; } //#endregion export { RewardsService }; //# sourceMappingURL=rewards.d.ts.map