UNPKG

@eagleeye-solutions/integration-events-common

Version:
345 lines (344 loc) 9.3 kB
import { z } from 'zod'; export declare const BaseConnectorConfigSchema: z.ZodObject<{ unit_id: z.ZodString; credentials: z.ZodObject<{ clientId: z.ZodString; secret: z.ZodString; }, "strip", z.ZodTypeAny, { clientId: string; secret: string; }, { clientId: string; secret: string; }>; connection_url: z.ZodString; platform: z.ZodObject<{ id: z.ZodString; name: z.ZodString; slug: z.ZodString; config: z.ZodNullable<z.ZodAny>; description: z.ZodString; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; slug: string; description: string; created_at: string; updated_at: string; config?: any; }, { id: string; name: string; slug: string; description: string; created_at: string; updated_at: string; config?: any; }>; domains: z.ZodObject<{ wallet: z.ZodString; resources: z.ZodString; pos: z.ZodString; }, "strip", z.ZodTypeAny, { wallet: string; resources: string; pos: string; }, { wallet: string; resources: string; pos: string; }>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ unit_id: z.ZodString; credentials: z.ZodObject<{ clientId: z.ZodString; secret: z.ZodString; }, "strip", z.ZodTypeAny, { clientId: string; secret: string; }, { clientId: string; secret: string; }>; connection_url: z.ZodString; platform: z.ZodObject<{ id: z.ZodString; name: z.ZodString; slug: z.ZodString; config: z.ZodNullable<z.ZodAny>; description: z.ZodString; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; slug: string; description: string; created_at: string; updated_at: string; config?: any; }, { id: string; name: string; slug: string; description: string; created_at: string; updated_at: string; config?: any; }>; domains: z.ZodObject<{ wallet: z.ZodString; resources: z.ZodString; pos: z.ZodString; }, "strip", z.ZodTypeAny, { wallet: string; resources: string; pos: string; }, { wallet: string; resources: string; pos: string; }>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ unit_id: z.ZodString; credentials: z.ZodObject<{ clientId: z.ZodString; secret: z.ZodString; }, "strip", z.ZodTypeAny, { clientId: string; secret: string; }, { clientId: string; secret: string; }>; connection_url: z.ZodString; platform: z.ZodObject<{ id: z.ZodString; name: z.ZodString; slug: z.ZodString; config: z.ZodNullable<z.ZodAny>; description: z.ZodString; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; slug: string; description: string; created_at: string; updated_at: string; config?: any; }, { id: string; name: string; slug: string; description: string; created_at: string; updated_at: string; config?: any; }>; domains: z.ZodObject<{ wallet: z.ZodString; resources: z.ZodString; pos: z.ZodString; }, "strip", z.ZodTypeAny, { wallet: string; resources: string; pos: string; }, { wallet: string; resources: string; pos: string; }>; }, z.ZodTypeAny, "passthrough">>; export type BaseConnectorConfig = z.infer<typeof BaseConnectorConfigSchema>; export declare const BaseOutConnectorConfigSchema: z.ZodObject<z.objectUtil.extendShape<{ unit_id: z.ZodString; credentials: z.ZodObject<{ clientId: z.ZodString; secret: z.ZodString; }, "strip", z.ZodTypeAny, { clientId: string; secret: string; }, { clientId: string; secret: string; }>; connection_url: z.ZodString; platform: z.ZodObject<{ id: z.ZodString; name: z.ZodString; slug: z.ZodString; config: z.ZodNullable<z.ZodAny>; description: z.ZodString; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; slug: string; description: string; created_at: string; updated_at: string; config?: any; }, { id: string; name: string; slug: string; description: string; created_at: string; updated_at: string; config?: any; }>; domains: z.ZodObject<{ wallet: z.ZodString; resources: z.ZodString; pos: z.ZodString; }, "strip", z.ZodTypeAny, { wallet: string; resources: string; pos: string; }, { wallet: string; resources: string; pos: string; }>; }, { configuration: z.ZodObject<{ identityType: z.ZodString; currency: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ identityType: z.ZodString; currency: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ identityType: z.ZodString; currency: z.ZodString; }, z.ZodTypeAny, "passthrough">>; }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{ unit_id: z.ZodString; credentials: z.ZodObject<{ clientId: z.ZodString; secret: z.ZodString; }, "strip", z.ZodTypeAny, { clientId: string; secret: string; }, { clientId: string; secret: string; }>; connection_url: z.ZodString; platform: z.ZodObject<{ id: z.ZodString; name: z.ZodString; slug: z.ZodString; config: z.ZodNullable<z.ZodAny>; description: z.ZodString; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; slug: string; description: string; created_at: string; updated_at: string; config?: any; }, { id: string; name: string; slug: string; description: string; created_at: string; updated_at: string; config?: any; }>; domains: z.ZodObject<{ wallet: z.ZodString; resources: z.ZodString; pos: z.ZodString; }, "strip", z.ZodTypeAny, { wallet: string; resources: string; pos: string; }, { wallet: string; resources: string; pos: string; }>; }, { configuration: z.ZodObject<{ identityType: z.ZodString; currency: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ identityType: z.ZodString; currency: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ identityType: z.ZodString; currency: z.ZodString; }, z.ZodTypeAny, "passthrough">>; }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{ unit_id: z.ZodString; credentials: z.ZodObject<{ clientId: z.ZodString; secret: z.ZodString; }, "strip", z.ZodTypeAny, { clientId: string; secret: string; }, { clientId: string; secret: string; }>; connection_url: z.ZodString; platform: z.ZodObject<{ id: z.ZodString; name: z.ZodString; slug: z.ZodString; config: z.ZodNullable<z.ZodAny>; description: z.ZodString; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; slug: string; description: string; created_at: string; updated_at: string; config?: any; }, { id: string; name: string; slug: string; description: string; created_at: string; updated_at: string; config?: any; }>; domains: z.ZodObject<{ wallet: z.ZodString; resources: z.ZodString; pos: z.ZodString; }, "strip", z.ZodTypeAny, { wallet: string; resources: string; pos: string; }, { wallet: string; resources: string; pos: string; }>; }, { configuration: z.ZodObject<{ identityType: z.ZodString; currency: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ identityType: z.ZodString; currency: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ identityType: z.ZodString; currency: z.ZodString; }, z.ZodTypeAny, "passthrough">>; }>, z.ZodTypeAny, "passthrough">>; export type BaseOutConnectorConfig = z.infer<typeof BaseOutConnectorConfigSchema>;