@virtru/dsp-sdk 0.5.0 → 0.7.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.
Files changed (130) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/README.md +81 -3
  3. package/dist/src/fips.d.ts +7 -0
  4. package/dist/src/fips.js +12 -0
  5. package/dist/src/lib/dsp.d.ts +17 -1
  6. package/dist/src/lib/dsp.js +28 -5
  7. package/package.json +25 -4
  8. package/.prettierrc +0 -3
  9. package/.rush/temp/chunked-rush-logs/dsp-sdk._phase_build.chunks.jsonl +0 -12
  10. package/.rush/temp/chunked-rush-logs/dsp-sdk._phase_test.chunks.jsonl +0 -383
  11. package/.rush/temp/package-deps__phase_build.json +0 -76
  12. package/.rush/temp/shrinkwrap-deps.json +0 -1262
  13. package/CHANGELOG.json +0 -299
  14. package/buf.gen.yaml +0 -17
  15. package/buf.yaml +0 -4
  16. package/config/jest.config.json +0 -6
  17. package/config/rig.json +0 -8
  18. package/dist/tests/dsp-client.test.d.ts +0 -1
  19. package/dist/tests/dsp-client.test.js +0 -73
  20. package/dist/tests/dsp.test.d.ts +0 -1
  21. package/dist/tests/dsp.test.js +0 -92
  22. package/dist/tests/fips-crypto.unit.test.d.ts +0 -1
  23. package/dist/tests/fips-crypto.unit.test.js +0 -258
  24. package/dist/tests/mocks/create-export-artifacts.d.ts +0 -2
  25. package/dist/tests/mocks/create-export-artifacts.js +0 -13
  26. package/dist/tests/mocks/tagging-pdp-tag.d.ts +0 -2
  27. package/dist/tests/mocks/tagging-pdp-tag.js +0 -11
  28. package/dist/tests/mocks/well-known-configuration.d.ts +0 -2
  29. package/dist/tests/mocks/well-known-configuration.js +0 -12
  30. package/dist/tests/setup-msw.d.ts +0 -9
  31. package/dist/tests/setup-msw.js +0 -30
  32. package/dist/tests/setup-unit.d.ts +0 -7
  33. package/dist/tests/setup-unit.js +0 -70
  34. package/eslint.config.mjs +0 -28
  35. package/lib-commonjs/src/gen/buf/validate/validate_pb.js +0 -487
  36. package/lib-commonjs/src/gen/config/v1/config_pb.js +0 -142
  37. package/lib-commonjs/src/gen/config/v1/kas_config_pb.js +0 -72
  38. package/lib-commonjs/src/gen/config/v1/meta_pb.js +0 -36
  39. package/lib-commonjs/src/gen/config/v1/outlook_config_pb.js +0 -67
  40. package/lib-commonjs/src/gen/config/v1/secureviewer_config_pb.js +0 -67
  41. package/lib-commonjs/src/gen/config/v1/tagging_pb.js +0 -246
  42. package/lib-commonjs/src/gen/google/api/annotations_pb.js +0 -33
  43. package/lib-commonjs/src/gen/google/api/http_pb.js +0 -44
  44. package/lib-commonjs/src/gen/policyimportexport/v1/policy_import_export_pb.js +0 -93
  45. package/lib-commonjs/src/gen/shared/v1/shared_pb.js +0 -95
  46. package/lib-commonjs/src/gen/tagging/pdp/v2/tagging_pb.js +0 -277
  47. package/lib-commonjs/src/gen/version/v1/version_pb.js +0 -40
  48. package/lib-commonjs/src/gen/virtru/common/common_pb.js +0 -76
  49. package/lib-commonjs/src/gen/virtru/policy/certificates/v1/certificates_pb.js +0 -77
  50. package/lib-commonjs/src/gen/virtru/policy/objects_pb.js +0 -143
  51. package/lib-commonjs/src/index.js +0 -48
  52. package/lib-commonjs/src/lib/client.js +0 -66
  53. package/lib-commonjs/src/lib/consts.js +0 -10
  54. package/lib-commonjs/src/lib/dsp.js +0 -49
  55. package/lib-commonjs/src/lib/fips-crypto/asymmetric.js +0 -126
  56. package/lib-commonjs/src/lib/fips-crypto/key-format.js +0 -243
  57. package/lib-commonjs/src/lib/fips-crypto/keys.js +0 -134
  58. package/lib-commonjs/src/lib/fips-crypto/primitives.js +0 -112
  59. package/lib-commonjs/src/lib/fips-crypto/symmetric.js +0 -162
  60. package/lib-commonjs/src/lib/fips-crypto-service.js +0 -57
  61. package/lib-commonjs/src/lib/utils.js +0 -401
  62. package/lib-commonjs/tests/dsp-client.test.js +0 -75
  63. package/lib-commonjs/tests/dsp.test.js +0 -94
  64. package/lib-commonjs/tests/fips-crypto.unit.test.js +0 -260
  65. package/lib-commonjs/tests/mocks/create-export-artifacts.js +0 -17
  66. package/lib-commonjs/tests/mocks/tagging-pdp-tag.js +0 -15
  67. package/lib-commonjs/tests/mocks/well-known-configuration.js +0 -16
  68. package/lib-commonjs/tests/setup-msw.js +0 -33
  69. package/lib-commonjs/tests/setup-unit.js +0 -72
  70. package/public/virtru.wasm +0 -0
  71. package/src/gen/buf/validate/validate_pb.ts +0 -4879
  72. package/src/gen/config/formatters/testdata/v1/test_pb.ts +0 -287
  73. package/src/gen/config/v1/config_connect.ts +0 -111
  74. package/src/gen/config/v1/config_pb.ts +0 -439
  75. package/src/gen/config/v1/kas_config_pb.ts +0 -183
  76. package/src/gen/config/v1/meta_pb.ts +0 -72
  77. package/src/gen/config/v1/outlook_config_pb.ts +0 -242
  78. package/src/gen/config/v1/secureviewer_config_pb.ts +0 -161
  79. package/src/gen/config/v1/tagging_pb.ts +0 -456
  80. package/src/gen/google/api/annotations_pb.ts +0 -43
  81. package/src/gen/google/api/http_pb.ts +0 -486
  82. package/src/gen/helloworld/v1/helloworld_connect.ts +0 -49
  83. package/src/gen/helloworld/v1/helloworld_pb.ts +0 -104
  84. package/src/gen/kas/nanotdf/v1/nanotdf_rewrap_connect.ts +0 -39
  85. package/src/gen/kas/nanotdf/v1/nanotdf_rewrap_pb.ts +0 -207
  86. package/src/gen/policyimportexport/v1/policy_import_export_connect.ts +0 -56
  87. package/src/gen/policyimportexport/v1/policy_import_export_pb.ts +0 -332
  88. package/src/gen/shared/v1/shared_connect.ts +0 -61
  89. package/src/gen/shared/v1/shared_pb.ts +0 -240
  90. package/src/gen/shared/v2/shared_connect.ts +0 -39
  91. package/src/gen/shared/v2/shared_pb.ts +0 -122
  92. package/src/gen/tagging/pdp/v2/externalprocessors/processor_connect.ts +0 -156
  93. package/src/gen/tagging/pdp/v2/externalprocessors/processor_pb.ts +0 -709
  94. package/src/gen/tagging/pdp/v2/stanag/stanag_pb.ts +0 -953
  95. package/src/gen/tagging/pdp/v2/tagging_connect.ts +0 -73
  96. package/src/gen/tagging/pdp/v2/tagging_pb.ts +0 -1064
  97. package/src/gen/version/v1/version_connect.ts +0 -31
  98. package/src/gen/version/v1/version_pb.ts +0 -143
  99. package/src/gen/virtru/common/common_pb.ts +0 -201
  100. package/src/gen/virtru/policy/certificates/v1/certificates_connect.ts +0 -44
  101. package/src/gen/virtru/policy/certificates/v1/certificates_pb.ts +0 -305
  102. package/src/gen/virtru/policy/objects_pb.ts +0 -253
  103. package/src/gen/web-admin/v1/config_connect.ts +0 -52
  104. package/src/gen/web-admin/v1/config_pb.ts +0 -173
  105. package/src/index.ts +0 -62
  106. package/src/lib/client.ts +0 -90
  107. package/src/lib/consts.ts +0 -8
  108. package/src/lib/dsp.ts +0 -65
  109. package/src/lib/fips-crypto/asymmetric.ts +0 -162
  110. package/src/lib/fips-crypto/key-format.ts +0 -287
  111. package/src/lib/fips-crypto/keys.ts +0 -190
  112. package/src/lib/fips-crypto/primitives.ts +0 -197
  113. package/src/lib/fips-crypto/symmetric.ts +0 -213
  114. package/src/lib/fips-crypto-service.ts +0 -58
  115. package/src/lib/utils.test.ts +0 -415
  116. package/src/lib/utils.ts +0 -525
  117. package/src/vite-env.d.ts +0 -7
  118. package/temp/build/lint/_eslint-5eVG3S6w.json +0 -38
  119. package/temp/test/jest/haste-map-b055a9550e6d9f9b43d8ad29b1607278-49d19aee56a0732eca9c014a51272338-8710993d07b75a801b0956e67ffc46fa +0 -0
  120. package/tests/dsp-client.test.ts +0 -95
  121. package/tests/dsp.test.ts +0 -119
  122. package/tests/fips-crypto.unit.test.ts +0 -412
  123. package/tests/mocks/create-export-artifacts.ts +0 -16
  124. package/tests/mocks/tagging-pdp-tag.ts +0 -13
  125. package/tests/mocks/well-known-configuration.ts +0 -15
  126. package/tests/setup-msw.ts +0 -35
  127. package/tests/setup-unit.ts +0 -108
  128. package/tsconfig.json +0 -32
  129. package/update-protos.sh +0 -63
  130. package/vitest.config.ts +0 -48
@@ -1,305 +0,0 @@
1
- /*
2
- * Copyright (c) Virtru Corporation. All rights reserved.
3
- *
4
- * Your use of this file is governed by the Virtu Terms of Service <https://www.virtru.com/terms-of-service/>.
5
- */
6
-
7
- // @generated by protoc-gen-es v2.3.0 with parameter "target=ts"
8
- // @generated from file virtru/policy/certificates/v1/certificates.proto (package virtru.policy.certificates.v1, syntax proto3)
9
- /* eslint-disable */
10
-
11
- import type {
12
- GenFile,
13
- GenMessage,
14
- GenService,
15
- } from '@bufbuild/protobuf/codegenv1';
16
- import {
17
- fileDesc,
18
- messageDesc,
19
- serviceDesc,
20
- } from '@bufbuild/protobuf/codegenv1';
21
- import { file_buf_validate_validate } from '../../../../buf/validate/validate_pb';
22
- import type {
23
- MetadataMutable,
24
- PageRequest,
25
- PageResponse,
26
- } from '../../../common/common_pb';
27
- import { file_virtru_common_common } from '../../../common/common_pb';
28
- import type {
29
- Algorithm,
30
- Certificate,
31
- KeyMode,
32
- KeyStatus,
33
- } from '../../objects_pb';
34
- import { file_virtru_policy_objects } from '../../objects_pb';
35
- import type { Message } from '@bufbuild/protobuf';
36
-
37
- /**
38
- * Describes the file virtru/policy/certificates/v1/certificates.proto.
39
- */
40
- export const file_virtru_policy_certificates_v1_certificates: GenFile =
41
- /*@__PURE__*/
42
- fileDesc(
43
- 'CjB2aXJ0cnUvcG9saWN5L2NlcnRpZmljYXRlcy92MS9jZXJ0aWZpY2F0ZXMucHJvdG8SHXZpcnRydS5wb2xpY3kuY2VydGlmaWNhdGVzLnYxIl4KFE5hbWVzcGFjZUNlcnRpZmljYXRlEiEKDG5hbWVzcGFjZV9pZBgBIAEoCUILukgIyAEBcgOwAQESIwoOY2VydGlmaWNhdGVfaWQYAiABKAlCC7pICMgBAXIDsAEBIncKIkxpc3RDZXJ0aWZpY2F0ZXNCeU5hbWVzcGFjZVJlcXVlc3QSIQoMbmFtZXNwYWNlX2lkGAEgASgJQgu6SAjIAQFyA7ABARIuCgpwYWdpbmF0aW9uGAogASgLMhoudml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LnZpcnRydS5wb2xpY3kuY2VydGlmaWNhdGVzLnYxQhFDZXJ0aWZpY2F0ZXNQcm90b1ABWmVnaXRodWIuY29tL3ZpcnRydS1jb3JwL2RhdGEtc2VjdXJpdHktcGxhdGZvcm0vc2RrL3YyL2dlbi92aXJ0cnUvcG9saWN5L2NlcnRpZmljYXRlcy92MTtjZXJ0aWZpY2F0ZXN2MaICA1ZQQ6oCHVZpcnRydS5Qb2xpY3kuQ2VydGlmaWNhdGVzLlYxygIdVmlydHJ1XFBvbGljeVxDZXJ0aWZpY2F0ZXNcVjHiAilWaXJ0cnVcUG9saWN5XENlcnRpZmljYXRlc1xWMVxHUEJNZXRhZGF0YeoCIFZpcnRydTo6UG9saWN5OjpDZXJ0aWZpY2F0ZXM6OlYxYgZwcm90bzM',
44
- [
45
- file_buf_validate_validate,
46
- file_virtru_common_common,
47
- file_virtru_policy_objects,
48
- ]
49
- );
50
-
51
- /**
52
- * Maps a namespace to a certificate (similar to NamespaceKey pattern)
53
- *
54
- * @generated from message virtru.policy.certificates.v1.NamespaceCertificate
55
- */
56
- export type NamespaceCertificate =
57
- Message<'virtru.policy.certificates.v1.NamespaceCertificate'> & {
58
- /**
59
- * Required - namespace id
60
- *
61
- * @generated from field: string namespace_id = 1;
62
- */
63
- namespaceId: string;
64
-
65
- /**
66
- * Required (The id from the Certificate object)
67
- *
68
- * @generated from field: string certificate_id = 2;
69
- */
70
- certificateId: string;
71
- };
72
-
73
- /**
74
- * Describes the message virtru.policy.certificates.v1.NamespaceCertificate.
75
- * Use `create(NamespaceCertificateSchema)` to create a new message.
76
- */
77
- export const NamespaceCertificateSchema: GenMessage<NamespaceCertificate> =
78
- /*@__PURE__*/
79
- messageDesc(file_virtru_policy_certificates_v1_certificates, 0);
80
-
81
- /**
82
- * @generated from message virtru.policy.certificates.v1.ListCertificatesByNamespaceRequest
83
- */
84
- export type ListCertificatesByNamespaceRequest =
85
- Message<'virtru.policy.certificates.v1.ListCertificatesByNamespaceRequest'> & {
86
- /**
87
- * Required - namespace id
88
- *
89
- * @generated from field: string namespace_id = 1;
90
- */
91
- namespaceId: string;
92
-
93
- /**
94
- * Optional pagination information
95
- *
96
- * @generated from field: virtru.common.PageRequest pagination = 10;
97
- */
98
- pagination?: PageRequest;
99
- };
100
-
101
- /**
102
- * Describes the message virtru.policy.certificates.v1.ListCertificatesByNamespaceRequest.
103
- * Use `create(ListCertificatesByNamespaceRequestSchema)` to create a new message.
104
- */
105
- export const ListCertificatesByNamespaceRequestSchema: GenMessage<ListCertificatesByNamespaceRequest> =
106
- /*@__PURE__*/
107
- messageDesc(file_virtru_policy_certificates_v1_certificates, 1);
108
-
109
- /**
110
- * ListCertificatesByNamespaceResponse is the response message for the ListCertificatesByNamespace method.
111
- *
112
- * @generated from message virtru.policy.certificates.v1.ListCertificatesByNamespaceResponse
113
- */
114
- export type ListCertificatesByNamespaceResponse =
115
- Message<'virtru.policy.certificates.v1.ListCertificatesByNamespaceResponse'> & {
116
- /**
117
- * The list of certificates for the specified namespace.
118
- *
119
- * @generated from field: repeated virtru.policy.Certificate certificates = 1;
120
- */
121
- certificates: Certificate[];
122
-
123
- /**
124
- * Pagination information
125
- *
126
- * @generated from field: virtru.common.PageResponse pagination = 10;
127
- */
128
- pagination?: PageResponse;
129
- };
130
-
131
- /**
132
- * Describes the message virtru.policy.certificates.v1.ListCertificatesByNamespaceResponse.
133
- * Use `create(ListCertificatesByNamespaceResponseSchema)` to create a new message.
134
- */
135
- export const ListCertificatesByNamespaceResponseSchema: GenMessage<ListCertificatesByNamespaceResponse> =
136
- /*@__PURE__*/
137
- messageDesc(file_virtru_policy_certificates_v1_certificates, 2);
138
-
139
- /**
140
- * @generated from message virtru.policy.certificates.v1.AssignCertificateToNamespaceRequest
141
- */
142
- export type AssignCertificateToNamespaceRequest =
143
- Message<'virtru.policy.certificates.v1.AssignCertificateToNamespaceRequest'> & {
144
- /**
145
- * Required - namespace id
146
- *
147
- * @generated from field: string namespace_id = 1;
148
- */
149
- namespaceId: string;
150
-
151
- /**
152
- * Required - PEM format certificate
153
- *
154
- * @generated from field: string pem = 2;
155
- */
156
- pem: string;
157
-
158
- /**
159
- * @generated from field: string key_id = 3;
160
- */
161
- keyId: string;
162
-
163
- /**
164
- * The algorithm to be used for the key
165
- *
166
- * @generated from field: virtru.policy.Algorithm key_algorithm = 4;
167
- */
168
- keyAlgorithm: Algorithm;
169
-
170
- /**
171
- * @generated from field: string name = 5;
172
- */
173
- name: string;
174
-
175
- /**
176
- * The status of the key
177
- *
178
- * @generated from field: virtru.policy.KeyStatus key_status = 6;
179
- */
180
- keyStatus: KeyStatus;
181
-
182
- /**
183
- * The mode of the key
184
- *
185
- * @generated from field: virtru.policy.KeyMode key_mode = 7;
186
- */
187
- keyMode: KeyMode;
188
-
189
- /**
190
- * Optional
191
- *
192
- * @generated from field: virtru.common.MetadataMutable metadata = 100;
193
- */
194
- metadata?: MetadataMutable;
195
- };
196
-
197
- /**
198
- * Describes the message virtru.policy.certificates.v1.AssignCertificateToNamespaceRequest.
199
- * Use `create(AssignCertificateToNamespaceRequestSchema)` to create a new message.
200
- */
201
- export const AssignCertificateToNamespaceRequestSchema: GenMessage<AssignCertificateToNamespaceRequest> =
202
- /*@__PURE__*/
203
- messageDesc(file_virtru_policy_certificates_v1_certificates, 3);
204
-
205
- /**
206
- * @generated from message virtru.policy.certificates.v1.AssignCertificateToNamespaceResponse
207
- */
208
- export type AssignCertificateToNamespaceResponse =
209
- Message<'virtru.policy.certificates.v1.AssignCertificateToNamespaceResponse'> & {
210
- /**
211
- * The mapping of the namespace to the certificate.
212
- *
213
- * @generated from field: virtru.policy.certificates.v1.NamespaceCertificate namespace_certificate = 1;
214
- */
215
- namespaceCertificate?: NamespaceCertificate;
216
-
217
- /**
218
- * Return the full certificate object for convenience
219
- *
220
- * @generated from field: virtru.policy.Certificate certificate = 2;
221
- */
222
- certificate?: Certificate;
223
- };
224
-
225
- /**
226
- * Describes the message virtru.policy.certificates.v1.AssignCertificateToNamespaceResponse.
227
- * Use `create(AssignCertificateToNamespaceResponseSchema)` to create a new message.
228
- */
229
- export const AssignCertificateToNamespaceResponseSchema: GenMessage<AssignCertificateToNamespaceResponse> =
230
- /*@__PURE__*/
231
- messageDesc(file_virtru_policy_certificates_v1_certificates, 4);
232
-
233
- /**
234
- * @generated from message virtru.policy.certificates.v1.RemoveCertificateFromNamespaceRequest
235
- */
236
- export type RemoveCertificateFromNamespaceRequest =
237
- Message<'virtru.policy.certificates.v1.RemoveCertificateFromNamespaceRequest'> & {
238
- /**
239
- * The namespace and certificate to unassign.
240
- *
241
- * @generated from field: virtru.policy.certificates.v1.NamespaceCertificate namespace_certificate = 1;
242
- */
243
- namespaceCertificate?: NamespaceCertificate;
244
- };
245
-
246
- /**
247
- * Describes the message virtru.policy.certificates.v1.RemoveCertificateFromNamespaceRequest.
248
- * Use `create(RemoveCertificateFromNamespaceRequestSchema)` to create a new message.
249
- */
250
- export const RemoveCertificateFromNamespaceRequestSchema: GenMessage<RemoveCertificateFromNamespaceRequest> =
251
- /*@__PURE__*/
252
- messageDesc(file_virtru_policy_certificates_v1_certificates, 5);
253
-
254
- /**
255
- * @generated from message virtru.policy.certificates.v1.RemoveCertificateFromNamespaceResponse
256
- */
257
- export type RemoveCertificateFromNamespaceResponse =
258
- Message<'virtru.policy.certificates.v1.RemoveCertificateFromNamespaceResponse'> & {
259
- /**
260
- * The unassigned namespace and certificate.
261
- *
262
- * @generated from field: virtru.policy.certificates.v1.NamespaceCertificate namespace_certificate = 1;
263
- */
264
- namespaceCertificate?: NamespaceCertificate;
265
- };
266
-
267
- /**
268
- * Describes the message virtru.policy.certificates.v1.RemoveCertificateFromNamespaceResponse.
269
- * Use `create(RemoveCertificateFromNamespaceResponseSchema)` to create a new message.
270
- */
271
- export const RemoveCertificateFromNamespaceResponseSchema: GenMessage<RemoveCertificateFromNamespaceResponse> =
272
- /*@__PURE__*/
273
- messageDesc(file_virtru_policy_certificates_v1_certificates, 6);
274
-
275
- /**
276
- * @generated from service virtru.policy.certificates.v1.CertificateService
277
- */
278
- export const CertificateService: GenService<{
279
- /**
280
- * @generated from rpc virtru.policy.certificates.v1.CertificateService.ListCertificatesByNamespace
281
- */
282
- listCertificatesByNamespace: {
283
- methodKind: 'unary';
284
- input: typeof ListCertificatesByNamespaceRequestSchema;
285
- output: typeof ListCertificatesByNamespaceResponseSchema;
286
- };
287
- /**
288
- * @generated from rpc virtru.policy.certificates.v1.CertificateService.AssignCertificateToNamespace
289
- */
290
- assignCertificateToNamespace: {
291
- methodKind: 'unary';
292
- input: typeof AssignCertificateToNamespaceRequestSchema;
293
- output: typeof AssignCertificateToNamespaceResponseSchema;
294
- };
295
- /**
296
- * @generated from rpc virtru.policy.certificates.v1.CertificateService.RemoveCertificateFromNamespace
297
- */
298
- removeCertificateFromNamespace: {
299
- methodKind: 'unary';
300
- input: typeof RemoveCertificateFromNamespaceRequestSchema;
301
- output: typeof RemoveCertificateFromNamespaceResponseSchema;
302
- };
303
- }> =
304
- /*@__PURE__*/
305
- serviceDesc(file_virtru_policy_certificates_v1_certificates, 0);
@@ -1,253 +0,0 @@
1
- /*
2
- * Copyright (c) Virtru Corporation. All rights reserved.
3
- *
4
- * Your use of this file is governed by the Virtu Terms of Service <https://www.virtru.com/terms-of-service/>.
5
- */
6
-
7
- // @generated by protoc-gen-es v2.3.0 with parameter "target=ts"
8
- // @generated from file virtru/policy/objects.proto (package virtru.policy, syntax proto3)
9
- /* eslint-disable */
10
-
11
- import type {
12
- GenEnum,
13
- GenFile,
14
- GenMessage,
15
- } from '@bufbuild/protobuf/codegenv1';
16
- import { enumDesc, fileDesc, messageDesc } from '@bufbuild/protobuf/codegenv1';
17
- import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
18
- import type { Metadata } from '../common/common_pb';
19
- import { file_virtru_common_common } from '../common/common_pb';
20
- import type { Message } from '@bufbuild/protobuf';
21
-
22
- /**
23
- * Describes the file virtru/policy/objects.proto.
24
- */
25
- export const file_virtru_policy_objects: GenFile =
26
-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F9LRVkQARIeChpLRVlfTU9ERV9QUk9WSURFUl9ST09UX0tFWRACEhMKD0tFWV9NT0RFX1JFTU9URRADEhwKGEtFWV9NT0RFX1BVQkxJQ19LRVlfT05MWRAEQr4BChFjb20udmlydHJ1LnBvbGljeUIMT2JqZWN0c1Byb3RvUAFaRmdpdGh1Yi5jb20vdmlydHJ1LWNvcnAvZGF0YS1zZWN1cml0eS1wbGF0Zm9ybS9zZGsvdjIvZ2VuL3ZpcnRydS9wb2xpY3miAgNWUFiqAg1WaXJ0cnUuUG9saWN5ygINVmlydHJ1XFBvbGljeeICGVZpcnRydVxQb2xpY3lcR1BCTWV0YWRhdGHqAg5WaXJ0cnU6OlBvbGljeWIGcHJvdG8z',
29
- [file_buf_validate_validate, file_virtru_common_common]
30
- );
31
-
32
- /**
33
- * @generated from message virtru.policy.Certificate
34
- */
35
- export type Certificate = Message<'virtru.policy.Certificate'> & {
36
- /**
37
- * @generated from field: string id = 1;
38
- */
39
- id: string;
40
-
41
- /**
42
- * @generated from field: string key_id = 2;
43
- */
44
- keyId: string;
45
-
46
- /**
47
- * @generated from field: virtru.policy.Algorithm key_algorithm = 3;
48
- */
49
- keyAlgorithm: Algorithm;
50
-
51
- /**
52
- * @generated from field: virtru.policy.KeyStatus key_status = 4;
53
- */
54
- keyStatus: KeyStatus;
55
-
56
- /**
57
- * @generated from field: string pem = 5;
58
- */
59
- pem: string;
60
-
61
- /**
62
- * The name of the certificate.
63
- *
64
- * @generated from field: string name = 6;
65
- */
66
- name: string;
67
-
68
- /**
69
- * The key mode of the certificate.
70
- *
71
- * @generated from field: virtru.policy.KeyMode key_mode = 7;
72
- */
73
- keyMode: KeyMode;
74
-
75
- /**
76
- * The fingerprint of the certificate.
77
- *
78
- * @generated from field: string fingerprint = 8;
79
- */
80
- fingerprint: string;
81
-
82
- /**
83
- * @generated from field: virtru.common.Metadata metadata = 100;
84
- */
85
- metadata?: Metadata;
86
- };
87
-
88
- /**
89
- * Describes the message virtru.policy.Certificate.
90
- * Use `create(CertificateSchema)` to create a new message.
91
- */
92
- export const CertificateSchema: GenMessage<Certificate> =
93
- /*@__PURE__*/
94
- messageDesc(file_virtru_policy_objects, 0);
95
-
96
- /**
97
- * @generated from message virtru.policy.CertificateMapping
98
- */
99
- export type CertificateMapping = Message<'virtru.policy.CertificateMapping'> & {
100
- /**
101
- * @generated from field: string id = 1;
102
- */
103
- id: string;
104
-
105
- /**
106
- * @generated from field: string certificate_id = 2;
107
- */
108
- certificateId: string;
109
-
110
- /**
111
- * @generated from field: string namespace_id = 3;
112
- */
113
- namespaceId: string;
114
-
115
- /**
116
- * @generated from field: virtru.common.Metadata metadata = 100;
117
- */
118
- metadata?: Metadata;
119
- };
120
-
121
- /**
122
- * Describes the message virtru.policy.CertificateMapping.
123
- * Use `create(CertificateMappingSchema)` to create a new message.
124
- */
125
- export const CertificateMappingSchema: GenMessage<CertificateMapping> =
126
- /*@__PURE__*/
127
- messageDesc(file_virtru_policy_objects, 1);
128
-
129
- /**
130
- * @generated from enum virtru.policy.Algorithm
131
- */
132
- export enum Algorithm {
133
- /**
134
- * @generated from enum value: ALGORITHM_UNSPECIFIED = 0;
135
- */
136
- UNSPECIFIED = 0,
137
-
138
- /**
139
- * @generated from enum value: ALGORITHM_RSA_2048 = 1;
140
- */
141
- RSA_2048 = 1,
142
-
143
- /**
144
- * @generated from enum value: ALGORITHM_RSA_4096 = 2;
145
- */
146
- RSA_4096 = 2,
147
-
148
- /**
149
- * @generated from enum value: ALGORITHM_EC_P256 = 3;
150
- */
151
- EC_P256 = 3,
152
-
153
- /**
154
- * @generated from enum value: ALGORITHM_EC_P384 = 4;
155
- */
156
- EC_P384 = 4,
157
-
158
- /**
159
- * @generated from enum value: ALGORITHM_EC_P521 = 5;
160
- */
161
- EC_P521 = 5,
162
- }
163
-
164
- /**
165
- * Describes the enum virtru.policy.Algorithm.
166
- */
167
- export const AlgorithmSchema: GenEnum<Algorithm> =
168
- /*@__PURE__*/
169
- enumDesc(file_virtru_policy_objects, 0);
170
-
171
- /**
172
- * @generated from enum virtru.policy.KeyStatus
173
- */
174
- export enum KeyStatus {
175
- /**
176
- * @generated from enum value: KEY_STATUS_UNSPECIFIED = 0;
177
- */
178
- UNSPECIFIED = 0,
179
-
180
- /**
181
- * @generated from enum value: KEY_STATUS_ACTIVE = 1;
182
- */
183
- ACTIVE = 1,
184
-
185
- /**
186
- * @generated from enum value: KEY_STATUS_ROTATED = 2;
187
- */
188
- ROTATED = 2,
189
- }
190
-
191
- /**
192
- * Describes the enum virtru.policy.KeyStatus.
193
- */
194
- export const KeyStatusSchema: GenEnum<KeyStatus> =
195
- /*@__PURE__*/
196
- enumDesc(file_virtru_policy_objects, 1);
197
-
198
- /**
199
- * Describes the management and operational mode of a cryptographic key.
200
- *
201
- * @generated from enum virtru.policy.KeyMode
202
- */
203
- export enum KeyMode {
204
- /**
205
- * KEY_MODE_UNSPECIFIED: Default, unspecified key mode. Indicates an uninitialized or error state.
206
- *
207
- * @generated from enum value: KEY_MODE_UNSPECIFIED = 0;
208
- */
209
- UNSPECIFIED = 0,
210
-
211
- /**
212
- * KEY_MODE_CONFIG_ROOT_KEY: Local key management where the private key is wrapped by a Key Encryption Key (KEK)
213
- * sourced from local configuration. Unwrapping and all cryptographic operations are performed locally.
214
- *
215
- * @generated from enum value: KEY_MODE_CONFIG_ROOT_KEY = 1;
216
- */
217
- CONFIG_ROOT_KEY = 1,
218
-
219
- /**
220
- * KEY_MODE_PROVIDER_ROOT_KEY: Local key management where the private key is wrapped by a Key Encryption Key (KEK)
221
- * managed by an external provider (e.g., a Hardware Security Module or Cloud KMS).
222
- * Key unwrapping is delegated to the external provider; subsequent cryptographic operations
223
- * are performed locally using the unwrapped key.
224
- *
225
- * @generated from enum value: KEY_MODE_PROVIDER_ROOT_KEY = 2;
226
- */
227
- PROVIDER_ROOT_KEY = 2,
228
-
229
- /**
230
- * KEY_MODE_REMOTE: Remote key management where the private key is stored in, and all cryptographic
231
- * operations are performed by, a remote Key Management Service (KMS) or HSM.
232
- * The private key material never leaves the secure boundary of the remote system.
233
- *
234
- * @generated from enum value: KEY_MODE_REMOTE = 3;
235
- */
236
- REMOTE = 3,
237
-
238
- /**
239
- * KEY_MODE_PUBLIC_KEY_ONLY: Public key only mode. Used when only a public key is available or required,
240
- * typically for wrapping operations (e.g., encrypting a Data Encryption Key (DEK) for an external KAS).
241
- * The corresponding private key is not managed or accessible by this system.
242
- *
243
- * @generated from enum value: KEY_MODE_PUBLIC_KEY_ONLY = 4;
244
- */
245
- PUBLIC_KEY_ONLY = 4,
246
- }
247
-
248
- /**
249
- * Describes the enum virtru.policy.KeyMode.
250
- */
251
- export const KeyModeSchema: GenEnum<KeyMode> =
252
- /*@__PURE__*/
253
- enumDesc(file_virtru_policy_objects, 2);
@@ -1,52 +0,0 @@
1
- /*
2
- * Copyright (c) Virtru Corporation. All rights reserved.
3
- *
4
- * Your use of this file is governed by the Virtu Terms of Service <https://www.virtru.com/terms-of-service/>.
5
- */
6
-
7
- // @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
8
- // @generated from file web-admin/v1/config.proto (package webadmin.v1, syntax proto3)
9
- /* eslint-disable */
10
- // @ts-nocheck
11
-
12
- import {
13
- HasConfigChangesRequest,
14
- HasConfigChangesResponse,
15
- ListAllConfigRequest,
16
- ListAllConfigResponse,
17
- } from './config_pb.js';
18
- import { MethodKind } from '@bufbuild/protobuf';
19
-
20
- /**
21
- * The ConfigService provides an interface for managing and retrieving
22
- * platform configuration values stored in the database.
23
- *
24
- * @generated from service webadmin.v1.ConfigService
25
- */
26
- export const ConfigService = {
27
- typeName: 'webadmin.v1.ConfigService',
28
- methods: {
29
- /**
30
- * ListAllConfig retrieves all configuration key-value pairs.
31
- *
32
- * @generated from rpc webadmin.v1.ConfigService.ListAllConfig
33
- */
34
- listAllConfig: {
35
- name: 'ListAllConfig',
36
- I: ListAllConfigRequest,
37
- O: ListAllConfigResponse,
38
- kind: MethodKind.Unary,
39
- },
40
- /**
41
- * HasConfigChanges checks if any configuration was updated after a given timestamp.
42
- *
43
- * @generated from rpc webadmin.v1.ConfigService.HasConfigChanges
44
- */
45
- hasConfigChanges: {
46
- name: 'HasConfigChanges',
47
- I: HasConfigChangesRequest,
48
- O: HasConfigChangesResponse,
49
- kind: MethodKind.Unary,
50
- },
51
- },
52
- } as const;