@virtru/dsp-sdk 0.3.1 → 0.3.2
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/.rush/temp/chunked-rush-logs/dsp-sdk._phase_build.chunks.jsonl +3 -3
- package/.rush/temp/chunked-rush-logs/dsp-sdk._phase_test.chunks.jsonl +9 -38
- package/.rush/temp/package-deps__phase_build.json +28 -16
- package/.rush/temp/shrinkwrap-deps.json +174 -85
- package/CHANGELOG.json +14 -0
- package/CHANGELOG.md +8 -1
- package/README.md +10 -0
- package/dist/src/gen/config/v1/tagging_pb.d.ts +88 -4
- package/dist/src/gen/config/v1/tagging_pb.js +60 -5
- package/dist/src/gen/policyimportexport/v1/policy_import_export_pb.d.ts +6 -0
- package/dist/src/gen/policyimportexport/v1/policy_import_export_pb.js +2 -1
- package/dist/src/gen/virtru/common/common_pb.d.ts +10 -10
- package/dist/src/gen/virtru/common/common_pb.js +29 -13
- package/dist/src/gen/virtru/policy/certificates/v1/certificates_pb.d.ts +14 -14
- package/dist/src/gen/virtru/policy/certificates/v1/certificates_pb.js +40 -16
- package/dist/src/gen/virtru/policy/objects_pb.d.ts +5 -5
- package/dist/src/gen/virtru/policy/objects_pb.js +26 -12
- package/dist/src/lib/client.js +1 -1
- package/dist/src/lib/utils.js +9 -6
- package/dist/tests/dsp.test.js +1 -4
- package/package.json +8 -3
- package/src/gen/config/formatters/testdata/v1/test_pb.ts +1 -0
- package/src/gen/config/v1/config_connect.ts +111 -0
- package/src/gen/config/v1/tagging_pb.ts +106 -5
- package/src/gen/helloworld/v1/helloworld_connect.ts +49 -0
- package/src/gen/helloworld/v1/helloworld_pb.ts +6 -0
- package/src/gen/kas/nanotdf/v1/nanotdf_rewrap_connect.ts +39 -0
- package/src/gen/kas/nanotdf/v1/nanotdf_rewrap_pb.ts +207 -0
- package/src/gen/policyimportexport/v1/policy_import_export_connect.ts +56 -0
- package/src/gen/policyimportexport/v1/policy_import_export_pb.ts +10 -2
- package/src/gen/shared/v1/shared_connect.ts +61 -0
- package/src/gen/shared/v2/shared_connect.ts +39 -0
- package/src/gen/tagging/pdp/v2/externalprocessors/processor_connect.ts +156 -0
- package/src/gen/tagging/pdp/v2/tagging_connect.ts +73 -0
- package/src/gen/version/v1/version_connect.ts +31 -0
- package/src/gen/virtru/common/common_pb.ts +55 -33
- package/src/gen/virtru/policy/certificates/v1/certificates_pb.ts +188 -143
- package/src/gen/virtru/policy/objects_pb.ts +34 -16
- package/src/gen/web-admin/v1/config_connect.ts +52 -0
- package/src/lib/client.ts +5 -1
- package/src/lib/utils.test.ts +76 -40
- package/src/lib/utils.ts +54 -29
- package/tests/dsp.test.ts +2 -6
- package/update-protos.sh +63 -0
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
// Copyright 2015 gRPC authors.
|
|
8
|
+
//
|
|
9
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
// you may not use this file except in compliance with the License.
|
|
11
|
+
// You may obtain a copy of the License at
|
|
12
|
+
//
|
|
13
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
//
|
|
15
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
// See the License for the specific language governing permissions and
|
|
19
|
+
// limitations under the License.
|
|
20
|
+
|
|
21
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
|
|
22
|
+
// @generated from file helloworld/v1/helloworld.proto (package helloworld.v1, syntax proto3)
|
|
23
|
+
/* eslint-disable */
|
|
24
|
+
// @ts-nocheck
|
|
25
|
+
|
|
26
|
+
import { SayHelloRequest, SayHelloResponse } from './helloworld_pb.js';
|
|
27
|
+
import { MethodKind } from '@bufbuild/protobuf';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The greeting service definition.
|
|
31
|
+
*
|
|
32
|
+
* @generated from service helloworld.v1.GreeterService
|
|
33
|
+
*/
|
|
34
|
+
export const GreeterService = {
|
|
35
|
+
typeName: 'helloworld.v1.GreeterService',
|
|
36
|
+
methods: {
|
|
37
|
+
/**
|
|
38
|
+
* Sends a greeting
|
|
39
|
+
*
|
|
40
|
+
* @generated from rpc helloworld.v1.GreeterService.SayHello
|
|
41
|
+
*/
|
|
42
|
+
sayHello: {
|
|
43
|
+
name: 'SayHello',
|
|
44
|
+
I: SayHelloRequest,
|
|
45
|
+
O: SayHelloResponse,
|
|
46
|
+
kind: MethodKind.Unary,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
} as const;
|
|
@@ -1,3 +1,9 @@
|
|
|
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
|
+
|
|
1
7
|
// Copyright 2015 gRPC authors.
|
|
2
8
|
//
|
|
3
9
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -0,0 +1,39 @@
|
|
|
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 kas/nanotdf/v1/nanotdf_rewrap.proto (package kas.nanotdf.v1, syntax proto3)
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
// @ts-nocheck
|
|
11
|
+
|
|
12
|
+
import { RewrapRequest, RewrapResponse } from './nanotdf_rewrap_pb.js';
|
|
13
|
+
import { MethodKind } from '@bufbuild/protobuf';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* NanoTDF-specific rewrap surface area.
|
|
17
|
+
*
|
|
18
|
+
* The request contains a Signed Request Token (SRT). The SRT `requestBody` claim
|
|
19
|
+
* must contain a JSON-encoded NanoTDFRewrapRequestBody (protojson).
|
|
20
|
+
*
|
|
21
|
+
* @generated from service kas.nanotdf.v1.NanoTDFRewrapService
|
|
22
|
+
*/
|
|
23
|
+
export const NanoTDFRewrapService = {
|
|
24
|
+
typeName: 'kas.nanotdf.v1.NanoTDFRewrapService',
|
|
25
|
+
methods: {
|
|
26
|
+
/**
|
|
27
|
+
* Rewrap accepts a signed request token and returns KAS-wrapped keys for
|
|
28
|
+
* each requested NanoTDF header.
|
|
29
|
+
*
|
|
30
|
+
* @generated from rpc kas.nanotdf.v1.NanoTDFRewrapService.Rewrap
|
|
31
|
+
*/
|
|
32
|
+
rewrap: {
|
|
33
|
+
name: 'Rewrap',
|
|
34
|
+
I: RewrapRequest,
|
|
35
|
+
O: RewrapResponse,
|
|
36
|
+
kind: MethodKind.Unary,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
} as const;
|
|
@@ -0,0 +1,207 @@
|
|
|
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);
|
|
@@ -0,0 +1,56 @@
|
|
|
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;
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
serviceDesc,
|
|
20
20
|
} from '@bufbuild/protobuf/codegenv1';
|
|
21
21
|
import { file_google_api_annotations } from '../../google/api/annotations_pb';
|
|
22
|
+
import { file_google_protobuf_wrappers } from '@bufbuild/protobuf/wkt';
|
|
22
23
|
import type { Message } from '@bufbuild/protobuf';
|
|
23
24
|
|
|
24
25
|
/**
|
|
@@ -27,8 +28,8 @@ import type { Message } from '@bufbuild/protobuf';
|
|
|
27
28
|
export const file_policyimportexport_v1_policy_import_export: GenFile =
|
|
28
29
|
/*@__PURE__*/
|
|
29
30
|
fileDesc(
|
|
30
|
-
'
|
|
31
|
-
[file_google_api_annotations]
|
|
31
|
+
'CjBwb2xpY3lpbXBvcnRleHBvcnQvdjEvcG9saWN5X2ltcG9ydF9leHBvcnQucHJvdG8SFXBvbGljeWltcG9ydGV4cG9ydC52MSJLChdUcnVzdGV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rL3YyL2dlbi9wb2xpY3lpbXBvcnRleHBvcnQvdjE7cG9saWN5aW1wb3J0ZXhwb3J0djGiAgNQWFiqAhVQb2xpY3lpbXBvcnRleHBvcnQuVjHKAhVQb2xpY3lpbXBvcnRleHBvcnRcVjHiAiFQb2xpY3lpbXBvcnRleHBvcnRcVjFcR1BCTWV0YWRhdGHqAhZQb2xpY3lpbXBvcnRleHBvcnQ6OlYxYgZwcm90bzM',
|
|
32
|
+
[file_google_api_annotations, file_google_protobuf_wrappers]
|
|
32
33
|
);
|
|
33
34
|
|
|
34
35
|
/**
|
|
@@ -243,6 +244,13 @@ export type CreateExportArtifactsRequest =
|
|
|
243
244
|
* @generated from field: bool no_bundle = 2;
|
|
244
245
|
*/
|
|
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;
|
|
246
254
|
};
|
|
247
255
|
|
|
248
256
|
/**
|
|
@@ -0,0 +1,61 @@
|
|
|
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;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Virtru Corporation. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Your use of this file is governed by the Virtu Terms of Service <https://www.virtru.com/terms-of-service/>.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
|
|
8
|
+
// @generated from file shared/v2/shared.proto (package shared.v2, syntax proto3)
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
// @ts-nocheck
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
GetMyEntitlementsRequest,
|
|
14
|
+
GetMyEntitlementsResponse,
|
|
15
|
+
} from './shared_pb.js';
|
|
16
|
+
import { MethodIdempotency, MethodKind } from '@bufbuild/protobuf';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* EXPERIMENTAL/UNSTABLE SERVICE
|
|
20
|
+
*
|
|
21
|
+
* @generated from service shared.v2.SharedService
|
|
22
|
+
*/
|
|
23
|
+
export const SharedService = {
|
|
24
|
+
typeName: 'shared.v2.SharedService',
|
|
25
|
+
methods: {
|
|
26
|
+
/**
|
|
27
|
+
* Gets user's entitlements based on their OIDC token provided in the auth header
|
|
28
|
+
*
|
|
29
|
+
* @generated from rpc shared.v2.SharedService.GetMyEntitlements
|
|
30
|
+
*/
|
|
31
|
+
getMyEntitlements: {
|
|
32
|
+
name: 'GetMyEntitlements',
|
|
33
|
+
I: GetMyEntitlementsRequest,
|
|
34
|
+
O: GetMyEntitlementsResponse,
|
|
35
|
+
kind: MethodKind.Unary,
|
|
36
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
} as const;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Virtru Corporation. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Your use of this file is governed by the Virtu Terms of Service <https://www.virtru.com/terms-of-service/>.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
|
|
8
|
+
// @generated from file tagging/pdp/v2/externalprocessors/processor.proto (package tagging.pdp.externalprocessors.v2, syntax proto3)
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
// @ts-nocheck
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
ExternalExtractContentRequest,
|
|
14
|
+
ExternalExtractContentResponse,
|
|
15
|
+
ExternalExtractTagsRequest,
|
|
16
|
+
ExternalExtractTagsResponse,
|
|
17
|
+
ExternalProcessTagsRequest,
|
|
18
|
+
ExternalProcessTagsResponse,
|
|
19
|
+
ExternalRollupTagsRequest,
|
|
20
|
+
ExternalRollupTagsResponse,
|
|
21
|
+
HealthCheckResponse,
|
|
22
|
+
} from './processor_pb.js';
|
|
23
|
+
import { Empty, MethodKind } from '@bufbuild/protobuf';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Service definition for gRPC-based tag extraction
|
|
27
|
+
*
|
|
28
|
+
* @generated from service tagging.pdp.externalprocessors.v2.ContentExtractionProcessorService
|
|
29
|
+
*/
|
|
30
|
+
export const ContentExtractionProcessorService = {
|
|
31
|
+
typeName:
|
|
32
|
+
'tagging.pdp.externalprocessors.v2.ContentExtractionProcessorService',
|
|
33
|
+
methods: {
|
|
34
|
+
/**
|
|
35
|
+
* Extract content from a document using external gRPC service
|
|
36
|
+
*
|
|
37
|
+
* @generated from rpc tagging.pdp.externalprocessors.v2.ContentExtractionProcessorService.ExtractContent
|
|
38
|
+
*/
|
|
39
|
+
extractContent: {
|
|
40
|
+
name: 'ExtractContent',
|
|
41
|
+
I: ExternalExtractContentRequest,
|
|
42
|
+
O: ExternalExtractContentResponse,
|
|
43
|
+
kind: MethodKind.Unary,
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* Health check for the extraction service
|
|
47
|
+
*
|
|
48
|
+
* @generated from rpc tagging.pdp.externalprocessors.v2.ContentExtractionProcessorService.HealthCheck
|
|
49
|
+
*/
|
|
50
|
+
healthCheck: {
|
|
51
|
+
name: 'HealthCheck',
|
|
52
|
+
I: Empty,
|
|
53
|
+
O: HealthCheckResponse,
|
|
54
|
+
kind: MethodKind.Unary,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
} as const;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Service definition for gRPC-based tag extraction
|
|
61
|
+
*
|
|
62
|
+
* @generated from service tagging.pdp.externalprocessors.v2.TagExtractionProcessorService
|
|
63
|
+
*/
|
|
64
|
+
export const TagExtractionProcessorService = {
|
|
65
|
+
typeName: 'tagging.pdp.externalprocessors.v2.TagExtractionProcessorService',
|
|
66
|
+
methods: {
|
|
67
|
+
/**
|
|
68
|
+
* Extract tags from content using external gRPC service
|
|
69
|
+
*
|
|
70
|
+
* @generated from rpc tagging.pdp.externalprocessors.v2.TagExtractionProcessorService.ExtractTags
|
|
71
|
+
*/
|
|
72
|
+
extractTags: {
|
|
73
|
+
name: 'ExtractTags',
|
|
74
|
+
I: ExternalExtractTagsRequest,
|
|
75
|
+
O: ExternalExtractTagsResponse,
|
|
76
|
+
kind: MethodKind.Unary,
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* Health check for the extraction service
|
|
80
|
+
*
|
|
81
|
+
* @generated from rpc tagging.pdp.externalprocessors.v2.TagExtractionProcessorService.HealthCheck
|
|
82
|
+
*/
|
|
83
|
+
healthCheck: {
|
|
84
|
+
name: 'HealthCheck',
|
|
85
|
+
I: Empty,
|
|
86
|
+
O: HealthCheckResponse,
|
|
87
|
+
kind: MethodKind.Unary,
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
} as const;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Service definition for gRPC-based tag processing
|
|
94
|
+
*
|
|
95
|
+
* @generated from service tagging.pdp.externalprocessors.v2.TagProcessorService
|
|
96
|
+
*/
|
|
97
|
+
export const TagProcessorService = {
|
|
98
|
+
typeName: 'tagging.pdp.externalprocessors.v2.TagProcessorService',
|
|
99
|
+
methods: {
|
|
100
|
+
/**
|
|
101
|
+
* Process tags using external gRPC service
|
|
102
|
+
*
|
|
103
|
+
* @generated from rpc tagging.pdp.externalprocessors.v2.TagProcessorService.ProcessTags
|
|
104
|
+
*/
|
|
105
|
+
processTags: {
|
|
106
|
+
name: 'ProcessTags',
|
|
107
|
+
I: ExternalProcessTagsRequest,
|
|
108
|
+
O: ExternalProcessTagsResponse,
|
|
109
|
+
kind: MethodKind.Unary,
|
|
110
|
+
},
|
|
111
|
+
/**
|
|
112
|
+
* Health check for the processing service
|
|
113
|
+
*
|
|
114
|
+
* @generated from rpc tagging.pdp.externalprocessors.v2.TagProcessorService.HealthCheck
|
|
115
|
+
*/
|
|
116
|
+
healthCheck: {
|
|
117
|
+
name: 'HealthCheck',
|
|
118
|
+
I: Empty,
|
|
119
|
+
O: HealthCheckResponse,
|
|
120
|
+
kind: MethodKind.Unary,
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
} as const;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Service definition for gRPC-based tag rollup
|
|
127
|
+
*
|
|
128
|
+
* @generated from service tagging.pdp.externalprocessors.v2.TagRollupProcessorService
|
|
129
|
+
*/
|
|
130
|
+
export const TagRollupProcessorService = {
|
|
131
|
+
typeName: 'tagging.pdp.externalprocessors.v2.TagRollupProcessorService',
|
|
132
|
+
methods: {
|
|
133
|
+
/**
|
|
134
|
+
* Perform tag rollup using external gRPC service
|
|
135
|
+
*
|
|
136
|
+
* @generated from rpc tagging.pdp.externalprocessors.v2.TagRollupProcessorService.RollupTags
|
|
137
|
+
*/
|
|
138
|
+
rollupTags: {
|
|
139
|
+
name: 'RollupTags',
|
|
140
|
+
I: ExternalRollupTagsRequest,
|
|
141
|
+
O: ExternalRollupTagsResponse,
|
|
142
|
+
kind: MethodKind.Unary,
|
|
143
|
+
},
|
|
144
|
+
/**
|
|
145
|
+
* Health check for the processing service
|
|
146
|
+
*
|
|
147
|
+
* @generated from rpc tagging.pdp.externalprocessors.v2.TagRollupProcessorService.HealthCheck
|
|
148
|
+
*/
|
|
149
|
+
healthCheck: {
|
|
150
|
+
name: 'HealthCheck',
|
|
151
|
+
I: Empty,
|
|
152
|
+
O: HealthCheckResponse,
|
|
153
|
+
kind: MethodKind.Unary,
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
} as const;
|