@virtru/dsp-sdk 0.2.0-pr612.2dd0cdac → 0.2.1

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.
@@ -0,0 +1,173 @@
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 web-admin/v1/config.proto (package webadmin.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 { Timestamp } from '@bufbuild/protobuf/wkt';
22
+ import { file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt';
23
+ import type { Message } from '@bufbuild/protobuf';
24
+
25
+ /**
26
+ * Describes the file web-admin/v1/config.proto.
27
+ */
28
+ export const file_web_admin_v1_config: GenFile =
29
+ /*@__PURE__*/
30
+ fileDesc(
31
+ 'Chl3ZWItYWRtaW4vdjEvY29uZmlnLnByb3RvEgt3ZWJhZG1pbi52MSInCgpDb25maWdJdGVtEgoKAmlkGAEgASgJEg0KBXZhbHVlGAIgASgMIhYKFExpc3RBbGxDb25maWdSZXF1ZXN0IkEKFUxpc3RBbGxDb25maWdSZXNwb25zZRIoCgdjb25maWdzGAEgAygLMhcud2ViYWRtaW4udjEuQ29uZmlnSXRlbSJNChdIYXNDb25maWdDaGFuZ2VzUmVxdWVzdBIyCg5sYXN0X2xvYWRlZF9hdBgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiLwoYSGFzQ29uZmlnQ2hhbmdlc1Jlc3BvbnNlEhMKC2hhc19jaGFuZ2VzGAEgASgIMswBCg1Db25maWdTZXJ2aWNlElgKDUxpc3RBbGxDb25maWcSIS53ZWJhZG1pbi52MS5MaXN0QWxsQ29uZmlnUmVxdWVzdBoiLndlYmFkbWluLnYxLkxpc3RBbGxDb25maWdSZXNwb25zZSIAEmEKEEhhc0NvbmZpZ0NoYW5nZXMSJC53ZWJhZG1pbi52MS5IYXNDb25maWdDaGFuZ2VzUmVxdWVzdBolLndlYmFkbWluLnYxLkhhc0NvbmZpZ0NoYW5nZXNSZXNwb25zZSIAQr0BCg9jb20ud2ViYWRtaW4udjFCC0NvbmZpZ1Byb3RvUAFaUGdpdGh1Yi5jb20vdmlydHJ1LWNvcnAvZGF0YS1zZWN1cml0eS1wbGF0Zm9ybS9zZGsvdjIvZ2VuL3dlYi1hZG1pbi92MTt3ZWJhZG1pbnYxogIDV1hYqgILV2ViYWRtaW4uVjHKAgtXZWJhZG1pblxWMeICF1dlYmFkbWluXFYxXEdQQk1ldGFkYXRh6gIMV2ViYWRtaW46OlYxYgZwcm90bzM',
32
+ [file_google_protobuf_timestamp]
33
+ );
34
+
35
+ /**
36
+ * A single configuration item.
37
+ *
38
+ * @generated from message webadmin.v1.ConfigItem
39
+ */
40
+ export type ConfigItem = Message<'webadmin.v1.ConfigItem'> & {
41
+ /**
42
+ * The dot-separated key for the config value (e.g. auth.enabled).
43
+ *
44
+ * @generated from field: string id = 1;
45
+ */
46
+ id: string;
47
+
48
+ /**
49
+ * JSONB representation of the configuration value, returned as bytes.
50
+ *
51
+ * @generated from field: bytes value = 2;
52
+ */
53
+ value: Uint8Array;
54
+ };
55
+
56
+ /**
57
+ * Describes the message webadmin.v1.ConfigItem.
58
+ * Use `create(ConfigItemSchema)` to create a new message.
59
+ */
60
+ export const ConfigItemSchema: GenMessage<ConfigItem> =
61
+ /*@__PURE__*/
62
+ messageDesc(file_web_admin_v1_config, 0);
63
+
64
+ /**
65
+ * Request for ListAllConfig.
66
+ *
67
+ * @generated from message webadmin.v1.ListAllConfigRequest
68
+ */
69
+ export type ListAllConfigRequest =
70
+ Message<'webadmin.v1.ListAllConfigRequest'> & {};
71
+
72
+ /**
73
+ * Describes the message webadmin.v1.ListAllConfigRequest.
74
+ * Use `create(ListAllConfigRequestSchema)` to create a new message.
75
+ */
76
+ export const ListAllConfigRequestSchema: GenMessage<ListAllConfigRequest> =
77
+ /*@__PURE__*/
78
+ messageDesc(file_web_admin_v1_config, 1);
79
+
80
+ /**
81
+ * Response for ListAllConfig.
82
+ *
83
+ * @generated from message webadmin.v1.ListAllConfigResponse
84
+ */
85
+ export type ListAllConfigResponse =
86
+ Message<'webadmin.v1.ListAllConfigResponse'> & {
87
+ /**
88
+ * @generated from field: repeated webadmin.v1.ConfigItem configs = 1;
89
+ */
90
+ configs: ConfigItem[];
91
+ };
92
+
93
+ /**
94
+ * Describes the message webadmin.v1.ListAllConfigResponse.
95
+ * Use `create(ListAllConfigResponseSchema)` to create a new message.
96
+ */
97
+ export const ListAllConfigResponseSchema: GenMessage<ListAllConfigResponse> =
98
+ /*@__PURE__*/
99
+ messageDesc(file_web_admin_v1_config, 2);
100
+
101
+ /**
102
+ * Request for HasConfigChanges.
103
+ *
104
+ * @generated from message webadmin.v1.HasConfigChangesRequest
105
+ */
106
+ export type HasConfigChangesRequest =
107
+ Message<'webadmin.v1.HasConfigChangesRequest'> & {
108
+ /**
109
+ * The timestamp to check against. The service will return true if any
110
+ * config has an `updated_at` value greater than this.
111
+ *
112
+ * @generated from field: google.protobuf.Timestamp last_loaded_at = 1;
113
+ */
114
+ lastLoadedAt?: Timestamp;
115
+ };
116
+
117
+ /**
118
+ * Describes the message webadmin.v1.HasConfigChangesRequest.
119
+ * Use `create(HasConfigChangesRequestSchema)` to create a new message.
120
+ */
121
+ export const HasConfigChangesRequestSchema: GenMessage<HasConfigChangesRequest> =
122
+ /*@__PURE__*/
123
+ messageDesc(file_web_admin_v1_config, 3);
124
+
125
+ /**
126
+ * Response for HasConfigChanges.
127
+ *
128
+ * @generated from message webadmin.v1.HasConfigChangesResponse
129
+ */
130
+ export type HasConfigChangesResponse =
131
+ Message<'webadmin.v1.HasConfigChangesResponse'> & {
132
+ /**
133
+ * @generated from field: bool has_changes = 1;
134
+ */
135
+ hasChanges: boolean;
136
+ };
137
+
138
+ /**
139
+ * Describes the message webadmin.v1.HasConfigChangesResponse.
140
+ * Use `create(HasConfigChangesResponseSchema)` to create a new message.
141
+ */
142
+ export const HasConfigChangesResponseSchema: GenMessage<HasConfigChangesResponse> =
143
+ /*@__PURE__*/
144
+ messageDesc(file_web_admin_v1_config, 4);
145
+
146
+ /**
147
+ * The ConfigService provides an interface for managing and retrieving
148
+ * platform configuration values stored in the database.
149
+ *
150
+ * @generated from service webadmin.v1.ConfigService
151
+ */
152
+ export const ConfigService: GenService<{
153
+ /**
154
+ * ListAllConfig retrieves all configuration key-value pairs.
155
+ *
156
+ * @generated from rpc webadmin.v1.ConfigService.ListAllConfig
157
+ */
158
+ listAllConfig: {
159
+ methodKind: 'unary';
160
+ input: typeof ListAllConfigRequestSchema;
161
+ output: typeof ListAllConfigResponseSchema;
162
+ };
163
+ /**
164
+ * HasConfigChanges checks if any configuration was updated after a given timestamp.
165
+ *
166
+ * @generated from rpc webadmin.v1.ConfigService.HasConfigChanges
167
+ */
168
+ hasConfigChanges: {
169
+ methodKind: 'unary';
170
+ input: typeof HasConfigChangesRequestSchema;
171
+ output: typeof HasConfigChangesResponseSchema;
172
+ };
173
+ }> = /*@__PURE__*/ serviceDesc(file_web_admin_v1_config, 0);