{ "$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json", "title": "Snowflake datasource", "description": "A schema defining Snowflake datasource", "type": "database", "source": { "name": "Snowflake", "kind": "snowflake", "exposedVariables": { "isLoading": false, "data": {}, "rawData": {} }, "options": { "username": { "type": "string" }, "account": { "type": "string" }, "password": { "type": "string", "encrypted": true }, "database": { "type": "string" }, "schema": { "type": "string" }, "warehouse": { "type": "string" }, "role": { "type": "string" }, "client_id": { "type": "string" }, "client_secret": { "type": "string", "encrypted": true }, "auth_url": { "type": "string" }, "access_token_url": { "type": "string" }, "custom_auth_params": { "type": "object" }, "custom_query_params": { "type": "object" }, "private_key": { "type": "string", "encrypted": true }, "private_key_passphrase": { "type": "string", "encrypted": true } } }, "defaults": { "username": { "value": "" }, "account": { "value": "" }, "password": { "value": "" }, "database": { "value": "" }, "schema": { "value": "" }, "warehouse": { "value": "" }, "role": { "value": "" }, "auth_type": { "value": "basic" }, "oauth_type": { "value": "custom_app" }, "grant_type": { "value": "authorization_code" } }, "properties": { "account": { "label": "Account", "key": "account", "type": "text", "description": "Enter account" }, "auth_type": { "label": "Authentication type", "key": "auth_type", "type": "dropdown-component-flip", "description": "Select the authentication type", "list": [ { "value": "basic", "name": "Basic" }, { "value": "oauth2", "name": "OAuth 2.0" }, { "value": "key_pair", "name": "Key pair" } ] }, "basic": { "username": { "label": "Username", "key": "username", "type": "text", "description": "Enter username" }, "password": { "label": "Password", "key": "password", "type": "password", "description": "Enter password", "encrypted": true } }, "oauth2": { "oauth": { "key": "oauth", "type": "react-component-oauth", "description": "A component for snowflake", "oauth_configs": { "allowed_auth_types": [ "oauth2" ], "allowed_grant_types": [ "authorization_code" ], "allowed_field_groups": { "authorization_code": [ "client_id", "client_secret", "auth_url", "access_token_url", "access_token_custom_headers" ] }, "allowed_scope_field": true, "oauthTypes": { "required": true, "default_value": "custom_app", "editions": { "ce": [ "custom_app" ], "ee": [ "custom_app" ], "cloud": [ "custom_app", "tooljet_app" ] } } } } }, "key_pair": { "username": { "label": "Username", "key": "username", "type": "text", "description": "Enter username" }, "private_key": { "label": "Private key", "key": "private_key", "type": "textarea", "description": "Enter the RSA private key in PEM format", "encrypted": true }, "private_key_passphrase": { "label": "Private key passphrase", "key": "private_key_passphrase", "type": "password", "description": "Enter passphrase (only required if the private key is encrypted)", "encrypted": true } }, "database": { "label": "Database", "key": "database", "type": "text", "description": "Enter database" }, "schema": { "label": "Schema", "key": "schema", "type": "text", "description": "Enter schema" }, "warehouse": { "label": "Warehouse", "key": "warehouse", "type": "text", "description": "Enter warehouse" }, "role": { "label": "Role", "key": "role", "type": "text", "description": "Enter role" } }, "required": [ "account" ] }