UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

161 lines 5.36 kB
import { z } from 'zod'; /** * Web hook refresh parameters */ export declare const WebHookRefreshParamsSchema: z.ZodObject<{ 'x-site-id': z.ZodString; force: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { 'x-site-id': string; force?: boolean | undefined; }, { 'x-site-id': string; force?: boolean | undefined; }>; /** * Webhook refresh response data */ export declare const WebHookRefreshDataSchema: z.ZodObject<{ refreshed: z.ZodBoolean; webhook_count: z.ZodNumber; active_webhooks: z.ZodNumber; inactive_webhooks: z.ZodNumber; errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; refresh_timestamp: z.ZodString; configuration_status: z.ZodEnum<["valid", "invalid", "partial"]>; channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { refreshed: boolean; webhook_count: number; active_webhooks: number; inactive_webhooks: number; refresh_timestamp: string; configuration_status: "valid" | "invalid" | "partial"; errors?: string[] | undefined; channels?: string[] | undefined; }, { refreshed: boolean; webhook_count: number; active_webhooks: number; inactive_webhooks: number; refresh_timestamp: string; configuration_status: "valid" | "invalid" | "partial"; errors?: string[] | undefined; channels?: string[] | undefined; }>; /** * Web hook refresh response */ export declare const WebHookRefreshResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ refreshed: z.ZodBoolean; webhook_count: z.ZodNumber; active_webhooks: z.ZodNumber; inactive_webhooks: z.ZodNumber; errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; refresh_timestamp: z.ZodString; configuration_status: z.ZodEnum<["valid", "invalid", "partial"]>; channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { refreshed: boolean; webhook_count: number; active_webhooks: number; inactive_webhooks: number; refresh_timestamp: string; configuration_status: "valid" | "invalid" | "partial"; errors?: string[] | undefined; channels?: string[] | undefined; }, { refreshed: boolean; webhook_count: number; active_webhooks: number; inactive_webhooks: number; refresh_timestamp: string; configuration_status: "valid" | "invalid" | "partial"; errors?: string[] | undefined; channels?: string[] | undefined; }>; message: z.ZodString; options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; status: z.ZodNumber; total: z.ZodNumber; totalResults: z.ZodNumber; }, "strip", z.ZodTypeAny, { params: Record<string, unknown> | unknown[]; data: { refreshed: boolean; webhook_count: number; active_webhooks: number; inactive_webhooks: number; refresh_timestamp: string; configuration_status: "valid" | "invalid" | "partial"; errors?: string[] | undefined; channels?: string[] | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { refreshed: boolean; webhook_count: number; active_webhooks: number; inactive_webhooks: number; refresh_timestamp: string; configuration_status: "valid" | "invalid" | "partial"; errors?: string[] | undefined; channels?: string[] | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { refreshed: boolean; webhook_count: number; active_webhooks: number; inactive_webhooks: number; refresh_timestamp: string; configuration_status: "valid" | "invalid" | "partial"; errors?: string[] | undefined; channels?: string[] | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { refreshed: boolean; webhook_count: number; active_webhooks: number; inactive_webhooks: number; refresh_timestamp: string; configuration_status: "valid" | "invalid" | "partial"; errors?: string[] | undefined; channels?: string[] | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export type WebHookRefreshParams = z.infer<typeof WebHookRefreshParamsSchema>; export type WebHookRefreshData = z.infer<typeof WebHookRefreshDataSchema>; export type WebHookRefreshResponse = z.infer<typeof WebHookRefreshResponseSchema>; //# sourceMappingURL=webHookRefresh.d.ts.map