import type { IngestInteractionRequest } from '@insignia/iios-contracts';

/** A known portal user sends a plain text message into a thread. */
export const portalMessageBasic: IngestInteractionRequest = {
  scope: { orgId: 'org_demo', appId: 'portal-demo' },
  channel: { type: 'PORTAL', externalChannelId: 'portal-web' },
  source: { handleKind: 'PORTAL_USER', externalId: 'user_rahul', displayName: 'Rahul' },
  kind: 'MESSAGE',
  thread: { externalThreadId: 'thr_demo_1', subject: 'Payment help' },
  parts: [{ kind: 'TEXT', bodyText: 'my payment failed' }],
  occurredAt: '2026-06-30T15:10:00.000Z',
  providerEventId: 'evt_portal_1',
};
