"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
const schema_1 = require("../schema");
const action = {
    title: 'Custom third-party event',
    description: 'Fire arbitrary, custom third-party events from your mobile app. (Mobile applications only)',
    fields: {
        evtname: {
            label: 'Event name',
            description: 'The name of the custom third-party event to pass to Magellan AI',
            type: 'string',
            default: { '@path': '$.event' },
            required: true
        },
        evtattrs: {
            label: 'Event attributes',
            description: 'An arbitrary JSON object containing any additional data about this event',
            type: 'object',
            default: { '@path': '$.properties' },
            required: false
        },
        ...schema_1.mobileFields,
        ...schema_1.clientFields
    },
    perform: (0, utils_1.buildPerformer)('event')
};
exports.default = action;
//# sourceMappingURL=index.js.map