@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,439 +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 config/v1/config.proto (package config.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 { TaggingPDPConfig, TaggingPDPConfigVersion } from './tagging_pb';
23
- import { file_config_v1_tagging } from './tagging_pb';
24
- import type { KASConfig, KASConfigVersion } from './kas_config_pb';
25
- import { file_config_v1_kas_config } from './kas_config_pb';
26
- import type {
27
- SecureViewerConfig,
28
- SecureViewerConfigVersion,
29
- } from './secureviewer_config_pb';
30
- import { file_config_v1_secureviewer_config } from './secureviewer_config_pb';
31
- import type { OutlookConfig, OutlookConfigVersion } from './outlook_config_pb';
32
- import { file_config_v1_outlook_config } from './outlook_config_pb';
33
- import type { Message } from '@bufbuild/protobuf';
34
-
35
- /**
36
- * Describes the file config/v1/config.proto.
37
- */
38
- export const file_config_v1_config: GenFile =
39
- /*@__PURE__*/
40
- fileDesc(
41
- 'ChZjb25maWcvdjEvY29uZmlnLnByb3RvEgljb25maWcudjEiQQobR2V0VGFnZ2luZ1BEUENvbmZpZ1Jlc3BvbnNlEg0KBXZhbHVlGAEgASgJEhMKC2pzb25fc2NoZW1hGAIgASgJIkMKHUdldFNlY3VyZVZpZXdlckNvbmZpZ1Jlc3BvbnNlEg0KBXZhbHVlGAEgASgJEhMKC2pzb25fc2NoZW1hGAIgASgJIjoKFEdldEtBU0NvbmZpZ1Jlc3BvbnNlEg0KBXZhbHVlGAEgASgJEhMKC2pzb25fc2NoZW1hG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U0NvbmZpZxIeLmNvbmZpZy52MS5HZXRLQVNDb25maWdSZXF1ZXN0Gh8uY29uZmlnLnYxLkdldEtBU0NvbmZpZ1Jlc3BvbnNlIgASUQoMU2V0S0FTQ29uZmlnEh4uY29uZmlnLnYxLlNldEtBU0NvbmZpZ1JlcXVlc3QaHy5jb25maWcudjEuU2V0S0FTQ29uZmlnUmVzcG9uc2UiAEKuAQoNY29tLmNvbmZpZy52MUILQ29uZmlnUHJvdG9QAVpLZ2l0aHViLmNvbS92aXJ0cnUtY29ycC9kYXRhLXNlY3VyaXR5LXBsYXRmb3JtL3Nkay92Mi9nZW4vY29uZmlnL3YxO2NvbmZpZ3YxogIDQ1hYqgIJQ29uZmlnLlYxygIJQ29uZmlnXFYx4gIVQ29uZmlnXFYxXEdQQk1ldGFkYXRh6gIKQ29uZmlnOjpWMWIGcHJvdG8z',
42
- [
43
- file_buf_validate_validate,
44
- file_config_v1_tagging,
45
- file_config_v1_kas_config,
46
- file_config_v1_secureviewer_config,
47
- file_config_v1_outlook_config,
48
- ]
49
- );
50
-
51
- /**
52
- * @generated from message config.v1.GetTaggingPDPConfigResponse
53
- */
54
- export type GetTaggingPDPConfigResponse =
55
- Message<'config.v1.GetTaggingPDPConfigResponse'> & {
56
- /**
57
- * @generated from field: string value = 1;
58
- */
59
- value: string;
60
-
61
- /**
62
- * @generated from field: string json_schema = 2;
63
- */
64
- jsonSchema: string;
65
- };
66
-
67
- /**
68
- * Describes the message config.v1.GetTaggingPDPConfigResponse.
69
- * Use `create(GetTaggingPDPConfigResponseSchema)` to create a new message.
70
- */
71
- export const GetTaggingPDPConfigResponseSchema: GenMessage<GetTaggingPDPConfigResponse> =
72
- /*@__PURE__*/
73
- messageDesc(file_config_v1_config, 0);
74
-
75
- /**
76
- * @generated from message config.v1.GetSecureViewerConfigResponse
77
- */
78
- export type GetSecureViewerConfigResponse =
79
- Message<'config.v1.GetSecureViewerConfigResponse'> & {
80
- /**
81
- * @generated from field: string value = 1;
82
- */
83
- value: string;
84
-
85
- /**
86
- * @generated from field: string json_schema = 2;
87
- */
88
- jsonSchema: string;
89
- };
90
-
91
- /**
92
- * Describes the message config.v1.GetSecureViewerConfigResponse.
93
- * Use `create(GetSecureViewerConfigResponseSchema)` to create a new message.
94
- */
95
- export const GetSecureViewerConfigResponseSchema: GenMessage<GetSecureViewerConfigResponse> =
96
- /*@__PURE__*/
97
- messageDesc(file_config_v1_config, 1);
98
-
99
- /**
100
- * @generated from message config.v1.GetKASConfigResponse
101
- */
102
- export type GetKASConfigResponse = Message<'config.v1.GetKASConfigResponse'> & {
103
- /**
104
- * @generated from field: string value = 1;
105
- */
106
- value: string;
107
-
108
- /**
109
- * @generated from field: string json_schema = 2;
110
- */
111
- jsonSchema: string;
112
- };
113
-
114
- /**
115
- * Describes the message config.v1.GetKASConfigResponse.
116
- * Use `create(GetKASConfigResponseSchema)` to create a new message.
117
- */
118
- export const GetKASConfigResponseSchema: GenMessage<GetKASConfigResponse> =
119
- /*@__PURE__*/
120
- messageDesc(file_config_v1_config, 2);
121
-
122
- /**
123
- * @generated from message config.v1.GetOutlookConfigResponse
124
- */
125
- export type GetOutlookConfigResponse =
126
- Message<'config.v1.GetOutlookConfigResponse'> & {
127
- /**
128
- * @generated from field: string value = 1;
129
- */
130
- value: string;
131
-
132
- /**
133
- * @generated from field: string json_schema = 2;
134
- */
135
- jsonSchema: string;
136
- };
137
-
138
- /**
139
- * Describes the message config.v1.GetOutlookConfigResponse.
140
- * Use `create(GetOutlookConfigResponseSchema)` to create a new message.
141
- */
142
- export const GetOutlookConfigResponseSchema: GenMessage<GetOutlookConfigResponse> =
143
- /*@__PURE__*/
144
- messageDesc(file_config_v1_config, 3);
145
-
146
- /**
147
- * @generated from message config.v1.GetTaggingPDPConfigRequest
148
- */
149
- export type GetTaggingPDPConfigRequest =
150
- Message<'config.v1.GetTaggingPDPConfigRequest'> & {
151
- /**
152
- * @generated from field: config.v1.TaggingPDPConfigVersion version = 1;
153
- */
154
- version: TaggingPDPConfigVersion;
155
- };
156
-
157
- /**
158
- * Describes the message config.v1.GetTaggingPDPConfigRequest.
159
- * Use `create(GetTaggingPDPConfigRequestSchema)` to create a new message.
160
- */
161
- export const GetTaggingPDPConfigRequestSchema: GenMessage<GetTaggingPDPConfigRequest> =
162
- /*@__PURE__*/
163
- messageDesc(file_config_v1_config, 4);
164
-
165
- /**
166
- * @generated from message config.v1.SetTaggingPDPConfigRequest
167
- */
168
- export type SetTaggingPDPConfigRequest =
169
- Message<'config.v1.SetTaggingPDPConfigRequest'> & {
170
- /**
171
- * @generated from field: config.v1.TaggingPDPConfig config = 1;
172
- */
173
- config?: TaggingPDPConfig;
174
- };
175
-
176
- /**
177
- * Describes the message config.v1.SetTaggingPDPConfigRequest.
178
- * Use `create(SetTaggingPDPConfigRequestSchema)` to create a new message.
179
- */
180
- export const SetTaggingPDPConfigRequestSchema: GenMessage<SetTaggingPDPConfigRequest> =
181
- /*@__PURE__*/
182
- messageDesc(file_config_v1_config, 5);
183
-
184
- /**
185
- * @generated from message config.v1.SetTaggingPDPConfigResponse
186
- */
187
- export type SetTaggingPDPConfigResponse =
188
- Message<'config.v1.SetTaggingPDPConfigResponse'> & {
189
- /**
190
- * @generated from field: config.v1.TaggingPDPConfig config = 1;
191
- */
192
- config?: TaggingPDPConfig;
193
- };
194
-
195
- /**
196
- * Describes the message config.v1.SetTaggingPDPConfigResponse.
197
- * Use `create(SetTaggingPDPConfigResponseSchema)` to create a new message.
198
- */
199
- export const SetTaggingPDPConfigResponseSchema: GenMessage<SetTaggingPDPConfigResponse> =
200
- /*@__PURE__*/
201
- messageDesc(file_config_v1_config, 6);
202
-
203
- /**
204
- * @generated from message config.v1.GetSecureViewerConfigRequest
205
- */
206
- export type GetSecureViewerConfigRequest =
207
- Message<'config.v1.GetSecureViewerConfigRequest'> & {
208
- /**
209
- * @generated from field: config.v1.SecureViewerConfigVersion version = 1;
210
- */
211
- version: SecureViewerConfigVersion;
212
- };
213
-
214
- /**
215
- * Describes the message config.v1.GetSecureViewerConfigRequest.
216
- * Use `create(GetSecureViewerConfigRequestSchema)` to create a new message.
217
- */
218
- export const GetSecureViewerConfigRequestSchema: GenMessage<GetSecureViewerConfigRequest> =
219
- /*@__PURE__*/
220
- messageDesc(file_config_v1_config, 7);
221
-
222
- /**
223
- * @generated from message config.v1.SetSecureViewerConfigRequest
224
- */
225
- export type SetSecureViewerConfigRequest =
226
- Message<'config.v1.SetSecureViewerConfigRequest'> & {
227
- /**
228
- * @generated from field: config.v1.SecureViewerConfig config = 1;
229
- */
230
- config?: SecureViewerConfig;
231
- };
232
-
233
- /**
234
- * Describes the message config.v1.SetSecureViewerConfigRequest.
235
- * Use `create(SetSecureViewerConfigRequestSchema)` to create a new message.
236
- */
237
- export const SetSecureViewerConfigRequestSchema: GenMessage<SetSecureViewerConfigRequest> =
238
- /*@__PURE__*/
239
- messageDesc(file_config_v1_config, 8);
240
-
241
- /**
242
- * @generated from message config.v1.SetSecureViewerConfigResponse
243
- */
244
- export type SetSecureViewerConfigResponse =
245
- Message<'config.v1.SetSecureViewerConfigResponse'> & {
246
- /**
247
- * @generated from field: config.v1.SecureViewerConfig config = 1;
248
- */
249
- config?: SecureViewerConfig;
250
- };
251
-
252
- /**
253
- * Describes the message config.v1.SetSecureViewerConfigResponse.
254
- * Use `create(SetSecureViewerConfigResponseSchema)` to create a new message.
255
- */
256
- export const SetSecureViewerConfigResponseSchema: GenMessage<SetSecureViewerConfigResponse> =
257
- /*@__PURE__*/
258
- messageDesc(file_config_v1_config, 9);
259
-
260
- /**
261
- * @generated from message config.v1.GetOutlookConfigRequest
262
- */
263
- export type GetOutlookConfigRequest =
264
- Message<'config.v1.GetOutlookConfigRequest'> & {
265
- /**
266
- * @generated from field: config.v1.OutlookConfigVersion version = 1;
267
- */
268
- version: OutlookConfigVersion;
269
- };
270
-
271
- /**
272
- * Describes the message config.v1.GetOutlookConfigRequest.
273
- * Use `create(GetOutlookConfigRequestSchema)` to create a new message.
274
- */
275
- export const GetOutlookConfigRequestSchema: GenMessage<GetOutlookConfigRequest> =
276
- /*@__PURE__*/
277
- messageDesc(file_config_v1_config, 10);
278
-
279
- /**
280
- * @generated from message config.v1.SetOutlookConfigRequest
281
- */
282
- export type SetOutlookConfigRequest =
283
- Message<'config.v1.SetOutlookConfigRequest'> & {
284
- /**
285
- * @generated from field: config.v1.OutlookConfig config = 1;
286
- */
287
- config?: OutlookConfig;
288
- };
289
-
290
- /**
291
- * Describes the message config.v1.SetOutlookConfigRequest.
292
- * Use `create(SetOutlookConfigRequestSchema)` to create a new message.
293
- */
294
- export const SetOutlookConfigRequestSchema: GenMessage<SetOutlookConfigRequest> =
295
- /*@__PURE__*/
296
- messageDesc(file_config_v1_config, 11);
297
-
298
- /**
299
- * @generated from message config.v1.SetOutlookConfigResponse
300
- */
301
- export type SetOutlookConfigResponse =
302
- Message<'config.v1.SetOutlookConfigResponse'> & {
303
- /**
304
- * @generated from field: config.v1.OutlookConfig config = 1;
305
- */
306
- config?: OutlookConfig;
307
- };
308
-
309
- /**
310
- * Describes the message config.v1.SetOutlookConfigResponse.
311
- * Use `create(SetOutlookConfigResponseSchema)` to create a new message.
312
- */
313
- export const SetOutlookConfigResponseSchema: GenMessage<SetOutlookConfigResponse> =
314
- /*@__PURE__*/
315
- messageDesc(file_config_v1_config, 12);
316
-
317
- /**
318
- * @generated from message config.v1.GetKASConfigRequest
319
- */
320
- export type GetKASConfigRequest = Message<'config.v1.GetKASConfigRequest'> & {
321
- /**
322
- * @generated from field: config.v1.KASConfigVersion version = 1;
323
- */
324
- version: KASConfigVersion;
325
- };
326
-
327
- /**
328
- * Describes the message config.v1.GetKASConfigRequest.
329
- * Use `create(GetKASConfigRequestSchema)` to create a new message.
330
- */
331
- export const GetKASConfigRequestSchema: GenMessage<GetKASConfigRequest> =
332
- /*@__PURE__*/
333
- messageDesc(file_config_v1_config, 13);
334
-
335
- /**
336
- * @generated from message config.v1.SetKASConfigRequest
337
- */
338
- export type SetKASConfigRequest = Message<'config.v1.SetKASConfigRequest'> & {
339
- /**
340
- * @generated from field: config.v1.KASConfig config = 1;
341
- */
342
- config?: KASConfig;
343
- };
344
-
345
- /**
346
- * Describes the message config.v1.SetKASConfigRequest.
347
- * Use `create(SetKASConfigRequestSchema)` to create a new message.
348
- */
349
- export const SetKASConfigRequestSchema: GenMessage<SetKASConfigRequest> =
350
- /*@__PURE__*/
351
- messageDesc(file_config_v1_config, 14);
352
-
353
- /**
354
- * @generated from message config.v1.SetKASConfigResponse
355
- */
356
- export type SetKASConfigResponse = Message<'config.v1.SetKASConfigResponse'> & {
357
- /**
358
- * @generated from field: config.v1.KASConfig config = 1;
359
- */
360
- config?: KASConfig;
361
- };
362
-
363
- /**
364
- * Describes the message config.v1.SetKASConfigResponse.
365
- * Use `create(SetKASConfigResponseSchema)` to create a new message.
366
- */
367
- export const SetKASConfigResponseSchema: GenMessage<SetKASConfigResponse> =
368
- /*@__PURE__*/
369
- messageDesc(file_config_v1_config, 15);
370
-
371
- /**
372
- * @generated from service config.v1.ConfigService
373
- */
374
- export const ConfigService: GenService<{
375
- /**
376
- * @generated from rpc config.v1.ConfigService.GetTaggingPDPConfig
377
- */
378
- getTaggingPDPConfig: {
379
- methodKind: 'unary';
380
- input: typeof GetTaggingPDPConfigRequestSchema;
381
- output: typeof GetTaggingPDPConfigResponseSchema;
382
- };
383
- /**
384
- * @generated from rpc config.v1.ConfigService.SetTaggingPDPConfig
385
- */
386
- setTaggingPDPConfig: {
387
- methodKind: 'unary';
388
- input: typeof SetTaggingPDPConfigRequestSchema;
389
- output: typeof SetTaggingPDPConfigResponseSchema;
390
- };
391
- /**
392
- * @generated from rpc config.v1.ConfigService.GetSecureViewerConfig
393
- */
394
- getSecureViewerConfig: {
395
- methodKind: 'unary';
396
- input: typeof GetSecureViewerConfigRequestSchema;
397
- output: typeof GetSecureViewerConfigResponseSchema;
398
- };
399
- /**
400
- * @generated from rpc config.v1.ConfigService.SetSecureViewerConfig
401
- */
402
- setSecureViewerConfig: {
403
- methodKind: 'unary';
404
- input: typeof SetSecureViewerConfigRequestSchema;
405
- output: typeof SetSecureViewerConfigResponseSchema;
406
- };
407
- /**
408
- * @generated from rpc config.v1.ConfigService.GetOutlookConfig
409
- */
410
- getOutlookConfig: {
411
- methodKind: 'unary';
412
- input: typeof GetOutlookConfigRequestSchema;
413
- output: typeof GetOutlookConfigResponseSchema;
414
- };
415
- /**
416
- * @generated from rpc config.v1.ConfigService.SetOutlookConfig
417
- */
418
- setOutlookConfig: {
419
- methodKind: 'unary';
420
- input: typeof SetOutlookConfigRequestSchema;
421
- output: typeof SetOutlookConfigResponseSchema;
422
- };
423
- /**
424
- * @generated from rpc config.v1.ConfigService.GetKASConfig
425
- */
426
- getKASConfig: {
427
- methodKind: 'unary';
428
- input: typeof GetKASConfigRequestSchema;
429
- output: typeof GetKASConfigResponseSchema;
430
- };
431
- /**
432
- * @generated from rpc config.v1.ConfigService.SetKASConfig
433
- */
434
- setKASConfig: {
435
- methodKind: 'unary';
436
- input: typeof SetKASConfigRequestSchema;
437
- output: typeof SetKASConfigResponseSchema;
438
- };
439
- }> = /*@__PURE__*/ serviceDesc(file_config_v1_config, 0);
@@ -1,183 +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 config/v1/kas_config.proto (package config.v1, 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 { file_config_v1_meta } from './meta_pb';
19
- import type { Duration } from '@bufbuild/protobuf/wkt';
20
- import { file_google_protobuf_duration } from '@bufbuild/protobuf/wkt';
21
- import type { Message } from '@bufbuild/protobuf';
22
-
23
- /**
24
- * Describes the file config/v1/kas_config.proto.
25
- */
26
- export const file_config_v1_kas_config: GenFile =
27
- /*@__PURE__*/
28
- fileDesc(
29
- 'Chpjb25maWcvdjEva2FzX2NvbmZpZy5wcm90bxIJY29uZmlnLnYxIkMKCUtBU0NvbmZpZxIkCgJ2MRgBIAEoCzIWLmNvbmZpZy52MS5LQVNDb25maWdWMUgAQhAKB3ZlcnNpb24SBbpIAggBIuYCCg5LQVNLZXlyaW5nSXRlbRJoCglhbGdvcml0aG0YASABKAlCVbpIA8gBAYK1GEsKCUFsZ29yaXRobRI+VGhlIGNyeXB0b2dyYXBoaWMgYWxnb3JpdGhtIGlkZW50aWZpZXIgKGUuZy4sICdlYzpzZWNwMjU2cjEnKS4SSQoDa2lkGAIgASgJQjy6SAPIAQGCtRgyCgxLZXkgSUQgKEtJRCkSIlRoZSB1bmlxdWUgaWRlbnRpZmllciBmb3IgdGhlIGtleS4SngEKBmxlZ2FjeRgDIAEoCEKNAYK1GIgBCgpMZWdhY3kgS2V5EnNJbmRpY2F0ZXMgdGhhdCB0aGUga2V5IHNob3VsZCBub3QgYmUgc2VydmVkIGJ5IGRlZmF1bHQsIGJ1dCBpcyBhbGxvd2VkIGZvciBsZWdhY3kgcmVhc29ucyBvbiBkZWNyeXB0IChyZXdyYXApIG9ubHkuGgVmYWxzZSKaAgoSS0FTUHJldmlld0ZlYXR1cmVzEpwBCg5lY190ZGZfZW5hYmxlZBgBIAEoCEKDAYK1GH8KDUVuYWJsZSBFQyBUREYSZ0VuYWJsZXMgZXhwZXJpbWVudGFsIEVsbGlwdGljLUN1cnZlIHN1cHBvcnQgaW4gVERGcywgcmVxdWlyZWQgdG8gcGFyc2UgS0FPcyB3aXRoIHRoZSBgZWMtd3JhcHBlZGAgdHlwZS4aBWZhbHNlEmUKDmtleV9tYW5hZ2VtZW50GAIgASgIQk2CtRhJChVFbmFibGUgS2V5IE1hbmFnZW1lbnQSKUVuYWJs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WNvbS5jb25maWcudjFCDkthc0NvbmZpZ1Byb3RvUAFaS2dpdGh1Yi5jb20vdmlydHJ1LWNvcnAvZGF0YS1zZWN1cml0eS1wbGF0Zm9ybS9zZGsvdjIvZ2VuL2NvbmZpZy92MTtjb25maWd2MaICA0NYWKoCCUNvbmZpZy5WMcoCCUNvbmZpZ1xWMeICFUNvbmZpZ1xWMVxHUEJNZXRhZGF0YeoCCkNvbmZpZzo6VjFiBnByb3RvMw',
30
- [
31
- file_buf_validate_validate,
32
- file_config_v1_meta,
33
- file_google_protobuf_duration,
34
- ]
35
- );
36
-
37
- /**
38
- * A wrapper message that uses a oneof to support multiple config versions.
39
- *
40
- * @generated from message config.v1.KASConfig
41
- */
42
- export type KASConfig = Message<'config.v1.KASConfig'> & {
43
- /**
44
- * @generated from oneof config.v1.KASConfig.version
45
- */
46
- version:
47
- | {
48
- /**
49
- * @generated from field: config.v1.KASConfigV1 v1 = 1;
50
- */
51
- value: KASConfigV1;
52
- case: 'v1';
53
- }
54
- | { case: undefined; value?: undefined };
55
- };
56
-
57
- /**
58
- * Describes the message config.v1.KASConfig.
59
- * Use `create(KASConfigSchema)` to create a new message.
60
- */
61
- export const KASConfigSchema: GenMessage<KASConfig> =
62
- /*@__PURE__*/
63
- messageDesc(file_config_v1_kas_config, 0);
64
-
65
- /**
66
- * Corresponds to the Go `CurrentKeyFor` struct.
67
- * Specifies the preferred/default key for a given algorithm type.
68
- *
69
- * @generated from message config.v1.KASKeyringItem
70
- */
71
- export type KASKeyringItem = Message<'config.v1.KASKeyringItem'> & {
72
- /**
73
- * @generated from field: string algorithm = 1;
74
- */
75
- algorithm: string;
76
-
77
- /**
78
- * @generated from field: string kid = 2;
79
- */
80
- kid: string;
81
-
82
- /**
83
- * @generated from field: bool legacy = 3;
84
- */
85
- legacy: boolean;
86
- };
87
-
88
- /**
89
- * Describes the message config.v1.KASKeyringItem.
90
- * Use `create(KASKeyringItemSchema)` to create a new message.
91
- */
92
- export const KASKeyringItemSchema: GenMessage<KASKeyringItem> =
93
- /*@__PURE__*/
94
- messageDesc(file_config_v1_kas_config, 1);
95
-
96
- /**
97
- * Corresponds to the Go `Preview` struct.
98
- *
99
- * @generated from message config.v1.KASPreviewFeatures
100
- */
101
- export type KASPreviewFeatures = Message<'config.v1.KASPreviewFeatures'> & {
102
- /**
103
- * @generated from field: bool ec_tdf_enabled = 1;
104
- */
105
- ecTdfEnabled: boolean;
106
-
107
- /**
108
- * @generated from field: bool key_management = 2;
109
- */
110
- keyManagement: boolean;
111
- };
112
-
113
- /**
114
- * Describes the message config.v1.KASPreviewFeatures.
115
- * Use `create(KASPreviewFeaturesSchema)` to create a new message.
116
- */
117
- export const KASPreviewFeaturesSchema: GenMessage<KASPreviewFeatures> =
118
- /*@__PURE__*/
119
- messageDesc(file_config_v1_kas_config, 2);
120
-
121
- /**
122
- * The V1 definition for the KAS configuration, mapping from the Go `KASConfig` struct.
123
- *
124
- * @generated from message config.v1.KASConfigV1
125
- */
126
- export type KASConfigV1 = Message<'config.v1.KASConfigV1'> & {
127
- /**
128
- * @generated from field: repeated config.v1.KASKeyringItem keyring = 1;
129
- */
130
- keyring: KASKeyringItem[];
131
-
132
- /**
133
- * @generated from field: string root_key = 2;
134
- */
135
- rootKey: string;
136
-
137
- /**
138
- * @generated from field: google.protobuf.Duration key_cache_expiration = 3;
139
- */
140
- keyCacheExpiration?: Duration;
141
-
142
- /**
143
- * @generated from field: config.v1.KASPreviewFeatures preview = 4;
144
- */
145
- preview?: KASPreviewFeatures;
146
-
147
- /**
148
- * @generated from field: string registered_kas_uri = 5;
149
- */
150
- registeredKasUri: string;
151
- };
152
-
153
- /**
154
- * Describes the message config.v1.KASConfigV1.
155
- * Use `create(KASConfigV1Schema)` to create a new message.
156
- */
157
- export const KASConfigV1Schema: GenMessage<KASConfigV1> =
158
- /*@__PURE__*/
159
- messageDesc(file_config_v1_kas_config, 3);
160
-
161
- /**
162
- * Enum to manage different versions of the KAS configuration.
163
- *
164
- * @generated from enum config.v1.KASConfigVersion
165
- */
166
- export enum KASConfigVersion {
167
- /**
168
- * @generated from enum value: KAS_CONFIG_VERSION_UNSPECIFIED = 0;
169
- */
170
- KAS_CONFIG_VERSION_UNSPECIFIED = 0,
171
-
172
- /**
173
- * @generated from enum value: KAS_CONFIG_VERSION_V1 = 1;
174
- */
175
- KAS_CONFIG_VERSION_V1 = 1,
176
- }
177
-
178
- /**
179
- * Describes the enum config.v1.KASConfigVersion.
180
- */
181
- export const KASConfigVersionSchema: GenEnum<KASConfigVersion> =
182
- /*@__PURE__*/
183
- enumDesc(file_config_v1_kas_config, 0);
@@ -1,72 +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 config/v1/meta.proto (package config.v1, syntax proto3)
9
- /* eslint-disable */
10
-
11
- import type {
12
- GenExtension,
13
- GenFile,
14
- GenMessage,
15
- } from '@bufbuild/protobuf/codegenv1';
16
- import { extDesc, fileDesc, messageDesc } from '@bufbuild/protobuf/codegenv1';
17
- import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
18
- import type { EnumValueOptions, FieldOptions } from '@bufbuild/protobuf/wkt';
19
- import { file_google_protobuf_descriptor } from '@bufbuild/protobuf/wkt';
20
- import type { Message } from '@bufbuild/protobuf';
21
-
22
- /**
23
- * Describes the file config/v1/meta.proto.
24
- */
25
- export const file_config_v1_meta: GenFile =
26
- /*@__PURE__*/
27
- fileDesc(
28
- 'ChRjb25maWcvdjEvbWV0YS5wcm90bxIJY29uZmlnLnYxIlwKDUZpZWxkTWV0YWRhdGESFQoFdGl0bGUYASABKAlCBrpIA8gBABIbCgtkZXNjcmlwdGlvbhgCIAEoCUIGukgDyAEBEhcKB2RlZmF1bHQYAyABKAlCBrpIA8gBATpNCgRtZXRhEh0uZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucxjQhgMgASgLMhguY29uZmlnLnYxLkZpZWxkTWV0YWRhdGFSBG1ldGE6QQoFdGl0bGUSIS5nb29nbGUucHJvdG9idWYuRW51bVZhbHVlT3B0aW9ucxjQhgMgASgJQga6SAPIAQBSBXRpdGxlQqwBCg1jb20uY29uZmlnLnYxQglNZXRhUHJvdG9QAVpLZ2l0aHViLmNvbS92aXJ0cnUtY29ycC9kYXRhLXNlY3VyaXR5LXBsYXRmb3JtL3Nkay92Mi9nZW4vY29uZmlnL3YxO2NvbmZpZ3YxogIDQ1hYqgIJQ29uZmlnLlYxygIJQ29uZmlnXFYx4gIVQ29uZmlnXFYxXEdQQk1ldGFkYXRh6gIKQ29uZmlnOjpWMWIGcHJvdG8z',
29
- [file_buf_validate_validate, file_google_protobuf_descriptor]
30
- );
31
-
32
- /**
33
- * @generated from message config.v1.FieldMetadata
34
- */
35
- export type FieldMetadata = Message<'config.v1.FieldMetadata'> & {
36
- /**
37
- * @generated from field: string title = 1;
38
- */
39
- title: string;
40
-
41
- /**
42
- * @generated from field: string description = 2;
43
- */
44
- description: string;
45
-
46
- /**
47
- * @generated from field: string default = 3;
48
- */
49
- default: string;
50
- };
51
-
52
- /**
53
- * Describes the message config.v1.FieldMetadata.
54
- * Use `create(FieldMetadataSchema)` to create a new message.
55
- */
56
- export const FieldMetadataSchema: GenMessage<FieldMetadata> =
57
- /*@__PURE__*/
58
- messageDesc(file_config_v1_meta, 0);
59
-
60
- /**
61
- * @generated from extension: config.v1.FieldMetadata meta = 50000;
62
- */
63
- export const meta: GenExtension<FieldOptions, FieldMetadata> =
64
- /*@__PURE__*/
65
- extDesc(file_config_v1_meta, 0);
66
-
67
- /**
68
- * @generated from extension: string title = 50000;
69
- */
70
- export const title: GenExtension<EnumValueOptions, string> =
71
- /*@__PURE__*/
72
- extDesc(file_config_v1_meta, 1);