"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DockSettingsSchema = exports.DockApiScopes = exports.API_URLS = exports.AUTH_URLS = exports.DockEnvironmentSchema = void 0;
const zod_1 = require("zod");
exports.DockEnvironmentSchema = zod_1.z
    .string()
    .min(1)
    .toUpperCase()
    .pipe(zod_1.z.enum(['DEVELOPMENT', 'PRODUCTION']));
exports.AUTH_URLS = {
    PRODUCTION: 'https://partner-auth.dock.health/oauth2/token',
    DEVELOPMENT: 'https://partner-auth-dev.dockhealth.app/oauth2/token',
};
exports.API_URLS = {
    PRODUCTION: 'https://partner-api.dock.health',
    DEVELOPMENT: 'https://partner-api-dev.dockhealth.app',
};
/**
 * The scopes we need to to execute all actions in this extension
 */
const scopesArray = [
    'dockhealth/user.all.read',
    'dockhealth/user.all.write',
    'dockhealth/patient.all.read',
    'dockhealth/patient.all.write',
];
exports.DockApiScopes = scopesArray.join(' ');
exports.DockSettingsSchema = zod_1.z.object({
    environment: exports.DockEnvironmentSchema,
    clientId: zod_1.z.string().min(1),
    clientSecret: zod_1.z.string().min(1),
    apiKey: zod_1.z.string().min(1),
    organizationId: zod_1.z.string().min(1),
    userId: zod_1.z.string().min(1),
});
//# sourceMappingURL=dock.types.js.map