kb-cloud-client-typescript 2.2.128 → 2.2.129

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 (41) hide show
  1. package/dist/adminapi/apis/environment-api.d.ts +15 -15
  2. package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/environment-api.js +8 -8
  4. package/dist/adminapi/models/environment-module-action-result.d.ts +25 -0
  5. package/dist/adminapi/models/environment-module-action-result.d.ts.map +1 -0
  6. package/dist/adminapi/models/environment-module-action-result.js +16 -0
  7. package/dist/adminapi/models/environment-module-action-result.js.map +1 -0
  8. package/dist/adminapi/models/environment-module-action.d.ts +1 -1
  9. package/dist/adminapi/models/environment-module-action.js +1 -1
  10. package/dist/adminapi/models/environment-module-status.d.ts +8 -1
  11. package/dist/adminapi/models/environment-module-status.d.ts.map +1 -1
  12. package/dist/adminapi/models/environment-module-status.js +9 -2
  13. package/dist/adminapi/models/environment-module-status.js.map +1 -1
  14. package/dist/adminapi/models/environment-module-update.d.ts +3 -3
  15. package/dist/adminapi/models/environment-module-update.d.ts.map +1 -1
  16. package/dist/adminapi/models/environment-module.d.ts +13 -1
  17. package/dist/adminapi/models/environment-module.d.ts.map +1 -1
  18. package/dist/adminapi/models/index.d.ts +1 -0
  19. package/dist/adminapi/models/index.d.ts.map +1 -1
  20. package/dist/adminapi/models/index.js +1 -0
  21. package/dist/adminapi/models/index.js.map +1 -1
  22. package/dist/openapi/models/environment-module-status.d.ts +8 -1
  23. package/dist/openapi/models/environment-module-status.d.ts.map +1 -1
  24. package/dist/openapi/models/environment-module-status.js +9 -2
  25. package/dist/openapi/models/environment-module-status.js.map +1 -1
  26. package/dist/openapi/models/environment-module.d.ts +13 -1
  27. package/dist/openapi/models/environment-module.d.ts.map +1 -1
  28. package/package.json +1 -1
  29. package/src/adminapi/.openapi-generator/FILES +1 -0
  30. package/src/adminapi/apis/environment-api.ts +15 -15
  31. package/src/adminapi/models/environment-module-action-result.ts +30 -0
  32. package/src/adminapi/models/environment-module-action.ts +1 -1
  33. package/src/adminapi/models/environment-module-status.ts +9 -2
  34. package/src/adminapi/models/environment-module-update.ts +3 -3
  35. package/src/adminapi/models/environment-module.ts +13 -1
  36. package/src/adminapi/models/index.ts +1 -0
  37. package/src/adminapi.yaml +82 -62
  38. package/src/internalapi.yaml +2 -4
  39. package/src/openapi/models/environment-module-status.ts +9 -2
  40. package/src/openapi/models/environment-module.ts +13 -1
  41. package/src/openapi.yaml +66 -51
package/src/adminapi.yaml CHANGED
@@ -12652,6 +12652,8 @@ paths:
12652
12652
  '204':
12653
12653
  description: No content.
12654
12654
  content: {}
12655
+ '400':
12656
+ $ref: '#/components/responses/400'
12655
12657
  '401':
12656
12658
  $ref: '#/components/responses/401'
12657
12659
  '403':
@@ -14019,7 +14021,8 @@ paths:
14019
14021
  - environment
14020
14022
  patch:
14021
14023
  operationId: updateEnvironmentModule
14022
- summary: update environment module
14024
+ summary: Update an environment module
14025
+ description: Performs the requested module action. Supported quick install and upgrade actions use dryRun=true for synchronous checks without changes; dryRun=false or omitted repeats the checks and submits an asynchronous task only when all checks pass. Other module actions keep their original behavior.
14023
14026
  parameters:
14024
14027
  - name: environmentName
14025
14028
  in: path
@@ -14034,15 +14037,11 @@ paths:
14034
14037
  $ref: '#/components/schemas/environmentModuleUpdate'
14035
14038
  responses:
14036
14039
  '200':
14037
- description: Success
14040
+ description: The module action succeeded. A successful dry run returns an empty object; an asynchronous action returns taskId.
14038
14041
  content:
14039
14042
  application/json:
14040
14043
  schema:
14041
- type: object
14042
- properties:
14043
- taskId:
14044
- type: string
14045
- description: the task id
14044
+ $ref: '#/components/schemas/environmentModuleActionResult'
14046
14045
  '400':
14047
14046
  $ref: '#/components/responses/400'
14048
14047
  '401':
@@ -16906,7 +16905,7 @@ paths:
16906
16905
  $ref: '#/components/schemas/accountList'
16907
16906
  description: Success
16908
16907
  '400':
16909
- description: Invalid request
16908
+ $ref: '#/components/responses/400'
16910
16909
  '401':
16911
16910
  $ref: '#/components/responses/401'
16912
16911
  '403':
@@ -16914,9 +16913,9 @@ paths:
16914
16913
  '404':
16915
16914
  $ref: '#/components/responses/404'
16916
16915
  '409':
16917
- description: Resource conflict or policy in use
16916
+ $ref: '#/components/responses/409'
16918
16917
  '503':
16919
- description: IAM unavailable; mutation outcome may be unknown
16918
+ $ref: '#/components/responses/503'
16920
16919
  tags:
16921
16920
  - account
16922
16921
  - seaweedfs
@@ -16953,7 +16952,7 @@ paths:
16953
16952
  schema:
16954
16953
  $ref: '#/components/schemas/account'
16955
16954
  '400':
16956
- description: Invalid request
16955
+ $ref: '#/components/responses/400'
16957
16956
  '401':
16958
16957
  $ref: '#/components/responses/401'
16959
16958
  '403':
@@ -16961,9 +16960,9 @@ paths:
16961
16960
  '404':
16962
16961
  $ref: '#/components/responses/404'
16963
16962
  '409':
16964
- description: Resource conflict or policy in use
16963
+ $ref: '#/components/responses/409'
16965
16964
  '503':
16966
- description: IAM unavailable; mutation outcome may be unknown
16965
+ $ref: '#/components/responses/503'
16967
16966
  tags:
16968
16967
  - account
16969
16968
  - seaweedfs
@@ -16998,7 +16997,7 @@ paths:
16998
16997
  content: {}
16999
16998
  description: Identity deleted
17000
16999
  '400':
17001
- description: Invalid request
17000
+ $ref: '#/components/responses/400'
17002
17001
  '401':
17003
17002
  $ref: '#/components/responses/401'
17004
17003
  '403':
@@ -17006,9 +17005,9 @@ paths:
17006
17005
  '404':
17007
17006
  $ref: '#/components/responses/404'
17008
17007
  '409':
17009
- description: Resource conflict or policy in use
17008
+ $ref: '#/components/responses/409'
17010
17009
  '503':
17011
- description: IAM unavailable; mutation outcome may be unknown
17010
+ $ref: '#/components/responses/503'
17012
17011
  tags:
17013
17012
  - account
17014
17013
  - seaweedfs
@@ -17050,7 +17049,7 @@ paths:
17050
17049
  schema:
17051
17050
  $ref: '#/components/schemas/account'
17052
17051
  '400':
17053
- description: Invalid request
17052
+ $ref: '#/components/responses/400'
17054
17053
  '401':
17055
17054
  $ref: '#/components/responses/401'
17056
17055
  '403':
@@ -17058,9 +17057,9 @@ paths:
17058
17057
  '404':
17059
17058
  $ref: '#/components/responses/404'
17060
17059
  '409':
17061
- description: Resource conflict or policy in use
17060
+ $ref: '#/components/responses/409'
17062
17061
  '503':
17063
- description: IAM unavailable; mutation outcome may be unknown
17062
+ $ref: '#/components/responses/503'
17064
17063
  tags:
17065
17064
  - account
17066
17065
  - seaweedfs
@@ -17149,7 +17148,7 @@ paths:
17149
17148
  required: true
17150
17149
  responses:
17151
17150
  '400':
17152
- description: SeaweedFS uses the named policy binding API
17151
+ $ref: '#/components/responses/400'
17153
17152
  tags:
17154
17153
  - account
17155
17154
  - seaweedfs
@@ -17198,17 +17197,17 @@ paths:
17198
17197
  type: object
17199
17198
  additionalProperties: true
17200
17199
  '400':
17201
- description: Invalid request
17200
+ $ref: '#/components/responses/400'
17202
17201
  '401':
17203
- description: Unauthenticated
17202
+ $ref: '#/components/responses/401'
17204
17203
  '403':
17205
- description: Permission denied or protected identity
17204
+ $ref: '#/components/responses/403'
17206
17205
  '404':
17207
- description: Resource not found
17206
+ $ref: '#/components/responses/404'
17208
17207
  '409':
17209
- description: Resource conflict or policy in use
17208
+ $ref: '#/components/responses/409'
17210
17209
  '503':
17211
- description: IAM unavailable; mutation outcome may be unknown
17210
+ $ref: '#/components/responses/503'
17212
17211
  /admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}:
17213
17212
  put:
17214
17213
  summary: putSeaweedFSPolicy
@@ -17237,17 +17236,17 @@ paths:
17237
17236
  '204':
17238
17237
  description: Successful response
17239
17238
  '400':
17240
- description: Invalid request
17239
+ $ref: '#/components/responses/400'
17241
17240
  '401':
17242
- description: Unauthenticated
17241
+ $ref: '#/components/responses/401'
17243
17242
  '403':
17244
- description: Permission denied or protected identity
17243
+ $ref: '#/components/responses/403'
17245
17244
  '404':
17246
- description: Resource not found
17245
+ $ref: '#/components/responses/404'
17247
17246
  '409':
17248
- description: Resource conflict or policy in use
17247
+ $ref: '#/components/responses/409'
17249
17248
  '503':
17250
- description: IAM unavailable; mutation outcome may be unknown
17249
+ $ref: '#/components/responses/503'
17251
17250
  requestBody:
17252
17251
  required: true
17253
17252
  content:
@@ -17283,17 +17282,17 @@ paths:
17283
17282
  '204':
17284
17283
  description: Successful response
17285
17284
  '400':
17286
- description: Invalid request
17285
+ $ref: '#/components/responses/400'
17287
17286
  '401':
17288
- description: Unauthenticated
17287
+ $ref: '#/components/responses/401'
17289
17288
  '403':
17290
- description: Permission denied or protected identity
17289
+ $ref: '#/components/responses/403'
17291
17290
  '404':
17292
- description: Resource not found
17291
+ $ref: '#/components/responses/404'
17293
17292
  '409':
17294
- description: Resource conflict or policy in use
17293
+ $ref: '#/components/responses/409'
17295
17294
  '503':
17296
- description: IAM unavailable; mutation outcome may be unknown
17295
+ $ref: '#/components/responses/503'
17297
17296
  description: Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
17298
17297
  /admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies:
17299
17298
  put:
@@ -17323,17 +17322,17 @@ paths:
17323
17322
  '204':
17324
17323
  description: Successful response
17325
17324
  '400':
17326
- description: Invalid request
17325
+ $ref: '#/components/responses/400'
17327
17326
  '401':
17328
- description: Unauthenticated
17327
+ $ref: '#/components/responses/401'
17329
17328
  '403':
17330
- description: Permission denied or protected identity
17329
+ $ref: '#/components/responses/403'
17331
17330
  '404':
17332
- description: Resource not found
17331
+ $ref: '#/components/responses/404'
17333
17332
  '409':
17334
- description: Resource conflict or policy in use
17333
+ $ref: '#/components/responses/409'
17335
17334
  '503':
17336
- description: IAM unavailable; mutation outcome may be unknown
17335
+ $ref: '#/components/responses/503'
17337
17336
  requestBody:
17338
17337
  required: true
17339
17338
  content:
@@ -17380,17 +17379,17 @@ paths:
17380
17379
  schema:
17381
17380
  $ref: '#/components/schemas/account'
17382
17381
  '400':
17383
- description: Invalid request
17382
+ $ref: '#/components/responses/400'
17384
17383
  '401':
17385
- description: Unauthenticated
17384
+ $ref: '#/components/responses/401'
17386
17385
  '403':
17387
- description: Permission denied or protected identity
17386
+ $ref: '#/components/responses/403'
17388
17387
  '404':
17389
- description: Resource not found
17388
+ $ref: '#/components/responses/404'
17390
17389
  '409':
17391
- description: Resource conflict or policy in use
17390
+ $ref: '#/components/responses/409'
17392
17391
  '503':
17393
- description: IAM unavailable; mutation outcome may be unknown
17392
+ $ref: '#/components/responses/503'
17394
17393
  requestBody:
17395
17394
  required: true
17396
17395
  content:
@@ -17431,17 +17430,17 @@ paths:
17431
17430
  '204':
17432
17431
  description: Successful response
17433
17432
  '400':
17434
- description: Invalid request
17433
+ $ref: '#/components/responses/400'
17435
17434
  '401':
17436
- description: Unauthenticated
17435
+ $ref: '#/components/responses/401'
17437
17436
  '403':
17438
- description: Permission denied or protected identity
17437
+ $ref: '#/components/responses/403'
17439
17438
  '404':
17440
- description: Resource not found
17439
+ $ref: '#/components/responses/404'
17441
17440
  '409':
17442
- description: Resource conflict or policy in use
17441
+ $ref: '#/components/responses/409'
17443
17442
  '503':
17444
- description: IAM unavailable; mutation outcome may be unknown
17443
+ $ref: '#/components/responses/503'
17445
17444
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts:
17446
17445
  get:
17447
17446
  description: list accounts in cluster
@@ -24861,13 +24860,20 @@ components:
24861
24860
  description: judge whether to set the backup is default which will be init
24862
24861
  environmentModuleStatus:
24863
24862
  type: string
24864
- description: Status of environment module
24863
+ description: Status of an environment module. Enabled is only used as the desired state when creating an environment. NotInstalled, Installing, and InstallationFailed describe quick installation; Upgradeable, Upgrading, and UpgradeFailed describe quick upgrade. Upgradeable means the component is running but an ApeCloud-bundled newer version is available. Unknown means the current state could not be determined.
24865
24864
  enum:
24866
24865
  - Running
24867
24866
  - Updating
24868
24867
  - Error
24869
24868
  - Disabled
24870
24869
  - Enabled
24870
+ - NotInstalled
24871
+ - Installing
24872
+ - InstallationFailed
24873
+ - Upgradeable
24874
+ - Upgrading
24875
+ - UpgradeFailed
24876
+ - Unknown
24871
24877
  clusterInfo:
24872
24878
  type: object
24873
24879
  description: Cluster information
@@ -24890,7 +24896,7 @@ components:
24890
24896
  description: Environment module name
24891
24897
  version:
24892
24898
  type: string
24893
- description: Environment module version
24899
+ description: Currently installed environment module version
24894
24900
  status:
24895
24901
  $ref: '#/components/schemas/environmentModuleStatus'
24896
24902
  replicas:
@@ -24899,6 +24905,9 @@ components:
24899
24905
  location:
24900
24906
  type: string
24901
24907
  description: Deployment location
24908
+ operationTaskId:
24909
+ type: string
24910
+ description: ID of the asynchronous task associated with the module's current operation state. It is omitted when the current state is not associated with a task.
24902
24911
  clusterInfo:
24903
24912
  $ref: '#/components/schemas/clusterInfo'
24904
24913
  description: Cluster information
@@ -24914,6 +24923,9 @@ components:
24914
24923
  defaultEnabled:
24915
24924
  type: boolean
24916
24925
  description: indicate whether module is enabled by default when creating environment. Only effective when optional is true
24926
+ actionWarning:
24927
+ $ref: '#/components/schemas/localizedDescription'
24928
+ description: Localized business-impact warning for the component action represented by the current status.
24917
24929
  required:
24918
24930
  - name
24919
24931
  - status
@@ -32514,7 +32526,7 @@ components:
32514
32526
  Action to perform on the environment module:
32515
32527
  - Enable: Enable the module
32516
32528
  - Disable: Disable the module
32517
- - Upgrade: Upgrade the module to specified version
32529
+ - Upgrade: Upgrade the module
32518
32530
  enum:
32519
32531
  - Enable
32520
32532
  - Disable
@@ -32528,12 +32540,20 @@ components:
32528
32540
  description: Name of the environment module to update
32529
32541
  action:
32530
32542
  $ref: '#/components/schemas/environmentModuleAction'
32531
- version:
32532
- type: string
32533
- description: Version of the environment module to upgrade to
32543
+ dryRun:
32544
+ type: boolean
32545
+ default: false
32546
+ description: For a supported quick install or upgrade action, only run synchronous checks when true. When false or omitted, repeat the checks and submit the asynchronous task if all checks pass.
32534
32547
  required:
32535
32548
  - name
32536
32549
  - action
32550
+ environmentModuleActionResult:
32551
+ type: object
32552
+ description: Result of an environment module action. A successful dry run returns an empty object; an asynchronous action returns taskId; failed checks use the standard API error response.
32553
+ properties:
32554
+ taskId:
32555
+ type: string
32556
+ description: ID of the submitted asynchronous module action task. It is absent for successful dry runs; failed checks return an API error.
32537
32557
  podResources:
32538
32558
  type: object
32539
32559
  description: Resource usage information for a pod
@@ -694,11 +694,9 @@ paths:
694
694
  content: {}
695
695
  description: Returned when project is deleted successfully.
696
696
  '401':
697
- content: {}
698
- description: Unauthorized
697
+ $ref: '#/components/responses/401'
699
698
  '403':
700
- content: {}
701
- description: Forbidden
699
+ $ref: '#/components/responses/403'
702
700
  tags:
703
701
  - environment
704
702
  /internal/v1/status:
@@ -15,7 +15,7 @@
15
15
 
16
16
 
17
17
  /**
18
- * Status of environment module
18
+ * Status of an environment module. Enabled is only used as the desired state when creating an environment. NotInstalled, Installing, and InstallationFailed describe quick installation; Upgradeable, Upgrading, and UpgradeFailed describe quick upgrade. Upgradeable means the component is running but an ApeCloud-bundled newer version is available. Unknown means the current state could not be determined.
19
19
  * @export
20
20
  * @enum {string}
21
21
  */
@@ -25,7 +25,14 @@ export const EnvironmentModuleStatus = {
25
25
  Updating: 'Updating',
26
26
  Error: 'Error',
27
27
  Disabled: 'Disabled',
28
- Enabled: 'Enabled'
28
+ Enabled: 'Enabled',
29
+ NotInstalled: 'NotInstalled',
30
+ Installing: 'Installing',
31
+ InstallationFailed: 'InstallationFailed',
32
+ Upgradeable: 'Upgradeable',
33
+ Upgrading: 'Upgrading',
34
+ UpgradeFailed: 'UpgradeFailed',
35
+ Unknown: 'Unknown'
29
36
  } as const;
30
37
 
31
38
  export type EnvironmentModuleStatus = typeof EnvironmentModuleStatus[keyof typeof EnvironmentModuleStatus];
@@ -36,7 +36,7 @@ export interface EnvironmentModule {
36
36
  */
37
37
  'name': string;
38
38
  /**
39
- * Environment module version
39
+ * Currently installed environment module version
40
40
  * @type {string}
41
41
  * @memberof EnvironmentModule
42
42
  */
@@ -59,6 +59,12 @@ export interface EnvironmentModule {
59
59
  * @memberof EnvironmentModule
60
60
  */
61
61
  'location'?: string;
62
+ /**
63
+ * ID of the asynchronous task associated with the module\'s current operation state. It is omitted when the current state is not associated with a task.
64
+ * @type {string}
65
+ * @memberof EnvironmentModule
66
+ */
67
+ 'operationTaskId'?: string;
62
68
  /**
63
69
  *
64
70
  * @type {ClusterInfo}
@@ -89,6 +95,12 @@ export interface EnvironmentModule {
89
95
  * @memberof EnvironmentModule
90
96
  */
91
97
  'defaultEnabled'?: boolean;
98
+ /**
99
+ *
100
+ * @type {LocalizedDescription}
101
+ * @memberof EnvironmentModule
102
+ */
103
+ 'actionWarning'?: LocalizedDescription;
92
104
  }
93
105
 
94
106