kb-cloud-client-typescript 2.3.0-alpha.96 → 2.3.0-alpha.98

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 (52) hide show
  1. package/dist/adminapi/apis/aiagent-api.d.ts +158 -0
  2. package/dist/adminapi/apis/aiagent-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/aiagent-api.js +162 -0
  4. package/dist/adminapi/apis/aiagent-api.js.map +1 -1
  5. package/dist/adminapi/apis/cluster-log-api.d.ts +114 -2
  6. package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/cluster-log-api.js +75 -5
  8. package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +114 -2
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +75 -5
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/storage-create.d.ts +0 -6
  14. package/dist/adminapi/models/storage-create.d.ts.map +1 -1
  15. package/dist/adminapi/models/storage-update.d.ts +0 -6
  16. package/dist/adminapi/models/storage-update.d.ts.map +1 -1
  17. package/dist/adminapi/models/storage.d.ts +0 -6
  18. package/dist/adminapi/models/storage.d.ts.map +1 -1
  19. package/dist/internalapi/models/storage-create.d.ts +0 -6
  20. package/dist/internalapi/models/storage-create.d.ts.map +1 -1
  21. package/dist/internalapi/models/storage.d.ts +0 -6
  22. package/dist/internalapi/models/storage.d.ts.map +1 -1
  23. package/dist/openapi/apis/aiagent-api.d.ts +158 -0
  24. package/dist/openapi/apis/aiagent-api.d.ts.map +1 -1
  25. package/dist/openapi/apis/aiagent-api.js +162 -0
  26. package/dist/openapi/apis/aiagent-api.js.map +1 -1
  27. package/dist/openapi/apis/cluster-log-api.d.ts +114 -2
  28. package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
  29. package/dist/openapi/apis/cluster-log-api.js +75 -5
  30. package/dist/openapi/apis/cluster-log-api.js.map +1 -1
  31. package/dist/openapi/apis/shared-api.d.ts +114 -2
  32. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  33. package/dist/openapi/apis/shared-api.js +75 -5
  34. package/dist/openapi/apis/shared-api.js.map +1 -1
  35. package/dist/openapi/models/storage.d.ts +0 -6
  36. package/dist/openapi/models/storage.d.ts.map +1 -1
  37. package/package.json +1 -1
  38. package/src/adminapi/apis/aiagent-api.ts +264 -0
  39. package/src/adminapi/apis/cluster-log-api.ts +187 -5
  40. package/src/adminapi/apis/shared-api.ts +187 -5
  41. package/src/adminapi/models/storage-create.ts +0 -6
  42. package/src/adminapi/models/storage-update.ts +0 -6
  43. package/src/adminapi/models/storage.ts +0 -6
  44. package/src/adminapi.yaml +162 -12
  45. package/src/internalapi/models/storage-create.ts +0 -6
  46. package/src/internalapi/models/storage.ts +0 -6
  47. package/src/internalapi.yaml +0 -8
  48. package/src/openapi/apis/aiagent-api.ts +264 -0
  49. package/src/openapi/apis/cluster-log-api.ts +187 -5
  50. package/src/openapi/apis/shared-api.ts +187 -5
  51. package/src/openapi/models/storage.ts +0 -6
  52. package/src/openapi.yaml +162 -4
@@ -9548,10 +9548,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
9548
9548
  * @param {string} [componentName]
9549
9549
  * @param {string} [instanceName]
9550
9550
  * @param {string} [query]
9551
+ * @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType=slow.
9552
+ * @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType=slow.
9553
+ * @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType=slow.
9554
+ * @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType=slow.
9555
+ * @param {number} [minRowsExamined]
9556
+ * @param {number} [maxRowsExamined]
9557
+ * @param {number} [minRowsSent]
9558
+ * @param {number} [maxRowsSent]
9559
+ * @param {string} [dbName]
9560
+ * @param {string} [userName]
9561
+ * @param {string} [clientIp]
9562
+ * @param {string} [appName]
9563
+ * @param {string} [templateId]
9564
+ * @param {boolean} [unclassifiedOnly]
9551
9565
  * @param {*} [options] Override http request option.
9552
9566
  * @throws {RequiredError}
9553
9567
  */
9554
- queryLogHits: async (orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9568
+ queryLogHits: async (orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, templateId?: string, unclassifiedOnly?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9555
9569
  // verify required parameter 'orgName' is not null or undefined
9556
9570
  assertParamExists('queryLogHits', 'orgName', orgName)
9557
9571
  // verify required parameter 'clusterName' is not null or undefined
@@ -9609,6 +9623,62 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
9609
9623
  localVarQueryParameter['query'] = query;
9610
9624
  }
9611
9625
 
9626
+ if (minExecutionTime !== undefined) {
9627
+ localVarQueryParameter['minExecutionTime'] = minExecutionTime;
9628
+ }
9629
+
9630
+ if (maxExecutionTime !== undefined) {
9631
+ localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
9632
+ }
9633
+
9634
+ if (minLockTime !== undefined) {
9635
+ localVarQueryParameter['minLockTime'] = minLockTime;
9636
+ }
9637
+
9638
+ if (maxLockTime !== undefined) {
9639
+ localVarQueryParameter['maxLockTime'] = maxLockTime;
9640
+ }
9641
+
9642
+ if (minRowsExamined !== undefined) {
9643
+ localVarQueryParameter['minRowsExamined'] = minRowsExamined;
9644
+ }
9645
+
9646
+ if (maxRowsExamined !== undefined) {
9647
+ localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
9648
+ }
9649
+
9650
+ if (minRowsSent !== undefined) {
9651
+ localVarQueryParameter['minRowsSent'] = minRowsSent;
9652
+ }
9653
+
9654
+ if (maxRowsSent !== undefined) {
9655
+ localVarQueryParameter['maxRowsSent'] = maxRowsSent;
9656
+ }
9657
+
9658
+ if (dbName !== undefined) {
9659
+ localVarQueryParameter['dbName'] = dbName;
9660
+ }
9661
+
9662
+ if (userName !== undefined) {
9663
+ localVarQueryParameter['userName'] = userName;
9664
+ }
9665
+
9666
+ if (clientIp !== undefined) {
9667
+ localVarQueryParameter['clientIp'] = clientIp;
9668
+ }
9669
+
9670
+ if (appName !== undefined) {
9671
+ localVarQueryParameter['appName'] = appName;
9672
+ }
9673
+
9674
+ if (templateId !== undefined) {
9675
+ localVarQueryParameter['templateId'] = templateId;
9676
+ }
9677
+
9678
+ if (unclassifiedOnly !== undefined) {
9679
+ localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
9680
+ }
9681
+
9612
9682
 
9613
9683
 
9614
9684
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -15513,11 +15583,25 @@ export const SharedApiFp = function(configuration?: Configuration) {
15513
15583
  * @param {string} [componentName]
15514
15584
  * @param {string} [instanceName]
15515
15585
  * @param {string} [query]
15586
+ * @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType&#x3D;slow.
15587
+ * @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType&#x3D;slow.
15588
+ * @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType&#x3D;slow.
15589
+ * @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType&#x3D;slow.
15590
+ * @param {number} [minRowsExamined]
15591
+ * @param {number} [maxRowsExamined]
15592
+ * @param {number} [minRowsSent]
15593
+ * @param {number} [maxRowsSent]
15594
+ * @param {string} [dbName]
15595
+ * @param {string} [userName]
15596
+ * @param {string} [clientIp]
15597
+ * @param {string} [appName]
15598
+ * @param {string} [templateId]
15599
+ * @param {boolean} [unclassifiedOnly]
15516
15600
  * @param {*} [options] Override http request option.
15517
15601
  * @throws {RequiredError}
15518
15602
  */
15519
- async queryLogHits(orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogHitsResponse>> {
15520
- const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, options);
15603
+ async queryLogHits(orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, templateId?: string, unclassifiedOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogHitsResponse>> {
15604
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, templateId, unclassifiedOnly, options);
15521
15605
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15522
15606
  const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLogHits']?.[localVarOperationServerIndex]?.url;
15523
15607
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -18332,7 +18416,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
18332
18416
  * @throws {RequiredError}
18333
18417
  */
18334
18418
  queryLogHits(requestParameters: SharedApiQueryLogHitsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterLogHitsResponse> {
18335
- return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(axios, basePath));
18419
+ return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(axios, basePath));
18336
18420
  },
18337
18421
  /**
18338
18422
  * Query pod logs of a cluster
@@ -27210,6 +27294,104 @@ export interface SharedApiQueryLogHitsRequest {
27210
27294
  * @memberof SharedApiQueryLogHits
27211
27295
  */
27212
27296
  readonly query?: string
27297
+
27298
+ /**
27299
+ * Minimum slow log execution time in seconds. Only applies when logType&#x3D;slow.
27300
+ * @type {number}
27301
+ * @memberof SharedApiQueryLogHits
27302
+ */
27303
+ readonly minExecutionTime?: number
27304
+
27305
+ /**
27306
+ * Maximum slow log execution time in seconds. Only applies when logType&#x3D;slow.
27307
+ * @type {number}
27308
+ * @memberof SharedApiQueryLogHits
27309
+ */
27310
+ readonly maxExecutionTime?: number
27311
+
27312
+ /**
27313
+ * Minimum slow log lock time in seconds. Only applies when logType&#x3D;slow.
27314
+ * @type {number}
27315
+ * @memberof SharedApiQueryLogHits
27316
+ */
27317
+ readonly minLockTime?: number
27318
+
27319
+ /**
27320
+ * Maximum slow log lock time in seconds. Only applies when logType&#x3D;slow.
27321
+ * @type {number}
27322
+ * @memberof SharedApiQueryLogHits
27323
+ */
27324
+ readonly maxLockTime?: number
27325
+
27326
+ /**
27327
+ *
27328
+ * @type {number}
27329
+ * @memberof SharedApiQueryLogHits
27330
+ */
27331
+ readonly minRowsExamined?: number
27332
+
27333
+ /**
27334
+ *
27335
+ * @type {number}
27336
+ * @memberof SharedApiQueryLogHits
27337
+ */
27338
+ readonly maxRowsExamined?: number
27339
+
27340
+ /**
27341
+ *
27342
+ * @type {number}
27343
+ * @memberof SharedApiQueryLogHits
27344
+ */
27345
+ readonly minRowsSent?: number
27346
+
27347
+ /**
27348
+ *
27349
+ * @type {number}
27350
+ * @memberof SharedApiQueryLogHits
27351
+ */
27352
+ readonly maxRowsSent?: number
27353
+
27354
+ /**
27355
+ *
27356
+ * @type {string}
27357
+ * @memberof SharedApiQueryLogHits
27358
+ */
27359
+ readonly dbName?: string
27360
+
27361
+ /**
27362
+ *
27363
+ * @type {string}
27364
+ * @memberof SharedApiQueryLogHits
27365
+ */
27366
+ readonly userName?: string
27367
+
27368
+ /**
27369
+ *
27370
+ * @type {string}
27371
+ * @memberof SharedApiQueryLogHits
27372
+ */
27373
+ readonly clientIp?: string
27374
+
27375
+ /**
27376
+ *
27377
+ * @type {string}
27378
+ * @memberof SharedApiQueryLogHits
27379
+ */
27380
+ readonly appName?: string
27381
+
27382
+ /**
27383
+ *
27384
+ * @type {string}
27385
+ * @memberof SharedApiQueryLogHits
27386
+ */
27387
+ readonly templateId?: string
27388
+
27389
+ /**
27390
+ *
27391
+ * @type {boolean}
27392
+ * @memberof SharedApiQueryLogHits
27393
+ */
27394
+ readonly unclassifiedOnly?: boolean
27213
27395
  }
27214
27396
 
27215
27397
  /**
@@ -31587,7 +31769,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
31587
31769
  * @memberof SharedApi
31588
31770
  */
31589
31771
  public queryLogHits(requestParameters: SharedApiQueryLogHitsRequest, options?: RawAxiosRequestConfig) {
31590
- return SharedApiFp(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(this.axios, this.basePath));
31772
+ return SharedApiFp(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(this.axios, this.basePath));
31591
31773
  }
31592
31774
 
31593
31775
  /**
@@ -80,11 +80,5 @@ export interface Storage {
80
80
  * @memberof Storage
81
81
  */
82
82
  'tags'?: { [key: string]: string; };
83
- /**
84
- *
85
- * @type {Array<string>}
86
- * @memberof Storage
87
- */
88
- 'engines'?: Array<string>;
89
83
  }
90
84
 
package/src/openapi.yaml CHANGED
@@ -3160,6 +3160,74 @@ paths:
3160
3160
  name: query
3161
3161
  schema:
3162
3162
  type: string
3163
+ - in: query
3164
+ name: minExecutionTime
3165
+ description: Minimum slow log execution time in seconds. Only applies when logType=slow.
3166
+ schema:
3167
+ type: number
3168
+ format: double
3169
+ - in: query
3170
+ name: maxExecutionTime
3171
+ description: Maximum slow log execution time in seconds. Only applies when logType=slow.
3172
+ schema:
3173
+ type: number
3174
+ format: double
3175
+ - in: query
3176
+ name: minLockTime
3177
+ description: Minimum slow log lock time in seconds. Only applies when logType=slow.
3178
+ schema:
3179
+ type: number
3180
+ format: double
3181
+ - in: query
3182
+ name: maxLockTime
3183
+ description: Maximum slow log lock time in seconds. Only applies when logType=slow.
3184
+ schema:
3185
+ type: number
3186
+ format: double
3187
+ - in: query
3188
+ name: minRowsExamined
3189
+ schema:
3190
+ type: integer
3191
+ format: int64
3192
+ - in: query
3193
+ name: maxRowsExamined
3194
+ schema:
3195
+ type: integer
3196
+ format: int64
3197
+ - in: query
3198
+ name: minRowsSent
3199
+ schema:
3200
+ type: integer
3201
+ format: int64
3202
+ - in: query
3203
+ name: maxRowsSent
3204
+ schema:
3205
+ type: integer
3206
+ format: int64
3207
+ - in: query
3208
+ name: dbName
3209
+ schema:
3210
+ type: string
3211
+ - in: query
3212
+ name: userName
3213
+ schema:
3214
+ type: string
3215
+ - in: query
3216
+ name: clientIp
3217
+ schema:
3218
+ type: string
3219
+ - in: query
3220
+ name: appName
3221
+ schema:
3222
+ type: string
3223
+ - in: query
3224
+ name: templateId
3225
+ schema:
3226
+ type: string
3227
+ - in: query
3228
+ name: unclassifiedOnly
3229
+ schema:
3230
+ type: boolean
3163
3231
  responses:
3164
3232
  '200':
3165
3233
  content:
@@ -14773,6 +14841,100 @@ paths:
14773
14841
  $ref: '#/components/responses/404'
14774
14842
  '500':
14775
14843
  $ref: '#/components/responses/500'
14844
+ /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions/{actionId}/artifacts/{artifactId}/browse:
14845
+ get:
14846
+ tags:
14847
+ - AI Agent
14848
+ operationId: browseAIAgentTurnActionArtifact
14849
+ summary: Browse a generated AI diagnosis report artifact
14850
+ parameters:
14851
+ - name: orgName
14852
+ in: path
14853
+ required: true
14854
+ schema:
14855
+ type: string
14856
+ - name: conversationId
14857
+ in: path
14858
+ required: true
14859
+ schema:
14860
+ type: string
14861
+ - name: actionId
14862
+ in: path
14863
+ required: true
14864
+ schema:
14865
+ type: string
14866
+ - name: artifactId
14867
+ in: path
14868
+ required: true
14869
+ schema:
14870
+ type: string
14871
+ responses:
14872
+ '200':
14873
+ description: Generated report artifact content for browser preview
14874
+ content:
14875
+ application/octet-stream:
14876
+ schema:
14877
+ type: string
14878
+ format: binary
14879
+ '400':
14880
+ $ref: '#/components/responses/400'
14881
+ '401':
14882
+ $ref: '#/components/responses/401'
14883
+ '403':
14884
+ $ref: '#/components/responses/403'
14885
+ '404':
14886
+ $ref: '#/components/responses/404'
14887
+ '500':
14888
+ $ref: '#/components/responses/500'
14889
+ '503':
14890
+ $ref: '#/components/responses/503'
14891
+ /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions/{actionId}/artifacts/{artifactId}/download:
14892
+ get:
14893
+ tags:
14894
+ - AI Agent
14895
+ operationId: downloadAIAgentTurnActionArtifact
14896
+ summary: Download a generated AI diagnosis report artifact
14897
+ parameters:
14898
+ - name: orgName
14899
+ in: path
14900
+ required: true
14901
+ schema:
14902
+ type: string
14903
+ - name: conversationId
14904
+ in: path
14905
+ required: true
14906
+ schema:
14907
+ type: string
14908
+ - name: actionId
14909
+ in: path
14910
+ required: true
14911
+ schema:
14912
+ type: string
14913
+ - name: artifactId
14914
+ in: path
14915
+ required: true
14916
+ schema:
14917
+ type: string
14918
+ responses:
14919
+ '200':
14920
+ description: Generated report artifact content
14921
+ content:
14922
+ application/octet-stream:
14923
+ schema:
14924
+ type: string
14925
+ format: binary
14926
+ '400':
14927
+ $ref: '#/components/responses/400'
14928
+ '401':
14929
+ $ref: '#/components/responses/401'
14930
+ '403':
14931
+ $ref: '#/components/responses/403'
14932
+ '404':
14933
+ $ref: '#/components/responses/404'
14934
+ '500':
14935
+ $ref: '#/components/responses/500'
14936
+ '503':
14937
+ $ref: '#/components/responses/503'
14776
14938
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/events:
14777
14939
  get:
14778
14940
  tags:
@@ -29309,10 +29471,6 @@ components:
29309
29471
  description: the tags for the storage
29310
29472
  additionalProperties:
29311
29473
  type: string
29312
- engines:
29313
- type: array
29314
- items:
29315
- type: string
29316
29474
  storageList:
29317
29475
  type: array
29318
29476
  items: