{"create_incentive":{"type":"object","properties":{"input":{"$ref":"#/$defs/CreateIncentiveInput","description":"The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields."}},"required":["input"],"$defs":{"CreateIncentiveInput":{"type":"object","properties":{"audience":{"type":"string","enum":["NEW","RETURNING"],"description":"NEW | RETURNING, or null for everyone — the same wildcard tier uses."},"description":{"type":"string","maxLength":500},"formId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"A UUID, the name, or { \"name\": \"…\" } — resolved for you."},"limitCount":{"type":"integer","minimum":1,"maximum":100,"description":"Per-customer claim cap. Set it together with limitPeriod, or leave both unset."},"limitPeriod":{"type":"string","enum":["DAY","WEEK","MONTH","EVER","ORDER"],"description":"DAY | WEEK | MONTH | EVER: rolling windows."},"name":{"type":"string","minLength":1,"maxLength":120},"rules":{"maxItems":3,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind_slug":{"type":"string","const":"discount"},"outcome":{"type":"string","enum":["COMPLETE","INCOMPLETE","SKIPPED"]},"discount_code_id":{"type":"string","format":"uuid"},"connection_id":{"type":"null"},"terms":{"type":"object","properties":{"expires_in_days":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"delivery":{"type":"string","enum":["SHARED","UNIQUE","POOL"]},"prefix":{"type":"string","pattern":"^[A-Z0-9]{1,12}$"}},"additionalProperties":false}},"required":["kind_slug","outcome","discount_code_id"],"additionalProperties":false},{"type":"object","properties":{"kind_slug":{"type":"string","const":"billing_credit"},"outcome":{"type":"string","enum":["COMPLETE","INCOMPLETE","SKIPPED"]},"connection_id":{"type":"string","format":"uuid"},"terms":{"type":"object","properties":{"amount_minor":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[a-z]{3}$"},"expires_in_days":{"type":"integer","exclusiveMinimum":0,"maximum":365}},"required":["amount_minor","currency","expires_in_days"],"additionalProperties":false}},"required":["kind_slug","outcome","connection_id","terms"],"additionalProperties":false},{"type":"object","properties":{"kind_slug":{"type":"string","const":"entitlement"},"outcome":{"type":"string","enum":["COMPLETE","INCOMPLETE","SKIPPED"]},"terms":{"type":"object","properties":{"lookup_key":{"type":"string","minLength":1},"limit":{"type":"integer","exclusiveMinimum":0,"maximum":1000000},"expires_in_days":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["lookup_key","limit"],"additionalProperties":false}},"required":["kind_slug","outcome","terms"],"additionalProperties":false},{"type":"object","properties":{"kind_slug":{"type":"string","const":"metadata"},"outcome":{"type":"string","enum":["COMPLETE","INCOMPLETE","SKIPPED"]},"terms":{"type":"object","properties":{"fields":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][a-zA-Z0-9_]{0,63}$"},"additionalProperties":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"public_label":{"anyOf":[{"type":"string","minLength":1,"maxLength":40},{"type":"null"}]}},"required":["fields","public_label"],"additionalProperties":false}},"required":["kind_slug","outcome","terms"],"additionalProperties":false}]}},"tier":{"type":"string","enum":["quick","enhanced"]}},"required":["name"]}}},"decline_incentive_grant":{"type":"object","properties":{"input":{"$ref":"#/$defs/GrantDecisionInput","description":"The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields."}},"required":["input"],"$defs":{"GrantDecisionInput":{"type":"object","properties":{"grantId":{"type":"string","format":"uuid"}},"required":["grantId"]}}},"delete_incentive":{"type":"object","properties":{"input":{"$ref":"#/$defs/DeleteIncentiveInput","description":"The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields."}},"required":["input"],"$defs":{"DeleteIncentiveInput":{"type":"object","properties":{"incentiveId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"A UUID, the name, or { \"name\": \"…\" } — resolved for you."}},"required":["incentiveId"]}}},"get_incentive":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["id"]},"get_incentive_kinds":{"type":"object","properties":{}},"get_incentive_rule_unresolved_recipient_count":{"type":"object","properties":{"ruleId":{"type":"string","format":"uuid"}},"required":["ruleId"]},"list_incentives":{"type":"object","properties":{"first":{"type":"integer","default":50,"description":"Only read the first `n` values of the set."}}},"get_incentive_trust":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["id"]},"release_incentive_grant":{"type":"object","properties":{"input":{"$ref":"#/$defs/GrantDecisionInput","description":"The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields."}},"required":["input"],"$defs":{"GrantDecisionInput":{"type":"object","properties":{"grantId":{"type":"string","format":"uuid"}},"required":["grantId"]}}},"replace_incentive_rules":{"type":"object","properties":{"input":{"$ref":"#/$defs/ReplaceIncentiveRulesInput","description":"The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields."}},"required":["input"],"$defs":{"ReplaceIncentiveRulesInput":{"type":"object","properties":{"incentiveId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"A UUID, the name, or { \"name\": \"…\" } — resolved for you."},"rules":{"maxItems":3,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind_slug":{"type":"string","const":"discount"},"outcome":{"type":"string","enum":["COMPLETE","INCOMPLETE","SKIPPED"]},"discount_code_id":{"type":"string","format":"uuid"},"connection_id":{"type":"null"},"terms":{"type":"object","properties":{"expires_in_days":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"delivery":{"type":"string","enum":["SHARED","UNIQUE","POOL"]},"prefix":{"type":"string","pattern":"^[A-Z0-9]{1,12}$"}},"additionalProperties":false}},"required":["kind_slug","outcome","discount_code_id"],"additionalProperties":false},{"type":"object","properties":{"kind_slug":{"type":"string","const":"billing_credit"},"outcome":{"type":"string","enum":["COMPLETE","INCOMPLETE","SKIPPED"]},"connection_id":{"type":"string","format":"uuid"},"terms":{"type":"object","properties":{"amount_minor":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[a-z]{3}$"},"expires_in_days":{"type":"integer","exclusiveMinimum":0,"maximum":365}},"required":["amount_minor","currency","expires_in_days"],"additionalProperties":false}},"required":["kind_slug","outcome","connection_id","terms"],"additionalProperties":false},{"type":"object","properties":{"kind_slug":{"type":"string","const":"entitlement"},"outcome":{"type":"string","enum":["COMPLETE","INCOMPLETE","SKIPPED"]},"terms":{"type":"object","properties":{"lookup_key":{"type":"string","minLength":1},"limit":{"type":"integer","exclusiveMinimum":0,"maximum":1000000},"expires_in_days":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["lookup_key","limit"],"additionalProperties":false}},"required":["kind_slug","outcome","terms"],"additionalProperties":false},{"type":"object","properties":{"kind_slug":{"type":"string","const":"metadata"},"outcome":{"type":"string","enum":["COMPLETE","INCOMPLETE","SKIPPED"]},"terms":{"type":"object","properties":{"fields":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][a-zA-Z0-9_]{0,63}$"},"additionalProperties":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"public_label":{"anyOf":[{"type":"string","minLength":1,"maxLength":40},{"type":"null"}]}},"required":["fields","public_label"],"additionalProperties":false}},"required":["kind_slug","outcome","terms"],"additionalProperties":false}]}}},"required":["incentiveId","rules"]}}},"get_response_trust_floor":{"type":"object","properties":{"formId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"Equal to the specified value. A UUID, the name, or { \"name\": \"…\" } — resolved for you."}},"required":["formId"]},"update_incentive":{"type":"object","properties":{"input":{"$ref":"#/$defs/UpdateIncentiveInput","description":"The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields."}},"required":["input"],"$defs":{"UpdateIncentiveInput":{"type":"object","properties":{"audience":{"type":"string","enum":["NEW","RETURNING"],"description":"NEW | RETURNING, or null for everyone. Null CLEARS the targeting."},"description":{"type":"string","maxLength":500},"formId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"A UUID, the name, or { \"name\": \"…\" } — resolved for you."},"icon":{"type":"string","enum":["megaphone","sparkles","rocket","flag","star","heart","bell","party-popper","gift","tag","ticket","percent","badge-percent","shopping-bag","shopping-cart","package","truck","store","sun","snowflake","leaf","flower","sprout","umbrella","moon","tree-pine","egg","ghost","cake","trophy","crown","gem","award","medal","calendar","calendar-heart","camera","video","clapperboard","music","mic","palette","shirt","watch","globe","map-pin","plane","users","handshake","target","trending-up","zap","flame","coffee","dumbbell","gamepad-2"],"description":"The incentive's own mark — a Lucide icon NAME. Null clears to the entity glyph."},"iconColor":{"type":"string","enum":["default","gray","brown","orange","yellow","green","blue","purple","pink","red"],"description":"The mark's hue — a palette TOKEN, never a hex. Null clears to the neutral tile."},"incentiveId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"A UUID, the name, or { \"name\": \"…\" } — resolved for you."},"limitCount":{"type":"integer","minimum":1,"maximum":100,"description":"Per-customer claim cap — patch with limitPeriod together; both null clears."},"limitPeriod":{"type":"string","enum":["DAY","WEEK","MONTH","EVER","ORDER"],"description":"DAY | WEEK | MONTH | EVER: rolling windows."},"minTrustScore":{"type":"number","minimum":0.4,"maximum":1,"description":"Hold rewards when a response's trust score is below this (MISPLAT-361). Null = never hold (the default)."},"name":{"type":"string","minLength":1,"maxLength":120},"status":{"type":"string","enum":["DRAFT","ACTIVE","PAUSED","ARCHIVED"]},"tier":{"type":"string","enum":["quick","enhanced"]}},"required":["incentiveId"]}}}}