@virtru/dsp-sdk 0.2.4 → 0.3.0
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/.rush/temp/chunked-rush-logs/dsp-sdk._phase_build.chunks.jsonl +3 -3
- package/.rush/temp/chunked-rush-logs/dsp-sdk._phase_test.chunks.jsonl +36 -9
- package/.rush/temp/package-deps__phase_build.json +16 -8
- package/.rush/temp/shrinkwrap-deps.json +7 -1
- package/CHANGELOG.json +14 -0
- package/CHANGELOG.md +8 -1
- package/README.md +55 -0
- package/buf.gen.yaml +17 -0
- package/buf.yaml +4 -0
- package/dist/src/gen/virtru/common/common_pb.d.ts +151 -0
- package/dist/src/gen/virtru/common/common_pb.js +57 -0
- package/dist/src/gen/virtru/policy/certificates/v1/certificates_pb.d.ts +215 -0
- package/dist/src/gen/virtru/policy/certificates/v1/certificates_pb.js +50 -0
- package/dist/src/gen/virtru/policy/objects_pb.d.ts +188 -0
- package/dist/src/gen/virtru/policy/objects_pb.js +126 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/lib/client.d.ts +2 -0
- package/dist/src/lib/client.js +2 -0
- package/dist/src/lib/consts.d.ts +2 -0
- package/dist/src/lib/consts.js +7 -0
- package/dist/src/lib/utils.d.ts +136 -0
- package/dist/src/lib/utils.js +355 -2
- package/package.json +4 -2
- package/src/gen/virtru/common/common_pb.ts +179 -0
- package/src/gen/virtru/policy/certificates/v1/certificates_connect.ts +44 -0
- package/src/gen/virtru/policy/certificates/v1/certificates_pb.ts +260 -0
- package/src/gen/virtru/policy/objects_pb.ts +235 -0
- package/src/index.ts +15 -1
- package/src/lib/client.ts +3 -0
- package/src/lib/consts.ts +8 -0
- package/src/lib/utils.test.ts +376 -0
- package/src/lib/utils.ts +460 -4
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.3.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file virtru/common/common.proto (package virtru.common, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
7
|
+
import { file_buf_validate_validate } from "../../buf/validate/validate_pb";
|
|
8
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
10
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Describes the file virtru/common/common.proto.
|
|
14
|
+
*/
|
|
15
|
+
export const file_virtru_common_common: GenFile = /*@__PURE__*/
|
|
16
|
+
fileDesc("Chp2aXJ0cnUvY29tbW9uL2NvbW1vbi5wcm90bxINdmlydHJ1LmNvbW1vbiLOAQoITWV0YWRhdGESLgoKY3JlYXRlZF9hdBgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASMwoGbGFiZWxzGAMgAygLMiMudmlydHJ1LmNvbW1vbi5NZXRhZGF0YS5MYWJlbHNFbnRyeRotCgtMYWJlbHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBInwKD01ldGFkYXRhTXV0YWJsZRI6CgZsYWJlbHMYAyADKAsyKi52aXJ0cnUuY29tbW9uLk1ldGFkYXRhTXV0YWJsZS5MYWJlbHNFbnRyeRotCgtMYWJlbHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIlkKD0lkRnFuSWRlbnRpZmllchIWCgJpZBgBIAEoCUIIukgFcgOwAQFIABIZCgNmcW4YAiABKAlCCrpIB3IFEAGIAQFIAEITCgppZGVudGlmaWVyEgW6SAIIASIsCgtQYWdlUmVxdWVzdBINCgVsaW1pdBgBIAEoBRIOCgZvZmZzZXQYAiABKAUiSgoMUGFnZVJlc3BvbnNlEhYKDmN1cnJlbnRfb2Zmc2V0GAEgASgFEhMKC25leHRfb2Zmc2V0GAIgASgFEg0KBXRvdGFsGAMgASgFKn0KEk1ldGFkYXRhVXBkYXRlRW51bRIkCiBNRVRBREFUQV9VUERBVEVfRU5VTV9VTlNQRUNJRklFRBAAEh8KG01FVEFEQVRBX1VQREFURV9FTlVNX0VYVEVORBABEiAKHE1FVEFEQVRBX1VQREFURV9FTlVNX1JFUExBQ0UQAkJ1ChFjb20udmlydHJ1LmNvbW1vbkILQ29tbW9uUHJvdG9QAaICA1ZDWKoCDVZpcnRydS5Db21tb27KAg1WaXJ0cnVcQ29tbW9u4gIZVmlydHJ1XENvbW1vblxHUEJNZXRhZGF0YeoCDlZpcnRydTo6Q29tbW9uYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_timestamp]);
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from message virtru.common.Metadata
|
|
20
|
+
*/
|
|
21
|
+
export type Metadata = Message<"virtru.common.Metadata"> & {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: google.protobuf.Timestamp created_at = 1;
|
|
24
|
+
*/
|
|
25
|
+
createdAt?: Timestamp;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 2;
|
|
29
|
+
*/
|
|
30
|
+
updatedAt?: Timestamp;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @generated from field: map<string, string> labels = 3;
|
|
34
|
+
*/
|
|
35
|
+
labels: { [key: string]: string };
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message virtru.common.Metadata.
|
|
40
|
+
* Use `create(MetadataSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
export const MetadataSchema: GenMessage<Metadata> = /*@__PURE__*/
|
|
43
|
+
messageDesc(file_virtru_common_common, 0);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @generated from message virtru.common.MetadataMutable
|
|
47
|
+
*/
|
|
48
|
+
export type MetadataMutable = Message<"virtru.common.MetadataMutable"> & {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: map<string, string> labels = 3;
|
|
51
|
+
*/
|
|
52
|
+
labels: { [key: string]: string };
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message virtru.common.MetadataMutable.
|
|
57
|
+
* Use `create(MetadataMutableSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export const MetadataMutableSchema: GenMessage<MetadataMutable> = /*@__PURE__*/
|
|
60
|
+
messageDesc(file_virtru_common_common, 1);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @generated from message virtru.common.IdFqnIdentifier
|
|
64
|
+
*/
|
|
65
|
+
export type IdFqnIdentifier = Message<"virtru.common.IdFqnIdentifier"> & {
|
|
66
|
+
/**
|
|
67
|
+
* @generated from oneof virtru.common.IdFqnIdentifier.identifier
|
|
68
|
+
*/
|
|
69
|
+
identifier: {
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: string id = 1;
|
|
72
|
+
*/
|
|
73
|
+
value: string;
|
|
74
|
+
case: "id";
|
|
75
|
+
} | {
|
|
76
|
+
/**
|
|
77
|
+
* @generated from field: string fqn = 2;
|
|
78
|
+
*/
|
|
79
|
+
value: string;
|
|
80
|
+
case: "fqn";
|
|
81
|
+
} | { case: undefined; value?: undefined };
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Describes the message virtru.common.IdFqnIdentifier.
|
|
86
|
+
* Use `create(IdFqnIdentifierSchema)` to create a new message.
|
|
87
|
+
*/
|
|
88
|
+
export const IdFqnIdentifierSchema: GenMessage<IdFqnIdentifier> = /*@__PURE__*/
|
|
89
|
+
messageDesc(file_virtru_common_common, 2);
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @generated from message virtru.common.PageRequest
|
|
93
|
+
*/
|
|
94
|
+
export type PageRequest = Message<"virtru.common.PageRequest"> & {
|
|
95
|
+
/**
|
|
96
|
+
* Optional
|
|
97
|
+
* Set to configured default limit if not provided
|
|
98
|
+
* Maximum limit set in platform config and enforced by services
|
|
99
|
+
*
|
|
100
|
+
* @generated from field: int32 limit = 1;
|
|
101
|
+
*/
|
|
102
|
+
limit: number;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Optional
|
|
106
|
+
* Defaulted if not provided
|
|
107
|
+
*
|
|
108
|
+
* @generated from field: int32 offset = 2;
|
|
109
|
+
*/
|
|
110
|
+
offset: number;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Describes the message virtru.common.PageRequest.
|
|
115
|
+
* Use `create(PageRequestSchema)` to create a new message.
|
|
116
|
+
*/
|
|
117
|
+
export const PageRequestSchema: GenMessage<PageRequest> = /*@__PURE__*/
|
|
118
|
+
messageDesc(file_virtru_common_common, 3);
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @generated from message virtru.common.PageResponse
|
|
122
|
+
*/
|
|
123
|
+
export type PageResponse = Message<"virtru.common.PageResponse"> & {
|
|
124
|
+
/**
|
|
125
|
+
* Requested pagination offset
|
|
126
|
+
*
|
|
127
|
+
* @generated from field: int32 current_offset = 1;
|
|
128
|
+
*/
|
|
129
|
+
currentOffset: number;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Calculated with request limit + offset or defaults
|
|
133
|
+
* Empty when none remain after current page
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: int32 next_offset = 2;
|
|
136
|
+
*/
|
|
137
|
+
nextOffset: number;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Total count of entire list
|
|
141
|
+
*
|
|
142
|
+
* @generated from field: int32 total = 3;
|
|
143
|
+
*/
|
|
144
|
+
total: number;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Describes the message virtru.common.PageResponse.
|
|
149
|
+
* Use `create(PageResponseSchema)` to create a new message.
|
|
150
|
+
*/
|
|
151
|
+
export const PageResponseSchema: GenMessage<PageResponse> = /*@__PURE__*/
|
|
152
|
+
messageDesc(file_virtru_common_common, 4);
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @generated from enum virtru.common.MetadataUpdateEnum
|
|
156
|
+
*/
|
|
157
|
+
export enum MetadataUpdateEnum {
|
|
158
|
+
/**
|
|
159
|
+
* @generated from enum value: METADATA_UPDATE_ENUM_UNSPECIFIED = 0;
|
|
160
|
+
*/
|
|
161
|
+
UNSPECIFIED = 0,
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @generated from enum value: METADATA_UPDATE_ENUM_EXTEND = 1;
|
|
165
|
+
*/
|
|
166
|
+
EXTEND = 1,
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @generated from enum value: METADATA_UPDATE_ENUM_REPLACE = 2;
|
|
170
|
+
*/
|
|
171
|
+
REPLACE = 2,
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Describes the enum virtru.common.MetadataUpdateEnum.
|
|
176
|
+
*/
|
|
177
|
+
export const MetadataUpdateEnumSchema: GenEnum<MetadataUpdateEnum> = /*@__PURE__*/
|
|
178
|
+
enumDesc(file_virtru_common_common, 0);
|
|
179
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file virtru/policy/certificates/v1/certificates.proto (package virtru.policy.certificates.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { AssignCertificateToNamespaceRequest, AssignCertificateToNamespaceResponse, ListCertificatesByNamespaceRequest, ListCertificatesByNamespaceResponse, RemoveCertificateFromNamespaceRequest, RemoveCertificateFromNamespaceResponse } from "./certificates_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service virtru.policy.certificates.v1.CertificateService
|
|
11
|
+
*/
|
|
12
|
+
export const CertificateService = {
|
|
13
|
+
typeName: "virtru.policy.certificates.v1.CertificateService",
|
|
14
|
+
methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc virtru.policy.certificates.v1.CertificateService.ListCertificatesByNamespace
|
|
17
|
+
*/
|
|
18
|
+
listCertificatesByNamespace: {
|
|
19
|
+
name: "ListCertificatesByNamespace",
|
|
20
|
+
I: ListCertificatesByNamespaceRequest,
|
|
21
|
+
O: ListCertificatesByNamespaceResponse,
|
|
22
|
+
kind: MethodKind.Unary,
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @generated from rpc virtru.policy.certificates.v1.CertificateService.AssignCertificateToNamespace
|
|
26
|
+
*/
|
|
27
|
+
assignCertificateToNamespace: {
|
|
28
|
+
name: "AssignCertificateToNamespace",
|
|
29
|
+
I: AssignCertificateToNamespaceRequest,
|
|
30
|
+
O: AssignCertificateToNamespaceResponse,
|
|
31
|
+
kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc virtru.policy.certificates.v1.CertificateService.RemoveCertificateFromNamespace
|
|
35
|
+
*/
|
|
36
|
+
removeCertificateFromNamespace: {
|
|
37
|
+
name: "RemoveCertificateFromNamespace",
|
|
38
|
+
I: RemoveCertificateFromNamespaceRequest,
|
|
39
|
+
O: RemoveCertificateFromNamespaceResponse,
|
|
40
|
+
kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
} as const;
|
|
44
|
+
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.3.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file virtru/policy/certificates/v1/certificates.proto (package virtru.policy.certificates.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
|
|
7
|
+
import { file_buf_validate_validate } from "../../../../buf/validate/validate_pb";
|
|
8
|
+
import type { MetadataMutable, PageRequest, PageResponse } from "../../../common/common_pb";
|
|
9
|
+
import { file_virtru_common_common } from "../../../common/common_pb";
|
|
10
|
+
import type { Algorithm, Certificate, KeyMode, KeyStatus } from "../../objects_pb";
|
|
11
|
+
import { file_virtru_policy_objects } from "../../objects_pb";
|
|
12
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Describes the file virtru/policy/certificates/v1/certificates.proto.
|
|
16
|
+
*/
|
|
17
|
+
export const file_virtru_policy_certificates_v1_certificates: GenFile = /*@__PURE__*/
|
|
18
|
+
fileDesc("CjB2aXJ0cnUvcG9saWN5L2NlcnRpZmljYXRlcy92MS9jZXJ0aWZpY2F0ZXMucHJvdG8SHXZpcnRydS5wb2xpY3kuY2VydGlmaWNhdGVzLnYxIl4KFE5hbWVzcGFjZUNlcnRpZmljYXRlEiEKDG5hbWVzcGFjZV9pZBgBIAEoCUILukgIyAEBcgOwAQESIwoOY2VydGlmaWNhdGVfaWQYAiABKAlCC7pICMgBAXIDsAEBIncKIkxpc3RDZXJ0aWZpY2F0ZXNCeU5hbWVzcGFjZVJlcXVlc3QSIQoMbmFtZXNwYWNlX2lkGAEgASgJQgu6SAjIAQFyA7ABARIuCgpwYWdpbmF0aW9uGAogASgLMhoudmlydHJ1LmNvbW1vbi5QYWdlUmVxdWVzdCKIAQojTGlzdENlcnRpZmljYXRlc0J5TmFtZXNwYWNlUmVzcG9uc2USMAoMY2VydGlmaWNhdGVzGAEgAygLMhoudmlydHJ1LnBvbGljeS5DZXJ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9saWN5XENlcnRpZmljYXRlc1xWMeICKVZpcnRydVxQb2xpY3lcQ2VydGlmaWNhdGVzXFYxXEdQQk1ldGFkYXRh6gIgVmlydHJ1OjpQb2xpY3k6OkNlcnRpZmljYXRlczo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_virtru_common_common, file_virtru_policy_objects]);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Maps a namespace to a certificate (similar to NamespaceKey pattern)
|
|
22
|
+
*
|
|
23
|
+
* @generated from message virtru.policy.certificates.v1.NamespaceCertificate
|
|
24
|
+
*/
|
|
25
|
+
export type NamespaceCertificate = Message<"virtru.policy.certificates.v1.NamespaceCertificate"> & {
|
|
26
|
+
/**
|
|
27
|
+
* Required - namespace id
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string namespace_id = 1;
|
|
30
|
+
*/
|
|
31
|
+
namespaceId: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Required (The id from the Certificate object)
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: string certificate_id = 2;
|
|
37
|
+
*/
|
|
38
|
+
certificateId: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Describes the message virtru.policy.certificates.v1.NamespaceCertificate.
|
|
43
|
+
* Use `create(NamespaceCertificateSchema)` to create a new message.
|
|
44
|
+
*/
|
|
45
|
+
export const NamespaceCertificateSchema: GenMessage<NamespaceCertificate> = /*@__PURE__*/
|
|
46
|
+
messageDesc(file_virtru_policy_certificates_v1_certificates, 0);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from message virtru.policy.certificates.v1.ListCertificatesByNamespaceRequest
|
|
50
|
+
*/
|
|
51
|
+
export type ListCertificatesByNamespaceRequest = Message<"virtru.policy.certificates.v1.ListCertificatesByNamespaceRequest"> & {
|
|
52
|
+
/**
|
|
53
|
+
* Required - namespace id
|
|
54
|
+
*
|
|
55
|
+
* @generated from field: string namespace_id = 1;
|
|
56
|
+
*/
|
|
57
|
+
namespaceId: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Optional pagination information
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: virtru.common.PageRequest pagination = 10;
|
|
63
|
+
*/
|
|
64
|
+
pagination?: PageRequest;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Describes the message virtru.policy.certificates.v1.ListCertificatesByNamespaceRequest.
|
|
69
|
+
* Use `create(ListCertificatesByNamespaceRequestSchema)` to create a new message.
|
|
70
|
+
*/
|
|
71
|
+
export const ListCertificatesByNamespaceRequestSchema: GenMessage<ListCertificatesByNamespaceRequest> = /*@__PURE__*/
|
|
72
|
+
messageDesc(file_virtru_policy_certificates_v1_certificates, 1);
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* ListCertificatesByNamespaceResponse is the response message for the ListCertificatesByNamespace method.
|
|
76
|
+
*
|
|
77
|
+
* @generated from message virtru.policy.certificates.v1.ListCertificatesByNamespaceResponse
|
|
78
|
+
*/
|
|
79
|
+
export type ListCertificatesByNamespaceResponse = Message<"virtru.policy.certificates.v1.ListCertificatesByNamespaceResponse"> & {
|
|
80
|
+
/**
|
|
81
|
+
* The list of certificates for the specified namespace.
|
|
82
|
+
*
|
|
83
|
+
* @generated from field: repeated virtru.policy.Certificate certificates = 1;
|
|
84
|
+
*/
|
|
85
|
+
certificates: Certificate[];
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Pagination information
|
|
89
|
+
*
|
|
90
|
+
* @generated from field: virtru.common.PageResponse pagination = 10;
|
|
91
|
+
*/
|
|
92
|
+
pagination?: PageResponse;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Describes the message virtru.policy.certificates.v1.ListCertificatesByNamespaceResponse.
|
|
97
|
+
* Use `create(ListCertificatesByNamespaceResponseSchema)` to create a new message.
|
|
98
|
+
*/
|
|
99
|
+
export const ListCertificatesByNamespaceResponseSchema: GenMessage<ListCertificatesByNamespaceResponse> = /*@__PURE__*/
|
|
100
|
+
messageDesc(file_virtru_policy_certificates_v1_certificates, 2);
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @generated from message virtru.policy.certificates.v1.AssignCertificateToNamespaceRequest
|
|
104
|
+
*/
|
|
105
|
+
export type AssignCertificateToNamespaceRequest = Message<"virtru.policy.certificates.v1.AssignCertificateToNamespaceRequest"> & {
|
|
106
|
+
/**
|
|
107
|
+
* Required - namespace id
|
|
108
|
+
*
|
|
109
|
+
* @generated from field: string namespace_id = 1;
|
|
110
|
+
*/
|
|
111
|
+
namespaceId: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Required - PEM format certificate
|
|
115
|
+
*
|
|
116
|
+
* @generated from field: string pem = 2;
|
|
117
|
+
*/
|
|
118
|
+
pem: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: string key_id = 3;
|
|
122
|
+
*/
|
|
123
|
+
keyId: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The algorithm to be used for the key
|
|
127
|
+
*
|
|
128
|
+
* @generated from field: virtru.policy.Algorithm key_algorithm = 4;
|
|
129
|
+
*/
|
|
130
|
+
keyAlgorithm: Algorithm;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: string name = 5;
|
|
134
|
+
*/
|
|
135
|
+
name: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The status of the key
|
|
139
|
+
*
|
|
140
|
+
* @generated from field: virtru.policy.KeyStatus key_status = 6;
|
|
141
|
+
*/
|
|
142
|
+
keyStatus: KeyStatus;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The mode of the key
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: virtru.policy.KeyMode key_mode = 7;
|
|
148
|
+
*/
|
|
149
|
+
keyMode: KeyMode;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Optional
|
|
153
|
+
*
|
|
154
|
+
* @generated from field: virtru.common.MetadataMutable metadata = 100;
|
|
155
|
+
*/
|
|
156
|
+
metadata?: MetadataMutable;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Describes the message virtru.policy.certificates.v1.AssignCertificateToNamespaceRequest.
|
|
161
|
+
* Use `create(AssignCertificateToNamespaceRequestSchema)` to create a new message.
|
|
162
|
+
*/
|
|
163
|
+
export const AssignCertificateToNamespaceRequestSchema: GenMessage<AssignCertificateToNamespaceRequest> = /*@__PURE__*/
|
|
164
|
+
messageDesc(file_virtru_policy_certificates_v1_certificates, 3);
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @generated from message virtru.policy.certificates.v1.AssignCertificateToNamespaceResponse
|
|
168
|
+
*/
|
|
169
|
+
export type AssignCertificateToNamespaceResponse = Message<"virtru.policy.certificates.v1.AssignCertificateToNamespaceResponse"> & {
|
|
170
|
+
/**
|
|
171
|
+
* The mapping of the namespace to the certificate.
|
|
172
|
+
*
|
|
173
|
+
* @generated from field: virtru.policy.certificates.v1.NamespaceCertificate namespace_certificate = 1;
|
|
174
|
+
*/
|
|
175
|
+
namespaceCertificate?: NamespaceCertificate;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Return the full certificate object for convenience
|
|
179
|
+
*
|
|
180
|
+
* @generated from field: virtru.policy.Certificate certificate = 2;
|
|
181
|
+
*/
|
|
182
|
+
certificate?: Certificate;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Describes the message virtru.policy.certificates.v1.AssignCertificateToNamespaceResponse.
|
|
187
|
+
* Use `create(AssignCertificateToNamespaceResponseSchema)` to create a new message.
|
|
188
|
+
*/
|
|
189
|
+
export const AssignCertificateToNamespaceResponseSchema: GenMessage<AssignCertificateToNamespaceResponse> = /*@__PURE__*/
|
|
190
|
+
messageDesc(file_virtru_policy_certificates_v1_certificates, 4);
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @generated from message virtru.policy.certificates.v1.RemoveCertificateFromNamespaceRequest
|
|
194
|
+
*/
|
|
195
|
+
export type RemoveCertificateFromNamespaceRequest = Message<"virtru.policy.certificates.v1.RemoveCertificateFromNamespaceRequest"> & {
|
|
196
|
+
/**
|
|
197
|
+
* The namespace and certificate to unassign.
|
|
198
|
+
*
|
|
199
|
+
* @generated from field: virtru.policy.certificates.v1.NamespaceCertificate namespace_certificate = 1;
|
|
200
|
+
*/
|
|
201
|
+
namespaceCertificate?: NamespaceCertificate;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Describes the message virtru.policy.certificates.v1.RemoveCertificateFromNamespaceRequest.
|
|
206
|
+
* Use `create(RemoveCertificateFromNamespaceRequestSchema)` to create a new message.
|
|
207
|
+
*/
|
|
208
|
+
export const RemoveCertificateFromNamespaceRequestSchema: GenMessage<RemoveCertificateFromNamespaceRequest> = /*@__PURE__*/
|
|
209
|
+
messageDesc(file_virtru_policy_certificates_v1_certificates, 5);
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @generated from message virtru.policy.certificates.v1.RemoveCertificateFromNamespaceResponse
|
|
213
|
+
*/
|
|
214
|
+
export type RemoveCertificateFromNamespaceResponse = Message<"virtru.policy.certificates.v1.RemoveCertificateFromNamespaceResponse"> & {
|
|
215
|
+
/**
|
|
216
|
+
* The unassigned namespace and certificate.
|
|
217
|
+
*
|
|
218
|
+
* @generated from field: virtru.policy.certificates.v1.NamespaceCertificate namespace_certificate = 1;
|
|
219
|
+
*/
|
|
220
|
+
namespaceCertificate?: NamespaceCertificate;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Describes the message virtru.policy.certificates.v1.RemoveCertificateFromNamespaceResponse.
|
|
225
|
+
* Use `create(RemoveCertificateFromNamespaceResponseSchema)` to create a new message.
|
|
226
|
+
*/
|
|
227
|
+
export const RemoveCertificateFromNamespaceResponseSchema: GenMessage<RemoveCertificateFromNamespaceResponse> = /*@__PURE__*/
|
|
228
|
+
messageDesc(file_virtru_policy_certificates_v1_certificates, 6);
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @generated from service virtru.policy.certificates.v1.CertificateService
|
|
232
|
+
*/
|
|
233
|
+
export const CertificateService: GenService<{
|
|
234
|
+
/**
|
|
235
|
+
* @generated from rpc virtru.policy.certificates.v1.CertificateService.ListCertificatesByNamespace
|
|
236
|
+
*/
|
|
237
|
+
listCertificatesByNamespace: {
|
|
238
|
+
methodKind: "unary";
|
|
239
|
+
input: typeof ListCertificatesByNamespaceRequestSchema;
|
|
240
|
+
output: typeof ListCertificatesByNamespaceResponseSchema;
|
|
241
|
+
},
|
|
242
|
+
/**
|
|
243
|
+
* @generated from rpc virtru.policy.certificates.v1.CertificateService.AssignCertificateToNamespace
|
|
244
|
+
*/
|
|
245
|
+
assignCertificateToNamespace: {
|
|
246
|
+
methodKind: "unary";
|
|
247
|
+
input: typeof AssignCertificateToNamespaceRequestSchema;
|
|
248
|
+
output: typeof AssignCertificateToNamespaceResponseSchema;
|
|
249
|
+
},
|
|
250
|
+
/**
|
|
251
|
+
* @generated from rpc virtru.policy.certificates.v1.CertificateService.RemoveCertificateFromNamespace
|
|
252
|
+
*/
|
|
253
|
+
removeCertificateFromNamespace: {
|
|
254
|
+
methodKind: "unary";
|
|
255
|
+
input: typeof RemoveCertificateFromNamespaceRequestSchema;
|
|
256
|
+
output: typeof RemoveCertificateFromNamespaceResponseSchema;
|
|
257
|
+
},
|
|
258
|
+
}> = /*@__PURE__*/
|
|
259
|
+
serviceDesc(file_virtru_policy_certificates_v1_certificates, 0);
|
|
260
|
+
|