@virtru/dsp-sdk 0.5.0 → 0.6.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 +8 -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 +23 -2
  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,240 +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 shared/v1/shared.proto (package shared.v1, syntax proto3)
9
- /* eslint-disable */
10
-
11
- import type {
12
- GenEnum,
13
- GenFile,
14
- GenMessage,
15
- GenService,
16
- } from '@bufbuild/protobuf/codegenv1';
17
- import {
18
- enumDesc,
19
- fileDesc,
20
- messageDesc,
21
- serviceDesc,
22
- } from '@bufbuild/protobuf/codegenv1';
23
- import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
24
- import { file_google_api_annotations } from '../../google/api/annotations_pb';
25
- import type { Message } from '@bufbuild/protobuf';
26
-
27
- /**
28
- * Describes the file shared/v1/shared.proto.
29
- */
30
- export const file_shared_v1_shared: GenFile =
31
- /*@__PURE__*/
32
- fileDesc(
33
- 'ChZzaGFyZWQvdjEvc2hhcmVkLnByb3RvEglzaGFyZWQudjEirgIKDFNpbXBsZVBvbGljeRIQCghhdHRyX2ZxbhgBIAEoCRJGCg9kZWZpbml0aW9uX3J1bGUYAiABKA4yLS5zaGFyZWQudjEuU2ltcGxlUG9saWN5LkF0dHJpYnV0ZVJ1bGVUeXBlRW51bRIOCgZ2YWx1ZXMYAyADKAkiswEKFUF0dHJpYnV0ZVJ1bGVUeXBlRW51bRIoCiRBVFRSSUJVVEVfUlVMRV9UWVBFX0VOVU1fVU5TUEVDSUZJRUQQABIjCh9BVFRSSUJVVEVfUlVMRV9UWVBFX0VOVU1fQUxMX09GEAESIwofQVRUUklCVVRFX1JVTEVfVFlQRV9FTlVNX0FOWV9PRhACEiYKIkFUVFJJQlVURV9SVUxFX1RZUEVfRU5VTV9ISUVSQVJDSFkQAyI4ChhHZXRNeUVudGl0bGVtZW50c1JlcXVlc3QSHAoUYXR0cmlidXRlX3ZhbHVlX2ZxbnMYASADKAkiRQoSRW50aXR5RW50aXRsZW1lbnRzEhEKCWVudGl0eV9pZBgBIAEoCRIcChRhdHRyaWJ1dGVfdmFsdWVfZnFucxgCIAMoCSJQChlHZXRNeUVudGl0bGVtZW50c1Jlc3BvbnNlEjMKDGVudGl0bGVtZW50cxgBIAMoCzIdLnNoYXJlZC52MS5FbnRpdHlFbnRpdGxlbWVudHMiPQoZVHJhbnNmb3JtVGRmRm9ybWF0UmVxdWVzdBIgCgl0ZGZfYnl0ZXMYASABKAxCDbpICnoIEAEYgICAgAEiLwoaVHJhbnNmb3JtVGRmRm9ybWF0UmVzcG9uc2USEQoJdGRmX2J5dGVzGAEgASgMMqoDCg1TaGFyZWRTZXJ2aWNlEoIBChFHZXRNeUVudGl0bGVtZW50cxIjLnNoYXJlZC52MS5HZXRNeUVudGl0bGVtZW50c1JlcXVlc3QaJC5zaGFyZWQudjEuR2V0TXlFbnRpdGxlbWVudHNSZXNwb25zZSIikAIBgtPkkwIZOgEqIhQvc2hhcmVkL2VudGl0bGVtZW50cxKJAQoQVHJhbnNmb3JtVG9JQ1RERhIkLnNoYXJlZC52MS5UcmFuc2Zvcm1UZGZGb3JtYXRSZXF1ZXN0GiUuc2hhcmVkLnYxLlRyYW5zZm9ybVRkZkZvcm1hdFJlc3BvbnNlIiiQAgGC0+STAh86ASoiGi9zaGFyZWQvdHJhbnNmb3JtX3RvX2ljdGRmEocBCg9UcmFuc2Zvcm1Ub1pUREYSJC5zaGFyZWQudjEuVHJhbnNmb3JtVGRmRm9ybWF0UmVxdWVzdBolLnNoYXJlZC52MS5UcmFuc2Zvcm1UZGZGb3JtYXRSZXNwb25zZSInkAIBgtPkkwIeOgEqIhkvc2hhcmVkL3RyYW5zZm9ybV90b196dGRmQq4BCg1jb20uc2hhcmVkLnYxQgtTaGFyZWRQcm90b1ABWktnaXRodWIuY29tL3ZpcnRydS1jb3JwL2RhdGEtc2VjdXJpdHktcGxhdGZvcm0vc2RrL3YyL2dlbi9zaGFyZWQvdjE7c2hhcmVkdjGiAgNTWFiqAglTaGFyZWQuVjHKAglTaGFyZWRcVjHiAhVTaGFyZWRcVjFcR1BCTWV0YWRhdGHqAgpTaGFyZWQ6OlYxYgZwcm90bzM',
34
- [file_buf_validate_validate, file_google_api_annotations]
35
- );
36
-
37
- /**
38
- * @generated from message shared.v1.SimplePolicy
39
- */
40
- export type SimplePolicy = Message<'shared.v1.SimplePolicy'> & {
41
- /**
42
- * fully qualified name of the attribute such as https://demo.com/attr/attr1
43
- *
44
- * @generated from field: string attr_fqn = 1;
45
- */
46
- attrFqn: string;
47
-
48
- /**
49
- * rule type for the attribute
50
- *
51
- * @generated from field: shared.v1.SimplePolicy.AttributeRuleTypeEnum definition_rule = 2;
52
- */
53
- definitionRule: SimplePolicy_AttributeRuleTypeEnum;
54
-
55
- /**
56
- * list of string values for the attribute
57
- *
58
- * @generated from field: repeated string values = 3;
59
- */
60
- values: string[];
61
- };
62
-
63
- /**
64
- * Describes the message shared.v1.SimplePolicy.
65
- * Use `create(SimplePolicySchema)` to create a new message.
66
- */
67
- export const SimplePolicySchema: GenMessage<SimplePolicy> =
68
- /*@__PURE__*/
69
- messageDesc(file_shared_v1_shared, 0);
70
-
71
- /**
72
- * buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package
73
- *
74
- * @generated from enum shared.v1.SimplePolicy.AttributeRuleTypeEnum
75
- */
76
- export enum SimplePolicy_AttributeRuleTypeEnum {
77
- /**
78
- * @generated from enum value: ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED = 0;
79
- */
80
- UNSPECIFIED = 0,
81
-
82
- /**
83
- * @generated from enum value: ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF = 1;
84
- */
85
- ALL_OF = 1,
86
-
87
- /**
88
- * @generated from enum value: ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF = 2;
89
- */
90
- ANY_OF = 2,
91
-
92
- /**
93
- * @generated from enum value: ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY = 3;
94
- */
95
- HIERARCHY = 3,
96
- }
97
-
98
- /**
99
- * Describes the enum shared.v1.SimplePolicy.AttributeRuleTypeEnum.
100
- */
101
- export const SimplePolicy_AttributeRuleTypeEnumSchema: GenEnum<SimplePolicy_AttributeRuleTypeEnum> =
102
- /*@__PURE__*/
103
- enumDesc(file_shared_v1_shared, 0, 0);
104
-
105
- /**
106
- * @generated from message shared.v1.GetMyEntitlementsRequest
107
- */
108
- export type GetMyEntitlementsRequest =
109
- Message<'shared.v1.GetMyEntitlementsRequest'> & {
110
- /**
111
- * @generated from field: repeated string attribute_value_fqns = 1;
112
- */
113
- attributeValueFqns: string[];
114
- };
115
-
116
- /**
117
- * Describes the message shared.v1.GetMyEntitlementsRequest.
118
- * Use `create(GetMyEntitlementsRequestSchema)` to create a new message.
119
- */
120
- export const GetMyEntitlementsRequestSchema: GenMessage<GetMyEntitlementsRequest> =
121
- /*@__PURE__*/
122
- messageDesc(file_shared_v1_shared, 1);
123
-
124
- /**
125
- * @generated from message shared.v1.EntityEntitlements
126
- */
127
- export type EntityEntitlements = Message<'shared.v1.EntityEntitlements'> & {
128
- /**
129
- * @generated from field: string entity_id = 1;
130
- */
131
- entityId: string;
132
-
133
- /**
134
- * @generated from field: repeated string attribute_value_fqns = 2;
135
- */
136
- attributeValueFqns: string[];
137
- };
138
-
139
- /**
140
- * Describes the message shared.v1.EntityEntitlements.
141
- * Use `create(EntityEntitlementsSchema)` to create a new message.
142
- */
143
- export const EntityEntitlementsSchema: GenMessage<EntityEntitlements> =
144
- /*@__PURE__*/
145
- messageDesc(file_shared_v1_shared, 2);
146
-
147
- /**
148
- * @generated from message shared.v1.GetMyEntitlementsResponse
149
- */
150
- export type GetMyEntitlementsResponse =
151
- Message<'shared.v1.GetMyEntitlementsResponse'> & {
152
- /**
153
- * @generated from field: repeated shared.v1.EntityEntitlements entitlements = 1;
154
- */
155
- entitlements: EntityEntitlements[];
156
- };
157
-
158
- /**
159
- * Describes the message shared.v1.GetMyEntitlementsResponse.
160
- * Use `create(GetMyEntitlementsResponseSchema)` to create a new message.
161
- */
162
- export const GetMyEntitlementsResponseSchema: GenMessage<GetMyEntitlementsResponse> =
163
- /*@__PURE__*/
164
- messageDesc(file_shared_v1_shared, 3);
165
-
166
- /**
167
- * shared request message for transforming ICTDF <-> ZTDF
168
- *
169
- * @generated from message shared.v1.TransformTdfFormatRequest
170
- */
171
- export type TransformTdfFormatRequest =
172
- Message<'shared.v1.TransformTdfFormatRequest'> & {
173
- /**
174
- * @generated from field: bytes tdf_bytes = 1;
175
- */
176
- tdfBytes: Uint8Array;
177
- };
178
-
179
- /**
180
- * Describes the message shared.v1.TransformTdfFormatRequest.
181
- * Use `create(TransformTdfFormatRequestSchema)` to create a new message.
182
- */
183
- export const TransformTdfFormatRequestSchema: GenMessage<TransformTdfFormatRequest> =
184
- /*@__PURE__*/
185
- messageDesc(file_shared_v1_shared, 4);
186
-
187
- /**
188
- * shared response message for transforming ICTDF <-> ZTDF
189
- *
190
- * @generated from message shared.v1.TransformTdfFormatResponse
191
- */
192
- export type TransformTdfFormatResponse =
193
- Message<'shared.v1.TransformTdfFormatResponse'> & {
194
- /**
195
- * @generated from field: bytes tdf_bytes = 1;
196
- */
197
- tdfBytes: Uint8Array;
198
- };
199
-
200
- /**
201
- * Describes the message shared.v1.TransformTdfFormatResponse.
202
- * Use `create(TransformTdfFormatResponseSchema)` to create a new message.
203
- */
204
- export const TransformTdfFormatResponseSchema: GenMessage<TransformTdfFormatResponse> =
205
- /*@__PURE__*/
206
- messageDesc(file_shared_v1_shared, 5);
207
-
208
- /**
209
- * EXPERIMENTAL/UNSTABLE SERVICE
210
- *
211
- * @generated from service shared.v1.SharedService
212
- */
213
- export const SharedService: GenService<{
214
- /**
215
- * Gets user's entitlements based on their OIDC token provided in the auth header
216
- *
217
- * @generated from rpc shared.v1.SharedService.GetMyEntitlements
218
- */
219
- getMyEntitlements: {
220
- methodKind: 'unary';
221
- input: typeof GetMyEntitlementsRequestSchema;
222
- output: typeof GetMyEntitlementsResponseSchema;
223
- };
224
- /**
225
- * @generated from rpc shared.v1.SharedService.TransformToICTDF
226
- */
227
- transformToICTDF: {
228
- methodKind: 'unary';
229
- input: typeof TransformTdfFormatRequestSchema;
230
- output: typeof TransformTdfFormatResponseSchema;
231
- };
232
- /**
233
- * @generated from rpc shared.v1.SharedService.TransformToZTDF
234
- */
235
- transformToZTDF: {
236
- methodKind: 'unary';
237
- input: typeof TransformTdfFormatRequestSchema;
238
- output: typeof TransformTdfFormatResponseSchema;
239
- };
240
- }> = /*@__PURE__*/ serviceDesc(file_shared_v1_shared, 0);
@@ -1,39 +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 shared/v2/shared.proto (package shared.v2, syntax proto3)
9
- /* eslint-disable */
10
- // @ts-nocheck
11
-
12
- import {
13
- GetMyEntitlementsRequest,
14
- GetMyEntitlementsResponse,
15
- } from './shared_pb.js';
16
- import { MethodIdempotency, MethodKind } from '@bufbuild/protobuf';
17
-
18
- /**
19
- * EXPERIMENTAL/UNSTABLE SERVICE
20
- *
21
- * @generated from service shared.v2.SharedService
22
- */
23
- export const SharedService = {
24
- typeName: 'shared.v2.SharedService',
25
- methods: {
26
- /**
27
- * Gets user's entitlements based on their OIDC token provided in the auth header
28
- *
29
- * @generated from rpc shared.v2.SharedService.GetMyEntitlements
30
- */
31
- getMyEntitlements: {
32
- name: 'GetMyEntitlements',
33
- I: GetMyEntitlementsRequest,
34
- O: GetMyEntitlementsResponse,
35
- kind: MethodKind.Unary,
36
- idempotency: MethodIdempotency.NoSideEffects,
37
- },
38
- },
39
- } as const;
@@ -1,122 +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 shared/v2/shared.proto (package shared.v2, 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 type { Message } from '@bufbuild/protobuf';
22
-
23
- /**
24
- * Describes the file shared/v2/shared.proto.
25
- */
26
- export const file_shared_v2_shared: GenFile =
27
- /*@__PURE__*/
28
- fileDesc(
29
- 'ChZzaGFyZWQvdjIvc2hhcmVkLnByb3RvEglzaGFyZWQudjIikQIKEkVudGl0eUVudGl0bGVtZW50cxJnCh9hY3Rpb25zX3Blcl9hdHRyaWJ1dGVfdmFsdWVfZnFuGAEgAygLMj4uc2hhcmVkLnYyLkVudGl0eUVudGl0bGVtZW50cy5BY3Rpb25zUGVyQXR0cmlidXRlVmFsdWVGcW5FbnRyeRojCgtBY3Rpb25zTGlzdBIUCgxhY3Rpb25fbmFtZXMYASADKAkabQogQWN0aW9uc1BlckF0dHJpYnV0ZVZhbHVlRnFuRW50cnkSCwoDa2V5GAEgASgJEjgKBXZhbHVlGAIgASgLMikuc2hhcmVkLnYyLkVudGl0eUVudGl0bGVtZW50cy5BY3Rpb25zTGlzdDoCOAEiGgoYR2V0TXlFbnRpdGxlbWVudHNSZXF1ZXN0IlAKGUdldE15RW50aXRsZW1lbnRzUmVzcG9uc2USMwoMZW50aXRsZW1lbnRzGAEgASgLMh0uc2hhcmVkLnYyLkVudGl0eUVudGl0bGVtZW50czJ0Cg1TaGFyZWRTZXJ2aWNlEmMKEUdldE15RW50aXRsZW1lbnRzEiMuc2hhcmVkLnYyLkdldE15RW50aXRsZW1lbnRzUmVxdWVzdBokLnNoYXJlZC52Mi5HZXRNeUVudGl0bGVtZW50c1Jlc3BvbnNlIgOQAgFCrgEKDWNvbS5zaGFyZWQudjJCC1NoYXJlZFByb3RvUAFaS2dpdGh1Yi5jb20vdmlydHJ1LWNvcnAvZGF0YS1zZWN1cml0eS1wbGF0Zm9ybS9zZGsvdjIvZ2VuL3NoYXJlZC92MjtzaGFyZWR2MqICA1NYWKoCCVNoYXJlZC5WMsoCCVNoYXJlZFxWMuICFVNoYXJlZFxWMlxHUEJNZXRhZGF0YeoCClNoYXJlZDo6VjJiBnByb3RvMw'
30
- );
31
-
32
- /**
33
- * Entitlements for a given entity, mapping each attribute value FQN to any entitled actions[] (action names only)
34
- *
35
- * @generated from message shared.v2.EntityEntitlements
36
- */
37
- export type EntityEntitlements = Message<'shared.v2.EntityEntitlements'> & {
38
- /**
39
- * @generated from field: map<string, shared.v2.EntityEntitlements.ActionsList> actions_per_attribute_value_fqn = 1;
40
- */
41
- actionsPerAttributeValueFqn: {
42
- [key: string]: EntityEntitlements_ActionsList;
43
- };
44
- };
45
-
46
- /**
47
- * Describes the message shared.v2.EntityEntitlements.
48
- * Use `create(EntityEntitlementsSchema)` to create a new message.
49
- */
50
- export const EntityEntitlementsSchema: GenMessage<EntityEntitlements> =
51
- /*@__PURE__*/
52
- messageDesc(file_shared_v2_shared, 0);
53
-
54
- /**
55
- * @generated from message shared.v2.EntityEntitlements.ActionsList
56
- */
57
- export type EntityEntitlements_ActionsList =
58
- Message<'shared.v2.EntityEntitlements.ActionsList'> & {
59
- /**
60
- * @generated from field: repeated string action_names = 1;
61
- */
62
- actionNames: string[];
63
- };
64
-
65
- /**
66
- * Describes the message shared.v2.EntityEntitlements.ActionsList.
67
- * Use `create(EntityEntitlements_ActionsListSchema)` to create a new message.
68
- */
69
- export const EntityEntitlements_ActionsListSchema: GenMessage<EntityEntitlements_ActionsList> =
70
- /*@__PURE__*/
71
- messageDesc(file_shared_v2_shared, 0, 0);
72
-
73
- /**
74
- * @generated from message shared.v2.GetMyEntitlementsRequest
75
- */
76
- export type GetMyEntitlementsRequest =
77
- Message<'shared.v2.GetMyEntitlementsRequest'> & {};
78
-
79
- /**
80
- * Describes the message shared.v2.GetMyEntitlementsRequest.
81
- * Use `create(GetMyEntitlementsRequestSchema)` to create a new message.
82
- */
83
- export const GetMyEntitlementsRequestSchema: GenMessage<GetMyEntitlementsRequest> =
84
- /*@__PURE__*/
85
- messageDesc(file_shared_v2_shared, 1);
86
-
87
- /**
88
- * @generated from message shared.v2.GetMyEntitlementsResponse
89
- */
90
- export type GetMyEntitlementsResponse =
91
- Message<'shared.v2.GetMyEntitlementsResponse'> & {
92
- /**
93
- * @generated from field: shared.v2.EntityEntitlements entitlements = 1;
94
- */
95
- entitlements?: EntityEntitlements;
96
- };
97
-
98
- /**
99
- * Describes the message shared.v2.GetMyEntitlementsResponse.
100
- * Use `create(GetMyEntitlementsResponseSchema)` to create a new message.
101
- */
102
- export const GetMyEntitlementsResponseSchema: GenMessage<GetMyEntitlementsResponse> =
103
- /*@__PURE__*/
104
- messageDesc(file_shared_v2_shared, 2);
105
-
106
- /**
107
- * EXPERIMENTAL/UNSTABLE SERVICE
108
- *
109
- * @generated from service shared.v2.SharedService
110
- */
111
- export const SharedService: GenService<{
112
- /**
113
- * Gets user's entitlements based on their OIDC token provided in the auth header
114
- *
115
- * @generated from rpc shared.v2.SharedService.GetMyEntitlements
116
- */
117
- getMyEntitlements: {
118
- methodKind: 'unary';
119
- input: typeof GetMyEntitlementsRequestSchema;
120
- output: typeof GetMyEntitlementsResponseSchema;
121
- };
122
- }> = /*@__PURE__*/ serviceDesc(file_shared_v2_shared, 0);
@@ -1,156 +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 tagging/pdp/v2/externalprocessors/processor.proto (package tagging.pdp.externalprocessors.v2, syntax proto3)
9
- /* eslint-disable */
10
- // @ts-nocheck
11
-
12
- import {
13
- ExternalExtractContentRequest,
14
- ExternalExtractContentResponse,
15
- ExternalExtractTagsRequest,
16
- ExternalExtractTagsResponse,
17
- ExternalProcessTagsRequest,
18
- ExternalProcessTagsResponse,
19
- ExternalRollupTagsRequest,
20
- ExternalRollupTagsResponse,
21
- HealthCheckResponse,
22
- } from './processor_pb.js';
23
- import { Empty, MethodKind } from '@bufbuild/protobuf';
24
-
25
- /**
26
- * Service definition for gRPC-based tag extraction
27
- *
28
- * @generated from service tagging.pdp.externalprocessors.v2.ContentExtractionProcessorService
29
- */
30
- export const ContentExtractionProcessorService = {
31
- typeName:
32
- 'tagging.pdp.externalprocessors.v2.ContentExtractionProcessorService',
33
- methods: {
34
- /**
35
- * Extract content from a document using external gRPC service
36
- *
37
- * @generated from rpc tagging.pdp.externalprocessors.v2.ContentExtractionProcessorService.ExtractContent
38
- */
39
- extractContent: {
40
- name: 'ExtractContent',
41
- I: ExternalExtractContentRequest,
42
- O: ExternalExtractContentResponse,
43
- kind: MethodKind.Unary,
44
- },
45
- /**
46
- * Health check for the extraction service
47
- *
48
- * @generated from rpc tagging.pdp.externalprocessors.v2.ContentExtractionProcessorService.HealthCheck
49
- */
50
- healthCheck: {
51
- name: 'HealthCheck',
52
- I: Empty,
53
- O: HealthCheckResponse,
54
- kind: MethodKind.Unary,
55
- },
56
- },
57
- } as const;
58
-
59
- /**
60
- * Service definition for gRPC-based tag extraction
61
- *
62
- * @generated from service tagging.pdp.externalprocessors.v2.TagExtractionProcessorService
63
- */
64
- export const TagExtractionProcessorService = {
65
- typeName: 'tagging.pdp.externalprocessors.v2.TagExtractionProcessorService',
66
- methods: {
67
- /**
68
- * Extract tags from content using external gRPC service
69
- *
70
- * @generated from rpc tagging.pdp.externalprocessors.v2.TagExtractionProcessorService.ExtractTags
71
- */
72
- extractTags: {
73
- name: 'ExtractTags',
74
- I: ExternalExtractTagsRequest,
75
- O: ExternalExtractTagsResponse,
76
- kind: MethodKind.Unary,
77
- },
78
- /**
79
- * Health check for the extraction service
80
- *
81
- * @generated from rpc tagging.pdp.externalprocessors.v2.TagExtractionProcessorService.HealthCheck
82
- */
83
- healthCheck: {
84
- name: 'HealthCheck',
85
- I: Empty,
86
- O: HealthCheckResponse,
87
- kind: MethodKind.Unary,
88
- },
89
- },
90
- } as const;
91
-
92
- /**
93
- * Service definition for gRPC-based tag processing
94
- *
95
- * @generated from service tagging.pdp.externalprocessors.v2.TagProcessorService
96
- */
97
- export const TagProcessorService = {
98
- typeName: 'tagging.pdp.externalprocessors.v2.TagProcessorService',
99
- methods: {
100
- /**
101
- * Process tags using external gRPC service
102
- *
103
- * @generated from rpc tagging.pdp.externalprocessors.v2.TagProcessorService.ProcessTags
104
- */
105
- processTags: {
106
- name: 'ProcessTags',
107
- I: ExternalProcessTagsRequest,
108
- O: ExternalProcessTagsResponse,
109
- kind: MethodKind.Unary,
110
- },
111
- /**
112
- * Health check for the processing service
113
- *
114
- * @generated from rpc tagging.pdp.externalprocessors.v2.TagProcessorService.HealthCheck
115
- */
116
- healthCheck: {
117
- name: 'HealthCheck',
118
- I: Empty,
119
- O: HealthCheckResponse,
120
- kind: MethodKind.Unary,
121
- },
122
- },
123
- } as const;
124
-
125
- /**
126
- * Service definition for gRPC-based tag rollup
127
- *
128
- * @generated from service tagging.pdp.externalprocessors.v2.TagRollupProcessorService
129
- */
130
- export const TagRollupProcessorService = {
131
- typeName: 'tagging.pdp.externalprocessors.v2.TagRollupProcessorService',
132
- methods: {
133
- /**
134
- * Perform tag rollup using external gRPC service
135
- *
136
- * @generated from rpc tagging.pdp.externalprocessors.v2.TagRollupProcessorService.RollupTags
137
- */
138
- rollupTags: {
139
- name: 'RollupTags',
140
- I: ExternalRollupTagsRequest,
141
- O: ExternalRollupTagsResponse,
142
- kind: MethodKind.Unary,
143
- },
144
- /**
145
- * Health check for the processing service
146
- *
147
- * @generated from rpc tagging.pdp.externalprocessors.v2.TagRollupProcessorService.HealthCheck
148
- */
149
- healthCheck: {
150
- name: 'HealthCheck',
151
- I: Empty,
152
- O: HealthCheckResponse,
153
- kind: MethodKind.Unary,
154
- },
155
- },
156
- } as const;