|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$id": "https://json.schemastore.org/snowflake-config.json", |
| 4 | + "x-tombi-toml-version": "1.0.0", |
| 5 | + "type": "object", |
| 6 | + "title": "Snowflake Config", |
| 7 | + "description": "Configuration for Snowflake", |
| 8 | + "properties": { |
| 9 | + "default_connection_name": { |
| 10 | + "title": "Default Connection", |
| 11 | + "description": "The default connection to use", |
| 12 | + "type": "string" |
| 13 | + }, |
| 14 | + "connections": { |
| 15 | + "type": "object", |
| 16 | + "additionalProperties": { |
| 17 | + "$ref": "#/definitions/SnowflakeConnection" |
| 18 | + }, |
| 19 | + "minProperties": 1 |
| 20 | + }, |
| 21 | + "cli": { |
| 22 | + "type": "object", |
| 23 | + "properties": { |
| 24 | + "logs": { |
| 25 | + "$ref": "#/definitions/Logs" |
| 26 | + }, |
| 27 | + "features": { |
| 28 | + "$ref": "#/definitions/Features" |
| 29 | + } |
| 30 | + }, |
| 31 | + "additionalProperties": false |
| 32 | + } |
| 33 | + }, |
| 34 | + "additionalProperties": false, |
| 35 | + "minProperties": 1, |
| 36 | + "x-tombi-table-keys-order": "schema", |
| 37 | + "definitions": { |
| 38 | + "Features": { |
| 39 | + "type": "object", |
| 40 | + "title": "Features", |
| 41 | + "description": "Configuration for features", |
| 42 | + "properties": { |
| 43 | + "enable_separate_authentication_policy_id": { |
| 44 | + "type": "boolean", |
| 45 | + "title": "Enable Separate Authentication Policy ID", |
| 46 | + "description": "When this access is enabled, specified users can access Snowflake CLI but not the other Snowflake drivers.", |
| 47 | + "default": false |
| 48 | + } |
| 49 | + }, |
| 50 | + "additionalProperties": false, |
| 51 | + "x-tombi-table-keys-order": "schema" |
| 52 | + }, |
| 53 | + "Logs": { |
| 54 | + "type": "object", |
| 55 | + "title": "Logs", |
| 56 | + "description": "Configuration for logging", |
| 57 | + "properties": { |
| 58 | + "save_logs": { |
| 59 | + "type": "boolean", |
| 60 | + "title": "Save Logs", |
| 61 | + "description": "Whether to save logs to a file", |
| 62 | + "default": true |
| 63 | + }, |
| 64 | + "level": { |
| 65 | + "title": "Level", |
| 66 | + "description": "The level of logs to output", |
| 67 | + "type": "string", |
| 68 | + "default": "info", |
| 69 | + "enum": ["debug", "info", "warning", "error"] |
| 70 | + }, |
| 71 | + "path": { |
| 72 | + "type": "string", |
| 73 | + "title": "Path", |
| 74 | + "description": "specifies the absolute path to save the log files. The format of the path varies based on your operating system. If not specified, the command creates a logs directory in the default config.toml file location." |
| 75 | + } |
| 76 | + }, |
| 77 | + "additionalProperties": false, |
| 78 | + "x-tombi-table-keys-order": "schema" |
| 79 | + }, |
| 80 | + "SnowflakeConnection": { |
| 81 | + "type": "object", |
| 82 | + "title": "Snowflake Connection Configuration", |
| 83 | + "description": "Configuration settings for connecting to a Snowflake database instance", |
| 84 | + "properties": { |
| 85 | + "account": { |
| 86 | + "type": "string", |
| 87 | + "title": "Account Identifier", |
| 88 | + "description": "The Snowflake account identifier", |
| 89 | + "examples": ["myaccount"] |
| 90 | + }, |
| 91 | + "user": { |
| 92 | + "type": "string", |
| 93 | + "title": "Username", |
| 94 | + "description": "The username to authenticate with Snowflake", |
| 95 | + "examples": ["jondoe"] |
| 96 | + }, |
| 97 | + "password": { |
| 98 | + "type": "string", |
| 99 | + "title": "Password", |
| 100 | + "description": "The password for authentication with Snowflake", |
| 101 | + "examples": ["******"] |
| 102 | + }, |
| 103 | + "warehouse": { |
| 104 | + "type": "string", |
| 105 | + "title": "Warehouse", |
| 106 | + "description": "The name of the Snowflake warehouse to use for queries", |
| 107 | + "examples": ["my-wh"] |
| 108 | + }, |
| 109 | + "database": { |
| 110 | + "type": "string", |
| 111 | + "title": "Database", |
| 112 | + "description": "The name of the Snowflake database to connect to", |
| 113 | + "examples": ["my_db"] |
| 114 | + }, |
| 115 | + "schema": { |
| 116 | + "type": "string", |
| 117 | + "title": "Schema", |
| 118 | + "description": "The name of the database schema to use", |
| 119 | + "examples": ["my_schema"] |
| 120 | + }, |
| 121 | + "role": { |
| 122 | + "type": "string", |
| 123 | + "title": "Role", |
| 124 | + "description": "The name of the Snowflake role to use" |
| 125 | + }, |
| 126 | + "authenticator": { |
| 127 | + "type": "string", |
| 128 | + "title": "Authenticator", |
| 129 | + "description": "The name of the Snowflake authenticator to use", |
| 130 | + "enum": [ |
| 131 | + "externalbrowser", |
| 132 | + "id_token", |
| 133 | + "no_auth", |
| 134 | + "oauth", |
| 135 | + "programmatic_access_token", |
| 136 | + "snowflake_jwt", |
| 137 | + "snowflake", |
| 138 | + "username_password_mfa" |
| 139 | + ], |
| 140 | + "default": "snowflake" |
| 141 | + }, |
| 142 | + "private_key_file": { |
| 143 | + "type": "string", |
| 144 | + "title": "Private Key File for JWT Authentication", |
| 145 | + "description": "The path to the private key file for the Snowflake JWT Authentication" |
| 146 | + }, |
| 147 | + "private_key_file_pwd": { |
| 148 | + "type": "string", |
| 149 | + "title": "Private Key File Password for JWT Authentication", |
| 150 | + "description": "The password for the private key file for the Snowflake JWT Authentication" |
| 151 | + }, |
| 152 | + "private_key_path": { |
| 153 | + "type": "string", |
| 154 | + "title": "Private Key Path for Key Pair Authentication", |
| 155 | + "description": "The path to the private key file for the Snowflake Key Pair Authentication" |
| 156 | + }, |
| 157 | + "private_key_passphrase": { |
| 158 | + "type": "string", |
| 159 | + "title": "Private Key Passphrase for Key Pair Authentication", |
| 160 | + "description": "The passphrase for the private key file for the Snowflake Key Pair Authentication" |
| 161 | + }, |
| 162 | + "token_file_path": { |
| 163 | + "type": "string", |
| 164 | + "title": "Token File Path for OAuth", |
| 165 | + "description": "The path to the token file for the Snowflake OAuth Authentication" |
| 166 | + } |
| 167 | + }, |
| 168 | + "additionalProperties": true, |
| 169 | + "x-tombi-table-keys-order": "schema" |
| 170 | + } |
| 171 | + } |
| 172 | +} |
0 commit comments