{"save_partner":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"description":"Display name. Defaults to the first handle.","type":"string","minLength":1,"maxLength":120},"handles":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","minLength":1,"description":"instagram, tiktok, youtube, twitter (or x), facebook — any network list_social_networks returns."},"handle":{"type":"string","minLength":1,"description":"The @handle or a profile URL."}},"required":["platform","handle"]}}},"required":["handles"]},"add_partner_to_campaign":{"type":"object","properties":{"campaignId":{"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."},"partnerId":{"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 partner's name, \"@handle\", or { \"name\": \"…\" } — resolved for you."}},"required":["campaignId","partnerId"]},"approve_partner":{"type":"object","properties":{"input":{"$ref":"#/$defs/ApprovePartnerInput","description":"The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields."}},"required":["input"],"$defs":{"ApprovePartnerInput":{"type":"object","properties":{"mergeIntoPartnerId":{"type":"string","format":"uuid","description":"Absent = approve it as its own partner. Set = the same person as this one; the pending row is folded in and deleted."},"partnerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"The PENDING partner being reviewed. A UUID, the partner's name, \"@handle\", or { \"name\": \"…\" } — resolved for you."}},"required":["partnerId"]}}},"approve_partner_suggestion":{"type":"object","properties":{"input":{"$ref":"#/$defs/ApprovePartnerSuggestionInput","description":"The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields."}},"required":["input"],"$defs":{"ApprovePartnerSuggestionInput":{"type":"object","properties":{"mergeIntoPartnerId":{"type":"string","format":"uuid","description":"Absent = mint them as their own partner. Set = a second account of this partner; the minted row is folded in."},"suggestionId":{"type":"string","format":"uuid","description":"The partner_suggestion row being approved."}},"required":["suggestionId"]}}},"create_partner":{"type":"object","properties":{"body":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"username":{"type":"string","minLength":1,"maxLength":80},"email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}]},"profile_image":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"trusted":{"type":"boolean"},"budget":{"anyOf":[{"type":"number","minimum":0,"maximum":9999999999.99,"multipleOf":0.01},{"type":"null"}]},"end_date":{"anyOf":[{},{"type":"null"}]},"status":{"type":"string","enum":["ACTIVE","PAUSED","ARCHIVED","DROPPED","PENDING"]},"utm_source":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"utm_medium":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"utm_content":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]}},"required":["name","username"]}},"required":["body"]},"create_partner_social_network":{"type":"object","properties":{"body":{"type":"object","properties":{"handle":{"type":"string","minLength":1,"maxLength":80},"url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"watched":{"type":"boolean"},"platform_user_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]}},"required":["handle"]},"partnerId":{"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 partner's name, \"@handle\", or { \"name\": \"…\" } — resolved for you."},"socialNetworkId":{"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":["body","partnerId","socialNetworkId"]},"delete_partner":{"type":"object","properties":{"partnerId":{"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 partner's name, \"@handle\", or { \"name\": \"…\" } — resolved for you."}},"required":["partnerId"]},"dismiss_duplicate_pair":{"type":"object","properties":{"partnerAId":{"type":"string","format":"uuid"},"partnerBId":{"type":"string","format":"uuid"}},"required":["partnerAId","partnerBId"]},"dismiss_partner_suggestion":{"type":"object","properties":{"input":{"$ref":"#/$defs/DismissPartnerSuggestionInput","description":"The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields."}},"required":["input"],"$defs":{"DismissPartnerSuggestionInput":{"type":"object","properties":{"suggestionId":{"type":"string","format":"uuid"}},"required":["suggestionId"]}}},"get_likely_duplicate_partners":{"type":"object","properties":{}},"merge_partners":{"type":"object","properties":{"loserId":{"type":"string","format":"uuid"},"resolutions":{"type":"array","items":{"$ref":"#/$defs/MergeResolutionInput"}},"winnerId":{"type":"string","format":"uuid"}},"required":["loserId","resolutions","winnerId"],"$defs":{"MergeResolutionInput":{"type":"object","properties":{"keep":{"type":"string","enum":["current","incoming"],"description":"current = the winner's code keeps the tier; incoming = the loser's does."},"tier":{"type":"string","minLength":1}},"required":["keep","tier"]}}},"get_partner_evidence":{"type":"object","properties":{"partnerId":{"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 partner's name, \"@handle\", or { \"name\": \"…\" } — resolved for you."},"rows":{"type":"integer","description":"Only read the first `n` values of the set."},"since":{"type":"string","format":"date-time","description":"Greater than or equal to the specified value."}},"required":["partnerId","rows","since"]},"list_partners":{"type":"object","properties":{"accountsWanted":{"type":"integer","default":50,"description":"Only read the first `n` values of the set."},"after":{"type":"string","description":"Read all values in the set after (below) this cursor."},"campaignsWanted":{"type":"integer","default":50,"description":"Only read the first `n` values of the set."},"filter":{"$ref":"#/$defs/PartnerFilter","description":"A filter to be used in determining which values should be returned by the collection."},"first":{"type":"integer","default":50,"description":"Only read the first `n` values of the set."},"orderBy":{"type":"array","items":{"type":"string","enum":["CREATED_AT_ASC","CREATED_AT_DESC","EMAIL_ASC","EMAIL_DESC","NAME_ASC","NAME_DESC","NATURAL","PRIMARY_KEY_ASC","PRIMARY_KEY_DESC","ROW_ID_ASC","ROW_ID_DESC","USERNAME_ASC","USERNAME_DESC","UTM_CONTENT_ASC","UTM_CONTENT_DESC","UTM_MEDIUM_ASC","UTM_MEDIUM_DESC","UTM_SOURCE_ASC","UTM_SOURCE_DESC","WORKSPACE_ID_ASC","WORKSPACE_ID_DESC"]},"default":["CREATED_AT_DESC"],"description":"The method to use when ordering `Partner`."},"withDetail":{"type":"boolean","default":false,"description":"Included when true."}},"$defs":{"PartnerFilter":{"type":"object","properties":{"and":{"type":"array","items":{"$ref":"#/$defs/PartnerFilter"}},"createdAt":{"$ref":"#/$defs/DatetimeFilter"},"email":{"$ref":"#/$defs/StringFilter"},"name":{"$ref":"#/$defs/StringFilter"},"not":{"$ref":"#/$defs/PartnerFilter"},"or":{"type":"array","items":{"$ref":"#/$defs/PartnerFilter"}},"rowId":{"$ref":"#/$defs/UUIDFilter"},"status":{"$ref":"#/$defs/PartnerStatusFilter"},"username":{"$ref":"#/$defs/StringFilter"},"utmContent":{"$ref":"#/$defs/StringFilter"},"utmMedium":{"$ref":"#/$defs/StringFilter"},"utmSource":{"$ref":"#/$defs/StringFilter"}}},"DatetimeFilter":{"type":"object","properties":{"equalTo":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"greaterThan":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"greaterThanOrEqualTo":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"in":{"type":"array","items":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"lessThanOrEqualTo":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"notEqualTo":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"notIn":{"type":"array","items":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."}}}},"StringFilter":{"type":"object","properties":{"equalTo":{"type":"string"},"greaterThan":{"type":"string"},"greaterThanOrEqualTo":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"includesInsensitive":{"type":"string"},"isNull":{"type":"boolean"},"lessThan":{"type":"string"},"lessThanOrEqualTo":{"type":"string"},"notEqualTo":{"type":"string"},"notIn":{"type":"array","items":{"type":"string"}}}},"UUIDFilter":{"type":"object","properties":{"equalTo":{"type":"string","format":"uuid"},"greaterThan":{"type":"string","format":"uuid"},"greaterThanOrEqualTo":{"type":"string","format":"uuid"},"in":{"type":"array","items":{"type":"string","format":"uuid"}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","format":"uuid"},"lessThanOrEqualTo":{"type":"string","format":"uuid"},"notEqualTo":{"type":"string","format":"uuid"},"notIn":{"type":"array","items":{"type":"string","format":"uuid"}}}},"PartnerStatusFilter":{"type":"object","properties":{"equalTo":{"type":"string","enum":["ACTIVE","ARCHIVED","DROPPED","PAUSED","PENDING"]},"greaterThan":{"type":"string","enum":["ACTIVE","ARCHIVED","DROPPED","PAUSED","PENDING"]},"greaterThanOrEqualTo":{"type":"string","enum":["ACTIVE","ARCHIVED","DROPPED","PAUSED","PENDING"]},"in":{"type":"array","items":{"type":"string","enum":["ACTIVE","ARCHIVED","DROPPED","PAUSED","PENDING"]}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","enum":["ACTIVE","ARCHIVED","DROPPED","PAUSED","PENDING"]},"lessThanOrEqualTo":{"type":"string","enum":["ACTIVE","ARCHIVED","DROPPED","PAUSED","PENDING"]},"notEqualTo":{"type":"string","enum":["ACTIVE","ARCHIVED","DROPPED","PAUSED","PENDING"]},"notIn":{"type":"array","items":{"type":"string","enum":["ACTIVE","ARCHIVED","DROPPED","PAUSED","PENDING"]}}}}}},"get_partner_suggestions":{"type":"object","properties":{}},"get_partner_value":{"type":"object","properties":{"from":{"type":"string","format":"date-time","description":"Window start: the UTC day this instant falls in, inclusive. Defaults to 30 days ago."},"partnerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"The partner, resolved inside the caller's own workspace. A UUID, the partner's name, \"@handle\", or { \"name\": \"…\" } — resolved for you."},"to":{"type":"string","format":"date-time","description":"Window end: the UTC day this instant falls in, inclusive. Defaults to now."}},"required":["partnerId"]},"get_pending_partners":{"type":"object","properties":{}},"preview_partner_merge":{"type":"object","properties":{"loserId":{"type":"string","format":"uuid"},"winnerId":{"type":"string","format":"uuid"}},"required":["loserId","winnerId"]},"remove_partner_from_campaign":{"type":"object","properties":{"campaignId":{"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."},"partnerId":{"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 partner's name, \"@handle\", or { \"name\": \"…\" } — resolved for you."}},"required":["campaignId","partnerId"]},"resync_partner_profile":{"type":"object","properties":{"partnerId":{"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 partner's name, \"@handle\", or { \"name\": \"…\" } — resolved for you."}},"required":["partnerId"]},"set_handle_watched":{"type":"object","properties":{"body":{"type":"object","properties":{"handle":{"type":"string","minLength":1,"maxLength":80},"url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"watched":{"type":"boolean"},"platform_user_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]}}},"rowId":{"type":"string","format":"uuid"}},"required":["body","rowId"]},"list_social_networks":{"type":"object","properties":{}},"update_partner_details":{"type":"object","properties":{"body":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"username":{"type":"string","minLength":1,"maxLength":80},"email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}]},"profile_image":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"trusted":{"type":"boolean"},"budget":{"anyOf":[{"type":"number","minimum":0,"maximum":9999999999.99,"multipleOf":0.01},{"type":"null"}]},"end_date":{"anyOf":[{},{"type":"null"}]},"status":{"type":"string","enum":["ACTIVE","PAUSED","ARCHIVED","DROPPED","PENDING"]},"utm_source":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"utm_medium":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"utm_content":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]}},"description":"Any subset of the writable columns, in snake_case column names."},"partnerId":{"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 partner's name, \"@handle\", or { \"name\": \"…\" } — resolved for you."}},"required":["body","partnerId"]},"update_partner_trust":{"type":"object","properties":{"body":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"username":{"type":"string","minLength":1,"maxLength":80},"email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}]},"profile_image":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"trusted":{"type":"boolean"},"budget":{"anyOf":[{"type":"number","minimum":0,"maximum":9999999999.99,"multipleOf":0.01},{"type":"null"}]},"end_date":{"anyOf":[{},{"type":"null"}]},"status":{"type":"string","enum":["ACTIVE","PAUSED","ARCHIVED","DROPPED","PENDING"]},"utm_source":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"utm_medium":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"utm_content":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]}},"description":"Any subset of the writable columns, in snake_case column names."},"partnerId":{"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 partner's name, \"@handle\", or { \"name\": \"…\" } — resolved for you."}},"required":["body","partnerId"]}}