import { z } from "zod"; import { InstillJSONSchema, Nullable } from "../../types"; import { ResourceView } from "../../pipeline"; export type IntegrationMethod = "METHOD_DICTIONARY" | "METHOD_OAUTH"; export type HelpLink = { text: string; url: string; }; export declare const HelpLinkSchema: z.ZodObject<{ text: z.ZodString; url: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; url: string; }, { text: string; url: string; }>; export type OAuthConfig = { authUrl: string; accessUrl: string; scopes: string[]; }; export declare const OAuthConfigSchema: z.ZodObject<{ authUrl: z.ZodString; accessUrl: z.ZodString; scopes: z.ZodArray; }, "strip", z.ZodTypeAny, { authUrl: string; accessUrl: string; scopes: string[]; }, { authUrl: string; accessUrl: string; scopes: string[]; }>; export type Integration = { id: string; title: string; description: string; vendor: string; icon: string; helpLink?: HelpLink; setupSchema: InstillJSONSchema; oAuthConfig: Nullable; view: ResourceView; }; export declare const IntegrationSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; description: z.ZodString; vendor: z.ZodString; icon: z.ZodString; helpLink: z.ZodOptional>; setupSchema: z.ZodAny; oAuthConfig: z.ZodNullable; }, "strip", z.ZodTypeAny, { authUrl: string; accessUrl: string; scopes: string[]; }, { authUrl: string; accessUrl: string; scopes: string[]; }>>; view: z.ZodEnum<["VIEW_FULL", "VIEW_BASIC"]>; }, "strip", z.ZodTypeAny, { title: string; description: string; id: string; icon: string; vendor: string; view: "VIEW_FULL" | "VIEW_BASIC"; oAuthConfig: { authUrl: string; accessUrl: string; scopes: string[]; } | null; helpLink?: { text: string; url: string; } | undefined; setupSchema?: any; }, { title: string; description: string; id: string; icon: string; vendor: string; view: "VIEW_FULL" | "VIEW_BASIC"; oAuthConfig: { authUrl: string; accessUrl: string; scopes: string[]; } | null; helpLink?: { text: string; url: string; } | undefined; setupSchema?: any; }>; export type IntegrationConnection = { name: string; id: string; displayName: string; slug?: string; aliases?: string[]; description?: string; createTime: string; updateTime: string; namespaceId: string; integrationId: string; integrationTitle: string; method: IntegrationMethod; setup: Record; view: ResourceView; scopes?: string[]; oAuthAccessDetails?: Record; identity?: string; }; export type ListPaginatedIntegrationsRequest = { pageToken?: string; pageSize?: number; filter?: string; }; export type ListPaginatedIntegrationsResponse = { integrations: Integration[]; nextPageToken: Nullable; totalSize: number; }; export declare const listPaginatedIntegrationsResponseValidator: z.ZodObject<{ integrations: z.ZodArray>; setupSchema: z.ZodAny; oAuthConfig: z.ZodNullable; }, "strip", z.ZodTypeAny, { authUrl: string; accessUrl: string; scopes: string[]; }, { authUrl: string; accessUrl: string; scopes: string[]; }>>; view: z.ZodEnum<["VIEW_FULL", "VIEW_BASIC"]>; }, "strip", z.ZodTypeAny, { title: string; description: string; id: string; icon: string; vendor: string; view: "VIEW_FULL" | "VIEW_BASIC"; oAuthConfig: { authUrl: string; accessUrl: string; scopes: string[]; } | null; helpLink?: { text: string; url: string; } | undefined; setupSchema?: any; }, { title: string; description: string; id: string; icon: string; vendor: string; view: "VIEW_FULL" | "VIEW_BASIC"; oAuthConfig: { authUrl: string; accessUrl: string; scopes: string[]; } | null; helpLink?: { text: string; url: string; } | undefined; setupSchema?: any; }>, "many">; nextPageToken: z.ZodNullable; totalSize: z.ZodNumber; }, "strip", z.ZodTypeAny, { nextPageToken: string | null; totalSize: number; integrations: { title: string; description: string; id: string; icon: string; vendor: string; view: "VIEW_FULL" | "VIEW_BASIC"; oAuthConfig: { authUrl: string; accessUrl: string; scopes: string[]; } | null; helpLink?: { text: string; url: string; } | undefined; setupSchema?: any; }[]; }, { nextPageToken: string | null; totalSize: number; integrations: { title: string; description: string; id: string; icon: string; vendor: string; view: "VIEW_FULL" | "VIEW_BASIC"; oAuthConfig: { authUrl: string; accessUrl: string; scopes: string[]; } | null; helpLink?: { text: string; url: string; } | undefined; setupSchema?: any; }[]; }>; export type ListIntegrationsRequest = { pageToken?: string; pageSize?: number; filter?: string; }; export type ListIntegrationsResponse = { integrations: Integration[]; }; export type GetIntegrationRequest = { view?: ResourceView; integrationId: string; }; export type GetIntegrationResponse = { integration: Integration; }; export type GetNamespaceConnectionRequest = { view?: ResourceView; namespaceId: string; connectionId: string; }; export type GetNamespaceConnectionResponse = { connection: IntegrationConnection; }; export type CreateNamespaceConnectionRequest = { namespaceId: string; id: string; integrationId: string; setup: Record; method: IntegrationMethod; oAuthAccessDetails?: Record; identity?: string; scopes?: string[]; }; export type CreateNamespaceConnectionResponse = { connection: IntegrationConnection; }; export type ListPaginatedNamespaceConnectionsRequest = { namespaceId: string; pageToken?: string; pageSize?: number; filter?: string; }; export type ListPaginatedNamespaceConnectionsResponse = { connections: IntegrationConnection[]; nextPageToken: Nullable; totalSize: number; }; export type ListNamespaceConnectionsRequest = { namespaceId: string; pageToken?: string; pageSize?: number; filter?: string; }; export type ListNamespaceConnectionsResponse = { connections: IntegrationConnection[]; }; export type UpdateNamespaceConnectionRequest = { namespaceId: string; connectionId: string; id?: string; setup: Record; }; export type UpdateNamespaceConnectionResponse = { connection: IntegrationConnection; }; export type GetConnectionPipelinesRequest = { namespaceId: string; connectionId: string; pageToken?: string; pageSize: number; filter: Nullable; }; export type ListPaginatedNamespaceConnectionReferencedPipelinesRequest = { namespaceId: string; connectionId: string; pageToken?: string; pageSize?: number; filter?: string; }; export type ListPaginatedNamespaceConnectionReferencedPipelinesResponse = { pipelineIds: string[]; nextPageToken: Nullable; totalSize: number; }; export type ListNamespaceConnectionReferencedPipelinesRequest = { namespaceId: string; connectionId: string; pageToken?: string; pageSize?: number; filter?: string; }; export type ListNamespaceConnectionReferencedPipelinesResponse = { pipelineIds: string[]; }; export type GetConnectionPipelinesResponse = { pipelineIds: string[]; nextPageToken: Nullable; totalSize: number; }; export type DeleteNamespaceConnectionRequest = { namespaceId: string; connectionId: string; }; export type TestNamespaceConnectionRequest = { namespaceId: string; connectionId: string; }; export type TestNamespaceConnectionResponse = unknown; //# sourceMappingURL=type.d.ts.map