"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const zod_1 = require("zod");
const extensions_core_1 = require("@awell-health/extensions-core");
exports.fields = {
    userId: {
        label: 'User ID',
        id: 'userId',
        type: extensions_core_1.FieldType.STRING,
        required: true,
        description: "The user's unique ID in Sendbird.",
    },
    nickname: {
        id: 'nickname',
        label: 'Nickname',
        type: extensions_core_1.FieldType.STRING,
        description: "The user's nickname. Maximum length is 80 characters.",
        required: false,
    },
    issueAccessToken: {
        id: 'issueAccessToken',
        label: 'Issue access token',
        description: 'Determines whether to revoke the existing access token and create a new one for the user.',
        type: extensions_core_1.FieldType.BOOLEAN,
        required: false,
    },
    profileUrl: {
        id: 'profileUrl',
        label: 'Profile URL',
        description: "The URL of the user's profile image.",
        type: extensions_core_1.FieldType.STRING,
        stringType: extensions_core_1.StringType.URL,
        required: false,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    userId: zod_1.z.string().nonempty(),
    nickname: (0, extensions_core_1.makeStringOptional)(zod_1.z.string().max(80)),
    issueAccessToken: zod_1.z.boolean().optional(),
    profileUrl: (0, extensions_core_1.makeStringOptional)(zod_1.z.string().url()),
});
//# sourceMappingURL=fields.js.map