"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fields = void 0;
exports.fields = {
    visitorId: {
        label: 'Visitor ID',
        description: 'The Pendo Visitor ID for the user. Maps to the userId in Segment by default.',
        type: 'string',
        required: true,
        default: {
            '@path': '$.userId'
        }
    },
    traitsOrProperties: {
        label: 'Traits or Properties',
        description: 'Traits or Properties object from the identify() or track() call emitted by Engage.',
        type: 'object',
        required: true,
        unsafe_hidden: true,
        default: {
            '@if': {
                exists: { '@path': '$.traits' },
                then: { '@path': '$.traits' },
                else: { '@path': '$.properties' }
            }
        }
    },
    segmentAudienceKey: {
        label: 'Segment Audience Key',
        description: 'Segment Audience Key. Used to determine whether the user is being added to or removed from the Pendo Segment.',
        type: 'string',
        required: true,
        unsafe_hidden: true,
        default: {
            '@path': '$.context.personas.computation_key'
        }
    },
    segmentAudienceId: {
        label: 'Segment External Audience ID',
        description: 'The External Audience ID from Segment, which maps to the Pendo Segment ID.',
        type: 'string',
        required: true,
        unsafe_hidden: true,
        default: {
            '@path': '$.context.personas.external_audience_id'
        }
    },
    enable_batching: {
        label: 'Batch events',
        description: 'When enabled, events are batched and sent to Pendo using the batch patch endpoint (up to 1000 visitors per request).',
        type: 'boolean',
        required: true,
        default: true
    },
    batch_size: {
        label: 'Max Batch Size',
        description: 'Maximum number of visitors to include in a single batch request. Must be between 1 and 1000.',
        type: 'integer',
        required: false,
        default: 1000,
        minimum: 1,
        maximum: 1000
    }
};
//# sourceMappingURL=fields.js.map