@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,207 +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 kas/nanotdf/v1/nanotdf_rewrap.proto (package kas.nanotdf.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 type { Message } from '@bufbuild/protobuf';
22
-
23
- /**
24
- * Describes the file kas/nanotdf/v1/nanotdf_rewrap.proto.
25
- */
26
- export const file_kas_nanotdf_v1_nanotdf_rewrap: GenFile =
27
- /*@__PURE__*/
28
- fileDesc(
29
- 'CiNrYXMvbmFub3RkZi92MS9uYW5vdGRmX3Jld3JhcC5wcm90bxIOa2FzLm5hbm90ZGYudjEiOwoNUmV3cmFwUmVxdWVzdBIcChRzaWduZWRfcmVxdWVzdF90b2tlbhgBIAEoCUoECAIQA1IGYmVhcmVyIlsKDlJld3JhcFJlc3BvbnNlEhoKEnNlc3Npb25fcHVibGljX2tleRgBIAEoCRItCgdyZXN1bHRzGAIgAygLMhwua2FzLm5hbm90ZGYudjEuUmV3cmFwUmVzdWx0ImAKDFJld3JhcFJlc3VsdBIKCgJpZBgBIAEoCRIOCgZzdGF0dXMYAiABKAkSGQoPa2FzX3dyYXBwZWRfa2V5GAMgASgMSAASDwoFZXJyb3IYBCABKAlIAEIICgZyZXN1bHQiZwoYTmFub1RERlJld3JhcFJlcXVlc3RCb2R5EhkKEWNsaWVudF9wdWJsaWNfa2V5GAEgASgJEjAKBWl0ZW1zGAIgAygLMiEua2FzLm5hbm90ZGYudjEuTmFub1RERlJld3JhcEl0ZW0iLwoRTmFub1RERlJld3JhcEl0ZW0SCgoCaWQYASABKAkSDgoGaGVhZGVyGAIgASgMMmEKFE5hbm9UREZSZXdyYXBTZXJ2aWNlEkkKBlJld3JhcBIdLmthcy5uYW5vdGRmLnYxLlJld3JhcFJlcXVlc3QaHi5rYXMubmFub3RkZi52MS5SZXdyYXBSZXNwb25zZSIAQtUBChJjb20ua2FzLm5hbm90ZGYudjFCEk5hbm90ZGZSZXdyYXBQcm90b1ABWlFnaXRodWIuY29tL3ZpcnRydS1jb3JwL2RhdGEtc2VjdXJpdHktcGxhdGZvcm0vc2RrL3YyL2dlbi9rYXMvbmFub3RkZi92MTtuYW5vdGRmdjGiAgNLTliqAg5LYXMuTmFub3RkZi5WMcoCDkthc1xOYW5vdGRmXFYx4gIaS2FzXE5hbm90ZGZcVjFcR1BCTWV0YWRhdGHqAhBLYXM6Ok5hbm90ZGY6OlYxYgZwcm90bzM'
30
- );
31
-
32
- /**
33
- * @generated from message kas.nanotdf.v1.RewrapRequest
34
- */
35
- export type RewrapRequest = Message<'kas.nanotdf.v1.RewrapRequest'> & {
36
- /**
37
- * Signed Request Token (SRT) that carries the requestBody claim as protojson.
38
- *
39
- * @generated from field: string signed_request_token = 1;
40
- */
41
- signedRequestToken: string;
42
- };
43
-
44
- /**
45
- * Describes the message kas.nanotdf.v1.RewrapRequest.
46
- * Use `create(RewrapRequestSchema)` to create a new message.
47
- */
48
- export const RewrapRequestSchema: GenMessage<RewrapRequest> =
49
- /*@__PURE__*/
50
- messageDesc(file_kas_nanotdf_v1_nanotdf_rewrap, 0);
51
-
52
- /**
53
- * @generated from message kas.nanotdf.v1.RewrapResponse
54
- */
55
- export type RewrapResponse = Message<'kas.nanotdf.v1.RewrapResponse'> & {
56
- /**
57
- * KAS session public key used by the client to derive the shared secret.
58
- *
59
- * @generated from field: string session_public_key = 1;
60
- */
61
- sessionPublicKey: string;
62
-
63
- /**
64
- * Per-item rewrap outcomes aligned to the request items.
65
- *
66
- * @generated from field: repeated kas.nanotdf.v1.RewrapResult results = 2;
67
- */
68
- results: RewrapResult[];
69
- };
70
-
71
- /**
72
- * Describes the message kas.nanotdf.v1.RewrapResponse.
73
- * Use `create(RewrapResponseSchema)` to create a new message.
74
- */
75
- export const RewrapResponseSchema: GenMessage<RewrapResponse> =
76
- /*@__PURE__*/
77
- messageDesc(file_kas_nanotdf_v1_nanotdf_rewrap, 1);
78
-
79
- /**
80
- * @generated from message kas.nanotdf.v1.RewrapResult
81
- */
82
- export type RewrapResult = Message<'kas.nanotdf.v1.RewrapResult'> & {
83
- /**
84
- * Client-provided correlation id (or server-generated fallback).
85
- *
86
- * @generated from field: string id = 1;
87
- */
88
- id: string;
89
-
90
- /**
91
- * Status is one of: "permit", "fail".
92
- *
93
- * @generated from field: string status = 2;
94
- */
95
- status: string;
96
-
97
- /**
98
- * @generated from oneof kas.nanotdf.v1.RewrapResult.result
99
- */
100
- result:
101
- | {
102
- /**
103
- * KAS-wrapped symmetric key for the corresponding NanoTDF item.
104
- *
105
- * @generated from field: bytes kas_wrapped_key = 3;
106
- */
107
- value: Uint8Array;
108
- case: 'kasWrappedKey';
109
- }
110
- | {
111
- /**
112
- * Error message when status is "fail".
113
- *
114
- * @generated from field: string error = 4;
115
- */
116
- value: string;
117
- case: 'error';
118
- }
119
- | { case: undefined; value?: undefined };
120
- };
121
-
122
- /**
123
- * Describes the message kas.nanotdf.v1.RewrapResult.
124
- * Use `create(RewrapResultSchema)` to create a new message.
125
- */
126
- export const RewrapResultSchema: GenMessage<RewrapResult> =
127
- /*@__PURE__*/
128
- messageDesc(file_kas_nanotdf_v1_nanotdf_rewrap, 2);
129
-
130
- /**
131
- * NanoTDFRewrapRequestBody is the canonical requestBody schema for NanoTDF rewrap.
132
- *
133
- * @generated from message kas.nanotdf.v1.NanoTDFRewrapRequestBody
134
- */
135
- export type NanoTDFRewrapRequestBody =
136
- Message<'kas.nanotdf.v1.NanoTDFRewrapRequestBody'> & {
137
- /**
138
- * Client public key used for key agreement (e.g., X25519).
139
- *
140
- * @generated from field: string client_public_key = 1;
141
- */
142
- clientPublicKey: string;
143
-
144
- /**
145
- * Items to be rewrapped by the KAS.
146
- *
147
- * @generated from field: repeated kas.nanotdf.v1.NanoTDFRewrapItem items = 2;
148
- */
149
- items: NanoTDFRewrapItem[];
150
- };
151
-
152
- /**
153
- * Describes the message kas.nanotdf.v1.NanoTDFRewrapRequestBody.
154
- * Use `create(NanoTDFRewrapRequestBodySchema)` to create a new message.
155
- */
156
- export const NanoTDFRewrapRequestBodySchema: GenMessage<NanoTDFRewrapRequestBody> =
157
- /*@__PURE__*/
158
- messageDesc(file_kas_nanotdf_v1_nanotdf_rewrap, 3);
159
-
160
- /**
161
- * @generated from message kas.nanotdf.v1.NanoTDFRewrapItem
162
- */
163
- export type NanoTDFRewrapItem = Message<'kas.nanotdf.v1.NanoTDFRewrapItem'> & {
164
- /**
165
- * Client-provided correlation id (optional).
166
- *
167
- * @generated from field: string id = 1;
168
- */
169
- id: string;
170
-
171
- /**
172
- * Raw NanoTDF header bytes (Magic+Version..Ephemeral Key).
173
- *
174
- * @generated from field: bytes header = 2;
175
- */
176
- header: Uint8Array;
177
- };
178
-
179
- /**
180
- * Describes the message kas.nanotdf.v1.NanoTDFRewrapItem.
181
- * Use `create(NanoTDFRewrapItemSchema)` to create a new message.
182
- */
183
- export const NanoTDFRewrapItemSchema: GenMessage<NanoTDFRewrapItem> =
184
- /*@__PURE__*/
185
- messageDesc(file_kas_nanotdf_v1_nanotdf_rewrap, 4);
186
-
187
- /**
188
- * NanoTDF-specific rewrap surface area.
189
- *
190
- * The request contains a Signed Request Token (SRT). The SRT `requestBody` claim
191
- * must contain a JSON-encoded NanoTDFRewrapRequestBody (protojson).
192
- *
193
- * @generated from service kas.nanotdf.v1.NanoTDFRewrapService
194
- */
195
- export const NanoTDFRewrapService: GenService<{
196
- /**
197
- * Rewrap accepts a signed request token and returns KAS-wrapped keys for
198
- * each requested NanoTDF header.
199
- *
200
- * @generated from rpc kas.nanotdf.v1.NanoTDFRewrapService.Rewrap
201
- */
202
- rewrap: {
203
- methodKind: 'unary';
204
- input: typeof RewrapRequestSchema;
205
- output: typeof RewrapResponseSchema;
206
- };
207
- }> = /*@__PURE__*/ serviceDesc(file_kas_nanotdf_v1_nanotdf_rewrap, 0);
@@ -1,56 +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 policyimportexport/v1/policy_import_export.proto (package policyimportexport.v1, syntax proto3)
9
- /* eslint-disable */
10
- // @ts-nocheck
11
-
12
- import {
13
- CreateExportArtifactsRequest,
14
- CreateExportArtifactsResponse,
15
- CreateImportArtifactsRequest,
16
- CreateImportArtifactsResponse,
17
- CreateTrustedArtifactProviderRequest,
18
- CreateTrustedArtifactProviderResponse,
19
- } from './policy_import_export_pb.js';
20
- import { MethodKind } from '@bufbuild/protobuf';
21
-
22
- /**
23
- * @generated from service policyimportexport.v1.PolicyArtifactService
24
- */
25
- export const PolicyArtifactService = {
26
- typeName: 'policyimportexport.v1.PolicyArtifactService',
27
- methods: {
28
- /**
29
- * @generated from rpc policyimportexport.v1.PolicyArtifactService.CreateTrustedArtifactProvider
30
- */
31
- createTrustedArtifactProvider: {
32
- name: 'CreateTrustedArtifactProvider',
33
- I: CreateTrustedArtifactProviderRequest,
34
- O: CreateTrustedArtifactProviderResponse,
35
- kind: MethodKind.Unary,
36
- },
37
- /**
38
- * @generated from rpc policyimportexport.v1.PolicyArtifactService.CreateImportArtifacts
39
- */
40
- createImportArtifacts: {
41
- name: 'CreateImportArtifacts',
42
- I: CreateImportArtifactsRequest,
43
- O: CreateImportArtifactsResponse,
44
- kind: MethodKind.Unary,
45
- },
46
- /**
47
- * @generated from rpc policyimportexport.v1.PolicyArtifactService.CreateExportArtifacts
48
- */
49
- createExportArtifacts: {
50
- name: 'CreateExportArtifacts',
51
- I: CreateExportArtifactsRequest,
52
- O: CreateExportArtifactsResponse,
53
- kind: MethodKind.Unary,
54
- },
55
- },
56
- } as const;
@@ -1,332 +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 policyimportexport/v1/policy_import_export.proto (package policyimportexport.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_google_api_annotations } from '../../google/api/annotations_pb';
22
- import { file_google_protobuf_wrappers } from '@bufbuild/protobuf/wkt';
23
- import type { Message } from '@bufbuild/protobuf';
24
-
25
- /**
26
- * Describes the file policyimportexport/v1/policy_import_export.proto.
27
- */
28
- export const file_policyimportexport_v1_policy_import_export: GenFile =
29
- /*@__PURE__*/
30
- fileDesc(
31
- 'CjBwb2xpY3lpbXBvcnRleHBvcnQvdjEvcG9saWN5X2ltcG9ydF9leHBvcnQucHJvdG8SFXBvbGljeWltcG9ydGV4cG9ydC52MSJLChdUcnVzdGVkQXJ0aWZhY3RQcm92aWRlchISCgpwdWJsaWNfa2V5GAEgASgMEhwKFHBlcm1pdHRlZF9uYW1lc3BhY2VzGAIgAygJInEKJENyZWF0ZVRydXN0ZWRBcnRpZmFjdFByb3ZpZGVyUmVxdWVzdBJJChFhcnRpZmFjdF9wcm92aWRlchgBIAEoCzIuLnBvbGljeWltcG9ydGV4cG9ydC52MS5UcnVzdGVkQXJ0aWZhY3RQcm92aWRlciInCiVDcmVhdGVUcnVzdGVkQXJ0aWZhY3RQcm92aWRlclJlc3BvbnNlIqoCChxDcmVhdGVJbXBvcnRBcnRpZmFjdHNSZXF1ZXN0EkoKEHBvbGljeV91bmJ1bmRsZWQYASABKAsyLi5wb2xpY3lpbXBvcnRleHBvcnQudjEuUG9saWN5QXJ0aWZhY3RVbmJ1bmRsZWRIABJmChFwb2xpY3lfb2NpX2J1bmRsZRgCIAEoCzJJLnBvbGljeWltcG9ydGV4cG9ydC52MS5DcmVhdGVJbXBvcnRBcnRpZmFjdHNSZXF1ZXN0LlBvbGljeUFydGlmYWN0QnVuZGxlZEgAGkYKFVBvbGljeUFydGlmYWN0QnVuZGxlZBIQCghvY2lfYmxvYhgBIAEoDBIbChNub192ZXJpZnlfc2lnbmF0dXJlGAIgASgIQg4KDGFydGlmYWN0X3NyYyIfCh1DcmVhdGVJbXBvcnRBcnRpZmFjdHNSZXNwb25zZSIpChdQb2xpY3lBcnRpZmFjdFVuYnVuZGxlZBIOCgZwb2xpY3kYASABKAwiNwoRUG9saWN5QXJ0aWZhY3RPQ0kSEAoIbWFuaWZlc3QYASABKAwSEAoIYXJ0aWZhY3QYAiABKAwiegocQ3JlYXRlRXhwb3J0QXJ0aWZhY3RzUmVxdWVzdBIRCgluYW1lc3BhY2UYASABKAkSEQoJbm9fYnVuZGxlGAIgASgIEjQKEHdpdGhfb2JsaWdhdGlvbnMYAyABKAsyGi5nb29nbGUucHJvdG9idWYuQm9vbFZhbHVlIsABCh1DcmVhdGVFeHBvcnRBcnRpZmFjdHNSZXNwb25zZRJKChBwb2xpY3lfdW5idW5kbGVkGAEgASgLMi4ucG9saWN5aW1wb3J0ZXhwb3J0LnYxLlBvbGljeUFydGlmYWN0VW5idW5kbGVkSAASRwoTcG9saWN5X2FydGlmYWN0X29jaRgCIAEoCzIoLnBvbGljeWltcG9ydGV4cG9ydC52MS5Qb2xpY3lBcnRpZmFjdE9DSUgAQgoKCGFydGlmYWN0MoQEChVQb2xpY3lBcnRpZmFjdFNlcnZpY2USuAEKHUNyZWF0ZVRydXN0ZWRBcnRpZmFjdFByb3ZpZGVyEjsucG9saWN5aW1wb3J0ZXhwb3J0LnYxLkNyZWF0ZVRydXN0ZWRBcnRpZmFjdFByb3ZpZGVyUmVxdWVzdBo8LnBvbGljeWltcG9ydGV4cG9ydC52MS5DcmVhdGVUcnVzdGVkQXJ0aWZhY3RQcm92aWRlclJlc3BvbnNlIhyC0+STAhYiFC92MS90cnVzdGVkcHJvdmlkZXJzEpYBChVDcmVhdGVJbXBvcnRBcnRpZmFjdHMSMy5wb2xpY3lpbXBvcnRleHBvcnQudjEuQ3JlYXRlSW1wb3J0QXJ0aWZhY3RzUmVxdWVzdBo0LnBvbGljeWltcG9ydGV4cG9ydC52MS5DcmVhdGVJbXBvcnRBcnRpZmFjdHNSZXNwb25zZSISgtPkkwIMIgovdjEvaW1wb3J0EpYBChVDcmVhdGVFeHBvcnRBcnRpZmFjdHMSMy5wb2xpY3lpbXBvcnRleHBvcnQudjEuQ3JlYXRlRXhwb3J0QXJ0aWZhY3RzUmVxdWVzdBo0LnBvbGljeWltcG9ydGV4cG9ydC52MS5DcmVhdGVFeHBvcnRBcnRpZmFjdHNSZXNwb25zZSISgtPkkwIMIgovdjEvZXhwb3J0Qo4CChljb20ucG9saWN5aW1wb3J0ZXhwb3J0LnYxQhdQb2xpY3lJbXBvcnRFeHBvcnRQcm90b1ABWmNnaXRodWIuY29tL3ZpcnRydS1jb3JwL2RhdGEtc2VjdXJpdHktcGxhdGZvcm0vc2RrL3YyL2dlbi9wb2xpY3lpbXBvcnRleHBvcnQvdjE7cG9saWN5aW1wb3J0ZXhwb3J0djGiAgNQWFiqAhVQb2xpY3lpbXBvcnRleHBvcnQuVjHKAhVQb2xpY3lpbXBvcnRleHBvcnRcVjHiAiFQb2xpY3lpbXBvcnRleHBvcnRcVjFcR1BCTWV0YWRhdGHqAhZQb2xpY3lpbXBvcnRleHBvcnQ6OlYxYgZwcm90bzM',
32
- [file_google_api_annotations, file_google_protobuf_wrappers]
33
- );
34
-
35
- /**
36
- * A Trusted Policy Artifact Provider
37
- *
38
- * @generated from message policyimportexport.v1.TrustedArtifactProvider
39
- */
40
- export type TrustedArtifactProvider =
41
- Message<'policyimportexport.v1.TrustedArtifactProvider'> & {
42
- /**
43
- * key for signature verification
44
- *
45
- * @generated from field: bytes public_key = 1;
46
- */
47
- publicKey: Uint8Array;
48
-
49
- /**
50
- * permitted namespaces
51
- *
52
- * @generated from field: repeated string permitted_namespaces = 2;
53
- */
54
- permittedNamespaces: string[];
55
- };
56
-
57
- /**
58
- * Describes the message policyimportexport.v1.TrustedArtifactProvider.
59
- * Use `create(TrustedArtifactProviderSchema)` to create a new message.
60
- */
61
- export const TrustedArtifactProviderSchema: GenMessage<TrustedArtifactProvider> =
62
- /*@__PURE__*/
63
- messageDesc(file_policyimportexport_v1_policy_import_export, 0);
64
-
65
- /**
66
- * @generated from message policyimportexport.v1.CreateTrustedArtifactProviderRequest
67
- */
68
- export type CreateTrustedArtifactProviderRequest =
69
- Message<'policyimportexport.v1.CreateTrustedArtifactProviderRequest'> & {
70
- /**
71
- * @generated from field: policyimportexport.v1.TrustedArtifactProvider artifact_provider = 1;
72
- */
73
- artifactProvider?: TrustedArtifactProvider;
74
- };
75
-
76
- /**
77
- * Describes the message policyimportexport.v1.CreateTrustedArtifactProviderRequest.
78
- * Use `create(CreateTrustedArtifactProviderRequestSchema)` to create a new message.
79
- */
80
- export const CreateTrustedArtifactProviderRequestSchema: GenMessage<CreateTrustedArtifactProviderRequest> =
81
- /*@__PURE__*/
82
- messageDesc(file_policyimportexport_v1_policy_import_export, 1);
83
-
84
- /**
85
- * @generated from message policyimportexport.v1.CreateTrustedArtifactProviderResponse
86
- */
87
- export type CreateTrustedArtifactProviderResponse =
88
- Message<'policyimportexport.v1.CreateTrustedArtifactProviderResponse'> & {};
89
-
90
- /**
91
- * Describes the message policyimportexport.v1.CreateTrustedArtifactProviderResponse.
92
- * Use `create(CreateTrustedArtifactProviderResponseSchema)` to create a new message.
93
- */
94
- export const CreateTrustedArtifactProviderResponseSchema: GenMessage<CreateTrustedArtifactProviderResponse> =
95
- /*@__PURE__*/
96
- messageDesc(file_policyimportexport_v1_policy_import_export, 2);
97
-
98
- /**
99
- * @generated from message policyimportexport.v1.CreateImportArtifactsRequest
100
- */
101
- export type CreateImportArtifactsRequest =
102
- Message<'policyimportexport.v1.CreateImportArtifactsRequest'> & {
103
- /**
104
- * @generated from oneof policyimportexport.v1.CreateImportArtifactsRequest.artifact_src
105
- */
106
- artifactSrc:
107
- | {
108
- /**
109
- * Policy artifact in unbundled format
110
- *
111
- * @generated from field: policyimportexport.v1.PolicyArtifactUnbundled policy_unbundled = 1;
112
- */
113
- value: PolicyArtifactUnbundled;
114
- case: 'policyUnbundled';
115
- }
116
- | {
117
- /**
118
- * Policy artifact in OCI format
119
- *
120
- * @generated from field: policyimportexport.v1.CreateImportArtifactsRequest.PolicyArtifactBundled policy_oci_bundle = 2;
121
- */
122
- value: CreateImportArtifactsRequest_PolicyArtifactBundled;
123
- case: 'policyOciBundle';
124
- }
125
- | { case: undefined; value?: undefined };
126
- };
127
-
128
- /**
129
- * Describes the message policyimportexport.v1.CreateImportArtifactsRequest.
130
- * Use `create(CreateImportArtifactsRequestSchema)` to create a new message.
131
- */
132
- export const CreateImportArtifactsRequestSchema: GenMessage<CreateImportArtifactsRequest> =
133
- /*@__PURE__*/
134
- messageDesc(file_policyimportexport_v1_policy_import_export, 3);
135
-
136
- /**
137
- * @generated from message policyimportexport.v1.CreateImportArtifactsRequest.PolicyArtifactBundled
138
- */
139
- export type CreateImportArtifactsRequest_PolicyArtifactBundled =
140
- Message<'policyimportexport.v1.CreateImportArtifactsRequest.PolicyArtifactBundled'> & {
141
- /**
142
- * OCI Artifact provided as a signed blob
143
- *
144
- * @generated from field: bytes oci_blob = 1;
145
- */
146
- ociBlob: Uint8Array;
147
-
148
- /**
149
- * if true, signature verification is skipped
150
- *
151
- * @generated from field: bool no_verify_signature = 2;
152
- */
153
- noVerifySignature: boolean;
154
- };
155
-
156
- /**
157
- * Describes the message policyimportexport.v1.CreateImportArtifactsRequest.PolicyArtifactBundled.
158
- * Use `create(CreateImportArtifactsRequest_PolicyArtifactBundledSchema)` to create a new message.
159
- */
160
- export const CreateImportArtifactsRequest_PolicyArtifactBundledSchema: GenMessage<CreateImportArtifactsRequest_PolicyArtifactBundled> =
161
- /*@__PURE__*/
162
- messageDesc(file_policyimportexport_v1_policy_import_export, 3, 0);
163
-
164
- /**
165
- * @generated from message policyimportexport.v1.CreateImportArtifactsResponse
166
- */
167
- export type CreateImportArtifactsResponse =
168
- Message<'policyimportexport.v1.CreateImportArtifactsResponse'> & {};
169
-
170
- /**
171
- * Describes the message policyimportexport.v1.CreateImportArtifactsResponse.
172
- * Use `create(CreateImportArtifactsResponseSchema)` to create a new message.
173
- */
174
- export const CreateImportArtifactsResponseSchema: GenMessage<CreateImportArtifactsResponse> =
175
- /*@__PURE__*/
176
- messageDesc(file_policyimportexport_v1_policy_import_export, 4);
177
-
178
- /**
179
- * @generated from message policyimportexport.v1.PolicyArtifactUnbundled
180
- */
181
- export type PolicyArtifactUnbundled =
182
- Message<'policyimportexport.v1.PolicyArtifactUnbundled'> & {
183
- /**
184
- * Policy artifact bytes in YAML format that are understood by the Policy Artifact Service.
185
- * Protos do not currently support generated YAML struct tags, so the interpretation of the bytes on import
186
- * is considered an internal detail and not an API concern.
187
- *
188
- * @generated from field: bytes policy = 1;
189
- */
190
- policy: Uint8Array;
191
- };
192
-
193
- /**
194
- * Describes the message policyimportexport.v1.PolicyArtifactUnbundled.
195
- * Use `create(PolicyArtifactUnbundledSchema)` to create a new message.
196
- */
197
- export const PolicyArtifactUnbundledSchema: GenMessage<PolicyArtifactUnbundled> =
198
- /*@__PURE__*/
199
- messageDesc(file_policyimportexport_v1_policy_import_export, 5);
200
-
201
- /**
202
- * @generated from message policyimportexport.v1.PolicyArtifactOCI
203
- */
204
- export type PolicyArtifactOCI =
205
- Message<'policyimportexport.v1.PolicyArtifactOCI'> & {
206
- /**
207
- * json manifest of the policy artifact as byte array
208
- *
209
- * @generated from field: bytes manifest = 1;
210
- */
211
- manifest: Uint8Array;
212
-
213
- /**
214
- * oci-layout tar archive containing the policy artifact
215
- *
216
- * @generated from field: bytes artifact = 2;
217
- */
218
- artifact: Uint8Array;
219
- };
220
-
221
- /**
222
- * Describes the message policyimportexport.v1.PolicyArtifactOCI.
223
- * Use `create(PolicyArtifactOCISchema)` to create a new message.
224
- */
225
- export const PolicyArtifactOCISchema: GenMessage<PolicyArtifactOCI> =
226
- /*@__PURE__*/
227
- messageDesc(file_policyimportexport_v1_policy_import_export, 6);
228
-
229
- /**
230
- * @generated from message policyimportexport.v1.CreateExportArtifactsRequest
231
- */
232
- export type CreateExportArtifactsRequest =
233
- Message<'policyimportexport.v1.CreateExportArtifactsRequest'> & {
234
- /**
235
- * specified namespace to be exported
236
- *
237
- * @generated from field: string namespace = 1;
238
- */
239
- namespace: string;
240
-
241
- /**
242
- * should be exported unbundled instead of as an OCI artifact
243
- *
244
- * @generated from field: bool no_bundle = 2;
245
- */
246
- noBundle: boolean;
247
-
248
- /**
249
- * include obligations in export (defaults to true when unset)
250
- *
251
- * @generated from field: google.protobuf.BoolValue with_obligations = 3;
252
- */
253
- withObligations?: boolean;
254
- };
255
-
256
- /**
257
- * Describes the message policyimportexport.v1.CreateExportArtifactsRequest.
258
- * Use `create(CreateExportArtifactsRequestSchema)` to create a new message.
259
- */
260
- export const CreateExportArtifactsRequestSchema: GenMessage<CreateExportArtifactsRequest> =
261
- /*@__PURE__*/
262
- messageDesc(file_policyimportexport_v1_policy_import_export, 7);
263
-
264
- /**
265
- * @generated from message policyimportexport.v1.CreateExportArtifactsResponse
266
- */
267
- export type CreateExportArtifactsResponse =
268
- Message<'policyimportexport.v1.CreateExportArtifactsResponse'> & {
269
- /**
270
- * @generated from oneof policyimportexport.v1.CreateExportArtifactsResponse.artifact
271
- */
272
- artifact:
273
- | {
274
- /**
275
- * un-bundled raw YAML policy in the format understood by the Policy Artifact Service
276
- *
277
- * @generated from field: policyimportexport.v1.PolicyArtifactUnbundled policy_unbundled = 1;
278
- */
279
- value: PolicyArtifactUnbundled;
280
- case: 'policyUnbundled';
281
- }
282
- | {
283
- /**
284
- * OCI artifact containing the policy artifact
285
- *
286
- * @generated from field: policyimportexport.v1.PolicyArtifactOCI policy_artifact_oci = 2;
287
- */
288
- value: PolicyArtifactOCI;
289
- case: 'policyArtifactOci';
290
- }
291
- | { case: undefined; value?: undefined };
292
- };
293
-
294
- /**
295
- * Describes the message policyimportexport.v1.CreateExportArtifactsResponse.
296
- * Use `create(CreateExportArtifactsResponseSchema)` to create a new message.
297
- */
298
- export const CreateExportArtifactsResponseSchema: GenMessage<CreateExportArtifactsResponse> =
299
- /*@__PURE__*/
300
- messageDesc(file_policyimportexport_v1_policy_import_export, 8);
301
-
302
- /**
303
- * @generated from service policyimportexport.v1.PolicyArtifactService
304
- */
305
- export const PolicyArtifactService: GenService<{
306
- /**
307
- * @generated from rpc policyimportexport.v1.PolicyArtifactService.CreateTrustedArtifactProvider
308
- */
309
- createTrustedArtifactProvider: {
310
- methodKind: 'unary';
311
- input: typeof CreateTrustedArtifactProviderRequestSchema;
312
- output: typeof CreateTrustedArtifactProviderResponseSchema;
313
- };
314
- /**
315
- * @generated from rpc policyimportexport.v1.PolicyArtifactService.CreateImportArtifacts
316
- */
317
- createImportArtifacts: {
318
- methodKind: 'unary';
319
- input: typeof CreateImportArtifactsRequestSchema;
320
- output: typeof CreateImportArtifactsResponseSchema;
321
- };
322
- /**
323
- * @generated from rpc policyimportexport.v1.PolicyArtifactService.CreateExportArtifacts
324
- */
325
- createExportArtifacts: {
326
- methodKind: 'unary';
327
- input: typeof CreateExportArtifactsRequestSchema;
328
- output: typeof CreateExportArtifactsResponseSchema;
329
- };
330
- }> =
331
- /*@__PURE__*/
332
- serviceDesc(file_policyimportexport_v1_policy_import_export, 0);
@@ -1,61 +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/v1/shared.proto (package shared.v1, syntax proto3)
9
- /* eslint-disable */
10
- // @ts-nocheck
11
-
12
- import {
13
- GetMyEntitlementsRequest,
14
- GetMyEntitlementsResponse,
15
- TransformTdfFormatRequest,
16
- TransformTdfFormatResponse,
17
- } from './shared_pb.js';
18
- import { MethodIdempotency, MethodKind } from '@bufbuild/protobuf';
19
-
20
- /**
21
- * EXPERIMENTAL/UNSTABLE SERVICE
22
- *
23
- * @generated from service shared.v1.SharedService
24
- */
25
- export const SharedService = {
26
- typeName: 'shared.v1.SharedService',
27
- methods: {
28
- /**
29
- * Gets user's entitlements based on their OIDC token provided in the auth header
30
- *
31
- * @generated from rpc shared.v1.SharedService.GetMyEntitlements
32
- */
33
- getMyEntitlements: {
34
- name: 'GetMyEntitlements',
35
- I: GetMyEntitlementsRequest,
36
- O: GetMyEntitlementsResponse,
37
- kind: MethodKind.Unary,
38
- idempotency: MethodIdempotency.NoSideEffects,
39
- },
40
- /**
41
- * @generated from rpc shared.v1.SharedService.TransformToICTDF
42
- */
43
- transformToICTDF: {
44
- name: 'TransformToICTDF',
45
- I: TransformTdfFormatRequest,
46
- O: TransformTdfFormatResponse,
47
- kind: MethodKind.Unary,
48
- idempotency: MethodIdempotency.NoSideEffects,
49
- },
50
- /**
51
- * @generated from rpc shared.v1.SharedService.TransformToZTDF
52
- */
53
- transformToZTDF: {
54
- name: 'TransformToZTDF',
55
- I: TransformTdfFormatRequest,
56
- O: TransformTdfFormatResponse,
57
- kind: MethodKind.Unary,
58
- idempotency: MethodIdempotency.NoSideEffects,
59
- },
60
- },
61
- } as const;