kb-cloud-client-typescript 2.2.11 → 2.2.13

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.
package/README.md CHANGED
@@ -1,17 +1,19 @@
1
- # kb-cloud-client-typescript
1
+ # KubeBlocks Cloud TypeScript SDK
2
2
 
3
3
  Auto-generated TypeScript SDK for KubeBlocks Cloud API.
4
4
 
5
- ## SDKs
5
+ ## Install
6
6
 
7
- | SDK | Source | Description |
8
- |-----|--------|-------------|
9
- | `openapi` | `openapi.yaml` | User Portal API |
10
- | `adminapi` | `adminapi.yaml` | Admin Portal API |
11
- | `internalapi` | `internalapi.yaml` | Internal API |
7
+ ```bash
8
+ npm install kb-cloud-client-typescript
9
+ # or
10
+ yarn add kb-cloud-client-typescript
11
+ ```
12
12
 
13
13
  ## Usage
14
14
 
15
+ ### User Portal API (`openapi`)
16
+
15
17
  ```ts
16
18
  import { Configuration, OpenApi } from 'kb-cloud-client-typescript';
17
19
 
@@ -21,53 +23,34 @@ const api = new OpenApi.OrganizationApi(
21
23
  const orgs = await api.listOrg();
22
24
  ```
23
25
 
24
- ## Development
25
-
26
- ### Setup
27
-
28
- ```bash
29
- git clone https://github.com/apecloud/kb-cloud-client-typescript.git
30
- cd kb-cloud-client-typescript
31
- yarn install
32
-
33
- # Clone the OpenAPI spec source (required for SDK generation)
34
- git clone --depth 1 https://github.com/apecloud/apecloud.git apecloud
35
- ```
36
-
37
- To target a specific branch or tag:
26
+ ### Admin Portal API (`adminapi`)
38
27
 
39
- ```bash
40
- # Specific branch
41
- git clone --depth 1 --branch release-2.2 https://github.com/apecloud/apecloud.git apecloud
28
+ ```ts
29
+ import { Configuration, AdminApi } from 'kb-cloud-client-typescript/adminapi';
42
30
 
43
- # Specific tag
44
- git clone --depth 1 --branch v2.2.6 https://github.com/apecloud/apecloud.git apecloud
31
+ const api = new AdminApi.OrganizationApi(
32
+ new Configuration({ basePath: 'https://api.example.com' })
33
+ );
45
34
  ```
46
35
 
47
- If already cloned, switch with:
48
-
49
- ```bash
50
- cd apecloud
51
- git fetch --tags
52
- git checkout v2.2.6
53
- ```
36
+ ### Internal API (`internalapi`)
54
37
 
55
- ### Generate SDK
38
+ ```ts
39
+ import { Configuration, InternalApi } from 'kb-cloud-client-typescript/internalapi';
56
40
 
57
- ```bash
58
- yarn api:build # Bundle specs + generate all three SDKs + tsc
41
+ const api = new InternalApi.SomeApi(
42
+ new Configuration({ basePath: 'https://api.example.com' })
43
+ );
59
44
  ```
60
45
 
61
- ### Publish
62
-
63
- ```bash
64
- yarn publish # Publish to npm
65
- ```
46
+ ## Available SDKs
66
47
 
67
- ## CI
48
+ | Import Path | Description |
49
+ |---|---|
50
+ | `kb-cloud-client-typescript/openapi` | User Portal API |
51
+ | `kb-cloud-client-typescript/adminapi` | Admin Portal API |
52
+ | `kb-cloud-client-typescript/internalapi` | Internal API |
68
53
 
69
- GitHub Actions workflow (`.github/workflows/generate-and-publish.yml`) auto-generates on push to main:
54
+ ## API Documentation
70
55
 
71
- 1. Clone `apecloud/apecloud` (default branch, overridable via `workflow_dispatch`)
72
- 2. `redocly bundle` → `openapi-generator-cli` → `tsc`
73
- 3. Publish to npm (requires `NPM_TOKEN` secret)
56
+ Refer to the [KubeBlocks API documentation](https://docs.kubeblocks.io) for endpoint details.
@@ -21,6 +21,12 @@ export interface DataChannelModuleProgress {
21
21
  * @memberof DataChannelModuleProgress
22
22
  */
23
23
  'moduleName'?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof DataChannelModuleProgress
28
+ */
29
+ 'kubernetesName'?: string | null;
24
30
  /**
25
31
  *
26
32
  * @type {number}
@@ -1 +1 @@
1
- {"version":3,"file":"data-channel-module-progress.d.ts","sourceRoot":"","sources":["../../../src/sdk/openapi/models/data-channel-module-progress.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"}
1
+ {"version":3,"file":"data-channel-module-progress.d.ts","sourceRoot":"","sources":["../../../src/sdk/openapi/models/data-channel-module-progress.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"}
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "kb-cloud-client-typescript",
3
- "version": "2.2.11",
3
+ "version": "2.2.13",
4
4
  "description": "Auto-generated TypeScript SDK for KubeBlocks Cloud API",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/openapi/index.js",
8
8
  "types": "dist/openapi/index.d.ts",
9
9
  "exports": {
10
+ "./openapi": {
11
+ "types": "./dist/openapi/index.d.ts",
12
+ "default": "./dist/openapi/index.js"
13
+ },
10
14
  "./adminapi": {
11
15
  "types": "./dist/adminapi/index.d.ts",
12
16
  "default": "./dist/adminapi/index.js"
@@ -15,10 +19,9 @@
15
19
  "types": "./dist/internalapi/index.d.ts",
16
20
  "default": "./dist/internalapi/index.js"
17
21
  },
18
- "./openapi": {
19
- "types": "./dist/openapi/index.d.ts",
20
- "default": "./dist/openapi/index.js"
21
- }
22
+ "./src/sdk/openapi.yaml": "./src/sdk/openapi.yaml",
23
+ "./src/sdk/adminapi.yaml": "./src/sdk/adminapi.yaml",
24
+ "./src/sdk/internalapi.yaml": "./src/sdk/internalapi.yaml"
22
25
  },
23
26
  "files": [
24
27
  "dist",
@@ -26,6 +26,12 @@ export interface DataChannelModuleProgress {
26
26
  * @memberof DataChannelModuleProgress
27
27
  */
28
28
  'moduleName'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof DataChannelModuleProgress
33
+ */
34
+ 'kubernetesName'?: string | null;
29
35
  /**
30
36
  *
31
37
  * @type {number}
@@ -25555,6 +25555,9 @@ components:
25555
25555
  properties:
25556
25556
  moduleName:
25557
25557
  type: string
25558
+ kubernetesName:
25559
+ type: string
25560
+ nullable: true
25558
25561
  progress:
25559
25562
  type: number
25560
25563
  format: double