{"assign_marketing_ads_to_campaign":{"type":"object","properties":{"adIds":{"type":"array","items":{"type":"string","format":"uuid"}},"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."}},"required":["adIds"]},"assign_marketing_sends_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."},"sendIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["sendIds"]},"attach_send_discount":{"type":"object","properties":{"discountCodeId":{"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."},"sendId":{"type":"string","format":"uuid"}},"required":["discountCodeId","sendId"]},"detach_send_discount":{"type":"object","properties":{"linkId":{"type":"string","format":"uuid"}},"required":["linkId"]},"list_marketing_ads":{"type":"object","properties":{"after":{"type":"string","description":"Read all values in the set after (below) this cursor."},"condition":{"$ref":"#/$defs/MarketingAdCondition","description":"A condition to be used in determining which values should be returned by the collection."},"filter":{"$ref":"#/$defs/MarketingAdFilter","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":["AD_NETWORK_CHANNEL_ASC","AD_NETWORK_CHANNEL_DESC","CAMPAIGN_ID_ASC","CAMPAIGN_ID_DESC","CAMPAIGN_SIGNAL_ID_ASC","CAMPAIGN_SIGNAL_ID_DESC","CHANNEL_ID_ASC","CHANNEL_ID_DESC","CONNECTION_ID_ASC","CONNECTION_ID_DESC","LEVEL_ASC","LEVEL_DESC","NAME_ASC","NAME_DESC","NATURAL","ORIGIN_ID_ASC","ORIGIN_ID_DESC","PARENT_ORIGIN_ID_ASC","PARENT_ORIGIN_ID_DESC","PRIMARY_KEY_ASC","PRIMARY_KEY_DESC","PROGRAM_ORIGIN_ID_ASC","PROGRAM_ORIGIN_ID_DESC","ROW_ID_ASC","ROW_ID_DESC","STARTED_AT_ASC","STARTED_AT_DESC","STATUS_ASC","STATUS_DESC","TRACKING_ENABLED_ASC","TRACKING_ENABLED_DESC","UTM_CAMPAIGN_ASC","UTM_CAMPAIGN_DESC","UTM_MEDIUM_ASC","UTM_MEDIUM_DESC","UTM_SOURCE_ASC","UTM_SOURCE_DESC","WORKSPACE_ID_ASC","WORKSPACE_ID_DESC"]},"description":"The method to use when ordering `MarketingAd`."}},"$defs":{"MarketingAdCondition":{"type":"object","description":"A condition to be used against `MarketingAd` object types. All fields are tested\nfor equality and combined with a logical ‘and.’","properties":{"adNetworkChannel":{"type":"string","description":"Checks for equality with the object’s `adNetworkChannel` field."},"campaignId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"Checks for equality with the object’s `campaignId` field. A UUID, the name, or { \"name\": \"…\" } — resolved for you."},"campaignSignalId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `campaignSignalId` field."},"channelId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"Checks for equality with the object’s `channelId` field. A UUID, the name, or { \"name\": \"…\" } — resolved for you."},"connectionId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `connectionId` field."},"level":{"type":"string","description":"Checks for equality with the object’s `level` field."},"name":{"type":"string","description":"Checks for equality with the object’s `name` field."},"originId":{"type":"string","description":"Checks for equality with the object’s `originId` field."},"parentOriginId":{"type":"string","description":"Checks for equality with the object’s `parentOriginId` field."},"programOriginId":{"type":"string","description":"Checks for equality with the object’s `programOriginId` field."},"rowId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `rowId` field."},"startedAt":{"type":"string","format":"date-time","description":"Checks for equality with the object’s `startedAt` field."},"status":{"type":"string","description":"Checks for equality with the object’s `status` field."},"trackingEnabled":{"type":"boolean","description":"Checks for equality with the object’s `trackingEnabled` field."},"utmCampaign":{"type":"string","description":"Checks for equality with the object’s `utmCampaign` field."},"utmMedium":{"type":"string","description":"Checks for equality with the object’s `utmMedium` field."},"utmSource":{"type":"string","description":"Checks for equality with the object’s `utmSource` field."},"workspaceId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `workspaceId` field."}}},"MarketingAdFilter":{"type":"object","properties":{"adNetworkChannel":{"$ref":"#/$defs/StringFilter"},"and":{"type":"array","items":{"$ref":"#/$defs/MarketingAdFilter"}},"campaignByCampaignIdExists":{"type":"boolean"},"campaignId":{"anyOf":[{"$ref":"#/$defs/UUIDFilter"},{"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."},"campaignSignalByCampaignSignalIdExists":{"type":"boolean"},"campaignSignalId":{"$ref":"#/$defs/UUIDFilter"},"channelByChannelIdExists":{"type":"boolean"},"channelId":{"anyOf":[{"$ref":"#/$defs/UUIDFilter"},{"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."},"connectionId":{"$ref":"#/$defs/UUIDFilter"},"level":{"$ref":"#/$defs/StringFilter"},"marketingAdCustomByMarketingAdIdExists":{"type":"boolean"},"marketingAdGoogleByMarketingAdIdExists":{"type":"boolean"},"marketingAdMetaByMarketingAdIdExists":{"type":"boolean"},"name":{"$ref":"#/$defs/StringFilter"},"not":{"$ref":"#/$defs/MarketingAdFilter"},"or":{"type":"array","items":{"$ref":"#/$defs/MarketingAdFilter"}},"originId":{"$ref":"#/$defs/StringFilter"},"parentOriginId":{"$ref":"#/$defs/StringFilter"},"programOriginId":{"$ref":"#/$defs/StringFilter"},"rowId":{"$ref":"#/$defs/UUIDFilter"},"startedAt":{"$ref":"#/$defs/DatetimeFilter"},"status":{"$ref":"#/$defs/StringFilter"},"trackingEnabled":{"$ref":"#/$defs/BooleanFilter"},"utmCampaign":{"$ref":"#/$defs/StringFilter"},"utmMedium":{"$ref":"#/$defs/StringFilter"},"utmSource":{"$ref":"#/$defs/StringFilter"},"workspaceId":{"$ref":"#/$defs/UUIDFilter"}}},"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"}}}},"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."}}}},"BooleanFilter":{"type":"object","properties":{"equalTo":{"type":"boolean"},"greaterThan":{"type":"boolean"},"greaterThanOrEqualTo":{"type":"boolean"},"in":{"type":"array","items":{"type":"boolean"}},"isNull":{"type":"boolean"},"lessThan":{"type":"boolean"},"lessThanOrEqualTo":{"type":"boolean"},"notEqualTo":{"type":"boolean"},"notIn":{"type":"array","items":{"type":"boolean"}}}}}},"list_marketing_sends":{"type":"object","properties":{"after":{"type":"string","description":"Read all values in the set after (below) this cursor."},"condition":{"$ref":"#/$defs/MarketingSendCondition","description":"A condition to be used in determining which values should be returned by the collection."},"filter":{"$ref":"#/$defs/MarketingSendFilter","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":["CAMPAIGN_ID_ASC","CAMPAIGN_ID_DESC","CAMPAIGN_SIGNAL_ID_ASC","CAMPAIGN_SIGNAL_ID_DESC","CHANNEL_ID_ASC","CHANNEL_ID_DESC","CONNECTION_ID_ASC","CONNECTION_ID_DESC","NAME_ASC","NAME_DESC","NATURAL","ORIGIN_ID_ASC","ORIGIN_ID_DESC","PRIMARY_KEY_ASC","PRIMARY_KEY_DESC","PROGRAM_ORIGIN_ID_ASC","PROGRAM_ORIGIN_ID_DESC","ROW_ID_ASC","ROW_ID_DESC","SEND_CHANNEL_ASC","SEND_CHANNEL_DESC","SENT_AT_ASC","SENT_AT_DESC","STATUS_ASC","STATUS_DESC","SUBJECT_ASC","SUBJECT_DESC","TRACKING_ENABLED_ASC","TRACKING_ENABLED_DESC","UTM_CAMPAIGN_ASC","UTM_CAMPAIGN_DESC","UTM_MEDIUM_ASC","UTM_MEDIUM_DESC","UTM_SOURCE_ASC","UTM_SOURCE_DESC","WORKSPACE_ID_ASC","WORKSPACE_ID_DESC"]},"description":"The method to use when ordering `MarketingSend`."}},"$defs":{"MarketingSendCondition":{"type":"object","description":"A condition to be used against `MarketingSend` object types. All fields are\ntested for equality and combined with a logical ‘and.’","properties":{"campaignId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"Checks for equality with the object’s `campaignId` field. A UUID, the name, or { \"name\": \"…\" } — resolved for you."},"campaignSignalId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `campaignSignalId` field."},"channelId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"Checks for equality with the object’s `channelId` field. A UUID, the name, or { \"name\": \"…\" } — resolved for you."},"connectionId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `connectionId` field."},"name":{"type":"string","description":"Checks for equality with the object’s `name` field."},"originId":{"type":"string","description":"Checks for equality with the object’s `originId` field."},"programOriginId":{"type":"string","description":"Checks for equality with the object’s `programOriginId` field."},"rowId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `rowId` field."},"sendChannel":{"type":"string","description":"Checks for equality with the object’s `sendChannel` field."},"sentAt":{"type":"string","format":"date-time","description":"Checks for equality with the object’s `sentAt` field."},"status":{"type":"string","description":"Checks for equality with the object’s `status` field."},"subject":{"type":"string","description":"Checks for equality with the object’s `subject` field."},"trackingEnabled":{"type":"boolean","description":"Checks for equality with the object’s `trackingEnabled` field."},"utmCampaign":{"type":"string","description":"Checks for equality with the object’s `utmCampaign` field."},"utmMedium":{"type":"string","description":"Checks for equality with the object’s `utmMedium` field."},"utmSource":{"type":"string","description":"Checks for equality with the object’s `utmSource` field."},"workspaceId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `workspaceId` field."}}},"MarketingSendFilter":{"type":"object","properties":{"and":{"type":"array","items":{"$ref":"#/$defs/MarketingSendFilter"}},"campaignByCampaignIdExists":{"type":"boolean"},"campaignId":{"anyOf":[{"$ref":"#/$defs/UUIDFilter"},{"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."},"campaignSignalByCampaignSignalIdExists":{"type":"boolean"},"campaignSignalId":{"$ref":"#/$defs/UUIDFilter"},"channelByChannelIdExists":{"type":"boolean"},"channelId":{"anyOf":[{"$ref":"#/$defs/UUIDFilter"},{"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."},"connectionId":{"$ref":"#/$defs/UUIDFilter"},"marketingSendCustomByMarketingSendIdExists":{"type":"boolean"},"marketingSendKlaviyoByMarketingSendIdExists":{"type":"boolean"},"marketingSendMailchimpByMarketingSendIdExists":{"type":"boolean"},"name":{"$ref":"#/$defs/StringFilter"},"not":{"$ref":"#/$defs/MarketingSendFilter"},"or":{"type":"array","items":{"$ref":"#/$defs/MarketingSendFilter"}},"originId":{"$ref":"#/$defs/StringFilter"},"programOriginId":{"$ref":"#/$defs/StringFilter"},"rowId":{"$ref":"#/$defs/UUIDFilter"},"sendChannel":{"$ref":"#/$defs/StringFilter"},"sentAt":{"$ref":"#/$defs/DatetimeFilter"},"status":{"$ref":"#/$defs/StringFilter"},"subject":{"$ref":"#/$defs/StringFilter"},"trackingEnabled":{"$ref":"#/$defs/BooleanFilter"},"utmCampaign":{"$ref":"#/$defs/StringFilter"},"utmMedium":{"$ref":"#/$defs/StringFilter"},"utmSource":{"$ref":"#/$defs/StringFilter"},"workspaceId":{"$ref":"#/$defs/UUIDFilter"}}},"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"}}}},"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"}}}},"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."}}}},"BooleanFilter":{"type":"object","properties":{"equalTo":{"type":"boolean"},"greaterThan":{"type":"boolean"},"greaterThanOrEqualTo":{"type":"boolean"},"in":{"type":"array","items":{"type":"boolean"}},"isNull":{"type":"boolean"},"lessThan":{"type":"boolean"},"lessThanOrEqualTo":{"type":"boolean"},"notEqualTo":{"type":"boolean"},"notIn":{"type":"array","items":{"type":"boolean"}}}}}},"record_campaign_spend":{"type":"object","properties":{"input":{"$ref":"#/$defs/RecordCampaignSpendInput","description":"The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields."}},"required":["input"],"$defs":{"RecordCampaignSpendInput":{"type":"object","properties":{"amount":{"type":"number","minimum":0},"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."},"currencyCode":{"type":"string","minLength":3,"maxLength":3},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A plain day, YYYY-MM-DD — the grain spend is reported at."},"source":{"type":"string","enum":["MANUAL","AGENCY","PRODUCTION","PARTNER_COMMISSION"],"description":"SPEND_SOURCES. A network's own sources are written by its sync, not here."}},"required":["amount","campaignId","currencyCode","date","source"]}}},"set_marketing_ads_tracking":{"type":"object","properties":{"adIds":{"type":"array","items":{"type":"string","format":"uuid"}},"enabled":{"type":"boolean"}},"required":["adIds","enabled"]},"set_marketing_sends_tracking":{"type":"object","properties":{"enabled":{"type":"boolean"},"sendIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["enabled","sendIds"]}}