@virtru/dsp-sdk 0.3.1 → 0.4.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.
- package/.rush/temp/chunked-rush-logs/dsp-sdk._phase_build.chunks.jsonl +9 -20
- package/.rush/temp/chunked-rush-logs/dsp-sdk._phase_test.chunks.jsonl +29 -46
- package/.rush/temp/package-deps__phase_build.json +31 -17
- package/.rush/temp/shrinkwrap-deps.json +925 -131
- package/CHANGELOG.json +28 -0
- package/CHANGELOG.md +15 -1
- package/README.md +10 -0
- package/config/jest.config.json +6 -0
- package/config/rig.json +8 -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/lib-commonjs/src/gen/buf/validate/validate_pb.js +487 -0
- package/lib-commonjs/src/gen/config/v1/config_pb.js +142 -0
- package/lib-commonjs/src/gen/config/v1/kas_config_pb.js +72 -0
- package/lib-commonjs/src/gen/config/v1/meta_pb.js +36 -0
- package/lib-commonjs/src/gen/config/v1/outlook_config_pb.js +67 -0
- package/lib-commonjs/src/gen/config/v1/secureviewer_config_pb.js +67 -0
- package/lib-commonjs/src/gen/config/v1/tagging_pb.js +246 -0
- package/lib-commonjs/src/gen/google/api/annotations_pb.js +33 -0
- package/lib-commonjs/src/gen/google/api/http_pb.js +44 -0
- package/lib-commonjs/src/gen/policyimportexport/v1/policy_import_export_pb.js +93 -0
- package/lib-commonjs/src/gen/shared/v1/shared_pb.js +95 -0
- package/lib-commonjs/src/gen/tagging/pdp/v2/tagging_pb.js +277 -0
- package/lib-commonjs/src/gen/version/v1/version_pb.js +40 -0
- package/lib-commonjs/src/gen/virtru/common/common_pb.js +76 -0
- package/lib-commonjs/src/gen/virtru/policy/certificates/v1/certificates_pb.js +77 -0
- package/lib-commonjs/src/gen/virtru/policy/objects_pb.js +143 -0
- package/lib-commonjs/src/index.js +48 -0
- package/lib-commonjs/src/lib/client.js +66 -0
- package/lib-commonjs/src/lib/consts.js +10 -0
- package/lib-commonjs/src/lib/dsp.js +49 -0
- package/lib-commonjs/src/lib/utils.js +402 -0
- package/lib-commonjs/tests/dsp-client.test.js +75 -0
- package/lib-commonjs/tests/dsp.test.js +94 -0
- package/lib-commonjs/tests/mocks/create-export-artifacts.js +17 -0
- package/lib-commonjs/tests/mocks/tagging-pdp-tag.js +15 -0
- package/lib-commonjs/tests/mocks/well-known-configuration.js +16 -0
- package/lib-commonjs/tests/setup-msw.js +33 -0
- package/package.json +12 -6
- 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/temp/build/lint/_eslint-5eVG3S6w.json +30 -0
- package/temp/test/jest/haste-map-b055a9550e6d9f9b43d8ad29b1607278-49d19aee56a0732eca9c014a51272338-8710993d07b75a801b0956e67ffc46fa +0 -0
- package/tests/dsp.test.ts +2 -6
- package/update-protos.sh +63 -0
- package/vitest.config.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virtru/dsp-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -19,23 +19,28 @@
|
|
|
19
19
|
"node": ">=18.0.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
+
"@eslint/js": "~9.39.2",
|
|
22
23
|
"@types/node": "^22.0.0",
|
|
23
24
|
"@vitest/browser": "~3.1.3",
|
|
25
|
+
"eslint": "^9.17.0",
|
|
26
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
24
27
|
"globals": "^16.3.0",
|
|
25
28
|
"jsdom": "^22.1.0",
|
|
26
29
|
"msw": "^2.8.4",
|
|
27
30
|
"playwright": "^1.52.0",
|
|
31
|
+
"typescript": "5.8.2",
|
|
32
|
+
"typescript-eslint": "^8.39.1",
|
|
28
33
|
"vite": "^5.4.21",
|
|
29
34
|
"vite-plugin-dts": "^4.5.4",
|
|
30
|
-
"vitest": "~3.1.3"
|
|
31
|
-
"typescript": "5.8.2"
|
|
35
|
+
"vitest": "~3.1.3"
|
|
32
36
|
},
|
|
33
37
|
"dependencies": {
|
|
34
38
|
"@bufbuild/protobuf": "^2.7.0",
|
|
35
39
|
"@connectrpc/connect": "~2.0.2",
|
|
36
40
|
"@connectrpc/connect-web": "~2.0.2",
|
|
37
41
|
"@opentdf/sdk": "0.9.0-rc.82",
|
|
38
|
-
"@rushstack/heft": "^
|
|
42
|
+
"@rushstack/heft": "^1.1.14",
|
|
43
|
+
"@rushstack/heft-web-rig": "^1.3.0",
|
|
39
44
|
"asn1js": "^3.0.5",
|
|
40
45
|
"pkijs": "^3.0.19"
|
|
41
46
|
},
|
|
@@ -43,8 +48,9 @@
|
|
|
43
48
|
"build": "heft build --clean",
|
|
44
49
|
"lint": "eslint .",
|
|
45
50
|
"lint:fix": "eslint . --fix",
|
|
46
|
-
"test": "
|
|
51
|
+
"test": "vitest --run",
|
|
52
|
+
"update-protos": "./update-protos.sh",
|
|
47
53
|
"_phase:build": "heft build --clean",
|
|
48
|
-
"_phase:test": "npm run test && heft test
|
|
54
|
+
"_phase:test": "npm run test && heft test"
|
|
49
55
|
}
|
|
50
56
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Your use of this file is governed by the Virtu Terms of Service <https://www.virtru.com/terms-of-service/>.
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
// @generated by protoc-gen-es v2.3.0 with parameter "target=ts"
|
|
7
8
|
// @generated from file config/formatters/testdata/v1/test.proto (package config.formatters.testdata.v1, syntax proto3)
|
|
8
9
|
/* eslint-disable */
|
|
@@ -0,0 +1,111 @@
|
|
|
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 config/v1/config.proto (package config.v1, syntax proto3)
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
// @ts-nocheck
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
GetKASConfigRequest,
|
|
14
|
+
GetKASConfigResponse,
|
|
15
|
+
GetOutlookConfigRequest,
|
|
16
|
+
GetOutlookConfigResponse,
|
|
17
|
+
GetSecureViewerConfigRequest,
|
|
18
|
+
GetSecureViewerConfigResponse,
|
|
19
|
+
GetTaggingPDPConfigRequest,
|
|
20
|
+
GetTaggingPDPConfigResponse,
|
|
21
|
+
SetKASConfigRequest,
|
|
22
|
+
SetKASConfigResponse,
|
|
23
|
+
SetOutlookConfigRequest,
|
|
24
|
+
SetOutlookConfigResponse,
|
|
25
|
+
SetSecureViewerConfigRequest,
|
|
26
|
+
SetSecureViewerConfigResponse,
|
|
27
|
+
SetTaggingPDPConfigRequest,
|
|
28
|
+
SetTaggingPDPConfigResponse,
|
|
29
|
+
} from './config_pb.js';
|
|
30
|
+
import { MethodKind } from '@bufbuild/protobuf';
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @generated from service config.v1.ConfigService
|
|
34
|
+
*/
|
|
35
|
+
export const ConfigService = {
|
|
36
|
+
typeName: 'config.v1.ConfigService',
|
|
37
|
+
methods: {
|
|
38
|
+
/**
|
|
39
|
+
* @generated from rpc config.v1.ConfigService.GetTaggingPDPConfig
|
|
40
|
+
*/
|
|
41
|
+
getTaggingPDPConfig: {
|
|
42
|
+
name: 'GetTaggingPDPConfig',
|
|
43
|
+
I: GetTaggingPDPConfigRequest,
|
|
44
|
+
O: GetTaggingPDPConfigResponse,
|
|
45
|
+
kind: MethodKind.Unary,
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* @generated from rpc config.v1.ConfigService.SetTaggingPDPConfig
|
|
49
|
+
*/
|
|
50
|
+
setTaggingPDPConfig: {
|
|
51
|
+
name: 'SetTaggingPDPConfig',
|
|
52
|
+
I: SetTaggingPDPConfigRequest,
|
|
53
|
+
O: SetTaggingPDPConfigResponse,
|
|
54
|
+
kind: MethodKind.Unary,
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* @generated from rpc config.v1.ConfigService.GetSecureViewerConfig
|
|
58
|
+
*/
|
|
59
|
+
getSecureViewerConfig: {
|
|
60
|
+
name: 'GetSecureViewerConfig',
|
|
61
|
+
I: GetSecureViewerConfigRequest,
|
|
62
|
+
O: GetSecureViewerConfigResponse,
|
|
63
|
+
kind: MethodKind.Unary,
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* @generated from rpc config.v1.ConfigService.SetSecureViewerConfig
|
|
67
|
+
*/
|
|
68
|
+
setSecureViewerConfig: {
|
|
69
|
+
name: 'SetSecureViewerConfig',
|
|
70
|
+
I: SetSecureViewerConfigRequest,
|
|
71
|
+
O: SetSecureViewerConfigResponse,
|
|
72
|
+
kind: MethodKind.Unary,
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* @generated from rpc config.v1.ConfigService.GetOutlookConfig
|
|
76
|
+
*/
|
|
77
|
+
getOutlookConfig: {
|
|
78
|
+
name: 'GetOutlookConfig',
|
|
79
|
+
I: GetOutlookConfigRequest,
|
|
80
|
+
O: GetOutlookConfigResponse,
|
|
81
|
+
kind: MethodKind.Unary,
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* @generated from rpc config.v1.ConfigService.SetOutlookConfig
|
|
85
|
+
*/
|
|
86
|
+
setOutlookConfig: {
|
|
87
|
+
name: 'SetOutlookConfig',
|
|
88
|
+
I: SetOutlookConfigRequest,
|
|
89
|
+
O: SetOutlookConfigResponse,
|
|
90
|
+
kind: MethodKind.Unary,
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* @generated from rpc config.v1.ConfigService.GetKASConfig
|
|
94
|
+
*/
|
|
95
|
+
getKASConfig: {
|
|
96
|
+
name: 'GetKASConfig',
|
|
97
|
+
I: GetKASConfigRequest,
|
|
98
|
+
O: GetKASConfigResponse,
|
|
99
|
+
kind: MethodKind.Unary,
|
|
100
|
+
},
|
|
101
|
+
/**
|
|
102
|
+
* @generated from rpc config.v1.ConfigService.SetKASConfig
|
|
103
|
+
*/
|
|
104
|
+
setKASConfig: {
|
|
105
|
+
name: 'SetKASConfig',
|
|
106
|
+
I: SetKASConfigRequest,
|
|
107
|
+
O: SetKASConfigResponse,
|
|
108
|
+
kind: MethodKind.Unary,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
} as const;
|
|
@@ -24,7 +24,7 @@ import type { Message } from '@bufbuild/protobuf';
|
|
|
24
24
|
export const file_config_v1_tagging: GenFile =
|
|
25
25
|
/*@__PURE__*/
|
|
26
26
|
fileDesc(
|
|
27
|
-
'
|
|
27
|
+
'Chdjb25maWcvdjEvdGFnZ2luZy5wcm90bxIJY29uZmlnLnYxIlEKEFRhZ2dpbmdQRFBDb25maWcSKwoCdjEYASABKAsyHS5jb25maWcudjEuVGFnZ2luZ1BEUENvbmZpZ1YxSABCEAoHdmVyc2lvbhIFukgCCAEiqAMKElRhZ2dpbmdQRFBDb25maWdWMRI3ChJjb250ZW50X2V4dHJhY3RvcnMYASADKAsyGy5jb25maWcudjEuQ29udGVudEV4dHJhY3RvchI6ChR0YWdfZXh0cmFjdGlvbl9ydWxlcxgCIAMoCzIcLmNvbmZpZy52MS5UYWdFeHRyYWN0aW9uUnVsZRIvCg50YWdfcHJvY2Vzc29ycxgDIAMoCzIXLmNvbmZpZy52MS5UYWdQcm9jZXNzb3ISKwoMcm9sbHVwX3J1bGVzGAQgAygLMhUuY29uZmlnLnYxLlJvbGx1cFJ1bGUSgAEKEmF0dHJpYnV0ZV9wcm90b2NvbBgFIAEoCUJkgrUYYAoSQXR0cmlidXRlIFByb3RvY29sEkpUaGUgcHJvdG9jb2wgcHJlZml4IHRvIGJlIGFkZGVkIHRvIGRhdGEgYXR0cmlidXRlIHRhZ3MgKGUuZ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x1cBI5CiBST0xMVVBfUlVMRV9UWVBFX0RST1BfRFVQTElDQVRFUxACGhOCtRgPRHJvcCBEdXBsaWNhdGVzEkYKJlJPTExVUF9SVUxFX1RZUEVfU1RBTkFHNTYzNl9BU1NFUlRJT05TEAMaGoK1GBZTVEFOQUcgNTYzNiBBc3NlcnRpb25zEjsKIVJPTExVUF9SVUxFX1RZUEVfSUNFREhfQVNTRVJUSU9OUxAEGhSCtRgQSUNFREggQXNzZXJ0aW9ucxIxChxST0xMVVBfUlVMRV9UWVBFX0dSUENfUk9MTFVQEAUaD4K1GAtnUlBDIFJvbGx1cBIxChxST0xMVVBfUlVMRV9UWVBFX0hUVFBfUk9MTFVQEAYaD4K1GAtIVFRQIFJvbGx1cEKvAQoNY29tLmNvbmZpZy52MUIMVGFnZ2luZ1Byb3RvUAFaS2dpdGh1Yi5jb20vdmlydHJ1LWNvcnAvZGF0YS1zZWN1cml0eS1wbGF0Zm9ybS9zZGsvdjIvZ2VuL2NvbmZpZy92MTtjb25maWd2MaICA0NYWKoCCUNvbmZpZy5WMcoCCUNvbmZpZ1xWMeICFUNvbmZpZ1xWMVxHUEJNZXRhZGF0YeoCCkNvbmZpZzo6VjFiBnByb3RvMw',
|
|
28
28
|
[file_buf_validate_validate, file_config_v1_meta]
|
|
29
29
|
);
|
|
30
30
|
|
|
@@ -55,6 +55,8 @@ export const TaggingPDPConfigSchema: GenMessage<TaggingPDPConfig> =
|
|
|
55
55
|
messageDesc(file_config_v1_tagging, 0);
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
+
* Tagging PDP configuration, mirroring the FlowDescr Go struct.
|
|
59
|
+
*
|
|
58
60
|
* @generated from message config.v1.TaggingPDPConfigV1
|
|
59
61
|
*/
|
|
60
62
|
export type TaggingPDPConfigV1 = Message<'config.v1.TaggingPDPConfigV1'> & {
|
|
@@ -77,6 +79,20 @@ export type TaggingPDPConfigV1 = Message<'config.v1.TaggingPDPConfigV1'> & {
|
|
|
77
79
|
* @generated from field: repeated config.v1.RollupRule rollup_rules = 4;
|
|
78
80
|
*/
|
|
79
81
|
rollupRules: RollupRule[];
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Matches FlowDescr.AttributeProtocol.
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: string attribute_protocol = 5;
|
|
87
|
+
*/
|
|
88
|
+
attributeProtocol: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Matches FlowDescr.ResourceMappingSets.
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: repeated config.v1.ResourceMappingSet resource_mapping_sets = 6;
|
|
94
|
+
*/
|
|
95
|
+
resourceMappingSets: ResourceMappingSet[];
|
|
80
96
|
};
|
|
81
97
|
|
|
82
98
|
/**
|
|
@@ -87,6 +103,31 @@ export const TaggingPDPConfigV1Schema: GenMessage<TaggingPDPConfigV1> =
|
|
|
87
103
|
/*@__PURE__*/
|
|
88
104
|
messageDesc(file_config_v1_tagging, 1);
|
|
89
105
|
|
|
106
|
+
/**
|
|
107
|
+
* Represents a synonym dictionary for a set of attribute groups.
|
|
108
|
+
*
|
|
109
|
+
* @generated from message config.v1.ResourceMappingSet
|
|
110
|
+
*/
|
|
111
|
+
export type ResourceMappingSet = Message<'config.v1.ResourceMappingSet'> & {
|
|
112
|
+
/**
|
|
113
|
+
* @generated from field: repeated string group_fqns = 1;
|
|
114
|
+
*/
|
|
115
|
+
groupFqns: string[];
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: map<string, string> mappings = 2;
|
|
119
|
+
*/
|
|
120
|
+
mappings: { [key: string]: string };
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Describes the message config.v1.ResourceMappingSet.
|
|
125
|
+
* Use `create(ResourceMappingSetSchema)` to create a new message.
|
|
126
|
+
*/
|
|
127
|
+
export const ResourceMappingSetSchema: GenMessage<ResourceMappingSet> =
|
|
128
|
+
/*@__PURE__*/
|
|
129
|
+
messageDesc(file_config_v1_tagging, 2);
|
|
130
|
+
|
|
90
131
|
/**
|
|
91
132
|
* @generated from message config.v1.ContentExtractor
|
|
92
133
|
*/
|
|
@@ -113,7 +154,7 @@ export type ContentExtractor = Message<'config.v1.ContentExtractor'> & {
|
|
|
113
154
|
*/
|
|
114
155
|
export const ContentExtractorSchema: GenMessage<ContentExtractor> =
|
|
115
156
|
/*@__PURE__*/
|
|
116
|
-
messageDesc(file_config_v1_tagging,
|
|
157
|
+
messageDesc(file_config_v1_tagging, 3);
|
|
117
158
|
|
|
118
159
|
/**
|
|
119
160
|
* @generated from message config.v1.TagExtractionRule
|
|
@@ -146,7 +187,7 @@ export type TagExtractionRule = Message<'config.v1.TagExtractionRule'> & {
|
|
|
146
187
|
*/
|
|
147
188
|
export const TagExtractionRuleSchema: GenMessage<TagExtractionRule> =
|
|
148
189
|
/*@__PURE__*/
|
|
149
|
-
messageDesc(file_config_v1_tagging,
|
|
190
|
+
messageDesc(file_config_v1_tagging, 4);
|
|
150
191
|
|
|
151
192
|
/**
|
|
152
193
|
* @generated from message config.v1.TagProcessor
|
|
@@ -174,7 +215,7 @@ export type TagProcessor = Message<'config.v1.TagProcessor'> & {
|
|
|
174
215
|
*/
|
|
175
216
|
export const TagProcessorSchema: GenMessage<TagProcessor> =
|
|
176
217
|
/*@__PURE__*/
|
|
177
|
-
messageDesc(file_config_v1_tagging,
|
|
218
|
+
messageDesc(file_config_v1_tagging, 5);
|
|
178
219
|
|
|
179
220
|
/**
|
|
180
221
|
* @generated from message config.v1.RollupRule
|
|
@@ -202,7 +243,7 @@ export type RollupRule = Message<'config.v1.RollupRule'> & {
|
|
|
202
243
|
*/
|
|
203
244
|
export const RollupRuleSchema: GenMessage<RollupRule> =
|
|
204
245
|
/*@__PURE__*/
|
|
205
|
-
messageDesc(file_config_v1_tagging,
|
|
246
|
+
messageDesc(file_config_v1_tagging, 6);
|
|
206
247
|
|
|
207
248
|
/**
|
|
208
249
|
* @generated from enum config.v1.TaggingPDPConfigVersion
|
|
@@ -244,6 +285,16 @@ export enum ContentExtractorType {
|
|
|
244
285
|
* @generated from enum value: CONTENT_EXTRACTOR_TYPE_TITUS_METADATA = 2;
|
|
245
286
|
*/
|
|
246
287
|
TITUS_METADATA = 2,
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @generated from enum value: CONTENT_EXTRACTOR_TYPE_GRPC_CONTENT_EXTRACTION = 3;
|
|
291
|
+
*/
|
|
292
|
+
GRPC_CONTENT_EXTRACTION = 3,
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @generated from enum value: CONTENT_EXTRACTOR_TYPE_HTTP_CONTENT_EXTRACTION = 4;
|
|
296
|
+
*/
|
|
297
|
+
HTTP_CONTENT_EXTRACTION = 4,
|
|
247
298
|
}
|
|
248
299
|
|
|
249
300
|
/**
|
|
@@ -281,6 +332,31 @@ export enum TagExtractionRuleType {
|
|
|
281
332
|
* @generated from enum value: TAG_EXTRACTION_RULE_TYPE_REGEX = 4;
|
|
282
333
|
*/
|
|
283
334
|
REGEX = 4,
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* @generated from enum value: TAG_EXTRACTION_RULE_TYPE_STANAG4774_EXTRACTOR = 5;
|
|
338
|
+
*/
|
|
339
|
+
STANAG4774_EXTRACTOR = 5,
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @generated from enum value: TAG_EXTRACTION_RULE_TYPE_STANAG5636_EXTRACTOR = 6;
|
|
343
|
+
*/
|
|
344
|
+
STANAG5636_EXTRACTOR = 6,
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @generated from enum value: TAG_EXTRACTION_RULE_TYPE_GRPC_TAG_EXTRACTOR = 7;
|
|
348
|
+
*/
|
|
349
|
+
GRPC_TAG_EXTRACTOR = 7,
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @generated from enum value: TAG_EXTRACTION_RULE_TYPE_HTTP_TAG_EXTRACTOR = 8;
|
|
353
|
+
*/
|
|
354
|
+
HTTP_TAG_EXTRACTOR = 8,
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* @generated from enum value: TAG_EXTRACTION_RULE_TYPE_TITUS_METADATA = 9;
|
|
358
|
+
*/
|
|
359
|
+
TITUS_METADATA = 9,
|
|
284
360
|
}
|
|
285
361
|
|
|
286
362
|
/**
|
|
@@ -308,6 +384,21 @@ export enum TagProcessorType {
|
|
|
308
384
|
* @generated from enum value: TAG_PROCESSOR_TYPE_TAG_MISMATCH = 2;
|
|
309
385
|
*/
|
|
310
386
|
TAG_MISMATCH = 2,
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* @generated from enum value: TAG_PROCESSOR_TYPE_DEFAULT_VALUES = 3;
|
|
390
|
+
*/
|
|
391
|
+
DEFAULT_VALUES = 3,
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* @generated from enum value: TAG_PROCESSOR_TYPE_GRPC_TAG_PROCESSOR = 4;
|
|
395
|
+
*/
|
|
396
|
+
GRPC_TAG_PROCESSOR = 4,
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* @generated from enum value: TAG_PROCESSOR_TYPE_HTTP_TAG_PROCESSOR = 5;
|
|
400
|
+
*/
|
|
401
|
+
HTTP_TAG_PROCESSOR = 5,
|
|
311
402
|
}
|
|
312
403
|
|
|
313
404
|
/**
|
|
@@ -345,6 +436,16 @@ export enum RollupRuleType {
|
|
|
345
436
|
* @generated from enum value: ROLLUP_RULE_TYPE_ICEDH_ASSERTIONS = 4;
|
|
346
437
|
*/
|
|
347
438
|
ICEDH_ASSERTIONS = 4,
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* @generated from enum value: ROLLUP_RULE_TYPE_GRPC_ROLLUP = 5;
|
|
442
|
+
*/
|
|
443
|
+
GRPC_ROLLUP = 5,
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* @generated from enum value: ROLLUP_RULE_TYPE_HTTP_ROLLUP = 6;
|
|
447
|
+
*/
|
|
448
|
+
HTTP_ROLLUP = 6,
|
|
348
449
|
}
|
|
349
450
|
|
|
350
451
|
/**
|
|
@@ -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
|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|
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);
|