kb-cloud-client-typescript 2.4.0-alpha.92 → 2.4.0-alpha.94

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 (125) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +207 -0
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +198 -0
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/rdbms-api.d.ts +207 -0
  6. package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/rdbms-api.js +198 -0
  8. package/dist/adminapi/apis/rdbms-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +207 -0
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +198 -0
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/component-item-create.d.ts +12 -0
  14. package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
  15. package/dist/adminapi/models/component-item.d.ts +19 -0
  16. package/dist/adminapi/models/component-item.d.ts.map +1 -1
  17. package/dist/adminapi/models/index.d.ts +2 -0
  18. package/dist/adminapi/models/index.d.ts.map +1 -1
  19. package/dist/adminapi/models/index.js +2 -0
  20. package/dist/adminapi/models/index.js.map +1 -1
  21. package/dist/adminapi/models/instance-template-attribute.d.ts +0 -1
  22. package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
  23. package/dist/adminapi/models/instance-template-attribute.js +0 -1
  24. package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
  25. package/dist/adminapi/models/instance-template-create.d.ts +9 -3
  26. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
  27. package/dist/adminapi/models/instance.d.ts +6 -0
  28. package/dist/adminapi/models/instance.d.ts.map +1 -1
  29. package/dist/adminapi/models/mode-option.d.ts +7 -0
  30. package/dist/adminapi/models/mode-option.d.ts.map +1 -1
  31. package/dist/adminapi/models/object-privilege-reset-step.d.ts +31 -0
  32. package/dist/adminapi/models/object-privilege-reset-step.d.ts.map +1 -0
  33. package/dist/adminapi/models/object-privilege-reset-step.js +16 -0
  34. package/dist/adminapi/models/object-privilege-reset-step.js.map +1 -0
  35. package/dist/adminapi/models/placement-scope.d.ts +22 -0
  36. package/dist/adminapi/models/placement-scope.d.ts.map +1 -0
  37. package/dist/adminapi/models/placement-scope.js +26 -0
  38. package/dist/adminapi/models/placement-scope.js.map +1 -0
  39. package/dist/internalapi/models/component-item.d.ts +19 -0
  40. package/dist/internalapi/models/component-item.d.ts.map +1 -1
  41. package/dist/internalapi/models/index.d.ts +2 -0
  42. package/dist/internalapi/models/index.d.ts.map +1 -1
  43. package/dist/internalapi/models/index.js +2 -0
  44. package/dist/internalapi/models/index.js.map +1 -1
  45. package/dist/internalapi/models/instance-template-create-env-inner.d.ts +31 -0
  46. package/dist/internalapi/models/instance-template-create-env-inner.d.ts.map +1 -0
  47. package/dist/internalapi/models/instance-template-create-env-inner.js +16 -0
  48. package/dist/internalapi/models/instance-template-create-env-inner.js.map +1 -0
  49. package/dist/internalapi/models/instance-template-create.d.ts +72 -0
  50. package/dist/internalapi/models/instance-template-create.d.ts.map +1 -0
  51. package/dist/internalapi/models/instance-template-create.js +16 -0
  52. package/dist/internalapi/models/instance-template-create.js.map +1 -0
  53. package/dist/openapi/apis/account-api.d.ts +207 -0
  54. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  55. package/dist/openapi/apis/account-api.js +198 -0
  56. package/dist/openapi/apis/account-api.js.map +1 -1
  57. package/dist/openapi/apis/rdbms-api.d.ts +207 -0
  58. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  59. package/dist/openapi/apis/rdbms-api.js +198 -0
  60. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  61. package/dist/openapi/apis/shared-api.d.ts +207 -0
  62. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  63. package/dist/openapi/apis/shared-api.js +198 -0
  64. package/dist/openapi/apis/shared-api.js.map +1 -1
  65. package/dist/openapi/models/component-item-create.d.ts +12 -0
  66. package/dist/openapi/models/component-item-create.d.ts.map +1 -1
  67. package/dist/openapi/models/component-item.d.ts +19 -0
  68. package/dist/openapi/models/component-item.d.ts.map +1 -1
  69. package/dist/openapi/models/index.d.ts +2 -0
  70. package/dist/openapi/models/index.d.ts.map +1 -1
  71. package/dist/openapi/models/index.js +2 -0
  72. package/dist/openapi/models/index.js.map +1 -1
  73. package/dist/openapi/models/instance-template-attribute.d.ts +0 -1
  74. package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
  75. package/dist/openapi/models/instance-template-attribute.js +0 -1
  76. package/dist/openapi/models/instance-template-attribute.js.map +1 -1
  77. package/dist/openapi/models/instance-template-create.d.ts +9 -3
  78. package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
  79. package/dist/openapi/models/instance.d.ts +6 -0
  80. package/dist/openapi/models/instance.d.ts.map +1 -1
  81. package/dist/openapi/models/mode-option.d.ts +7 -0
  82. package/dist/openapi/models/mode-option.d.ts.map +1 -1
  83. package/dist/openapi/models/object-privilege-reset-step.d.ts +31 -0
  84. package/dist/openapi/models/object-privilege-reset-step.d.ts.map +1 -0
  85. package/dist/openapi/models/object-privilege-reset-step.js +16 -0
  86. package/dist/openapi/models/object-privilege-reset-step.js.map +1 -0
  87. package/dist/openapi/models/placement-scope.d.ts +22 -0
  88. package/dist/openapi/models/placement-scope.d.ts.map +1 -0
  89. package/dist/openapi/models/placement-scope.js +26 -0
  90. package/dist/openapi/models/placement-scope.js.map +1 -0
  91. package/package.json +1 -1
  92. package/src/adminapi/.openapi-generator/FILES +2 -0
  93. package/src/adminapi/apis/account-api.ts +352 -0
  94. package/src/adminapi/apis/rdbms-api.ts +352 -0
  95. package/src/adminapi/apis/shared-api.ts +352 -0
  96. package/src/adminapi/models/component-item-create.ts +12 -0
  97. package/src/adminapi/models/component-item.ts +21 -0
  98. package/src/adminapi/models/index.ts +2 -0
  99. package/src/adminapi/models/instance-template-attribute.ts +0 -1
  100. package/src/adminapi/models/instance-template-create.ts +9 -3
  101. package/src/adminapi/models/instance.ts +6 -0
  102. package/src/adminapi/models/mode-option.ts +9 -0
  103. package/src/adminapi/models/object-privilege-reset-step.ts +36 -0
  104. package/src/adminapi/models/placement-scope.ts +31 -0
  105. package/src/adminapi.yaml +174 -5
  106. package/src/internalapi/.openapi-generator/FILES +2 -0
  107. package/src/internalapi/models/component-item.ts +21 -0
  108. package/src/internalapi/models/index.ts +2 -0
  109. package/src/internalapi/models/instance-template-create-env-inner.ts +36 -0
  110. package/src/internalapi/models/instance-template-create.ts +75 -0
  111. package/src/internalapi.yaml +62 -0
  112. package/src/openapi/.openapi-generator/FILES +2 -0
  113. package/src/openapi/apis/account-api.ts +352 -0
  114. package/src/openapi/apis/rdbms-api.ts +352 -0
  115. package/src/openapi/apis/shared-api.ts +352 -0
  116. package/src/openapi/models/component-item-create.ts +12 -0
  117. package/src/openapi/models/component-item.ts +21 -0
  118. package/src/openapi/models/index.ts +2 -0
  119. package/src/openapi/models/instance-template-attribute.ts +0 -1
  120. package/src/openapi/models/instance-template-create.ts +9 -3
  121. package/src/openapi/models/instance.ts +6 -0
  122. package/src/openapi/models/mode-option.ts +9 -0
  123. package/src/openapi/models/object-privilege-reset-step.ts +36 -0
  124. package/src/openapi/models/placement-scope.ts +31 -0
  125. package/src/openapi.yaml +174 -5
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const PlacementScope = {
24
+ cluster: 'cluster',
25
+ component: 'component'
26
+ } as const;
27
+
28
+ export type PlacementScope = typeof PlacementScope[keyof typeof PlacementScope];
29
+
30
+
31
+
package/src/openapi.yaml CHANGED
@@ -19398,6 +19398,131 @@ paths:
19398
19398
  $ref: '#/components/responses/404'
19399
19399
  '500':
19400
19400
  $ref: '#/components/responses/500'
19401
+ /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset:
19402
+ get:
19403
+ tags:
19404
+ - account
19405
+ - rdbms
19406
+ - shared
19407
+ summary: Preview clearing all MySQL account privileges
19408
+ operationId: previewAccountPrivilegeReset
19409
+ description: MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
19410
+ parameters:
19411
+ - name: engineName
19412
+ in: path
19413
+ required: true
19414
+ schema:
19415
+ type: string
19416
+ - name: orgName
19417
+ in: path
19418
+ required: true
19419
+ schema:
19420
+ type: string
19421
+ - name: clusterName
19422
+ in: path
19423
+ required: true
19424
+ schema:
19425
+ type: string
19426
+ - name: accountName
19427
+ in: path
19428
+ required: true
19429
+ schema:
19430
+ type: string
19431
+ - name: subjectType
19432
+ in: query
19433
+ required: false
19434
+ schema:
19435
+ $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
19436
+ description: Native subject kind; path account name identifies the subject.
19437
+ - name: host
19438
+ in: query
19439
+ required: false
19440
+ schema:
19441
+ type: string
19442
+ description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
19443
+ - name: subjectQualifiers
19444
+ in: query
19445
+ schema:
19446
+ type: string
19447
+ description: JSON identity qualifiers; MySQL host defaults to %.
19448
+ responses:
19449
+ '200':
19450
+ description: Server-generated steps with connection database, in execution order
19451
+ content:
19452
+ application/json:
19453
+ schema:
19454
+ type: array
19455
+ items:
19456
+ $ref: '#/components/schemas/ObjectPrivilegeResetStep'
19457
+ '400':
19458
+ $ref: '#/components/responses/400'
19459
+ '401':
19460
+ $ref: '#/components/responses/401'
19461
+ '403':
19462
+ $ref: '#/components/responses/403'
19463
+ '404':
19464
+ $ref: '#/components/responses/404'
19465
+ '500':
19466
+ $ref: '#/components/responses/500'
19467
+ delete:
19468
+ tags:
19469
+ - account
19470
+ - rdbms
19471
+ - shared
19472
+ summary: Clear all MySQL account privileges
19473
+ operationId: resetAccountPrivileges
19474
+ description: MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
19475
+ parameters:
19476
+ - name: engineName
19477
+ in: path
19478
+ required: true
19479
+ schema:
19480
+ type: string
19481
+ - name: orgName
19482
+ in: path
19483
+ required: true
19484
+ schema:
19485
+ type: string
19486
+ - name: clusterName
19487
+ in: path
19488
+ required: true
19489
+ schema:
19490
+ type: string
19491
+ - name: accountName
19492
+ in: path
19493
+ required: true
19494
+ schema:
19495
+ type: string
19496
+ - name: subjectType
19497
+ in: query
19498
+ required: false
19499
+ schema:
19500
+ $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
19501
+ description: Native subject kind; path account name identifies the subject.
19502
+ - name: host
19503
+ in: query
19504
+ required: false
19505
+ schema:
19506
+ type: string
19507
+ description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
19508
+ - name: subjectQualifiers
19509
+ in: query
19510
+ schema:
19511
+ type: string
19512
+ description: JSON identity qualifiers; MySQL host defaults to %.
19513
+ responses:
19514
+ '204':
19515
+ description: Privileges cleared; account and password preserved
19516
+ '400':
19517
+ $ref: '#/components/responses/400'
19518
+ '401':
19519
+ $ref: '#/components/responses/401'
19520
+ '403':
19521
+ $ref: '#/components/responses/403'
19522
+ '404':
19523
+ $ref: '#/components/responses/404'
19524
+ '500':
19525
+ $ref: '#/components/responses/500'
19401
19526
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/columns:
19402
19527
  get:
19403
19528
  tags:
@@ -26096,12 +26221,14 @@ components:
26096
26221
  instanceTemplateCreate:
26097
26222
  type: object
26098
26223
  additionalProperties: false
26099
- description: |
26100
- Create assignment for one instance template. name and replicas are required. env, annotations, labels, availabilityZone, and storageClass are optional overlays onto the chart-rendered instance. The request must include every chart-rendered instance template exactly once. A template with an explicit zone uses single-zone scheduling: hostname anti-affinity follows the scheduling policy, while explicit rules and additional topology keys are preserved. Component scheduling remains unchanged; templates without a zone inherit it, including its zone anti-affinity constraints. Chart instance scheduling policies are cleared; an omitted or empty availabilityZone leaves the instance policy unset to inherit the component policy.
26224
+ description: Create assignment for one instance template. name and replicas are required. env, annotations, labels, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
26101
26225
  required:
26102
26226
  - name
26103
26227
  - replicas
26104
26228
  properties:
26229
+ nodeGroup:
26230
+ type: string
26231
+ description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
26105
26232
  name:
26106
26233
  type: string
26107
26234
  minLength: 1
@@ -26112,7 +26239,7 @@ components:
26112
26239
  description: Replica count for this instance template.
26113
26240
  availabilityZone:
26114
26241
  type: string
26115
- description: Availability zone for this template (topology.kubernetes.io/zone); omitted or empty inherits the component zone selection. Must be enabled in the environment. If the request explicitly supplies a non-empty cluster availabilityZones list, the template zone must also belong to that list.
26242
+ description: Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
26116
26243
  storageClass:
26117
26244
  type: string
26118
26245
  description: StorageClass name for all persistent volumes in this template. Copied from component volumeClaimTemplates, preserving volume sizes and other settings while overriding storageClassName. Chart instance volume templates are cleared; omitted or empty leaves instance volumeClaimTemplates unset.
@@ -26140,7 +26267,7 @@ components:
26140
26267
  type: object
26141
26268
  additionalProperties:
26142
26269
  type: string
26143
- description: Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
26270
+ description: Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted. The apps.kubeblocks.io/instance-template label is managed by the system and must equal the template name if supplied.
26144
26271
  ioQuantity:
26145
26272
  description: IO Quantity describes IOPS and BPS of a volume
26146
26273
  properties:
@@ -26208,6 +26335,12 @@ components:
26208
26335
  required:
26209
26336
  - component
26210
26337
  properties:
26338
+ nodeGroup:
26339
+ type: string
26340
+ description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
26341
+ availabilityZone:
26342
+ type: string
26343
+ description: Single AZ for explicit component placement. Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the cluster host group. Omitting both retains cluster scheduling.
26211
26344
  component:
26212
26345
  type: string
26213
26346
  description: component type, refer to componentDef and support NamePrefix
@@ -26534,6 +26667,18 @@ components:
26534
26667
  type: object
26535
26668
  description: ComponentItem is the information of a component
26536
26669
  properties:
26670
+ nodeGroup:
26671
+ type: string
26672
+ description: Optional host group in this environment. Explicit placement does not inherit an upper-level host group.
26673
+ availabilityZone:
26674
+ type: string
26675
+ description: Explicit component AZ selection, if configured.
26676
+ instanceTemplates:
26677
+ type: array
26678
+ x-omitempty: true
26679
+ description: Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
26680
+ items:
26681
+ $ref: '#/components/schemas/instanceTemplateCreate'
26537
26682
  name:
26538
26683
  type: string
26539
26684
  description: component name
@@ -26879,6 +27024,9 @@ components:
26879
27024
  componentDef:
26880
27025
  description: ComponentDefinition name
26881
27026
  type: string
27027
+ instanceTemplate:
27028
+ description: Instance template name within the actual component. Omitted when no template identity is available.
27029
+ type: string
26882
27030
  component:
26883
27031
  description: component type, refer to componentDef and support NamePrefix
26884
27032
  type: string
@@ -33478,6 +33626,12 @@ components:
33478
33626
  type: boolean
33479
33627
  description: whether the component supports custom secret
33480
33628
  x-nullable: false
33629
+ placementScope:
33630
+ type: string
33631
+ description: UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
33632
+ enum:
33633
+ - cluster
33634
+ - component
33481
33635
  modeCompatibleKubeblocksVersion:
33482
33636
  type: string
33483
33637
  description: |
@@ -33499,7 +33653,6 @@ components:
33499
33653
  - env
33500
33654
  - annotations
33501
33655
  - labels
33502
- - availabilityZone
33503
33656
  - storageClass
33504
33657
  instanceTemplateEnv:
33505
33658
  type: object
@@ -33875,6 +34028,8 @@ components:
33875
34028
  - description
33876
34029
  - components
33877
34030
  properties:
34031
+ placementScope:
34032
+ $ref: '#/components/schemas/placementScope'
33878
34033
  name:
33879
34034
  type: string
33880
34035
  title:
@@ -40633,6 +40788,20 @@ components:
40633
40788
  type: array
40634
40789
  items:
40635
40790
  $ref: '#/components/schemas/ObjectPrivilegeQualifier'
40791
+ ObjectPrivilegeResetStep:
40792
+ type: object
40793
+ description: One ordered, engine-generated step of an account privilege reset.
40794
+ required:
40795
+ - sql
40796
+ properties:
40797
+ databaseName:
40798
+ type: string
40799
+ description: Connection database in which this statement must run. Omitted when no particular database is required, as with MySQL account-wide REVOKE. This is execution context, not the scope of objects affected by the SQL.
40800
+ sql:
40801
+ type: string
40802
+ x-nullable: false
40803
+ minLength: 1
40804
+ description: Engine-generated SQL for display. Callers cannot submit or modify these steps for execution; reset rebuilds the plan from current grants.
40636
40805
  ObjectPrivilegeObject:
40637
40806
  type: object
40638
40807
  required: