@virtru/dsp-sdk 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/README.md +81 -3
- package/dist/src/fips.d.ts +7 -0
- package/dist/src/fips.js +12 -0
- package/dist/src/lib/dsp.d.ts +17 -1
- package/dist/src/lib/dsp.js +28 -5
- package/package.json +23 -2
- package/.prettierrc +0 -3
- package/.rush/temp/chunked-rush-logs/dsp-sdk._phase_build.chunks.jsonl +0 -12
- package/.rush/temp/chunked-rush-logs/dsp-sdk._phase_test.chunks.jsonl +0 -383
- package/.rush/temp/package-deps__phase_build.json +0 -76
- package/.rush/temp/shrinkwrap-deps.json +0 -1262
- package/CHANGELOG.json +0 -299
- package/buf.gen.yaml +0 -17
- package/buf.yaml +0 -4
- package/config/jest.config.json +0 -6
- package/config/rig.json +0 -8
- package/dist/tests/dsp-client.test.d.ts +0 -1
- package/dist/tests/dsp-client.test.js +0 -73
- package/dist/tests/dsp.test.d.ts +0 -1
- package/dist/tests/dsp.test.js +0 -92
- package/dist/tests/fips-crypto.unit.test.d.ts +0 -1
- package/dist/tests/fips-crypto.unit.test.js +0 -258
- package/dist/tests/mocks/create-export-artifacts.d.ts +0 -2
- package/dist/tests/mocks/create-export-artifacts.js +0 -13
- package/dist/tests/mocks/tagging-pdp-tag.d.ts +0 -2
- package/dist/tests/mocks/tagging-pdp-tag.js +0 -11
- package/dist/tests/mocks/well-known-configuration.d.ts +0 -2
- package/dist/tests/mocks/well-known-configuration.js +0 -12
- package/dist/tests/setup-msw.d.ts +0 -9
- package/dist/tests/setup-msw.js +0 -30
- package/dist/tests/setup-unit.d.ts +0 -7
- package/dist/tests/setup-unit.js +0 -70
- package/eslint.config.mjs +0 -28
- package/lib-commonjs/src/gen/buf/validate/validate_pb.js +0 -487
- package/lib-commonjs/src/gen/config/v1/config_pb.js +0 -142
- package/lib-commonjs/src/gen/config/v1/kas_config_pb.js +0 -72
- package/lib-commonjs/src/gen/config/v1/meta_pb.js +0 -36
- package/lib-commonjs/src/gen/config/v1/outlook_config_pb.js +0 -67
- package/lib-commonjs/src/gen/config/v1/secureviewer_config_pb.js +0 -67
- package/lib-commonjs/src/gen/config/v1/tagging_pb.js +0 -246
- package/lib-commonjs/src/gen/google/api/annotations_pb.js +0 -33
- package/lib-commonjs/src/gen/google/api/http_pb.js +0 -44
- package/lib-commonjs/src/gen/policyimportexport/v1/policy_import_export_pb.js +0 -93
- package/lib-commonjs/src/gen/shared/v1/shared_pb.js +0 -95
- package/lib-commonjs/src/gen/tagging/pdp/v2/tagging_pb.js +0 -277
- package/lib-commonjs/src/gen/version/v1/version_pb.js +0 -40
- package/lib-commonjs/src/gen/virtru/common/common_pb.js +0 -76
- package/lib-commonjs/src/gen/virtru/policy/certificates/v1/certificates_pb.js +0 -77
- package/lib-commonjs/src/gen/virtru/policy/objects_pb.js +0 -143
- package/lib-commonjs/src/index.js +0 -48
- package/lib-commonjs/src/lib/client.js +0 -66
- package/lib-commonjs/src/lib/consts.js +0 -10
- package/lib-commonjs/src/lib/dsp.js +0 -49
- package/lib-commonjs/src/lib/fips-crypto/asymmetric.js +0 -126
- package/lib-commonjs/src/lib/fips-crypto/key-format.js +0 -243
- package/lib-commonjs/src/lib/fips-crypto/keys.js +0 -134
- package/lib-commonjs/src/lib/fips-crypto/primitives.js +0 -112
- package/lib-commonjs/src/lib/fips-crypto/symmetric.js +0 -162
- package/lib-commonjs/src/lib/fips-crypto-service.js +0 -57
- package/lib-commonjs/src/lib/utils.js +0 -401
- package/lib-commonjs/tests/dsp-client.test.js +0 -75
- package/lib-commonjs/tests/dsp.test.js +0 -94
- package/lib-commonjs/tests/fips-crypto.unit.test.js +0 -260
- package/lib-commonjs/tests/mocks/create-export-artifacts.js +0 -17
- package/lib-commonjs/tests/mocks/tagging-pdp-tag.js +0 -15
- package/lib-commonjs/tests/mocks/well-known-configuration.js +0 -16
- package/lib-commonjs/tests/setup-msw.js +0 -33
- package/lib-commonjs/tests/setup-unit.js +0 -72
- package/public/virtru.wasm +0 -0
- package/src/gen/buf/validate/validate_pb.ts +0 -4879
- package/src/gen/config/formatters/testdata/v1/test_pb.ts +0 -287
- package/src/gen/config/v1/config_connect.ts +0 -111
- package/src/gen/config/v1/config_pb.ts +0 -439
- package/src/gen/config/v1/kas_config_pb.ts +0 -183
- package/src/gen/config/v1/meta_pb.ts +0 -72
- package/src/gen/config/v1/outlook_config_pb.ts +0 -242
- package/src/gen/config/v1/secureviewer_config_pb.ts +0 -161
- package/src/gen/config/v1/tagging_pb.ts +0 -456
- package/src/gen/google/api/annotations_pb.ts +0 -43
- package/src/gen/google/api/http_pb.ts +0 -486
- package/src/gen/helloworld/v1/helloworld_connect.ts +0 -49
- package/src/gen/helloworld/v1/helloworld_pb.ts +0 -104
- package/src/gen/kas/nanotdf/v1/nanotdf_rewrap_connect.ts +0 -39
- package/src/gen/kas/nanotdf/v1/nanotdf_rewrap_pb.ts +0 -207
- package/src/gen/policyimportexport/v1/policy_import_export_connect.ts +0 -56
- package/src/gen/policyimportexport/v1/policy_import_export_pb.ts +0 -332
- package/src/gen/shared/v1/shared_connect.ts +0 -61
- package/src/gen/shared/v1/shared_pb.ts +0 -240
- package/src/gen/shared/v2/shared_connect.ts +0 -39
- package/src/gen/shared/v2/shared_pb.ts +0 -122
- package/src/gen/tagging/pdp/v2/externalprocessors/processor_connect.ts +0 -156
- package/src/gen/tagging/pdp/v2/externalprocessors/processor_pb.ts +0 -709
- package/src/gen/tagging/pdp/v2/stanag/stanag_pb.ts +0 -953
- package/src/gen/tagging/pdp/v2/tagging_connect.ts +0 -73
- package/src/gen/tagging/pdp/v2/tagging_pb.ts +0 -1064
- package/src/gen/version/v1/version_connect.ts +0 -31
- package/src/gen/version/v1/version_pb.ts +0 -143
- package/src/gen/virtru/common/common_pb.ts +0 -201
- package/src/gen/virtru/policy/certificates/v1/certificates_connect.ts +0 -44
- package/src/gen/virtru/policy/certificates/v1/certificates_pb.ts +0 -305
- package/src/gen/virtru/policy/objects_pb.ts +0 -253
- package/src/gen/web-admin/v1/config_connect.ts +0 -52
- package/src/gen/web-admin/v1/config_pb.ts +0 -173
- package/src/index.ts +0 -62
- package/src/lib/client.ts +0 -90
- package/src/lib/consts.ts +0 -8
- package/src/lib/dsp.ts +0 -65
- package/src/lib/fips-crypto/asymmetric.ts +0 -162
- package/src/lib/fips-crypto/key-format.ts +0 -287
- package/src/lib/fips-crypto/keys.ts +0 -190
- package/src/lib/fips-crypto/primitives.ts +0 -197
- package/src/lib/fips-crypto/symmetric.ts +0 -213
- package/src/lib/fips-crypto-service.ts +0 -58
- package/src/lib/utils.test.ts +0 -415
- package/src/lib/utils.ts +0 -525
- package/src/vite-env.d.ts +0 -7
- package/temp/build/lint/_eslint-5eVG3S6w.json +0 -38
- package/temp/test/jest/haste-map-b055a9550e6d9f9b43d8ad29b1607278-49d19aee56a0732eca9c014a51272338-8710993d07b75a801b0956e67ffc46fa +0 -0
- package/tests/dsp-client.test.ts +0 -95
- package/tests/dsp.test.ts +0 -119
- package/tests/fips-crypto.unit.test.ts +0 -412
- package/tests/mocks/create-export-artifacts.ts +0 -16
- package/tests/mocks/tagging-pdp-tag.ts +0 -13
- package/tests/mocks/well-known-configuration.ts +0 -15
- package/tests/setup-msw.ts +0 -35
- package/tests/setup-unit.ts +0 -108
- package/tsconfig.json +0 -32
- package/update-protos.sh +0 -63
- package/vitest.config.ts +0 -48
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Virtru Corporation. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Your use of this file is governed by the Virtu Terms of Service <https://www.virtru.com/terms-of-service/>.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
|
|
8
|
-
// @generated from file version/v1/version.proto (package version.v1, syntax proto3)
|
|
9
|
-
/* eslint-disable */
|
|
10
|
-
// @ts-nocheck
|
|
11
|
-
|
|
12
|
-
import { GetVersionRequest, GetVersionResponse } from './version_pb.js';
|
|
13
|
-
import { MethodKind } from '@bufbuild/protobuf';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @generated from service version.v1.VersionService
|
|
17
|
-
*/
|
|
18
|
-
export const VersionService = {
|
|
19
|
-
typeName: 'version.v1.VersionService',
|
|
20
|
-
methods: {
|
|
21
|
-
/**
|
|
22
|
-
* @generated from rpc version.v1.VersionService.GetVersion
|
|
23
|
-
*/
|
|
24
|
-
getVersion: {
|
|
25
|
-
name: 'GetVersion',
|
|
26
|
-
I: GetVersionRequest,
|
|
27
|
-
O: GetVersionResponse,
|
|
28
|
-
kind: MethodKind.Unary,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
} as const;
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Virtru Corporation. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Your use of this file is governed by the Virtu Terms of Service <https://www.virtru.com/terms-of-service/>.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// @generated by protoc-gen-es v2.3.0 with parameter "target=ts"
|
|
8
|
-
// @generated from file version/v1/version.proto (package version.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 version/v1/version.proto.
|
|
25
|
-
*/
|
|
26
|
-
export const file_version_v1_version: GenFile =
|
|
27
|
-
/*@__PURE__*/
|
|
28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|
-
|
|
32
|
-
/**
|
|
33
|
-
* @generated from message version.v1.GetVersionRequest
|
|
34
|
-
*/
|
|
35
|
-
export type GetVersionRequest = Message<'version.v1.GetVersionRequest'> & {};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Describes the message version.v1.GetVersionRequest.
|
|
39
|
-
* Use `create(GetVersionRequestSchema)` to create a new message.
|
|
40
|
-
*/
|
|
41
|
-
export const GetVersionRequestSchema: GenMessage<GetVersionRequest> =
|
|
42
|
-
/*@__PURE__*/
|
|
43
|
-
messageDesc(file_version_v1_version, 0);
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @generated from message version.v1.DependencyInfo
|
|
47
|
-
*/
|
|
48
|
-
export type DependencyInfo = Message<'version.v1.DependencyInfo'> & {
|
|
49
|
-
/**
|
|
50
|
-
* @generated from field: string name = 1;
|
|
51
|
-
*/
|
|
52
|
-
name: string;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @generated from field: string version = 2;
|
|
56
|
-
*/
|
|
57
|
-
version: string;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Describes the message version.v1.DependencyInfo.
|
|
62
|
-
* Use `create(DependencyInfoSchema)` to create a new message.
|
|
63
|
-
*/
|
|
64
|
-
export const DependencyInfoSchema: GenMessage<DependencyInfo> =
|
|
65
|
-
/*@__PURE__*/
|
|
66
|
-
messageDesc(file_version_v1_version, 1);
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @generated from message version.v1.GetVersionResponse
|
|
70
|
-
*/
|
|
71
|
-
export type GetVersionResponse = Message<'version.v1.GetVersionResponse'> & {
|
|
72
|
-
/**
|
|
73
|
-
* @generated from field: string name = 1;
|
|
74
|
-
*/
|
|
75
|
-
name: string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @generated from field: string version = 2;
|
|
79
|
-
*/
|
|
80
|
-
version: string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @generated from field: string git_commit = 3;
|
|
84
|
-
*/
|
|
85
|
-
gitCommit: string;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @generated from field: string build_date = 4;
|
|
89
|
-
*/
|
|
90
|
-
buildDate: string;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @generated from field: string go_version = 5;
|
|
94
|
-
*/
|
|
95
|
-
goVersion: string;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @generated from field: string os_arch = 6;
|
|
99
|
-
*/
|
|
100
|
-
osArch: string;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @generated from field: version.v1.DependencyInfo opentdf_service_version = 7;
|
|
104
|
-
*/
|
|
105
|
-
opentdfServiceVersion?: DependencyInfo;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @generated from field: version.v1.DependencyInfo opentdf_sdk_version = 8;
|
|
109
|
-
*/
|
|
110
|
-
opentdfSdkVersion?: DependencyInfo;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* @generated from field: version.v1.DependencyInfo opentdf_protobuf_version = 9;
|
|
114
|
-
*/
|
|
115
|
-
opentdfProtobufVersion?: DependencyInfo;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @generated from field: repeated version.v1.DependencyInfo opentdf_libs_versions = 10;
|
|
119
|
-
*/
|
|
120
|
-
opentdfLibsVersions: DependencyInfo[];
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Describes the message version.v1.GetVersionResponse.
|
|
125
|
-
* Use `create(GetVersionResponseSchema)` to create a new message.
|
|
126
|
-
*/
|
|
127
|
-
export const GetVersionResponseSchema: GenMessage<GetVersionResponse> =
|
|
128
|
-
/*@__PURE__*/
|
|
129
|
-
messageDesc(file_version_v1_version, 2);
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* @generated from service version.v1.VersionService
|
|
133
|
-
*/
|
|
134
|
-
export const VersionService: GenService<{
|
|
135
|
-
/**
|
|
136
|
-
* @generated from rpc version.v1.VersionService.GetVersion
|
|
137
|
-
*/
|
|
138
|
-
getVersion: {
|
|
139
|
-
methodKind: 'unary';
|
|
140
|
-
input: typeof GetVersionRequestSchema;
|
|
141
|
-
output: typeof GetVersionResponseSchema;
|
|
142
|
-
};
|
|
143
|
-
}> = /*@__PURE__*/ serviceDesc(file_version_v1_version, 0);
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Virtru Corporation. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Your use of this file is governed by the Virtu Terms of Service <https://www.virtru.com/terms-of-service/>.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// @generated by protoc-gen-es v2.3.0 with parameter "target=ts"
|
|
8
|
-
// @generated from file virtru/common/common.proto (package virtru.common, syntax proto3)
|
|
9
|
-
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
import type {
|
|
12
|
-
GenEnum,
|
|
13
|
-
GenFile,
|
|
14
|
-
GenMessage,
|
|
15
|
-
} from '@bufbuild/protobuf/codegenv1';
|
|
16
|
-
import { enumDesc, fileDesc, messageDesc } from '@bufbuild/protobuf/codegenv1';
|
|
17
|
-
import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
|
|
18
|
-
import type { Timestamp } from '@bufbuild/protobuf/wkt';
|
|
19
|
-
import { file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt';
|
|
20
|
-
import type { Message } from '@bufbuild/protobuf';
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Describes the file virtru/common/common.proto.
|
|
24
|
-
*/
|
|
25
|
-
export const file_virtru_common_common: GenFile =
|
|
26
|
-
/*@__PURE__*/
|
|
27
|
-
fileDesc(
|
|
28
|
-
'Chp2aXJ0cnUvY29tbW9uL2NvbW1vbi5wcm90bxINdmlydHJ1LmNvbW1vbiLOAQoITWV0YWRhdGESLgoKY3JlYXRlZF9hdBgBIA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1BCTWV0YWRhdGHqAg5WaXJ0cnU6OkNvbW1vbmIGcHJvdG8z',
|
|
29
|
-
[file_buf_validate_validate, file_google_protobuf_timestamp]
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @generated from message virtru.common.Metadata
|
|
34
|
-
*/
|
|
35
|
-
export type Metadata = Message<'virtru.common.Metadata'> & {
|
|
36
|
-
/**
|
|
37
|
-
* @generated from field: google.protobuf.Timestamp created_at = 1;
|
|
38
|
-
*/
|
|
39
|
-
createdAt?: Timestamp;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @generated from field: google.protobuf.Timestamp updated_at = 2;
|
|
43
|
-
*/
|
|
44
|
-
updatedAt?: Timestamp;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @generated from field: map<string, string> labels = 3;
|
|
48
|
-
*/
|
|
49
|
-
labels: { [key: string]: string };
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Describes the message virtru.common.Metadata.
|
|
54
|
-
* Use `create(MetadataSchema)` to create a new message.
|
|
55
|
-
*/
|
|
56
|
-
export const MetadataSchema: GenMessage<Metadata> =
|
|
57
|
-
/*@__PURE__*/
|
|
58
|
-
messageDesc(file_virtru_common_common, 0);
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @generated from message virtru.common.MetadataMutable
|
|
62
|
-
*/
|
|
63
|
-
export type MetadataMutable = Message<'virtru.common.MetadataMutable'> & {
|
|
64
|
-
/**
|
|
65
|
-
* @generated from field: map<string, string> labels = 3;
|
|
66
|
-
*/
|
|
67
|
-
labels: { [key: string]: string };
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Describes the message virtru.common.MetadataMutable.
|
|
72
|
-
* Use `create(MetadataMutableSchema)` to create a new message.
|
|
73
|
-
*/
|
|
74
|
-
export const MetadataMutableSchema: GenMessage<MetadataMutable> =
|
|
75
|
-
/*@__PURE__*/
|
|
76
|
-
messageDesc(file_virtru_common_common, 1);
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @generated from message virtru.common.IdFqnIdentifier
|
|
80
|
-
*/
|
|
81
|
-
export type IdFqnIdentifier = Message<'virtru.common.IdFqnIdentifier'> & {
|
|
82
|
-
/**
|
|
83
|
-
* @generated from oneof virtru.common.IdFqnIdentifier.identifier
|
|
84
|
-
*/
|
|
85
|
-
identifier:
|
|
86
|
-
| {
|
|
87
|
-
/**
|
|
88
|
-
* @generated from field: string id = 1;
|
|
89
|
-
*/
|
|
90
|
-
value: string;
|
|
91
|
-
case: 'id';
|
|
92
|
-
}
|
|
93
|
-
| {
|
|
94
|
-
/**
|
|
95
|
-
* @generated from field: string fqn = 2;
|
|
96
|
-
*/
|
|
97
|
-
value: string;
|
|
98
|
-
case: 'fqn';
|
|
99
|
-
}
|
|
100
|
-
| { case: undefined; value?: undefined };
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Describes the message virtru.common.IdFqnIdentifier.
|
|
105
|
-
* Use `create(IdFqnIdentifierSchema)` to create a new message.
|
|
106
|
-
*/
|
|
107
|
-
export const IdFqnIdentifierSchema: GenMessage<IdFqnIdentifier> =
|
|
108
|
-
/*@__PURE__*/
|
|
109
|
-
messageDesc(file_virtru_common_common, 2);
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* @generated from message virtru.common.PageRequest
|
|
113
|
-
*/
|
|
114
|
-
export type PageRequest = Message<'virtru.common.PageRequest'> & {
|
|
115
|
-
/**
|
|
116
|
-
* Optional
|
|
117
|
-
* Set to configured default limit if not provided
|
|
118
|
-
* Maximum limit set in platform config and enforced by services
|
|
119
|
-
*
|
|
120
|
-
* @generated from field: int32 limit = 1;
|
|
121
|
-
*/
|
|
122
|
-
limit: number;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Optional
|
|
126
|
-
* Defaulted if not provided
|
|
127
|
-
*
|
|
128
|
-
* @generated from field: int32 offset = 2;
|
|
129
|
-
*/
|
|
130
|
-
offset: number;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Describes the message virtru.common.PageRequest.
|
|
135
|
-
* Use `create(PageRequestSchema)` to create a new message.
|
|
136
|
-
*/
|
|
137
|
-
export const PageRequestSchema: GenMessage<PageRequest> =
|
|
138
|
-
/*@__PURE__*/
|
|
139
|
-
messageDesc(file_virtru_common_common, 3);
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @generated from message virtru.common.PageResponse
|
|
143
|
-
*/
|
|
144
|
-
export type PageResponse = Message<'virtru.common.PageResponse'> & {
|
|
145
|
-
/**
|
|
146
|
-
* Requested pagination offset
|
|
147
|
-
*
|
|
148
|
-
* @generated from field: int32 current_offset = 1;
|
|
149
|
-
*/
|
|
150
|
-
currentOffset: number;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Calculated with request limit + offset or defaults
|
|
154
|
-
* Empty when none remain after current page
|
|
155
|
-
*
|
|
156
|
-
* @generated from field: int32 next_offset = 2;
|
|
157
|
-
*/
|
|
158
|
-
nextOffset: number;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Total count of entire list
|
|
162
|
-
*
|
|
163
|
-
* @generated from field: int32 total = 3;
|
|
164
|
-
*/
|
|
165
|
-
total: number;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Describes the message virtru.common.PageResponse.
|
|
170
|
-
* Use `create(PageResponseSchema)` to create a new message.
|
|
171
|
-
*/
|
|
172
|
-
export const PageResponseSchema: GenMessage<PageResponse> =
|
|
173
|
-
/*@__PURE__*/
|
|
174
|
-
messageDesc(file_virtru_common_common, 4);
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* @generated from enum virtru.common.MetadataUpdateEnum
|
|
178
|
-
*/
|
|
179
|
-
export enum MetadataUpdateEnum {
|
|
180
|
-
/**
|
|
181
|
-
* @generated from enum value: METADATA_UPDATE_ENUM_UNSPECIFIED = 0;
|
|
182
|
-
*/
|
|
183
|
-
UNSPECIFIED = 0,
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* @generated from enum value: METADATA_UPDATE_ENUM_EXTEND = 1;
|
|
187
|
-
*/
|
|
188
|
-
EXTEND = 1,
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @generated from enum value: METADATA_UPDATE_ENUM_REPLACE = 2;
|
|
192
|
-
*/
|
|
193
|
-
REPLACE = 2,
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Describes the enum virtru.common.MetadataUpdateEnum.
|
|
198
|
-
*/
|
|
199
|
-
export const MetadataUpdateEnumSchema: GenEnum<MetadataUpdateEnum> =
|
|
200
|
-
/*@__PURE__*/
|
|
201
|
-
enumDesc(file_virtru_common_common, 0);
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
|
|
2
|
-
// @generated from file virtru/policy/certificates/v1/certificates.proto (package virtru.policy.certificates.v1, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
|
|
6
|
-
import { AssignCertificateToNamespaceRequest, AssignCertificateToNamespaceResponse, ListCertificatesByNamespaceRequest, ListCertificatesByNamespaceResponse, RemoveCertificateFromNamespaceRequest, RemoveCertificateFromNamespaceResponse } from "./certificates_pb.js";
|
|
7
|
-
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @generated from service virtru.policy.certificates.v1.CertificateService
|
|
11
|
-
*/
|
|
12
|
-
export const CertificateService = {
|
|
13
|
-
typeName: "virtru.policy.certificates.v1.CertificateService",
|
|
14
|
-
methods: {
|
|
15
|
-
/**
|
|
16
|
-
* @generated from rpc virtru.policy.certificates.v1.CertificateService.ListCertificatesByNamespace
|
|
17
|
-
*/
|
|
18
|
-
listCertificatesByNamespace: {
|
|
19
|
-
name: "ListCertificatesByNamespace",
|
|
20
|
-
I: ListCertificatesByNamespaceRequest,
|
|
21
|
-
O: ListCertificatesByNamespaceResponse,
|
|
22
|
-
kind: MethodKind.Unary,
|
|
23
|
-
},
|
|
24
|
-
/**
|
|
25
|
-
* @generated from rpc virtru.policy.certificates.v1.CertificateService.AssignCertificateToNamespace
|
|
26
|
-
*/
|
|
27
|
-
assignCertificateToNamespace: {
|
|
28
|
-
name: "AssignCertificateToNamespace",
|
|
29
|
-
I: AssignCertificateToNamespaceRequest,
|
|
30
|
-
O: AssignCertificateToNamespaceResponse,
|
|
31
|
-
kind: MethodKind.Unary,
|
|
32
|
-
},
|
|
33
|
-
/**
|
|
34
|
-
* @generated from rpc virtru.policy.certificates.v1.CertificateService.RemoveCertificateFromNamespace
|
|
35
|
-
*/
|
|
36
|
-
removeCertificateFromNamespace: {
|
|
37
|
-
name: "RemoveCertificateFromNamespace",
|
|
38
|
-
I: RemoveCertificateFromNamespaceRequest,
|
|
39
|
-
O: RemoveCertificateFromNamespaceResponse,
|
|
40
|
-
kind: MethodKind.Unary,
|
|
41
|
-
},
|
|
42
|
-
}
|
|
43
|
-
} as const;
|
|
44
|
-
|