@devvit/protos 0.11.0-next-2024-08-06-9a9058384.0 → 0.11.0-next-2024-08-06-2b2a01b37.0
Sign up to get free protection for your applications and to get access to all the features.
- package/meta.min.json +8 -16
- package/package.json +5 -5
- package/protos.min.js +2 -2
- package/protos.min.js.map +3 -3
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/echo.client.ts +6 -6
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/echo.ts +2 -2
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/runtime_common.ts +0 -183
- package/schema/devvit/runtime/actor/echo.proto +2 -2
- package/schema/devvit/runtime/runtime_common.proto +0 -17
- package/schema/snootobuf.ts.lock +0 -0
- package/types/devvit/runtime/actor/echo.d.ts +17 -17
- package/types/devvit/runtime/actor/echo.d.ts.map +1 -1
- package/types/devvit/runtime/actor/echo.js +5 -5
- package/types/devvit/runtime/actor/echo.twirp-client.d.ts +4 -4
- package/types/devvit/runtime/actor/echo.twirp-client.d.ts.map +1 -1
- package/types/devvit/runtime/actor/echo.twirp-client.js +5 -5
- package/types/devvit/runtime/actor/echo.twirp.d.ts +2 -2
- package/types/devvit/runtime/actor/echo.twirp.d.ts.map +1 -1
- package/types/devvit/runtime/actor/echo.twirp.js +5 -5
- package/types/devvit/runtime/runtime_common.d.ts +0 -41
- package/types/devvit/runtime/runtime_common.d.ts.map +1 -1
- package/types/devvit/runtime/runtime_common.js +0 -176
@@ -5,128 +5,7 @@
|
|
5
5
|
*/
|
6
6
|
/* eslint-disable */
|
7
7
|
import _m0 from "protobufjs/minimal.js";
|
8
|
-
import { Value } from "../../google/protobuf/struct.js";
|
9
8
|
import { messageTypeRegistry } from "../../typeRegistry.js";
|
10
|
-
function createBaseAck() {
|
11
|
-
return { success: false, messages: [] };
|
12
|
-
}
|
13
|
-
export const Ack = {
|
14
|
-
$type: "devvit.runtime.Ack",
|
15
|
-
encode(message, writer = _m0.Writer.create()) {
|
16
|
-
if (message.success !== false) {
|
17
|
-
writer.uint32(8).bool(message.success);
|
18
|
-
}
|
19
|
-
for (const v of message.messages) {
|
20
|
-
writer.uint32(18).string(v);
|
21
|
-
}
|
22
|
-
return writer;
|
23
|
-
},
|
24
|
-
decode(input, length) {
|
25
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
26
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
27
|
-
const message = createBaseAck();
|
28
|
-
while (reader.pos < end) {
|
29
|
-
const tag = reader.uint32();
|
30
|
-
switch (tag >>> 3) {
|
31
|
-
case 1:
|
32
|
-
if (tag !== 8) {
|
33
|
-
break;
|
34
|
-
}
|
35
|
-
message.success = reader.bool();
|
36
|
-
continue;
|
37
|
-
case 2:
|
38
|
-
if (tag !== 18) {
|
39
|
-
break;
|
40
|
-
}
|
41
|
-
message.messages.push(reader.string());
|
42
|
-
continue;
|
43
|
-
}
|
44
|
-
if ((tag & 7) === 4 || tag === 0) {
|
45
|
-
break;
|
46
|
-
}
|
47
|
-
reader.skipType(tag & 7);
|
48
|
-
}
|
49
|
-
return message;
|
50
|
-
},
|
51
|
-
fromJSON(object) {
|
52
|
-
return {
|
53
|
-
success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
|
54
|
-
messages: globalThis.Array.isArray(object?.messages) ? object.messages.map((e) => globalThis.String(e)) : [],
|
55
|
-
};
|
56
|
-
},
|
57
|
-
toJSON(message) {
|
58
|
-
const obj = {};
|
59
|
-
if (message.success !== false) {
|
60
|
-
obj.success = message.success;
|
61
|
-
}
|
62
|
-
if (message.messages?.length) {
|
63
|
-
obj.messages = message.messages;
|
64
|
-
}
|
65
|
-
return obj;
|
66
|
-
},
|
67
|
-
create(base) {
|
68
|
-
return Ack.fromPartial(base ?? {});
|
69
|
-
},
|
70
|
-
fromPartial(object) {
|
71
|
-
const message = createBaseAck();
|
72
|
-
message.success = object.success ?? false;
|
73
|
-
message.messages = object.messages?.map((e) => e) || [];
|
74
|
-
return message;
|
75
|
-
},
|
76
|
-
};
|
77
|
-
messageTypeRegistry.set(Ack.$type, Ack);
|
78
|
-
function createBaseDebug() {
|
79
|
-
return { message: undefined };
|
80
|
-
}
|
81
|
-
export const Debug = {
|
82
|
-
$type: "devvit.runtime.Debug",
|
83
|
-
encode(message, writer = _m0.Writer.create()) {
|
84
|
-
if (message.message !== undefined) {
|
85
|
-
Value.encode(Value.wrap(message.message), writer.uint32(10).fork()).ldelim();
|
86
|
-
}
|
87
|
-
return writer;
|
88
|
-
},
|
89
|
-
decode(input, length) {
|
90
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
91
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
92
|
-
const message = createBaseDebug();
|
93
|
-
while (reader.pos < end) {
|
94
|
-
const tag = reader.uint32();
|
95
|
-
switch (tag >>> 3) {
|
96
|
-
case 1:
|
97
|
-
if (tag !== 10) {
|
98
|
-
break;
|
99
|
-
}
|
100
|
-
message.message = Value.unwrap(Value.decode(reader, reader.uint32()));
|
101
|
-
continue;
|
102
|
-
}
|
103
|
-
if ((tag & 7) === 4 || tag === 0) {
|
104
|
-
break;
|
105
|
-
}
|
106
|
-
reader.skipType(tag & 7);
|
107
|
-
}
|
108
|
-
return message;
|
109
|
-
},
|
110
|
-
fromJSON(object) {
|
111
|
-
return { message: isSet(object?.message) ? object.message : undefined };
|
112
|
-
},
|
113
|
-
toJSON(message) {
|
114
|
-
const obj = {};
|
115
|
-
if (message.message !== undefined) {
|
116
|
-
obj.message = message.message;
|
117
|
-
}
|
118
|
-
return obj;
|
119
|
-
},
|
120
|
-
create(base) {
|
121
|
-
return Debug.fromPartial(base ?? {});
|
122
|
-
},
|
123
|
-
fromPartial(object) {
|
124
|
-
const message = createBaseDebug();
|
125
|
-
message.message = object.message ?? undefined;
|
126
|
-
return message;
|
127
|
-
},
|
128
|
-
};
|
129
|
-
messageTypeRegistry.set(Debug.$type, Debug);
|
130
9
|
function createBaseStrings() {
|
131
10
|
return { values: [] };
|
132
11
|
}
|
@@ -181,58 +60,3 @@ export const Strings = {
|
|
181
60
|
},
|
182
61
|
};
|
183
62
|
messageTypeRegistry.set(Strings.$type, Strings);
|
184
|
-
function createBaseStr() {
|
185
|
-
return { value: "" };
|
186
|
-
}
|
187
|
-
export const Str = {
|
188
|
-
$type: "devvit.runtime.Str",
|
189
|
-
encode(message, writer = _m0.Writer.create()) {
|
190
|
-
if (message.value !== "") {
|
191
|
-
writer.uint32(10).string(message.value);
|
192
|
-
}
|
193
|
-
return writer;
|
194
|
-
},
|
195
|
-
decode(input, length) {
|
196
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
197
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
198
|
-
const message = createBaseStr();
|
199
|
-
while (reader.pos < end) {
|
200
|
-
const tag = reader.uint32();
|
201
|
-
switch (tag >>> 3) {
|
202
|
-
case 1:
|
203
|
-
if (tag !== 10) {
|
204
|
-
break;
|
205
|
-
}
|
206
|
-
message.value = reader.string();
|
207
|
-
continue;
|
208
|
-
}
|
209
|
-
if ((tag & 7) === 4 || tag === 0) {
|
210
|
-
break;
|
211
|
-
}
|
212
|
-
reader.skipType(tag & 7);
|
213
|
-
}
|
214
|
-
return message;
|
215
|
-
},
|
216
|
-
fromJSON(object) {
|
217
|
-
return { value: isSet(object.value) ? globalThis.String(object.value) : "" };
|
218
|
-
},
|
219
|
-
toJSON(message) {
|
220
|
-
const obj = {};
|
221
|
-
if (message.value !== "") {
|
222
|
-
obj.value = message.value;
|
223
|
-
}
|
224
|
-
return obj;
|
225
|
-
},
|
226
|
-
create(base) {
|
227
|
-
return Str.fromPartial(base ?? {});
|
228
|
-
},
|
229
|
-
fromPartial(object) {
|
230
|
-
const message = createBaseStr();
|
231
|
-
message.value = object.value ?? "";
|
232
|
-
return message;
|
233
|
-
},
|
234
|
-
};
|
235
|
-
messageTypeRegistry.set(Str.$type, Str);
|
236
|
-
function isSet(value) {
|
237
|
-
return value !== null && value !== undefined;
|
238
|
-
}
|