oc · docs
docs / documentation

@orangecheck/me-client


@orangecheck/me-client / FireEventOptions

Interface: FireEventOptions

Defined in: me-client/src/event.ts:38

Properties

PropertyTypeDescriptionDefined in
<a id="property-action_label"></a> action_label?stringHuman-readable action label that appears on the envelope. Optional but encouraged — it's what the user sees in their /me/earn ledger.me-client/src/event.ts:46
<a id="property-is_agent"></a> is_agent?booleanPer OCHK-V3-PLAN §7 phase-1 · when true, the event was fired by an oc-agent delegation rather than a human acting under their own session. The integrator's IntegratorEventConfig.agent block applies the override (or refuses · 422 agent_refused). Set this when an autonomous agent (oc-agent kind 30084 action envelope) is the source of the event. Don't set it for events the human user clicked themselves.me-client/src/event.ts:66
<a id="property-metadata"></a> metadata?Record&lt;string, unknown>Free-form metadata stored on the envelope. Public — anyone who GETs /api/envelope/<id> sees it. Don't put secrets here.me-client/src/event.ts:57
<a id="property-payment_amount_sats"></a> payment_amount_sats?numberFor percent_of_amount-priced subtypes, the underlying amount the fee is computed against. Required for those subtypes.me-client/src/event.ts:49
<a id="property-project_key"></a> project_keystringYour project_key (e.g. pk_live_yourcompany). Required.me-client/src/event.ts:40
<a id="property-subtype"></a> subtypeEventSubtypeCanonical billable subtype. Class is inferred by the server.me-client/src/event.ts:42
<a id="property-user_address"></a> user_address?stringOverride the user identity the envelope is credited to. Default is the currently-authenticated user (cookie / Bearer). Pass this only when firing on a user's behalf in a server-to-server flow — the project must have an explicit allowlist.me-client/src/event.ts:54