import { sharedSchemaReferences } from "../../types.js";
const interacDestinationType = { type: "string", enum: ['email', 'phone'] };
const sharedInteracFields = {
    destinationType: interacDestinationType,
    destinationValue: { type: "string" }
};
const interacSchema = {
    type: 'bank-account',
    includeFields: {
        accountOwner: true,
        bankName: false,
        accountNumberEnding: true
    },
    additionalProperties: {
        resolved: {
            type: "object",
            properties: {
                ...sharedInteracFields,
                accountAddress: sharedSchemaReferences.PhysicalAddress
            },
            required: ['destinationValue']
        },
        obfuscated: {
            type: "object",
            properties: {
                ...sharedInteracFields,
                accountAddress: {
                    oneOf: [
                        { type: 'string' },
                        sharedSchemaReferences.PhysicalAddress
                    ]
                }
            }
        }
    }
};
export default interacSchema;
//# sourceMappingURL=interac.js.map