@virtru/dsp-sdk 0.4.1 → 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 (123) 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/dist/src/lib/fips-crypto/asymmetric.d.ts +35 -0
  8. package/dist/src/lib/fips-crypto/asymmetric.js +116 -0
  9. package/dist/src/lib/fips-crypto/key-format.d.ts +51 -0
  10. package/dist/src/lib/fips-crypto/key-format.js +233 -0
  11. package/dist/src/lib/fips-crypto/keys.d.ts +26 -0
  12. package/dist/src/lib/fips-crypto/keys.js +123 -0
  13. package/dist/src/lib/fips-crypto/primitives.d.ts +41 -0
  14. package/dist/src/lib/fips-crypto/primitives.js +105 -0
  15. package/dist/src/lib/fips-crypto/symmetric.d.ts +61 -0
  16. package/dist/src/lib/fips-crypto/symmetric.js +152 -0
  17. package/dist/src/lib/fips-crypto-service.d.ts +5 -0
  18. package/dist/src/lib/fips-crypto-service.js +44 -0
  19. package/dist/src/lib/utils.d.ts +8 -2
  20. package/dist/src/lib/utils.js +8 -9
  21. package/package.json +31 -5
  22. package/.prettierrc +0 -3
  23. package/.rush/temp/chunked-rush-logs/dsp-sdk._phase_build.chunks.jsonl +0 -12
  24. package/.rush/temp/chunked-rush-logs/dsp-sdk._phase_test.chunks.jsonl +0 -43
  25. package/.rush/temp/package-deps__phase_build.json +0 -68
  26. package/.rush/temp/shrinkwrap-deps.json +0 -1257
  27. package/CHANGELOG.json +0 -278
  28. package/buf.gen.yaml +0 -17
  29. package/buf.yaml +0 -4
  30. package/config/jest.config.json +0 -6
  31. package/config/rig.json +0 -8
  32. package/dist/tests/dsp-client.test.d.ts +0 -1
  33. package/dist/tests/dsp-client.test.js +0 -73
  34. package/dist/tests/dsp.test.d.ts +0 -1
  35. package/dist/tests/dsp.test.js +0 -92
  36. package/dist/tests/mocks/create-export-artifacts.d.ts +0 -2
  37. package/dist/tests/mocks/create-export-artifacts.js +0 -13
  38. package/dist/tests/mocks/tagging-pdp-tag.d.ts +0 -2
  39. package/dist/tests/mocks/tagging-pdp-tag.js +0 -11
  40. package/dist/tests/mocks/well-known-configuration.d.ts +0 -2
  41. package/dist/tests/mocks/well-known-configuration.js +0 -12
  42. package/dist/tests/setup-msw.d.ts +0 -9
  43. package/dist/tests/setup-msw.js +0 -30
  44. package/eslint.config.mjs +0 -28
  45. package/lib-commonjs/src/gen/buf/validate/validate_pb.js +0 -487
  46. package/lib-commonjs/src/gen/config/v1/config_pb.js +0 -142
  47. package/lib-commonjs/src/gen/config/v1/kas_config_pb.js +0 -72
  48. package/lib-commonjs/src/gen/config/v1/meta_pb.js +0 -36
  49. package/lib-commonjs/src/gen/config/v1/outlook_config_pb.js +0 -67
  50. package/lib-commonjs/src/gen/config/v1/secureviewer_config_pb.js +0 -67
  51. package/lib-commonjs/src/gen/config/v1/tagging_pb.js +0 -246
  52. package/lib-commonjs/src/gen/google/api/annotations_pb.js +0 -33
  53. package/lib-commonjs/src/gen/google/api/http_pb.js +0 -44
  54. package/lib-commonjs/src/gen/policyimportexport/v1/policy_import_export_pb.js +0 -93
  55. package/lib-commonjs/src/gen/shared/v1/shared_pb.js +0 -95
  56. package/lib-commonjs/src/gen/tagging/pdp/v2/tagging_pb.js +0 -277
  57. package/lib-commonjs/src/gen/version/v1/version_pb.js +0 -40
  58. package/lib-commonjs/src/gen/virtru/common/common_pb.js +0 -76
  59. package/lib-commonjs/src/gen/virtru/policy/certificates/v1/certificates_pb.js +0 -77
  60. package/lib-commonjs/src/gen/virtru/policy/objects_pb.js +0 -143
  61. package/lib-commonjs/src/index.js +0 -48
  62. package/lib-commonjs/src/lib/client.js +0 -66
  63. package/lib-commonjs/src/lib/consts.js +0 -10
  64. package/lib-commonjs/src/lib/dsp.js +0 -49
  65. package/lib-commonjs/src/lib/utils.js +0 -402
  66. package/lib-commonjs/tests/dsp-client.test.js +0 -75
  67. package/lib-commonjs/tests/dsp.test.js +0 -94
  68. package/lib-commonjs/tests/mocks/create-export-artifacts.js +0 -17
  69. package/lib-commonjs/tests/mocks/tagging-pdp-tag.js +0 -15
  70. package/lib-commonjs/tests/mocks/well-known-configuration.js +0 -16
  71. package/lib-commonjs/tests/setup-msw.js +0 -33
  72. package/src/gen/buf/validate/validate_pb.ts +0 -4879
  73. package/src/gen/config/formatters/testdata/v1/test_pb.ts +0 -287
  74. package/src/gen/config/v1/config_connect.ts +0 -111
  75. package/src/gen/config/v1/config_pb.ts +0 -439
  76. package/src/gen/config/v1/kas_config_pb.ts +0 -183
  77. package/src/gen/config/v1/meta_pb.ts +0 -72
  78. package/src/gen/config/v1/outlook_config_pb.ts +0 -242
  79. package/src/gen/config/v1/secureviewer_config_pb.ts +0 -161
  80. package/src/gen/config/v1/tagging_pb.ts +0 -456
  81. package/src/gen/google/api/annotations_pb.ts +0 -43
  82. package/src/gen/google/api/http_pb.ts +0 -486
  83. package/src/gen/helloworld/v1/helloworld_connect.ts +0 -49
  84. package/src/gen/helloworld/v1/helloworld_pb.ts +0 -104
  85. package/src/gen/kas/nanotdf/v1/nanotdf_rewrap_connect.ts +0 -39
  86. package/src/gen/kas/nanotdf/v1/nanotdf_rewrap_pb.ts +0 -207
  87. package/src/gen/policyimportexport/v1/policy_import_export_connect.ts +0 -56
  88. package/src/gen/policyimportexport/v1/policy_import_export_pb.ts +0 -332
  89. package/src/gen/shared/v1/shared_connect.ts +0 -61
  90. package/src/gen/shared/v1/shared_pb.ts +0 -240
  91. package/src/gen/shared/v2/shared_connect.ts +0 -39
  92. package/src/gen/shared/v2/shared_pb.ts +0 -122
  93. package/src/gen/tagging/pdp/v2/externalprocessors/processor_connect.ts +0 -156
  94. package/src/gen/tagging/pdp/v2/externalprocessors/processor_pb.ts +0 -709
  95. package/src/gen/tagging/pdp/v2/stanag/stanag_pb.ts +0 -953
  96. package/src/gen/tagging/pdp/v2/tagging_connect.ts +0 -73
  97. package/src/gen/tagging/pdp/v2/tagging_pb.ts +0 -1064
  98. package/src/gen/version/v1/version_connect.ts +0 -31
  99. package/src/gen/version/v1/version_pb.ts +0 -143
  100. package/src/gen/virtru/common/common_pb.ts +0 -201
  101. package/src/gen/virtru/policy/certificates/v1/certificates_connect.ts +0 -44
  102. package/src/gen/virtru/policy/certificates/v1/certificates_pb.ts +0 -305
  103. package/src/gen/virtru/policy/objects_pb.ts +0 -253
  104. package/src/gen/web-admin/v1/config_connect.ts +0 -52
  105. package/src/gen/web-admin/v1/config_pb.ts +0 -173
  106. package/src/index.ts +0 -62
  107. package/src/lib/client.ts +0 -90
  108. package/src/lib/consts.ts +0 -8
  109. package/src/lib/dsp.ts +0 -65
  110. package/src/lib/utils.test.ts +0 -412
  111. package/src/lib/utils.ts +0 -524
  112. package/src/vite-env.d.ts +0 -7
  113. package/temp/build/lint/_eslint-5eVG3S6w.json +0 -30
  114. package/temp/test/jest/haste-map-b055a9550e6d9f9b43d8ad29b1607278-49d19aee56a0732eca9c014a51272338-8710993d07b75a801b0956e67ffc46fa +0 -0
  115. package/tests/dsp-client.test.ts +0 -95
  116. package/tests/dsp.test.ts +0 -119
  117. package/tests/mocks/create-export-artifacts.ts +0 -16
  118. package/tests/mocks/tagging-pdp-tag.ts +0 -13
  119. package/tests/mocks/well-known-configuration.ts +0 -15
  120. package/tests/setup-msw.ts +0 -35
  121. package/tsconfig.json +0 -32
  122. package/update-protos.sh +0 -63
  123. package/vitest.config.ts +0 -32
@@ -1,709 +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 tagging/pdp/v2/externalprocessors/processor.proto (package tagging.pdp.externalprocessors.v2, 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_google_api_annotations } from '../../../../google/api/annotations_pb';
24
- import type { Any, EmptySchema } from '@bufbuild/protobuf/wkt';
25
- import {
26
- file_google_protobuf_any,
27
- file_google_protobuf_empty,
28
- file_google_protobuf_struct,
29
- } from '@bufbuild/protobuf/wkt';
30
- import type { AssertionOptions, ProcessingEvent, Tag } from '../tagging_pb';
31
- import { file_tagging_pdp_v2_tagging } from '../tagging_pb';
32
- import type { JsonObject, Message } from '@bufbuild/protobuf';
33
-
34
- /**
35
- * Describes the file tagging/pdp/v2/externalprocessors/processor.proto.
36
- */
37
- export const file_tagging_pdp_v2_externalprocessors_processor: GenFile =
38
- /*@__PURE__*/
39
- fileDesc(
40
- 'CjF0YWdnaW5nL3BkcC92Mi9leHRlcm5hbHByb2Nlc3NvcnMvcHJvY2Vzc29yLnByb3RvEiF0YWdnaW5nLnBkcC5leHRlcm5hbHByb2Nlc3NvcnMudjIiZwoTSGVhbHRoQ2hlY2tSZXNwb25zZRI/CgZzdGF0dXMYASABKA4yLy50YWdnaW5nLnBkcC5leHRlcm5hbHByb2Nlc3NvcnMudjIuSGVhbHRoU3RhdHVzEg8KB21lc3NhZ2UYAiABKAkiqwEKHUV4dGVybmFsRXh0cmFjdENvbnRlbnRSZXF1ZXN0EkQKDGNvbnRlbnRfaXRlbRgBIAEoCzIuLnRhZ2dpbmcucGRwLmV4dGVybmFscHJvY2Vzc29ycy52Mi5Db250ZW50SXRlbRJECgxmbG93X3Nlc3Npb24YAiABKAsyLi50YWdnaW5nLnBkcC5leHRlcm5hbHByb2Nlc3NvcnMudjIuRmxvd1Nlc3Npb24iwAEKHkV4dGVybmFsRXh0cmFjdENvbnRlbnRSZXNwb25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BkcC5leHRlcm5hbHByb2Nlc3NvcnMudjIuRXh0ZXJuYWxSb2xsdXBUYWdzUmVzcG9uc2UiIILT5JMCGjoBKiIVL3YxL3RhZy1yb2xsdXAvcm9sbHVwEnwKC0hlYWx0aENoZWNrEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GjYudGFnZ2luZy5wZHAuZXh0ZXJuYWxwcm9jZXNzb3JzLnYyLkhlYWx0aENoZWNrUmVzcG9uc2UiHYLT5JMCFxIVL3YxL3RhZy1yb2xsdXAvaGVhbHRoQs8CCiVjb20udGFnZ2luZy5wZHAuZXh0ZXJuYWxwcm9jZXNzb3JzLnYyQg5Qcm9jZXNzb3JQcm90b1ABWm9naXRodWIuY29tL3ZpcnRydS1jb3JwL2RhdGEtc2VjdXJpdHktcGxhdGZvcm0vc2RrL3YyL2dlbi90YWdnaW5nL3BkcC92Mi9leHRlcm5hbHByb2Nlc3NvcnM7ZXh0ZXJuYWxwcm9jZXNzb3JzdjKiAgNUUEWqAiFUYWdnaW5nLlBkcC5FeHRlcm5hbHByb2Nlc3NvcnMuVjLKAiFUYWdnaW5nXFBkcFxFeHRlcm5hbHByb2Nlc3NvcnNcVjLiAi1UYWdnaW5nXFBkcFxFeHRlcm5hbHByb2Nlc3NvcnNcVjJcR1BCTWV0YWRhdGHqAiRUYWdnaW5nOjpQZHA6OkV4dGVybmFscHJvY2Vzc29yczo6VjJiBnByb3RvMw',
41
- [
42
- file_google_api_annotations,
43
- file_google_protobuf_struct,
44
- file_google_protobuf_any,
45
- file_google_protobuf_empty,
46
- file_tagging_pdp_v2_tagging,
47
- ]
48
- );
49
-
50
- /**
51
- * Health check response
52
- *
53
- * @generated from message tagging.pdp.externalprocessors.v2.HealthCheckResponse
54
- */
55
- export type HealthCheckResponse =
56
- Message<'tagging.pdp.externalprocessors.v2.HealthCheckResponse'> & {
57
- /**
58
- * Health status
59
- *
60
- * @generated from field: tagging.pdp.externalprocessors.v2.HealthStatus status = 1;
61
- */
62
- status: HealthStatus;
63
-
64
- /**
65
- * Additional health information
66
- *
67
- * @generated from field: string message = 2;
68
- */
69
- message: string;
70
- };
71
-
72
- /**
73
- * Describes the message tagging.pdp.externalprocessors.v2.HealthCheckResponse.
74
- * Use `create(HealthCheckResponseSchema)` to create a new message.
75
- */
76
- export const HealthCheckResponseSchema: GenMessage<HealthCheckResponse> =
77
- /*@__PURE__*/
78
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 0);
79
-
80
- /**
81
- * Request message for content extraction
82
- *
83
- * @generated from message tagging.pdp.externalprocessors.v2.ExternalExtractContentRequest
84
- */
85
- export type ExternalExtractContentRequest =
86
- Message<'tagging.pdp.externalprocessors.v2.ExternalExtractContentRequest'> & {
87
- /**
88
- * Content item to process
89
- *
90
- * @generated from field: tagging.pdp.externalprocessors.v2.ContentItem content_item = 1;
91
- */
92
- contentItem?: ContentItem;
93
-
94
- /**
95
- * contains info including registered content items, assertion options, etc.
96
- *
97
- * @generated from field: tagging.pdp.externalprocessors.v2.FlowSession flow_session = 2;
98
- */
99
- flowSession?: FlowSession;
100
- };
101
-
102
- /**
103
- * Describes the message tagging.pdp.externalprocessors.v2.ExternalExtractContentRequest.
104
- * Use `create(ExternalExtractContentRequestSchema)` to create a new message.
105
- */
106
- export const ExternalExtractContentRequestSchema: GenMessage<ExternalExtractContentRequest> =
107
- /*@__PURE__*/
108
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 1);
109
-
110
- /**
111
- * Response message containing extracted content
112
- *
113
- * @generated from message tagging.pdp.externalprocessors.v2.ExternalExtractContentResponse
114
- */
115
- export type ExternalExtractContentResponse =
116
- Message<'tagging.pdp.externalprocessors.v2.ExternalExtractContentResponse'> & {
117
- /**
118
- * Extracted content from the document
119
- *
120
- * @generated from field: repeated tagging.pdp.externalprocessors.v2.ContentItem content_items = 1;
121
- */
122
- contentItems: ContentItem[];
123
-
124
- /**
125
- * Indicates if the content was processed or skipped
126
- *
127
- * @generated from field: bool processed = 2;
128
- */
129
- processed: boolean;
130
-
131
- /**
132
- * Flow session after processing
133
- *
134
- * @generated from field: tagging.pdp.externalprocessors.v2.FlowSession flow_session = 3;
135
- */
136
- flowSession?: FlowSession;
137
- };
138
-
139
- /**
140
- * Describes the message tagging.pdp.externalprocessors.v2.ExternalExtractContentResponse.
141
- * Use `create(ExternalExtractContentResponseSchema)` to create a new message.
142
- */
143
- export const ExternalExtractContentResponseSchema: GenMessage<ExternalExtractContentResponse> =
144
- /*@__PURE__*/
145
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 2);
146
-
147
- /**
148
- * Request message for tag extraction
149
- *
150
- * @generated from message tagging.pdp.externalprocessors.v2.ExternalExtractTagsRequest
151
- */
152
- export type ExternalExtractTagsRequest =
153
- Message<'tagging.pdp.externalprocessors.v2.ExternalExtractTagsRequest'> & {
154
- /**
155
- * Content item to process
156
- *
157
- * @generated from field: tagging.pdp.externalprocessors.v2.ContentItem content_item = 1;
158
- */
159
- contentItem?: ContentItem;
160
-
161
- /**
162
- * contains info including registered content items, assertion options, etc.
163
- *
164
- * @generated from field: tagging.pdp.externalprocessors.v2.FlowSession flow_session = 2;
165
- */
166
- flowSession?: FlowSession;
167
- };
168
-
169
- /**
170
- * Describes the message tagging.pdp.externalprocessors.v2.ExternalExtractTagsRequest.
171
- * Use `create(ExternalExtractTagsRequestSchema)` to create a new message.
172
- */
173
- export const ExternalExtractTagsRequestSchema: GenMessage<ExternalExtractTagsRequest> =
174
- /*@__PURE__*/
175
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 3);
176
-
177
- /**
178
- * Response message containing extracted tags
179
- *
180
- * @generated from message tagging.pdp.externalprocessors.v2.ExternalExtractTagsResponse
181
- */
182
- export type ExternalExtractTagsResponse =
183
- Message<'tagging.pdp.externalprocessors.v2.ExternalExtractTagsResponse'> & {
184
- /**
185
- * Extracted tags from the content
186
- *
187
- * @generated from field: repeated tagging.pdp.v2.Tag tags = 1;
188
- */
189
- tags: Tag[];
190
-
191
- /**
192
- * Flow session after processing
193
- *
194
- * @generated from field: tagging.pdp.externalprocessors.v2.FlowSession flow_session = 2;
195
- */
196
- flowSession?: FlowSession;
197
- };
198
-
199
- /**
200
- * Describes the message tagging.pdp.externalprocessors.v2.ExternalExtractTagsResponse.
201
- * Use `create(ExternalExtractTagsResponseSchema)` to create a new message.
202
- */
203
- export const ExternalExtractTagsResponseSchema: GenMessage<ExternalExtractTagsResponse> =
204
- /*@__PURE__*/
205
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 4);
206
-
207
- /**
208
- * Request message for tag processing
209
- *
210
- * @generated from message tagging.pdp.externalprocessors.v2.ExternalProcessTagsRequest
211
- */
212
- export type ExternalProcessTagsRequest =
213
- Message<'tagging.pdp.externalprocessors.v2.ExternalProcessTagsRequest'> & {
214
- /**
215
- * Tags to process
216
- *
217
- * @generated from field: repeated tagging.pdp.v2.Tag tags = 1;
218
- */
219
- tags: Tag[];
220
-
221
- /**
222
- * contains info including registered content items, assertion options, etc.
223
- *
224
- * @generated from field: tagging.pdp.externalprocessors.v2.FlowSession flow_session = 2;
225
- */
226
- flowSession?: FlowSession;
227
- };
228
-
229
- /**
230
- * Describes the message tagging.pdp.externalprocessors.v2.ExternalProcessTagsRequest.
231
- * Use `create(ExternalProcessTagsRequestSchema)` to create a new message.
232
- */
233
- export const ExternalProcessTagsRequestSchema: GenMessage<ExternalProcessTagsRequest> =
234
- /*@__PURE__*/
235
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 5);
236
-
237
- /**
238
- * Response message containing processed tags
239
- *
240
- * @generated from message tagging.pdp.externalprocessors.v2.ExternalProcessTagsResponse
241
- */
242
- export type ExternalProcessTagsResponse =
243
- Message<'tagging.pdp.externalprocessors.v2.ExternalProcessTagsResponse'> & {
244
- /**
245
- * Processed tags
246
- *
247
- * @generated from field: repeated tagging.pdp.v2.Tag tags = 1;
248
- */
249
- tags: Tag[];
250
-
251
- /**
252
- * Flow session after processing
253
- *
254
- * @generated from field: tagging.pdp.externalprocessors.v2.FlowSession flow_session = 2;
255
- */
256
- flowSession?: FlowSession;
257
- };
258
-
259
- /**
260
- * Describes the message tagging.pdp.externalprocessors.v2.ExternalProcessTagsResponse.
261
- * Use `create(ExternalProcessTagsResponseSchema)` to create a new message.
262
- */
263
- export const ExternalProcessTagsResponseSchema: GenMessage<ExternalProcessTagsResponse> =
264
- /*@__PURE__*/
265
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 6);
266
-
267
- /**
268
- * Request message for tag rollup
269
- *
270
- * @generated from message tagging.pdp.externalprocessors.v2.ExternalRollupTagsRequest
271
- */
272
- export type ExternalRollupTagsRequest =
273
- Message<'tagging.pdp.externalprocessors.v2.ExternalRollupTagsRequest'> & {
274
- /**
275
- * Tags to rollup
276
- *
277
- * @generated from field: repeated tagging.pdp.v2.Tag tags = 1;
278
- */
279
- tags: Tag[];
280
-
281
- /**
282
- * contains info including registered content items, assertion options, etc.
283
- *
284
- * @generated from field: tagging.pdp.externalprocessors.v2.FlowSession flow_session = 2;
285
- */
286
- flowSession?: FlowSession;
287
- };
288
-
289
- /**
290
- * Describes the message tagging.pdp.externalprocessors.v2.ExternalRollupTagsRequest.
291
- * Use `create(ExternalRollupTagsRequestSchema)` to create a new message.
292
- */
293
- export const ExternalRollupTagsRequestSchema: GenMessage<ExternalRollupTagsRequest> =
294
- /*@__PURE__*/
295
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 7);
296
-
297
- /**
298
- * Response message containing rolled up tags
299
- *
300
- * @generated from message tagging.pdp.externalprocessors.v2.ExternalRollupTagsResponse
301
- */
302
- export type ExternalRollupTagsResponse =
303
- Message<'tagging.pdp.externalprocessors.v2.ExternalRollupTagsResponse'> & {
304
- /**
305
- * Rolled up tags
306
- *
307
- * @generated from field: repeated tagging.pdp.v2.Tag tags = 1;
308
- */
309
- tags: Tag[];
310
-
311
- /**
312
- * Flow session after processing
313
- *
314
- * @generated from field: tagging.pdp.externalprocessors.v2.FlowSession flow_session = 2;
315
- */
316
- flowSession?: FlowSession;
317
- };
318
-
319
- /**
320
- * Describes the message tagging.pdp.externalprocessors.v2.ExternalRollupTagsResponse.
321
- * Use `create(ExternalRollupTagsResponseSchema)` to create a new message.
322
- */
323
- export const ExternalRollupTagsResponseSchema: GenMessage<ExternalRollupTagsResponse> =
324
- /*@__PURE__*/
325
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 8);
326
-
327
- /**
328
- * @generated from message tagging.pdp.externalprocessors.v2.FlowSession
329
- */
330
- export type FlowSession =
331
- Message<'tagging.pdp.externalprocessors.v2.FlowSession'> & {
332
- /**
333
- * List of registered content items in the flow
334
- *
335
- * @generated from field: repeated tagging.pdp.externalprocessors.v2.ContentItem registered_content_items = 1;
336
- */
337
- registeredContentItems: ContentItem[];
338
-
339
- /**
340
- * List of processing events that occurred during the flow
341
- *
342
- * @generated from field: repeated tagging.pdp.v2.ProcessingEvent processing_events = 2;
343
- */
344
- processingEvents: ProcessingEvent[];
345
-
346
- /**
347
- * Data associated with the flow, keyed by string
348
- *
349
- * @generated from field: repeated tagging.pdp.externalprocessors.v2.DataEntry data = 3;
350
- */
351
- data: DataEntry[];
352
-
353
- /**
354
- * Assertion options applied during the flow
355
- *
356
- * @generated from field: repeated tagging.pdp.v2.AssertionOptions assertion_options = 4;
357
- */
358
- assertionOptions: AssertionOptions[];
359
- };
360
-
361
- /**
362
- * Describes the message tagging.pdp.externalprocessors.v2.FlowSession.
363
- * Use `create(FlowSessionSchema)` to create a new message.
364
- */
365
- export const FlowSessionSchema: GenMessage<FlowSession> =
366
- /*@__PURE__*/
367
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 9);
368
-
369
- /**
370
- * @generated from message tagging.pdp.externalprocessors.v2.DataEntry
371
- */
372
- export type DataEntry =
373
- Message<'tagging.pdp.externalprocessors.v2.DataEntry'> & {
374
- /**
375
- * @generated from field: string key = 1;
376
- */
377
- key: string;
378
-
379
- /**
380
- * @generated from field: repeated tagging.pdp.externalprocessors.v2.DataEntry.DataValue values = 2;
381
- */
382
- values: DataEntry_DataValue[];
383
- };
384
-
385
- /**
386
- * Describes the message tagging.pdp.externalprocessors.v2.DataEntry.
387
- * Use `create(DataEntrySchema)` to create a new message.
388
- */
389
- export const DataEntrySchema: GenMessage<DataEntry> =
390
- /*@__PURE__*/
391
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 10);
392
-
393
- /**
394
- * @generated from message tagging.pdp.externalprocessors.v2.DataEntry.DataValue
395
- */
396
- export type DataEntry_DataValue =
397
- Message<'tagging.pdp.externalprocessors.v2.DataEntry.DataValue'> & {
398
- /**
399
- * @generated from oneof tagging.pdp.externalprocessors.v2.DataEntry.DataValue.kind
400
- */
401
- kind:
402
- | {
403
- /**
404
- * @generated from field: string string_value = 1;
405
- */
406
- value: string;
407
- case: 'stringValue';
408
- }
409
- | {
410
- /**
411
- * @generated from field: int64 int_value = 2;
412
- */
413
- value: bigint;
414
- case: 'intValue';
415
- }
416
- | {
417
- /**
418
- * @generated from field: bool bool_value = 3;
419
- */
420
- value: boolean;
421
- case: 'boolValue';
422
- }
423
- | {
424
- /**
425
- * @generated from field: bytes bytes_value = 4;
426
- */
427
- value: Uint8Array;
428
- case: 'bytesValue';
429
- }
430
- | {
431
- /**
432
- * @generated from field: google.protobuf.Struct struct_value = 5;
433
- */
434
- value: JsonObject;
435
- case: 'structValue';
436
- }
437
- | {
438
- /**
439
- * Fallback for other types
440
- *
441
- * @generated from field: google.protobuf.Any any_value = 6;
442
- */
443
- value: Any;
444
- case: 'anyValue';
445
- }
446
- | { case: undefined; value?: undefined };
447
- };
448
-
449
- /**
450
- * Describes the message tagging.pdp.externalprocessors.v2.DataEntry.DataValue.
451
- * Use `create(DataEntry_DataValueSchema)` to create a new message.
452
- */
453
- export const DataEntry_DataValueSchema: GenMessage<DataEntry_DataValue> =
454
- /*@__PURE__*/
455
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 10, 0);
456
-
457
- /**
458
- * Represents an item of content to be processed.
459
- *
460
- * @generated from message tagging.pdp.externalprocessors.v2.ContentItem
461
- */
462
- export type ContentItem =
463
- Message<'tagging.pdp.externalprocessors.v2.ContentItem'> & {
464
- /**
465
- * Raw content bytes
466
- *
467
- * @generated from field: bytes bytes = 1;
468
- */
469
- bytes: Uint8Array;
470
-
471
- /**
472
- * URI or location of the content
473
- *
474
- * @generated from field: string uri = 2;
475
- */
476
- uri: string;
477
-
478
- /**
479
- * Type of the content item (e.g., file, document)
480
- *
481
- * @generated from field: string item_type = 3;
482
- */
483
- itemType: string;
484
-
485
- /**
486
- * Type of the parent item, if applicable
487
- *
488
- * @generated from field: string parent_type = 4;
489
- */
490
- parentType: string;
491
-
492
- /**
493
- * Identifier for the source item
494
- *
495
- * @generated from field: string source_item_id = 5;
496
- */
497
- sourceItemId: string;
498
-
499
- /**
500
- * Human-readable name of the content item
501
- *
502
- * @generated from field: string name = 6;
503
- */
504
- name: string;
505
-
506
- /**
507
- * Extracted or associated text content
508
- *
509
- * @generated from field: string text = 7;
510
- */
511
- text: string;
512
-
513
- /**
514
- * Unique identifier for this content item
515
- *
516
- * @generated from field: string id = 8;
517
- */
518
- id: string;
519
-
520
- /**
521
- * Additional metadata as a structured object
522
- *
523
- * @generated from field: google.protobuf.Struct metadata = 9;
524
- */
525
- metadata?: JsonObject;
526
-
527
- /**
528
- * Indicates if the content is encrypted
529
- *
530
- * @generated from field: bool is_encrypted = 10;
531
- */
532
- isEncrypted: boolean;
533
-
534
- /**
535
- * List of errors encountered during extraction
536
- *
537
- * @generated from field: repeated string extraction_errors = 11;
538
- */
539
- extractionErrors: string[];
540
-
541
- /**
542
- * Whether to generate encrypted tokens for this item
543
- *
544
- * @generated from field: bool generate_encrypted_tokens = 12;
545
- */
546
- generateEncryptedTokens: boolean;
547
- };
548
-
549
- /**
550
- * Describes the message tagging.pdp.externalprocessors.v2.ContentItem.
551
- * Use `create(ContentItemSchema)` to create a new message.
552
- */
553
- export const ContentItemSchema: GenMessage<ContentItem> =
554
- /*@__PURE__*/
555
- messageDesc(file_tagging_pdp_v2_externalprocessors_processor, 11);
556
-
557
- /**
558
- * Health status enum
559
- *
560
- * @generated from enum tagging.pdp.externalprocessors.v2.HealthStatus
561
- */
562
- export enum HealthStatus {
563
- /**
564
- * @generated from enum value: HEALTH_STATUS_UNSPECIFIED = 0;
565
- */
566
- UNSPECIFIED = 0,
567
-
568
- /**
569
- * @generated from enum value: HEALTH_STATUS_SERVING = 1;
570
- */
571
- SERVING = 1,
572
-
573
- /**
574
- * @generated from enum value: HEALTH_STATUS_NOT_SERVING = 2;
575
- */
576
- NOT_SERVING = 2,
577
-
578
- /**
579
- * @generated from enum value: HEALTH_STATUS_SERVICE_UNKNOWN = 3;
580
- */
581
- SERVICE_UNKNOWN = 3,
582
- }
583
-
584
- /**
585
- * Describes the enum tagging.pdp.externalprocessors.v2.HealthStatus.
586
- */
587
- export const HealthStatusSchema: GenEnum<HealthStatus> =
588
- /*@__PURE__*/
589
- enumDesc(file_tagging_pdp_v2_externalprocessors_processor, 0);
590
-
591
- /**
592
- * Service definition for gRPC-based tag extraction
593
- *
594
- * @generated from service tagging.pdp.externalprocessors.v2.ContentExtractionProcessorService
595
- */
596
- export const ContentExtractionProcessorService: GenService<{
597
- /**
598
- * Extract content from a document using external gRPC service
599
- *
600
- * @generated from rpc tagging.pdp.externalprocessors.v2.ContentExtractionProcessorService.ExtractContent
601
- */
602
- extractContent: {
603
- methodKind: 'unary';
604
- input: typeof ExternalExtractContentRequestSchema;
605
- output: typeof ExternalExtractContentResponseSchema;
606
- };
607
- /**
608
- * Health check for the extraction service
609
- *
610
- * @generated from rpc tagging.pdp.externalprocessors.v2.ContentExtractionProcessorService.HealthCheck
611
- */
612
- healthCheck: {
613
- methodKind: 'unary';
614
- input: typeof EmptySchema;
615
- output: typeof HealthCheckResponseSchema;
616
- };
617
- }> =
618
- /*@__PURE__*/
619
- serviceDesc(file_tagging_pdp_v2_externalprocessors_processor, 0);
620
-
621
- /**
622
- * Service definition for gRPC-based tag extraction
623
- *
624
- * @generated from service tagging.pdp.externalprocessors.v2.TagExtractionProcessorService
625
- */
626
- export const TagExtractionProcessorService: GenService<{
627
- /**
628
- * Extract tags from content using external gRPC service
629
- *
630
- * @generated from rpc tagging.pdp.externalprocessors.v2.TagExtractionProcessorService.ExtractTags
631
- */
632
- extractTags: {
633
- methodKind: 'unary';
634
- input: typeof ExternalExtractTagsRequestSchema;
635
- output: typeof ExternalExtractTagsResponseSchema;
636
- };
637
- /**
638
- * Health check for the extraction service
639
- *
640
- * @generated from rpc tagging.pdp.externalprocessors.v2.TagExtractionProcessorService.HealthCheck
641
- */
642
- healthCheck: {
643
- methodKind: 'unary';
644
- input: typeof EmptySchema;
645
- output: typeof HealthCheckResponseSchema;
646
- };
647
- }> =
648
- /*@__PURE__*/
649
- serviceDesc(file_tagging_pdp_v2_externalprocessors_processor, 1);
650
-
651
- /**
652
- * Service definition for gRPC-based tag processing
653
- *
654
- * @generated from service tagging.pdp.externalprocessors.v2.TagProcessorService
655
- */
656
- export const TagProcessorService: GenService<{
657
- /**
658
- * Process tags using external gRPC service
659
- *
660
- * @generated from rpc tagging.pdp.externalprocessors.v2.TagProcessorService.ProcessTags
661
- */
662
- processTags: {
663
- methodKind: 'unary';
664
- input: typeof ExternalProcessTagsRequestSchema;
665
- output: typeof ExternalProcessTagsResponseSchema;
666
- };
667
- /**
668
- * Health check for the processing service
669
- *
670
- * @generated from rpc tagging.pdp.externalprocessors.v2.TagProcessorService.HealthCheck
671
- */
672
- healthCheck: {
673
- methodKind: 'unary';
674
- input: typeof EmptySchema;
675
- output: typeof HealthCheckResponseSchema;
676
- };
677
- }> =
678
- /*@__PURE__*/
679
- serviceDesc(file_tagging_pdp_v2_externalprocessors_processor, 2);
680
-
681
- /**
682
- * Service definition for gRPC-based tag rollup
683
- *
684
- * @generated from service tagging.pdp.externalprocessors.v2.TagRollupProcessorService
685
- */
686
- export const TagRollupProcessorService: GenService<{
687
- /**
688
- * Perform tag rollup using external gRPC service
689
- *
690
- * @generated from rpc tagging.pdp.externalprocessors.v2.TagRollupProcessorService.RollupTags
691
- */
692
- rollupTags: {
693
- methodKind: 'unary';
694
- input: typeof ExternalRollupTagsRequestSchema;
695
- output: typeof ExternalRollupTagsResponseSchema;
696
- };
697
- /**
698
- * Health check for the processing service
699
- *
700
- * @generated from rpc tagging.pdp.externalprocessors.v2.TagRollupProcessorService.HealthCheck
701
- */
702
- healthCheck: {
703
- methodKind: 'unary';
704
- input: typeof EmptySchema;
705
- output: typeof HealthCheckResponseSchema;
706
- };
707
- }> =
708
- /*@__PURE__*/
709
- serviceDesc(file_tagging_pdp_v2_externalprocessors_processor, 3);