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

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 +145 -14
  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 +145 -14
package/src/openapi.yaml CHANGED
@@ -155,7 +155,7 @@ paths:
155
155
  '404':
156
156
  $ref: '#/components/responses/404'
157
157
  '409':
158
- description: Conflict; refresh or remove role bindings first
158
+ $ref: '#/components/responses/409'
159
159
  '500':
160
160
  $ref: '#/components/responses/500'
161
161
  requestBody:
@@ -212,7 +212,7 @@ paths:
212
212
  '404':
213
213
  $ref: '#/components/responses/404'
214
214
  '409':
215
- description: Conflict; refresh or remove role bindings first
215
+ $ref: '#/components/responses/409'
216
216
  '500':
217
217
  $ref: '#/components/responses/500'
218
218
  post:
@@ -245,7 +245,7 @@ paths:
245
245
  '404':
246
246
  $ref: '#/components/responses/404'
247
247
  '409':
248
- description: Conflict; refresh or remove role bindings first
248
+ $ref: '#/components/responses/409'
249
249
  '500':
250
250
  $ref: '#/components/responses/500'
251
251
  requestBody:
@@ -372,7 +372,7 @@ paths:
372
372
  '404':
373
373
  $ref: '#/components/responses/404'
374
374
  '409':
375
- description: Conflict; refresh or remove role bindings first
375
+ $ref: '#/components/responses/409'
376
376
  '500':
377
377
  $ref: '#/components/responses/500'
378
378
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles:
@@ -417,7 +417,7 @@ paths:
417
417
  '404':
418
418
  $ref: '#/components/responses/404'
419
419
  '409':
420
- description: Conflict; refresh or remove role bindings first
420
+ $ref: '#/components/responses/409'
421
421
  '500':
422
422
  $ref: '#/components/responses/500'
423
423
  post:
@@ -450,7 +450,7 @@ paths:
450
450
  '404':
451
451
  $ref: '#/components/responses/404'
452
452
  '409':
453
- description: Conflict; refresh or remove role bindings first
453
+ $ref: '#/components/responses/409'
454
454
  '500':
455
455
  $ref: '#/components/responses/500'
456
456
  requestBody:
@@ -504,7 +504,7 @@ paths:
504
504
  '404':
505
505
  $ref: '#/components/responses/404'
506
506
  '409':
507
- description: Conflict; refresh or remove role bindings first
507
+ $ref: '#/components/responses/409'
508
508
  '500':
509
509
  $ref: '#/components/responses/500'
510
510
  put:
@@ -547,7 +547,7 @@ paths:
547
547
  '404':
548
548
  $ref: '#/components/responses/404'
549
549
  '409':
550
- description: Conflict; refresh or remove role bindings first
550
+ $ref: '#/components/responses/409'
551
551
  '500':
552
552
  $ref: '#/components/responses/500'
553
553
  requestBody:
@@ -601,7 +601,7 @@ paths:
601
601
  '404':
602
602
  $ref: '#/components/responses/404'
603
603
  '409':
604
- description: Conflict; refresh or remove role bindings first
604
+ $ref: '#/components/responses/409'
605
605
  '500':
606
606
  $ref: '#/components/responses/500'
607
607
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}:
@@ -649,7 +649,7 @@ paths:
649
649
  '404':
650
650
  $ref: '#/components/responses/404'
651
651
  '409':
652
- description: Conflict; refresh or remove role bindings first
652
+ $ref: '#/components/responses/409'
653
653
  '500':
654
654
  $ref: '#/components/responses/500'
655
655
  delete:
@@ -692,7 +692,7 @@ paths:
692
692
  '404':
693
693
  $ref: '#/components/responses/404'
694
694
  '409':
695
- description: Conflict; refresh or remove role bindings first
695
+ $ref: '#/components/responses/409'
696
696
  '500':
697
697
  $ref: '#/components/responses/500'
698
698
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/roles:
@@ -736,7 +736,7 @@ paths:
736
736
  '404':
737
737
  $ref: '#/components/responses/404'
738
738
  '409':
739
- description: Conflict; refresh or remove role bindings first
739
+ $ref: '#/components/responses/409'
740
740
  '500':
741
741
  $ref: '#/components/responses/500'
742
742
  requestBody:
@@ -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