kb-cloud-client-typescript 2.3.84 → 2.3.85

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 (58) hide show
  1. package/dist/adminapi/apis/alert-object-api.d.ts +26 -2
  2. package/dist/adminapi/apis/alert-object-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/alert-object-api.js +20 -5
  4. package/dist/adminapi/apis/alert-object-api.js.map +1 -1
  5. package/dist/adminapi/models/component-item-create.d.ts +2 -2
  6. package/dist/adminapi/models/component-item.d.ts +1 -1
  7. package/dist/adminapi/models/instance-template-attribute.d.ts +0 -2
  8. package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
  9. package/dist/adminapi/models/instance-template-attribute.js +0 -2
  10. package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
  11. package/dist/adminapi/models/instance-template-create-env-inner.d.ts +1 -1
  12. package/dist/adminapi/models/instance-template-create.d.ts +3 -19
  13. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
  14. package/dist/adminapi/models/instance-template-env.d.ts +3 -3
  15. package/dist/adminapi/models/mode-component-instance-template.d.ts +2 -2
  16. package/dist/adminapi/models/placement-scope.d.ts +1 -1
  17. package/dist/adminapi/models/placement-scope.js +1 -1
  18. package/dist/internalapi/models/component-item.d.ts +1 -1
  19. package/dist/internalapi/models/instance-template-create-env-inner.d.ts +1 -1
  20. package/dist/internalapi/models/instance-template-create.d.ts +3 -19
  21. package/dist/internalapi/models/instance-template-create.d.ts.map +1 -1
  22. package/dist/openapi/models/component-item-create.d.ts +2 -2
  23. package/dist/openapi/models/component-item.d.ts +1 -1
  24. package/dist/openapi/models/instance-template-attribute.d.ts +0 -2
  25. package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
  26. package/dist/openapi/models/instance-template-attribute.js +0 -2
  27. package/dist/openapi/models/instance-template-attribute.js.map +1 -1
  28. package/dist/openapi/models/instance-template-create-env-inner.d.ts +1 -1
  29. package/dist/openapi/models/instance-template-create.d.ts +3 -19
  30. package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
  31. package/dist/openapi/models/instance-template-env.d.ts +3 -3
  32. package/dist/openapi/models/mode-component-instance-template.d.ts +2 -2
  33. package/dist/openapi/models/placement-scope.d.ts +1 -1
  34. package/dist/openapi/models/placement-scope.js +1 -1
  35. package/package.json +1 -1
  36. package/src/adminapi/apis/alert-object-api.ts +44 -5
  37. package/src/adminapi/models/component-item-create.ts +2 -2
  38. package/src/adminapi/models/component-item.ts +1 -1
  39. package/src/adminapi/models/instance-template-attribute.ts +0 -2
  40. package/src/adminapi/models/instance-template-create-env-inner.ts +1 -1
  41. package/src/adminapi/models/instance-template-create.ts +3 -15
  42. package/src/adminapi/models/instance-template-env.ts +3 -3
  43. package/src/adminapi/models/mode-component-instance-template.ts +2 -2
  44. package/src/adminapi/models/placement-scope.ts +1 -1
  45. package/src/adminapi.yaml +32 -32
  46. package/src/internalapi/models/component-item.ts +1 -1
  47. package/src/internalapi/models/instance-template-create-env-inner.ts +1 -1
  48. package/src/internalapi/models/instance-template-create.ts +3 -15
  49. package/src/internalapi.yaml +6 -16
  50. package/src/openapi/models/component-item-create.ts +2 -2
  51. package/src/openapi/models/component-item.ts +1 -1
  52. package/src/openapi/models/instance-template-attribute.ts +0 -2
  53. package/src/openapi/models/instance-template-create-env-inner.ts +1 -1
  54. package/src/openapi/models/instance-template-create.ts +3 -15
  55. package/src/openapi/models/instance-template-env.ts +3 -3
  56. package/src/openapi/models/mode-component-instance-template.ts +2 -2
  57. package/src/openapi/models/placement-scope.ts +1 -1
  58. package/src/openapi.yaml +14 -32
@@ -27,7 +27,7 @@ export interface InstanceTemplateCreateEnvInner {
27
27
  */
28
28
  'name': string;
29
29
  /**
30
- * Plain string value only. valueFrom is not supported.
30
+ * Literal string; optional values may be empty. valueFrom is unsupported.
31
31
  * @type {string}
32
32
  * @memberof InstanceTemplateCreateEnvInner
33
33
  */
@@ -18,7 +18,7 @@
18
18
  import type { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
19
19
 
20
20
  /**
21
- * 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.
21
+ * Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.
22
22
  * @export
23
23
  * @interface InstanceTemplateCreate
24
24
  */
@@ -42,7 +42,7 @@ export interface InstanceTemplateCreate {
42
42
  */
43
43
  'replicas': number;
44
44
  /**
45
- * 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.
45
+ * Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
46
46
  * @type {string}
47
47
  * @memberof InstanceTemplateCreate
48
48
  */
@@ -54,22 +54,10 @@ export interface InstanceTemplateCreate {
54
54
  */
55
55
  'storageClass'?: string;
56
56
  /**
57
- * Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
57
+ * Declared env overrides. Names must be unique; defaults apply only to omitted variables.
58
58
  * @type {Array<InstanceTemplateCreateEnvInner>}
59
59
  * @memberof InstanceTemplateCreate
60
60
  */
61
61
  'env'?: Array<InstanceTemplateCreateEnvInner>;
62
- /**
63
- * Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
64
- * @type {{ [key: string]: string; }}
65
- * @memberof InstanceTemplateCreate
66
- */
67
- 'annotations'?: { [key: string]: string; };
68
- /**
69
- * 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.
70
- * @type {{ [key: string]: string; }}
71
- * @memberof InstanceTemplateCreate
72
- */
73
- 'labels'?: { [key: string]: string; };
74
62
  }
75
63
 
@@ -18,7 +18,7 @@
18
18
  import type { LocalizedDescription } from './localized-description';
19
19
 
20
20
  /**
21
- * One fillable env var on an instance template, for frontend rendering.
21
+ * Allowed template env variable and its input constraints.
22
22
  * @export
23
23
  * @interface InstanceTemplateEnv
24
24
  */
@@ -42,13 +42,13 @@ export interface InstanceTemplateEnv {
42
42
  */
43
43
  'description'?: LocalizedDescription;
44
44
  /**
45
- * If true, the frontend should treat this env as required. Create does not re-check.
45
+ * Requires a non-blank value after applying the default.
46
46
  * @type {boolean}
47
47
  * @memberof InstanceTemplateEnv
48
48
  */
49
49
  'required'?: boolean;
50
50
  /**
51
- * Default value shown by the frontend.
51
+ * Used only when the variable is omitted.
52
52
  * @type {string}
53
53
  * @memberof InstanceTemplateEnv
54
54
  */
@@ -42,13 +42,13 @@ export interface ModeComponentInstanceTemplate {
42
42
  */
43
43
  'ops': Array<InstanceTemplateOp>;
44
44
  /**
45
- * Heterogeneous attributes the frontend should render on each instance template at create. Omitted or empty means only name and replicas. Create overlays the request onto the chart and does not re-check this list.
45
+ * Template UI attributes. Env overrides require env to be enabled.
46
46
  * @type {Set<InstanceTemplateAttribute>}
47
47
  * @memberof ModeComponentInstanceTemplate
48
48
  */
49
49
  'attributes'?: Set<InstanceTemplateAttribute>;
50
50
  /**
51
- * Env vars the frontend may render when attributes includes env. Create does not re-check this list.
51
+ * Allowed env variables, with defaults and required checks applied before persistence.
52
52
  * @type {Array<InstanceTemplateEnv>}
53
53
  * @memberof ModeComponentInstanceTemplate
54
54
  */
@@ -15,7 +15,7 @@
15
15
 
16
16
 
17
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.
18
+ * Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
19
19
  * @export
20
20
  * @enum {string}
21
21
  */
package/src/openapi.yaml CHANGED
@@ -27153,7 +27153,7 @@ components:
27153
27153
  instanceTemplateCreate:
27154
27154
  type: object
27155
27155
  additionalProperties: false
27156
- 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.
27156
+ description: 'Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.'
27157
27157
  required:
27158
27158
  - name
27159
27159
  - replicas
@@ -27171,13 +27171,13 @@ components:
27171
27171
  description: Replica count for this instance template.
27172
27172
  availabilityZone:
27173
27173
  type: string
27174
- 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.
27174
+ description: Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
27175
27175
  storageClass:
27176
27176
  type: string
27177
27177
  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.
27178
27178
  env:
27179
27179
  type: array
27180
- description: Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
27180
+ description: Declared env overrides. Names must be unique; defaults apply only to omitted variables.
27181
27181
  items:
27182
27182
  type: object
27183
27183
  required:
@@ -27186,20 +27186,10 @@ components:
27186
27186
  properties:
27187
27187
  name:
27188
27188
  type: string
27189
+ minLength: 1
27189
27190
  value:
27190
27191
  type: string
27191
- minLength: 1
27192
- description: Plain string value only. valueFrom is not supported.
27193
- annotations:
27194
- type: object
27195
- additionalProperties:
27196
- type: string
27197
- description: Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
27198
- labels:
27199
- type: object
27200
- additionalProperties:
27201
- type: string
27202
- 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.
27192
+ description: Literal string; optional values may be empty. valueFrom is unsupported.
27203
27193
  ioQuantity:
27204
27194
  description: IO Quantity describes IOPS and BPS of a volume
27205
27195
  properties:
@@ -27282,7 +27272,7 @@ components:
27282
27272
  description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
27283
27273
  availabilityZone:
27284
27274
  type: string
27285
- 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.
27275
+ description: Component AZ, enabled in the environment. Required when placementScope is component and this component has no templates; otherwise forbidden. An omitted nodeGroup does not inherit the cluster host group.
27286
27276
  component:
27287
27277
  type: string
27288
27278
  description: component type, refer to componentDef and support NamePrefix
@@ -27297,7 +27287,7 @@ components:
27297
27287
  instanceTemplates:
27298
27288
  type: array
27299
27289
  minItems: 1
27300
- description: Per-template replicas and optional overlays (env, annotations, labels, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
27290
+ description: Per-template replicas and optional overlays (env, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
27301
27291
  items:
27302
27292
  $ref: '#/components/schemas/instanceTemplateCreate'
27303
27293
  skipResourceConstraints:
@@ -27627,7 +27617,7 @@ components:
27627
27617
  instanceTemplates:
27628
27618
  type: array
27629
27619
  x-omitempty: true
27630
- description: Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
27620
+ description: Instance template assignments with effective replicas, placement and storage class, and user-provided env.
27631
27621
  items:
27632
27622
  $ref: '#/components/schemas/instanceTemplateCreate'
27633
27623
  name:
@@ -34730,7 +34720,7 @@ components:
34730
34720
  x-nullable: false
34731
34721
  placementScope:
34732
34722
  type: string
34733
- 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.
34723
+ description: Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
34734
34724
  enum:
34735
34725
  - cluster
34736
34726
  - component
@@ -34754,12 +34744,10 @@ components:
34754
34744
  description: Heterogeneous attribute the frontend may render on an instance template at create.
34755
34745
  enum:
34756
34746
  - env
34757
- - annotations
34758
- - labels
34759
34747
  - storageClass
34760
34748
  instanceTemplateEnv:
34761
34749
  type: object
34762
- description: One fillable env var on an instance template, for frontend rendering.
34750
+ description: Allowed template env variable and its input constraints.
34763
34751
  required:
34764
34752
  - name
34765
34753
  properties:
@@ -34773,10 +34761,10 @@ components:
34773
34761
  $ref: '#/components/schemas/localizedDescription'
34774
34762
  required:
34775
34763
  type: boolean
34776
- description: If true, the frontend should treat this env as required. Create does not re-check.
34764
+ description: Requires a non-blank value after applying the default.
34777
34765
  default:
34778
34766
  type: string
34779
- description: Default value shown by the frontend.
34767
+ description: Used only when the variable is omitted.
34780
34768
  modeReadonlyEndpoint:
34781
34769
  type: object
34782
34770
  required:
@@ -34833,16 +34821,10 @@ components:
34833
34821
  uniqueItems: true
34834
34822
  items:
34835
34823
  $ref: '#/components/schemas/instanceTemplateAttribute'
34836
- description: |
34837
- Heterogeneous attributes the frontend should render on each
34838
- instance template at create. Omitted or empty means only name
34839
- and replicas. Create overlays the request onto the chart and
34840
- does not re-check this list.
34824
+ description: Template UI attributes. Env overrides require env to be enabled.
34841
34825
  env:
34842
34826
  type: array
34843
- description: |
34844
- Env vars the frontend may render when attributes includes env.
34845
- Create does not re-check this list.
34827
+ description: Allowed env variables, with defaults and required checks applied before persistence.
34846
34828
  items:
34847
34829
  $ref: '#/components/schemas/instanceTemplateEnv'
34848
34830
  serviceRef: