@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.
Files changed (77) hide show
  1. package/.prettierrc +3 -0
  2. package/.rush/temp/operation/_phase_build/state.json +3 -0
  3. package/.rush/temp/package-deps__phase_build.json +41 -0
  4. package/.rush/temp/shrinkwrap-deps.json +329 -0
  5. package/CHANGELOG.json +103 -0
  6. package/CHANGELOG.md +53 -0
  7. package/README.md +98 -0
  8. package/dist/src/gen/buf/validate/validate_pb.d.ts +4517 -0
  9. package/dist/src/gen/buf/validate/validate_pb.js +484 -0
  10. package/dist/src/gen/config/v1/config_pb.d.ts +88 -0
  11. package/dist/src/gen/config/v1/config_pb.js +46 -0
  12. package/dist/src/gen/config/v1/meta_pb.d.ts +37 -0
  13. package/dist/src/gen/config/v1/meta_pb.js +33 -0
  14. package/dist/src/gen/config/v1/tagging_pb.d.ts +264 -0
  15. package/dist/src/gen/config/v1/tagging_pb.js +188 -0
  16. package/dist/src/gen/google/api/annotations_pb.d.ts +13 -0
  17. package/dist/src/gen/google/api/annotations_pb.js +30 -0
  18. package/dist/src/gen/google/api/http_pb.d.ts +440 -0
  19. package/dist/src/gen/google/api/http_pb.js +41 -0
  20. package/dist/src/gen/policyimportexport/v1/policy_import_export_pb.d.ts +241 -0
  21. package/dist/src/gen/policyimportexport/v1/policy_import_export_pb.js +89 -0
  22. package/dist/src/gen/shared/v1/shared_pb.d.ts +172 -0
  23. package/dist/src/gen/shared/v1/shared_pb.js +92 -0
  24. package/dist/src/gen/tagging/pdp/v2/tagging_pb.d.ts +872 -0
  25. package/dist/src/gen/tagging/pdp/v2/tagging_pb.js +274 -0
  26. package/dist/src/gen/version/v1/version_pb.d.ts +96 -0
  27. package/dist/src/gen/version/v1/version_pb.js +37 -0
  28. package/dist/src/index.d.ts +21 -0
  29. package/dist/src/index.js +28 -0
  30. package/dist/src/lib/client.d.ts +33 -0
  31. package/dist/src/lib/client.js +60 -0
  32. package/dist/src/lib/dsp.d.ts +18 -0
  33. package/dist/src/lib/dsp.js +44 -0
  34. package/dist/src/lib/utils.d.ts +15 -0
  35. package/dist/src/lib/utils.js +35 -0
  36. package/dist/tests/dsp-client.test.d.ts +1 -0
  37. package/dist/tests/dsp-client.test.js +49 -0
  38. package/dist/tests/dsp.test.d.ts +1 -0
  39. package/dist/tests/dsp.test.js +71 -0
  40. package/dist/tests/mocks/create-export-artifacts.d.ts +2 -0
  41. package/dist/tests/mocks/create-export-artifacts.js +13 -0
  42. package/dist/tests/mocks/tagging-pdp-tag.d.ts +2 -0
  43. package/dist/tests/mocks/tagging-pdp-tag.js +11 -0
  44. package/dist/tests/mocks/well-known-configuration.d.ts +2 -0
  45. package/dist/tests/mocks/well-known-configuration.js +12 -0
  46. package/dist/tests/setup-msw.d.ts +9 -0
  47. package/dist/tests/setup-msw.js +30 -0
  48. package/eslint.config.mjs +28 -0
  49. package/package.json +47 -0
  50. package/src/gen/buf/validate/validate_pb.ts +4879 -0
  51. package/src/gen/config/formatters/testdata/v1/test_pb.ts +287 -0
  52. package/src/gen/config/v1/config_pb.ts +137 -0
  53. package/src/gen/config/v1/meta_pb.ts +72 -0
  54. package/src/gen/config/v1/tagging_pb.ts +355 -0
  55. package/src/gen/google/api/annotations_pb.ts +43 -0
  56. package/src/gen/google/api/http_pb.ts +486 -0
  57. package/src/gen/helloworld/v1/helloworld_pb.ts +98 -0
  58. package/src/gen/policyimportexport/v1/policy_import_export_pb.ts +324 -0
  59. package/src/gen/shared/v1/shared_pb.ts +240 -0
  60. package/src/gen/shared/v2/shared_pb.ts +122 -0
  61. package/src/gen/tagging/pdp/v2/externalprocessors/processor_pb.ts +709 -0
  62. package/src/gen/tagging/pdp/v2/stanag/stanag_pb.ts +953 -0
  63. package/src/gen/tagging/pdp/v2/tagging_pb.ts +1064 -0
  64. package/src/gen/version/v1/version_pb.ts +143 -0
  65. package/src/index.ts +49 -0
  66. package/src/lib/client.ts +83 -0
  67. package/src/lib/dsp.ts +65 -0
  68. package/src/lib/utils.ts +43 -0
  69. package/src/vite-env.d.ts +7 -0
  70. package/tests/dsp-client.test.ts +67 -0
  71. package/tests/dsp.test.ts +95 -0
  72. package/tests/mocks/create-export-artifacts.ts +16 -0
  73. package/tests/mocks/tagging-pdp-tag.ts +13 -0
  74. package/tests/mocks/well-known-configuration.ts +15 -0
  75. package/tests/setup-msw.ts +35 -0
  76. package/tsconfig.json +32 -0
  77. package/vitest.config.ts +42 -0
@@ -0,0 +1,287 @@
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 config/formatters/testdata/v1/test.proto (package config.formatters.testdata.v1, 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 { file_config_v1_meta } from '../../../v1/meta_pb';
19
+ import type { BoolValue } from '@bufbuild/protobuf/wkt';
20
+ import { file_google_protobuf_wrappers } from '@bufbuild/protobuf/wkt';
21
+ import type { Message } from '@bufbuild/protobuf';
22
+
23
+ /**
24
+ * Describes the file config/formatters/testdata/v1/test.proto.
25
+ */
26
+ export const file_config_formatters_testdata_v1_test: GenFile =
27
+ /*@__PURE__*/
28
+ fileDesc(
29
+ 'Cihjb25maWcvZm9ybWF0dGVycy90ZXN0ZGF0YS92MS90ZXN0LnByb3RvEh1jb25maWcuZm9ybWF0dGVycy50ZXN0ZGF0YS52MSL3BwoJVGVzdFByb3RvEhIKCmJvb2xfZmllbGQYASABKAgSEwoLaW50MzJfZmllbGQYAiABKAUSFAoM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EZvcm1hdHRlcnNcVGVzdGRhdGFcVjHiAilDb25maWdcRm9ybWF0dGVyc1xUZXN0ZGF0YVxWMVxHUEJNZXRhZGF0YeoCIENvbmZpZzo6Rm9ybWF0dGVyczo6VGVzdGRhdGE6OlYxYgZwcm90bzM',
30
+ [
31
+ file_buf_validate_validate,
32
+ file_config_v1_meta,
33
+ file_google_protobuf_wrappers,
34
+ ]
35
+ );
36
+
37
+ /**
38
+ * @generated from message config.formatters.testdata.v1.TestProto
39
+ */
40
+ export type TestProto = Message<'config.formatters.testdata.v1.TestProto'> & {
41
+ /**
42
+ * scalar fields
43
+ *
44
+ * @generated from field: bool bool_field = 1;
45
+ */
46
+ boolField: boolean;
47
+
48
+ /**
49
+ * @generated from field: int32 int32_field = 2;
50
+ */
51
+ int32Field: number;
52
+
53
+ /**
54
+ * @generated from field: string string_field = 3;
55
+ */
56
+ stringField: string;
57
+
58
+ /**
59
+ * @generated from field: bytes bytes_field = 4;
60
+ */
61
+ bytesField: Uint8Array;
62
+
63
+ /**
64
+ * scalar wrappers
65
+ *
66
+ * @generated from field: google.protobuf.BoolValue bool_wrapper_field = 5;
67
+ */
68
+ boolWrapperField?: boolean;
69
+
70
+ /**
71
+ * message fields
72
+ *
73
+ * @generated from field: config.formatters.testdata.v1.TestNestedProto message_field = 6;
74
+ */
75
+ messageField?: TestNestedProto;
76
+
77
+ /**
78
+ * repeated scalar fields
79
+ *
80
+ * @generated from field: repeated bool repeated_bool_field = 7;
81
+ */
82
+ repeatedBoolField: boolean[];
83
+
84
+ /**
85
+ * repeated scalar wrappers
86
+ *
87
+ * @generated from field: repeated google.protobuf.BoolValue repeated_bool_wrapper_field = 8;
88
+ */
89
+ repeatedBoolWrapperField: BoolValue[];
90
+
91
+ /**
92
+ * repeated message fields
93
+ *
94
+ * @generated from field: repeated config.formatters.testdata.v1.TestNestedProto repeated_message_field = 9;
95
+ */
96
+ repeatedMessageField: TestNestedProto[];
97
+
98
+ /**
99
+ * enum fields
100
+ *
101
+ * @generated from field: config.formatters.testdata.v1.TestEnum enum_field = 10;
102
+ */
103
+ enumField: TestEnum;
104
+
105
+ /**
106
+ * required scalar field
107
+ *
108
+ * @generated from field: string required_field = 11;
109
+ */
110
+ requiredField: string;
111
+
112
+ /**
113
+ * message with required fields
114
+ *
115
+ * @generated from field: config.formatters.testdata.v1.TestNestedWithRequiredProto message_with_required_field = 12;
116
+ */
117
+ messageWithRequiredField?: TestNestedWithRequiredProto;
118
+
119
+ /**
120
+ * scalar field with all meta
121
+ *
122
+ * @generated from field: string string_field_with_full_meta = 13;
123
+ */
124
+ stringFieldWithFullMeta: string;
125
+
126
+ /**
127
+ * scalar with only title meta
128
+ *
129
+ * @generated from field: string string_field_with_title_meta = 14;
130
+ */
131
+ stringFieldWithTitleMeta: string;
132
+
133
+ /**
134
+ * scalar with only description meta
135
+ *
136
+ * @generated from field: string string_field_with_description_meta = 15;
137
+ */
138
+ stringFieldWithDescriptionMeta: string;
139
+
140
+ /**
141
+ * message with meta
142
+ *
143
+ * @generated from field: config.formatters.testdata.v1.TestNestedWithMetaProto message_with_meta = 16;
144
+ */
145
+ messageWithMeta?: TestNestedWithMetaProto;
146
+
147
+ /**
148
+ * enum with title
149
+ *
150
+ * @generated from field: config.formatters.testdata.v1.TestWithTitleEnum enum_with_title = 17;
151
+ */
152
+ enumWithTitle: TestWithTitleEnum;
153
+ };
154
+
155
+ /**
156
+ * Describes the message config.formatters.testdata.v1.TestProto.
157
+ * Use `create(TestProtoSchema)` to create a new message.
158
+ */
159
+ export const TestProtoSchema: GenMessage<TestProto> =
160
+ /*@__PURE__*/
161
+ messageDesc(file_config_formatters_testdata_v1_test, 0);
162
+
163
+ /**
164
+ * @generated from message config.formatters.testdata.v1.TestNestedProto
165
+ */
166
+ export type TestNestedProto =
167
+ Message<'config.formatters.testdata.v1.TestNestedProto'> & {
168
+ /**
169
+ * @generated from field: string id = 1;
170
+ */
171
+ id: string;
172
+
173
+ /**
174
+ * @generated from field: string type = 2;
175
+ */
176
+ type: string;
177
+ };
178
+
179
+ /**
180
+ * Describes the message config.formatters.testdata.v1.TestNestedProto.
181
+ * Use `create(TestNestedProtoSchema)` to create a new message.
182
+ */
183
+ export const TestNestedProtoSchema: GenMessage<TestNestedProto> =
184
+ /*@__PURE__*/
185
+ messageDesc(file_config_formatters_testdata_v1_test, 1);
186
+
187
+ /**
188
+ * @generated from message config.formatters.testdata.v1.TestNestedWithRequiredProto
189
+ */
190
+ export type TestNestedWithRequiredProto =
191
+ Message<'config.formatters.testdata.v1.TestNestedWithRequiredProto'> & {
192
+ /**
193
+ * @generated from field: string id = 1;
194
+ */
195
+ id: string;
196
+
197
+ /**
198
+ * @generated from field: string type = 2;
199
+ */
200
+ type: string;
201
+ };
202
+
203
+ /**
204
+ * Describes the message config.formatters.testdata.v1.TestNestedWithRequiredProto.
205
+ * Use `create(TestNestedWithRequiredProtoSchema)` to create a new message.
206
+ */
207
+ export const TestNestedWithRequiredProtoSchema: GenMessage<TestNestedWithRequiredProto> =
208
+ /*@__PURE__*/
209
+ messageDesc(file_config_formatters_testdata_v1_test, 2);
210
+
211
+ /**
212
+ * @generated from message config.formatters.testdata.v1.TestNestedWithMetaProto
213
+ */
214
+ export type TestNestedWithMetaProto =
215
+ Message<'config.formatters.testdata.v1.TestNestedWithMetaProto'> & {
216
+ /**
217
+ * @generated from field: string id = 1;
218
+ */
219
+ id: string;
220
+
221
+ /**
222
+ * @generated from field: string type = 2;
223
+ */
224
+ type: string;
225
+ };
226
+
227
+ /**
228
+ * Describes the message config.formatters.testdata.v1.TestNestedWithMetaProto.
229
+ * Use `create(TestNestedWithMetaProtoSchema)` to create a new message.
230
+ */
231
+ export const TestNestedWithMetaProtoSchema: GenMessage<TestNestedWithMetaProto> =
232
+ /*@__PURE__*/
233
+ messageDesc(file_config_formatters_testdata_v1_test, 3);
234
+
235
+ /**
236
+ * @generated from enum config.formatters.testdata.v1.TestEnum
237
+ */
238
+ export enum TestEnum {
239
+ /**
240
+ * @generated from enum value: TEST_ENUM_UNSPECIFIED = 0;
241
+ */
242
+ UNSPECIFIED = 0,
243
+
244
+ /**
245
+ * @generated from enum value: TEST_ENUM_ONE = 1;
246
+ */
247
+ ONE = 1,
248
+
249
+ /**
250
+ * @generated from enum value: TEST_ENUM_TWO = 2;
251
+ */
252
+ TWO = 2,
253
+ }
254
+
255
+ /**
256
+ * Describes the enum config.formatters.testdata.v1.TestEnum.
257
+ */
258
+ export const TestEnumSchema: GenEnum<TestEnum> =
259
+ /*@__PURE__*/
260
+ enumDesc(file_config_formatters_testdata_v1_test, 0);
261
+
262
+ /**
263
+ * @generated from enum config.formatters.testdata.v1.TestWithTitleEnum
264
+ */
265
+ export enum TestWithTitleEnum {
266
+ /**
267
+ * @generated from enum value: TEST_WITH_TITLE_ENUM_UNSPECIFIED = 0;
268
+ */
269
+ UNSPECIFIED = 0,
270
+
271
+ /**
272
+ * @generated from enum value: TEST_WITH_TITLE_ENUM_ONE = 1;
273
+ */
274
+ ONE = 1,
275
+
276
+ /**
277
+ * @generated from enum value: TEST_WITH_TITLE_ENUM_TWO = 2;
278
+ */
279
+ TWO = 2,
280
+ }
281
+
282
+ /**
283
+ * Describes the enum config.formatters.testdata.v1.TestWithTitleEnum.
284
+ */
285
+ export const TestWithTitleEnumSchema: GenEnum<TestWithTitleEnum> =
286
+ /*@__PURE__*/
287
+ enumDesc(file_config_formatters_testdata_v1_test, 1);
@@ -0,0 +1,137 @@
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 config/v1/config.proto (package config.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_buf_validate_validate } from '../../buf/validate/validate_pb';
22
+ import type { TaggingPDPConfig, TaggingPDPConfigVersion } from './tagging_pb';
23
+ import { file_config_v1_tagging } from './tagging_pb';
24
+ import type { Message } from '@bufbuild/protobuf';
25
+
26
+ /**
27
+ * Describes the file config/v1/config.proto.
28
+ */
29
+ export const file_config_v1_config: GenFile =
30
+ /*@__PURE__*/
31
+ fileDesc(
32
+ 'ChZjb25maWcvdjEvY29uZmlnLnByb3RvEgljb25maWcudjEiQQobR2V0VGFnZ2luZ1BEUENvbmZpZ1Jlc3BvbnNlEg0KBXZhbHVlGAEgASgJEhMKC2pzb25fc2NoZW1hGAIgASgJIlkKGkdldFRhZ2dpbmdQRFBDb25maWdSZXF1ZXN0EjsKB3ZlcnNpb24YASABKA4yIi5jb25maWcudjEuVGFnZ2luZ1BEUENvbmZpZ1ZlcnNpb25CBrpIA8gBASJJChpTZXRUYWdnaW5nUERQQ29uZmlnUmVxdWVzdBIrCgZjb25maWcYASABKAsyGy5jb25maWcudjEuVGFnZ2luZ1BEUENvbmZpZyJKChtTZXRUYWdnaW5nUERQQ29uZmlnUmVzcG9uc2USKwoGY29uZmlnGAEgASgLMhsuY29uZmlnLnYxLlRhZ2dpbmdQRFBDb25maWcy3wEKDUNvbmZpZ1NlcnZpY2USZgoTR2V0VGFnZ2luZ1BEUENvbmZpZxIlLmNvbmZpZy52MS5HZXRUYWdnaW5nUERQQ29uZmlnUmVxdWVzdBomLmNvbmZpZy52MS5HZXRUYWdnaW5nUERQQ29uZmlnUmVzcG9uc2UiABJmChNTZXRUYWdnaW5nUERQQ29uZmlnEiUuY29uZmlnLnYxLlNldFRhZ2dpbmdQRFBDb25maWdSZXF1ZXN0GiYuY29uZmlnLnYxLlNldFRhZ2dpbmdQRFBDb25maWdSZXNwb25zZSIAQq4BCg1jb20uY29uZmlnLnYxQgtDb25maWdQcm90b1ABWktnaXRodWIuY29tL3ZpcnRydS1jb3JwL2RhdGEtc2VjdXJpdHktcGxhdGZvcm0vc2RrL3YyL2dlbi9jb25maWcvdjE7Y29uZmlndjGiAgNDWFiqAglDb25maWcuVjHKAglDb25maWdcVjHiAhVDb25maWdcVjFcR1BCTWV0YWRhdGHqAgpDb25maWc6OlYxYgZwcm90bzM',
33
+ [file_buf_validate_validate, file_config_v1_tagging]
34
+ );
35
+
36
+ /**
37
+ * @generated from message config.v1.GetTaggingPDPConfigResponse
38
+ */
39
+ export type GetTaggingPDPConfigResponse =
40
+ Message<'config.v1.GetTaggingPDPConfigResponse'> & {
41
+ /**
42
+ * @generated from field: string value = 1;
43
+ */
44
+ value: string;
45
+
46
+ /**
47
+ * @generated from field: string json_schema = 2;
48
+ */
49
+ jsonSchema: string;
50
+ };
51
+
52
+ /**
53
+ * Describes the message config.v1.GetTaggingPDPConfigResponse.
54
+ * Use `create(GetTaggingPDPConfigResponseSchema)` to create a new message.
55
+ */
56
+ export const GetTaggingPDPConfigResponseSchema: GenMessage<GetTaggingPDPConfigResponse> =
57
+ /*@__PURE__*/
58
+ messageDesc(file_config_v1_config, 0);
59
+
60
+ /**
61
+ * @generated from message config.v1.GetTaggingPDPConfigRequest
62
+ */
63
+ export type GetTaggingPDPConfigRequest =
64
+ Message<'config.v1.GetTaggingPDPConfigRequest'> & {
65
+ /**
66
+ * @generated from field: config.v1.TaggingPDPConfigVersion version = 1;
67
+ */
68
+ version: TaggingPDPConfigVersion;
69
+ };
70
+
71
+ /**
72
+ * Describes the message config.v1.GetTaggingPDPConfigRequest.
73
+ * Use `create(GetTaggingPDPConfigRequestSchema)` to create a new message.
74
+ */
75
+ export const GetTaggingPDPConfigRequestSchema: GenMessage<GetTaggingPDPConfigRequest> =
76
+ /*@__PURE__*/
77
+ messageDesc(file_config_v1_config, 1);
78
+
79
+ /**
80
+ * @generated from message config.v1.SetTaggingPDPConfigRequest
81
+ */
82
+ export type SetTaggingPDPConfigRequest =
83
+ Message<'config.v1.SetTaggingPDPConfigRequest'> & {
84
+ /**
85
+ * @generated from field: config.v1.TaggingPDPConfig config = 1;
86
+ */
87
+ config?: TaggingPDPConfig;
88
+ };
89
+
90
+ /**
91
+ * Describes the message config.v1.SetTaggingPDPConfigRequest.
92
+ * Use `create(SetTaggingPDPConfigRequestSchema)` to create a new message.
93
+ */
94
+ export const SetTaggingPDPConfigRequestSchema: GenMessage<SetTaggingPDPConfigRequest> =
95
+ /*@__PURE__*/
96
+ messageDesc(file_config_v1_config, 2);
97
+
98
+ /**
99
+ * @generated from message config.v1.SetTaggingPDPConfigResponse
100
+ */
101
+ export type SetTaggingPDPConfigResponse =
102
+ Message<'config.v1.SetTaggingPDPConfigResponse'> & {
103
+ /**
104
+ * @generated from field: config.v1.TaggingPDPConfig config = 1;
105
+ */
106
+ config?: TaggingPDPConfig;
107
+ };
108
+
109
+ /**
110
+ * Describes the message config.v1.SetTaggingPDPConfigResponse.
111
+ * Use `create(SetTaggingPDPConfigResponseSchema)` to create a new message.
112
+ */
113
+ export const SetTaggingPDPConfigResponseSchema: GenMessage<SetTaggingPDPConfigResponse> =
114
+ /*@__PURE__*/
115
+ messageDesc(file_config_v1_config, 3);
116
+
117
+ /**
118
+ * @generated from service config.v1.ConfigService
119
+ */
120
+ export const ConfigService: GenService<{
121
+ /**
122
+ * @generated from rpc config.v1.ConfigService.GetTaggingPDPConfig
123
+ */
124
+ getTaggingPDPConfig: {
125
+ methodKind: 'unary';
126
+ input: typeof GetTaggingPDPConfigRequestSchema;
127
+ output: typeof GetTaggingPDPConfigResponseSchema;
128
+ };
129
+ /**
130
+ * @generated from rpc config.v1.ConfigService.SetTaggingPDPConfig
131
+ */
132
+ setTaggingPDPConfig: {
133
+ methodKind: 'unary';
134
+ input: typeof SetTaggingPDPConfigRequestSchema;
135
+ output: typeof SetTaggingPDPConfigResponseSchema;
136
+ };
137
+ }> = /*@__PURE__*/ serviceDesc(file_config_v1_config, 0);
@@ -0,0 +1,72 @@
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 config/v1/meta.proto (package config.v1, syntax proto3)
9
+ /* eslint-disable */
10
+
11
+ import type {
12
+ GenExtension,
13
+ GenFile,
14
+ GenMessage,
15
+ } from '@bufbuild/protobuf/codegenv1';
16
+ import { extDesc, fileDesc, messageDesc } from '@bufbuild/protobuf/codegenv1';
17
+ import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
18
+ import type { EnumValueOptions, FieldOptions } from '@bufbuild/protobuf/wkt';
19
+ import { file_google_protobuf_descriptor } from '@bufbuild/protobuf/wkt';
20
+ import type { Message } from '@bufbuild/protobuf';
21
+
22
+ /**
23
+ * Describes the file config/v1/meta.proto.
24
+ */
25
+ export const file_config_v1_meta: GenFile =
26
+ /*@__PURE__*/
27
+ fileDesc(
28
+ 'ChRjb25maWcvdjEvbWV0YS5wcm90bxIJY29uZmlnLnYxIlwKDUZpZWxkTWV0YWRhdGESFQoFdGl0bGUYASABKAlCBrpIA8gBABIbCgtkZXNjcmlwdGlvbhgCIAEoCUIGukgDyAEBEhcKB2RlZmF1bHQYAyABKAlCBrpIA8gBATpNCgRtZXRhEh0uZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucxjQhgMgASgLMhguY29uZmlnLnYxLkZpZWxkTWV0YWRhdGFSBG1ldGE6QQoFdGl0bGUSIS5nb29nbGUucHJvdG9idWYuRW51bVZhbHVlT3B0aW9ucxjQhgMgASgJQga6SAPIAQBSBXRpdGxlQqwBCg1jb20uY29uZmlnLnYxQglNZXRhUHJvdG9QAVpLZ2l0aHViLmNvbS92aXJ0cnUtY29ycC9kYXRhLXNlY3VyaXR5LXBsYXRmb3JtL3Nkay92Mi9nZW4vY29uZmlnL3YxO2NvbmZpZ3YxogIDQ1hYqgIJQ29uZmlnLlYxygIJQ29uZmlnXFYx4gIVQ29uZmlnXFYxXEdQQk1ldGFkYXRh6gIKQ29uZmlnOjpWMWIGcHJvdG8z',
29
+ [file_buf_validate_validate, file_google_protobuf_descriptor]
30
+ );
31
+
32
+ /**
33
+ * @generated from message config.v1.FieldMetadata
34
+ */
35
+ export type FieldMetadata = Message<'config.v1.FieldMetadata'> & {
36
+ /**
37
+ * @generated from field: string title = 1;
38
+ */
39
+ title: string;
40
+
41
+ /**
42
+ * @generated from field: string description = 2;
43
+ */
44
+ description: string;
45
+
46
+ /**
47
+ * @generated from field: string default = 3;
48
+ */
49
+ default: string;
50
+ };
51
+
52
+ /**
53
+ * Describes the message config.v1.FieldMetadata.
54
+ * Use `create(FieldMetadataSchema)` to create a new message.
55
+ */
56
+ export const FieldMetadataSchema: GenMessage<FieldMetadata> =
57
+ /*@__PURE__*/
58
+ messageDesc(file_config_v1_meta, 0);
59
+
60
+ /**
61
+ * @generated from extension: config.v1.FieldMetadata meta = 50000;
62
+ */
63
+ export const meta: GenExtension<FieldOptions, FieldMetadata> =
64
+ /*@__PURE__*/
65
+ extDesc(file_config_v1_meta, 0);
66
+
67
+ /**
68
+ * @generated from extension: string title = 50000;
69
+ */
70
+ export const title: GenExtension<EnumValueOptions, string> =
71
+ /*@__PURE__*/
72
+ extDesc(file_config_v1_meta, 1);