kb-cloud-client-typescript 2.4.0-alpha.104 → 2.4.0-alpha.105

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 (61) hide show
  1. package/dist/adminapi/apis/aiagent-api.d.ts +6 -6
  2. package/dist/adminapi/apis/aiagent-api.js +4 -4
  3. package/dist/adminapi/apis/alert-rule-api.d.ts +223 -0
  4. package/dist/adminapi/apis/alert-rule-api.d.ts.map +1 -1
  5. package/dist/adminapi/apis/alert-rule-api.js +241 -0
  6. package/dist/adminapi/apis/alert-rule-api.js.map +1 -1
  7. package/dist/adminapi/apis/shared-api.d.ts +222 -0
  8. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  9. package/dist/adminapi/apis/shared-api.js +241 -0
  10. package/dist/adminapi/apis/shared-api.js.map +1 -1
  11. package/dist/adminapi/models/ai-agent-turn-action-list.d.ts +12 -0
  12. package/dist/adminapi/models/ai-agent-turn-action-list.d.ts.map +1 -1
  13. package/dist/adminapi/models/alert-resource-type.d.ts +22 -0
  14. package/dist/adminapi/models/alert-resource-type.d.ts.map +1 -0
  15. package/dist/adminapi/models/alert-resource-type.js +26 -0
  16. package/dist/adminapi/models/alert-resource-type.js.map +1 -0
  17. package/dist/adminapi/models/index.d.ts +1 -0
  18. package/dist/adminapi/models/index.d.ts.map +1 -1
  19. package/dist/adminapi/models/index.js +1 -0
  20. package/dist/adminapi/models/index.js.map +1 -1
  21. package/dist/adminapi/models/inspection-task.d.ts +2 -2
  22. package/dist/openapi/apis/aiagent-api.d.ts +6 -6
  23. package/dist/openapi/apis/aiagent-api.js +4 -4
  24. package/dist/openapi/apis/alert-rule-api.d.ts +223 -0
  25. package/dist/openapi/apis/alert-rule-api.d.ts.map +1 -1
  26. package/dist/openapi/apis/alert-rule-api.js +241 -0
  27. package/dist/openapi/apis/alert-rule-api.js.map +1 -1
  28. package/dist/openapi/apis/shared-api.d.ts +222 -0
  29. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  30. package/dist/openapi/apis/shared-api.js +241 -0
  31. package/dist/openapi/apis/shared-api.js.map +1 -1
  32. package/dist/openapi/models/ai-agent-turn-action-list.d.ts +12 -0
  33. package/dist/openapi/models/ai-agent-turn-action-list.d.ts.map +1 -1
  34. package/dist/openapi/models/alert-resource-type.d.ts +22 -0
  35. package/dist/openapi/models/alert-resource-type.d.ts.map +1 -0
  36. package/dist/openapi/models/alert-resource-type.js +26 -0
  37. package/dist/openapi/models/alert-resource-type.js.map +1 -0
  38. package/dist/openapi/models/index.d.ts +1 -0
  39. package/dist/openapi/models/index.d.ts.map +1 -1
  40. package/dist/openapi/models/index.js +1 -0
  41. package/dist/openapi/models/index.js.map +1 -1
  42. package/dist/openapi/models/inspection-task.d.ts +2 -2
  43. package/package.json +1 -1
  44. package/src/adminapi/.openapi-generator/FILES +1 -0
  45. package/src/adminapi/apis/aiagent-api.ts +6 -6
  46. package/src/adminapi/apis/alert-rule-api.ts +388 -0
  47. package/src/adminapi/apis/shared-api.ts +386 -0
  48. package/src/adminapi/models/ai-agent-turn-action-list.ts +12 -0
  49. package/src/adminapi/models/alert-resource-type.ts +31 -0
  50. package/src/adminapi/models/index.ts +1 -0
  51. package/src/adminapi/models/inspection-task.ts +2 -2
  52. package/src/adminapi.yaml +133 -2
  53. package/src/openapi/.openapi-generator/FILES +1 -0
  54. package/src/openapi/apis/aiagent-api.ts +6 -6
  55. package/src/openapi/apis/alert-rule-api.ts +388 -0
  56. package/src/openapi/apis/shared-api.ts +386 -0
  57. package/src/openapi/models/ai-agent-turn-action-list.ts +12 -0
  58. package/src/openapi/models/alert-resource-type.ts +31 -0
  59. package/src/openapi/models/index.ts +1 -0
  60. package/src/openapi/models/inspection-task.ts +2 -2
  61. package/src/openapi.yaml +133 -2
package/src/openapi.yaml CHANGED
@@ -10449,6 +10449,124 @@ paths:
10449
10449
  $ref: '#/components/responses/403'
10450
10450
  '404':
10451
10451
  $ref: '#/components/responses/404'
10452
+ /api/v1/organizations/{orgName}/alerts/resource/{resourceType}/{resourceID}/rules:
10453
+ get:
10454
+ tags:
10455
+ - alertRule
10456
+ - shared
10457
+ operationId: listResourceAlertRules
10458
+ summary: List applicable alert rules for a resource
10459
+ parameters:
10460
+ - name: orgName
10461
+ in: path
10462
+ description: name of the Org
10463
+ required: true
10464
+ schema:
10465
+ type: string
10466
+ - name: resourceType
10467
+ in: path
10468
+ description: resourceType
10469
+ required: true
10470
+ schema:
10471
+ $ref: '#/components/schemas/alertResourceType'
10472
+ - name: resourceID
10473
+ in: path
10474
+ required: true
10475
+ schema:
10476
+ type: string
10477
+ responses:
10478
+ '200':
10479
+ description: A successful response.
10480
+ content:
10481
+ application/json:
10482
+ schema:
10483
+ $ref: '#/components/schemas/alertRuleList'
10484
+ '401':
10485
+ $ref: '#/components/responses/401'
10486
+ '403':
10487
+ $ref: '#/components/responses/403'
10488
+ '404':
10489
+ $ref: '#/components/responses/404'
10490
+ /api/v1/organizations/{orgName}/alerts/resource/{resourceType}/{resourceID}:
10491
+ get:
10492
+ tags:
10493
+ - alertRule
10494
+ - shared
10495
+ operationId: getResourceAlertDisabled
10496
+ summary: Get resource alert settings
10497
+ parameters:
10498
+ - name: orgName
10499
+ in: path
10500
+ description: name of the Org
10501
+ required: true
10502
+ schema:
10503
+ type: string
10504
+ - name: resourceType
10505
+ in: path
10506
+ description: resourceType
10507
+ required: true
10508
+ schema:
10509
+ $ref: '#/components/schemas/alertResourceType'
10510
+ - name: resourceID
10511
+ in: path
10512
+ required: true
10513
+ schema:
10514
+ type: string
10515
+ responses:
10516
+ '200':
10517
+ description: A successful response.
10518
+ content:
10519
+ application/json:
10520
+ schema:
10521
+ $ref: '#/components/schemas/alertCluster'
10522
+ '401':
10523
+ $ref: '#/components/responses/401'
10524
+ '403':
10525
+ $ref: '#/components/responses/403'
10526
+ '404':
10527
+ $ref: '#/components/responses/404'
10528
+ patch:
10529
+ tags:
10530
+ - alertRule
10531
+ - shared
10532
+ operationId: setResourceAlertDisabled
10533
+ summary: Update resource alert settings
10534
+ parameters:
10535
+ - name: orgName
10536
+ in: path
10537
+ description: name of the Org
10538
+ required: true
10539
+ schema:
10540
+ type: string
10541
+ - name: resourceType
10542
+ in: path
10543
+ description: resourceType
10544
+ required: true
10545
+ schema:
10546
+ $ref: '#/components/schemas/alertResourceType'
10547
+ - name: resourceID
10548
+ in: path
10549
+ required: true
10550
+ schema:
10551
+ type: string
10552
+ requestBody:
10553
+ content:
10554
+ application/json:
10555
+ schema:
10556
+ $ref: '#/components/schemas/alertCluster'
10557
+ responses:
10558
+ '200':
10559
+ description: A successful response.
10560
+ content:
10561
+ application/json:
10562
+ schema:
10563
+ $ref: '#/components/schemas/alertCluster'
10564
+ '401':
10565
+ $ref: '#/components/responses/401'
10566
+ '403':
10567
+ $ref: '#/components/responses/403'
10568
+ '404':
10569
+ $ref: '#/components/responses/404'
10452
10570
  /api/v1/organizations/{orgName}/alerts/config:
10453
10571
  get:
10454
10572
  tags:
@@ -22300,11 +22418,13 @@ paths:
22300
22418
  type: string
22301
22419
  - name: after
22302
22420
  in: query
22421
+ description: Raw action cursor from the preceding response's nextCursor.
22303
22422
  required: false
22304
22423
  schema:
22305
22424
  type: string
22306
22425
  - name: limit
22307
22426
  in: query
22427
+ description: Raw action page budget. The last turn is read in full before coalescing; use hasMore and nextCursor rather than the returned item count.
22308
22428
  required: false
22309
22429
  schema:
22310
22430
  type: integer
@@ -34589,6 +34709,11 @@ components:
34589
34709
  type: boolean
34590
34710
  readOnly: true
34591
34711
  description: Whether the configured silence window is active now, regardless of the alert master switch.
34712
+ alertResourceType:
34713
+ type: string
34714
+ enum:
34715
+ - cluster
34716
+ - channel
34592
34717
  alertConfig:
34593
34718
  required:
34594
34719
  - timeZoneOffset
@@ -42960,6 +43085,12 @@ components:
42960
43085
  type: array
42961
43086
  items:
42962
43087
  $ref: '#/components/schemas/aiAgentTurnAction'
43088
+ nextCursor:
43089
+ type: string
43090
+ description: Raw action cursor for the next page; independent of coalesced item IDs and timestamps.
43091
+ hasMore:
43092
+ type: boolean
43093
+ description: Whether more actions are available. Pages finish the last turn before coalescing, so item counts must not be used to detect the final page.
42963
43094
  aiAgentEvent:
42964
43095
  type: object
42965
43096
  required:
@@ -44656,10 +44787,10 @@ components:
44656
44787
  type: integer
44657
44788
  format: int64
44658
44789
  x-nullable: true
44659
- description: Weighted health score from 0 to 100 over evaluable inspection items only. Unknown results and items with info importance are excluded from both the numerator and denominator. The field is omitted when no item is evaluable; a present value of 0 is a valid evaluated score.
44790
+ description: Weighted health score from 0 to 100 over evaluable inspection items only. Unknown results and items with info importance are excluded from both the numerator and denominator. The field is omitted when no item is evaluable. Doris and SelectDB also omit it when risk-check evidence is unavailable, and score correlated findings once per failure family. A present value of 0 is a valid evaluated score.
44660
44791
  result:
44661
44792
  type: string
44662
- description: Task health conclusion derived from evaluable item states and criticality-aware score caps. Valid conclusions are red, yellow, green, and unknown. Unknown means no item is evaluable. Unknown items remain visible in the item list but do not override a red, yellow, or green conclusion derived from evaluable items.
44793
+ description: Task health conclusion derived from evaluable item states and criticality-aware score caps. Valid conclusions are red, yellow, green, and unknown. Unknown means no item is evaluable, or a Doris/SelectDB inspection has unavailable risk-check evidence without an observed red or yellow finding. Unavailable evidence never hides an observed red or yellow finding.
44663
44794
  latestRunAt:
44664
44795
  format: date-time
44665
44796
  type: string