Email on Acid API V4 XSD




<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="create_test">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="content" type="contentType" />
				<xs:element name="subject" type="xs:string" minOccurs="1" maxOccurs="1" />
				<xs:element name="free_test" type="xs:boolean" minOccurs="0" maxOccurs="1" />
				<xs:element name="ios_fix" minOccurs="0" maxOccurs="1">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="P"/>
							<xs:enumeration value="B"/>
							<xs:enumeration value="I"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="test_id" type="xs:string" minOccurs="1" maxOccurs="1" />
				<xs:element name="user_guid" type="xs:string" minOccurs="1" maxOccurs="1" />
				<xs:element name="spam_analysis" minOccurs="0" maxOccurs="1">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="subject" type="xs:string" minOccurs="1" maxOccurs="1" />
							<xs:element name="from_address" type="xs:string" minOccurs="0" maxOccurs="1" />
							<xs:element name="spam_type" minOccurs="1" maxOccurs="1">
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:enumeration value="seed"/>
										<xs:enumeration value="smtp"/>
										<xs:enumeration value="eoa"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="seed_key" type="xs:string" minOccurs="0" maxOccurs="1" />
							<xs:element name="smtp_info" minOccurs="0" maxOccurs="1">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="smtp_host" type="xs:string" minOccurs="1" maxOccurs="1" />
										<xs:element name="smtp_port" type="xs:integer" minOccurs="1" maxOccurs="1" />
										<xs:element name="smtp_secure" minOccurs="1" maxOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:enumeration value=""/>
													<xs:enumeration value="ssl"/>
													<xs:enumeration value="tls"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="smtp_acct" type="xs:string" minOccurs="1" maxOccurs="1" />
										<xs:element name="smtp_pass" type="xs:string" minOccurs="1" maxOccurs="1" />
										<xs:element name="smtp_from" type="xs:string" minOccurs="1" maxOccurs="1" />
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="clients" minOccurs="0" maxOccurs="1">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="client" minOccurs="1" maxOccurs="unbounded">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="client_code" type="xs:integer" minOccurs="1" maxOccurs="1" />
										<xs:element name="browsers" minOccurs="0" maxOccurs="1">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="browser_code" type="xs:string" minOccurs="1" maxOccurs="unbounded" />
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="spam_analysis">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="content" type="spamContentType" minOccurs="0" maxOccurs="1" />
				<xs:element name="subject" type="xs:string" minOccurs="0" maxOccurs="1" />
				<xs:element name="from_address" type="xs:string" minOccurs="0" maxOccurs="1" />
				<xs:element name="test_id" type="xs:string" minOccurs="0" maxOccurs="1" />
				<xs:element name="user_guid" type="xs:string" minOccurs="0" maxOccurs="1" />
				<xs:element name="spam_type" minOccurs="1" maxOccurs="1">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="seed"/>
							<xs:enumeration value="smtp"/>
							<xs:enumeration value="eoa"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="spam_clients" minOccurs="0" maxOccurs="1">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="spam_client" minOccurs="1" maxOccurs="unbounded">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="spam_code" type="xs:integer" minOccurs="0" maxOccurs="1" />
										<xs:element name="spam_name" type="xs:string" minOccurs="0" maxOccurs="1" />
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="seed_key" type="xs:string" minOccurs="0" maxOccurs="1" />
				<xs:element name="smtp_info" minOccurs="0" maxOccurs="1">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="smtp_host" type="xs:string" minOccurs="1" maxOccurs="1" />
							<xs:element name="smtp_port" type="xs:integer" minOccurs="1" maxOccurs="1" />
							<xs:element name="smtp_secure" minOccurs="1" maxOccurs="1">
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:enumeration value=""/>
										<xs:enumeration value="ssl"/>
										<xs:enumeration value="tls"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="smtp_acct" type="xs:string" minOccurs="1" maxOccurs="1" />
							<xs:element name="smtp_pass" type="xs:string" minOccurs="1" maxOccurs="1" />
							<xs:element name="smtp_from" type="xs:string" minOccurs="1" maxOccurs="1" />
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

    <xs:element name="get_test_list" type="searchType" />
	<xs:element name="validatelinks" type="resultType" />
	<xs:element name="get_results" type="resultType" />
	<xs:element name="get_text_only" type="resultType" />
	<xs:element name="get_code_analysis" type="codeAnalysisType" />
	<xs:element name="requeue_screenshots" type="resultType" />
	<xs:element name="get_screenshot_results" type="resultType" />
	<xs:element name="get_screenshot_status" type="resultType" />
	<xs:element name="standalone_spam_results" type="resultType" />
	<xs:element name="linkreputation" type="resultType" />
	<xs:element name="result_status" type="resultType" />
	<xs:element name="validate_html" type="resultType" />
	<xs:element name="inline_css" type="resultType" />
	<xs:element name="optimize_html" type="resultType" />
	<xs:element name="reprocess_screenshot" type="reprocessType" />

	<xs:element name="client_tips">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="client_code" type="xs:integer" minOccurs="1" maxOccurs="1" />
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="blacklist">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="ip_address" type="xs:string" minOccurs="1" maxOccurs="1" />
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:complexType name="resultType">
		<xs:sequence>
			<xs:element name="eoa_test_id" type="xs:integer" minOccurs="1" maxOccurs="1" />
		</xs:sequence>
	</xs:complexType>

    <xs:complexType name="searchType">
        <xs:sequence minOccurs="1" maxOccurs="1">
            <xs:element name="headers" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="header" minOccurs="1" maxOccurs="unbounded">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1" />
                                    <xs:element name="value" type="xs:string" minOccurs="1" maxOccurs="1" />
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="start_date" type="xs:dateTime" minOccurs="0" maxOccurs="1" />
            <xs:element name="end_date" type="xs:dateTime" minOccurs="0" maxOccurs="1" />
        </xs:sequence>
    </xs:complexType>

	<xs:complexType name="contentType">
		<xs:sequence minOccurs="1" maxOccurs="1">
			<xs:choice>
				<xs:element name="url" type="xs:string" />
				<xs:element name="html" type="xs:string" />
			</xs:choice>
			<xs:element name="charset" type="xs:string" minOccurs="1" maxOccurs="1" />
			<xs:element name="encoding" type="xs:string" minOccurs="1" maxOccurs="1" />
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="spamContentType">
		<xs:sequence minOccurs="0" maxOccurs="1">
			<xs:choice>
				<xs:element name="url" type="xs:string" />
				<xs:element name="html" type="xs:string" />
			</xs:choice>
			<xs:element name="charset" type="xs:string" minOccurs="1" maxOccurs="1" />
			<xs:element name="encoding" type="xs:string" minOccurs="1" maxOccurs="1" />
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="codeAnalysisType">
		<xs:sequence>
			<xs:element name="eoa_test_id" type="xs:integer" minOccurs="1" maxOccurs="1"/>
			<xs:element name="clients" minOccurs="1" maxOccurs="1">
				<xs:complexType>
					<xs:sequence minOccurs="1" maxOccurs="1">
						<xs:element name="client_code" type="xs:integer" minOccurs="1" maxOccurs="1"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="reprocessType">
		<xs:sequence>
			<xs:element name="eoa_test_id" type="xs:integer" minOccurs="1" maxOccurs="1"/>
			<xs:element name="clients" minOccurs="1" maxOccurs="1">
				<xs:complexType>
					<xs:sequence minOccurs="1" maxOccurs="1">
						<xs:element name="client_code" type="xs:string" minOccurs="1" maxOccurs="1"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="no_images" type="xs:boolean" minOccurs="1" maxOccurs="1" />
		</xs:sequence>
	</xs:complexType>
</xs:schema>