@grafana/plugin-ui 0.14.1-dsconfig.b962e11 → 0.14.1-dsconfig.ced809d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/dist/cjs/index.cjs +1073 -317
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/cjs/index.d.cts +135 -5
  4. package/dist/cjs/schemas.cjs +14853 -0
  5. package/dist/cjs/schemas.cjs.map +1 -0
  6. package/dist/cjs/schemas.d.cts +373 -0
  7. package/dist/cjs/test-utils.d.cts +23 -23
  8. package/dist/esm/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js +2 -2
  9. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/DatasourceConfigWizard.js +14 -9
  10. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/DatasourceConfigWizard.js.map +1 -1
  11. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/DatasourceErrorBoundary.js +27 -0
  12. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/DatasourceErrorBoundary.js.map +1 -0
  13. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/SchemaField.js +16 -5
  14. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/SchemaField.js.map +1 -1
  15. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/SidebarNav.js.map +1 -1
  16. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/TabLayout.js +9 -4
  17. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/TabLayout.js.map +1 -1
  18. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/fieldUtils.js +61 -11
  19. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/fieldUtils.js.map +1 -1
  20. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/{useDatasourceConfigForm.js → hooks/useDatasourceConfigForm.js} +71 -29
  21. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/hooks/useDatasourceConfigForm.js.map +1 -0
  22. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/hooks/useHealthChecks.js +106 -0
  23. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/hooks/useHealthChecks.js.map +1 -0
  24. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/{AuthorizationHeaderField.js → inputs/AuthorizationHeaderField.js} +6 -8
  25. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/AuthorizationHeaderField.js.map +1 -0
  26. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/{ComplexFieldNote.js → inputs/ComplexFieldNote.js} +6 -4
  27. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/ComplexFieldNote.js.map +1 -0
  28. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/FileUploadField.js +106 -0
  29. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/FileUploadField.js.map +1 -0
  30. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/{IndexedPairEditor.js → inputs/IndexedPairEditor.js} +52 -52
  31. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/IndexedPairEditor.js.map +1 -0
  32. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/ObjectArrayEditor.js +190 -0
  33. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/ObjectArrayEditor.js.map +1 -0
  34. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/{PdcFieldNote.js → inputs/PdcFieldNote.js} +5 -8
  35. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/PdcFieldNote.js.map +1 -0
  36. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/{SecureFieldInput.js → inputs/SecureFieldInput.js} +8 -10
  37. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/SecureFieldInput.js.map +1 -0
  38. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/StringArrayInput.js +80 -0
  39. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/StringArrayInput.js.map +1 -0
  40. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/renderFieldInput.js +76 -41
  41. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/renderFieldInput.js.map +1 -1
  42. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/resolvePluginName.js +30 -0
  43. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/resolvePluginName.js.map +1 -0
  44. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/tabStyles.js +4 -4
  45. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/tabStyles.js.map +1 -1
  46. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/wizardStyles.js +3 -3
  47. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/wizardStyles.js.map +1 -1
  48. package/dist/esm/components/DataLinks/DataLink.js +2 -2
  49. package/dist/esm/components/DataLinks/DataLinks.js +2 -2
  50. package/dist/esm/components/DataSourcePicker/DataSourcePicker.js +7 -7
  51. package/dist/esm/components/DatePicker/styles.js +2 -2
  52. package/dist/esm/components/DatePickerWithInput/styles.js +2 -2
  53. package/dist/esm/components/QueryEditor/EditorField.js +2 -2
  54. package/dist/esm/components/QueryEditor/EditorHeader.js +2 -2
  55. package/dist/esm/components/QueryEditor/EditorRow.js +2 -2
  56. package/dist/esm/components/QueryEditor/EditorSwitch.js +2 -2
  57. package/dist/esm/components/QueryEditor/InputGroup.js +2 -2
  58. package/dist/esm/components/QueryEditor/Space.js +2 -2
  59. package/dist/esm/components/QueryEditor/query-editor-raw/RawEditor.js +2 -2
  60. package/dist/esm/components/QueryEditor/visual-query-builder/EditorField.js +2 -2
  61. package/dist/esm/components/QueryEditor/visual-query-builder/EditorRow.js +2 -2
  62. package/dist/esm/components/QueryEditor/visual-query-builder/Preview.js +2 -2
  63. package/dist/esm/components/QueryEditor/visual-query-builder/SelectRow.js +2 -2
  64. package/dist/esm/datasource/SqlDatasource.js +10 -10
  65. package/dist/esm/datasource/schema/cel.js +42 -0
  66. package/dist/esm/datasource/schema/cel.js.map +1 -0
  67. package/dist/esm/datasource/schema/config.js +37 -14
  68. package/dist/esm/datasource/schema/config.js.map +1 -1
  69. package/dist/esm/datasource/schema/datasource.js +129 -3
  70. package/dist/esm/datasource/schema/datasource.js.map +1 -1
  71. package/dist/esm/datasource/schema/datasources/alertmanager.schema.json.js +77 -0
  72. package/dist/esm/datasource/schema/datasources/alertmanager.schema.json.js.map +1 -0
  73. package/dist/esm/datasource/schema/datasources/cloudwatch.schema.json.js +384 -0
  74. package/dist/esm/datasource/schema/datasources/cloudwatch.schema.json.js.map +1 -0
  75. package/dist/esm/datasource/schema/datasources/elasticsearch.schema.json.js +287 -0
  76. package/dist/esm/datasource/schema/datasources/elasticsearch.schema.json.js.map +1 -0
  77. package/dist/esm/datasource/schema/datasources/grafana-amazonprometheus-datasource.schema.json.js +166 -0
  78. package/dist/esm/datasource/schema/datasources/grafana-amazonprometheus-datasource.schema.json.js.map +1 -0
  79. package/dist/esm/datasource/schema/datasources/grafana-appdynamics-datasource.schema.json.js +145 -0
  80. package/dist/esm/datasource/schema/datasources/grafana-appdynamics-datasource.schema.json.js.map +1 -0
  81. package/dist/esm/datasource/schema/datasources/grafana-astradb-datasource.schema.json.js +123 -0
  82. package/dist/esm/datasource/schema/datasources/grafana-astradb-datasource.schema.json.js.map +1 -0
  83. package/dist/esm/datasource/schema/datasources/grafana-athena-datasource.schema.json.js +158 -0
  84. package/dist/esm/datasource/schema/datasources/grafana-athena-datasource.schema.json.js.map +1 -0
  85. package/dist/esm/datasource/schema/datasources/grafana-azure-data-explorer-datasource.schema.json.js +204 -0
  86. package/dist/esm/datasource/schema/datasources/grafana-azure-data-explorer-datasource.schema.json.js.map +1 -0
  87. package/dist/esm/datasource/schema/datasources/grafana-azure-monitor-datasource.schema.json.js +294 -0
  88. package/dist/esm/datasource/schema/datasources/grafana-azure-monitor-datasource.schema.json.js.map +1 -0
  89. package/dist/esm/datasource/schema/datasources/grafana-azuredevops-datasource.schema.json.js +101 -0
  90. package/dist/esm/datasource/schema/datasources/grafana-azuredevops-datasource.schema.json.js.map +1 -0
  91. package/dist/esm/datasource/schema/datasources/grafana-azureprometheus-datasource.schema.json.js +125 -0
  92. package/dist/esm/datasource/schema/datasources/grafana-azureprometheus-datasource.schema.json.js.map +1 -0
  93. package/dist/esm/datasource/schema/datasources/grafana-bigquery-datasource.schema.json.js +508 -0
  94. package/dist/esm/datasource/schema/datasources/grafana-bigquery-datasource.schema.json.js.map +1 -0
  95. package/dist/esm/datasource/schema/datasources/grafana-clickhouse-datasource.schema.json.js +1400 -0
  96. package/dist/esm/datasource/schema/datasources/grafana-clickhouse-datasource.schema.json.js.map +1 -0
  97. package/dist/esm/datasource/schema/datasources/grafana-cockroachdb-datasource.schema.json.js +302 -0
  98. package/dist/esm/datasource/schema/datasources/grafana-cockroachdb-datasource.schema.json.js.map +1 -0
  99. package/dist/esm/datasource/schema/datasources/grafana-databricks-datasource.schema.json.js +291 -0
  100. package/dist/esm/datasource/schema/datasources/grafana-databricks-datasource.schema.json.js.map +1 -0
  101. package/dist/esm/datasource/schema/datasources/grafana-datadog-datasource.schema.json.js +155 -0
  102. package/dist/esm/datasource/schema/datasources/grafana-datadog-datasource.schema.json.js.map +1 -0
  103. package/dist/esm/datasource/schema/datasources/grafana-dynatrace-datasource.schema.json.js +179 -0
  104. package/dist/esm/datasource/schema/datasources/grafana-dynatrace-datasource.schema.json.js.map +1 -0
  105. package/dist/esm/datasource/schema/datasources/grafana-falconlogscale-datasource.schema.json.js +134 -0
  106. package/dist/esm/datasource/schema/datasources/grafana-falconlogscale-datasource.schema.json.js.map +1 -0
  107. package/dist/esm/datasource/schema/datasources/grafana-github-datasource.schema.json.js +156 -0
  108. package/dist/esm/datasource/schema/datasources/grafana-github-datasource.schema.json.js.map +1 -0
  109. package/dist/esm/datasource/schema/datasources/grafana-gitlab-datasource.schema.json.js +84 -0
  110. package/dist/esm/datasource/schema/datasources/grafana-gitlab-datasource.schema.json.js.map +1 -0
  111. package/dist/esm/datasource/schema/datasources/grafana-googlesheets-datasource.schema.json.js +231 -0
  112. package/dist/esm/datasource/schema/datasources/grafana-googlesheets-datasource.schema.json.js.map +1 -0
  113. package/dist/esm/datasource/schema/datasources/grafana-honeycomb-datasource.schema.json.js +87 -0
  114. package/dist/esm/datasource/schema/datasources/grafana-honeycomb-datasource.schema.json.js.map +1 -0
  115. package/dist/esm/datasource/schema/datasources/grafana-iot-sitewise-datasource.schema.json.js +159 -0
  116. package/dist/esm/datasource/schema/datasources/grafana-iot-sitewise-datasource.schema.json.js.map +1 -0
  117. package/dist/esm/datasource/schema/datasources/grafana-jira-datasource.schema.json.js +188 -0
  118. package/dist/esm/datasource/schema/datasources/grafana-jira-datasource.schema.json.js.map +1 -0
  119. package/dist/esm/datasource/schema/datasources/grafana-looker-datasource.schema.json.js +82 -0
  120. package/dist/esm/datasource/schema/datasources/grafana-looker-datasource.schema.json.js.map +1 -0
  121. package/dist/esm/datasource/schema/datasources/grafana-mongodb-datasource.schema.json.js +278 -0
  122. package/dist/esm/datasource/schema/datasources/grafana-mongodb-datasource.schema.json.js.map +1 -0
  123. package/dist/esm/datasource/schema/datasources/grafana-mqtt-datasource.schema.json.js +168 -0
  124. package/dist/esm/datasource/schema/datasources/grafana-mqtt-datasource.schema.json.js.map +1 -0
  125. package/dist/esm/datasource/schema/datasources/grafana-newrelic-datasource.schema.json.js +129 -0
  126. package/dist/esm/datasource/schema/datasources/grafana-newrelic-datasource.schema.json.js.map +1 -0
  127. package/dist/esm/datasource/schema/datasources/grafana-odbc-datasource.schema.json.js +56 -0
  128. package/dist/esm/datasource/schema/datasources/grafana-odbc-datasource.schema.json.js.map +1 -0
  129. package/dist/esm/datasource/schema/datasources/grafana-opensearch-datasource.schema.json.js +212 -0
  130. package/dist/esm/datasource/schema/datasources/grafana-opensearch-datasource.schema.json.js.map +1 -0
  131. package/dist/esm/datasource/schema/datasources/grafana-oracle-datasource.schema.json.js +186 -0
  132. package/dist/esm/datasource/schema/datasources/grafana-oracle-datasource.schema.json.js.map +1 -0
  133. package/dist/esm/datasource/schema/datasources/grafana-pagerduty-datasource.schema.json.js +85 -0
  134. package/dist/esm/datasource/schema/datasources/grafana-pagerduty-datasource.schema.json.js.map +1 -0
  135. package/dist/esm/datasource/schema/datasources/grafana-postgresql-datasource.schema.json.js +411 -0
  136. package/dist/esm/datasource/schema/datasources/grafana-postgresql-datasource.schema.json.js.map +1 -0
  137. package/dist/esm/datasource/schema/datasources/grafana-pyroscope-datasource.schema.json.js +41 -0
  138. package/dist/esm/datasource/schema/datasources/grafana-pyroscope-datasource.schema.json.js.map +1 -0
  139. package/dist/esm/datasource/schema/datasources/grafana-redshift-datasource.schema.json.js +201 -0
  140. package/dist/esm/datasource/schema/datasources/grafana-redshift-datasource.schema.json.js.map +1 -0
  141. package/dist/esm/datasource/schema/datasources/grafana-salesforce-datasource.schema.json.js +201 -0
  142. package/dist/esm/datasource/schema/datasources/grafana-salesforce-datasource.schema.json.js.map +1 -0
  143. package/dist/esm/datasource/schema/datasources/grafana-saphana-datasource.schema.json.js +208 -0
  144. package/dist/esm/datasource/schema/datasources/grafana-saphana-datasource.schema.json.js.map +1 -0
  145. package/dist/esm/datasource/schema/datasources/grafana-sentry-datasource.schema.json.js +94 -0
  146. package/dist/esm/datasource/schema/datasources/grafana-sentry-datasource.schema.json.js.map +1 -0
  147. package/dist/esm/datasource/schema/datasources/grafana-servicenow-datasource.schema.json.js +179 -0
  148. package/dist/esm/datasource/schema/datasources/grafana-servicenow-datasource.schema.json.js.map +1 -0
  149. package/dist/esm/datasource/schema/datasources/grafana-snowflake-datasource.schema.json.js +304 -0
  150. package/dist/esm/datasource/schema/datasources/grafana-snowflake-datasource.schema.json.js.map +1 -0
  151. package/dist/esm/datasource/schema/datasources/grafana-splunk-datasource.schema.json.js +319 -0
  152. package/dist/esm/datasource/schema/datasources/grafana-splunk-datasource.schema.json.js.map +1 -0
  153. package/dist/esm/datasource/schema/datasources/grafana-splunkobservability-datasource.schema.json.js +90 -0
  154. package/dist/esm/datasource/schema/datasources/grafana-splunkobservability-datasource.schema.json.js.map +1 -0
  155. package/dist/esm/datasource/schema/datasources/grafana-strava-datasource.schema.json.js +74 -0
  156. package/dist/esm/datasource/schema/datasources/grafana-strava-datasource.schema.json.js.map +1 -0
  157. package/dist/esm/datasource/schema/datasources/grafana-sumologic-datasource.schema.json.js +102 -0
  158. package/dist/esm/datasource/schema/datasources/grafana-sumologic-datasource.schema.json.js.map +1 -0
  159. package/dist/esm/datasource/schema/datasources/grafana-surrealdb-datasource.schema.json.js +92 -0
  160. package/dist/esm/datasource/schema/datasources/grafana-surrealdb-datasource.schema.json.js.map +1 -0
  161. package/dist/esm/datasource/schema/datasources/grafana-timestream-datasource.schema.json.js +145 -0
  162. package/dist/esm/datasource/schema/datasources/grafana-timestream-datasource.schema.json.js.map +1 -0
  163. package/dist/esm/datasource/schema/datasources/grafana-wavefront-datasource.schema.json.js +80 -0
  164. package/dist/esm/datasource/schema/datasources/grafana-wavefront-datasource.schema.json.js.map +1 -0
  165. package/dist/esm/datasource/schema/datasources/grafana-x-ray-datasource.schema.json.js +112 -0
  166. package/dist/esm/datasource/schema/datasources/grafana-x-ray-datasource.schema.json.js.map +1 -0
  167. package/dist/esm/datasource/schema/datasources/grafana-yugabyte-datasource.schema.json.js +114 -0
  168. package/dist/esm/datasource/schema/datasources/grafana-yugabyte-datasource.schema.json.js.map +1 -0
  169. package/dist/esm/datasource/schema/datasources/graphite.schema.json.js +104 -0
  170. package/dist/esm/datasource/schema/datasources/graphite.schema.json.js.map +1 -0
  171. package/dist/esm/datasource/schema/datasources/influxdb.schema.json.js +717 -0
  172. package/dist/esm/datasource/schema/datasources/influxdb.schema.json.js.map +1 -0
  173. package/dist/esm/datasource/schema/datasources/jaeger.schema.json.js +59 -0
  174. package/dist/esm/datasource/schema/datasources/jaeger.schema.json.js.map +1 -0
  175. package/dist/esm/datasource/schema/datasources/loki.schema.json.js +545 -0
  176. package/dist/esm/datasource/schema/datasources/loki.schema.json.js.map +1 -0
  177. package/dist/esm/datasource/schema/datasources/marcusolsson-csv-datasource.schema.json.js +45 -0
  178. package/dist/esm/datasource/schema/datasources/marcusolsson-csv-datasource.schema.json.js.map +1 -0
  179. package/dist/esm/datasource/schema/datasources/marcusolsson-json-datasource.schema.json.js +36 -0
  180. package/dist/esm/datasource/schema/datasources/marcusolsson-json-datasource.schema.json.js.map +1 -0
  181. package/dist/esm/datasource/schema/datasources/mssql.schema.json.js +292 -0
  182. package/dist/esm/datasource/schema/datasources/mssql.schema.json.js.map +1 -0
  183. package/dist/esm/datasource/schema/datasources/mysql.schema.json.js +304 -0
  184. package/dist/esm/datasource/schema/datasources/mysql.schema.json.js.map +1 -0
  185. package/dist/esm/datasource/schema/datasources/opentsdb.schema.json.js +113 -0
  186. package/dist/esm/datasource/schema/datasources/opentsdb.schema.json.js.map +1 -0
  187. package/dist/esm/datasource/schema/datasources/prometheus.schema.json.js +783 -0
  188. package/dist/esm/datasource/schema/datasources/prometheus.schema.json.js.map +1 -0
  189. package/dist/esm/datasource/schema/datasources/stackdriver.schema.json.js +224 -0
  190. package/dist/esm/datasource/schema/datasources/stackdriver.schema.json.js.map +1 -0
  191. package/dist/esm/datasource/schema/datasources/tempo.schema.json.js +664 -0
  192. package/dist/esm/datasource/schema/datasources/tempo.schema.json.js.map +1 -0
  193. package/dist/esm/datasource/schema/datasources/yesoreyeram-infinity-datasource.schema.json.js +1073 -0
  194. package/dist/esm/datasource/schema/datasources/yesoreyeram-infinity-datasource.schema.json.js.map +1 -0
  195. package/dist/esm/datasource/schema/datasources/zipkin.schema.json.js +40 -0
  196. package/dist/esm/datasource/schema/datasources/zipkin.schema.json.js.map +1 -0
  197. package/dist/esm/datasource/schema/schemaRegistry.js +139 -0
  198. package/dist/esm/datasource/schema/schemaRegistry.js.map +1 -0
  199. package/dist/esm/index.d.ts +135 -5
  200. package/dist/esm/index.js +6 -2
  201. package/dist/esm/index.js.map +1 -1
  202. package/dist/esm/schemas.d.ts +373 -0
  203. package/dist/esm/schemas.js +2 -0
  204. package/dist/esm/schemas.js.map +1 -0
  205. package/dist/esm/test-utils.d.ts +23 -23
  206. package/package.json +23 -6
  207. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/AuthorizationHeaderField.js.map +0 -1
  208. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/ComplexFieldNote.js.map +0 -1
  209. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/IndexedPairEditor.js.map +0 -1
  210. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/PdcFieldNote.js.map +0 -1
  211. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/SecureFieldInput.js.map +0 -1
  212. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/StringArrayInput.js +0 -84
  213. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/StringArrayInput.js.map +0 -1
  214. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/useDatasourceConfigForm.js.map +0 -1
@@ -0,0 +1,1073 @@
1
+ var $schema$1 = "../schema.json";
2
+ var schemaVersion$1 = "v1";
3
+ var pluginType$1 = "yesoreyeram-infinity-datasource";
4
+ var pluginName$1 = "Infinity";
5
+ var docURL$1 = "https://grafana.com/grafana/plugins/yesoreyeram-infinity-datasource/";
6
+ var fields$1 = [
7
+ {
8
+ id: "root.url",
9
+ key: "url",
10
+ label: "Base URL",
11
+ description: "Base URL of the query. Leave blank if you want to handle it in the query editor.",
12
+ valueType: "string",
13
+ semanticType: "url",
14
+ target: "root",
15
+ tags: [
16
+ "pinned"
17
+ ],
18
+ ui: {
19
+ component: "input",
20
+ placeholder: "Leave blank and you can specify full URL in the query."
21
+ }
22
+ },
23
+ {
24
+ id: "jsonData.auth_method",
25
+ key: "auth_method",
26
+ label: "Authentication method",
27
+ description: "Authentication method for requests.",
28
+ valueType: "string",
29
+ target: "jsonData",
30
+ defaultValue: "none",
31
+ validations: [
32
+ {
33
+ type: "allowedValues",
34
+ values: [
35
+ "none",
36
+ "basicAuth",
37
+ "apiKey",
38
+ "bearerToken",
39
+ "oauthPassThru",
40
+ "digestAuth",
41
+ "oauth2",
42
+ "aws",
43
+ "azureBlob"
44
+ ]
45
+ }
46
+ ],
47
+ ui: {
48
+ component: "select",
49
+ options: [
50
+ {
51
+ label: "No Auth",
52
+ value: "none"
53
+ },
54
+ {
55
+ label: "Basic Authentication",
56
+ value: "basicAuth"
57
+ },
58
+ {
59
+ label: "API Key",
60
+ value: "apiKey"
61
+ },
62
+ {
63
+ label: "Bearer Token",
64
+ value: "bearerToken"
65
+ },
66
+ {
67
+ label: "Forward OAuth",
68
+ value: "oauthPassThru"
69
+ },
70
+ {
71
+ label: "Digest Auth",
72
+ value: "digestAuth"
73
+ },
74
+ {
75
+ label: "OAuth2",
76
+ value: "oauth2"
77
+ },
78
+ {
79
+ label: "AWS",
80
+ value: "aws"
81
+ },
82
+ {
83
+ label: "Azure Blob",
84
+ value: "azureBlob"
85
+ }
86
+ ]
87
+ },
88
+ effects: [
89
+ {
90
+ when: "value == 'oauthPassThru'",
91
+ set: {
92
+ "jsonData.oauthPassThru": true
93
+ }
94
+ },
95
+ {
96
+ when: "value != 'oauthPassThru'",
97
+ set: {
98
+ "jsonData.oauthPassThru": false
99
+ }
100
+ },
101
+ {
102
+ when: "value == 'basicAuth'",
103
+ set: {
104
+ "root.basicAuth": true
105
+ }
106
+ },
107
+ {
108
+ when: "value != 'basicAuth'",
109
+ set: {
110
+ "root.basicAuth": false
111
+ }
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ id: "root.basicAuth",
117
+ key: "basicAuth",
118
+ label: "Basic Auth",
119
+ valueType: "boolean",
120
+ target: "root",
121
+ defaultValue: false,
122
+ tags: [
123
+ "managed-by:jsonData.auth_method"
124
+ ],
125
+ kind: "virtual"
126
+ },
127
+ {
128
+ id: "root.basicAuthUser",
129
+ key: "basicAuthUser",
130
+ label: "User Name",
131
+ description: "Username for authentication.",
132
+ valueType: "string",
133
+ target: "root",
134
+ dependsOn: "jsonData.auth_method == 'basicAuth'",
135
+ requiredWhen: "jsonData.auth_method == 'basicAuth'",
136
+ ui: {
137
+ component: "input",
138
+ placeholder: "username"
139
+ }
140
+ },
141
+ {
142
+ id: "secureJsonData.basicAuthPassword",
143
+ key: "basicAuthPassword",
144
+ label: "Password",
145
+ description: "Password for authentication.",
146
+ valueType: "string",
147
+ semanticType: "password",
148
+ target: "secureJsonData",
149
+ dependsOn: "jsonData.auth_method == 'basicAuth'",
150
+ requiredWhen: "jsonData.auth_method == 'basicAuth'"
151
+ },
152
+ {
153
+ id: "root.digestAuthUser",
154
+ key: "basicAuthUser",
155
+ label: "User Name",
156
+ description: "Username for digest authentication.",
157
+ valueType: "string",
158
+ target: "root",
159
+ dependsOn: "jsonData.auth_method == 'digestAuth'",
160
+ requiredWhen: "jsonData.auth_method == 'digestAuth'",
161
+ ui: {
162
+ component: "input",
163
+ placeholder: "username"
164
+ }
165
+ },
166
+ {
167
+ id: "secureJsonData.basicAuthPasswordDigest",
168
+ key: "basicAuthPassword",
169
+ label: "Password",
170
+ description: "Password for digest authentication.",
171
+ valueType: "string",
172
+ semanticType: "password",
173
+ target: "secureJsonData",
174
+ dependsOn: "jsonData.auth_method == 'digestAuth'",
175
+ requiredWhen: "jsonData.auth_method == 'digestAuth'"
176
+ },
177
+ {
178
+ id: "jsonData.apiKeyKey",
179
+ key: "apiKeyKey",
180
+ label: "Key",
181
+ description: "API key name.",
182
+ valueType: "string",
183
+ target: "jsonData",
184
+ dependsOn: "jsonData.auth_method == 'apiKey'",
185
+ requiredWhen: "jsonData.auth_method == 'apiKey'",
186
+ ui: {
187
+ component: "input",
188
+ placeholder: "api key key"
189
+ }
190
+ },
191
+ {
192
+ id: "secureJsonData.apiKeyValue",
193
+ key: "apiKeyValue",
194
+ label: "Value",
195
+ description: "API key value.",
196
+ valueType: "string",
197
+ semanticType: "token",
198
+ target: "secureJsonData",
199
+ dependsOn: "jsonData.auth_method == 'apiKey'",
200
+ requiredWhen: "jsonData.auth_method == 'apiKey'"
201
+ },
202
+ {
203
+ id: "jsonData.apiKeyType",
204
+ key: "apiKeyType",
205
+ label: "Add to",
206
+ description: "Add api key to header or query params.",
207
+ valueType: "string",
208
+ target: "jsonData",
209
+ defaultValue: "header",
210
+ dependsOn: "jsonData.auth_method == 'apiKey'",
211
+ validations: [
212
+ {
213
+ type: "allowedValues",
214
+ values: [
215
+ "header",
216
+ "query"
217
+ ]
218
+ }
219
+ ],
220
+ ui: {
221
+ component: "radio",
222
+ options: [
223
+ {
224
+ label: "Header",
225
+ value: "header"
226
+ },
227
+ {
228
+ label: "Query Param",
229
+ value: "query"
230
+ }
231
+ ]
232
+ }
233
+ },
234
+ {
235
+ id: "secureJsonData.bearerToken",
236
+ key: "bearerToken",
237
+ label: "Bearer Token",
238
+ description: "Bearer token for authentication.",
239
+ valueType: "string",
240
+ semanticType: "token",
241
+ target: "secureJsonData",
242
+ dependsOn: "jsonData.auth_method == 'bearerToken'",
243
+ requiredWhen: "jsonData.auth_method == 'bearerToken'"
244
+ },
245
+ {
246
+ id: "jsonData.oauth2.oauth2_type",
247
+ key: "oauth2_type",
248
+ label: "Grant type",
249
+ description: "OAuth2 grant type.",
250
+ valueType: "string",
251
+ target: "jsonData",
252
+ section: "oauth2",
253
+ defaultValue: "client_credentials",
254
+ dependsOn: "jsonData.auth_method == 'oauth2'",
255
+ validations: [
256
+ {
257
+ type: "allowedValues",
258
+ values: [
259
+ "client_credentials",
260
+ "jwt"
261
+ ]
262
+ }
263
+ ],
264
+ ui: {
265
+ component: "radio",
266
+ options: [
267
+ {
268
+ label: "Client Credentials",
269
+ value: "client_credentials"
270
+ },
271
+ {
272
+ label: "JWT",
273
+ value: "jwt"
274
+ }
275
+ ]
276
+ }
277
+ },
278
+ {
279
+ id: "jsonData.oauth2.authStyle",
280
+ key: "authStyle",
281
+ label: "Auth Style",
282
+ description: "AuthStyleAutoDetect means to auto-detect which authentication style the provider wants. AuthStyleInParams sends the client_id and client_secret in the POST body. AuthStyleInHeader sends them using HTTP Basic Authorization.",
283
+ valueType: "number",
284
+ target: "jsonData",
285
+ section: "oauth2",
286
+ defaultValue: 0,
287
+ dependsOn: "jsonData.oauth2.oauth2_type == 'client_credentials'",
288
+ ui: {
289
+ component: "radio",
290
+ options: [
291
+ {
292
+ label: "Auto",
293
+ value: "0"
294
+ },
295
+ {
296
+ label: "In Params",
297
+ value: "1"
298
+ },
299
+ {
300
+ label: "In Header",
301
+ value: "2"
302
+ }
303
+ ]
304
+ }
305
+ },
306
+ {
307
+ id: "jsonData.oauth2.client_id",
308
+ key: "client_id",
309
+ label: "Client ID",
310
+ description: "OAuth2 Client ID.",
311
+ valueType: "string",
312
+ target: "jsonData",
313
+ section: "oauth2",
314
+ dependsOn: "jsonData.oauth2.oauth2_type == 'client_credentials'",
315
+ requiredWhen: "jsonData.oauth2.oauth2_type == 'client_credentials'",
316
+ ui: {
317
+ component: "input",
318
+ placeholder: "Client ID"
319
+ }
320
+ },
321
+ {
322
+ id: "secureJsonData.oauth2ClientSecret",
323
+ key: "oauth2ClientSecret",
324
+ label: "Client Secret",
325
+ description: "OAuth2 client secret.",
326
+ valueType: "string",
327
+ semanticType: "token",
328
+ target: "secureJsonData",
329
+ dependsOn: "jsonData.oauth2.oauth2_type == 'client_credentials'",
330
+ requiredWhen: "jsonData.oauth2.oauth2_type == 'client_credentials'"
331
+ },
332
+ {
333
+ id: "jsonData.oauth2.email",
334
+ key: "email",
335
+ label: "Email",
336
+ description: "OAuth client identifier used when communicating with the configured OAuth provider.",
337
+ valueType: "string",
338
+ target: "jsonData",
339
+ section: "oauth2",
340
+ dependsOn: "jsonData.oauth2.oauth2_type == 'jwt'",
341
+ requiredWhen: "jsonData.oauth2.oauth2_type == 'jwt'",
342
+ ui: {
343
+ component: "input",
344
+ placeholder: "email"
345
+ }
346
+ },
347
+ {
348
+ id: "jsonData.oauth2.private_key_id",
349
+ key: "private_key_id",
350
+ label: "Private Key ID",
351
+ description: "A hint indicating which key to use.",
352
+ valueType: "string",
353
+ target: "jsonData",
354
+ section: "oauth2",
355
+ dependsOn: "jsonData.oauth2.oauth2_type == 'jwt'",
356
+ ui: {
357
+ component: "input",
358
+ placeholder: "(optional) private key identifier"
359
+ }
360
+ },
361
+ {
362
+ id: "secureJsonData.oauth2JWTPrivateKey",
363
+ key: "oauth2JWTPrivateKey",
364
+ label: "Private Key",
365
+ description: "RSA private key or PEM file contents for OAuth2 JWT.",
366
+ valueType: "string",
367
+ semanticType: "token",
368
+ target: "secureJsonData",
369
+ dependsOn: "jsonData.oauth2.oauth2_type == 'jwt'",
370
+ requiredWhen: "jsonData.oauth2.oauth2_type == 'jwt'"
371
+ },
372
+ {
373
+ id: "jsonData.oauth2.token_url",
374
+ key: "token_url",
375
+ label: "Token URL",
376
+ description: "OAuth2 token endpoint URL.",
377
+ valueType: "string",
378
+ semanticType: "url",
379
+ target: "jsonData",
380
+ section: "oauth2",
381
+ dependsOn: "jsonData.auth_method == 'oauth2'",
382
+ requiredWhen: "jsonData.auth_method == 'oauth2'",
383
+ ui: {
384
+ component: "input",
385
+ placeholder: "Token URL"
386
+ }
387
+ },
388
+ {
389
+ id: "jsonData.oauth2.subject",
390
+ key: "subject",
391
+ label: "Subject",
392
+ description: "The user to impersonate.",
393
+ valueType: "string",
394
+ target: "jsonData",
395
+ section: "oauth2",
396
+ dependsOn: "jsonData.oauth2.oauth2_type == 'jwt'",
397
+ ui: {
398
+ component: "input",
399
+ placeholder: "(optional) Subject"
400
+ }
401
+ },
402
+ {
403
+ id: "jsonData.oauth2.scopes",
404
+ key: "scopes",
405
+ label: "Scopes",
406
+ description: "Comma-separated list of requested permission scopes.",
407
+ valueType: "array",
408
+ target: "jsonData",
409
+ section: "oauth2",
410
+ dependsOn: "jsonData.auth_method == 'oauth2'",
411
+ item: {
412
+ valueType: "string"
413
+ }
414
+ },
415
+ {
416
+ id: "jsonData.oauth2EndpointParams",
417
+ key: "oauth2EndpointParams",
418
+ label: "Endpoint Params",
419
+ description: "Additional parameters for requests to the token endpoint.",
420
+ valueType: "array",
421
+ target: "jsonData",
422
+ dependsOn: "jsonData.oauth2.oauth2_type == 'client_credentials'",
423
+ storage: {
424
+ type: "indexedPair",
425
+ key: {
426
+ target: "jsonData",
427
+ pattern: "oauth2EndPointParamsName{index}"
428
+ },
429
+ value: {
430
+ target: "secureJsonData",
431
+ pattern: "oauth2EndPointParamsValue{index}"
432
+ },
433
+ startIndex: 1
434
+ },
435
+ item: {
436
+ valueType: "string"
437
+ }
438
+ },
439
+ {
440
+ id: "jsonData.oauth2.authHeader",
441
+ key: "authHeader",
442
+ label: "Custom Token Header",
443
+ description: "Once the token is retrieved, it will be sent in subsequent requests with this header key. Defaults to Authorization.",
444
+ valueType: "string",
445
+ target: "jsonData",
446
+ section: "oauth2",
447
+ dependsOn: "jsonData.auth_method == 'oauth2'",
448
+ ui: {
449
+ component: "input",
450
+ placeholder: "Authorization"
451
+ }
452
+ },
453
+ {
454
+ id: "jsonData.oauth2.tokenTemplate",
455
+ key: "tokenTemplate",
456
+ label: "Custom Token Template",
457
+ description: "Token template allows you to customize the token value. String ${__oauth2.access_token} will be replaced with the actual access token.",
458
+ valueType: "string",
459
+ target: "jsonData",
460
+ section: "oauth2",
461
+ dependsOn: "jsonData.auth_method == 'oauth2'",
462
+ ui: {
463
+ component: "input",
464
+ placeholder: "Bearer ${__oauth2.access_token}"
465
+ }
466
+ },
467
+ {
468
+ id: "jsonData.oauth2TokenHeaders",
469
+ key: "oauth2TokenHeaders",
470
+ label: "Token Request Headers",
471
+ description: "Custom headers sent with token requests.",
472
+ valueType: "array",
473
+ target: "jsonData",
474
+ dependsOn: "jsonData.auth_method == 'oauth2'",
475
+ storage: {
476
+ type: "indexedPair",
477
+ key: {
478
+ target: "jsonData",
479
+ pattern: "oauth2TokenHeadersName{index}"
480
+ },
481
+ value: {
482
+ target: "secureJsonData",
483
+ pattern: "oauth2TokenHeadersValue{index}"
484
+ },
485
+ startIndex: 1
486
+ },
487
+ item: {
488
+ valueType: "string"
489
+ }
490
+ },
491
+ {
492
+ id: "jsonData.aws.region",
493
+ key: "region",
494
+ label: "Region",
495
+ description: "AWS region.",
496
+ valueType: "string",
497
+ target: "jsonData",
498
+ section: "aws",
499
+ dependsOn: "jsonData.auth_method == 'aws'",
500
+ ui: {
501
+ component: "input",
502
+ placeholder: "us-east-1"
503
+ }
504
+ },
505
+ {
506
+ id: "jsonData.aws.service",
507
+ key: "service",
508
+ label: "Service",
509
+ description: "AWS service name for signing requests.",
510
+ valueType: "string",
511
+ target: "jsonData",
512
+ section: "aws",
513
+ dependsOn: "jsonData.auth_method == 'aws'",
514
+ ui: {
515
+ component: "input",
516
+ placeholder: "aps"
517
+ }
518
+ },
519
+ {
520
+ id: "secureJsonData.awsAccessKey",
521
+ key: "awsAccessKey",
522
+ label: "Access Key",
523
+ description: "AWS access key.",
524
+ valueType: "string",
525
+ semanticType: "token",
526
+ target: "secureJsonData",
527
+ dependsOn: "jsonData.auth_method == 'aws'",
528
+ requiredWhen: "jsonData.auth_method == 'aws'"
529
+ },
530
+ {
531
+ id: "secureJsonData.awsSecretKey",
532
+ key: "awsSecretKey",
533
+ label: "Secret Key",
534
+ description: "AWS secret key.",
535
+ valueType: "string",
536
+ semanticType: "token",
537
+ target: "secureJsonData",
538
+ dependsOn: "jsonData.auth_method == 'aws'",
539
+ requiredWhen: "jsonData.auth_method == 'aws'"
540
+ },
541
+ {
542
+ id: "jsonData.azureBlobCloudType",
543
+ key: "azureBlobCloudType",
544
+ label: "Azure cloud",
545
+ description: "Azure cloud type.",
546
+ valueType: "string",
547
+ target: "jsonData",
548
+ defaultValue: "azureblob",
549
+ dependsOn: "jsonData.auth_method == 'azureBlob'",
550
+ validations: [
551
+ {
552
+ type: "allowedValues",
553
+ values: [
554
+ "azureblob",
555
+ "azureblobchina",
556
+ "azureblobgov"
557
+ ]
558
+ }
559
+ ],
560
+ ui: {
561
+ component: "select",
562
+ options: [
563
+ {
564
+ label: "Azure Global",
565
+ value: "azureblob"
566
+ },
567
+ {
568
+ label: "Azure China",
569
+ value: "azureblobchina"
570
+ },
571
+ {
572
+ label: "Azure Government",
573
+ value: "azureblobgov"
574
+ }
575
+ ]
576
+ }
577
+ },
578
+ {
579
+ id: "jsonData.azureBlobAccountName",
580
+ key: "azureBlobAccountName",
581
+ label: "Storage account name",
582
+ description: "Azure blob storage account name.",
583
+ valueType: "string",
584
+ target: "jsonData",
585
+ dependsOn: "jsonData.auth_method == 'azureBlob'",
586
+ requiredWhen: "jsonData.auth_method == 'azureBlob'",
587
+ ui: {
588
+ component: "input",
589
+ placeholder: "Azure blob storage account name"
590
+ }
591
+ },
592
+ {
593
+ id: "secureJsonData.azureBlobAccountKey",
594
+ key: "azureBlobAccountKey",
595
+ label: "Storage account key",
596
+ description: "Azure blob storage account key.",
597
+ valueType: "string",
598
+ semanticType: "token",
599
+ target: "secureJsonData",
600
+ dependsOn: "jsonData.auth_method == 'azureBlob'",
601
+ requiredWhen: "jsonData.auth_method == 'azureBlob'"
602
+ },
603
+ {
604
+ id: "jsonData.oauthPassThru",
605
+ key: "oauthPassThru",
606
+ label: "Forward OAuth Identity",
607
+ description: "Forward the user's OAuth token.",
608
+ valueType: "boolean",
609
+ target: "jsonData",
610
+ defaultValue: false,
611
+ tags: [
612
+ "managed-by:jsonData.auth_method"
613
+ ],
614
+ ui: {
615
+ component: "switch"
616
+ }
617
+ },
618
+ {
619
+ id: "jsonData.allowedHosts",
620
+ key: "allowedHosts",
621
+ label: "Allowed hosts",
622
+ description: "List of allowed hosts for outgoing requests. Leave empty to allow all.",
623
+ valueType: "array",
624
+ target: "jsonData",
625
+ tags: [
626
+ "pinned"
627
+ ],
628
+ item: {
629
+ valueType: "string"
630
+ }
631
+ },
632
+ {
633
+ id: "jsonData.httpHeaders",
634
+ key: "httpHeaders",
635
+ label: "Custom HTTP Headers",
636
+ description: "Custom HTTP headers for all requests.",
637
+ valueType: "array",
638
+ target: "jsonData",
639
+ storage: {
640
+ type: "indexedPair",
641
+ key: {
642
+ target: "jsonData",
643
+ pattern: "httpHeaderName{index}"
644
+ },
645
+ value: {
646
+ target: "secureJsonData",
647
+ pattern: "httpHeaderValue{index}"
648
+ },
649
+ startIndex: 1
650
+ },
651
+ item: {
652
+ valueType: "string"
653
+ }
654
+ },
655
+ {
656
+ id: "jsonData.secureQueryParams",
657
+ key: "secureQueryParams",
658
+ label: "URL Query Params",
659
+ description: "Secure URL query parameters for all requests.",
660
+ valueType: "array",
661
+ target: "jsonData",
662
+ storage: {
663
+ type: "indexedPair",
664
+ key: {
665
+ target: "jsonData",
666
+ pattern: "secureQueryName{index}"
667
+ },
668
+ value: {
669
+ target: "secureJsonData",
670
+ pattern: "secureQueryValue{index}"
671
+ },
672
+ startIndex: 1
673
+ },
674
+ item: {
675
+ valueType: "string"
676
+ }
677
+ },
678
+ {
679
+ id: "jsonData.ignoreStatusCodeCheck",
680
+ key: "ignoreStatusCodeCheck",
681
+ label: "Ignore status code check",
682
+ description: "When enabled, the datasource will process response body even for HTTP error status codes (4xx, 5xx). Useful for APIs that return data in error responses.",
683
+ valueType: "boolean",
684
+ target: "jsonData",
685
+ ui: {
686
+ component: "switch"
687
+ }
688
+ },
689
+ {
690
+ id: "jsonData.allowDangerousHTTPMethods",
691
+ key: "allowDangerousHTTPMethods",
692
+ label: "Allow dangerous HTTP methods",
693
+ description: "When enabled, allows HTTP methods like PUT, DELETE, PATCH in queries.",
694
+ valueType: "boolean",
695
+ target: "jsonData",
696
+ ui: {
697
+ component: "switch"
698
+ }
699
+ },
700
+ {
701
+ id: "jsonData.pathEncodedUrlsEnabled",
702
+ key: "pathEncodedUrlsEnabled",
703
+ label: "Path encoded URLs",
704
+ description: "Allow path-encoded URLs.",
705
+ valueType: "boolean",
706
+ target: "jsonData",
707
+ ui: {
708
+ component: "switch"
709
+ }
710
+ },
711
+ {
712
+ id: "jsonData.keepCookies",
713
+ key: "keepCookies",
714
+ label: "Allowed cookies",
715
+ description: "Cookies to forward to the data source.",
716
+ valueType: "array",
717
+ target: "jsonData",
718
+ item: {
719
+ valueType: "string"
720
+ }
721
+ },
722
+ {
723
+ id: "jsonData.timeoutInSeconds",
724
+ key: "timeoutInSeconds",
725
+ label: "Timeout in seconds",
726
+ description: "HTTP request timeout in seconds.",
727
+ valueType: "number",
728
+ target: "jsonData",
729
+ defaultValue: 60,
730
+ ui: {
731
+ component: "input",
732
+ placeholder: "timeout in seconds"
733
+ }
734
+ },
735
+ {
736
+ id: "jsonData.tlsSkipVerify",
737
+ key: "tlsSkipVerify",
738
+ label: "Skip TLS Verify",
739
+ description: "Skip TLS certificate verification.",
740
+ valueType: "boolean",
741
+ target: "jsonData",
742
+ ui: {
743
+ component: "switch"
744
+ }
745
+ },
746
+ {
747
+ id: "jsonData.tlsAuthWithCACert",
748
+ key: "tlsAuthWithCACert",
749
+ label: "With CA Cert",
750
+ description: "Needed for verifying self-signed TLS Certs.",
751
+ valueType: "boolean",
752
+ target: "jsonData",
753
+ ui: {
754
+ component: "switch"
755
+ }
756
+ },
757
+ {
758
+ id: "secureJsonData.tlsCACert",
759
+ key: "tlsCACert",
760
+ label: "CA Cert",
761
+ description: "PEM-encoded CA certificate.",
762
+ valueType: "string",
763
+ target: "secureJsonData",
764
+ dependsOn: "jsonData.tlsAuthWithCACert == true",
765
+ ui: {
766
+ component: "textarea",
767
+ rows: 7
768
+ }
769
+ },
770
+ {
771
+ id: "jsonData.tlsAuth",
772
+ key: "tlsAuth",
773
+ label: "TLS Client Auth",
774
+ description: "Enable TLS client certificate authentication.",
775
+ valueType: "boolean",
776
+ target: "jsonData",
777
+ ui: {
778
+ component: "switch"
779
+ }
780
+ },
781
+ {
782
+ id: "jsonData.serverName",
783
+ key: "serverName",
784
+ label: "Server Name",
785
+ description: "Server name for TLS certificate verification.",
786
+ valueType: "string",
787
+ semanticType: "hostname",
788
+ target: "jsonData",
789
+ dependsOn: "jsonData.tlsAuth == true",
790
+ ui: {
791
+ component: "input",
792
+ placeholder: "domain.example.com"
793
+ }
794
+ },
795
+ {
796
+ id: "secureJsonData.tlsClientCert",
797
+ key: "tlsClientCert",
798
+ label: "Client Cert",
799
+ description: "PEM-encoded client certificate.",
800
+ valueType: "string",
801
+ target: "secureJsonData",
802
+ dependsOn: "jsonData.tlsAuth == true",
803
+ ui: {
804
+ component: "textarea",
805
+ rows: 7
806
+ }
807
+ },
808
+ {
809
+ id: "secureJsonData.tlsClientKey",
810
+ key: "tlsClientKey",
811
+ label: "Client Key",
812
+ description: "PEM-encoded client private key.",
813
+ valueType: "string",
814
+ semanticType: "token",
815
+ target: "secureJsonData",
816
+ dependsOn: "jsonData.tlsAuth == true",
817
+ ui: {
818
+ component: "textarea",
819
+ rows: 7
820
+ }
821
+ },
822
+ {
823
+ id: "jsonData.proxy_type",
824
+ key: "proxy_type",
825
+ label: "Proxy",
826
+ description: "Proxy type for outgoing requests.",
827
+ valueType: "string",
828
+ target: "jsonData",
829
+ defaultValue: "env",
830
+ validations: [
831
+ {
832
+ type: "allowedValues",
833
+ values: [
834
+ "env",
835
+ "url",
836
+ "none"
837
+ ]
838
+ }
839
+ ],
840
+ ui: {
841
+ component: "radio",
842
+ options: [
843
+ {
844
+ label: "Environment",
845
+ value: "env"
846
+ },
847
+ {
848
+ label: "Custom URL",
849
+ value: "url"
850
+ },
851
+ {
852
+ label: "None",
853
+ value: "none"
854
+ }
855
+ ]
856
+ }
857
+ },
858
+ {
859
+ id: "jsonData.proxy_url",
860
+ key: "proxy_url",
861
+ label: "Proxy URL",
862
+ description: "Custom proxy URL.",
863
+ valueType: "string",
864
+ semanticType: "url",
865
+ target: "jsonData",
866
+ dependsOn: "jsonData.proxy_type == 'url'",
867
+ ui: {
868
+ component: "input",
869
+ placeholder: "https://proxy.example.com:8080"
870
+ }
871
+ },
872
+ {
873
+ id: "jsonData.proxy_username",
874
+ key: "proxy_username",
875
+ label: "Proxy User Name",
876
+ description: "Optional proxy username.",
877
+ valueType: "string",
878
+ target: "jsonData",
879
+ dependsOn: "jsonData.proxy_type == 'url'",
880
+ ui: {
881
+ component: "input",
882
+ placeholder: "Proxy User Name"
883
+ }
884
+ },
885
+ {
886
+ id: "secureJsonData.proxyUserPassword",
887
+ key: "proxyUserPassword",
888
+ label: "Proxy Password",
889
+ description: "Optional proxy password.",
890
+ valueType: "string",
891
+ semanticType: "password",
892
+ target: "secureJsonData",
893
+ dependsOn: "jsonData.proxy_type == 'url'"
894
+ },
895
+ {
896
+ id: "jsonData.enableSecureSocksProxy",
897
+ key: "enableSecureSocksProxy",
898
+ label: "Secure Socks Proxy",
899
+ description: "Enable secure SOCKS proxy.",
900
+ valueType: "boolean",
901
+ target: "jsonData",
902
+ ui: {
903
+ component: "switch"
904
+ }
905
+ },
906
+ {
907
+ id: "jsonData.unsecuredQueryHandling",
908
+ key: "unsecuredQueryHandling",
909
+ label: "Query security",
910
+ description: "Option to handle insecure query content such as sensitive headers in the dashboard query.",
911
+ valueType: "string",
912
+ target: "jsonData",
913
+ defaultValue: "warn",
914
+ validations: [
915
+ {
916
+ type: "allowedValues",
917
+ values: [
918
+ "warn",
919
+ "deny",
920
+ "allow"
921
+ ]
922
+ }
923
+ ],
924
+ ui: {
925
+ component: "radio",
926
+ options: [
927
+ {
928
+ label: "Warn",
929
+ value: "warn"
930
+ },
931
+ {
932
+ label: "Deny",
933
+ value: "deny"
934
+ },
935
+ {
936
+ label: "Allow",
937
+ value: "allow"
938
+ }
939
+ ]
940
+ }
941
+ },
942
+ {
943
+ id: "jsonData.customHealthCheckEnabled",
944
+ key: "customHealthCheckEnabled",
945
+ label: "Custom health check",
946
+ description: "Enable custom health check URL.",
947
+ valueType: "boolean",
948
+ target: "jsonData",
949
+ ui: {
950
+ component: "switch"
951
+ }
952
+ },
953
+ {
954
+ id: "jsonData.customHealthCheckUrl",
955
+ key: "customHealthCheckUrl",
956
+ label: "Health check URL",
957
+ description: "URL for custom health check.",
958
+ valueType: "string",
959
+ semanticType: "url",
960
+ target: "jsonData",
961
+ dependsOn: "jsonData.customHealthCheckEnabled == true"
962
+ }
963
+ ];
964
+ var groups$1 = [
965
+ {
966
+ id: "auth",
967
+ title: "Authentication",
968
+ fieldRefs: [
969
+ "jsonData.auth_method",
970
+ "root.basicAuthUser",
971
+ "secureJsonData.basicAuthPassword",
972
+ "root.digestAuthUser",
973
+ "secureJsonData.basicAuthPasswordDigest",
974
+ "jsonData.apiKeyKey",
975
+ "secureJsonData.apiKeyValue",
976
+ "jsonData.apiKeyType",
977
+ "secureJsonData.bearerToken",
978
+ "jsonData.oauth2.oauth2_type",
979
+ "jsonData.oauth2.authStyle",
980
+ "jsonData.oauth2.client_id",
981
+ "secureJsonData.oauth2ClientSecret",
982
+ "jsonData.oauth2.email",
983
+ "jsonData.oauth2.private_key_id",
984
+ "secureJsonData.oauth2JWTPrivateKey",
985
+ "jsonData.oauth2.token_url",
986
+ "jsonData.oauth2.subject",
987
+ "jsonData.oauth2.scopes",
988
+ "jsonData.oauth2EndpointParams",
989
+ "jsonData.oauth2.authHeader",
990
+ "jsonData.oauth2.tokenTemplate",
991
+ "jsonData.oauth2TokenHeaders",
992
+ "jsonData.aws.region",
993
+ "jsonData.aws.service",
994
+ "secureJsonData.awsAccessKey",
995
+ "secureJsonData.awsSecretKey",
996
+ "jsonData.azureBlobCloudType",
997
+ "jsonData.azureBlobAccountName",
998
+ "secureJsonData.azureBlobAccountKey",
999
+ "jsonData.oauthPassThru"
1000
+ ]
1001
+ },
1002
+ {
1003
+ id: "headers_params",
1004
+ title: "URL, Headers & Params",
1005
+ fieldRefs: [
1006
+ "root.url",
1007
+ "jsonData.httpHeaders",
1008
+ "jsonData.secureQueryParams",
1009
+ "jsonData.ignoreStatusCodeCheck",
1010
+ "jsonData.allowDangerousHTTPMethods",
1011
+ "jsonData.pathEncodedUrlsEnabled",
1012
+ "jsonData.keepCookies",
1013
+ "jsonData.allowedHosts"
1014
+ ]
1015
+ },
1016
+ {
1017
+ id: "network",
1018
+ title: "Network",
1019
+ fieldRefs: [
1020
+ "jsonData.timeoutInSeconds",
1021
+ "jsonData.tlsSkipVerify",
1022
+ "jsonData.tlsAuthWithCACert",
1023
+ "secureJsonData.tlsCACert",
1024
+ "jsonData.tlsAuth",
1025
+ "jsonData.serverName",
1026
+ "secureJsonData.tlsClientCert",
1027
+ "secureJsonData.tlsClientKey",
1028
+ "jsonData.proxy_type",
1029
+ "jsonData.proxy_url",
1030
+ "jsonData.proxy_username",
1031
+ "secureJsonData.proxyUserPassword",
1032
+ "jsonData.enableSecureSocksProxy"
1033
+ ]
1034
+ },
1035
+ {
1036
+ id: "security",
1037
+ title: "Security",
1038
+ fieldRefs: [
1039
+ "jsonData.unsecuredQueryHandling"
1040
+ ]
1041
+ },
1042
+ {
1043
+ id: "health",
1044
+ title: "Health check",
1045
+ fieldRefs: [
1046
+ "jsonData.customHealthCheckEnabled",
1047
+ "jsonData.customHealthCheckUrl"
1048
+ ]
1049
+ }
1050
+ ];
1051
+ var relationships = [
1052
+ {
1053
+ type: "pair",
1054
+ fields: [
1055
+ "secureJsonData.tlsClientCert",
1056
+ "secureJsonData.tlsClientKey"
1057
+ ],
1058
+ description: "TLS client certificate and key"
1059
+ }
1060
+ ];
1061
+ var yesoreyeramInfinityDatasourceSchema = {
1062
+ $schema: $schema$1,
1063
+ schemaVersion: schemaVersion$1,
1064
+ pluginType: pluginType$1,
1065
+ pluginName: pluginName$1,
1066
+ docURL: docURL$1,
1067
+ fields: fields$1,
1068
+ groups: groups$1,
1069
+ relationships: relationships
1070
+ };
1071
+
1072
+ export { $schema$1 as $schema, yesoreyeramInfinityDatasourceSchema as default, docURL$1 as docURL, fields$1 as fields, groups$1 as groups, pluginName$1 as pluginName, pluginType$1 as pluginType, relationships, schemaVersion$1 as schemaVersion };
1073
+ //# sourceMappingURL=yesoreyeram-infinity-datasource.schema.json.js.map