@grafana/assistant 0.1.34 → 0.1.35

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 (129) hide show
  1. package/README.md +186 -42
  2. package/dist/components/button/OpenAssistantButton.d.ts +3 -3
  3. package/dist/components/button/OpenAssistantButton.d.ts.map +1 -1
  4. package/dist/components/button/OpenAssistantSplitButton.d.ts +2 -2
  5. package/dist/components/button/OpenAssistantSplitButton.d.ts.map +1 -1
  6. package/dist/components/button/QueryWithAssistantButton.d.ts +2 -2
  7. package/dist/components/button/QueryWithAssistantButton.d.ts.map +1 -1
  8. package/dist/components/input/AITextArea.d.ts +1 -1
  9. package/dist/components/input/AITextArea.d.ts.map +1 -1
  10. package/dist/components/input/AITextInput.d.ts +1 -1
  11. package/dist/components/input/AITextInput.d.ts.map +1 -1
  12. package/dist/components/input/useAIGeneration.d.ts.map +1 -1
  13. package/dist/components/prompt-card/AssistantPromptCard.d.ts +2 -2
  14. package/dist/components/prompt-card/AssistantPromptCard.d.ts.map +1 -1
  15. package/dist/context/agentSkill.d.ts +69 -0
  16. package/dist/context/agentSkill.d.ts.map +1 -0
  17. package/dist/context/base.d.ts.map +1 -1
  18. package/dist/context/chat.d.ts.map +1 -1
  19. package/dist/context/component.d.ts.map +1 -1
  20. package/dist/context/dashboard.d.ts.map +1 -1
  21. package/dist/context/datasource.d.ts.map +1 -1
  22. package/dist/context/entity.d.ts.map +1 -1
  23. package/dist/context/factory.d.ts.map +1 -1
  24. package/dist/context/index.d.ts +1 -0
  25. package/dist/context/index.d.ts.map +1 -1
  26. package/dist/context/label.d.ts.map +1 -1
  27. package/dist/context/page.d.ts.map +1 -1
  28. package/dist/context/skill.d.ts.map +1 -1
  29. package/dist/context/types.d.ts +15 -1
  30. package/dist/context/types.d.ts.map +1 -1
  31. package/dist/esm/components/button/OpenAssistantButton.js +2 -2
  32. package/dist/esm/components/button/OpenAssistantSplitButton.js +1 -0
  33. package/dist/esm/components/button/OpenAssistantSplitButton.js.map +1 -1
  34. package/dist/esm/components/input/useAIGeneration.js +14 -1
  35. package/dist/esm/components/input/useAIGeneration.js.map +1 -1
  36. package/dist/esm/components/prompt-card/AssistantPromptCard.js.map +1 -1
  37. package/dist/esm/context/agentSkill.js +70 -0
  38. package/dist/esm/context/agentSkill.js.map +1 -0
  39. package/dist/esm/context/base.js.map +1 -1
  40. package/dist/esm/context/chat.js +1 -0
  41. package/dist/esm/context/chat.js.map +1 -1
  42. package/dist/esm/context/component.js.map +1 -1
  43. package/dist/esm/context/factory.js +6 -4
  44. package/dist/esm/context/factory.js.map +1 -1
  45. package/dist/esm/context/index.js +1 -0
  46. package/dist/esm/context/index.js.map +1 -1
  47. package/dist/esm/context/page.js.map +1 -1
  48. package/dist/esm/context/questions.js +20 -26
  49. package/dist/esm/context/questions.js.map +1 -1
  50. package/dist/esm/extension/extension.js +7 -8
  51. package/dist/esm/extension/extension.js.map +1 -1
  52. package/dist/esm/extension/index.js +2 -1
  53. package/dist/esm/extension/index.js.map +1 -1
  54. package/dist/esm/extension/suggestionContexts.js +35 -0
  55. package/dist/esm/extension/suggestionContexts.js.map +1 -0
  56. package/dist/esm/index.js +3 -1
  57. package/dist/esm/index.js.map +1 -1
  58. package/dist/esm/inline/index.js.map +1 -1
  59. package/dist/esm/inline/inlineAssistant.js +1 -1
  60. package/dist/esm/inline/inlineAssistant.js.map +1 -1
  61. package/dist/esm/inline/useInlineAssistant.js +8 -3
  62. package/dist/esm/inline/useInlineAssistant.js.map +1 -1
  63. package/dist/esm/investigations/api.gen.js +6 -0
  64. package/dist/esm/investigations/api.gen.js.map +1 -0
  65. package/dist/esm/investigations/client.js +76 -0
  66. package/dist/esm/investigations/client.js.map +1 -0
  67. package/dist/esm/investigations/index.js +3 -0
  68. package/dist/esm/investigations/index.js.map +1 -0
  69. package/dist/esm/investigations/observe.js +204 -0
  70. package/dist/esm/investigations/observe.js.map +1 -0
  71. package/dist/esm/investigations/types.js +2 -0
  72. package/dist/esm/investigations/types.js.map +1 -0
  73. package/dist/esm/k6.js.map +1 -1
  74. package/dist/esm/lens/investigationLens.js +1 -1
  75. package/dist/esm/lens/investigationLens.js.map +1 -1
  76. package/dist/esm/lens/useInvestigationThroughLens.js +3 -1
  77. package/dist/esm/lens/useInvestigationThroughLens.js.map +1 -1
  78. package/dist/esm/limits/index.js +1 -1
  79. package/dist/esm/limits/index.js.map +1 -1
  80. package/dist/esm/pathfinder.js +41 -0
  81. package/dist/esm/pathfinder.js.map +1 -0
  82. package/dist/esm/sidebar.js +40 -20
  83. package/dist/esm/sidebar.js.map +1 -1
  84. package/dist/esm/terms/index.js +43 -5
  85. package/dist/esm/terms/index.js.map +1 -1
  86. package/dist/esm/tools/toolFactory.js.map +1 -1
  87. package/dist/esm/utils/errorHandling.js.map +1 -1
  88. package/dist/esm/utils/theme.js +11 -1
  89. package/dist/esm/utils/theme.js.map +1 -1
  90. package/dist/extension/extension.d.ts +206 -114
  91. package/dist/extension/extension.d.ts.map +1 -1
  92. package/dist/extension/index.d.ts +2 -1
  93. package/dist/extension/index.d.ts.map +1 -1
  94. package/dist/extension/suggestionContexts.d.ts +36 -0
  95. package/dist/extension/suggestionContexts.d.ts.map +1 -0
  96. package/dist/index.d.ts +3 -1
  97. package/dist/index.d.ts.map +1 -1
  98. package/dist/index.js +1 -1
  99. package/dist/index.js.map +1 -1
  100. package/dist/inline/index.d.ts +1 -1
  101. package/dist/inline/index.d.ts.map +1 -1
  102. package/dist/inline/inlineAssistant.d.ts +19 -6
  103. package/dist/inline/inlineAssistant.d.ts.map +1 -1
  104. package/dist/inline/useInlineAssistant.d.ts +5 -1
  105. package/dist/inline/useInlineAssistant.d.ts.map +1 -1
  106. package/dist/investigations/api.gen.d.ts +1872 -0
  107. package/dist/investigations/api.gen.d.ts.map +1 -0
  108. package/dist/investigations/client.d.ts +8 -0
  109. package/dist/investigations/client.d.ts.map +1 -0
  110. package/dist/investigations/index.d.ts +5 -0
  111. package/dist/investigations/index.d.ts.map +1 -0
  112. package/dist/investigations/observe.d.ts +10 -0
  113. package/dist/investigations/observe.d.ts.map +1 -0
  114. package/dist/investigations/types.d.ts +26 -0
  115. package/dist/investigations/types.d.ts.map +1 -0
  116. package/dist/lens/investigationLens.d.ts +0 -5
  117. package/dist/lens/investigationLens.d.ts.map +1 -1
  118. package/dist/lens/useInvestigationThroughLens.d.ts.map +1 -1
  119. package/dist/pathfinder.d.ts +41 -0
  120. package/dist/pathfinder.d.ts.map +1 -0
  121. package/dist/sidebar.d.ts +15 -0
  122. package/dist/sidebar.d.ts.map +1 -1
  123. package/dist/terms/index.d.ts +8 -0
  124. package/dist/terms/index.d.ts.map +1 -1
  125. package/dist/terms/settings.gen.d.ts +470 -89
  126. package/dist/terms/settings.gen.d.ts.map +1 -1
  127. package/dist/tools/types.d.ts +3 -3
  128. package/dist/utils/theme.d.ts.map +1 -1
  129. package/package.json +21 -18
@@ -43,30 +43,6 @@ export interface paths {
43
43
  patch?: never;
44
44
  trace?: never;
45
45
  };
46
- '/settings/analyst': {
47
- parameters: {
48
- query?: never;
49
- header?: never;
50
- path?: never;
51
- cookie?: never;
52
- };
53
- /**
54
- * Get Analyst settings
55
- * @description Retrieve Analyst mode's data warehouse datasource configuration for the current tenant
56
- */
57
- get: operations['get-settings-analyst'];
58
- /**
59
- * Update Analyst settings
60
- * @description Update Analyst mode's data warehouse datasource configuration for the current tenant
61
- */
62
- put: operations['put-settings-analyst'];
63
- post?: never;
64
- delete?: never;
65
- options?: never;
66
- head?: never;
67
- patch?: never;
68
- trace?: never;
69
- };
70
46
  '/settings/chat-retention': {
71
47
  parameters: {
72
48
  query?: never;
@@ -100,12 +76,12 @@ export interface paths {
100
76
  };
101
77
  /**
102
78
  * Get coding agent settings
103
- * @description Retrieve instance-wide coding agent enablement and provider selection
79
+ * @description Retrieve instance-wide coding agent enablement, provider selection, and Assistant chat approval policy
104
80
  */
105
81
  get: operations['get-settings-coding-agents'];
106
82
  /**
107
83
  * Update coding agent settings
108
- * @description Update instance-wide coding agent enablement and provider selection. Changes apply to new agents only.
84
+ * @description Update instance-wide coding agent enablement, provider selection, and Assistant chat approval policy. Changes apply to new handoffs. Investigations, automations, and watchers never wait for approval.
109
85
  */
110
86
  put: operations['put-settings-coding-agents'];
111
87
  post?: never;
@@ -144,12 +120,12 @@ export interface paths {
144
120
  };
145
121
  /**
146
122
  * Get investigation trigger settings
147
- * @description Retrieve investigation trigger settings (enablement, limits, skipped incident labels) for the current tenant
123
+ * @description Retrieve investigation trigger settings (skipped incident labels, incident severity filter) for the current tenant
148
124
  */
149
125
  get: operations['get-settings-investigation-triggers'];
150
126
  /**
151
127
  * Update investigation trigger settings
152
- * @description Update investigation trigger settings (enablement, limits, skipped incident labels) for the current tenant
128
+ * @description Update investigation trigger settings (skipped incident labels, incident severity filter) for the current tenant. Fields that are omitted keep their saved values.
153
129
  */
154
130
  put: operations['put-settings-investigation-triggers'];
155
131
  post?: never;
@@ -168,12 +144,12 @@ export interface paths {
168
144
  };
169
145
  /**
170
146
  * Get tenant investigation settings
171
- * @description Retrieve the tenant's investigation settings: alert continuation behavior and the loops toggle
147
+ * @description Retrieve the tenant's investigation behavior and tool approval settings
172
148
  */
173
149
  get: operations['get-settings-investigations'];
174
150
  /**
175
151
  * Update tenant investigation settings
176
- * @description Update the tenant's investigation settings: alert continuation behavior and the loops toggle
152
+ * @description Update the tenant's investigation behavior and tool approval settings
177
153
  */
178
154
  put: operations['put-settings-investigations'];
179
155
  post?: never;
@@ -183,6 +159,54 @@ export interface paths {
183
159
  patch?: never;
184
160
  trace?: never;
185
161
  };
162
+ '/settings/loki-query-policy': {
163
+ parameters: {
164
+ query?: never;
165
+ header?: never;
166
+ path?: never;
167
+ cookie?: never;
168
+ };
169
+ get?: never;
170
+ /**
171
+ * Set the tenant Loki query policy
172
+ * @description Override the default Loki query-cost policy for the current tenant. Read the effective policy from GET /query-policy/loki.
173
+ */
174
+ put: operations['put-settings-loki-query-policy'];
175
+ post?: never;
176
+ /**
177
+ * Remove the tenant Loki query policy override
178
+ * @description Remove the tenant override so the default Loki query-cost policy applies. Returns the effective policy.
179
+ */
180
+ delete: operations['delete-settings-loki-query-policy'];
181
+ options?: never;
182
+ head?: never;
183
+ patch?: never;
184
+ trace?: never;
185
+ };
186
+ '/settings/pages': {
187
+ parameters: {
188
+ query?: never;
189
+ header?: never;
190
+ path?: never;
191
+ cookie?: never;
192
+ };
193
+ /**
194
+ * Get Pages network access
195
+ * @description Read the tenant-wide allowlist for direct connections from Pages. An unsaved policy returns the default common-service origins; the current Grafana origin is always allowed. Inherited CSP and CORS still apply.
196
+ */
197
+ get: operations['get-settings-pages'];
198
+ /**
199
+ * Update Pages network access
200
+ * @description Replace the tenant-wide allowlist of HTTPS and WSS origins. An empty list allows only the current Grafana origin. Open Pages adopt changes on their next policy refresh.
201
+ */
202
+ put: operations['put-settings-pages'];
203
+ post?: never;
204
+ delete?: never;
205
+ options?: never;
206
+ head?: never;
207
+ patch?: never;
208
+ trace?: never;
209
+ };
186
210
  '/settings/sandbox': {
187
211
  parameters: {
188
212
  query?: never;
@@ -231,6 +255,30 @@ export interface paths {
231
255
  patch?: never;
232
256
  trace?: never;
233
257
  };
258
+ '/settings/slack-user-linking': {
259
+ parameters: {
260
+ query?: never;
261
+ header?: never;
262
+ path?: never;
263
+ cookie?: never;
264
+ };
265
+ /**
266
+ * Get Slack user-linking settings
267
+ * @description Retrieve the tenant-wide policy for automatically linking Slack users to Grafana users by exact email match
268
+ */
269
+ get: operations['get-settings-slack-user-linking'];
270
+ /**
271
+ * Update Slack user-linking settings
272
+ * @description Update the tenant-wide policy for automatically linking Slack users to Grafana users by exact email match
273
+ */
274
+ put: operations['put-settings-slack-user-linking'];
275
+ post?: never;
276
+ delete?: never;
277
+ options?: never;
278
+ head?: never;
279
+ patch?: never;
280
+ trace?: never;
281
+ };
234
282
  '/settings/sql-indexing': {
235
283
  parameters: {
236
284
  query?: never;
@@ -287,13 +335,27 @@ export interface components {
287
335
  */
288
336
  readonly $schema?: string;
289
337
  acceptedTermsAndConditions: boolean | null;
338
+ /**
339
+ * @description Terms type the caller displayed, as returned by GET /settings/terms.
340
+ * @enum {string}
341
+ */
342
+ termsType?: 'msa' | 'termsAndConditions';
343
+ /** @description Terms version the caller displayed, as returned by GET /settings/terms. */
344
+ version?: string;
290
345
  };
291
- AnalystSettingsResponse: {
292
- grafanaUrl?: string;
293
- /** Format: date-time */
294
- updatedAt: string;
295
- warehouseDatasourceType?: string;
296
- warehouseDatasourceUid?: string;
346
+ AlertInvestigationThrottleRule: {
347
+ /** Format: int64 */
348
+ maxInvestigations: number;
349
+ severity: string;
350
+ /** Format: int64 */
351
+ windowMinutes: number;
352
+ };
353
+ BoxSettings: {
354
+ /**
355
+ * Format: int64
356
+ * @description How many boxes each user may have starting, running, or stopping at once. Stopped boxes do not count.
357
+ */
358
+ maxRunningPerUser: number;
297
359
  };
298
360
  ChatRetentionSettingsResponse: {
299
361
  allowedPeriodDays: number[];
@@ -305,11 +367,31 @@ export interface components {
305
367
  /** Format: int64 */
306
368
  periodDays?: number;
307
369
  };
370
+ CodingAgentModelSettings: {
371
+ claude: components['schemas']['CodingAgentModels'];
372
+ cursor: components['schemas']['CodingAgentModels'];
373
+ };
374
+ CodingAgentModels: {
375
+ /** @description Provider model ID for implementation. Empty uses the default model. */
376
+ coding?: string;
377
+ /** @description Provider model ID for repository research. Empty uses the default model. */
378
+ discovery?: string;
379
+ };
308
380
  CodingAgentSettingsResponse: {
381
+ /** @description Grafana Box limits in effect, including defaults. */
382
+ boxes: components['schemas']['BoxSettings'];
309
383
  /** @enum {string} */
310
- defaultProvider: 'wingbox' | 'cursor';
384
+ defaultProvider: 'wingbox' | 'cursor' | 'claude';
311
385
  enabled: boolean;
312
386
  enabledProviders: string[];
387
+ models?: components['schemas']['CodingAgentModelSettings'];
388
+ /** @description Providers that must be confirmed in Assistant chat before spawn or resume. Investigations, automations, and watchers never wait, regardless of this list. */
389
+ requireAssistantChatApprovalProviders?: string[];
390
+ /**
391
+ * @deprecated
392
+ * @description Deprecated compatibility field. Always empty.
393
+ */
394
+ unattendedCloudAgentProviders: string[];
313
395
  /** Format: date-time */
314
396
  updatedAt?: string;
315
397
  };
@@ -334,19 +416,44 @@ export interface components {
334
416
  };
335
417
  InvestigationSettingsResponse: {
336
418
  customSkippedIncidentLabelsEnabled: boolean;
419
+ /** @description IRM incident severities that start an investigation, matched case-insensitively. Omitted when there is no severity filter: every severity except Maintenance starts one. */
420
+ incidentSeverities?: string[];
337
421
  skippedIncidentLabels: components['schemas']['SkippedIncidentLabel'][];
338
422
  /** Format: date-time */
339
423
  updatedAt: string;
340
424
  };
341
- ResponseBodyAnalystSettingsResponse: {
425
+ LokiQueryPolicyResponse: {
342
426
  /**
343
- * Format: uri
344
- * @description A URL to the JSON Schema for this object.
345
- * @example https://example.com/schemas/ResponseBodyAnalystSettingsResponse.json
427
+ * Format: int64
428
+ * @description Scan budget for one query in bytes, estimated from Loki index stats. 0 means no byte budget.
346
429
  */
347
- readonly $schema?: string;
348
- data: components['schemas']['AnalystSettingsResponse'];
349
- status: string;
430
+ maxBytes: number;
431
+ /**
432
+ * Format: int64
433
+ * @description Maximum effective time range of one query in seconds. 0 means no range cap.
434
+ */
435
+ maxRangeSeconds: number;
436
+ /**
437
+ * @description off skips evaluation, shadow records what would be blocked but admits every query, enforce rejects over-budget queries.
438
+ * @enum {string}
439
+ */
440
+ mode: 'off' | 'shadow' | 'enforce';
441
+ /**
442
+ * @description tenant when an administrator override applies, otherwise default.
443
+ * @enum {string}
444
+ */
445
+ source: 'default' | 'tenant';
446
+ };
447
+ PagesSettingsData: {
448
+ /** @description Whether users can approve additional sandbox hosts for a single conversation. Defaults to true. */
449
+ allowConversationSandboxHosts?: boolean;
450
+ /** @description Whether page authors can allow additional connection origins for a single page. Defaults to true. */
451
+ allowPageConnectOrigins?: boolean;
452
+ allowedConnectOrigins: string[];
453
+ /** @description Hosts every Pages sandbox can download from with HTTPS GET and HEAD requests, beyond the npm registry. A host starting with *. matches its subdomains. */
454
+ allowedSandboxHosts: string[];
455
+ /** Format: date-time */
456
+ updatedAt: string;
350
457
  };
351
458
  ResponseBodyChatRetentionSettingsResponse: {
352
459
  /**
@@ -378,6 +485,26 @@ export interface components {
378
485
  data: components['schemas']['InvestigationSettingsResponse'];
379
486
  status: string;
380
487
  };
488
+ ResponseBodyLokiQueryPolicyResponse: {
489
+ /**
490
+ * Format: uri
491
+ * @description A URL to the JSON Schema for this object.
492
+ * @example https://example.com/schemas/ResponseBodyLokiQueryPolicyResponse.json
493
+ */
494
+ readonly $schema?: string;
495
+ data: components['schemas']['LokiQueryPolicyResponse'];
496
+ status: string;
497
+ };
498
+ ResponseBodyPagesSettingsData: {
499
+ /**
500
+ * Format: uri
501
+ * @description A URL to the JSON Schema for this object.
502
+ * @example https://example.com/schemas/ResponseBodyPagesSettingsData.json
503
+ */
504
+ readonly $schema?: string;
505
+ data: components['schemas']['PagesSettingsData'];
506
+ status: string;
507
+ };
381
508
  ResponseBodySandboxSettingsResponse: {
382
509
  /**
383
510
  * Format: uri
@@ -388,6 +515,16 @@ export interface components {
388
515
  data: components['schemas']['SandboxSettingsResponse'];
389
516
  status: string;
390
517
  };
518
+ ResponseBodySlackUserLinkingSettingsResponse: {
519
+ /**
520
+ * Format: uri
521
+ * @description A URL to the JSON Schema for this object.
522
+ * @example https://example.com/schemas/ResponseBodySlackUserLinkingSettingsResponse.json
523
+ */
524
+ readonly $schema?: string;
525
+ data: components['schemas']['SlackUserLinkingSettingsResponse'];
526
+ status: string;
527
+ };
391
528
  ResponseBodySqlIndexingSettingsResponse: {
392
529
  /**
393
530
  * Format: uri
@@ -449,6 +586,13 @@ export interface components {
449
586
  key: string;
450
587
  value: string;
451
588
  };
589
+ SlackUserLinkingSettingsResponse: {
590
+ /** @description Whether automatic Slack user linking can run for this stack */
591
+ autoLinkAvailable: boolean;
592
+ autoLinkByEmail: boolean;
593
+ /** Format: date-time */
594
+ updatedAt?: string;
595
+ };
452
596
  SqlDatasourceConfigBody: {
453
597
  type: string;
454
598
  uid: string;
@@ -465,10 +609,27 @@ export interface components {
465
609
  updatedAt: string;
466
610
  };
467
611
  TenantInvestigationSettingsResponse: {
612
+ alertInvestigationThrottleRules: components['schemas']['AlertInvestigationThrottleRule'][];
613
+ /**
614
+ * @deprecated
615
+ * @description Deprecated compatibility field. Always false; investigation Loki cost checks cannot be bypassed.
616
+ */
617
+ autoApproveLokiQueries: boolean;
468
618
  /** Format: int64 */
469
619
  continuationWindowMinutes: number;
470
620
  continueOnAlertUpdates: boolean;
471
621
  continueOnIRMUpdates: boolean;
622
+ datasourceExecEnabled: boolean;
623
+ irmAlertInvestigationThrottleRules: components['schemas']['AlertInvestigationThrottleRule'][];
624
+ /**
625
+ * Format: int64
626
+ * @description How long after an investigation is created that a new IRM alert group for the same alert still joins it instead of starting a new investigation. Applies while continueOnIRMUpdates is on.
627
+ */
628
+ irmContinuationWindowMinutes: number;
629
+ /**
630
+ * @deprecated
631
+ * @description Deprecated compatibility field. Always true; the tenant loop setting is retired.
632
+ */
472
633
  loopsEnabled: boolean;
473
634
  /** Format: date-time */
474
635
  updatedAt: string;
@@ -485,6 +646,8 @@ export interface components {
485
646
  version?: string;
486
647
  };
487
648
  TermsAndConditionsResponse: {
649
+ /** Format: date-time */
650
+ acceptedAt?: string;
488
651
  acceptedTermsAndConditions?: boolean;
489
652
  acceptedVersion?: string;
490
653
  content: string;
@@ -492,16 +655,6 @@ export interface components {
492
655
  termsType: 'msa' | 'termsAndConditions';
493
656
  version: string;
494
657
  };
495
- UpdateAnalystSettingsBody: {
496
- /**
497
- * Format: uri
498
- * @description A URL to the JSON Schema for this object.
499
- * @example https://example.com/schemas/UpdateAnalystSettingsBody.json
500
- */
501
- readonly $schema?: string;
502
- warehouseDatasourceType?: string;
503
- warehouseDatasourceUid?: string;
504
- };
505
658
  UpdateChatRetentionSettingsBody: {
506
659
  /**
507
660
  * Format: uri
@@ -520,10 +673,21 @@ export interface components {
520
673
  * @example https://example.com/schemas/UpdateCodingAgentSettingsInputBody.json
521
674
  */
522
675
  readonly $schema?: string;
676
+ /** @description Grafana Box limits. Omit to preserve the current limits. */
677
+ boxes?: components['schemas']['BoxSettings'];
523
678
  /** @enum {string} */
524
- defaultProvider: 'wingbox' | 'cursor';
679
+ defaultProvider: 'wingbox' | 'cursor' | 'claude';
525
680
  enabled: boolean;
526
681
  enabledProviders: string[];
682
+ /** @description Cursor and Claude model defaults for new agents. Omit to preserve existing choices; send empty model IDs to restore defaults. Existing agents keep their models. */
683
+ models?: components['schemas']['CodingAgentModelSettings'];
684
+ /** @description Providers that must be confirmed in Assistant chat before spawn or resume. Omit to keep the Cursor/Claude default for enabled cloud providers. Send an empty list to skip Assistant chat confirmation. Autonomous workflows never wait. */
685
+ requireAssistantChatApprovalProviders?: string[];
686
+ /**
687
+ * @deprecated
688
+ * @description Deprecated compatibility field. Accepted and ignored.
689
+ */
690
+ unattendedCloudAgentProviders?: string[];
527
691
  };
528
692
  UpdateInfraMemorySettingsBody: {
529
693
  /**
@@ -544,7 +708,45 @@ export interface components {
544
708
  */
545
709
  readonly $schema?: string;
546
710
  customSkippedIncidentLabelsEnabled?: boolean;
547
- skippedIncidentLabels: components['schemas']['SkippedIncidentLabel'][];
711
+ /** @description IRM incident severities that start an investigation, for example Critical or Major; matched case-insensitively. Send an empty list to remove the filter, so every severity except Maintenance starts one. Maintenance cannot be selected. Omit to keep the saved filter. */
712
+ incidentSeverities?: string[];
713
+ /** @description Incident labels (key:value) that skip an investigation. Omit to keep the saved list. */
714
+ skippedIncidentLabels?: components['schemas']['SkippedIncidentLabel'][];
715
+ };
716
+ UpdateLokiQueryPolicyInputBody: {
717
+ /**
718
+ * Format: uri
719
+ * @description A URL to the JSON Schema for this object.
720
+ * @example https://example.com/schemas/UpdateLokiQueryPolicyInputBody.json
721
+ */
722
+ readonly $schema?: string;
723
+ /**
724
+ * Format: int64
725
+ * @description 0 disables the byte budget; otherwise at least 1 GiB.
726
+ */
727
+ maxBytes: number | null;
728
+ /**
729
+ * Format: int64
730
+ * @description 0 disables the range cap; otherwise between 1 hour and 365 days.
731
+ */
732
+ maxRangeSeconds: number | null;
733
+ /** @enum {string} */
734
+ mode: 'off' | 'shadow' | 'enforce';
735
+ };
736
+ UpdatePagesSettingsInputBody: {
737
+ /**
738
+ * Format: uri
739
+ * @description A URL to the JSON Schema for this object.
740
+ * @example https://example.com/schemas/UpdatePagesSettingsInputBody.json
741
+ */
742
+ readonly $schema?: string;
743
+ /** @description Whether users can approve additional sandbox hosts for a single conversation. Omit to keep the current value. */
744
+ allowConversationSandboxHosts?: boolean;
745
+ /** @description Whether page authors can allow additional connection origins for a single page. Omit to keep the current value. */
746
+ allowPageConnectOrigins?: boolean;
747
+ allowedConnectOrigins: string[];
748
+ /** @description Hosts every Pages sandbox can download from with HTTPS GET and HEAD requests, beyond the npm registry. Omit to keep the current list. */
749
+ allowedSandboxHosts?: string[];
548
750
  };
549
751
  UpdateSandboxSettingsBody: {
550
752
  /**
@@ -557,6 +759,15 @@ export interface components {
557
759
  blockedHosts: string[];
558
760
  networkEnabled: boolean;
559
761
  };
762
+ UpdateSlackUserLinkingSettingsInputBody: {
763
+ /**
764
+ * Format: uri
765
+ * @description A URL to the JSON Schema for this object.
766
+ * @example https://example.com/schemas/UpdateSlackUserLinkingSettingsInputBody.json
767
+ */
768
+ readonly $schema?: string;
769
+ autoLinkByEmail: boolean | null;
770
+ };
560
771
  UpdateSqlIndexingSettingsBody: {
561
772
  /**
562
773
  * Format: uri
@@ -575,10 +786,24 @@ export interface components {
575
786
  * @example https://example.com/schemas/UpdateTenantInvestigationSettingsBody.json
576
787
  */
577
788
  readonly $schema?: string;
789
+ alertInvestigationThrottleRules?: components['schemas']['AlertInvestigationThrottleRule'][];
790
+ /**
791
+ * @deprecated
792
+ * @description Deprecated compatibility field. Accepted and ignored.
793
+ */
794
+ autoApproveLokiQueries?: boolean;
578
795
  /** Format: int64 */
579
796
  continuationWindowMinutes?: number;
580
797
  continueOnAlertUpdates?: boolean;
581
798
  continueOnIRMUpdates?: boolean;
799
+ datasourceExecEnabled?: boolean;
800
+ irmAlertInvestigationThrottleRules?: components['schemas']['AlertInvestigationThrottleRule'][];
801
+ /** Format: int64 */
802
+ irmContinuationWindowMinutes?: number;
803
+ /**
804
+ * @deprecated
805
+ * @description Deprecated compatibility field. Accepted and ignored.
806
+ */
582
807
  loopsEnabled?: boolean;
583
808
  };
584
809
  UpdateUserSandboxSettingsBody: {
@@ -682,7 +907,7 @@ export interface operations {
682
907
  };
683
908
  };
684
909
  };
685
- 'get-settings-analyst': {
910
+ 'get-settings-chat-retention': {
686
911
  parameters: {
687
912
  query?: never;
688
913
  header?: {
@@ -705,7 +930,7 @@ export interface operations {
705
930
  [name: string]: unknown;
706
931
  };
707
932
  content: {
708
- 'application/json': components['schemas']['ResponseBodyAnalystSettingsResponse'];
933
+ 'application/json': components['schemas']['ResponseBodyChatRetentionSettingsResponse'];
709
934
  };
710
935
  };
711
936
  /** @description Error */
@@ -719,7 +944,7 @@ export interface operations {
719
944
  };
720
945
  };
721
946
  };
722
- 'put-settings-analyst': {
947
+ 'put-settings-chat-retention': {
723
948
  parameters: {
724
949
  query?: never;
725
950
  header?: {
@@ -736,7 +961,7 @@ export interface operations {
736
961
  };
737
962
  requestBody: {
738
963
  content: {
739
- 'application/json': components['schemas']['UpdateAnalystSettingsBody'];
964
+ 'application/json': components['schemas']['UpdateChatRetentionSettingsBody'];
740
965
  };
741
966
  };
742
967
  responses: {
@@ -746,7 +971,7 @@ export interface operations {
746
971
  [name: string]: unknown;
747
972
  };
748
973
  content: {
749
- 'application/json': components['schemas']['ResponseBodyAnalystSettingsResponse'];
974
+ 'application/json': components['schemas']['ResponseBodyChatRetentionSettingsResponse'];
750
975
  };
751
976
  };
752
977
  /** @description Error */
@@ -760,7 +985,7 @@ export interface operations {
760
985
  };
761
986
  };
762
987
  };
763
- 'get-settings-chat-retention': {
988
+ 'get-settings-coding-agents': {
764
989
  parameters: {
765
990
  query?: never;
766
991
  header?: {
@@ -783,7 +1008,7 @@ export interface operations {
783
1008
  [name: string]: unknown;
784
1009
  };
785
1010
  content: {
786
- 'application/json': components['schemas']['ResponseBodyChatRetentionSettingsResponse'];
1011
+ 'application/json': components['schemas']['ResponseBodyCodingAgentSettingsResponse'];
787
1012
  };
788
1013
  };
789
1014
  /** @description Error */
@@ -797,7 +1022,7 @@ export interface operations {
797
1022
  };
798
1023
  };
799
1024
  };
800
- 'put-settings-chat-retention': {
1025
+ 'put-settings-coding-agents': {
801
1026
  parameters: {
802
1027
  query?: never;
803
1028
  header?: {
@@ -814,7 +1039,7 @@ export interface operations {
814
1039
  };
815
1040
  requestBody: {
816
1041
  content: {
817
- 'application/json': components['schemas']['UpdateChatRetentionSettingsBody'];
1042
+ 'application/json': components['schemas']['UpdateCodingAgentSettingsInputBody'];
818
1043
  };
819
1044
  };
820
1045
  responses: {
@@ -824,7 +1049,7 @@ export interface operations {
824
1049
  [name: string]: unknown;
825
1050
  };
826
1051
  content: {
827
- 'application/json': components['schemas']['ResponseBodyChatRetentionSettingsResponse'];
1052
+ 'application/json': components['schemas']['ResponseBodyCodingAgentSettingsResponse'];
828
1053
  };
829
1054
  };
830
1055
  /** @description Error */
@@ -838,7 +1063,7 @@ export interface operations {
838
1063
  };
839
1064
  };
840
1065
  };
841
- 'get-settings-coding-agents': {
1066
+ 'put-settings-infra-memory': {
842
1067
  parameters: {
843
1068
  query?: never;
844
1069
  header?: {
@@ -853,7 +1078,11 @@ export interface operations {
853
1078
  path?: never;
854
1079
  cookie?: never;
855
1080
  };
856
- requestBody?: never;
1081
+ requestBody: {
1082
+ content: {
1083
+ 'application/json': components['schemas']['UpdateInfraMemorySettingsBody'];
1084
+ };
1085
+ };
857
1086
  responses: {
858
1087
  /** @description OK */
859
1088
  200: {
@@ -861,7 +1090,7 @@ export interface operations {
861
1090
  [name: string]: unknown;
862
1091
  };
863
1092
  content: {
864
- 'application/json': components['schemas']['ResponseBodyCodingAgentSettingsResponse'];
1093
+ 'application/json': components['schemas']['ResponseBodyTenantSettingResponse'];
865
1094
  };
866
1095
  };
867
1096
  /** @description Error */
@@ -875,7 +1104,7 @@ export interface operations {
875
1104
  };
876
1105
  };
877
1106
  };
878
- 'put-settings-coding-agents': {
1107
+ 'get-settings-investigation-triggers': {
879
1108
  parameters: {
880
1109
  query?: never;
881
1110
  header?: {
@@ -890,11 +1119,7 @@ export interface operations {
890
1119
  path?: never;
891
1120
  cookie?: never;
892
1121
  };
893
- requestBody: {
894
- content: {
895
- 'application/json': components['schemas']['UpdateCodingAgentSettingsInputBody'];
896
- };
897
- };
1122
+ requestBody?: never;
898
1123
  responses: {
899
1124
  /** @description OK */
900
1125
  200: {
@@ -902,7 +1127,7 @@ export interface operations {
902
1127
  [name: string]: unknown;
903
1128
  };
904
1129
  content: {
905
- 'application/json': components['schemas']['ResponseBodyCodingAgentSettingsResponse'];
1130
+ 'application/json': components['schemas']['ResponseBodyInvestigationSettingsResponse'];
906
1131
  };
907
1132
  };
908
1133
  /** @description Error */
@@ -916,7 +1141,7 @@ export interface operations {
916
1141
  };
917
1142
  };
918
1143
  };
919
- 'put-settings-infra-memory': {
1144
+ 'put-settings-investigation-triggers': {
920
1145
  parameters: {
921
1146
  query?: never;
922
1147
  header?: {
@@ -933,7 +1158,7 @@ export interface operations {
933
1158
  };
934
1159
  requestBody: {
935
1160
  content: {
936
- 'application/json': components['schemas']['UpdateInfraMemorySettingsBody'];
1161
+ 'application/json': components['schemas']['UpdateInvestigationSettingsBody'];
937
1162
  };
938
1163
  };
939
1164
  responses: {
@@ -943,7 +1168,7 @@ export interface operations {
943
1168
  [name: string]: unknown;
944
1169
  };
945
1170
  content: {
946
- 'application/json': components['schemas']['ResponseBodyTenantSettingResponse'];
1171
+ 'application/json': components['schemas']['ResponseBodyInvestigationSettingsResponse'];
947
1172
  };
948
1173
  };
949
1174
  /** @description Error */
@@ -957,7 +1182,7 @@ export interface operations {
957
1182
  };
958
1183
  };
959
1184
  };
960
- 'get-settings-investigation-triggers': {
1185
+ 'get-settings-investigations': {
961
1186
  parameters: {
962
1187
  query?: never;
963
1188
  header?: {
@@ -980,7 +1205,7 @@ export interface operations {
980
1205
  [name: string]: unknown;
981
1206
  };
982
1207
  content: {
983
- 'application/json': components['schemas']['ResponseBodyInvestigationSettingsResponse'];
1208
+ 'application/json': components['schemas']['ResponseBodyTenantInvestigationSettingsResponse'];
984
1209
  };
985
1210
  };
986
1211
  /** @description Error */
@@ -994,7 +1219,7 @@ export interface operations {
994
1219
  };
995
1220
  };
996
1221
  };
997
- 'put-settings-investigation-triggers': {
1222
+ 'put-settings-investigations': {
998
1223
  parameters: {
999
1224
  query?: never;
1000
1225
  header?: {
@@ -1011,7 +1236,7 @@ export interface operations {
1011
1236
  };
1012
1237
  requestBody: {
1013
1238
  content: {
1014
- 'application/json': components['schemas']['UpdateInvestigationSettingsBody'];
1239
+ 'application/json': components['schemas']['UpdateTenantInvestigationSettingsBody'];
1015
1240
  };
1016
1241
  };
1017
1242
  responses: {
@@ -1021,7 +1246,7 @@ export interface operations {
1021
1246
  [name: string]: unknown;
1022
1247
  };
1023
1248
  content: {
1024
- 'application/json': components['schemas']['ResponseBodyInvestigationSettingsResponse'];
1249
+ 'application/json': components['schemas']['ResponseBodyTenantInvestigationSettingsResponse'];
1025
1250
  };
1026
1251
  };
1027
1252
  /** @description Error */
@@ -1035,7 +1260,48 @@ export interface operations {
1035
1260
  };
1036
1261
  };
1037
1262
  };
1038
- 'get-settings-investigations': {
1263
+ 'put-settings-loki-query-policy': {
1264
+ parameters: {
1265
+ query?: never;
1266
+ header?: {
1267
+ 'X-Scope-OrgID'?: string;
1268
+ 'X-Grafana-User'?: string;
1269
+ 'X-Grafana-User-ID'?: string;
1270
+ 'X-Grafana-URL'?: string;
1271
+ 'X-Grafana-API-Key'?: string;
1272
+ 'X-Oss-Mode'?: boolean;
1273
+ 'X-User-Type'?: string;
1274
+ };
1275
+ path?: never;
1276
+ cookie?: never;
1277
+ };
1278
+ requestBody: {
1279
+ content: {
1280
+ 'application/json': components['schemas']['UpdateLokiQueryPolicyInputBody'];
1281
+ };
1282
+ };
1283
+ responses: {
1284
+ /** @description OK */
1285
+ 200: {
1286
+ headers: {
1287
+ [name: string]: unknown;
1288
+ };
1289
+ content: {
1290
+ 'application/json': components['schemas']['ResponseBodyLokiQueryPolicyResponse'];
1291
+ };
1292
+ };
1293
+ /** @description Error */
1294
+ default: {
1295
+ headers: {
1296
+ [name: string]: unknown;
1297
+ };
1298
+ content: {
1299
+ 'application/json': components['schemas']['Error'];
1300
+ };
1301
+ };
1302
+ };
1303
+ };
1304
+ 'delete-settings-loki-query-policy': {
1039
1305
  parameters: {
1040
1306
  query?: never;
1041
1307
  header?: {
@@ -1058,7 +1324,7 @@ export interface operations {
1058
1324
  [name: string]: unknown;
1059
1325
  };
1060
1326
  content: {
1061
- 'application/json': components['schemas']['ResponseBodyTenantInvestigationSettingsResponse'];
1327
+ 'application/json': components['schemas']['ResponseBodyLokiQueryPolicyResponse'];
1062
1328
  };
1063
1329
  };
1064
1330
  /** @description Error */
@@ -1072,7 +1338,44 @@ export interface operations {
1072
1338
  };
1073
1339
  };
1074
1340
  };
1075
- 'put-settings-investigations': {
1341
+ 'get-settings-pages': {
1342
+ parameters: {
1343
+ query?: never;
1344
+ header?: {
1345
+ 'X-Scope-OrgID'?: string;
1346
+ 'X-Grafana-User'?: string;
1347
+ 'X-Grafana-User-ID'?: string;
1348
+ 'X-Grafana-URL'?: string;
1349
+ 'X-Grafana-API-Key'?: string;
1350
+ 'X-Oss-Mode'?: boolean;
1351
+ 'X-User-Type'?: string;
1352
+ };
1353
+ path?: never;
1354
+ cookie?: never;
1355
+ };
1356
+ requestBody?: never;
1357
+ responses: {
1358
+ /** @description OK */
1359
+ 200: {
1360
+ headers: {
1361
+ [name: string]: unknown;
1362
+ };
1363
+ content: {
1364
+ 'application/json': components['schemas']['ResponseBodyPagesSettingsData'];
1365
+ };
1366
+ };
1367
+ /** @description Error */
1368
+ default: {
1369
+ headers: {
1370
+ [name: string]: unknown;
1371
+ };
1372
+ content: {
1373
+ 'application/json': components['schemas']['Error'];
1374
+ };
1375
+ };
1376
+ };
1377
+ };
1378
+ 'put-settings-pages': {
1076
1379
  parameters: {
1077
1380
  query?: never;
1078
1381
  header?: {
@@ -1089,7 +1392,7 @@ export interface operations {
1089
1392
  };
1090
1393
  requestBody: {
1091
1394
  content: {
1092
- 'application/json': components['schemas']['UpdateTenantInvestigationSettingsBody'];
1395
+ 'application/json': components['schemas']['UpdatePagesSettingsInputBody'];
1093
1396
  };
1094
1397
  };
1095
1398
  responses: {
@@ -1099,7 +1402,7 @@ export interface operations {
1099
1402
  [name: string]: unknown;
1100
1403
  };
1101
1404
  content: {
1102
- 'application/json': components['schemas']['ResponseBodyTenantInvestigationSettingsResponse'];
1405
+ 'application/json': components['schemas']['ResponseBodyPagesSettingsData'];
1103
1406
  };
1104
1407
  };
1105
1408
  /** @description Error */
@@ -1269,6 +1572,84 @@ export interface operations {
1269
1572
  };
1270
1573
  };
1271
1574
  };
1575
+ 'get-settings-slack-user-linking': {
1576
+ parameters: {
1577
+ query?: never;
1578
+ header?: {
1579
+ 'X-Scope-OrgID'?: string;
1580
+ 'X-Grafana-User'?: string;
1581
+ 'X-Grafana-User-ID'?: string;
1582
+ 'X-Grafana-URL'?: string;
1583
+ 'X-Grafana-API-Key'?: string;
1584
+ 'X-Oss-Mode'?: boolean;
1585
+ 'X-User-Type'?: string;
1586
+ };
1587
+ path?: never;
1588
+ cookie?: never;
1589
+ };
1590
+ requestBody?: never;
1591
+ responses: {
1592
+ /** @description OK */
1593
+ 200: {
1594
+ headers: {
1595
+ [name: string]: unknown;
1596
+ };
1597
+ content: {
1598
+ 'application/json': components['schemas']['ResponseBodySlackUserLinkingSettingsResponse'];
1599
+ };
1600
+ };
1601
+ /** @description Error */
1602
+ default: {
1603
+ headers: {
1604
+ [name: string]: unknown;
1605
+ };
1606
+ content: {
1607
+ 'application/json': components['schemas']['Error'];
1608
+ };
1609
+ };
1610
+ };
1611
+ };
1612
+ 'put-settings-slack-user-linking': {
1613
+ parameters: {
1614
+ query?: never;
1615
+ header?: {
1616
+ 'X-Scope-OrgID'?: string;
1617
+ 'X-Grafana-User'?: string;
1618
+ 'X-Grafana-User-ID'?: string;
1619
+ 'X-Grafana-URL'?: string;
1620
+ 'X-Grafana-API-Key'?: string;
1621
+ 'X-Oss-Mode'?: boolean;
1622
+ 'X-User-Type'?: string;
1623
+ };
1624
+ path?: never;
1625
+ cookie?: never;
1626
+ };
1627
+ requestBody: {
1628
+ content: {
1629
+ 'application/json': components['schemas']['UpdateSlackUserLinkingSettingsInputBody'];
1630
+ };
1631
+ };
1632
+ responses: {
1633
+ /** @description OK */
1634
+ 200: {
1635
+ headers: {
1636
+ [name: string]: unknown;
1637
+ };
1638
+ content: {
1639
+ 'application/json': components['schemas']['ResponseBodySlackUserLinkingSettingsResponse'];
1640
+ };
1641
+ };
1642
+ /** @description Error */
1643
+ default: {
1644
+ headers: {
1645
+ [name: string]: unknown;
1646
+ };
1647
+ content: {
1648
+ 'application/json': components['schemas']['Error'];
1649
+ };
1650
+ };
1651
+ };
1652
+ };
1272
1653
  'get-settings-sql-indexing': {
1273
1654
  parameters: {
1274
1655
  query?: never;