UNPKG

@accounter/server

Version:
29 lines (28 loc) 1.19 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'; readonly SELF_ISSUED: 'SELF_ISSUED'; readonly UPLOAD_FAILED: 'UPLOAD_FAILED'; }; export type IngestReasonCode = (typeof IngestReasonCode)[keyof typeof IngestReasonCode];