@code0-tech/tucana 0.0.38 → 0.0.40
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/package.json +5 -4
- package/pb/{aquila.action_pb.client.ts → aquila.action_pb.client.d.ts} +8 -13
- package/pb/aquila.action_pb.client.js +25 -0
- package/pb/aquila.action_pb.d.ts +254 -0
- package/pb/{aquila.action_pb.ts → aquila.action_pb.js} +49 -215
- package/pb/{aquila.data_type_pb.client.ts → aquila.data_type_pb.client.d.ts} +8 -13
- package/pb/aquila.data_type_pb.client.js +23 -0
- package/pb/aquila.data_type_pb.d.ts +61 -0
- package/pb/{aquila.data_type_pb.ts → aquila.data_type_pb.js} +16 -44
- package/pb/{aquila.execution_pb.client.ts → aquila.execution_pb.client.d.ts} +15 -24
- package/pb/aquila.execution_pb.client.js +49 -0
- package/pb/aquila.execution_pb.d.ts +135 -0
- package/pb/{aquila.execution_pb.ts → aquila.execution_pb.js} +34 -103
- package/pb/{aquila.flow_type_pb.client.ts → aquila.flow_type_pb.client.d.ts} +8 -13
- package/pb/aquila.flow_type_pb.client.js +25 -0
- package/pb/aquila.flow_type_pb.d.ts +61 -0
- package/pb/{aquila.flow_type_pb.ts → aquila.flow_type_pb.js} +16 -44
- package/pb/{aquila.runtime_function_pb.client.ts → aquila.runtime_function_pb.client.d.ts} +8 -13
- package/pb/aquila.runtime_function_pb.client.js +25 -0
- package/pb/aquila.runtime_function_pb.d.ts +61 -0
- package/pb/{aquila.runtime_function_pb.ts → aquila.runtime_function_pb.js} +16 -44
- package/pb/{sagittarius.action_pb.client.ts → sagittarius.action_pb.client.d.ts} +9 -17
- package/pb/sagittarius.action_pb.client.js +32 -0
- package/pb/sagittarius.action_pb.d.ts +95 -0
- package/pb/{sagittarius.action_pb.ts → sagittarius.action_pb.js} +28 -70
- package/pb/{sagittarius.data_type_pb.client.ts → sagittarius.data_type_pb.client.d.ts} +8 -13
- package/pb/sagittarius.data_type_pb.client.js +23 -0
- package/pb/sagittarius.data_type_pb.d.ts +61 -0
- package/pb/{sagittarius.data_type_pb.ts → sagittarius.data_type_pb.js} +16 -44
- package/pb/{sagittarius.flow_pb.client.ts → sagittarius.flow_pb.client.d.ts} +8 -13
- package/pb/sagittarius.flow_pb.client.js +23 -0
- package/pb/sagittarius.flow_pb.d.ts +80 -0
- package/pb/{sagittarius.flow_pb.ts → sagittarius.flow_pb.js} +18 -64
- package/pb/{sagittarius.flow_type_pb.client.ts → sagittarius.flow_type_pb.client.d.ts} +8 -13
- package/pb/sagittarius.flow_type_pb.client.js +25 -0
- package/pb/sagittarius.flow_type_pb.d.ts +61 -0
- package/pb/{sagittarius.flow_type_pb.ts → sagittarius.flow_type_pb.js} +16 -44
- package/pb/{sagittarius.ping_pb.client.ts → sagittarius.ping_pb.client.d.ts} +8 -13
- package/pb/sagittarius.ping_pb.client.js +23 -0
- package/pb/sagittarius.ping_pb.d.ts +33 -0
- package/pb/{sagittarius.ping_pb.ts → sagittarius.ping_pb.js} +10 -21
- package/pb/{sagittarius.runtime_function_pb.client.ts → sagittarius.runtime_function_pb.client.d.ts} +8 -13
- package/pb/sagittarius.runtime_function_pb.client.js +25 -0
- package/pb/sagittarius.runtime_function_pb.d.ts +61 -0
- package/pb/{sagittarius.runtime_function_pb.ts → sagittarius.runtime_function_pb.js} +16 -44
- package/pb/{sagittarius.text_execution_pb.client.ts → sagittarius.text_execution_pb.client.d.ts} +8 -13
- package/pb/sagittarius.text_execution_pb.client.js +23 -0
- package/pb/sagittarius.text_execution_pb.d.ts +172 -0
- package/pb/{sagittarius.text_execution_pb.ts → sagittarius.text_execution_pb.js} +42 -141
- package/pb/shared.data_type_pb.d.ts +614 -0
- package/pb/{shared.data_type_pb.ts → shared.data_type_pb.js} +140 -508
- package/pb/shared.event_pb.d.ts +120 -0
- package/pb/{shared.event_pb.ts → shared.event_pb.js} +19 -101
- package/pb/shared.flow_definition_pb.d.ts +105 -0
- package/pb/{shared.flow_definition_pb.ts → shared.flow_definition_pb.js} +13 -90
- package/pb/shared.flow_pb.d.ts +305 -0
- package/pb/{shared.flow_pb.ts → shared.flow_pb.js} +68 -305
- package/pb/shared.runtime_function_pb.d.ts +114 -0
- package/pb/{shared.runtime_function_pb.ts → shared.runtime_function_pb.js} +13 -98
- package/pb/shared.struct_pb.d.ts +198 -0
- package/pb/{shared.struct_pb.ts → shared.struct_pb.js} +27 -136
- package/pb/shared.translation_pb.d.ts +39 -0
- package/pb/{shared.translation_pb.ts → shared.translation_pb.js} +7 -31
- package/pb/shared.version_pb.d.ts +37 -0
- package/pb/{shared.version_pb.ts → shared.version_pb.js} +7 -29
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "shared.runtime_function.proto" (package "shared", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
9
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
+
import { Value } from "./shared.struct_pb";
|
|
11
|
+
import { Version } from "./shared.version_pb";
|
|
12
|
+
import { Translation } from "./shared.translation_pb";
|
|
13
|
+
import { DataTypeIdentifier } from "./shared.data_type_pb";
|
|
14
|
+
/**
|
|
15
|
+
* Definition of a function used for execution
|
|
16
|
+
*
|
|
17
|
+
* @generated from protobuf message shared.RuntimeFunctionDefinition
|
|
18
|
+
*/
|
|
19
|
+
export interface RuntimeFunctionDefinition {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf field: string runtime_name = 1
|
|
22
|
+
*/
|
|
23
|
+
runtimeName: string;
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf field: repeated shared.RuntimeParameterDefinition runtime_parameter_definitions = 2
|
|
26
|
+
*/
|
|
27
|
+
runtimeParameterDefinitions: RuntimeParameterDefinition[];
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf field: optional shared.DataTypeIdentifier return_type_identifier = 3
|
|
30
|
+
*/
|
|
31
|
+
returnTypeIdentifier?: DataTypeIdentifier;
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf field: bool throws_error = 4
|
|
34
|
+
*/
|
|
35
|
+
throwsError: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf field: repeated string generic_keys = 5
|
|
38
|
+
*/
|
|
39
|
+
genericKeys: string[];
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf field: repeated shared.Translation name = 6
|
|
42
|
+
*/
|
|
43
|
+
name: Translation[];
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf field: repeated shared.Translation description = 7
|
|
46
|
+
*/
|
|
47
|
+
description: Translation[];
|
|
48
|
+
/**
|
|
49
|
+
* @generated from protobuf field: repeated shared.Translation documentation = 8
|
|
50
|
+
*/
|
|
51
|
+
documentation: Translation[];
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf field: repeated shared.Translation deprecation_message = 9
|
|
54
|
+
*/
|
|
55
|
+
deprecationMessage: Translation[];
|
|
56
|
+
/**
|
|
57
|
+
* Version of the runtime function
|
|
58
|
+
*
|
|
59
|
+
* @generated from protobuf field: shared.Version version = 10
|
|
60
|
+
*/
|
|
61
|
+
version?: Version;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Definition of a parameter used for execution
|
|
65
|
+
*
|
|
66
|
+
* @generated from protobuf message shared.RuntimeParameterDefinition
|
|
67
|
+
*/
|
|
68
|
+
export interface RuntimeParameterDefinition {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from protobuf field: shared.DataTypeIdentifier data_type_identifier = 1
|
|
71
|
+
*/
|
|
72
|
+
dataTypeIdentifier?: DataTypeIdentifier;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from protobuf field: string runtime_name = 2
|
|
75
|
+
*/
|
|
76
|
+
runtimeName: string;
|
|
77
|
+
/**
|
|
78
|
+
* @generated from protobuf field: optional shared.Value default_value = 3
|
|
79
|
+
*/
|
|
80
|
+
defaultValue?: Value;
|
|
81
|
+
/**
|
|
82
|
+
* @generated from protobuf field: repeated shared.Translation name = 4
|
|
83
|
+
*/
|
|
84
|
+
name: Translation[];
|
|
85
|
+
/**
|
|
86
|
+
* @generated from protobuf field: repeated shared.Translation description = 5
|
|
87
|
+
*/
|
|
88
|
+
description: Translation[];
|
|
89
|
+
/**
|
|
90
|
+
* @generated from protobuf field: repeated shared.Translation documentation = 6
|
|
91
|
+
*/
|
|
92
|
+
documentation: Translation[];
|
|
93
|
+
}
|
|
94
|
+
declare class RuntimeFunctionDefinition$Type extends MessageType<RuntimeFunctionDefinition> {
|
|
95
|
+
constructor();
|
|
96
|
+
create(value?: PartialMessage<RuntimeFunctionDefinition>): RuntimeFunctionDefinition;
|
|
97
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeFunctionDefinition): RuntimeFunctionDefinition;
|
|
98
|
+
internalBinaryWrite(message: RuntimeFunctionDefinition, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @generated MessageType for protobuf message shared.RuntimeFunctionDefinition
|
|
102
|
+
*/
|
|
103
|
+
export declare const RuntimeFunctionDefinition: RuntimeFunctionDefinition$Type;
|
|
104
|
+
declare class RuntimeParameterDefinition$Type extends MessageType<RuntimeParameterDefinition> {
|
|
105
|
+
constructor();
|
|
106
|
+
create(value?: PartialMessage<RuntimeParameterDefinition>): RuntimeParameterDefinition;
|
|
107
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeParameterDefinition): RuntimeParameterDefinition;
|
|
108
|
+
internalBinaryWrite(message: RuntimeParameterDefinition, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @generated MessageType for protobuf message shared.RuntimeParameterDefinition
|
|
112
|
+
*/
|
|
113
|
+
export declare const RuntimeParameterDefinition: RuntimeParameterDefinition$Type;
|
|
114
|
+
export {};
|
|
@@ -1,101 +1,16 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
2
|
// @generated from protobuf file "shared.runtime_function.proto" (package "shared", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
4
|
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
5
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
6
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
7
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
8
|
import { Value } from "./shared.struct_pb";
|
|
14
9
|
import { Version } from "./shared.version_pb";
|
|
15
10
|
import { Translation } from "./shared.translation_pb";
|
|
16
11
|
import { DataTypeIdentifier } from "./shared.data_type_pb";
|
|
17
|
-
/**
|
|
18
|
-
* Definition of a function used for execution
|
|
19
|
-
*
|
|
20
|
-
* @generated from protobuf message shared.RuntimeFunctionDefinition
|
|
21
|
-
*/
|
|
22
|
-
export interface RuntimeFunctionDefinition {
|
|
23
|
-
/**
|
|
24
|
-
* @generated from protobuf field: string runtime_name = 1
|
|
25
|
-
*/
|
|
26
|
-
runtimeName: string;
|
|
27
|
-
/**
|
|
28
|
-
* @generated from protobuf field: repeated shared.RuntimeParameterDefinition runtime_parameter_definitions = 2
|
|
29
|
-
*/
|
|
30
|
-
runtimeParameterDefinitions: RuntimeParameterDefinition[];
|
|
31
|
-
/**
|
|
32
|
-
* @generated from protobuf field: optional shared.DataTypeIdentifier return_type_identifier = 3
|
|
33
|
-
*/
|
|
34
|
-
returnTypeIdentifier?: DataTypeIdentifier;
|
|
35
|
-
/**
|
|
36
|
-
* @generated from protobuf field: bool throws_error = 4
|
|
37
|
-
*/
|
|
38
|
-
throwsError: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* @generated from protobuf field: repeated string generic_keys = 5
|
|
41
|
-
*/
|
|
42
|
-
genericKeys: string[];
|
|
43
|
-
/**
|
|
44
|
-
* @generated from protobuf field: repeated shared.Translation name = 6
|
|
45
|
-
*/
|
|
46
|
-
name: Translation[];
|
|
47
|
-
/**
|
|
48
|
-
* @generated from protobuf field: repeated shared.Translation description = 7
|
|
49
|
-
*/
|
|
50
|
-
description: Translation[];
|
|
51
|
-
/**
|
|
52
|
-
* @generated from protobuf field: repeated shared.Translation documentation = 8
|
|
53
|
-
*/
|
|
54
|
-
documentation: Translation[];
|
|
55
|
-
/**
|
|
56
|
-
* @generated from protobuf field: repeated shared.Translation deprecation_message = 9
|
|
57
|
-
*/
|
|
58
|
-
deprecationMessage: Translation[];
|
|
59
|
-
/**
|
|
60
|
-
* Version of the runtime function
|
|
61
|
-
*
|
|
62
|
-
* @generated from protobuf field: shared.Version version = 10
|
|
63
|
-
*/
|
|
64
|
-
version?: Version;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Definition of a parameter used for execution
|
|
68
|
-
*
|
|
69
|
-
* @generated from protobuf message shared.RuntimeParameterDefinition
|
|
70
|
-
*/
|
|
71
|
-
export interface RuntimeParameterDefinition {
|
|
72
|
-
/**
|
|
73
|
-
* @generated from protobuf field: shared.DataTypeIdentifier data_type_identifier = 1
|
|
74
|
-
*/
|
|
75
|
-
dataTypeIdentifier?: DataTypeIdentifier;
|
|
76
|
-
/**
|
|
77
|
-
* @generated from protobuf field: string runtime_name = 2
|
|
78
|
-
*/
|
|
79
|
-
runtimeName: string;
|
|
80
|
-
/**
|
|
81
|
-
* @generated from protobuf field: optional shared.Value default_value = 3
|
|
82
|
-
*/
|
|
83
|
-
defaultValue?: Value;
|
|
84
|
-
/**
|
|
85
|
-
* @generated from protobuf field: repeated shared.Translation name = 4
|
|
86
|
-
*/
|
|
87
|
-
name: Translation[];
|
|
88
|
-
/**
|
|
89
|
-
* @generated from protobuf field: repeated shared.Translation description = 5
|
|
90
|
-
*/
|
|
91
|
-
description: Translation[];
|
|
92
|
-
/**
|
|
93
|
-
* @generated from protobuf field: repeated shared.Translation documentation = 6
|
|
94
|
-
*/
|
|
95
|
-
documentation: Translation[];
|
|
96
|
-
}
|
|
97
12
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
98
|
-
class RuntimeFunctionDefinition$Type extends MessageType
|
|
13
|
+
class RuntimeFunctionDefinition$Type extends MessageType {
|
|
99
14
|
constructor() {
|
|
100
15
|
super("shared.RuntimeFunctionDefinition", [
|
|
101
16
|
{ no: 1, name: "runtime_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -110,8 +25,8 @@ class RuntimeFunctionDefinition$Type extends MessageType<RuntimeFunctionDefiniti
|
|
|
110
25
|
{ no: 10, name: "version", kind: "message", T: () => Version }
|
|
111
26
|
]);
|
|
112
27
|
}
|
|
113
|
-
create(value
|
|
114
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
28
|
+
create(value) {
|
|
29
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
115
30
|
message.runtimeName = "";
|
|
116
31
|
message.runtimeParameterDefinitions = [];
|
|
117
32
|
message.throwsError = false;
|
|
@@ -121,10 +36,10 @@ class RuntimeFunctionDefinition$Type extends MessageType<RuntimeFunctionDefiniti
|
|
|
121
36
|
message.documentation = [];
|
|
122
37
|
message.deprecationMessage = [];
|
|
123
38
|
if (value !== undefined)
|
|
124
|
-
reflectionMergePartial
|
|
39
|
+
reflectionMergePartial(this, message, value);
|
|
125
40
|
return message;
|
|
126
41
|
}
|
|
127
|
-
internalBinaryRead(reader
|
|
42
|
+
internalBinaryRead(reader, length, options, target) {
|
|
128
43
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
129
44
|
while (reader.pos < end) {
|
|
130
45
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -170,7 +85,7 @@ class RuntimeFunctionDefinition$Type extends MessageType<RuntimeFunctionDefiniti
|
|
|
170
85
|
}
|
|
171
86
|
return message;
|
|
172
87
|
}
|
|
173
|
-
internalBinaryWrite(message
|
|
88
|
+
internalBinaryWrite(message, writer, options) {
|
|
174
89
|
/* string runtime_name = 1; */
|
|
175
90
|
if (message.runtimeName !== "")
|
|
176
91
|
writer.tag(1, WireType.LengthDelimited).string(message.runtimeName);
|
|
@@ -212,7 +127,7 @@ class RuntimeFunctionDefinition$Type extends MessageType<RuntimeFunctionDefiniti
|
|
|
212
127
|
*/
|
|
213
128
|
export const RuntimeFunctionDefinition = new RuntimeFunctionDefinition$Type();
|
|
214
129
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
215
|
-
class RuntimeParameterDefinition$Type extends MessageType
|
|
130
|
+
class RuntimeParameterDefinition$Type extends MessageType {
|
|
216
131
|
constructor() {
|
|
217
132
|
super("shared.RuntimeParameterDefinition", [
|
|
218
133
|
{ no: 1, name: "data_type_identifier", kind: "message", T: () => DataTypeIdentifier },
|
|
@@ -223,17 +138,17 @@ class RuntimeParameterDefinition$Type extends MessageType<RuntimeParameterDefini
|
|
|
223
138
|
{ no: 6, name: "documentation", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation }
|
|
224
139
|
]);
|
|
225
140
|
}
|
|
226
|
-
create(value
|
|
227
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
141
|
+
create(value) {
|
|
142
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
228
143
|
message.runtimeName = "";
|
|
229
144
|
message.name = [];
|
|
230
145
|
message.description = [];
|
|
231
146
|
message.documentation = [];
|
|
232
147
|
if (value !== undefined)
|
|
233
|
-
reflectionMergePartial
|
|
148
|
+
reflectionMergePartial(this, message, value);
|
|
234
149
|
return message;
|
|
235
150
|
}
|
|
236
|
-
internalBinaryRead(reader
|
|
151
|
+
internalBinaryRead(reader, length, options, target) {
|
|
237
152
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
238
153
|
while (reader.pos < end) {
|
|
239
154
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -267,7 +182,7 @@ class RuntimeParameterDefinition$Type extends MessageType<RuntimeParameterDefini
|
|
|
267
182
|
}
|
|
268
183
|
return message;
|
|
269
184
|
}
|
|
270
|
-
internalBinaryWrite(message
|
|
185
|
+
internalBinaryWrite(message, writer, options) {
|
|
271
186
|
/* shared.DataTypeIdentifier data_type_identifier = 1; */
|
|
272
187
|
if (message.dataTypeIdentifier)
|
|
273
188
|
DataTypeIdentifier.internalBinaryWrite(message.dataTypeIdentifier, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
+
// @generated from protobuf file "shared.struct.proto" (package "shared", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Protocol Buffers - Google's data interchange format
|
|
6
|
+
// Copyright 2008 Google Inc. All rights reserved.
|
|
7
|
+
// https://developers.google.com/protocol-buffers/
|
|
8
|
+
//
|
|
9
|
+
// Redistribution and use in source and binary forms, with or without
|
|
10
|
+
// modification, are permitted provided that the following conditions are
|
|
11
|
+
// met:
|
|
12
|
+
//
|
|
13
|
+
// * Redistributions of source code must retain the above copyright
|
|
14
|
+
// notice, this list of conditions and the following disclaimer.
|
|
15
|
+
// * Redistributions in binary form must reproduce the above
|
|
16
|
+
// copyright notice, this list of conditions and the following disclaimer
|
|
17
|
+
// in the documentation and/or other materials provided with the
|
|
18
|
+
// distribution.
|
|
19
|
+
// * Neither the name of Google Inc. nor the names of its
|
|
20
|
+
// contributors may be used to endorse or promote products derived from
|
|
21
|
+
// this software without specific prior written permission.
|
|
22
|
+
//
|
|
23
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
24
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
25
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
26
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
27
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
28
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
29
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
30
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
31
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
32
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
33
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
34
|
+
//
|
|
35
|
+
//
|
|
36
|
+
// Code0 Tucana note:
|
|
37
|
+
// The package name and options have been modified to accommodate for the needs of this project
|
|
38
|
+
// The original is located at https://github.com/protocolbuffers/protobuf/blob/18aa4e1fcb8882133e96445c40d1521f16932f1c/src/google/protobuf/struct.proto
|
|
39
|
+
//
|
|
40
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
41
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
42
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
43
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
44
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
45
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
46
|
+
/**
|
|
47
|
+
* `Struct` represents a structured data value, consisting of fields
|
|
48
|
+
* which map to dynamically typed values. In some languages, `Struct`
|
|
49
|
+
* might be supported by a native representation. For example, in
|
|
50
|
+
* scripting languages like JS a struct is represented as an
|
|
51
|
+
* object. The details of that representation are described together
|
|
52
|
+
* with the proto support for the language.
|
|
53
|
+
*
|
|
54
|
+
* The JSON representation for `Struct` is JSON object.
|
|
55
|
+
*
|
|
56
|
+
* @generated from protobuf message shared.Struct
|
|
57
|
+
*/
|
|
58
|
+
export interface Struct {
|
|
59
|
+
/**
|
|
60
|
+
* Unordered map of dynamically typed values.
|
|
61
|
+
*
|
|
62
|
+
* @generated from protobuf field: map<string, shared.Value> fields = 1
|
|
63
|
+
*/
|
|
64
|
+
fields: {
|
|
65
|
+
[key: string]: Value;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* `Value` represents a dynamically typed value which can be either
|
|
70
|
+
* null, a number, a string, a boolean, a recursive struct value, or a
|
|
71
|
+
* list of values. A producer of value is expected to set one of these
|
|
72
|
+
* variants. Absence of any variant indicates an error.
|
|
73
|
+
*
|
|
74
|
+
* The JSON representation for `Value` is JSON value.
|
|
75
|
+
*
|
|
76
|
+
* @generated from protobuf message shared.Value
|
|
77
|
+
*/
|
|
78
|
+
export interface Value {
|
|
79
|
+
/**
|
|
80
|
+
* The kind of value.
|
|
81
|
+
*
|
|
82
|
+
* @generated from protobuf oneof: kind
|
|
83
|
+
*/
|
|
84
|
+
kind: {
|
|
85
|
+
oneofKind: "nullValue";
|
|
86
|
+
/**
|
|
87
|
+
* Represents a null value.
|
|
88
|
+
*
|
|
89
|
+
* @generated from protobuf field: shared.NullValue null_value = 1
|
|
90
|
+
*/
|
|
91
|
+
nullValue: NullValue;
|
|
92
|
+
} | {
|
|
93
|
+
oneofKind: "numberValue";
|
|
94
|
+
/**
|
|
95
|
+
* Represents a double value.
|
|
96
|
+
*
|
|
97
|
+
* @generated from protobuf field: double number_value = 2
|
|
98
|
+
*/
|
|
99
|
+
numberValue: number;
|
|
100
|
+
} | {
|
|
101
|
+
oneofKind: "stringValue";
|
|
102
|
+
/**
|
|
103
|
+
* Represents a string value.
|
|
104
|
+
*
|
|
105
|
+
* @generated from protobuf field: string string_value = 3
|
|
106
|
+
*/
|
|
107
|
+
stringValue: string;
|
|
108
|
+
} | {
|
|
109
|
+
oneofKind: "boolValue";
|
|
110
|
+
/**
|
|
111
|
+
* Represents a boolean value.
|
|
112
|
+
*
|
|
113
|
+
* @generated from protobuf field: bool bool_value = 4
|
|
114
|
+
*/
|
|
115
|
+
boolValue: boolean;
|
|
116
|
+
} | {
|
|
117
|
+
oneofKind: "structValue";
|
|
118
|
+
/**
|
|
119
|
+
* Represents a structured value.
|
|
120
|
+
*
|
|
121
|
+
* @generated from protobuf field: shared.Struct struct_value = 5
|
|
122
|
+
*/
|
|
123
|
+
structValue: Struct;
|
|
124
|
+
} | {
|
|
125
|
+
oneofKind: "listValue";
|
|
126
|
+
/**
|
|
127
|
+
* Represents a repeated `Value`.
|
|
128
|
+
*
|
|
129
|
+
* @generated from protobuf field: shared.ListValue list_value = 6
|
|
130
|
+
*/
|
|
131
|
+
listValue: ListValue;
|
|
132
|
+
} | {
|
|
133
|
+
oneofKind: undefined;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* `ListValue` is a wrapper around a repeated field of values.
|
|
138
|
+
*
|
|
139
|
+
* The JSON representation for `ListValue` is JSON array.
|
|
140
|
+
*
|
|
141
|
+
* @generated from protobuf message shared.ListValue
|
|
142
|
+
*/
|
|
143
|
+
export interface ListValue {
|
|
144
|
+
/**
|
|
145
|
+
* Repeated field of dynamically typed values.
|
|
146
|
+
*
|
|
147
|
+
* @generated from protobuf field: repeated shared.Value values = 1
|
|
148
|
+
*/
|
|
149
|
+
values: Value[];
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
153
|
+
* `Value` type union.
|
|
154
|
+
*
|
|
155
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
156
|
+
*
|
|
157
|
+
* @generated from protobuf enum shared.NullValue
|
|
158
|
+
*/
|
|
159
|
+
export declare enum NullValue {
|
|
160
|
+
/**
|
|
161
|
+
* Null value.
|
|
162
|
+
*
|
|
163
|
+
* @generated from protobuf enum value: NULL_VALUE = 0;
|
|
164
|
+
*/
|
|
165
|
+
NULL_VALUE = 0
|
|
166
|
+
}
|
|
167
|
+
declare class Struct$Type extends MessageType<Struct> {
|
|
168
|
+
constructor();
|
|
169
|
+
create(value?: PartialMessage<Struct>): Struct;
|
|
170
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Struct): Struct;
|
|
171
|
+
private binaryReadMap1;
|
|
172
|
+
internalBinaryWrite(message: Struct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* @generated MessageType for protobuf message shared.Struct
|
|
176
|
+
*/
|
|
177
|
+
export declare const Struct: Struct$Type;
|
|
178
|
+
declare class Value$Type extends MessageType<Value> {
|
|
179
|
+
constructor();
|
|
180
|
+
create(value?: PartialMessage<Value>): Value;
|
|
181
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Value): Value;
|
|
182
|
+
internalBinaryWrite(message: Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* @generated MessageType for protobuf message shared.Value
|
|
186
|
+
*/
|
|
187
|
+
export declare const Value: Value$Type;
|
|
188
|
+
declare class ListValue$Type extends MessageType<ListValue> {
|
|
189
|
+
constructor();
|
|
190
|
+
create(value?: PartialMessage<ListValue>): ListValue;
|
|
191
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListValue): ListValue;
|
|
192
|
+
internalBinaryWrite(message: ListValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* @generated MessageType for protobuf message shared.ListValue
|
|
196
|
+
*/
|
|
197
|
+
export declare const ListValue: ListValue$Type;
|
|
198
|
+
export {};
|