@grafana/plugin-ui 0.15.1 → 0.16.0

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 (135) hide show
  1. package/dist/cjs/index.cjs +13798 -0
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/cjs/index.d.cts +387 -1
  4. package/dist/esm/index.d.ts +387 -1
  5. package/dist/esm/index.js +2 -0
  6. package/dist/esm/index.js.map +1 -1
  7. package/dist/esm/schema/registry/alertmanager.schema.json.js +77 -0
  8. package/dist/esm/schema/registry/alertmanager.schema.json.js.map +1 -0
  9. package/dist/esm/schema/registry/cloudwatch.schema.json.js +384 -0
  10. package/dist/esm/schema/registry/cloudwatch.schema.json.js.map +1 -0
  11. package/dist/esm/schema/registry/elasticsearch.schema.json.js +287 -0
  12. package/dist/esm/schema/registry/elasticsearch.schema.json.js.map +1 -0
  13. package/dist/esm/schema/registry/grafana-amazonprometheus-datasource.schema.json.js +166 -0
  14. package/dist/esm/schema/registry/grafana-amazonprometheus-datasource.schema.json.js.map +1 -0
  15. package/dist/esm/schema/registry/grafana-appdynamics-datasource.schema.json.js +145 -0
  16. package/dist/esm/schema/registry/grafana-appdynamics-datasource.schema.json.js.map +1 -0
  17. package/dist/esm/schema/registry/grafana-astradb-datasource.schema.json.js +123 -0
  18. package/dist/esm/schema/registry/grafana-astradb-datasource.schema.json.js.map +1 -0
  19. package/dist/esm/schema/registry/grafana-athena-datasource.schema.json.js +158 -0
  20. package/dist/esm/schema/registry/grafana-athena-datasource.schema.json.js.map +1 -0
  21. package/dist/esm/schema/registry/grafana-azure-data-explorer-datasource.schema.json.js +204 -0
  22. package/dist/esm/schema/registry/grafana-azure-data-explorer-datasource.schema.json.js.map +1 -0
  23. package/dist/esm/schema/registry/grafana-azure-monitor-datasource.schema.json.js +294 -0
  24. package/dist/esm/schema/registry/grafana-azure-monitor-datasource.schema.json.js.map +1 -0
  25. package/dist/esm/schema/registry/grafana-azuredevops-datasource.schema.json.js +101 -0
  26. package/dist/esm/schema/registry/grafana-azuredevops-datasource.schema.json.js.map +1 -0
  27. package/dist/esm/schema/registry/grafana-azureprometheus-datasource.schema.json.js +125 -0
  28. package/dist/esm/schema/registry/grafana-azureprometheus-datasource.schema.json.js.map +1 -0
  29. package/dist/esm/schema/registry/grafana-bigquery-datasource.schema.json.js +508 -0
  30. package/dist/esm/schema/registry/grafana-bigquery-datasource.schema.json.js.map +1 -0
  31. package/dist/esm/schema/registry/grafana-clickhouse-datasource.schema.json.js +1400 -0
  32. package/dist/esm/schema/registry/grafana-clickhouse-datasource.schema.json.js.map +1 -0
  33. package/dist/esm/schema/registry/grafana-cockroachdb-datasource.schema.json.js +302 -0
  34. package/dist/esm/schema/registry/grafana-cockroachdb-datasource.schema.json.js.map +1 -0
  35. package/dist/esm/schema/registry/grafana-databricks-datasource.schema.json.js +291 -0
  36. package/dist/esm/schema/registry/grafana-databricks-datasource.schema.json.js.map +1 -0
  37. package/dist/esm/schema/registry/grafana-datadog-datasource.schema.json.js +155 -0
  38. package/dist/esm/schema/registry/grafana-datadog-datasource.schema.json.js.map +1 -0
  39. package/dist/esm/schema/registry/grafana-dynatrace-datasource.schema.json.js +179 -0
  40. package/dist/esm/schema/registry/grafana-dynatrace-datasource.schema.json.js.map +1 -0
  41. package/dist/esm/schema/registry/grafana-falconlogscale-datasource.schema.json.js +134 -0
  42. package/dist/esm/schema/registry/grafana-falconlogscale-datasource.schema.json.js.map +1 -0
  43. package/dist/esm/schema/registry/grafana-github-datasource.schema.json.js +156 -0
  44. package/dist/esm/schema/registry/grafana-github-datasource.schema.json.js.map +1 -0
  45. package/dist/esm/schema/registry/grafana-gitlab-datasource.schema.json.js +84 -0
  46. package/dist/esm/schema/registry/grafana-gitlab-datasource.schema.json.js.map +1 -0
  47. package/dist/esm/schema/registry/grafana-googlesheets-datasource.schema.json.js +231 -0
  48. package/dist/esm/schema/registry/grafana-googlesheets-datasource.schema.json.js.map +1 -0
  49. package/dist/esm/schema/registry/grafana-honeycomb-datasource.schema.json.js +87 -0
  50. package/dist/esm/schema/registry/grafana-honeycomb-datasource.schema.json.js.map +1 -0
  51. package/dist/esm/schema/registry/grafana-iot-sitewise-datasource.schema.json.js +159 -0
  52. package/dist/esm/schema/registry/grafana-iot-sitewise-datasource.schema.json.js.map +1 -0
  53. package/dist/esm/schema/registry/grafana-jira-datasource.schema.json.js +188 -0
  54. package/dist/esm/schema/registry/grafana-jira-datasource.schema.json.js.map +1 -0
  55. package/dist/esm/schema/registry/grafana-looker-datasource.schema.json.js +82 -0
  56. package/dist/esm/schema/registry/grafana-looker-datasource.schema.json.js.map +1 -0
  57. package/dist/esm/schema/registry/grafana-mongodb-datasource.schema.json.js +278 -0
  58. package/dist/esm/schema/registry/grafana-mongodb-datasource.schema.json.js.map +1 -0
  59. package/dist/esm/schema/registry/grafana-mqtt-datasource.schema.json.js +168 -0
  60. package/dist/esm/schema/registry/grafana-mqtt-datasource.schema.json.js.map +1 -0
  61. package/dist/esm/schema/registry/grafana-newrelic-datasource.schema.json.js +129 -0
  62. package/dist/esm/schema/registry/grafana-newrelic-datasource.schema.json.js.map +1 -0
  63. package/dist/esm/schema/registry/grafana-odbc-datasource.schema.json.js +56 -0
  64. package/dist/esm/schema/registry/grafana-odbc-datasource.schema.json.js.map +1 -0
  65. package/dist/esm/schema/registry/grafana-opensearch-datasource.schema.json.js +212 -0
  66. package/dist/esm/schema/registry/grafana-opensearch-datasource.schema.json.js.map +1 -0
  67. package/dist/esm/schema/registry/grafana-oracle-datasource.schema.json.js +186 -0
  68. package/dist/esm/schema/registry/grafana-oracle-datasource.schema.json.js.map +1 -0
  69. package/dist/esm/schema/registry/grafana-pagerduty-datasource.schema.json.js +85 -0
  70. package/dist/esm/schema/registry/grafana-pagerduty-datasource.schema.json.js.map +1 -0
  71. package/dist/esm/schema/registry/grafana-postgresql-datasource.schema.json.js +411 -0
  72. package/dist/esm/schema/registry/grafana-postgresql-datasource.schema.json.js.map +1 -0
  73. package/dist/esm/schema/registry/grafana-pyroscope-datasource.schema.json.js +41 -0
  74. package/dist/esm/schema/registry/grafana-pyroscope-datasource.schema.json.js.map +1 -0
  75. package/dist/esm/schema/registry/grafana-redshift-datasource.schema.json.js +201 -0
  76. package/dist/esm/schema/registry/grafana-redshift-datasource.schema.json.js.map +1 -0
  77. package/dist/esm/schema/registry/grafana-salesforce-datasource.schema.json.js +201 -0
  78. package/dist/esm/schema/registry/grafana-salesforce-datasource.schema.json.js.map +1 -0
  79. package/dist/esm/schema/registry/grafana-saphana-datasource.schema.json.js +208 -0
  80. package/dist/esm/schema/registry/grafana-saphana-datasource.schema.json.js.map +1 -0
  81. package/dist/esm/schema/registry/grafana-sentry-datasource.schema.json.js +94 -0
  82. package/dist/esm/schema/registry/grafana-sentry-datasource.schema.json.js.map +1 -0
  83. package/dist/esm/schema/registry/grafana-servicenow-datasource.schema.json.js +179 -0
  84. package/dist/esm/schema/registry/grafana-servicenow-datasource.schema.json.js.map +1 -0
  85. package/dist/esm/schema/registry/grafana-snowflake-datasource.schema.json.js +304 -0
  86. package/dist/esm/schema/registry/grafana-snowflake-datasource.schema.json.js.map +1 -0
  87. package/dist/esm/schema/registry/grafana-splunk-datasource.schema.json.js +319 -0
  88. package/dist/esm/schema/registry/grafana-splunk-datasource.schema.json.js.map +1 -0
  89. package/dist/esm/schema/registry/grafana-splunkobservability-datasource.schema.json.js +90 -0
  90. package/dist/esm/schema/registry/grafana-splunkobservability-datasource.schema.json.js.map +1 -0
  91. package/dist/esm/schema/registry/grafana-strava-datasource.schema.json.js +74 -0
  92. package/dist/esm/schema/registry/grafana-strava-datasource.schema.json.js.map +1 -0
  93. package/dist/esm/schema/registry/grafana-sumologic-datasource.schema.json.js +102 -0
  94. package/dist/esm/schema/registry/grafana-sumologic-datasource.schema.json.js.map +1 -0
  95. package/dist/esm/schema/registry/grafana-surrealdb-datasource.schema.json.js +92 -0
  96. package/dist/esm/schema/registry/grafana-surrealdb-datasource.schema.json.js.map +1 -0
  97. package/dist/esm/schema/registry/grafana-timestream-datasource.schema.json.js +145 -0
  98. package/dist/esm/schema/registry/grafana-timestream-datasource.schema.json.js.map +1 -0
  99. package/dist/esm/schema/registry/grafana-wavefront-datasource.schema.json.js +80 -0
  100. package/dist/esm/schema/registry/grafana-wavefront-datasource.schema.json.js.map +1 -0
  101. package/dist/esm/schema/registry/grafana-x-ray-datasource.schema.json.js +112 -0
  102. package/dist/esm/schema/registry/grafana-x-ray-datasource.schema.json.js.map +1 -0
  103. package/dist/esm/schema/registry/grafana-yugabyte-datasource.schema.json.js +114 -0
  104. package/dist/esm/schema/registry/grafana-yugabyte-datasource.schema.json.js.map +1 -0
  105. package/dist/esm/schema/registry/graphite.schema.json.js +104 -0
  106. package/dist/esm/schema/registry/graphite.schema.json.js.map +1 -0
  107. package/dist/esm/schema/registry/index.js +27 -0
  108. package/dist/esm/schema/registry/index.js.map +1 -0
  109. package/dist/esm/schema/registry/influxdb.schema.json.js +717 -0
  110. package/dist/esm/schema/registry/influxdb.schema.json.js.map +1 -0
  111. package/dist/esm/schema/registry/jaeger.schema.json.js +59 -0
  112. package/dist/esm/schema/registry/jaeger.schema.json.js.map +1 -0
  113. package/dist/esm/schema/registry/loki.schema.json.js +545 -0
  114. package/dist/esm/schema/registry/loki.schema.json.js.map +1 -0
  115. package/dist/esm/schema/registry/marcusolsson-csv-datasource.schema.json.js +45 -0
  116. package/dist/esm/schema/registry/marcusolsson-csv-datasource.schema.json.js.map +1 -0
  117. package/dist/esm/schema/registry/marcusolsson-json-datasource.schema.json.js +36 -0
  118. package/dist/esm/schema/registry/marcusolsson-json-datasource.schema.json.js.map +1 -0
  119. package/dist/esm/schema/registry/mssql.schema.json.js +292 -0
  120. package/dist/esm/schema/registry/mssql.schema.json.js.map +1 -0
  121. package/dist/esm/schema/registry/mysql.schema.json.js +304 -0
  122. package/dist/esm/schema/registry/mysql.schema.json.js.map +1 -0
  123. package/dist/esm/schema/registry/opentsdb.schema.json.js +113 -0
  124. package/dist/esm/schema/registry/opentsdb.schema.json.js.map +1 -0
  125. package/dist/esm/schema/registry/prometheus.schema.json.js +783 -0
  126. package/dist/esm/schema/registry/prometheus.schema.json.js.map +1 -0
  127. package/dist/esm/schema/registry/stackdriver.schema.json.js +224 -0
  128. package/dist/esm/schema/registry/stackdriver.schema.json.js.map +1 -0
  129. package/dist/esm/schema/registry/staticRegistry.js +135 -0
  130. package/dist/esm/schema/registry/staticRegistry.js.map +1 -0
  131. package/dist/esm/schema/registry/tempo.schema.json.js +664 -0
  132. package/dist/esm/schema/registry/tempo.schema.json.js.map +1 -0
  133. package/dist/esm/schema/registry/zipkin.schema.json.js +40 -0
  134. package/dist/esm/schema/registry/zipkin.schema.json.js.map +1 -0
  135. package/package.json +9 -7
@@ -1295,4 +1295,390 @@ interface RequestLoopOptions<TQuery extends DataQuery$1 = DataQuery$1> {
1295
1295
  */
1296
1296
  declare function getRequestLooper<T extends DataQuery$1 = DataQuery$1>(req: DataQueryRequest<T>, options: RequestLoopOptions<T>): Observable<DataQueryResponse>;
1297
1297
 
1298
- export { AccessoryButton, AdvancedHttpSettings, type Aggregate, Auth, AuthMethod, type Props$c as AuthProps, BINARY_OPERATIONS_KEY, CatalogSelector, type ColumnDefinition, CompletionItemInsertTextRule, CompletionItemKind, CompletionItemPriority, ConfigDescriptionLink, ConfigSection, ConfigSubSection, ConnectionSettings, CustomHeadersSettings, type CustomMeta, type DB, DataLink, type DataLinkConfig, DataLinks, DataSourceDescription, DataSourcePicker, DatasetSelector, DatasourceWithAsyncBackend, DatePicker, type DatePickerProps, DatePickerWithInput, type DatePickerWithInputProps, DebounceInput, type DebounceInputProps, EditorField, EditorFieldGroup, EditorHeader, EditorList, EditorMode, EditorRow, EditorRows, EditorStack, EditorSwitch, FlexItem, GroupByRow, InlineSelect, InputGroup, LabelFilters, type LanguageCompletionProvider, type LanguageDefinition, LinkedToken, MacroType, type MetaDefinition, type NameValue, OperationExplainedBox, OperationList, OperationListExplained, OperationsEditorRow, OperatorType, type PositionContext, type Props$s as Props, QUERY_FORMAT_OPTIONS, QueryBuilderHints, type QueryBuilderLabelFilter, type QueryBuilderOperation, type QueryBuilderOperationDefinition, type QueryBuilderOperationParamDef, type QueryBuilderOperationParamEditorProps, type QueryBuilderOperationParamValue, QueryEditorMode, QueryEditorModeToggle, type QueryEditorProps, QueryEditorRow, QueryFormat, QueryHeaderSwitch, QueryModellerBase, QueryOptionGroup, type QueryRowFilter, type QueryStats, type QueryWithDefaults, type RAQBFieldTypes, RawQuery, type RequestLoopOptions, type ResourceSelectorProps, type ResponseParser, RunQueryButton, RunQueryButtons, type RunQueryButtonsProps, type RunningQueryInfo, type SQLConnectionLimits, SQLEditor, SQLEditorMode, SQLEditorTestUtils, type SQLExpression, type SQLFilters, type SQLMonarchLanguage, type SQLOptions, type SQLQuery, type SQLSelectableValue, type SchemaDefinition, SecureSocksProxyToggle, Segment, type SegmentProps, Space, SqlDatasource, SqlQueryEditor, type SqlQueryForInterpolation, type SqlQueryModel, type State$1 as State, type StatementPlacementProvider, StatementPosition, SuggestionKind, type SuggestionKindProvider, TLSSettings, type Props$f as TLSSettingsProps, type TableDefinition, type TableFieldSchema, type TableIdentifier, type TableSchema, TableSelector, type TestQueryModel, TokenType, type ValidationResults, type VisualQuery, type VisualQueryBinary, type VisualQueryModeller, convertLegacyAuthProps, formatDate, getRequestLooper, getStandardSQLCompletionProvider, language as grafanaStandardSQLLanguage, conf as grafanaStandardSQLLanguageConf, toOption };
1298
+ interface DatasourceConfigSchema {
1299
+ /**
1300
+ * Schema version (required)
1301
+ * Used for compatibility and migrations
1302
+ *
1303
+ * Example: "v2"
1304
+ */
1305
+ schemaVersion: string;
1306
+ /**
1307
+ * Unique datasource plugin identifier
1308
+ * Example: "prometheus"
1309
+ */
1310
+ pluginType: string;
1311
+ /**
1312
+ * Human-readable name
1313
+ */
1314
+ pluginName: string;
1315
+ /**
1316
+ * Optional documentation URL
1317
+ */
1318
+ docURL?: string;
1319
+ /**
1320
+ * Source of truth for configuration
1321
+ */
1322
+ fields: ConfigField[];
1323
+ /**
1324
+ * Optional UI grouping
1325
+ */
1326
+ groups?: ConfigGroup[];
1327
+ /**
1328
+ * Relationships between fields
1329
+ */
1330
+ relationships?: FieldRelationship[];
1331
+ }
1332
+ interface ConfigField {
1333
+ /**
1334
+ * Globally unique identifier
1335
+ * Recommended format: dot-separated path
1336
+ * Example: "auth.method", "httpHeaders.item.key"
1337
+ */
1338
+ id: string;
1339
+ /**
1340
+ * Local key used in storage or object
1341
+ */
1342
+ key: string;
1343
+ /**
1344
+ * UI metadata
1345
+ */
1346
+ label?: string;
1347
+ description?: string;
1348
+ docURL?: string;
1349
+ /**
1350
+ * Core type of the field
1351
+ */
1352
+ valueType: ValueType;
1353
+ /**
1354
+ * Storage location (required for storage fields)
1355
+ */
1356
+ target?: TargetLocation;
1357
+ /**
1358
+ * Dotted path prefix within the target for nested objects.
1359
+ * Example: for jsonData.tracesToLogs.datasourceUid,
1360
+ * target="jsonData", section="tracesToLogs", key="datasourceUid".
1361
+ */
1362
+ section?: string;
1363
+ /**
1364
+ * Field kind.
1365
+ * @default "storage"
1366
+ */
1367
+ kind?: FieldKind;
1368
+ /**
1369
+ * True if field belongs to array item schema
1370
+ */
1371
+ isItemField?: boolean;
1372
+ /**
1373
+ * UI rendering hints
1374
+ */
1375
+ ui?: FieldUI;
1376
+ /**
1377
+ * Validations rules
1378
+ */
1379
+ validations?: FieldValidationRule[];
1380
+ /**
1381
+ * Visibility condition (CEL expression)
1382
+ */
1383
+ dependsOn?: Expression;
1384
+ /**
1385
+ * Always required
1386
+ */
1387
+ required?: boolean;
1388
+ /**
1389
+ * Conditionally required
1390
+ */
1391
+ requiredWhen?: Expression;
1392
+ /**
1393
+ * Disabled condition
1394
+ */
1395
+ disabledWhen?: Expression;
1396
+ /**
1397
+ * Dynamic overrides
1398
+ */
1399
+ overrides?: FieldOverride[];
1400
+ /**
1401
+ * Declarative multi-field write side-effects.
1402
+ * When this field's value matches a condition, the listed target
1403
+ * fields are set to specified values. Typically used on virtual
1404
+ * selector fields (e.g. auth method dropdown).
1405
+ */
1406
+ effects?: FieldEffect[];
1407
+ /**
1408
+ * Item schema for array elements or map values.
1409
+ * Required if valueType === "array" or "map".
1410
+ */
1411
+ item?: FieldItemSchema;
1412
+ /**
1413
+ * Legacy indexed fields (deprecated)
1414
+ */
1415
+ repeatable?: boolean;
1416
+ pattern?: string;
1417
+ /**
1418
+ * Storage mapping
1419
+ */
1420
+ storage?: StorageMapping;
1421
+ /**
1422
+ * Metadata
1423
+ */
1424
+ tags?: string[];
1425
+ examples?: unknown[];
1426
+ defaultValue?: unknown;
1427
+ }
1428
+ interface FieldItemSchema {
1429
+ /**
1430
+ * Type of array items or map values.
1431
+ * For arrays, describes each element.
1432
+ * For maps, describes each value (keys are always strings).
1433
+ */
1434
+ valueType: ValueType;
1435
+ /**
1436
+ * Sub-fields for object items. Optional even when valueType = "object"
1437
+ * (omitting allows an unconstrained object).
1438
+ */
1439
+ fields?: ConfigField[];
1440
+ }
1441
+ /**
1442
+ * CEL expression string
1443
+ */
1444
+ type Expression = string;
1445
+ type ValueType = 'string' | 'number' | 'boolean' | 'array' | 'object' | 'map' | 'any';
1446
+ type FieldKind = 'storage' | 'virtual';
1447
+ type TargetLocation = 'root' | 'jsonData' | 'secureJsonData';
1448
+ type UIComponent = 'input' | 'textarea' | 'select' | 'multiselect' | 'radio' | 'checkbox' | 'switch' | 'code' | 'keyvalue' | 'list' | 'fileUpload';
1449
+ type UIWidth = 'full' | 'half';
1450
+ /**
1451
+ * UI configuration
1452
+ */
1453
+ interface FieldUI {
1454
+ component: UIComponent;
1455
+ multiline?: boolean;
1456
+ rows?: number;
1457
+ options?: FieldOption[];
1458
+ allowCustom?: boolean;
1459
+ width?: UIWidth;
1460
+ placeholder?: string;
1461
+ /**
1462
+ * Language hint for code editor components.
1463
+ * Example: "promql", "logql", "traceql", "sql", "json"
1464
+ */
1465
+ language?: string;
1466
+ /**
1467
+ * Layout row index for item fields inside object arrays.
1468
+ * Fields with the same row number are rendered horizontally.
1469
+ * Fields without a row number use auto-layout:
1470
+ * - ≤3 fields: all on one row
1471
+ * - >3 fields: each on its own row
1472
+ */
1473
+ row?: number;
1474
+ /**
1475
+ * Accepted file types for fileUpload component.
1476
+ * Uses HTML accept attribute format with leading dot.
1477
+ * Example: [".json"]
1478
+ */
1479
+ accept?: string[];
1480
+ /**
1481
+ * Maps keys in an uploaded JSON file to target field IDs.
1482
+ * Used by fileUpload to distribute parsed values to other form fields.
1483
+ * Example: { "private_key": "secureJsonData.privateKey", "client_email": "jsonData.clientEmail" }
1484
+ */
1485
+ fileMapping?: Record<string, string>;
1486
+ }
1487
+ type FieldValidationRule = PatternValidationRule | RangeValidationRule | LengthValidationRule | ItemCountValidationRule | AllowedValuesValidationRule | CustomValidationRule;
1488
+ interface BaseValidationRule {
1489
+ /**
1490
+ * Optional stable ID for the validation rule.
1491
+ * Useful for docs, localization, and test snapshots.
1492
+ */
1493
+ id?: string;
1494
+ /**
1495
+ * Human-readable validation error message.
1496
+ */
1497
+ message?: string;
1498
+ }
1499
+ interface PatternValidationRule extends BaseValidationRule {
1500
+ type: 'pattern';
1501
+ pattern: string;
1502
+ }
1503
+ interface RangeValidationRule extends BaseValidationRule {
1504
+ type: 'range';
1505
+ min?: number;
1506
+ max?: number;
1507
+ }
1508
+ interface LengthValidationRule extends BaseValidationRule {
1509
+ type: 'length';
1510
+ min?: number;
1511
+ max?: number;
1512
+ }
1513
+ interface ItemCountValidationRule extends BaseValidationRule {
1514
+ type: 'itemCount';
1515
+ min?: number;
1516
+ max?: number;
1517
+ }
1518
+ interface AllowedValuesValidationRule extends BaseValidationRule {
1519
+ type: 'allowedValues';
1520
+ values: unknown[];
1521
+ }
1522
+ interface CustomValidationRule extends BaseValidationRule {
1523
+ type: 'custom';
1524
+ /**
1525
+ * CEL expression.
1526
+ *
1527
+ * Should evaluate to true when the field value is valid.
1528
+ */
1529
+ expression: Expression;
1530
+ }
1531
+ interface FieldOverride {
1532
+ /**
1533
+ * CEL condition
1534
+ */
1535
+ when: Expression;
1536
+ defaultValue?: unknown;
1537
+ /**
1538
+ * When true, the field is disabled/read-only while this override is active.
1539
+ */
1540
+ readOnly?: boolean;
1541
+ description?: string;
1542
+ placeholder?: string;
1543
+ tooltip?: string;
1544
+ validations?: FieldValidationRule[];
1545
+ options?: FieldOption[];
1546
+ /**
1547
+ * When present on an `isItemField` field, the value is routed to
1548
+ * `secureJsonData` under the resolved key instead of being stored
1549
+ * inline in the parent array.
1550
+ *
1551
+ * The template string supports placeholders:
1552
+ * - `{index}` — 0-based array position
1553
+ * - `{index1}` — 1-based array position
1554
+ * - `{item.KEY}` — value of sibling item field `KEY`
1555
+ *
1556
+ * Examples:
1557
+ * - `"secureHttpHeaders.{item.name}"` (ClickHouse)
1558
+ * - `"httpHeaderValue{index1}"` (Grafana core headers)
1559
+ */
1560
+ secureKey?: string;
1561
+ }
1562
+ /**
1563
+ * Declares that when a field's value matches a condition,
1564
+ * listed target fields should be set to specified values.
1565
+ *
1566
+ * Use "value" in the `when` expression to refer to the field's value.
1567
+ */
1568
+ interface FieldEffect {
1569
+ /**
1570
+ * CEL expression. Example: "value == 'basic-auth'"
1571
+ */
1572
+ when: Expression;
1573
+ /**
1574
+ * Maps field IDs to the values they should be set to.
1575
+ * Must contain at least one entry.
1576
+ */
1577
+ set: Record<string, unknown> & {
1578
+ [k: string]: unknown;
1579
+ };
1580
+ }
1581
+ type StorageMapping = DirectMapping | IndexedPairMapping | ComputedMapping;
1582
+ /**
1583
+ * Direct mapping
1584
+ */
1585
+ interface DirectMapping {
1586
+ type: 'direct';
1587
+ }
1588
+ /**
1589
+ * Indexed pair mapping (headers)
1590
+ */
1591
+ interface IndexedPairMapping {
1592
+ type: 'indexedPair';
1593
+ key: MappingField;
1594
+ value: MappingField;
1595
+ startIndex?: number;
1596
+ }
1597
+ /**
1598
+ * Computed mapping (virtual fields).
1599
+ * At least one of `read` or `write` must be provided.
1600
+ */
1601
+ type ComputedMapping = {
1602
+ type: 'computed';
1603
+ read: Expression;
1604
+ write?: Expression;
1605
+ } | {
1606
+ type: 'computed';
1607
+ read?: Expression;
1608
+ write: Expression;
1609
+ };
1610
+ /**
1611
+ * Mapping field
1612
+ */
1613
+ interface MappingField {
1614
+ target: TargetLocation;
1615
+ pattern: string;
1616
+ }
1617
+ interface FieldOption {
1618
+ label: string;
1619
+ /**
1620
+ * Must match parent field valueType.
1621
+ * Must not be null.
1622
+ */
1623
+ value: NonNullable<unknown>;
1624
+ /**
1625
+ * Optional human-readable description of the option.
1626
+ */
1627
+ description?: string;
1628
+ }
1629
+ interface ConfigGroup {
1630
+ id: string;
1631
+ title: string;
1632
+ description?: string;
1633
+ order?: number;
1634
+ /**
1635
+ * When true, the group is optional and can be collapsed/hidden by default.
1636
+ */
1637
+ optional?: boolean;
1638
+ /**
1639
+ * References field IDs (not keys)
1640
+ */
1641
+ fieldRefs: string[];
1642
+ }
1643
+ type RelationshipType = 'pair' | 'group' | 'datasourceReference';
1644
+ interface FieldRelationship {
1645
+ type: RelationshipType;
1646
+ /**
1647
+ * References field IDs
1648
+ */
1649
+ fields: string[];
1650
+ description?: string;
1651
+ /**
1652
+ * Constrains the datasource UID to a specific plugin type.
1653
+ * Only applicable when type is "datasourceReference".
1654
+ */
1655
+ targetPluginType?: string;
1656
+ }
1657
+ type SecureFieldState = {
1658
+ type: 'unset';
1659
+ } | {
1660
+ type: 'configured';
1661
+ } | {
1662
+ type: 'updated';
1663
+ value: string;
1664
+ };
1665
+ interface FormState {
1666
+ values: Record<string, unknown>;
1667
+ secure: Record<string, SecureFieldState>;
1668
+ }
1669
+
1670
+ /**
1671
+ * Bundled datasource config schemas, used as a fallback when a schema cannot be
1672
+ * fetched from the Grafana plugins CDN (for example, when the CDN returns 404).
1673
+ */
1674
+ declare const staticSchemaRegistry: Map<string, DatasourceConfigSchema>;
1675
+ /**
1676
+ * Returns the bundled fallback schema for a plugin type, or `null` if none is
1677
+ * bundled.
1678
+ */
1679
+ declare function getStaticConfigSchema(pluginType: string): DatasourceConfigSchema | null;
1680
+
1681
+ declare function getConfigSchemaUrl(pluginType: string): string;
1682
+ declare function getConfigSchema(pluginType: string): Promise<DatasourceConfigSchema | null>;
1683
+
1684
+ export { AccessoryButton, AdvancedHttpSettings, type Aggregate, type AllowedValuesValidationRule, Auth, AuthMethod, type Props$c as AuthProps, BINARY_OPERATIONS_KEY, type BaseValidationRule, CatalogSelector, type ColumnDefinition, CompletionItemInsertTextRule, CompletionItemKind, CompletionItemPriority, type ComputedMapping, ConfigDescriptionLink, type ConfigField, type ConfigGroup, ConfigSection, ConfigSubSection, ConnectionSettings, CustomHeadersSettings, type CustomMeta, type CustomValidationRule, type DB, DataLink, type DataLinkConfig, DataLinks, DataSourceDescription, DataSourcePicker, DatasetSelector, type DatasourceConfigSchema, DatasourceWithAsyncBackend, DatePicker, type DatePickerProps, DatePickerWithInput, type DatePickerWithInputProps, DebounceInput, type DebounceInputProps, type DirectMapping, EditorField, EditorFieldGroup, EditorHeader, EditorList, EditorMode, EditorRow, EditorRows, EditorStack, EditorSwitch, type Expression, type FieldEffect, type FieldItemSchema, type FieldKind, type FieldOption, type FieldOverride, type FieldRelationship, type FieldUI, type FieldValidationRule, FlexItem, type FormState, GroupByRow, type IndexedPairMapping, InlineSelect, InputGroup, type ItemCountValidationRule, LabelFilters, type LanguageCompletionProvider, type LanguageDefinition, type LengthValidationRule, LinkedToken, MacroType, type MappingField, type MetaDefinition, type NameValue, OperationExplainedBox, OperationList, OperationListExplained, OperationsEditorRow, OperatorType, type PatternValidationRule, type PositionContext, type Props$s as Props, QUERY_FORMAT_OPTIONS, QueryBuilderHints, type QueryBuilderLabelFilter, type QueryBuilderOperation, type QueryBuilderOperationDefinition, type QueryBuilderOperationParamDef, type QueryBuilderOperationParamEditorProps, type QueryBuilderOperationParamValue, QueryEditorMode, QueryEditorModeToggle, type QueryEditorProps, QueryEditorRow, QueryFormat, QueryHeaderSwitch, QueryModellerBase, QueryOptionGroup, type QueryRowFilter, type QueryStats, type QueryWithDefaults, type RAQBFieldTypes, type RangeValidationRule, RawQuery, type RelationshipType, type RequestLoopOptions, type ResourceSelectorProps, type ResponseParser, RunQueryButton, RunQueryButtons, type RunQueryButtonsProps, type RunningQueryInfo, type SQLConnectionLimits, SQLEditor, SQLEditorMode, SQLEditorTestUtils, type SQLExpression, type SQLFilters, type SQLMonarchLanguage, type SQLOptions, type SQLQuery, type SQLSelectableValue, type SchemaDefinition, type SecureFieldState, SecureSocksProxyToggle, Segment, type SegmentProps, Space, SqlDatasource, SqlQueryEditor, type SqlQueryForInterpolation, type SqlQueryModel, type State$1 as State, type StatementPlacementProvider, StatementPosition, type StorageMapping, SuggestionKind, type SuggestionKindProvider, TLSSettings, type Props$f as TLSSettingsProps, type TableDefinition, type TableFieldSchema, type TableIdentifier, type TableSchema, TableSelector, type TargetLocation, type TestQueryModel, TokenType, type UIComponent, type UIWidth, type ValidationResults, type ValueType, type VisualQuery, type VisualQueryBinary, type VisualQueryModeller, convertLegacyAuthProps, formatDate, getConfigSchema, getConfigSchemaUrl, getRequestLooper, getStandardSQLCompletionProvider, getStaticConfigSchema, language as grafanaStandardSQLLanguage, conf as grafanaStandardSQLLanguageConf, staticSchemaRegistry, toOption };