@daocloud-proto/baize 0.101.0 → 0.101.1

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.
@@ -14,6 +14,12 @@ export type Pagination = {
14
14
  search?: string
15
15
  }
16
16
 
17
+ export type SearchIndex = {
18
+ searchKey?: string
19
+ objectPath?: string
20
+ customPath?: string
21
+ }
22
+
17
23
  export type Auth = {
18
24
  group?: string
19
25
  namespaced?: boolean
@@ -65,6 +65,6 @@ export class ClusterService {
65
65
  return fm.fetchReq<ListClusterNamespaceRequest, ListClusterNamespaceResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspace", "cluster"])}`, {...initReq, method: "GET"})
66
66
  }
67
67
  static ListPVCs(req: ListPVCsRequest, initReq?: fm.InitReq): Promise<ListPVCsResponse> {
68
- return fm.fetchReq<ListPVCsRequest, ListPVCsResponse>(`/apis/baize.io/v1alpha1/workspace/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/pvcs?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
68
+ return fm.fetchReq<ListPVCsRequest, ListPVCsResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/pvcs?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
69
69
  }
70
70
  }
@@ -0,0 +1,33 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as BaizeCommonCommon from "../../../common/common.pb"
8
+ import * as fm from "../../../fetch.pb"
9
+ export type ListDevicesGPUsRequest = {
10
+ page?: BaizeCommonCommon.Pagination
11
+ }
12
+
13
+ export type DeviceGPU = {
14
+ deviceUUID?: string
15
+ nodeIP?: string
16
+ cluster?: string
17
+ serialNumber?: string
18
+ modelName?: string
19
+ vendor?: string
20
+ totalFrameBufferMemory?: string
21
+ usedFrameBufferMemory?: string
22
+ }
23
+
24
+ export type ListDevicesGPUsResponse = {
25
+ items?: DeviceGPU[]
26
+ page?: BaizeCommonCommon.Pagination
27
+ }
28
+
29
+ export class DeviceService {
30
+ static ListDevicesGPUs(req: ListDevicesGPUsRequest, initReq?: fm.InitReq): Promise<ListDevicesGPUsResponse> {
31
+ return fm.fetchReq<ListDevicesGPUsRequest, ListDevicesGPUsResponse>(`/apis/baize.io/v1alpha1/devices/gpus?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
32
+ }
33
+ }
@@ -0,0 +1,17 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as BaizeCommonCommon from "../../../common/common.pb"
8
+ import * as fm from "../../../fetch.pb"
9
+ export type UserPermission = {
10
+ isBaizeOwner?: boolean
11
+ }
12
+
13
+ export class PermissionService {
14
+ static GetCurrentUserPermission(req: BaizeCommonCommon.NoParamsQuery, initReq?: fm.InitReq): Promise<UserPermission> {
15
+ return fm.fetchReq<BaizeCommonCommon.NoParamsQuery, UserPermission>(`/apis/baize.io/v1alpha1/current-user/permission?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
16
+ }
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.101.0",
3
+ "version": "v0.101.1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"