UNPKG

@accounter/server

Version:
27 lines (26 loc) 1.1 kB
/** * Canonical outcome and reason-code constants for the email-ingestion module. * * These are the authoritative definitions on the server side. The gateway * package holds an independent duplicate — no runtime import between them. */ export declare const IngestOutcome: { readonly INSERTED: "inserted"; readonly DUPLICATE: "duplicate"; readonly QUARANTINED: "quarantined"; readonly REJECTED: "rejected"; }; export type IngestOutcome = (typeof IngestOutcome)[keyof typeof IngestOutcome]; export declare const IngestReasonCode: { readonly UNKNOWN_ALIAS: "UNKNOWN_ALIAS"; readonly INVALID_AUTH: "INVALID_AUTH"; readonly REPLAY_DETECTED: "REPLAY_DETECTED"; readonly GRANT_INVALID: "GRANT_INVALID"; readonly TENANT_MISMATCH: "TENANT_MISMATCH"; readonly NO_DOCUMENTS: "NO_DOCUMENTS"; readonly PARSE_ERROR: "PARSE_ERROR"; readonly OVERSIZE_MESSAGE: "OVERSIZE_MESSAGE"; readonly TIMEOUT: "TIMEOUT"; readonly TRANSIENT_UPSTREAM: "TRANSIENT_UPSTREAM"; }; export type IngestReasonCode = (typeof IngestReasonCode)[keyof typeof IngestReasonCode];