{"lexicon":1,"id":"money.atmosphere.segments.listMembers","defs":{"member":{"type":"object","required":["computedAt"],"properties":{"buyerDid":{"type":"string","format":"did","description":"Buyer DID. Absent for guest buyers (no DID)."},"emailMasked":{"type":"string","maxLength":320,"description":"Pre-masked email hint (e.g. jo***@gm***.com). The ONLY email-derived value ATM returns; raw email is never exposed."},"currency":{"type":"string","minLength":3,"maxLength":3,"description":"Lowercase ISO 4217. Set for cohorts where currency matters (high_value)."},"amountCents":{"type":"integer","minimum":0,"description":"Display figure for the cohort (e.g. lifetime value for high_value)."},"computedAt":{"type":"string","format":"datetime"}}},"main":{"type":"query","description":"List members of a private customer cohort the calling app's payments computed. Requires a service-auth JWT signed by the app DID with lxm matching this NSID; scoped to originatorDid = iss. Returns masked email hints only — never raw emails, never another app's buyers.","parameters":{"type":"params","required":["segmentKey"],"properties":{"segmentKey":{"type":"string","knownValues":["at_risk_churn","high_value","lapsed"],"maxLength":32,"description":"Which computed cohort to list."},"environment":{"type":"string","knownValues":["test","live"],"maxLength":8,"description":"Which app environment to read. Defaults to live."},"limit":{"type":"integer","minimum":1,"maximum":200,"default":50},"cursor":{"type":"string","maxLength":1024}}},"output":{"encoding":"application/json","schema":{"type":"object","required":["members"],"properties":{"members":{"type":"array","items":{"type":"ref","ref":"#member"}},"cursor":{"type":"string","maxLength":1024}}}}}}}