@virtru/dsp-sdk 0.1.10-pr604.7ef7a158
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.
- package/.prettierrc +3 -0
- package/.rush/temp/operation/_phase_build/state.json +3 -0
- package/.rush/temp/package-deps__phase_build.json +41 -0
- package/.rush/temp/shrinkwrap-deps.json +329 -0
- package/CHANGELOG.json +103 -0
- package/CHANGELOG.md +53 -0
- package/README.md +98 -0
- package/dist/src/gen/buf/validate/validate_pb.d.ts +4517 -0
- package/dist/src/gen/buf/validate/validate_pb.js +484 -0
- package/dist/src/gen/config/v1/config_pb.d.ts +88 -0
- package/dist/src/gen/config/v1/config_pb.js +46 -0
- package/dist/src/gen/config/v1/meta_pb.d.ts +37 -0
- package/dist/src/gen/config/v1/meta_pb.js +33 -0
- package/dist/src/gen/config/v1/tagging_pb.d.ts +264 -0
- package/dist/src/gen/config/v1/tagging_pb.js +188 -0
- package/dist/src/gen/google/api/annotations_pb.d.ts +13 -0
- package/dist/src/gen/google/api/annotations_pb.js +30 -0
- package/dist/src/gen/google/api/http_pb.d.ts +440 -0
- package/dist/src/gen/google/api/http_pb.js +41 -0
- package/dist/src/gen/policyimportexport/v1/policy_import_export_pb.d.ts +241 -0
- package/dist/src/gen/policyimportexport/v1/policy_import_export_pb.js +89 -0
- package/dist/src/gen/shared/v1/shared_pb.d.ts +172 -0
- package/dist/src/gen/shared/v1/shared_pb.js +92 -0
- package/dist/src/gen/tagging/pdp/v2/tagging_pb.d.ts +872 -0
- package/dist/src/gen/tagging/pdp/v2/tagging_pb.js +274 -0
- package/dist/src/gen/version/v1/version_pb.d.ts +96 -0
- package/dist/src/gen/version/v1/version_pb.js +37 -0
- package/dist/src/index.d.ts +21 -0
- package/dist/src/index.js +28 -0
- package/dist/src/lib/client.d.ts +33 -0
- package/dist/src/lib/client.js +60 -0
- package/dist/src/lib/dsp.d.ts +18 -0
- package/dist/src/lib/dsp.js +44 -0
- package/dist/src/lib/utils.d.ts +15 -0
- package/dist/src/lib/utils.js +35 -0
- package/dist/tests/dsp-client.test.d.ts +1 -0
- package/dist/tests/dsp-client.test.js +49 -0
- package/dist/tests/dsp.test.d.ts +1 -0
- package/dist/tests/dsp.test.js +71 -0
- package/dist/tests/mocks/create-export-artifacts.d.ts +2 -0
- package/dist/tests/mocks/create-export-artifacts.js +13 -0
- package/dist/tests/mocks/tagging-pdp-tag.d.ts +2 -0
- package/dist/tests/mocks/tagging-pdp-tag.js +11 -0
- package/dist/tests/mocks/well-known-configuration.d.ts +2 -0
- package/dist/tests/mocks/well-known-configuration.js +12 -0
- package/dist/tests/setup-msw.d.ts +9 -0
- package/dist/tests/setup-msw.js +30 -0
- package/eslint.config.mjs +28 -0
- package/package.json +47 -0
- package/src/gen/buf/validate/validate_pb.ts +4879 -0
- package/src/gen/config/formatters/testdata/v1/test_pb.ts +287 -0
- package/src/gen/config/v1/config_pb.ts +137 -0
- package/src/gen/config/v1/meta_pb.ts +72 -0
- package/src/gen/config/v1/tagging_pb.ts +355 -0
- package/src/gen/google/api/annotations_pb.ts +43 -0
- package/src/gen/google/api/http_pb.ts +486 -0
- package/src/gen/helloworld/v1/helloworld_pb.ts +98 -0
- package/src/gen/policyimportexport/v1/policy_import_export_pb.ts +324 -0
- package/src/gen/shared/v1/shared_pb.ts +240 -0
- package/src/gen/shared/v2/shared_pb.ts +122 -0
- package/src/gen/tagging/pdp/v2/externalprocessors/processor_pb.ts +709 -0
- package/src/gen/tagging/pdp/v2/stanag/stanag_pb.ts +953 -0
- package/src/gen/tagging/pdp/v2/tagging_pb.ts +1064 -0
- package/src/gen/version/v1/version_pb.ts +143 -0
- package/src/index.ts +49 -0
- package/src/lib/client.ts +83 -0
- package/src/lib/dsp.ts +65 -0
- package/src/lib/utils.ts +43 -0
- package/src/vite-env.d.ts +7 -0
- package/tests/dsp-client.test.ts +67 -0
- package/tests/dsp.test.ts +95 -0
- package/tests/mocks/create-export-artifacts.ts +16 -0
- package/tests/mocks/tagging-pdp-tag.ts +13 -0
- package/tests/mocks/well-known-configuration.ts +15 -0
- package/tests/setup-msw.ts +35 -0
- package/tsconfig.json +32 -0
- package/vitest.config.ts +42 -0
|
@@ -0,0 +1,324 @@
|
|
|
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 type { Message } from '@bufbuild/protobuf';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Describes the file policyimportexport/v1/policy_import_export.proto.
|
|
26
|
+
*/
|
|
27
|
+
export const file_policyimportexport_v1_policy_import_export: GenFile =
|
|
28
|
+
/*@__PURE__*/
|
|
29
|
+
fileDesc(
|
|
30
|
+
'CjBwb2xpY3lpbXBvcnRleHBvcnQvdjEvcG9saWN5X2ltcG9ydF9leHBvcnQucHJvdG8SFXBvbGljeWltcG9ydGV4cG9ydC52MSJLChdUcnVzdGVkQXJ0aWZhY3RQcm92aWRlchISCgpwdWJsaWNfa2V5GAEgASgMEhwKFHBlcm1pdHRlZF9uYW1lc3BhY2VzGAIgAygJInEKJENyZWF0ZVRydXN0ZWRBcnRpZmFjdFByb3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2xpY3lpbXBvcnRleHBvcnQ6OlYxYgZwcm90bzM',
|
|
31
|
+
[file_google_api_annotations]
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A Trusted Policy Artifact Provider
|
|
36
|
+
*
|
|
37
|
+
* @generated from message policyimportexport.v1.TrustedArtifactProvider
|
|
38
|
+
*/
|
|
39
|
+
export type TrustedArtifactProvider =
|
|
40
|
+
Message<'policyimportexport.v1.TrustedArtifactProvider'> & {
|
|
41
|
+
/**
|
|
42
|
+
* key for signature verification
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: bytes public_key = 1;
|
|
45
|
+
*/
|
|
46
|
+
publicKey: Uint8Array;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* permitted namespaces
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: repeated string permitted_namespaces = 2;
|
|
52
|
+
*/
|
|
53
|
+
permittedNamespaces: string[];
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message policyimportexport.v1.TrustedArtifactProvider.
|
|
58
|
+
* Use `create(TrustedArtifactProviderSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
export const TrustedArtifactProviderSchema: GenMessage<TrustedArtifactProvider> =
|
|
61
|
+
/*@__PURE__*/
|
|
62
|
+
messageDesc(file_policyimportexport_v1_policy_import_export, 0);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @generated from message policyimportexport.v1.CreateTrustedArtifactProviderRequest
|
|
66
|
+
*/
|
|
67
|
+
export type CreateTrustedArtifactProviderRequest =
|
|
68
|
+
Message<'policyimportexport.v1.CreateTrustedArtifactProviderRequest'> & {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: policyimportexport.v1.TrustedArtifactProvider artifact_provider = 1;
|
|
71
|
+
*/
|
|
72
|
+
artifactProvider?: TrustedArtifactProvider;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Describes the message policyimportexport.v1.CreateTrustedArtifactProviderRequest.
|
|
77
|
+
* Use `create(CreateTrustedArtifactProviderRequestSchema)` to create a new message.
|
|
78
|
+
*/
|
|
79
|
+
export const CreateTrustedArtifactProviderRequestSchema: GenMessage<CreateTrustedArtifactProviderRequest> =
|
|
80
|
+
/*@__PURE__*/
|
|
81
|
+
messageDesc(file_policyimportexport_v1_policy_import_export, 1);
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @generated from message policyimportexport.v1.CreateTrustedArtifactProviderResponse
|
|
85
|
+
*/
|
|
86
|
+
export type CreateTrustedArtifactProviderResponse =
|
|
87
|
+
Message<'policyimportexport.v1.CreateTrustedArtifactProviderResponse'> & {};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Describes the message policyimportexport.v1.CreateTrustedArtifactProviderResponse.
|
|
91
|
+
* Use `create(CreateTrustedArtifactProviderResponseSchema)` to create a new message.
|
|
92
|
+
*/
|
|
93
|
+
export const CreateTrustedArtifactProviderResponseSchema: GenMessage<CreateTrustedArtifactProviderResponse> =
|
|
94
|
+
/*@__PURE__*/
|
|
95
|
+
messageDesc(file_policyimportexport_v1_policy_import_export, 2);
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @generated from message policyimportexport.v1.CreateImportArtifactsRequest
|
|
99
|
+
*/
|
|
100
|
+
export type CreateImportArtifactsRequest =
|
|
101
|
+
Message<'policyimportexport.v1.CreateImportArtifactsRequest'> & {
|
|
102
|
+
/**
|
|
103
|
+
* @generated from oneof policyimportexport.v1.CreateImportArtifactsRequest.artifact_src
|
|
104
|
+
*/
|
|
105
|
+
artifactSrc:
|
|
106
|
+
| {
|
|
107
|
+
/**
|
|
108
|
+
* Policy artifact in unbundled format
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: policyimportexport.v1.PolicyArtifactUnbundled policy_unbundled = 1;
|
|
111
|
+
*/
|
|
112
|
+
value: PolicyArtifactUnbundled;
|
|
113
|
+
case: 'policyUnbundled';
|
|
114
|
+
}
|
|
115
|
+
| {
|
|
116
|
+
/**
|
|
117
|
+
* Policy artifact in OCI format
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: policyimportexport.v1.CreateImportArtifactsRequest.PolicyArtifactBundled policy_oci_bundle = 2;
|
|
120
|
+
*/
|
|
121
|
+
value: CreateImportArtifactsRequest_PolicyArtifactBundled;
|
|
122
|
+
case: 'policyOciBundle';
|
|
123
|
+
}
|
|
124
|
+
| { case: undefined; value?: undefined };
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Describes the message policyimportexport.v1.CreateImportArtifactsRequest.
|
|
129
|
+
* Use `create(CreateImportArtifactsRequestSchema)` to create a new message.
|
|
130
|
+
*/
|
|
131
|
+
export const CreateImportArtifactsRequestSchema: GenMessage<CreateImportArtifactsRequest> =
|
|
132
|
+
/*@__PURE__*/
|
|
133
|
+
messageDesc(file_policyimportexport_v1_policy_import_export, 3);
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @generated from message policyimportexport.v1.CreateImportArtifactsRequest.PolicyArtifactBundled
|
|
137
|
+
*/
|
|
138
|
+
export type CreateImportArtifactsRequest_PolicyArtifactBundled =
|
|
139
|
+
Message<'policyimportexport.v1.CreateImportArtifactsRequest.PolicyArtifactBundled'> & {
|
|
140
|
+
/**
|
|
141
|
+
* OCI Artifact provided as a signed blob
|
|
142
|
+
*
|
|
143
|
+
* @generated from field: bytes oci_blob = 1;
|
|
144
|
+
*/
|
|
145
|
+
ociBlob: Uint8Array;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* if true, signature verification is skipped
|
|
149
|
+
*
|
|
150
|
+
* @generated from field: bool no_verify_signature = 2;
|
|
151
|
+
*/
|
|
152
|
+
noVerifySignature: boolean;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Describes the message policyimportexport.v1.CreateImportArtifactsRequest.PolicyArtifactBundled.
|
|
157
|
+
* Use `create(CreateImportArtifactsRequest_PolicyArtifactBundledSchema)` to create a new message.
|
|
158
|
+
*/
|
|
159
|
+
export const CreateImportArtifactsRequest_PolicyArtifactBundledSchema: GenMessage<CreateImportArtifactsRequest_PolicyArtifactBundled> =
|
|
160
|
+
/*@__PURE__*/
|
|
161
|
+
messageDesc(file_policyimportexport_v1_policy_import_export, 3, 0);
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @generated from message policyimportexport.v1.CreateImportArtifactsResponse
|
|
165
|
+
*/
|
|
166
|
+
export type CreateImportArtifactsResponse =
|
|
167
|
+
Message<'policyimportexport.v1.CreateImportArtifactsResponse'> & {};
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Describes the message policyimportexport.v1.CreateImportArtifactsResponse.
|
|
171
|
+
* Use `create(CreateImportArtifactsResponseSchema)` to create a new message.
|
|
172
|
+
*/
|
|
173
|
+
export const CreateImportArtifactsResponseSchema: GenMessage<CreateImportArtifactsResponse> =
|
|
174
|
+
/*@__PURE__*/
|
|
175
|
+
messageDesc(file_policyimportexport_v1_policy_import_export, 4);
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @generated from message policyimportexport.v1.PolicyArtifactUnbundled
|
|
179
|
+
*/
|
|
180
|
+
export type PolicyArtifactUnbundled =
|
|
181
|
+
Message<'policyimportexport.v1.PolicyArtifactUnbundled'> & {
|
|
182
|
+
/**
|
|
183
|
+
* Policy artifact bytes in YAML format that are understood by the Policy Artifact Service.
|
|
184
|
+
* Protos do not currently support generated YAML struct tags, so the interpretation of the bytes on import
|
|
185
|
+
* is considered an internal detail and not an API concern.
|
|
186
|
+
*
|
|
187
|
+
* @generated from field: bytes policy = 1;
|
|
188
|
+
*/
|
|
189
|
+
policy: Uint8Array;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Describes the message policyimportexport.v1.PolicyArtifactUnbundled.
|
|
194
|
+
* Use `create(PolicyArtifactUnbundledSchema)` to create a new message.
|
|
195
|
+
*/
|
|
196
|
+
export const PolicyArtifactUnbundledSchema: GenMessage<PolicyArtifactUnbundled> =
|
|
197
|
+
/*@__PURE__*/
|
|
198
|
+
messageDesc(file_policyimportexport_v1_policy_import_export, 5);
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @generated from message policyimportexport.v1.PolicyArtifactOCI
|
|
202
|
+
*/
|
|
203
|
+
export type PolicyArtifactOCI =
|
|
204
|
+
Message<'policyimportexport.v1.PolicyArtifactOCI'> & {
|
|
205
|
+
/**
|
|
206
|
+
* json manifest of the policy artifact as byte array
|
|
207
|
+
*
|
|
208
|
+
* @generated from field: bytes manifest = 1;
|
|
209
|
+
*/
|
|
210
|
+
manifest: Uint8Array;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* oci-layout tar archive containing the policy artifact
|
|
214
|
+
*
|
|
215
|
+
* @generated from field: bytes artifact = 2;
|
|
216
|
+
*/
|
|
217
|
+
artifact: Uint8Array;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Describes the message policyimportexport.v1.PolicyArtifactOCI.
|
|
222
|
+
* Use `create(PolicyArtifactOCISchema)` to create a new message.
|
|
223
|
+
*/
|
|
224
|
+
export const PolicyArtifactOCISchema: GenMessage<PolicyArtifactOCI> =
|
|
225
|
+
/*@__PURE__*/
|
|
226
|
+
messageDesc(file_policyimportexport_v1_policy_import_export, 6);
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @generated from message policyimportexport.v1.CreateExportArtifactsRequest
|
|
230
|
+
*/
|
|
231
|
+
export type CreateExportArtifactsRequest =
|
|
232
|
+
Message<'policyimportexport.v1.CreateExportArtifactsRequest'> & {
|
|
233
|
+
/**
|
|
234
|
+
* specified namespace to be exported
|
|
235
|
+
*
|
|
236
|
+
* @generated from field: string namespace = 1;
|
|
237
|
+
*/
|
|
238
|
+
namespace: string;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* should be exported unbundled instead of as an OCI artifact
|
|
242
|
+
*
|
|
243
|
+
* @generated from field: bool no_bundle = 2;
|
|
244
|
+
*/
|
|
245
|
+
noBundle: boolean;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Describes the message policyimportexport.v1.CreateExportArtifactsRequest.
|
|
250
|
+
* Use `create(CreateExportArtifactsRequestSchema)` to create a new message.
|
|
251
|
+
*/
|
|
252
|
+
export const CreateExportArtifactsRequestSchema: GenMessage<CreateExportArtifactsRequest> =
|
|
253
|
+
/*@__PURE__*/
|
|
254
|
+
messageDesc(file_policyimportexport_v1_policy_import_export, 7);
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @generated from message policyimportexport.v1.CreateExportArtifactsResponse
|
|
258
|
+
*/
|
|
259
|
+
export type CreateExportArtifactsResponse =
|
|
260
|
+
Message<'policyimportexport.v1.CreateExportArtifactsResponse'> & {
|
|
261
|
+
/**
|
|
262
|
+
* @generated from oneof policyimportexport.v1.CreateExportArtifactsResponse.artifact
|
|
263
|
+
*/
|
|
264
|
+
artifact:
|
|
265
|
+
| {
|
|
266
|
+
/**
|
|
267
|
+
* un-bundled raw YAML policy in the format understood by the Policy Artifact Service
|
|
268
|
+
*
|
|
269
|
+
* @generated from field: policyimportexport.v1.PolicyArtifactUnbundled policy_unbundled = 1;
|
|
270
|
+
*/
|
|
271
|
+
value: PolicyArtifactUnbundled;
|
|
272
|
+
case: 'policyUnbundled';
|
|
273
|
+
}
|
|
274
|
+
| {
|
|
275
|
+
/**
|
|
276
|
+
* OCI artifact containing the policy artifact
|
|
277
|
+
*
|
|
278
|
+
* @generated from field: policyimportexport.v1.PolicyArtifactOCI policy_artifact_oci = 2;
|
|
279
|
+
*/
|
|
280
|
+
value: PolicyArtifactOCI;
|
|
281
|
+
case: 'policyArtifactOci';
|
|
282
|
+
}
|
|
283
|
+
| { case: undefined; value?: undefined };
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Describes the message policyimportexport.v1.CreateExportArtifactsResponse.
|
|
288
|
+
* Use `create(CreateExportArtifactsResponseSchema)` to create a new message.
|
|
289
|
+
*/
|
|
290
|
+
export const CreateExportArtifactsResponseSchema: GenMessage<CreateExportArtifactsResponse> =
|
|
291
|
+
/*@__PURE__*/
|
|
292
|
+
messageDesc(file_policyimportexport_v1_policy_import_export, 8);
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @generated from service policyimportexport.v1.PolicyArtifactService
|
|
296
|
+
*/
|
|
297
|
+
export const PolicyArtifactService: GenService<{
|
|
298
|
+
/**
|
|
299
|
+
* @generated from rpc policyimportexport.v1.PolicyArtifactService.CreateTrustedArtifactProvider
|
|
300
|
+
*/
|
|
301
|
+
createTrustedArtifactProvider: {
|
|
302
|
+
methodKind: 'unary';
|
|
303
|
+
input: typeof CreateTrustedArtifactProviderRequestSchema;
|
|
304
|
+
output: typeof CreateTrustedArtifactProviderResponseSchema;
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* @generated from rpc policyimportexport.v1.PolicyArtifactService.CreateImportArtifacts
|
|
308
|
+
*/
|
|
309
|
+
createImportArtifacts: {
|
|
310
|
+
methodKind: 'unary';
|
|
311
|
+
input: typeof CreateImportArtifactsRequestSchema;
|
|
312
|
+
output: typeof CreateImportArtifactsResponseSchema;
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* @generated from rpc policyimportexport.v1.PolicyArtifactService.CreateExportArtifacts
|
|
316
|
+
*/
|
|
317
|
+
createExportArtifacts: {
|
|
318
|
+
methodKind: 'unary';
|
|
319
|
+
input: typeof CreateExportArtifactsRequestSchema;
|
|
320
|
+
output: typeof CreateExportArtifactsResponseSchema;
|
|
321
|
+
};
|
|
322
|
+
}> =
|
|
323
|
+
/*@__PURE__*/
|
|
324
|
+
serviceDesc(file_policyimportexport_v1_policy_import_export, 0);
|
|
@@ -0,0 +1,240 @@
|
|
|
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
|
+
'ChZzaGFyZWQvdjEvc2hhcmVkLnByb3RvEglzaGFyZWQudjEirgIKDFNpbXBsZVBvbGljeRIQCghhdHRyX2ZxbhgBIAEoCRJGCg9kZWZpbml0aW9uX3J1bGUYAiABKA4yLS5zaGFyZWQudjEuU2ltcGxlUG9saWN5LkF0dHJpYnV0ZVJ1bGVUeXBlRW51bRIOCgZ2YWx1ZXMYAyADKAkiswEKFUF0dHJpYnV0ZVJ1bGVUeXBlRW51bRIoCiRBVFRSSUJVVEVfUlVMRV9UWVBFX0VOVU1fVU5TUEVDSUZJRUQQABIjCh9BVFRSSUJVVEVfUlVMRV9UWVBF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XNwb25zZSInkAIBgtPkkwIeOgEqIhkvc2hhcmVkL3RyYW5zZm9ybV90b196dGRmQq4BCg1jb20uc2hhcmVkLnYxQgtTaGFyZWRQcm90b1ABWktnaXRodWIuY29tL3ZpcnRydS1jb3JwL2RhdGEtc2VjdXJpdHktcGxhdGZvcm0vc2RrL3YyL2dlbi9zaGFyZWQvdjE7c2hhcmVkdjGiAgNTWFiqAglTaGFyZWQuVjHKAglTaGFyZWRcVjHiAhVTaGFyZWRcVjFcR1BCTWV0YWRhdGHqAgpTaGFyZWQ6OlYxYgZwcm90bzM',
|
|
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);
|
|
@@ -0,0 +1,122 @@
|
|
|
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);
|