chore: import upstream snapshot with attribution
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
Publish CLI Package / publish-npm (push) Has been cancelled
Publish Python SDK / publish-pypi (push) Has been cancelled
Publish TypeScript SDK / publish-npm (push) Has been cancelled
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
Publish CLI Package / publish-npm (push) Has been cancelled
Publish Python SDK / publish-pypi (push) Has been cancelled
Publish TypeScript SDK / publish-npm (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
import { ShieldCheck } from '@sim/emcn/icons'
|
||||
import { str, toolProvider } from '@/enrichments/providers'
|
||||
import type { EnrichmentConfig } from '@/enrichments/types'
|
||||
|
||||
/**
|
||||
* Email Verification enrichment. Checks an email address's deliverability via a
|
||||
* verifier waterfall — ZeroBounce first (highest coverage), then NeverBounce,
|
||||
* then MillionVerifier, then Enrow. A provider that returns a
|
||||
* definitive verdict (valid / invalid / catch_all / disposable / etc.) fills the
|
||||
* cell; a provider that can only return `unknown` falls through to the next so
|
||||
* the row gets the most confident answer available. All providers support hosted
|
||||
* keys.
|
||||
*/
|
||||
export const emailVerificationEnrichment: EnrichmentConfig = {
|
||||
id: 'email-verification',
|
||||
name: 'Email Verification',
|
||||
description: "Check an email address's deliverability and risk status.",
|
||||
icon: ShieldCheck,
|
||||
inputs: [{ id: 'email', name: 'Email', type: 'string', required: true }],
|
||||
outputs: [
|
||||
{ id: 'status', name: 'status', type: 'string' },
|
||||
{ id: 'deliverable', name: 'deliverable', type: 'boolean' },
|
||||
],
|
||||
providers: [
|
||||
toolProvider({
|
||||
id: 'zerobounce',
|
||||
label: 'ZeroBounce',
|
||||
toolId: 'zerobounce_verify_email',
|
||||
buildParams: (inputs) => {
|
||||
const email = str(inputs.email)
|
||||
if (!email) return null
|
||||
return { email }
|
||||
},
|
||||
mapOutput: (output) => {
|
||||
const status = str(output.status)
|
||||
// Fall through to the next verifier when the verdict is missing or inconclusive.
|
||||
if (!status || status === 'unknown') return null
|
||||
return { status, deliverable: output.deliverable === true }
|
||||
},
|
||||
}),
|
||||
toolProvider({
|
||||
id: 'neverbounce',
|
||||
label: 'NeverBounce',
|
||||
toolId: 'neverbounce_verify_email',
|
||||
buildParams: (inputs) => {
|
||||
const email = str(inputs.email)
|
||||
if (!email) return null
|
||||
return { email }
|
||||
},
|
||||
mapOutput: (output) => {
|
||||
const status = str(output.status)
|
||||
if (!status || status === 'unknown') return null
|
||||
return { status, deliverable: output.deliverable === true }
|
||||
},
|
||||
}),
|
||||
toolProvider({
|
||||
id: 'millionverifier',
|
||||
label: 'MillionVerifier',
|
||||
toolId: 'millionverifier_verify_email',
|
||||
buildParams: (inputs) => {
|
||||
const email = str(inputs.email)
|
||||
if (!email) return null
|
||||
return { email }
|
||||
},
|
||||
mapOutput: (output) => {
|
||||
const status = str(output.status)
|
||||
if (!status || status === 'unknown') return null
|
||||
return { status, deliverable: output.deliverable === true }
|
||||
},
|
||||
}),
|
||||
toolProvider({
|
||||
id: 'enrow',
|
||||
label: 'Enrow',
|
||||
toolId: 'enrow_verify_email',
|
||||
buildParams: (inputs) => {
|
||||
const email = str(inputs.email)
|
||||
if (!email) return null
|
||||
return { email }
|
||||
},
|
||||
mapOutput: (output) => {
|
||||
// Enrow returns a "valid" / "invalid" qualifier; anything else is inconclusive.
|
||||
const qualification = str(output.qualification).toLowerCase()
|
||||
if (qualification === 'valid') return { status: 'valid', deliverable: true }
|
||||
if (qualification === 'invalid') return { status: 'invalid', deliverable: false }
|
||||
return null
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user