import type { components } from '../generated/openapi.js'; import type { RequestOptions } from '../types.js'; import { BaseResource } from './base.js'; export type TrialInitBody = components['schemas']['TrialInitBody']; export type TrialInitData = components['schemas']['TrialInitData']; export type TrialStatusData = components['schemas']['TrialStatusData']; export type TrialActivityData = components['schemas']['TrialActivityData']; export type TrialRevokeBody = components['schemas']['TrialRevokeBody']; export type TrialRevokeData = components['schemas']['TrialRevokeData']; export declare class TrialResource extends BaseResource { /** * `POST /v1/trial/init` — create a new trial session. Returns the pool * line phone number the partner must text from their device to pair * within the 15-minute window, the opaque `token` to fetch status, and * the `instructions_url` to deep-link the user. */ init(body?: TrialInitBody, opts?: RequestOptions): Promise; /** * `GET /v1/trial/status?token=...` — poll status during the * pairing-pending window or to retrieve the trial API key after * pairing succeeds. */ status(token: string, opts?: RequestOptions): Promise; /** * `GET /v1/trial/activity` — current send/receive counters + dormancy * remaining. Auth-gated by the trial API key issued from `init`/`status`. */ activity(opts?: RequestOptions): Promise; /** * `POST /v1/trial/{trial_id}/revoke` — terminate a trial session. Frees its * pool-line slot so the same handle can immediately start a fresh trial, and * invalidates the trial API key. Idempotent — revoking an already-revoked * trial resolves with `already_revoked: true`. Authenticated as the trial's * OWNER (dashboard JWT or the `isnap_live_*` key that created it), not the * trial key. */ revoke(trialId: string, body?: TrialRevokeBody, opts?: RequestOptions): Promise; } //# sourceMappingURL=trial.d.ts.map