@use-tusk/drift-schemas 0.1.10 → 0.1.11
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/README.md +34 -7
- package/dist/backend/onboarding_service.client.d.ts +1 -1
- package/dist/backend/onboarding_service.d.ts +1 -1
- package/dist/backend/span_export_service.cjs +3 -2
- package/dist/backend/span_export_service.client.cjs +3 -2
- package/dist/backend/span_export_service.client.cjs.map +1 -1
- package/dist/backend/span_export_service.client.d.cts +3 -2
- package/dist/backend/span_export_service.client.d.cts.map +1 -1
- package/dist/backend/span_export_service.client.d.ts +10 -9
- package/dist/backend/span_export_service.client.d.ts.map +1 -1
- package/dist/backend/span_export_service.client.js +3 -2
- package/dist/backend/span_export_service.client.js.map +1 -1
- package/dist/backend/span_export_service.d.cts +3 -2
- package/dist/backend/span_export_service.d.ts +6 -5
- package/dist/backend/span_export_service.js +3 -2
- package/dist/backend/test_run_service.cjs +3 -2
- package/dist/backend/test_run_service.client.cjs +3 -2
- package/dist/backend/test_run_service.client.cjs.map +1 -1
- package/dist/backend/test_run_service.client.d.cts +3 -2
- package/dist/backend/test_run_service.client.d.cts.map +1 -1
- package/dist/backend/test_run_service.client.d.ts +10 -9
- package/dist/backend/test_run_service.client.d.ts.map +1 -1
- package/dist/backend/test_run_service.client.js +3 -2
- package/dist/backend/test_run_service.client.js.map +1 -1
- package/dist/backend/test_run_service.d.cts +3 -2
- package/dist/backend/test_run_service.d.ts +6 -5
- package/dist/backend/test_run_service.js +3 -2
- package/dist/{communication-Np8Uorqu.js → communication-BkyBllcH.js} +2 -2
- package/dist/{communication-Np8Uorqu.js.map → communication-BkyBllcH.js.map} +1 -1
- package/dist/{communication-D_MVOCQQ.d.cts → communication-C2NG6JRK.d.cts} +2 -2
- package/dist/{communication-D_MVOCQQ.d.cts.map → communication-C2NG6JRK.d.cts.map} +1 -1
- package/dist/{communication-CJHE2gJz.cjs → communication-C7jFlRDb.cjs} +2 -2
- package/dist/{communication-CJHE2gJz.cjs.map → communication-C7jFlRDb.cjs.map} +1 -1
- package/dist/{communication-bKx0B3ai.d.ts → communication-CCGDG_1h.d.ts} +4 -4
- package/dist/{communication-bKx0B3ai.d.ts.map → communication-CCGDG_1h.d.ts.map} +1 -1
- package/dist/core/communication.cjs +3 -2
- package/dist/core/communication.client.cjs +3 -2
- package/dist/core/communication.client.cjs.map +1 -1
- package/dist/core/communication.client.d.cts +3 -2
- package/dist/core/communication.client.d.cts.map +1 -1
- package/dist/core/communication.client.d.ts +10 -9
- package/dist/core/communication.client.d.ts.map +1 -1
- package/dist/core/communication.client.js +3 -2
- package/dist/core/communication.client.js.map +1 -1
- package/dist/core/communication.d.cts +3 -2
- package/dist/core/communication.d.ts +6 -5
- package/dist/core/communication.js +3 -2
- package/dist/core/json_schema.cjs +6 -0
- package/dist/core/json_schema.d.cts +2 -0
- package/dist/core/json_schema.d.ts +2 -0
- package/dist/core/json_schema.js +3 -0
- package/dist/core/span.cjs +2 -1
- package/dist/core/span.d.cts +2 -1
- package/dist/core/span.d.ts +5 -4
- package/dist/core/span.js +2 -1
- package/dist/{duration-2zPogS5a.d.ts → duration-DbFzyNwE.d.ts} +1 -1
- package/dist/{duration-2zPogS5a.d.ts.map → duration-DbFzyNwE.d.ts.map} +1 -1
- package/dist/google/protobuf/duration.d.ts +1 -1
- package/dist/google/protobuf/struct.d.ts +1 -1
- package/dist/google/protobuf/timestamp.d.ts +1 -1
- package/dist/json_schema-CIEgzW1h.cjs +342 -0
- package/dist/json_schema-CIEgzW1h.cjs.map +1 -0
- package/dist/json_schema-CkGguNy7.d.cts +236 -0
- package/dist/json_schema-CkGguNy7.d.cts.map +1 -0
- package/dist/json_schema-DhnvfM2m.js +317 -0
- package/dist/json_schema-DhnvfM2m.js.map +1 -0
- package/dist/json_schema-dDDndex9.d.ts +236 -0
- package/dist/json_schema-dDDndex9.d.ts.map +1 -0
- package/dist/{onboarding_service-kegV5UqG.d.ts → onboarding_service-C04sk-Xv.d.ts} +1 -1
- package/dist/{onboarding_service-kegV5UqG.d.ts.map → onboarding_service-C04sk-Xv.d.ts.map} +1 -1
- package/dist/postgresql/postgresql.d.ts +2 -2
- package/dist/{span-BOpbAPMC.d.ts → span-4UHVCo8Y.d.ts} +9 -8
- package/dist/{span-EQEkCEbn.d.cts.map → span-4UHVCo8Y.d.ts.map} +1 -1
- package/dist/{span-EQEkCEbn.d.cts → span-BRA8I823.d.cts} +6 -5
- package/dist/span-BRA8I823.d.cts.map +1 -0
- package/dist/{span-DwoKrEhp.js → span-DeXwA4th.js} +8 -7
- package/dist/span-DeXwA4th.js.map +1 -0
- package/dist/{span-DdxaadRr.cjs → span-DybL9WVC.cjs} +8 -7
- package/dist/span-DybL9WVC.cjs.map +1 -0
- package/dist/{span_export_service-DzOsX7Of.d.ts → span_export_service-2e84QrFa.d.ts} +2 -2
- package/dist/{span_export_service-DzOsX7Of.d.ts.map → span_export_service-2e84QrFa.d.ts.map} +1 -1
- package/dist/{span_export_service-CbSVaHwu.d.cts → span_export_service-Cl3oaNsS.d.cts} +2 -2
- package/dist/{span_export_service-CbSVaHwu.d.cts.map → span_export_service-Cl3oaNsS.d.cts.map} +1 -1
- package/dist/{span_export_service-ZbWxkZSp.js → span_export_service-CtCIrH7o.js} +2 -2
- package/dist/{span_export_service-ZbWxkZSp.js.map → span_export_service-CtCIrH7o.js.map} +1 -1
- package/dist/{span_export_service-rOsqG9c6.cjs → span_export_service-ZeEUSNPi.cjs} +2 -2
- package/dist/{span_export_service-rOsqG9c6.cjs.map → span_export_service-ZeEUSNPi.cjs.map} +1 -1
- package/dist/{struct-BArXEwH6.d.ts → struct-DWOuk3SS.d.ts} +1 -1
- package/dist/{struct-BArXEwH6.d.ts.map → struct-DWOuk3SS.d.ts.map} +1 -1
- package/dist/{test_run_service-5Yml6s_N.d.ts → test_run_service-BDbBft40.d.ts} +2 -2
- package/dist/{test_run_service-5Yml6s_N.d.ts.map → test_run_service-BDbBft40.d.ts.map} +1 -1
- package/dist/{test_run_service-DAflWX54.d.cts → test_run_service-BI5-jCWN.d.cts} +2 -2
- package/dist/{test_run_service-DAflWX54.d.cts.map → test_run_service-BI5-jCWN.d.cts.map} +1 -1
- package/dist/{test_run_service-Dkjv1XDs.cjs → test_run_service-mjPl5dfZ.cjs} +2 -2
- package/dist/{test_run_service-Dkjv1XDs.cjs.map → test_run_service-mjPl5dfZ.cjs.map} +1 -1
- package/dist/{test_run_service-BVhrRxO_.js → test_run_service-ybBAx7AL.js} +2 -2
- package/dist/{test_run_service-BVhrRxO_.js.map → test_run_service-ybBAx7AL.js.map} +1 -1
- package/dist/{timestamp-2doLREh_.d.ts → timestamp-D0q8Zt_J.d.ts} +1 -1
- package/dist/{timestamp-2doLREh_.d.ts.map → timestamp-D0q8Zt_J.d.ts.map} +1 -1
- package/package.json +11 -1
- package/dist/span-BOpbAPMC.d.ts.map +0 -1
- package/dist/span-DdxaadRr.cjs.map +0 -1
- package/dist/span-DwoKrEhp.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ListValue, NullValue, Struct, Value } from "../../struct-
|
|
1
|
+
import { ListValue, NullValue, Struct, Value } from "../../struct-DWOuk3SS.js";
|
|
2
2
|
export { ListValue, NullValue, Struct, Value };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Timestamp } from "../../timestamp-
|
|
1
|
+
import { Timestamp } from "../../timestamp-D0q8Zt_J.js";
|
|
2
2
|
export { Timestamp };
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
let __protobuf_ts_runtime = require("@protobuf-ts/runtime");
|
|
3
|
+
__protobuf_ts_runtime = require_chunk.__toESM(__protobuf_ts_runtime);
|
|
4
|
+
|
|
5
|
+
//#region generated/ts/core/json_schema.ts
|
|
6
|
+
/**
|
|
7
|
+
* JSON schema type enumeration
|
|
8
|
+
* Language-agnostic type classification for JSON values
|
|
9
|
+
*
|
|
10
|
+
* @generated from protobuf enum tusk.drift.core.v1.JsonSchemaType
|
|
11
|
+
*/
|
|
12
|
+
let JsonSchemaType = /* @__PURE__ */ function(JsonSchemaType$1) {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_UNSPECIFIED = 0;
|
|
15
|
+
*/
|
|
16
|
+
JsonSchemaType$1[JsonSchemaType$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
17
|
+
/**
|
|
18
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_NUMBER = 1;
|
|
19
|
+
*/
|
|
20
|
+
JsonSchemaType$1[JsonSchemaType$1["NUMBER"] = 1] = "NUMBER";
|
|
21
|
+
/**
|
|
22
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_STRING = 2;
|
|
23
|
+
*/
|
|
24
|
+
JsonSchemaType$1[JsonSchemaType$1["STRING"] = 2] = "STRING";
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_BOOLEAN = 3;
|
|
27
|
+
*/
|
|
28
|
+
JsonSchemaType$1[JsonSchemaType$1["BOOLEAN"] = 3] = "BOOLEAN";
|
|
29
|
+
/**
|
|
30
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_NULL = 4;
|
|
31
|
+
*/
|
|
32
|
+
JsonSchemaType$1[JsonSchemaType$1["NULL"] = 4] = "NULL";
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_UNDEFINED = 5;
|
|
35
|
+
*/
|
|
36
|
+
JsonSchemaType$1[JsonSchemaType$1["UNDEFINED"] = 5] = "UNDEFINED";
|
|
37
|
+
/**
|
|
38
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_OBJECT = 6;
|
|
39
|
+
*/
|
|
40
|
+
JsonSchemaType$1[JsonSchemaType$1["OBJECT"] = 6] = "OBJECT";
|
|
41
|
+
/**
|
|
42
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_ORDERED_LIST = 7;
|
|
43
|
+
*/
|
|
44
|
+
JsonSchemaType$1[JsonSchemaType$1["ORDERED_LIST"] = 7] = "ORDERED_LIST";
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_UNORDERED_LIST = 8;
|
|
47
|
+
*/
|
|
48
|
+
JsonSchemaType$1[JsonSchemaType$1["UNORDERED_LIST"] = 8] = "UNORDERED_LIST";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_FUNCTION = 9;
|
|
51
|
+
*/
|
|
52
|
+
JsonSchemaType$1[JsonSchemaType$1["FUNCTION"] = 9] = "FUNCTION";
|
|
53
|
+
return JsonSchemaType$1;
|
|
54
|
+
}({});
|
|
55
|
+
/**
|
|
56
|
+
* Encoding type for data serialization
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf enum tusk.drift.core.v1.EncodingType
|
|
59
|
+
*/
|
|
60
|
+
let EncodingType = /* @__PURE__ */ function(EncodingType$1) {
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf enum value: ENCODING_TYPE_UNSPECIFIED = 0;
|
|
63
|
+
*/
|
|
64
|
+
EncodingType$1[EncodingType$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf enum value: ENCODING_TYPE_BASE64 = 1;
|
|
67
|
+
*/
|
|
68
|
+
EncodingType$1[EncodingType$1["BASE64"] = 1] = "BASE64";
|
|
69
|
+
return EncodingType$1;
|
|
70
|
+
}({});
|
|
71
|
+
/**
|
|
72
|
+
* Decoded content type classification
|
|
73
|
+
* Describes the semantic type of decoded content
|
|
74
|
+
*
|
|
75
|
+
* @generated from protobuf enum tusk.drift.core.v1.DecodedType
|
|
76
|
+
*/
|
|
77
|
+
let DecodedType = /* @__PURE__ */ function(DecodedType$1) {
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf enum value: DECODED_TYPE_UNSPECIFIED = 0;
|
|
80
|
+
*/
|
|
81
|
+
DecodedType$1[DecodedType$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf enum value: DECODED_TYPE_JSON = 1;
|
|
84
|
+
*/
|
|
85
|
+
DecodedType$1[DecodedType$1["JSON"] = 1] = "JSON";
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf enum value: DECODED_TYPE_HTML = 2;
|
|
88
|
+
*/
|
|
89
|
+
DecodedType$1[DecodedType$1["HTML"] = 2] = "HTML";
|
|
90
|
+
/**
|
|
91
|
+
* @generated from protobuf enum value: DECODED_TYPE_CSS = 3;
|
|
92
|
+
*/
|
|
93
|
+
DecodedType$1[DecodedType$1["CSS"] = 3] = "CSS";
|
|
94
|
+
/**
|
|
95
|
+
* @generated from protobuf enum value: DECODED_TYPE_JAVASCRIPT = 4;
|
|
96
|
+
*/
|
|
97
|
+
DecodedType$1[DecodedType$1["JAVASCRIPT"] = 4] = "JAVASCRIPT";
|
|
98
|
+
/**
|
|
99
|
+
* @generated from protobuf enum value: DECODED_TYPE_XML = 5;
|
|
100
|
+
*/
|
|
101
|
+
DecodedType$1[DecodedType$1["XML"] = 5] = "XML";
|
|
102
|
+
/**
|
|
103
|
+
* @generated from protobuf enum value: DECODED_TYPE_YAML = 6;
|
|
104
|
+
*/
|
|
105
|
+
DecodedType$1[DecodedType$1["YAML"] = 6] = "YAML";
|
|
106
|
+
/**
|
|
107
|
+
* @generated from protobuf enum value: DECODED_TYPE_MARKDOWN = 7;
|
|
108
|
+
*/
|
|
109
|
+
DecodedType$1[DecodedType$1["MARKDOWN"] = 7] = "MARKDOWN";
|
|
110
|
+
/**
|
|
111
|
+
* @generated from protobuf enum value: DECODED_TYPE_CSV = 8;
|
|
112
|
+
*/
|
|
113
|
+
DecodedType$1[DecodedType$1["CSV"] = 8] = "CSV";
|
|
114
|
+
/**
|
|
115
|
+
* @generated from protobuf enum value: DECODED_TYPE_SQL = 9;
|
|
116
|
+
*/
|
|
117
|
+
DecodedType$1[DecodedType$1["SQL"] = 9] = "SQL";
|
|
118
|
+
/**
|
|
119
|
+
* @generated from protobuf enum value: DECODED_TYPE_GRAPHQL = 10;
|
|
120
|
+
*/
|
|
121
|
+
DecodedType$1[DecodedType$1["GRAPHQL"] = 10] = "GRAPHQL";
|
|
122
|
+
/**
|
|
123
|
+
* @generated from protobuf enum value: DECODED_TYPE_PLAIN_TEXT = 11;
|
|
124
|
+
*/
|
|
125
|
+
DecodedType$1[DecodedType$1["PLAIN_TEXT"] = 11] = "PLAIN_TEXT";
|
|
126
|
+
/**
|
|
127
|
+
* @generated from protobuf enum value: DECODED_TYPE_FORM_DATA = 12;
|
|
128
|
+
*/
|
|
129
|
+
DecodedType$1[DecodedType$1["FORM_DATA"] = 12] = "FORM_DATA";
|
|
130
|
+
/**
|
|
131
|
+
* @generated from protobuf enum value: DECODED_TYPE_MULTIPART_FORM = 13;
|
|
132
|
+
*/
|
|
133
|
+
DecodedType$1[DecodedType$1["MULTIPART_FORM"] = 13] = "MULTIPART_FORM";
|
|
134
|
+
/**
|
|
135
|
+
* @generated from protobuf enum value: DECODED_TYPE_PDF = 14;
|
|
136
|
+
*/
|
|
137
|
+
DecodedType$1[DecodedType$1["PDF"] = 14] = "PDF";
|
|
138
|
+
/**
|
|
139
|
+
* @generated from protobuf enum value: DECODED_TYPE_AUDIO = 15;
|
|
140
|
+
*/
|
|
141
|
+
DecodedType$1[DecodedType$1["AUDIO"] = 15] = "AUDIO";
|
|
142
|
+
/**
|
|
143
|
+
* @generated from protobuf enum value: DECODED_TYPE_VIDEO = 16;
|
|
144
|
+
*/
|
|
145
|
+
DecodedType$1[DecodedType$1["VIDEO"] = 16] = "VIDEO";
|
|
146
|
+
/**
|
|
147
|
+
* @generated from protobuf enum value: DECODED_TYPE_GZIP = 17;
|
|
148
|
+
*/
|
|
149
|
+
DecodedType$1[DecodedType$1["GZIP"] = 17] = "GZIP";
|
|
150
|
+
/**
|
|
151
|
+
* @generated from protobuf enum value: DECODED_TYPE_BINARY = 18;
|
|
152
|
+
*/
|
|
153
|
+
DecodedType$1[DecodedType$1["BINARY"] = 18] = "BINARY";
|
|
154
|
+
/**
|
|
155
|
+
* @generated from protobuf enum value: DECODED_TYPE_JPEG = 19;
|
|
156
|
+
*/
|
|
157
|
+
DecodedType$1[DecodedType$1["JPEG"] = 19] = "JPEG";
|
|
158
|
+
/**
|
|
159
|
+
* @generated from protobuf enum value: DECODED_TYPE_PNG = 20;
|
|
160
|
+
*/
|
|
161
|
+
DecodedType$1[DecodedType$1["PNG"] = 20] = "PNG";
|
|
162
|
+
/**
|
|
163
|
+
* @generated from protobuf enum value: DECODED_TYPE_GIF = 21;
|
|
164
|
+
*/
|
|
165
|
+
DecodedType$1[DecodedType$1["GIF"] = 21] = "GIF";
|
|
166
|
+
/**
|
|
167
|
+
* @generated from protobuf enum value: DECODED_TYPE_WEBP = 22;
|
|
168
|
+
*/
|
|
169
|
+
DecodedType$1[DecodedType$1["WEBP"] = 22] = "WEBP";
|
|
170
|
+
/**
|
|
171
|
+
* @generated from protobuf enum value: DECODED_TYPE_SVG = 23;
|
|
172
|
+
*/
|
|
173
|
+
DecodedType$1[DecodedType$1["SVG"] = 23] = "SVG";
|
|
174
|
+
/**
|
|
175
|
+
* @generated from protobuf enum value: DECODED_TYPE_ZIP = 24;
|
|
176
|
+
*/
|
|
177
|
+
DecodedType$1[DecodedType$1["ZIP"] = 24] = "ZIP";
|
|
178
|
+
return DecodedType$1;
|
|
179
|
+
}({});
|
|
180
|
+
var JsonSchema$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
181
|
+
constructor() {
|
|
182
|
+
super("tusk.drift.core.v1.JsonSchema", [
|
|
183
|
+
{
|
|
184
|
+
no: 1,
|
|
185
|
+
name: "type",
|
|
186
|
+
kind: "enum",
|
|
187
|
+
T: () => [
|
|
188
|
+
"tusk.drift.core.v1.JsonSchemaType",
|
|
189
|
+
JsonSchemaType,
|
|
190
|
+
"JSON_SCHEMA_TYPE_"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
no: 2,
|
|
195
|
+
name: "properties",
|
|
196
|
+
kind: "map",
|
|
197
|
+
K: 9,
|
|
198
|
+
V: {
|
|
199
|
+
kind: "message",
|
|
200
|
+
T: () => JsonSchema
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
no: 3,
|
|
205
|
+
name: "items",
|
|
206
|
+
kind: "message",
|
|
207
|
+
T: () => JsonSchema
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
no: 4,
|
|
211
|
+
name: "encoding",
|
|
212
|
+
kind: "enum",
|
|
213
|
+
opt: true,
|
|
214
|
+
T: () => [
|
|
215
|
+
"tusk.drift.core.v1.EncodingType",
|
|
216
|
+
EncodingType,
|
|
217
|
+
"ENCODING_TYPE_"
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
no: 5,
|
|
222
|
+
name: "decoded_type",
|
|
223
|
+
kind: "enum",
|
|
224
|
+
opt: true,
|
|
225
|
+
T: () => [
|
|
226
|
+
"tusk.drift.core.v1.DecodedType",
|
|
227
|
+
DecodedType,
|
|
228
|
+
"DECODED_TYPE_"
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
no: 6,
|
|
233
|
+
name: "match_importance",
|
|
234
|
+
kind: "scalar",
|
|
235
|
+
opt: true,
|
|
236
|
+
T: 1
|
|
237
|
+
}
|
|
238
|
+
]);
|
|
239
|
+
}
|
|
240
|
+
create(value) {
|
|
241
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
242
|
+
message.type = 0;
|
|
243
|
+
message.properties = {};
|
|
244
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
245
|
+
return message;
|
|
246
|
+
}
|
|
247
|
+
internalBinaryRead(reader, length, options, target) {
|
|
248
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
249
|
+
while (reader.pos < end) {
|
|
250
|
+
let [fieldNo, wireType] = reader.tag();
|
|
251
|
+
switch (fieldNo) {
|
|
252
|
+
case 1:
|
|
253
|
+
message.type = reader.int32();
|
|
254
|
+
break;
|
|
255
|
+
case 2:
|
|
256
|
+
this.binaryReadMap2(message.properties, reader, options);
|
|
257
|
+
break;
|
|
258
|
+
case 3:
|
|
259
|
+
message.items = JsonSchema.internalBinaryRead(reader, reader.uint32(), options, message.items);
|
|
260
|
+
break;
|
|
261
|
+
case 4:
|
|
262
|
+
message.encoding = reader.int32();
|
|
263
|
+
break;
|
|
264
|
+
case 5:
|
|
265
|
+
message.decodedType = reader.int32();
|
|
266
|
+
break;
|
|
267
|
+
case 6:
|
|
268
|
+
message.matchImportance = reader.double();
|
|
269
|
+
break;
|
|
270
|
+
default:
|
|
271
|
+
let u = options.readUnknownField;
|
|
272
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
273
|
+
let d = reader.skip(wireType);
|
|
274
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
return message;
|
|
278
|
+
}
|
|
279
|
+
binaryReadMap2(map, reader, options) {
|
|
280
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
281
|
+
while (reader.pos < end) {
|
|
282
|
+
let [fieldNo, wireType] = reader.tag();
|
|
283
|
+
switch (fieldNo) {
|
|
284
|
+
case 1:
|
|
285
|
+
key = reader.string();
|
|
286
|
+
break;
|
|
287
|
+
case 2:
|
|
288
|
+
val = JsonSchema.internalBinaryRead(reader, reader.uint32(), options);
|
|
289
|
+
break;
|
|
290
|
+
default: throw new globalThis.Error("unknown map entry field for tusk.drift.core.v1.JsonSchema.properties");
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
map[key ?? ""] = val ?? JsonSchema.create();
|
|
294
|
+
}
|
|
295
|
+
internalBinaryWrite(message, writer, options) {
|
|
296
|
+
if (message.type !== 0) writer.tag(1, __protobuf_ts_runtime.WireType.Varint).int32(message.type);
|
|
297
|
+
for (let k of globalThis.Object.keys(message.properties)) {
|
|
298
|
+
writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).fork().tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(k);
|
|
299
|
+
writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).fork();
|
|
300
|
+
JsonSchema.internalBinaryWrite(message.properties[k], writer, options);
|
|
301
|
+
writer.join().join();
|
|
302
|
+
}
|
|
303
|
+
if (message.items) JsonSchema.internalBinaryWrite(message.items, writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
304
|
+
if (message.encoding !== void 0) writer.tag(4, __protobuf_ts_runtime.WireType.Varint).int32(message.encoding);
|
|
305
|
+
if (message.decodedType !== void 0) writer.tag(5, __protobuf_ts_runtime.WireType.Varint).int32(message.decodedType);
|
|
306
|
+
if (message.matchImportance !== void 0) writer.tag(6, __protobuf_ts_runtime.WireType.Bit64).double(message.matchImportance);
|
|
307
|
+
let u = options.writeUnknownFields;
|
|
308
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
309
|
+
return writer;
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* @generated MessageType for protobuf message tusk.drift.core.v1.JsonSchema
|
|
314
|
+
*/
|
|
315
|
+
const JsonSchema = new JsonSchema$Type();
|
|
316
|
+
|
|
317
|
+
//#endregion
|
|
318
|
+
Object.defineProperty(exports, 'DecodedType', {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function () {
|
|
321
|
+
return DecodedType;
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
Object.defineProperty(exports, 'EncodingType', {
|
|
325
|
+
enumerable: true,
|
|
326
|
+
get: function () {
|
|
327
|
+
return EncodingType;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
Object.defineProperty(exports, 'JsonSchema', {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
get: function () {
|
|
333
|
+
return JsonSchema;
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
Object.defineProperty(exports, 'JsonSchemaType', {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function () {
|
|
339
|
+
return JsonSchemaType;
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
//# sourceMappingURL=json_schema-CIEgzW1h.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json_schema-CIEgzW1h.cjs","names":["MessageType","UnknownFieldHandler","key: keyof JsonSchema[\"properties\"] | undefined","val: JsonSchema[\"properties\"][any] | undefined","WireType"],"sources":["../generated/ts/core/json_schema.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies\n// @generated from protobuf file \"core/json_schema.proto\" (package \"tusk.drift.core.v1\", syntax proto3)\n// tslint:disable\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * Recursive JSON schema message\n * Describes the structure and metadata of JSON data\n *\n * @generated from protobuf message tusk.drift.core.v1.JsonSchema\n */\nexport interface JsonSchema {\n /**\n * The type of this schema node\n *\n * @generated from protobuf field: tusk.drift.core.v1.JsonSchemaType type = 1\n */\n type: JsonSchemaType;\n /**\n * For OBJECT types: map of property names to their schemas\n *\n * @generated from protobuf field: map<string, tusk.drift.core.v1.JsonSchema> properties = 2\n */\n properties: {\n [key: string]: JsonSchema;\n };\n /**\n * For ORDERED_LIST/UNORDERED_LIST types: schema of list items\n *\n * @generated from protobuf field: optional tusk.drift.core.v1.JsonSchema items = 3\n */\n items?: JsonSchema;\n /**\n * Optional encoding information (e.g., BASE64)\n *\n * @generated from protobuf field: optional tusk.drift.core.v1.EncodingType encoding = 4\n */\n encoding?: EncodingType;\n /**\n * Optional decoded content type (e.g., JSON, HTML)\n *\n * @generated from protobuf field: optional tusk.drift.core.v1.DecodedType decoded_type = 5\n */\n decodedType?: DecodedType;\n /**\n * Match importance for test matching (0.0 to 1.0)\n * 0.0 = lowest importance, 1.0 = highest importance\n *\n * @generated from protobuf field: optional double match_importance = 6\n */\n matchImportance?: number;\n}\n/**\n * JSON schema type enumeration\n * Language-agnostic type classification for JSON values\n *\n * @generated from protobuf enum tusk.drift.core.v1.JsonSchemaType\n */\nexport enum JsonSchemaType {\n /**\n * @generated from protobuf enum value: JSON_SCHEMA_TYPE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * @generated from protobuf enum value: JSON_SCHEMA_TYPE_NUMBER = 1;\n */\n NUMBER = 1,\n /**\n * @generated from protobuf enum value: JSON_SCHEMA_TYPE_STRING = 2;\n */\n STRING = 2,\n /**\n * @generated from protobuf enum value: JSON_SCHEMA_TYPE_BOOLEAN = 3;\n */\n BOOLEAN = 3,\n /**\n * @generated from protobuf enum value: JSON_SCHEMA_TYPE_NULL = 4;\n */\n NULL = 4,\n /**\n * @generated from protobuf enum value: JSON_SCHEMA_TYPE_UNDEFINED = 5;\n */\n UNDEFINED = 5,\n /**\n * @generated from protobuf enum value: JSON_SCHEMA_TYPE_OBJECT = 6;\n */\n OBJECT = 6,\n /**\n * @generated from protobuf enum value: JSON_SCHEMA_TYPE_ORDERED_LIST = 7;\n */\n ORDERED_LIST = 7,\n /**\n * @generated from protobuf enum value: JSON_SCHEMA_TYPE_UNORDERED_LIST = 8;\n */\n UNORDERED_LIST = 8,\n /**\n * @generated from protobuf enum value: JSON_SCHEMA_TYPE_FUNCTION = 9;\n */\n FUNCTION = 9\n}\n/**\n * Encoding type for data serialization\n *\n * @generated from protobuf enum tusk.drift.core.v1.EncodingType\n */\nexport enum EncodingType {\n /**\n * @generated from protobuf enum value: ENCODING_TYPE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * @generated from protobuf enum value: ENCODING_TYPE_BASE64 = 1;\n */\n BASE64 = 1\n}\n/**\n * Decoded content type classification\n * Describes the semantic type of decoded content\n *\n * @generated from protobuf enum tusk.drift.core.v1.DecodedType\n */\nexport enum DecodedType {\n /**\n * @generated from protobuf enum value: DECODED_TYPE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_JSON = 1;\n */\n JSON = 1,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_HTML = 2;\n */\n HTML = 2,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_CSS = 3;\n */\n CSS = 3,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_JAVASCRIPT = 4;\n */\n JAVASCRIPT = 4,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_XML = 5;\n */\n XML = 5,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_YAML = 6;\n */\n YAML = 6,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_MARKDOWN = 7;\n */\n MARKDOWN = 7,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_CSV = 8;\n */\n CSV = 8,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_SQL = 9;\n */\n SQL = 9,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_GRAPHQL = 10;\n */\n GRAPHQL = 10,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_PLAIN_TEXT = 11;\n */\n PLAIN_TEXT = 11,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_FORM_DATA = 12;\n */\n FORM_DATA = 12,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_MULTIPART_FORM = 13;\n */\n MULTIPART_FORM = 13,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_PDF = 14;\n */\n PDF = 14,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_AUDIO = 15;\n */\n AUDIO = 15,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_VIDEO = 16;\n */\n VIDEO = 16,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_GZIP = 17;\n */\n GZIP = 17,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_BINARY = 18;\n */\n BINARY = 18,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_JPEG = 19;\n */\n JPEG = 19,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_PNG = 20;\n */\n PNG = 20,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_GIF = 21;\n */\n GIF = 21,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_WEBP = 22;\n */\n WEBP = 22,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_SVG = 23;\n */\n SVG = 23,\n /**\n * @generated from protobuf enum value: DECODED_TYPE_ZIP = 24;\n */\n ZIP = 24\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass JsonSchema$Type extends MessageType<JsonSchema> {\n constructor() {\n super(\"tusk.drift.core.v1.JsonSchema\", [\n { no: 1, name: \"type\", kind: \"enum\", T: () => [\"tusk.drift.core.v1.JsonSchemaType\", JsonSchemaType, \"JSON_SCHEMA_TYPE_\"] },\n { no: 2, name: \"properties\", kind: \"map\", K: 9 /*ScalarType.STRING*/, V: { kind: \"message\", T: () => JsonSchema } },\n { no: 3, name: \"items\", kind: \"message\", T: () => JsonSchema },\n { no: 4, name: \"encoding\", kind: \"enum\", opt: true, T: () => [\"tusk.drift.core.v1.EncodingType\", EncodingType, \"ENCODING_TYPE_\"] },\n { no: 5, name: \"decoded_type\", kind: \"enum\", opt: true, T: () => [\"tusk.drift.core.v1.DecodedType\", DecodedType, \"DECODED_TYPE_\"] },\n { no: 6, name: \"match_importance\", kind: \"scalar\", opt: true, T: 1 /*ScalarType.DOUBLE*/ }\n ]);\n }\n create(value?: PartialMessage<JsonSchema>): JsonSchema {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.type = 0;\n message.properties = {};\n if (value !== undefined)\n reflectionMergePartial<JsonSchema>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JsonSchema): JsonSchema {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* tusk.drift.core.v1.JsonSchemaType type */ 1:\n message.type = reader.int32();\n break;\n case /* map<string, tusk.drift.core.v1.JsonSchema> properties */ 2:\n this.binaryReadMap2(message.properties, reader, options);\n break;\n case /* optional tusk.drift.core.v1.JsonSchema items */ 3:\n message.items = JsonSchema.internalBinaryRead(reader, reader.uint32(), options, message.items);\n break;\n case /* optional tusk.drift.core.v1.EncodingType encoding */ 4:\n message.encoding = reader.int32();\n break;\n case /* optional tusk.drift.core.v1.DecodedType decoded_type */ 5:\n message.decodedType = reader.int32();\n break;\n case /* optional double match_importance */ 6:\n message.matchImportance = reader.double();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n private binaryReadMap2(map: JsonSchema[\"properties\"], reader: IBinaryReader, options: BinaryReadOptions): void {\n let len = reader.uint32(), end = reader.pos + len, key: keyof JsonSchema[\"properties\"] | undefined, val: JsonSchema[\"properties\"][any] | undefined;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case 1:\n key = reader.string();\n break;\n case 2:\n val = JsonSchema.internalBinaryRead(reader, reader.uint32(), options);\n break;\n default: throw new globalThis.Error(\"unknown map entry field for tusk.drift.core.v1.JsonSchema.properties\");\n }\n }\n map[key ?? \"\"] = val ?? JsonSchema.create();\n }\n internalBinaryWrite(message: JsonSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* tusk.drift.core.v1.JsonSchemaType type = 1; */\n if (message.type !== 0)\n writer.tag(1, WireType.Varint).int32(message.type);\n /* map<string, tusk.drift.core.v1.JsonSchema> properties = 2; */\n for (let k of globalThis.Object.keys(message.properties)) {\n writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);\n writer.tag(2, WireType.LengthDelimited).fork();\n JsonSchema.internalBinaryWrite(message.properties[k], writer, options);\n writer.join().join();\n }\n /* optional tusk.drift.core.v1.JsonSchema items = 3; */\n if (message.items)\n JsonSchema.internalBinaryWrite(message.items, writer.tag(3, WireType.LengthDelimited).fork(), options).join();\n /* optional tusk.drift.core.v1.EncodingType encoding = 4; */\n if (message.encoding !== undefined)\n writer.tag(4, WireType.Varint).int32(message.encoding);\n /* optional tusk.drift.core.v1.DecodedType decoded_type = 5; */\n if (message.decodedType !== undefined)\n writer.tag(5, WireType.Varint).int32(message.decodedType);\n /* optional double match_importance = 6; */\n if (message.matchImportance !== undefined)\n writer.tag(6, WireType.Bit64).double(message.matchImportance);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message tusk.drift.core.v1.JsonSchema\n */\nexport const JsonSchema = new JsonSchema$Type();\n"],"mappings":"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"}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, MessageType, PartialMessage } from "@protobuf-ts/runtime";
|
|
2
|
+
|
|
3
|
+
//#region generated/ts/core/json_schema.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Recursive JSON schema message
|
|
7
|
+
* Describes the structure and metadata of JSON data
|
|
8
|
+
*
|
|
9
|
+
* @generated from protobuf message tusk.drift.core.v1.JsonSchema
|
|
10
|
+
*/
|
|
11
|
+
interface JsonSchema {
|
|
12
|
+
/**
|
|
13
|
+
* The type of this schema node
|
|
14
|
+
*
|
|
15
|
+
* @generated from protobuf field: tusk.drift.core.v1.JsonSchemaType type = 1
|
|
16
|
+
*/
|
|
17
|
+
type: JsonSchemaType;
|
|
18
|
+
/**
|
|
19
|
+
* For OBJECT types: map of property names to their schemas
|
|
20
|
+
*
|
|
21
|
+
* @generated from protobuf field: map<string, tusk.drift.core.v1.JsonSchema> properties = 2
|
|
22
|
+
*/
|
|
23
|
+
properties: {
|
|
24
|
+
[key: string]: JsonSchema;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* For ORDERED_LIST/UNORDERED_LIST types: schema of list items
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf field: optional tusk.drift.core.v1.JsonSchema items = 3
|
|
30
|
+
*/
|
|
31
|
+
items?: JsonSchema;
|
|
32
|
+
/**
|
|
33
|
+
* Optional encoding information (e.g., BASE64)
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf field: optional tusk.drift.core.v1.EncodingType encoding = 4
|
|
36
|
+
*/
|
|
37
|
+
encoding?: EncodingType;
|
|
38
|
+
/**
|
|
39
|
+
* Optional decoded content type (e.g., JSON, HTML)
|
|
40
|
+
*
|
|
41
|
+
* @generated from protobuf field: optional tusk.drift.core.v1.DecodedType decoded_type = 5
|
|
42
|
+
*/
|
|
43
|
+
decodedType?: DecodedType;
|
|
44
|
+
/**
|
|
45
|
+
* Match importance for test matching (0.0 to 1.0)
|
|
46
|
+
* 0.0 = lowest importance, 1.0 = highest importance
|
|
47
|
+
*
|
|
48
|
+
* @generated from protobuf field: optional double match_importance = 6
|
|
49
|
+
*/
|
|
50
|
+
matchImportance?: number;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* JSON schema type enumeration
|
|
54
|
+
* Language-agnostic type classification for JSON values
|
|
55
|
+
*
|
|
56
|
+
* @generated from protobuf enum tusk.drift.core.v1.JsonSchemaType
|
|
57
|
+
*/
|
|
58
|
+
declare enum JsonSchemaType {
|
|
59
|
+
/**
|
|
60
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_UNSPECIFIED = 0;
|
|
61
|
+
*/
|
|
62
|
+
UNSPECIFIED = 0,
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_NUMBER = 1;
|
|
65
|
+
*/
|
|
66
|
+
NUMBER = 1,
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_STRING = 2;
|
|
69
|
+
*/
|
|
70
|
+
STRING = 2,
|
|
71
|
+
/**
|
|
72
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_BOOLEAN = 3;
|
|
73
|
+
*/
|
|
74
|
+
BOOLEAN = 3,
|
|
75
|
+
/**
|
|
76
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_NULL = 4;
|
|
77
|
+
*/
|
|
78
|
+
NULL = 4,
|
|
79
|
+
/**
|
|
80
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_UNDEFINED = 5;
|
|
81
|
+
*/
|
|
82
|
+
UNDEFINED = 5,
|
|
83
|
+
/**
|
|
84
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_OBJECT = 6;
|
|
85
|
+
*/
|
|
86
|
+
OBJECT = 6,
|
|
87
|
+
/**
|
|
88
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_ORDERED_LIST = 7;
|
|
89
|
+
*/
|
|
90
|
+
ORDERED_LIST = 7,
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_UNORDERED_LIST = 8;
|
|
93
|
+
*/
|
|
94
|
+
UNORDERED_LIST = 8,
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf enum value: JSON_SCHEMA_TYPE_FUNCTION = 9;
|
|
97
|
+
*/
|
|
98
|
+
FUNCTION = 9,
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Encoding type for data serialization
|
|
102
|
+
*
|
|
103
|
+
* @generated from protobuf enum tusk.drift.core.v1.EncodingType
|
|
104
|
+
*/
|
|
105
|
+
declare enum EncodingType {
|
|
106
|
+
/**
|
|
107
|
+
* @generated from protobuf enum value: ENCODING_TYPE_UNSPECIFIED = 0;
|
|
108
|
+
*/
|
|
109
|
+
UNSPECIFIED = 0,
|
|
110
|
+
/**
|
|
111
|
+
* @generated from protobuf enum value: ENCODING_TYPE_BASE64 = 1;
|
|
112
|
+
*/
|
|
113
|
+
BASE64 = 1,
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Decoded content type classification
|
|
117
|
+
* Describes the semantic type of decoded content
|
|
118
|
+
*
|
|
119
|
+
* @generated from protobuf enum tusk.drift.core.v1.DecodedType
|
|
120
|
+
*/
|
|
121
|
+
declare enum DecodedType {
|
|
122
|
+
/**
|
|
123
|
+
* @generated from protobuf enum value: DECODED_TYPE_UNSPECIFIED = 0;
|
|
124
|
+
*/
|
|
125
|
+
UNSPECIFIED = 0,
|
|
126
|
+
/**
|
|
127
|
+
* @generated from protobuf enum value: DECODED_TYPE_JSON = 1;
|
|
128
|
+
*/
|
|
129
|
+
JSON = 1,
|
|
130
|
+
/**
|
|
131
|
+
* @generated from protobuf enum value: DECODED_TYPE_HTML = 2;
|
|
132
|
+
*/
|
|
133
|
+
HTML = 2,
|
|
134
|
+
/**
|
|
135
|
+
* @generated from protobuf enum value: DECODED_TYPE_CSS = 3;
|
|
136
|
+
*/
|
|
137
|
+
CSS = 3,
|
|
138
|
+
/**
|
|
139
|
+
* @generated from protobuf enum value: DECODED_TYPE_JAVASCRIPT = 4;
|
|
140
|
+
*/
|
|
141
|
+
JAVASCRIPT = 4,
|
|
142
|
+
/**
|
|
143
|
+
* @generated from protobuf enum value: DECODED_TYPE_XML = 5;
|
|
144
|
+
*/
|
|
145
|
+
XML = 5,
|
|
146
|
+
/**
|
|
147
|
+
* @generated from protobuf enum value: DECODED_TYPE_YAML = 6;
|
|
148
|
+
*/
|
|
149
|
+
YAML = 6,
|
|
150
|
+
/**
|
|
151
|
+
* @generated from protobuf enum value: DECODED_TYPE_MARKDOWN = 7;
|
|
152
|
+
*/
|
|
153
|
+
MARKDOWN = 7,
|
|
154
|
+
/**
|
|
155
|
+
* @generated from protobuf enum value: DECODED_TYPE_CSV = 8;
|
|
156
|
+
*/
|
|
157
|
+
CSV = 8,
|
|
158
|
+
/**
|
|
159
|
+
* @generated from protobuf enum value: DECODED_TYPE_SQL = 9;
|
|
160
|
+
*/
|
|
161
|
+
SQL = 9,
|
|
162
|
+
/**
|
|
163
|
+
* @generated from protobuf enum value: DECODED_TYPE_GRAPHQL = 10;
|
|
164
|
+
*/
|
|
165
|
+
GRAPHQL = 10,
|
|
166
|
+
/**
|
|
167
|
+
* @generated from protobuf enum value: DECODED_TYPE_PLAIN_TEXT = 11;
|
|
168
|
+
*/
|
|
169
|
+
PLAIN_TEXT = 11,
|
|
170
|
+
/**
|
|
171
|
+
* @generated from protobuf enum value: DECODED_TYPE_FORM_DATA = 12;
|
|
172
|
+
*/
|
|
173
|
+
FORM_DATA = 12,
|
|
174
|
+
/**
|
|
175
|
+
* @generated from protobuf enum value: DECODED_TYPE_MULTIPART_FORM = 13;
|
|
176
|
+
*/
|
|
177
|
+
MULTIPART_FORM = 13,
|
|
178
|
+
/**
|
|
179
|
+
* @generated from protobuf enum value: DECODED_TYPE_PDF = 14;
|
|
180
|
+
*/
|
|
181
|
+
PDF = 14,
|
|
182
|
+
/**
|
|
183
|
+
* @generated from protobuf enum value: DECODED_TYPE_AUDIO = 15;
|
|
184
|
+
*/
|
|
185
|
+
AUDIO = 15,
|
|
186
|
+
/**
|
|
187
|
+
* @generated from protobuf enum value: DECODED_TYPE_VIDEO = 16;
|
|
188
|
+
*/
|
|
189
|
+
VIDEO = 16,
|
|
190
|
+
/**
|
|
191
|
+
* @generated from protobuf enum value: DECODED_TYPE_GZIP = 17;
|
|
192
|
+
*/
|
|
193
|
+
GZIP = 17,
|
|
194
|
+
/**
|
|
195
|
+
* @generated from protobuf enum value: DECODED_TYPE_BINARY = 18;
|
|
196
|
+
*/
|
|
197
|
+
BINARY = 18,
|
|
198
|
+
/**
|
|
199
|
+
* @generated from protobuf enum value: DECODED_TYPE_JPEG = 19;
|
|
200
|
+
*/
|
|
201
|
+
JPEG = 19,
|
|
202
|
+
/**
|
|
203
|
+
* @generated from protobuf enum value: DECODED_TYPE_PNG = 20;
|
|
204
|
+
*/
|
|
205
|
+
PNG = 20,
|
|
206
|
+
/**
|
|
207
|
+
* @generated from protobuf enum value: DECODED_TYPE_GIF = 21;
|
|
208
|
+
*/
|
|
209
|
+
GIF = 21,
|
|
210
|
+
/**
|
|
211
|
+
* @generated from protobuf enum value: DECODED_TYPE_WEBP = 22;
|
|
212
|
+
*/
|
|
213
|
+
WEBP = 22,
|
|
214
|
+
/**
|
|
215
|
+
* @generated from protobuf enum value: DECODED_TYPE_SVG = 23;
|
|
216
|
+
*/
|
|
217
|
+
SVG = 23,
|
|
218
|
+
/**
|
|
219
|
+
* @generated from protobuf enum value: DECODED_TYPE_ZIP = 24;
|
|
220
|
+
*/
|
|
221
|
+
ZIP = 24,
|
|
222
|
+
}
|
|
223
|
+
declare class JsonSchema$Type extends MessageType<JsonSchema> {
|
|
224
|
+
constructor();
|
|
225
|
+
create(value?: PartialMessage<JsonSchema>): JsonSchema;
|
|
226
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JsonSchema): JsonSchema;
|
|
227
|
+
private binaryReadMap2;
|
|
228
|
+
internalBinaryWrite(message: JsonSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* @generated MessageType for protobuf message tusk.drift.core.v1.JsonSchema
|
|
232
|
+
*/
|
|
233
|
+
declare const JsonSchema: JsonSchema$Type;
|
|
234
|
+
//#endregion
|
|
235
|
+
export { DecodedType, EncodingType, JsonSchema, JsonSchemaType };
|
|
236
|
+
//# sourceMappingURL=json_schema-CkGguNy7.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json_schema-CkGguNy7.d.cts","names":[],"sources":["../generated/ts/core/json_schema.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAiEA;AA+CY,UA9FK,UAAA,CA8FO;EAgBZ;AAqGX;;;;MAakB,EA1NT,cA0NS;;;;;;YA0Dc,EAAA;IAAoB,CAAA,GAAA,EAAA,MAAA,CAAA,EA7Q9B,UA6Q8B;;;;;AAgCrD;;UAtSY;;;;;;aAMG;;;;;;gBAMG;;;;;;;;;;;;;;;aAeN,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA+CA,YAAA;;;;;;;;;;;;;;;;aAgBA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuGN,eAAA,SAAwB,YAAY;;iBAWvB,eAAe,cAAc;6BAQjB,wCAAwC,4BAA4B,aAAa;;+BAkD/E,oBAAoB,wBAAwB,qBAAqB;;;;;cAgCrF,YAAU"}
|