Interface ConnectorAuthMethodArgs
interface ConnectorAuthMethodArgs { connectorSpec?: { key?: string; name?: string; logoUri?: string; api?: { type: "openapi" | "graphql" }; ui?: { schema?: DataSchema; description?: string; helpUri?: string; test?: boolean; }; inputSchema?: DataSchema; auth?: | (
({ type: "oauth2"; title?: string | undefined; description?: string | undefined; inputSchema?: DataSchema | undefined; ui?: { schema?: DataSchema | undefined; helpUri?: string | undefined; } | undefined; ... 12 more ...; oAuthConfig?: { ...; } | ... 6 more ... | undefined; } | ... 4 more ... | { ...; }) & { ...; }
)
| { title?: string; description?: string; inputSchema?: DataSchema; ui?: { schema?: DataSchema; helpUri?: string }; parametersSchema?: DataSchema; credentialsSchema?: DataSchema; customCredentialsSchema?: DataSchema; makeApiClient?: { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; }; refreshCredentials?: { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; }; test?: { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; }; disconnect?: { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; }; enabled?: any; type?: | "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; getOAuthConfig?: | { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: mapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: operationMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: restApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: graphqlApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: javascript; code: string; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: notSupported; }; getTokenData?: | { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: mapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: operationMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: restApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: graphqlApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: javascript; code: string; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: notSupported; }; getCredentialsFromAccessTokenResponse?: | { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: mapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: operationMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: restApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: graphqlApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: javascript; code: string; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: notSupported; }; getCredentialsFromRefreshTokenResponse?: | { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: mapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: operationMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: restApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: graphqlApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: javascript; code: string; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: notSupported; }; getCredentialsFromConnectionParameters?: { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; }; proxyKey?: string; oAuthConfig?: | { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: mapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: operationMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: restApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: graphqlApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: javascript; code: string; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: notSupported; }; } & { options: ZodRecord< ZodString, ZodUnion< readonly [ ZodObject< { title: ...
; description: ...
; inputSchema: ...
; ui: ...
; parametersSchema: ...
; credentialsSchema: ...
; customCredentialsSchema: ...
; makeApiClient: ...
; refreshCredentials: ...
; test: ...
; disconnect: ...
; enabled: ...
; type: ...
; getOAuthConfig: ...
; getTokenData: ...
; getCredentialsFromAccessTokenResponse: ...
; getCredentialsFromRefreshTokenResponse: ...
; oAuthConfig: ...
; }, $strip, >, ZodObject< { title: ...
; description: ...
; inputSchema: ...
; ui: ...
; parametersSchema: ...
; credentialsSchema: ...
; customCredentialsSchema: ...
; makeApiClient: ...
; refreshCredentials: ...
; test: ...
; disconnect: ...
; enabled: ...
; type: ...
; getOAuthConfig: ...
; }, $strip, >, ZodObject< { title: ...
; description: ...
; inputSchema: ...
; ui: ...
; parametersSchema: ...
; credentialsSchema: ...
; customCredentialsSchema: ...
; makeApiClient: ...
; refreshCredentials: ...
; test: ...
; disconnect: ...
; enabled: ...
; type: ...
; getCredentialsFromConnectionParameters: ...
; }, $strip, >, ZodObject< { title: ...
; description: ...
; inputSchema: ...
; ui: ...
; parametersSchema: ...
; credentialsSchema: ...
; customCredentialsSchema: ...
; makeApiClient: ...
; refreshCredentials: ...
; test: ...
; disconnect: ...
; enabled: ...
; type: ...
; }, $strip, >, ZodObject< { title: ...
; description: ...
; inputSchema: ...
; ui: ...
; parametersSchema: ...
; credentialsSchema: ...
; customCredentialsSchema: ...
; makeApiClient: ...
; refreshCredentials: ...
; test: ...
; disconnect: ...
; enabled: ...
; type: ...
; }, $strip, >, ZodObject< { title: ...
; description: ...
; inputSchema: ...
; ui: ...
; parametersSchema: ...
; credentialsSchema: ...
; customCredentialsSchema: ...
; makeApiClient: ...
; refreshCredentials: ...
; test: ...
; disconnect: ...
; enabled: ...
; type: ...
; proxyKey: ...
; }, $strip, >, ], >, >; }; parametersSchema?: DataSchema; udms?: string[]; udm?: Record<string, any>; operations?: any[]; test?: | { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: mapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: operationMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: restApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: graphqlApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: javascript; code: string; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: notSupported; }; hasReadme?: boolean; externalAppId?: string; appUuid?: string; knowledgeBaseUuid?: string; workspaceId?: string; data?: any; }; authOptionKey?: string;} Properties
OptionalconnectorSpec
connectorSpec?: { key?: string; name?: string; logoUri?: string; api?: { type: "openapi" | "graphql" }; ui?: { schema?: DataSchema; description?: string; helpUri?: string; test?: boolean; }; inputSchema?: DataSchema; auth?: | (
({ type: "oauth2"; title?: string | undefined; description?: string | undefined; inputSchema?: DataSchema | undefined; ui?: { schema?: DataSchema | undefined; helpUri?: string | undefined; } | undefined; ... 12 more ...; oAuthConfig?: { ...; } | ... 6 more ... | undefined; } | ... 4 more ... | { ...; }) & { ...; }
)
| { title?: string; description?: string; inputSchema?: DataSchema; ui?: { schema?: DataSchema; helpUri?: string }; parametersSchema?: DataSchema; credentialsSchema?: DataSchema; customCredentialsSchema?: DataSchema; makeApiClient?: { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; }; refreshCredentials?: { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; }; test?: { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; }; disconnect?: { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; }; enabled?: any; type?: | "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; getOAuthConfig?: | { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: mapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: operationMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: restApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: graphqlApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: javascript; code: string; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: notSupported; }; getTokenData?: | { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: mapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: operationMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: restApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: graphqlApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: javascript; code: string; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: notSupported; }; getCredentialsFromAccessTokenResponse?: | { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: mapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: operationMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: restApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: graphqlApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: javascript; code: string; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: notSupported; }; getCredentialsFromRefreshTokenResponse?: | { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: mapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: operationMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: restApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: graphqlApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: javascript; code: string; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: notSupported; }; getCredentialsFromConnectionParameters?: { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; }; proxyKey?: string; oAuthConfig?: | { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: mapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: operationMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: restApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: graphqlApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: javascript; code: string; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: notSupported; }; } & { options: ZodRecord< ZodString, ZodUnion< readonly [ ZodObject< { title: ...
; description: ...
; inputSchema: ...
; ui: ...
; parametersSchema: ...
; credentialsSchema: ...
; customCredentialsSchema: ...
; makeApiClient: ...
; refreshCredentials: ...
; test: ...
; disconnect: ...
; enabled: ...
; type: ...
; getOAuthConfig: ...
; getTokenData: ...
; getCredentialsFromAccessTokenResponse: ...
; getCredentialsFromRefreshTokenResponse: ...
; oAuthConfig: ...
; }, $strip, >, ZodObject< { title: ...
; description: ...
; inputSchema: ...
; ui: ...
; parametersSchema: ...
; credentialsSchema: ...
; customCredentialsSchema: ...
; makeApiClient: ...
; refreshCredentials: ...
; test: ...
; disconnect: ...
; enabled: ...
; type: ...
; getOAuthConfig: ...
; }, $strip, >, ZodObject< { title: ...
; description: ...
; inputSchema: ...
; ui: ...
; parametersSchema: ...
; credentialsSchema: ...
; customCredentialsSchema: ...
; makeApiClient: ...
; refreshCredentials: ...
; test: ...
; disconnect: ...
; enabled: ...
; type: ...
; getCredentialsFromConnectionParameters: ...
; }, $strip, >, ZodObject< { title: ...
; description: ...
; inputSchema: ...
; ui: ...
; parametersSchema: ...
; credentialsSchema: ...
; customCredentialsSchema: ...
; makeApiClient: ...
; refreshCredentials: ...
; test: ...
; disconnect: ...
; enabled: ...
; type: ...
; }, $strip, >, ZodObject< { title: ...
; description: ...
; inputSchema: ...
; ui: ...
; parametersSchema: ...
; credentialsSchema: ...
; customCredentialsSchema: ...
; makeApiClient: ...
; refreshCredentials: ...
; test: ...
; disconnect: ...
; enabled: ...
; type: ...
; }, $strip, >, ZodObject< { title: ...
; description: ...
; inputSchema: ...
; ui: ...
; parametersSchema: ...
; credentialsSchema: ...
; customCredentialsSchema: ...
; makeApiClient: ...
; refreshCredentials: ...
; test: ...
; disconnect: ...
; enabled: ...
; type: ...
; proxyKey: ...
; }, $strip, >, ], >, >; }; parametersSchema?: DataSchema; udms?: string[]; udm?: Record<string, any>; operations?: any[]; test?: | { implementationType?: | mapping | operationMapping | restApiMapping | graphqlApiMapping | javascript | notSupported; filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: mapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: operationMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: restApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: graphqlApiMapping; mapping: any; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: javascript; code: string; } | { filePath?: string; inheritedFromPath?: string[]; isIncomplete?: boolean; parametersSchema?: DataSchema; implementationType: notSupported; }; hasReadme?: boolean; externalAppId?: string; appUuid?: string; knowledgeBaseUuid?: string; workspaceId?: string; data?: any;} OptionalauthOptionKey
authOptionKey?: string