@enumco/client 2026.4.2
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 +45 -0
- package/gen/enum/api/v1/common_pb.ts +94 -0
- package/gen/enum/api/v1/kubernetes_clusters_pb.ts +93 -0
- package/gen/enum/api/v1/kubernetes_clusters_service_connect.ts +35 -0
- package/gen/enum/api/v1/kubernetes_clusters_service_pb.ts +170 -0
- package/gen/enum/api/v1/object_storage_access_keys_pb.ts +69 -0
- package/gen/enum/api/v1/object_storage_access_keys_service_connect.ts +62 -0
- package/gen/enum/api/v1/object_storage_access_keys_service_pb.ts +381 -0
- package/gen/enum/api/v1/object_storage_users_pb.ts +75 -0
- package/gen/enum/api/v1/object_storage_users_service_connect.ts +62 -0
- package/gen/enum/api/v1/object_storage_users_service_pb.ts +398 -0
- package/gen/enum/api/v1/options_pb.ts +16 -0
- package/gen/enum/api/v1/organizations_pb.ts +69 -0
- package/gen/enum/api/v1/organizations_service_connect.ts +53 -0
- package/gen/enum/api/v1/organizations_service_pb.ts +336 -0
- package/gen/enum/api/v1/projects_pb.ts +81 -0
- package/gen/enum/api/v1/projects_service_connect.ts +80 -0
- package/gen/enum/api/v1/projects_service_pb.ts +577 -0
- package/gen/enum/api/v1/users_pb.ts +71 -0
- package/gen/enum/api/v1/users_service_connect.ts +62 -0
- package/gen/enum/api/v1/users_service_pb.ts +417 -0
- package/index.ts +70 -0
- package/package.json +15 -0
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# @enumco/client
|
|
2
|
+
|
|
3
|
+
TypeScript client for the enum API.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @enumco/client
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { createClient } from "@enumco/client";
|
|
15
|
+
|
|
16
|
+
const client = createClient({ token: "your-api-token" });
|
|
17
|
+
|
|
18
|
+
const { users } = await client.users.listUsers({});
|
|
19
|
+
const { organization } = await client.organizations.getOrganization({ id: "org-123" });
|
|
20
|
+
const { project } = await client.projects.getProject({ id: "proj-456" });
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Services
|
|
24
|
+
|
|
25
|
+
| Property | Service |
|
|
26
|
+
|---|---|
|
|
27
|
+
| `client.users` | UserService |
|
|
28
|
+
| `client.organizations` | OrganizationService |
|
|
29
|
+
| `client.projects` | ProjectService |
|
|
30
|
+
| `client.kubernetes.clusters` | KubernetesClusterService |
|
|
31
|
+
| `client.objectStorage.users` | ObjectStorageUserService |
|
|
32
|
+
| `client.objectStorage.accessKeys` | ObjectStorageAccessKeyService |
|
|
33
|
+
|
|
34
|
+
## Options
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
createClient({
|
|
38
|
+
token: string; // required - API token
|
|
39
|
+
baseUrl?: string; // optional - defaults to https://api.enum.co
|
|
40
|
+
})
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Documentation
|
|
44
|
+
|
|
45
|
+
See [enum Docs](https://docs.enum.co/).
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file enum/api/v1/common.proto (package enum.api.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message enum.api.v1.PageRequest
|
|
11
|
+
*/
|
|
12
|
+
export class PageRequest extends Message<PageRequest> {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: int32 page_size = 1;
|
|
15
|
+
*/
|
|
16
|
+
pageSize = 0;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: string page_token = 2;
|
|
20
|
+
*/
|
|
21
|
+
pageToken = "";
|
|
22
|
+
|
|
23
|
+
constructor(data?: PartialMessage<PageRequest>) {
|
|
24
|
+
super();
|
|
25
|
+
proto3.util.initPartial(data, this);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
29
|
+
static readonly typeName = "enum.api.v1.PageRequest";
|
|
30
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
31
|
+
{ no: 1, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
32
|
+
{ no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
33
|
+
]);
|
|
34
|
+
|
|
35
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PageRequest {
|
|
36
|
+
return new PageRequest().fromBinary(bytes, options);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PageRequest {
|
|
40
|
+
return new PageRequest().fromJson(jsonValue, options);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PageRequest {
|
|
44
|
+
return new PageRequest().fromJsonString(jsonString, options);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static equals(a: PageRequest | PlainMessage<PageRequest> | undefined, b: PageRequest | PlainMessage<PageRequest> | undefined): boolean {
|
|
48
|
+
return proto3.util.equals(PageRequest, a, b);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @generated from message enum.api.v1.PageResponse
|
|
54
|
+
*/
|
|
55
|
+
export class PageResponse extends Message<PageResponse> {
|
|
56
|
+
/**
|
|
57
|
+
* @generated from field: string next_page_token = 1;
|
|
58
|
+
*/
|
|
59
|
+
nextPageToken = "";
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @generated from field: int32 total_count = 2;
|
|
63
|
+
*/
|
|
64
|
+
totalCount = 0;
|
|
65
|
+
|
|
66
|
+
constructor(data?: PartialMessage<PageResponse>) {
|
|
67
|
+
super();
|
|
68
|
+
proto3.util.initPartial(data, this);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
72
|
+
static readonly typeName = "enum.api.v1.PageResponse";
|
|
73
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
74
|
+
{ no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
|
+
{ no: 2, name: "total_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
76
|
+
]);
|
|
77
|
+
|
|
78
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PageResponse {
|
|
79
|
+
return new PageResponse().fromBinary(bytes, options);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PageResponse {
|
|
83
|
+
return new PageResponse().fromJson(jsonValue, options);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PageResponse {
|
|
87
|
+
return new PageResponse().fromJsonString(jsonString, options);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
static equals(a: PageResponse | PlainMessage<PageResponse> | undefined, b: PageResponse | PlainMessage<PageResponse> | undefined): boolean {
|
|
91
|
+
return proto3.util.equals(PageResponse, a, b);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file enum/api/v1/kubernetes_clusters.proto (package enum.api.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message enum.api.v1.KubernetesCluster
|
|
11
|
+
*/
|
|
12
|
+
export class KubernetesCluster extends Message<KubernetesCluster> {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string id = 1;
|
|
15
|
+
*/
|
|
16
|
+
id = "";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: string project_id = 2;
|
|
20
|
+
*/
|
|
21
|
+
projectId = "";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string name = 3;
|
|
25
|
+
*/
|
|
26
|
+
name = "";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: string zone_id = 4;
|
|
30
|
+
*/
|
|
31
|
+
zoneId = "";
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: string phase = 5;
|
|
35
|
+
*/
|
|
36
|
+
phase = "";
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated from field: map<string, string> labels = 6;
|
|
40
|
+
*/
|
|
41
|
+
labels: { [key: string]: string } = {};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: map<string, string> annotations = 7;
|
|
45
|
+
*/
|
|
46
|
+
annotations: { [key: string]: string } = {};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: google.protobuf.Timestamp created_at = 8;
|
|
50
|
+
*/
|
|
51
|
+
createdAt?: Timestamp;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 9;
|
|
55
|
+
*/
|
|
56
|
+
updatedAt?: Timestamp;
|
|
57
|
+
|
|
58
|
+
constructor(data?: PartialMessage<KubernetesCluster>) {
|
|
59
|
+
super();
|
|
60
|
+
proto3.util.initPartial(data, this);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
64
|
+
static readonly typeName = "enum.api.v1.KubernetesCluster";
|
|
65
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
66
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
67
|
+
{ no: 2, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
68
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
69
|
+
{ no: 4, name: "zone_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
70
|
+
{ no: 5, name: "phase", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
71
|
+
{ no: 6, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
72
|
+
{ no: 7, name: "annotations", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
73
|
+
{ no: 8, name: "created_at", kind: "message", T: Timestamp },
|
|
74
|
+
{ no: 9, name: "updated_at", kind: "message", T: Timestamp },
|
|
75
|
+
]);
|
|
76
|
+
|
|
77
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KubernetesCluster {
|
|
78
|
+
return new KubernetesCluster().fromBinary(bytes, options);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KubernetesCluster {
|
|
82
|
+
return new KubernetesCluster().fromJson(jsonValue, options);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KubernetesCluster {
|
|
86
|
+
return new KubernetesCluster().fromJsonString(jsonString, options);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
static equals(a: KubernetesCluster | PlainMessage<KubernetesCluster> | undefined, b: KubernetesCluster | PlainMessage<KubernetesCluster> | undefined): boolean {
|
|
90
|
+
return proto3.util.equals(KubernetesCluster, a, b);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file enum/api/v1/kubernetes_clusters_service.proto (package enum.api.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { GetKubernetesClusterRequest, GetKubernetesClusterResponse, ListKubernetesClustersRequest, ListKubernetesClustersResponse } from "./kubernetes_clusters_service_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service enum.api.v1.KubernetesClusterService
|
|
11
|
+
*/
|
|
12
|
+
export const KubernetesClusterService = {
|
|
13
|
+
typeName: "enum.api.v1.KubernetesClusterService",
|
|
14
|
+
methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc enum.api.v1.KubernetesClusterService.ListKubernetesClusters
|
|
17
|
+
*/
|
|
18
|
+
listKubernetesClusters: {
|
|
19
|
+
name: "ListKubernetesClusters",
|
|
20
|
+
I: ListKubernetesClustersRequest,
|
|
21
|
+
O: ListKubernetesClustersResponse,
|
|
22
|
+
kind: MethodKind.Unary,
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @generated from rpc enum.api.v1.KubernetesClusterService.GetKubernetesCluster
|
|
26
|
+
*/
|
|
27
|
+
getKubernetesCluster: {
|
|
28
|
+
name: "GetKubernetesCluster",
|
|
29
|
+
I: GetKubernetesClusterRequest,
|
|
30
|
+
O: GetKubernetesClusterResponse,
|
|
31
|
+
kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
} as const;
|
|
35
|
+
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file enum/api/v1/kubernetes_clusters_service.proto (package enum.api.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
import { PageRequest, PageResponse } from "./common_pb.js";
|
|
9
|
+
import { KubernetesCluster } from "./kubernetes_clusters_pb.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @generated from message enum.api.v1.ListKubernetesClustersRequest
|
|
13
|
+
*/
|
|
14
|
+
export class ListKubernetesClustersRequest extends Message<ListKubernetesClustersRequest> {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: string project_id = 1;
|
|
17
|
+
*/
|
|
18
|
+
projectId = "";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: enum.api.v1.PageRequest page = 2;
|
|
22
|
+
*/
|
|
23
|
+
page?: PageRequest;
|
|
24
|
+
|
|
25
|
+
constructor(data?: PartialMessage<ListKubernetesClustersRequest>) {
|
|
26
|
+
super();
|
|
27
|
+
proto3.util.initPartial(data, this);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
31
|
+
static readonly typeName = "enum.api.v1.ListKubernetesClustersRequest";
|
|
32
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
33
|
+
{ no: 1, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
34
|
+
{ no: 2, name: "page", kind: "message", T: PageRequest },
|
|
35
|
+
]);
|
|
36
|
+
|
|
37
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListKubernetesClustersRequest {
|
|
38
|
+
return new ListKubernetesClustersRequest().fromBinary(bytes, options);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListKubernetesClustersRequest {
|
|
42
|
+
return new ListKubernetesClustersRequest().fromJson(jsonValue, options);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListKubernetesClustersRequest {
|
|
46
|
+
return new ListKubernetesClustersRequest().fromJsonString(jsonString, options);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
static equals(a: ListKubernetesClustersRequest | PlainMessage<ListKubernetesClustersRequest> | undefined, b: ListKubernetesClustersRequest | PlainMessage<ListKubernetesClustersRequest> | undefined): boolean {
|
|
50
|
+
return proto3.util.equals(ListKubernetesClustersRequest, a, b);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @generated from message enum.api.v1.ListKubernetesClustersResponse
|
|
56
|
+
*/
|
|
57
|
+
export class ListKubernetesClustersResponse extends Message<ListKubernetesClustersResponse> {
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: repeated enum.api.v1.KubernetesCluster clusters = 1;
|
|
60
|
+
*/
|
|
61
|
+
clusters: KubernetesCluster[] = [];
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: enum.api.v1.PageResponse page = 2;
|
|
65
|
+
*/
|
|
66
|
+
page?: PageResponse;
|
|
67
|
+
|
|
68
|
+
constructor(data?: PartialMessage<ListKubernetesClustersResponse>) {
|
|
69
|
+
super();
|
|
70
|
+
proto3.util.initPartial(data, this);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
74
|
+
static readonly typeName = "enum.api.v1.ListKubernetesClustersResponse";
|
|
75
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
76
|
+
{ no: 1, name: "clusters", kind: "message", T: KubernetesCluster, repeated: true },
|
|
77
|
+
{ no: 2, name: "page", kind: "message", T: PageResponse },
|
|
78
|
+
]);
|
|
79
|
+
|
|
80
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListKubernetesClustersResponse {
|
|
81
|
+
return new ListKubernetesClustersResponse().fromBinary(bytes, options);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListKubernetesClustersResponse {
|
|
85
|
+
return new ListKubernetesClustersResponse().fromJson(jsonValue, options);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListKubernetesClustersResponse {
|
|
89
|
+
return new ListKubernetesClustersResponse().fromJsonString(jsonString, options);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static equals(a: ListKubernetesClustersResponse | PlainMessage<ListKubernetesClustersResponse> | undefined, b: ListKubernetesClustersResponse | PlainMessage<ListKubernetesClustersResponse> | undefined): boolean {
|
|
93
|
+
return proto3.util.equals(ListKubernetesClustersResponse, a, b);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @generated from message enum.api.v1.GetKubernetesClusterRequest
|
|
99
|
+
*/
|
|
100
|
+
export class GetKubernetesClusterRequest extends Message<GetKubernetesClusterRequest> {
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: string id = 1;
|
|
103
|
+
*/
|
|
104
|
+
id = "";
|
|
105
|
+
|
|
106
|
+
constructor(data?: PartialMessage<GetKubernetesClusterRequest>) {
|
|
107
|
+
super();
|
|
108
|
+
proto3.util.initPartial(data, this);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
112
|
+
static readonly typeName = "enum.api.v1.GetKubernetesClusterRequest";
|
|
113
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
114
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
115
|
+
]);
|
|
116
|
+
|
|
117
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetKubernetesClusterRequest {
|
|
118
|
+
return new GetKubernetesClusterRequest().fromBinary(bytes, options);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetKubernetesClusterRequest {
|
|
122
|
+
return new GetKubernetesClusterRequest().fromJson(jsonValue, options);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetKubernetesClusterRequest {
|
|
126
|
+
return new GetKubernetesClusterRequest().fromJsonString(jsonString, options);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
static equals(a: GetKubernetesClusterRequest | PlainMessage<GetKubernetesClusterRequest> | undefined, b: GetKubernetesClusterRequest | PlainMessage<GetKubernetesClusterRequest> | undefined): boolean {
|
|
130
|
+
return proto3.util.equals(GetKubernetesClusterRequest, a, b);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @generated from message enum.api.v1.GetKubernetesClusterResponse
|
|
136
|
+
*/
|
|
137
|
+
export class GetKubernetesClusterResponse extends Message<GetKubernetesClusterResponse> {
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: enum.api.v1.KubernetesCluster cluster = 1;
|
|
140
|
+
*/
|
|
141
|
+
cluster?: KubernetesCluster;
|
|
142
|
+
|
|
143
|
+
constructor(data?: PartialMessage<GetKubernetesClusterResponse>) {
|
|
144
|
+
super();
|
|
145
|
+
proto3.util.initPartial(data, this);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
149
|
+
static readonly typeName = "enum.api.v1.GetKubernetesClusterResponse";
|
|
150
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
151
|
+
{ no: 1, name: "cluster", kind: "message", T: KubernetesCluster },
|
|
152
|
+
]);
|
|
153
|
+
|
|
154
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetKubernetesClusterResponse {
|
|
155
|
+
return new GetKubernetesClusterResponse().fromBinary(bytes, options);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetKubernetesClusterResponse {
|
|
159
|
+
return new GetKubernetesClusterResponse().fromJson(jsonValue, options);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetKubernetesClusterResponse {
|
|
163
|
+
return new GetKubernetesClusterResponse().fromJsonString(jsonString, options);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
static equals(a: GetKubernetesClusterResponse | PlainMessage<GetKubernetesClusterResponse> | undefined, b: GetKubernetesClusterResponse | PlainMessage<GetKubernetesClusterResponse> | undefined): boolean {
|
|
167
|
+
return proto3.util.equals(GetKubernetesClusterResponse, a, b);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file enum/api/v1/object_storage_access_keys.proto (package enum.api.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message enum.api.v1.ObjectStorageAccessKey
|
|
11
|
+
*/
|
|
12
|
+
export class ObjectStorageAccessKey extends Message<ObjectStorageAccessKey> {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string id = 1;
|
|
15
|
+
*/
|
|
16
|
+
id = "";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: string object_storage_user_id = 2;
|
|
20
|
+
*/
|
|
21
|
+
objectStorageUserId = "";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string access_key_id = 3;
|
|
25
|
+
*/
|
|
26
|
+
accessKeyId = "";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
30
|
+
*/
|
|
31
|
+
createdAt?: Timestamp;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: google.protobuf.Timestamp revoked_at = 5;
|
|
35
|
+
*/
|
|
36
|
+
revokedAt?: Timestamp;
|
|
37
|
+
|
|
38
|
+
constructor(data?: PartialMessage<ObjectStorageAccessKey>) {
|
|
39
|
+
super();
|
|
40
|
+
proto3.util.initPartial(data, this);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
44
|
+
static readonly typeName = "enum.api.v1.ObjectStorageAccessKey";
|
|
45
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
46
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
47
|
+
{ no: 2, name: "object_storage_user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
48
|
+
{ no: 3, name: "access_key_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
49
|
+
{ no: 4, name: "created_at", kind: "message", T: Timestamp },
|
|
50
|
+
{ no: 5, name: "revoked_at", kind: "message", T: Timestamp },
|
|
51
|
+
]);
|
|
52
|
+
|
|
53
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ObjectStorageAccessKey {
|
|
54
|
+
return new ObjectStorageAccessKey().fromBinary(bytes, options);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ObjectStorageAccessKey {
|
|
58
|
+
return new ObjectStorageAccessKey().fromJson(jsonValue, options);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ObjectStorageAccessKey {
|
|
62
|
+
return new ObjectStorageAccessKey().fromJsonString(jsonString, options);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static equals(a: ObjectStorageAccessKey | PlainMessage<ObjectStorageAccessKey> | undefined, b: ObjectStorageAccessKey | PlainMessage<ObjectStorageAccessKey> | undefined): boolean {
|
|
66
|
+
return proto3.util.equals(ObjectStorageAccessKey, a, b);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file enum/api/v1/object_storage_access_keys_service.proto (package enum.api.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { CreateObjectStorageAccessKeyRequest, CreateObjectStorageAccessKeyResponse, DeleteObjectStorageAccessKeyRequest, DeleteObjectStorageAccessKeyResponse, GetObjectStorageAccessKeyByKeyIdRequest, GetObjectStorageAccessKeyByKeyIdResponse, GetObjectStorageAccessKeyRequest, GetObjectStorageAccessKeyResponse, ListObjectStorageAccessKeysRequest, ListObjectStorageAccessKeysResponse } from "./object_storage_access_keys_service_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service enum.api.v1.ObjectStorageAccessKeyService
|
|
11
|
+
*/
|
|
12
|
+
export const ObjectStorageAccessKeyService = {
|
|
13
|
+
typeName: "enum.api.v1.ObjectStorageAccessKeyService",
|
|
14
|
+
methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc enum.api.v1.ObjectStorageAccessKeyService.GetObjectStorageAccessKey
|
|
17
|
+
*/
|
|
18
|
+
getObjectStorageAccessKey: {
|
|
19
|
+
name: "GetObjectStorageAccessKey",
|
|
20
|
+
I: GetObjectStorageAccessKeyRequest,
|
|
21
|
+
O: GetObjectStorageAccessKeyResponse,
|
|
22
|
+
kind: MethodKind.Unary,
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @generated from rpc enum.api.v1.ObjectStorageAccessKeyService.GetObjectStorageAccessKeyByKeyId
|
|
26
|
+
*/
|
|
27
|
+
getObjectStorageAccessKeyByKeyId: {
|
|
28
|
+
name: "GetObjectStorageAccessKeyByKeyId",
|
|
29
|
+
I: GetObjectStorageAccessKeyByKeyIdRequest,
|
|
30
|
+
O: GetObjectStorageAccessKeyByKeyIdResponse,
|
|
31
|
+
kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc enum.api.v1.ObjectStorageAccessKeyService.ListObjectStorageAccessKeys
|
|
35
|
+
*/
|
|
36
|
+
listObjectStorageAccessKeys: {
|
|
37
|
+
name: "ListObjectStorageAccessKeys",
|
|
38
|
+
I: ListObjectStorageAccessKeysRequest,
|
|
39
|
+
O: ListObjectStorageAccessKeysResponse,
|
|
40
|
+
kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* @generated from rpc enum.api.v1.ObjectStorageAccessKeyService.CreateObjectStorageAccessKey
|
|
44
|
+
*/
|
|
45
|
+
createObjectStorageAccessKey: {
|
|
46
|
+
name: "CreateObjectStorageAccessKey",
|
|
47
|
+
I: CreateObjectStorageAccessKeyRequest,
|
|
48
|
+
O: CreateObjectStorageAccessKeyResponse,
|
|
49
|
+
kind: MethodKind.Unary,
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* @generated from rpc enum.api.v1.ObjectStorageAccessKeyService.DeleteObjectStorageAccessKey
|
|
53
|
+
*/
|
|
54
|
+
deleteObjectStorageAccessKey: {
|
|
55
|
+
name: "DeleteObjectStorageAccessKey",
|
|
56
|
+
I: DeleteObjectStorageAccessKeyRequest,
|
|
57
|
+
O: DeleteObjectStorageAccessKeyResponse,
|
|
58
|
+
kind: MethodKind.Unary,
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
} as const;
|
|
62
|
+
|