UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

32 lines 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WebHookRefreshResponseSchema = exports.WebHookRefreshDataSchema = exports.WebHookRefreshParamsSchema = void 0; const zod_1 = require("zod"); const schemas_1 = require("../../../core/schemas"); /** * Web hook refresh parameters */ exports.WebHookRefreshParamsSchema = zod_1.z.object({ 'x-site-id': zod_1.z.string().describe('Site ID provided by SimpleApps'), force: zod_1.z.boolean().optional().describe('Force refresh of webhook configuration'), }); /** * Webhook refresh response data */ exports.WebHookRefreshDataSchema = zod_1.z .object({ refreshed: zod_1.z.boolean(), webhook_count: zod_1.z.number(), active_webhooks: zod_1.z.number(), inactive_webhooks: zod_1.z.number(), errors: zod_1.z.array(zod_1.z.string()).optional(), refresh_timestamp: zod_1.z.string(), configuration_status: zod_1.z.enum(['valid', 'invalid', 'partial']), channels: zod_1.z.array(zod_1.z.string()).optional(), }) .describe('Webhook refresh operation results with configuration status'); /** * Web hook refresh response */ exports.WebHookRefreshResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.WebHookRefreshDataSchema); //# sourceMappingURL=webHookRefresh.js.map