@virtru/dsp-sdk 0.2.0-pr612.2aa8c9ea → 0.2.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.
@@ -21,6 +21,15 @@ import {
21
21
  import { file_buf_validate_validate } from '../../buf/validate/validate_pb';
22
22
  import type { TaggingPDPConfig, TaggingPDPConfigVersion } from './tagging_pb';
23
23
  import { file_config_v1_tagging } from './tagging_pb';
24
+ import type { KASConfig, KASConfigVersion } from './kas_config_pb';
25
+ import { file_config_v1_kas_config } from './kas_config_pb';
26
+ import type {
27
+ SecureViewerConfig,
28
+ SecureViewerConfigVersion,
29
+ } from './secureviewer_config_pb';
30
+ import { file_config_v1_secureviewer_config } from './secureviewer_config_pb';
31
+ import type { OutlookConfig, OutlookConfigVersion } from './outlook_config_pb';
32
+ import { file_config_v1_outlook_config } from './outlook_config_pb';
24
33
  import type { Message } from '@bufbuild/protobuf';
25
34
 
26
35
  /**
@@ -29,8 +38,14 @@ import type { Message } from '@bufbuild/protobuf';
29
38
  export const file_config_v1_config: GenFile =
30
39
  /*@__PURE__*/
31
40
  fileDesc(
32
- 'ChZjb25maWcvdjEvY29uZmlnLnByb3RvEgljb25maWcudjEiQQobR2V0VGFnZ2luZ1BEUENvbmZpZ1Jlc3BvbnNlEg0KBXZhbHVlGAEgASgJEhMKC2pzb25fc2NoZW1hGAIgASgJIlkKGkdldFRhZ2dpbmdQRFBDb25maWdSZXF1ZXN0EjsKB3ZlcnNpb24YASABKA4yIi5jb25maWcudjEuVGFnZ2luZ1BEUENvbmZpZ1ZlcnNpb25CBrpIA8gBASJJChpTZXRUYWdnaW5nUERQQ29uZmlnUmVxdWVzdBIrCgZjb25maWcYASABKAsyGy5jb25maWcudjEuVGFnZ2luZ1BEUENvbmZpZyJKChtTZXRUYWdnaW5nUERQQ29uZmlnUmVzcG9uc2USKwoGY29uZmlnGAEgASgLMhsuY29uZmlnLnYxLlRhZ2dpbmdQRFBDb25maWcy3wEKD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uc2UiAEKuAQoNY29tLmNvbmZpZy52MUILQ29uZmlnUHJvdG9QAVpLZ2l0aHViLmNvbS92aXJ0cnUtY29ycC9kYXRhLXNlY3VyaXR5LXBsYXRmb3JtL3Nkay92Mi9nZW4vY29uZmlnL3YxO2NvbmZpZ3YxogIDQ1hYqgIJQ29uZmlnLlYxygIJQ29uZmlnXFYx4gIVQ29uZmlnXFYxXEdQQk1ldGFkYXRh6gIKQ29uZmlnOjpWMWIGcHJvdG8z',
42
+ [
43
+ file_buf_validate_validate,
44
+ file_config_v1_tagging,
45
+ file_config_v1_kas_config,
46
+ file_config_v1_secureviewer_config,
47
+ file_config_v1_outlook_config,
48
+ ]
34
49
  );
35
50
 
36
51
  /**
@@ -57,6 +72,77 @@ export const GetTaggingPDPConfigResponseSchema: GenMessage<GetTaggingPDPConfigRe
57
72
  /*@__PURE__*/
58
73
  messageDesc(file_config_v1_config, 0);
59
74
 
75
+ /**
76
+ * @generated from message config.v1.GetSecureViewerConfigResponse
77
+ */
78
+ export type GetSecureViewerConfigResponse =
79
+ Message<'config.v1.GetSecureViewerConfigResponse'> & {
80
+ /**
81
+ * @generated from field: string value = 1;
82
+ */
83
+ value: string;
84
+
85
+ /**
86
+ * @generated from field: string json_schema = 2;
87
+ */
88
+ jsonSchema: string;
89
+ };
90
+
91
+ /**
92
+ * Describes the message config.v1.GetSecureViewerConfigResponse.
93
+ * Use `create(GetSecureViewerConfigResponseSchema)` to create a new message.
94
+ */
95
+ export const GetSecureViewerConfigResponseSchema: GenMessage<GetSecureViewerConfigResponse> =
96
+ /*@__PURE__*/
97
+ messageDesc(file_config_v1_config, 1);
98
+
99
+ /**
100
+ * @generated from message config.v1.GetKASConfigResponse
101
+ */
102
+ export type GetKASConfigResponse = Message<'config.v1.GetKASConfigResponse'> & {
103
+ /**
104
+ * @generated from field: string value = 1;
105
+ */
106
+ value: string;
107
+
108
+ /**
109
+ * @generated from field: string json_schema = 2;
110
+ */
111
+ jsonSchema: string;
112
+ };
113
+
114
+ /**
115
+ * Describes the message config.v1.GetKASConfigResponse.
116
+ * Use `create(GetKASConfigResponseSchema)` to create a new message.
117
+ */
118
+ export const GetKASConfigResponseSchema: GenMessage<GetKASConfigResponse> =
119
+ /*@__PURE__*/
120
+ messageDesc(file_config_v1_config, 2);
121
+
122
+ /**
123
+ * @generated from message config.v1.GetOutlookConfigResponse
124
+ */
125
+ export type GetOutlookConfigResponse =
126
+ Message<'config.v1.GetOutlookConfigResponse'> & {
127
+ /**
128
+ * @generated from field: string value = 1;
129
+ */
130
+ value: string;
131
+
132
+ /**
133
+ * @generated from field: string json_schema = 2;
134
+ */
135
+ jsonSchema: string;
136
+ };
137
+
138
+ /**
139
+ * Describes the message config.v1.GetOutlookConfigResponse.
140
+ * Use `create(GetOutlookConfigResponseSchema)` to create a new message.
141
+ */
142
+ export const GetOutlookConfigResponseSchema: GenMessage<GetOutlookConfigResponse> =
143
+ /*@__PURE__*/
144
+ messageDesc(file_config_v1_config, 3);
145
+
60
146
  /**
61
147
  * @generated from message config.v1.GetTaggingPDPConfigRequest
62
148
  */
@@ -74,7 +160,7 @@ export type GetTaggingPDPConfigRequest =
74
160
  */
75
161
  export const GetTaggingPDPConfigRequestSchema: GenMessage<GetTaggingPDPConfigRequest> =
76
162
  /*@__PURE__*/
77
- messageDesc(file_config_v1_config, 1);
163
+ messageDesc(file_config_v1_config, 4);
78
164
 
79
165
  /**
80
166
  * @generated from message config.v1.SetTaggingPDPConfigRequest
@@ -93,7 +179,7 @@ export type SetTaggingPDPConfigRequest =
93
179
  */
94
180
  export const SetTaggingPDPConfigRequestSchema: GenMessage<SetTaggingPDPConfigRequest> =
95
181
  /*@__PURE__*/
96
- messageDesc(file_config_v1_config, 2);
182
+ messageDesc(file_config_v1_config, 5);
97
183
 
98
184
  /**
99
185
  * @generated from message config.v1.SetTaggingPDPConfigResponse
@@ -112,7 +198,175 @@ export type SetTaggingPDPConfigResponse =
112
198
  */
113
199
  export const SetTaggingPDPConfigResponseSchema: GenMessage<SetTaggingPDPConfigResponse> =
114
200
  /*@__PURE__*/
115
- messageDesc(file_config_v1_config, 3);
201
+ messageDesc(file_config_v1_config, 6);
202
+
203
+ /**
204
+ * @generated from message config.v1.GetSecureViewerConfigRequest
205
+ */
206
+ export type GetSecureViewerConfigRequest =
207
+ Message<'config.v1.GetSecureViewerConfigRequest'> & {
208
+ /**
209
+ * @generated from field: config.v1.SecureViewerConfigVersion version = 1;
210
+ */
211
+ version: SecureViewerConfigVersion;
212
+ };
213
+
214
+ /**
215
+ * Describes the message config.v1.GetSecureViewerConfigRequest.
216
+ * Use `create(GetSecureViewerConfigRequestSchema)` to create a new message.
217
+ */
218
+ export const GetSecureViewerConfigRequestSchema: GenMessage<GetSecureViewerConfigRequest> =
219
+ /*@__PURE__*/
220
+ messageDesc(file_config_v1_config, 7);
221
+
222
+ /**
223
+ * @generated from message config.v1.SetSecureViewerConfigRequest
224
+ */
225
+ export type SetSecureViewerConfigRequest =
226
+ Message<'config.v1.SetSecureViewerConfigRequest'> & {
227
+ /**
228
+ * @generated from field: config.v1.SecureViewerConfig config = 1;
229
+ */
230
+ config?: SecureViewerConfig;
231
+ };
232
+
233
+ /**
234
+ * Describes the message config.v1.SetSecureViewerConfigRequest.
235
+ * Use `create(SetSecureViewerConfigRequestSchema)` to create a new message.
236
+ */
237
+ export const SetSecureViewerConfigRequestSchema: GenMessage<SetSecureViewerConfigRequest> =
238
+ /*@__PURE__*/
239
+ messageDesc(file_config_v1_config, 8);
240
+
241
+ /**
242
+ * @generated from message config.v1.SetSecureViewerConfigResponse
243
+ */
244
+ export type SetSecureViewerConfigResponse =
245
+ Message<'config.v1.SetSecureViewerConfigResponse'> & {
246
+ /**
247
+ * @generated from field: config.v1.SecureViewerConfig config = 1;
248
+ */
249
+ config?: SecureViewerConfig;
250
+ };
251
+
252
+ /**
253
+ * Describes the message config.v1.SetSecureViewerConfigResponse.
254
+ * Use `create(SetSecureViewerConfigResponseSchema)` to create a new message.
255
+ */
256
+ export const SetSecureViewerConfigResponseSchema: GenMessage<SetSecureViewerConfigResponse> =
257
+ /*@__PURE__*/
258
+ messageDesc(file_config_v1_config, 9);
259
+
260
+ /**
261
+ * @generated from message config.v1.GetOutlookConfigRequest
262
+ */
263
+ export type GetOutlookConfigRequest =
264
+ Message<'config.v1.GetOutlookConfigRequest'> & {
265
+ /**
266
+ * @generated from field: config.v1.OutlookConfigVersion version = 1;
267
+ */
268
+ version: OutlookConfigVersion;
269
+ };
270
+
271
+ /**
272
+ * Describes the message config.v1.GetOutlookConfigRequest.
273
+ * Use `create(GetOutlookConfigRequestSchema)` to create a new message.
274
+ */
275
+ export const GetOutlookConfigRequestSchema: GenMessage<GetOutlookConfigRequest> =
276
+ /*@__PURE__*/
277
+ messageDesc(file_config_v1_config, 10);
278
+
279
+ /**
280
+ * @generated from message config.v1.SetOutlookConfigRequest
281
+ */
282
+ export type SetOutlookConfigRequest =
283
+ Message<'config.v1.SetOutlookConfigRequest'> & {
284
+ /**
285
+ * @generated from field: config.v1.OutlookConfig config = 1;
286
+ */
287
+ config?: OutlookConfig;
288
+ };
289
+
290
+ /**
291
+ * Describes the message config.v1.SetOutlookConfigRequest.
292
+ * Use `create(SetOutlookConfigRequestSchema)` to create a new message.
293
+ */
294
+ export const SetOutlookConfigRequestSchema: GenMessage<SetOutlookConfigRequest> =
295
+ /*@__PURE__*/
296
+ messageDesc(file_config_v1_config, 11);
297
+
298
+ /**
299
+ * @generated from message config.v1.SetOutlookConfigResponse
300
+ */
301
+ export type SetOutlookConfigResponse =
302
+ Message<'config.v1.SetOutlookConfigResponse'> & {
303
+ /**
304
+ * @generated from field: config.v1.OutlookConfig config = 1;
305
+ */
306
+ config?: OutlookConfig;
307
+ };
308
+
309
+ /**
310
+ * Describes the message config.v1.SetOutlookConfigResponse.
311
+ * Use `create(SetOutlookConfigResponseSchema)` to create a new message.
312
+ */
313
+ export const SetOutlookConfigResponseSchema: GenMessage<SetOutlookConfigResponse> =
314
+ /*@__PURE__*/
315
+ messageDesc(file_config_v1_config, 12);
316
+
317
+ /**
318
+ * @generated from message config.v1.GetKASConfigRequest
319
+ */
320
+ export type GetKASConfigRequest = Message<'config.v1.GetKASConfigRequest'> & {
321
+ /**
322
+ * @generated from field: config.v1.KASConfigVersion version = 1;
323
+ */
324
+ version: KASConfigVersion;
325
+ };
326
+
327
+ /**
328
+ * Describes the message config.v1.GetKASConfigRequest.
329
+ * Use `create(GetKASConfigRequestSchema)` to create a new message.
330
+ */
331
+ export const GetKASConfigRequestSchema: GenMessage<GetKASConfigRequest> =
332
+ /*@__PURE__*/
333
+ messageDesc(file_config_v1_config, 13);
334
+
335
+ /**
336
+ * @generated from message config.v1.SetKASConfigRequest
337
+ */
338
+ export type SetKASConfigRequest = Message<'config.v1.SetKASConfigRequest'> & {
339
+ /**
340
+ * @generated from field: config.v1.KASConfig config = 1;
341
+ */
342
+ config?: KASConfig;
343
+ };
344
+
345
+ /**
346
+ * Describes the message config.v1.SetKASConfigRequest.
347
+ * Use `create(SetKASConfigRequestSchema)` to create a new message.
348
+ */
349
+ export const SetKASConfigRequestSchema: GenMessage<SetKASConfigRequest> =
350
+ /*@__PURE__*/
351
+ messageDesc(file_config_v1_config, 14);
352
+
353
+ /**
354
+ * @generated from message config.v1.SetKASConfigResponse
355
+ */
356
+ export type SetKASConfigResponse = Message<'config.v1.SetKASConfigResponse'> & {
357
+ /**
358
+ * @generated from field: config.v1.KASConfig config = 1;
359
+ */
360
+ config?: KASConfig;
361
+ };
362
+
363
+ /**
364
+ * Describes the message config.v1.SetKASConfigResponse.
365
+ * Use `create(SetKASConfigResponseSchema)` to create a new message.
366
+ */
367
+ export const SetKASConfigResponseSchema: GenMessage<SetKASConfigResponse> =
368
+ /*@__PURE__*/
369
+ messageDesc(file_config_v1_config, 15);
116
370
 
117
371
  /**
118
372
  * @generated from service config.v1.ConfigService
@@ -134,4 +388,52 @@ export const ConfigService: GenService<{
134
388
  input: typeof SetTaggingPDPConfigRequestSchema;
135
389
  output: typeof SetTaggingPDPConfigResponseSchema;
136
390
  };
391
+ /**
392
+ * @generated from rpc config.v1.ConfigService.GetSecureViewerConfig
393
+ */
394
+ getSecureViewerConfig: {
395
+ methodKind: 'unary';
396
+ input: typeof GetSecureViewerConfigRequestSchema;
397
+ output: typeof GetSecureViewerConfigResponseSchema;
398
+ };
399
+ /**
400
+ * @generated from rpc config.v1.ConfigService.SetSecureViewerConfig
401
+ */
402
+ setSecureViewerConfig: {
403
+ methodKind: 'unary';
404
+ input: typeof SetSecureViewerConfigRequestSchema;
405
+ output: typeof SetSecureViewerConfigResponseSchema;
406
+ };
407
+ /**
408
+ * @generated from rpc config.v1.ConfigService.GetOutlookConfig
409
+ */
410
+ getOutlookConfig: {
411
+ methodKind: 'unary';
412
+ input: typeof GetOutlookConfigRequestSchema;
413
+ output: typeof GetOutlookConfigResponseSchema;
414
+ };
415
+ /**
416
+ * @generated from rpc config.v1.ConfigService.SetOutlookConfig
417
+ */
418
+ setOutlookConfig: {
419
+ methodKind: 'unary';
420
+ input: typeof SetOutlookConfigRequestSchema;
421
+ output: typeof SetOutlookConfigResponseSchema;
422
+ };
423
+ /**
424
+ * @generated from rpc config.v1.ConfigService.GetKASConfig
425
+ */
426
+ getKASConfig: {
427
+ methodKind: 'unary';
428
+ input: typeof GetKASConfigRequestSchema;
429
+ output: typeof GetKASConfigResponseSchema;
430
+ };
431
+ /**
432
+ * @generated from rpc config.v1.ConfigService.SetKASConfig
433
+ */
434
+ setKASConfig: {
435
+ methodKind: 'unary';
436
+ input: typeof SetKASConfigRequestSchema;
437
+ output: typeof SetKASConfigResponseSchema;
438
+ };
137
439
  }> = /*@__PURE__*/ serviceDesc(file_config_v1_config, 0);
@@ -0,0 +1,183 @@
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/kas_config.proto (package config.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 './meta_pb';
19
+ import type { Duration } from '@bufbuild/protobuf/wkt';
20
+ import { file_google_protobuf_duration } from '@bufbuild/protobuf/wkt';
21
+ import type { Message } from '@bufbuild/protobuf';
22
+
23
+ /**
24
+ * Describes the file config/v1/kas_config.proto.
25
+ */
26
+ export const file_config_v1_kas_config: GenFile =
27
+ /*@__PURE__*/
28
+ fileDesc(
29
+ 'Chpjb25maWcvdjEva2FzX2NvbmZpZy5wcm90bxIJY29uZmlnLnYxIkMKCUtBU0NvbmZpZxIkCgJ2MRgBIAEoCzIWLmNvbmZpZy52MS5LQVNDb25maWdWMUgAQhAKB3ZlcnNpb24SBbpIAggBIuYCCg5LQVNLZXlyaW5nSXRlbRJoCglhbGdvcml0aG0YASABKAlCVbpIA8gBAYK1GEsKCUFsZ29yaXRobRI+VGhlIGNyeXB0b2dyYXBoaWMgYWxnb3JpdGhtIGlkZW50aWZpZXIgKGUuZy4sICdlYzpzZWNwMjU2cjEnKS4SSQoDa2lkGAIgASgJQjy6SAPIAQGCtRgyCgxLZXkgSUQgKEtJRCkSIlRoZSB1bmlxdWUgaWRlbnRpZmllciBmb3IgdGhlIGtleS4SngEKBmxlZ2FjeRgDIAEoCEKNAYK1GIgBCgpMZWdhY3kgS2V5EnNJbmRpY2F0ZXMgdGhhdCB0aGUga2V5IHNob3VsZCBub3QgYmUgc2VydmVkIGJ5IGRlZmF1bHQsIGJ1dCBpcyBhbGxvd2VkIGZvciBsZWdhY3kgcmVhc29ucyBvbiBkZWNyeXB0IChyZXdyYXApIG9ubHkuGgVmYWxzZSKaAgoSS0FTUHJldml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ZXJlZF9rYXNfdXJpGAUgASgJQnaCtRhyChJSZWdpc3RlcmVkIEtBUyBVUkkSXFRoZSBwdWJsaWNseSBhY2Nlc3NpYmxlIFVSSSBvZiB0aGlzIEtBUyBpbnN0YW5jZSwgYXMgaXQgc2hvdWxkIGFwcGVhciBpbiBLZXkgQWNjZXNzIE9iamVjdHMuKlEKEEtBU0NvbmZpZ1ZlcnNpb24SIgoeS0FTX0NPTkZJR19WRVJTSU9OX1VOU1BFQ0lGSUVEEAASGQoVS0FTX0NPTkZJR19WRVJTSU9OX1YxEAFCsQEKDWNvbS5jb25maWcudjFCDkthc0NvbmZpZ1Byb3RvUAFaS2dpdGh1Yi5jb20vdmlydHJ1LWNvcnAvZGF0YS1zZWN1cml0eS1wbGF0Zm9ybS9zZGsvdjIvZ2VuL2NvbmZpZy92MTtjb25maWd2MaICA0NYWKoCCUNvbmZpZy5WMcoCCUNvbmZpZ1xWMeICFUNvbmZpZ1xWMVxHUEJNZXRhZGF0YeoCCkNvbmZpZzo6VjFiBnByb3RvMw',
30
+ [
31
+ file_buf_validate_validate,
32
+ file_config_v1_meta,
33
+ file_google_protobuf_duration,
34
+ ]
35
+ );
36
+
37
+ /**
38
+ * A wrapper message that uses a oneof to support multiple config versions.
39
+ *
40
+ * @generated from message config.v1.KASConfig
41
+ */
42
+ export type KASConfig = Message<'config.v1.KASConfig'> & {
43
+ /**
44
+ * @generated from oneof config.v1.KASConfig.version
45
+ */
46
+ version:
47
+ | {
48
+ /**
49
+ * @generated from field: config.v1.KASConfigV1 v1 = 1;
50
+ */
51
+ value: KASConfigV1;
52
+ case: 'v1';
53
+ }
54
+ | { case: undefined; value?: undefined };
55
+ };
56
+
57
+ /**
58
+ * Describes the message config.v1.KASConfig.
59
+ * Use `create(KASConfigSchema)` to create a new message.
60
+ */
61
+ export const KASConfigSchema: GenMessage<KASConfig> =
62
+ /*@__PURE__*/
63
+ messageDesc(file_config_v1_kas_config, 0);
64
+
65
+ /**
66
+ * Corresponds to the Go `CurrentKeyFor` struct.
67
+ * Specifies the preferred/default key for a given algorithm type.
68
+ *
69
+ * @generated from message config.v1.KASKeyringItem
70
+ */
71
+ export type KASKeyringItem = Message<'config.v1.KASKeyringItem'> & {
72
+ /**
73
+ * @generated from field: string algorithm = 1;
74
+ */
75
+ algorithm: string;
76
+
77
+ /**
78
+ * @generated from field: string kid = 2;
79
+ */
80
+ kid: string;
81
+
82
+ /**
83
+ * @generated from field: bool legacy = 3;
84
+ */
85
+ legacy: boolean;
86
+ };
87
+
88
+ /**
89
+ * Describes the message config.v1.KASKeyringItem.
90
+ * Use `create(KASKeyringItemSchema)` to create a new message.
91
+ */
92
+ export const KASKeyringItemSchema: GenMessage<KASKeyringItem> =
93
+ /*@__PURE__*/
94
+ messageDesc(file_config_v1_kas_config, 1);
95
+
96
+ /**
97
+ * Corresponds to the Go `Preview` struct.
98
+ *
99
+ * @generated from message config.v1.KASPreviewFeatures
100
+ */
101
+ export type KASPreviewFeatures = Message<'config.v1.KASPreviewFeatures'> & {
102
+ /**
103
+ * @generated from field: bool ec_tdf_enabled = 1;
104
+ */
105
+ ecTdfEnabled: boolean;
106
+
107
+ /**
108
+ * @generated from field: bool key_management = 2;
109
+ */
110
+ keyManagement: boolean;
111
+ };
112
+
113
+ /**
114
+ * Describes the message config.v1.KASPreviewFeatures.
115
+ * Use `create(KASPreviewFeaturesSchema)` to create a new message.
116
+ */
117
+ export const KASPreviewFeaturesSchema: GenMessage<KASPreviewFeatures> =
118
+ /*@__PURE__*/
119
+ messageDesc(file_config_v1_kas_config, 2);
120
+
121
+ /**
122
+ * The V1 definition for the KAS configuration, mapping from the Go `KASConfig` struct.
123
+ *
124
+ * @generated from message config.v1.KASConfigV1
125
+ */
126
+ export type KASConfigV1 = Message<'config.v1.KASConfigV1'> & {
127
+ /**
128
+ * @generated from field: repeated config.v1.KASKeyringItem keyring = 1;
129
+ */
130
+ keyring: KASKeyringItem[];
131
+
132
+ /**
133
+ * @generated from field: string root_key = 2;
134
+ */
135
+ rootKey: string;
136
+
137
+ /**
138
+ * @generated from field: google.protobuf.Duration key_cache_expiration = 3;
139
+ */
140
+ keyCacheExpiration?: Duration;
141
+
142
+ /**
143
+ * @generated from field: config.v1.KASPreviewFeatures preview = 4;
144
+ */
145
+ preview?: KASPreviewFeatures;
146
+
147
+ /**
148
+ * @generated from field: string registered_kas_uri = 5;
149
+ */
150
+ registeredKasUri: string;
151
+ };
152
+
153
+ /**
154
+ * Describes the message config.v1.KASConfigV1.
155
+ * Use `create(KASConfigV1Schema)` to create a new message.
156
+ */
157
+ export const KASConfigV1Schema: GenMessage<KASConfigV1> =
158
+ /*@__PURE__*/
159
+ messageDesc(file_config_v1_kas_config, 3);
160
+
161
+ /**
162
+ * Enum to manage different versions of the KAS configuration.
163
+ *
164
+ * @generated from enum config.v1.KASConfigVersion
165
+ */
166
+ export enum KASConfigVersion {
167
+ /**
168
+ * @generated from enum value: KAS_CONFIG_VERSION_UNSPECIFIED = 0;
169
+ */
170
+ KAS_CONFIG_VERSION_UNSPECIFIED = 0,
171
+
172
+ /**
173
+ * @generated from enum value: KAS_CONFIG_VERSION_V1 = 1;
174
+ */
175
+ KAS_CONFIG_VERSION_V1 = 1,
176
+ }
177
+
178
+ /**
179
+ * Describes the enum config.v1.KASConfigVersion.
180
+ */
181
+ export const KASConfigVersionSchema: GenEnum<KASConfigVersion> =
182
+ /*@__PURE__*/
183
+ enumDesc(file_config_v1_kas_config, 0);