"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fields_1 = require("../fields");
const utils_1 = require("../utils");
const action = {
    title: 'Identify',
    description: 'Identify a user in Altertable.',
    fields: {
        type: {
            label: 'Segment Event Type',
            description: 'The Segment event type',
            type: 'string',
            choices: [
                { label: 'identify', value: 'identify' }
            ],
            required: true,
            default: 'identify'
        },
        traits: {
            label: 'Traits',
            description: 'The traits of the user',
            type: 'object',
            required: true,
            default: {
                '@path': '$.traits'
            }
        },
        ...fields_1.commonFields
    },
    perform: (request, { payload, settings }) => {
        return (0, utils_1.send)(request, settings, payload);
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map