/** * @typedef Inputs * @property {string} outbox - object to test * @property {string} [authorization] - authorization to fetch stuff with * @property {string} [submission] - the activity to submit to the outbox */ /** * @typedef {'passed'|'failed'|'inapplicable'|'cantTell'|'untested'} Outcome * @see https://www.w3.org/TR/EARL10-Schema/#OutcomeValue */ /** * run this test using the provided inputs * @param {Inputs} inputs * @returns {Promise>} */ export function run(inputs: Inputs): Promise>; /** * return whether the test is applicable given an outbox POST http response. * @param {Pick} response */ export function determineResponseApplicability(response: Pick): { applicable: boolean; info: string; } | { applicable: boolean; info?: undefined; }; /** * @fileoverview js related to a single ActivityPub Test * @see https://socialweb.coop/activitypub/requirements/3b925cdf-89fe-4f51-b41f-26df23f58e0c/ */ export const name: "Outbox Servers handling activity submissions MUST return a 201 created HTTP status code"; export const description: "This test checks that an ActivityPub Outbox responds with a 201 status code when sent a POST request with an Activity submission."; export const uuid: "723afcbb-118d-433e-8ab4-560ffca93582"; export const slug: "outbox-post-servers-must-return-a-201-created-http-code"; export namespace input { namespace outbox { let help: string; let required: boolean; let type: string; let rangeIncludes: string[]; } namespace authorization { let help_1: string; export { help_1 as help }; let required_1: boolean; export { required_1 as required }; let type_1: string[]; export { type_1 as type }; let rangeIncludes_1: string[]; export { rangeIncludes_1 as rangeIncludes }; } namespace time { let help_2: string; export { help_2 as help }; let required_2: boolean; export { required_2 as required }; let _default: string; export { _default as default }; let type_2: string[]; export { type_2 as type }; export let constraints: { content: string; mediaType: string; }[]; } } /** @type {Array>} */ export const testCases: Array>; export const markdownUrl: URL; export const markdown: string; export default testCase; export type Inputs = { /** * - object to test */ outbox: string; /** * - authorization to fetch stuff with */ authorization?: string | undefined; /** * - the activity to submit to the outbox */ submission?: string | undefined; }; export type Outcome = 'passed' | 'failed' | 'inapplicable' | 'cantTell' | 'untested'; /** @type {import('../../test-utils.js').TestCase} */ declare const testCase: import('../../test-utils.js').TestCase; //# sourceMappingURL=outbox-post-servers-must-return-a-201-created-http-code.d.ts.map