Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@daocloud-proto/kant

Package Overview
Dependencies
Maintainers
3
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@daocloud-proto/kant - npm Package Compare versions

Comparing version 0.11.0-alpha2 to 0.11.0-rc

core/v1beta1/device.pb.ts

33

core/v1alpha1/rpc.pb.ts

@@ -28,3 +28,2 @@ /* eslint-disable */

import * as KantIoApiCoreV1alpha1Device from "./device.pb"
import * as KantIoApiCoreV1alpha1Devicemodel from "./devicemodel.pb"
import * as KantIoApiCoreV1alpha1Edgeunit from "./edgeunit.pb"

@@ -152,5 +151,14 @@ import * as KantIoApiCoreV1alpha1Internalresourcerequest from "./internalresourcerequest.pb"

}
static ListWorkspaceVisitorClusters(req: KantIoApiCoreV1alpha1Workspaces.WorkspacesClusterListRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Workspaces.WorkspacesClusterListResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Workspaces.WorkspacesClusterListRequest, KantIoApiCoreV1alpha1Workspaces.WorkspacesClusterListResponse>(`/apis/core.kant.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
}
static ListVisitorNamespaces(req: KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListRequest, KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListResponse>(`/apis/core.kant.io/v1alpha1/workspaces/clusters/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static ListWorkspaceVisitorNamespaces(req: KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListRequest, KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListResponse>(`/apis/core.kant.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
}
static ListVisibleWorkspaces(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Workspaces.ListWorkspacesResponse> {
return fm.fetchReq<GoogleProtobufEmpty.Empty, KantIoApiCoreV1alpha1Workspaces.ListWorkspacesResponse>(`/apis/core.kant.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
}
}

@@ -291,25 +299,2 @@ export class EdgeUnits {

}
export class DeviceModels {
static ListClusterDeviceModels(req: KantIoApiCoreV1alpha1Devicemodel.ListClusterDeviceModelRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Devicemodel.ListDeviceModelResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Devicemodel.ListClusterDeviceModelRequest, KantIoApiCoreV1alpha1Devicemodel.ListDeviceModelResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/devicemodels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static ListDeviceModels(req: KantIoApiCoreV1alpha1Devicemodel.ListDeviceModelRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Devicemodel.ListDeviceModelResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Devicemodel.ListDeviceModelRequest, KantIoApiCoreV1alpha1Devicemodel.ListDeviceModelResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devicemodels?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}
static GetDeviceModel(req: KantIoApiCoreV1alpha1Devicemodel.GetDeviceModelRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Devicemodel.DeviceModel> {
return fm.fetchReq<KantIoApiCoreV1alpha1Devicemodel.GetDeviceModelRequest, KantIoApiCoreV1alpha1Devicemodel.DeviceModel>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devicemodels/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}
static CreateDeviceModel(req: KantIoApiCoreV1alpha1Devicemodel.CreateDeviceModelRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Devicemodel.DeviceModel> {
return fm.fetchReq<KantIoApiCoreV1alpha1Devicemodel.CreateDeviceModelRequest, KantIoApiCoreV1alpha1Devicemodel.DeviceModel>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devicemodels`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
static UpdateDeviceModel(req: KantIoApiCoreV1alpha1Devicemodel.UpdateDeviceModelRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Devicemodel.DeviceModel> {
return fm.fetchReq<KantIoApiCoreV1alpha1Devicemodel.UpdateDeviceModelRequest, KantIoApiCoreV1alpha1Devicemodel.DeviceModel>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devicemodels/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
}
static DeleteDeviceModel(req: KantIoApiCoreV1alpha1Devicemodel.DeleteDeviceModelRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KantIoApiCoreV1alpha1Devicemodel.DeleteDeviceModelRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devicemodels/${req["name"]}`, {...initReq, method: "DELETE"})
}
static BatchDeleteDeviceModels(req: KantIoApiCommonV1alpha1Batchresource.BatchResourceRequest, initReq?: fm.InitReq): Promise<KantIoApiCommonV1alpha1Batchresource.BatchResourceResponse> {
return fm.fetchReq<KantIoApiCommonV1alpha1Batchresource.BatchResourceRequest, KantIoApiCommonV1alpha1Batchresource.BatchResourceResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/devicemodels`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
}
}
export class NodeGroups {

@@ -316,0 +301,0 @@ static CreateNodeGroup(req: KantIoApiCoreV1alpha1Nodegroup.CreateNodeGroupRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Nodegroup.NodeGroup> {

@@ -6,2 +6,6 @@ /* eslint-disable */

*/
export type WorkspacesClusterListRequest = {
workspaceId?: string
}
export type WorkspacesClusterListResponse = {

@@ -18,2 +22,3 @@ clusterInfos?: ClusterInfo[]

cluster?: string
workspaceId?: string
}

@@ -23,2 +28,11 @@

namespaces?: string[]
}
export type WorkspaceInfo = {
id?: number
alias?: string
}
export type ListWorkspacesResponse = {
items?: WorkspaceInfo[]
}

@@ -109,2 +109,3 @@ /* eslint-disable */

cluster?: string
workspaceId?: string
}

@@ -111,0 +112,0 @@

@@ -7,4 +7,7 @@ /* eslint-disable */

import * as KantIoApiCommonV1alpha1Batchresource from "../../common/v1alpha1/batchresource.pb"
import * as fm from "../../fetch.pb"
import * as GoogleProtobufEmpty from "../../google/api/empty.pb"
import * as KantIoApiCoreV1beta1Device from "./device.pb"
import * as KantIoApiCoreV1beta1Devicemodel from "./devicemodel.pb"
import * as KantIoApiCoreV1beta1Edgeunit from "./edgeunit.pb"

@@ -21,2 +24,5 @@ export class EdgeUnits {

}
static ListWorkspaceEdgeUnit(req: KantIoApiCoreV1beta1Edgeunit.EdgeUnitListRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Edgeunit.EdgeUnitListResponse> {
return fm.fetchReq<KantIoApiCoreV1beta1Edgeunit.EdgeUnitListRequest, KantIoApiCoreV1beta1Edgeunit.EdgeUnitListResponse>(`/apis/core.kant.io/v1beta1/workspaces/${req["workspaceId"]}/edgeunits?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
}
static UpdateEdgeUnit(req: KantIoApiCoreV1beta1Edgeunit.EdgeUnitUpdateRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Edgeunit.EdgeUnit> {

@@ -34,2 +40,51 @@ return fm.fetchReq<KantIoApiCoreV1beta1Edgeunit.EdgeUnitUpdateRequest, KantIoApiCoreV1beta1Edgeunit.EdgeUnit>(`/apis/core.kant.io/v1beta1/edgeunits/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})

}
}
export class Devices {
static ListClusterDevices(req: KantIoApiCoreV1beta1Device.ListClusterDeviceRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Device.ListDeviceResponse> {
return fm.fetchReq<KantIoApiCoreV1beta1Device.ListClusterDeviceRequest, KantIoApiCoreV1beta1Device.ListDeviceResponse>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/devices?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static ListDevices(req: KantIoApiCoreV1beta1Device.ListDeviceRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Device.ListDeviceResponse> {
return fm.fetchReq<KantIoApiCoreV1beta1Device.ListDeviceRequest, KantIoApiCoreV1beta1Device.ListDeviceResponse>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devices?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}
static GetDevice(req: KantIoApiCoreV1beta1Device.GetDeviceRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Device.Device> {
return fm.fetchReq<KantIoApiCoreV1beta1Device.GetDeviceRequest, KantIoApiCoreV1beta1Device.Device>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devices/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}
static CreateDevice(req: KantIoApiCoreV1beta1Device.CreateDeviceRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Device.Device> {
return fm.fetchReq<KantIoApiCoreV1beta1Device.CreateDeviceRequest, KantIoApiCoreV1beta1Device.Device>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devices`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
static UpdateDevice(req: KantIoApiCoreV1beta1Device.UpdateDeviceRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Device.Device> {
return fm.fetchReq<KantIoApiCoreV1beta1Device.UpdateDeviceRequest, KantIoApiCoreV1beta1Device.Device>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devices/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
}
static DeleteDevice(req: KantIoApiCoreV1beta1Device.DeleteDeviceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KantIoApiCoreV1beta1Device.DeleteDeviceRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devices/${req["name"]}`, {...initReq, method: "DELETE"})
}
static BindNode(req: KantIoApiCoreV1beta1Device.BindNodeRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KantIoApiCoreV1beta1Device.BindNodeRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devices/${req["name"]}/bind-node`, {...initReq, method: "PATCH", body: JSON.stringify(req)})
}
static BatchDeleteDevices(req: KantIoApiCommonV1alpha1Batchresource.BatchResourceRequest, initReq?: fm.InitReq): Promise<KantIoApiCommonV1alpha1Batchresource.BatchResourceResponse> {
return fm.fetchReq<KantIoApiCommonV1alpha1Batchresource.BatchResourceRequest, KantIoApiCommonV1alpha1Batchresource.BatchResourceResponse>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/devices`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
}
}
export class DeviceModels {
static ListClusterDeviceModels(req: KantIoApiCoreV1beta1Devicemodel.ListClusterDeviceModelRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Devicemodel.ListDeviceModelResponse> {
return fm.fetchReq<KantIoApiCoreV1beta1Devicemodel.ListClusterDeviceModelRequest, KantIoApiCoreV1beta1Devicemodel.ListDeviceModelResponse>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/devicemodels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static ListDeviceModels(req: KantIoApiCoreV1beta1Devicemodel.ListDeviceModelRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Devicemodel.ListDeviceModelResponse> {
return fm.fetchReq<KantIoApiCoreV1beta1Devicemodel.ListDeviceModelRequest, KantIoApiCoreV1beta1Devicemodel.ListDeviceModelResponse>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devicemodels?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}
static GetDeviceModel(req: KantIoApiCoreV1beta1Devicemodel.GetDeviceModelRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Devicemodel.DeviceModel> {
return fm.fetchReq<KantIoApiCoreV1beta1Devicemodel.GetDeviceModelRequest, KantIoApiCoreV1beta1Devicemodel.DeviceModel>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devicemodels/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}
static CreateDeviceModel(req: KantIoApiCoreV1beta1Devicemodel.CreateDeviceModelRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Devicemodel.DeviceModel> {
return fm.fetchReq<KantIoApiCoreV1beta1Devicemodel.CreateDeviceModelRequest, KantIoApiCoreV1beta1Devicemodel.DeviceModel>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devicemodels`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
static UpdateDeviceModel(req: KantIoApiCoreV1beta1Devicemodel.UpdateDeviceModelRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Devicemodel.DeviceModel> {
return fm.fetchReq<KantIoApiCoreV1beta1Devicemodel.UpdateDeviceModelRequest, KantIoApiCoreV1beta1Devicemodel.DeviceModel>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devicemodels/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
}
static DeleteDeviceModel(req: KantIoApiCoreV1beta1Devicemodel.DeleteDeviceModelRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KantIoApiCoreV1beta1Devicemodel.DeleteDeviceModelRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devicemodels/${req["name"]}`, {...initReq, method: "DELETE"})
}
static BatchDeleteDeviceModels(req: KantIoApiCommonV1alpha1Batchresource.BatchResourceRequest, initReq?: fm.InitReq): Promise<KantIoApiCommonV1alpha1Batchresource.BatchResourceResponse> {
return fm.fetchReq<KantIoApiCommonV1alpha1Batchresource.BatchResourceRequest, KantIoApiCommonV1alpha1Batchresource.BatchResourceResponse>(`/apis/core.kant.io/v1beta1/clusters/${req["cluster"]}/namespaces/devicemodels`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
}
}
{
"name":"@daocloud-proto/kant",
"version":"0.11.0-alpha2",
"version":"0.11.0-rc",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -43,2 +43,3 @@ /* eslint-disable */

defaultPortTunnel?: number
defaultKantadmDownloadURL?: string
}

@@ -45,0 +46,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc