@dcl/protocol 1.0.0-6590614146.commit-db4a595 → 1.0.0-6725457366.commit-d6b2b77
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/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
- package/out-js/decentraland/quests/definitions.gen.js +2728 -0
- package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +17 -3
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -1
- package/out-js/google/protobuf/empty.gen.d.ts +38 -0
- package/out-js/google/protobuf/empty.gen.js +54 -0
- package/out-js/google/protobuf/empty.gen.js.map +1 -0
- package/out-js/quests.gen.d.ts +1 -0
- package/out-js/quests.gen.js +6 -0
- package/out-js/quests.gen.js.map +1 -0
- package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +19 -2
- package/out-ts/google/protobuf/empty.gen.ts +72 -0
- package/out-ts/quests.gen.ts +3 -0
- package/package.json +2 -2
- package/proto/decentraland/sdk/components/ui_input_result.proto +1 -0
- package/public/quests.proto +5 -0
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Empty } from "../../google/protobuf/empty.gen";
|
|
3
|
+
export declare const protobufPackage = "decentraland.quests";
|
|
4
|
+
/** Errors */
|
|
5
|
+
export interface InvalidQuest {
|
|
6
|
+
}
|
|
7
|
+
export interface NotUUID {
|
|
8
|
+
}
|
|
9
|
+
export interface InternalServerError {
|
|
10
|
+
}
|
|
11
|
+
export interface NotFoundQuestInstance {
|
|
12
|
+
}
|
|
13
|
+
export interface QuestAlreadyStarted {
|
|
14
|
+
}
|
|
15
|
+
export interface NotOwner {
|
|
16
|
+
}
|
|
17
|
+
export interface IgnoredEvent {
|
|
18
|
+
}
|
|
19
|
+
export interface StartQuestRequest {
|
|
20
|
+
questId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface StartQuestResponse {
|
|
23
|
+
response?: {
|
|
24
|
+
$case: "accepted";
|
|
25
|
+
accepted: StartQuestResponse_Accepted;
|
|
26
|
+
} | {
|
|
27
|
+
$case: "invalidQuest";
|
|
28
|
+
invalidQuest: InvalidQuest;
|
|
29
|
+
} | {
|
|
30
|
+
$case: "notUuidError";
|
|
31
|
+
notUuidError: NotUUID;
|
|
32
|
+
} | {
|
|
33
|
+
$case: "internalServerError";
|
|
34
|
+
internalServerError: InternalServerError;
|
|
35
|
+
} | {
|
|
36
|
+
$case: "questAlreadyStarted";
|
|
37
|
+
questAlreadyStarted: QuestAlreadyStarted;
|
|
38
|
+
} | undefined;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* There are a few valid reasons to not be accepted:
|
|
42
|
+
* - Quest is not found
|
|
43
|
+
* - Quest is deactivated (the owner deleted it)
|
|
44
|
+
* - User already started the quest
|
|
45
|
+
* - Internal errors (DB connection failed or something like that)
|
|
46
|
+
*/
|
|
47
|
+
export interface StartQuestResponse_Accepted {
|
|
48
|
+
}
|
|
49
|
+
export interface AbortQuestRequest {
|
|
50
|
+
questInstanceId: string;
|
|
51
|
+
}
|
|
52
|
+
export interface AbortQuestResponse {
|
|
53
|
+
response?: {
|
|
54
|
+
$case: "accepted";
|
|
55
|
+
accepted: AbortQuestResponse_Accepted;
|
|
56
|
+
} | {
|
|
57
|
+
$case: "notFoundQuestInstance";
|
|
58
|
+
notFoundQuestInstance: NotFoundQuestInstance;
|
|
59
|
+
} | {
|
|
60
|
+
$case: "notUuidError";
|
|
61
|
+
notUuidError: NotUUID;
|
|
62
|
+
} | {
|
|
63
|
+
$case: "notOwner";
|
|
64
|
+
notOwner: NotOwner;
|
|
65
|
+
} | {
|
|
66
|
+
$case: "internalServerError";
|
|
67
|
+
internalServerError: InternalServerError;
|
|
68
|
+
} | undefined;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* There are a few valid reasons to not be accepted:
|
|
72
|
+
* - Quest instance is not found
|
|
73
|
+
* - Quest instance is from another user
|
|
74
|
+
* - Quest instance already aborted
|
|
75
|
+
* - Internal errors (DB connection failed or something like that)
|
|
76
|
+
*/
|
|
77
|
+
export interface AbortQuestResponse_Accepted {
|
|
78
|
+
}
|
|
79
|
+
export interface Event {
|
|
80
|
+
id: string;
|
|
81
|
+
address: string;
|
|
82
|
+
action: Action | undefined;
|
|
83
|
+
}
|
|
84
|
+
export interface EventRequest {
|
|
85
|
+
action: Action | undefined;
|
|
86
|
+
}
|
|
87
|
+
export interface EventResponse {
|
|
88
|
+
response?: {
|
|
89
|
+
$case: "acceptedEventId";
|
|
90
|
+
acceptedEventId: string;
|
|
91
|
+
} | {
|
|
92
|
+
$case: "ignoredEvent";
|
|
93
|
+
ignoredEvent: IgnoredEvent;
|
|
94
|
+
} | {
|
|
95
|
+
$case: "internalServerError";
|
|
96
|
+
internalServerError: InternalServerError;
|
|
97
|
+
} | undefined;
|
|
98
|
+
}
|
|
99
|
+
export interface QuestDefinition {
|
|
100
|
+
steps: Step[];
|
|
101
|
+
connections: Connection[];
|
|
102
|
+
}
|
|
103
|
+
export interface Connection {
|
|
104
|
+
stepFrom: string;
|
|
105
|
+
stepTo: string;
|
|
106
|
+
}
|
|
107
|
+
export interface Step {
|
|
108
|
+
id: string;
|
|
109
|
+
description: string;
|
|
110
|
+
tasks: Task[];
|
|
111
|
+
}
|
|
112
|
+
export interface Action {
|
|
113
|
+
type: string;
|
|
114
|
+
parameters: {
|
|
115
|
+
[key: string]: string;
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
export interface Action_ParametersEntry {
|
|
119
|
+
key: string;
|
|
120
|
+
value: string;
|
|
121
|
+
}
|
|
122
|
+
export interface Task {
|
|
123
|
+
id: string;
|
|
124
|
+
description: string;
|
|
125
|
+
actionItems: Action[];
|
|
126
|
+
}
|
|
127
|
+
export interface StepContent {
|
|
128
|
+
toDos: Task[];
|
|
129
|
+
tasksCompleted: Task[];
|
|
130
|
+
}
|
|
131
|
+
export interface QuestState {
|
|
132
|
+
currentSteps: {
|
|
133
|
+
[key: string]: StepContent;
|
|
134
|
+
};
|
|
135
|
+
stepsLeft: number;
|
|
136
|
+
stepsCompleted: string[];
|
|
137
|
+
requiredSteps: string[];
|
|
138
|
+
}
|
|
139
|
+
export interface QuestState_CurrentStepsEntry {
|
|
140
|
+
key: string;
|
|
141
|
+
value: StepContent | undefined;
|
|
142
|
+
}
|
|
143
|
+
export interface Quest {
|
|
144
|
+
id: string;
|
|
145
|
+
name: string;
|
|
146
|
+
description: string;
|
|
147
|
+
definition: QuestDefinition | undefined;
|
|
148
|
+
creatorAddress: string;
|
|
149
|
+
imageUrl: string;
|
|
150
|
+
active: boolean;
|
|
151
|
+
createdAt: number;
|
|
152
|
+
}
|
|
153
|
+
export interface QuestInstance {
|
|
154
|
+
id: string;
|
|
155
|
+
quest: Quest | undefined;
|
|
156
|
+
state: QuestState | undefined;
|
|
157
|
+
}
|
|
158
|
+
export interface QuestStateUpdate {
|
|
159
|
+
instanceId: string;
|
|
160
|
+
questState: QuestState | undefined;
|
|
161
|
+
eventId: string;
|
|
162
|
+
}
|
|
163
|
+
export interface UserUpdate {
|
|
164
|
+
message?: {
|
|
165
|
+
$case: "subscribed";
|
|
166
|
+
subscribed: boolean;
|
|
167
|
+
} | {
|
|
168
|
+
$case: "questStateUpdate";
|
|
169
|
+
questStateUpdate: QuestStateUpdate;
|
|
170
|
+
} | {
|
|
171
|
+
$case: "newQuestStarted";
|
|
172
|
+
newQuestStarted: QuestInstance;
|
|
173
|
+
} | {
|
|
174
|
+
$case: "eventIgnored";
|
|
175
|
+
eventIgnored: string;
|
|
176
|
+
} | undefined;
|
|
177
|
+
userAddress: string;
|
|
178
|
+
}
|
|
179
|
+
export interface Quests {
|
|
180
|
+
instances: QuestInstance[];
|
|
181
|
+
}
|
|
182
|
+
export interface GetAllQuestsResponse {
|
|
183
|
+
response?: {
|
|
184
|
+
$case: "quests";
|
|
185
|
+
quests: Quests;
|
|
186
|
+
} | {
|
|
187
|
+
$case: "internalServerError";
|
|
188
|
+
internalServerError: InternalServerError;
|
|
189
|
+
} | undefined;
|
|
190
|
+
}
|
|
191
|
+
export interface GetQuestDefinitionRequest {
|
|
192
|
+
questId: string;
|
|
193
|
+
}
|
|
194
|
+
export interface GetQuestDefinitionResponse {
|
|
195
|
+
response?: {
|
|
196
|
+
$case: "quest";
|
|
197
|
+
quest: Quest;
|
|
198
|
+
} | {
|
|
199
|
+
$case: "internalServerError";
|
|
200
|
+
internalServerError: InternalServerError;
|
|
201
|
+
} | undefined;
|
|
202
|
+
}
|
|
203
|
+
export declare namespace InvalidQuest {
|
|
204
|
+
function encode(_: InvalidQuest, writer?: _m0.Writer): _m0.Writer;
|
|
205
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): InvalidQuest;
|
|
206
|
+
function fromJSON(_: any): InvalidQuest;
|
|
207
|
+
function toJSON(_: InvalidQuest): unknown;
|
|
208
|
+
function create<I extends Exact<DeepPartial<InvalidQuest>, I>>(base?: I): InvalidQuest;
|
|
209
|
+
function fromPartial<I extends Exact<DeepPartial<InvalidQuest>, I>>(_: I): InvalidQuest;
|
|
210
|
+
}
|
|
211
|
+
export declare namespace NotUUID {
|
|
212
|
+
function encode(_: NotUUID, writer?: _m0.Writer): _m0.Writer;
|
|
213
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): NotUUID;
|
|
214
|
+
function fromJSON(_: any): NotUUID;
|
|
215
|
+
function toJSON(_: NotUUID): unknown;
|
|
216
|
+
function create<I extends Exact<DeepPartial<NotUUID>, I>>(base?: I): NotUUID;
|
|
217
|
+
function fromPartial<I extends Exact<DeepPartial<NotUUID>, I>>(_: I): NotUUID;
|
|
218
|
+
}
|
|
219
|
+
export declare namespace InternalServerError {
|
|
220
|
+
function encode(_: InternalServerError, writer?: _m0.Writer): _m0.Writer;
|
|
221
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): InternalServerError;
|
|
222
|
+
function fromJSON(_: any): InternalServerError;
|
|
223
|
+
function toJSON(_: InternalServerError): unknown;
|
|
224
|
+
function create<I extends Exact<DeepPartial<InternalServerError>, I>>(base?: I): InternalServerError;
|
|
225
|
+
function fromPartial<I extends Exact<DeepPartial<InternalServerError>, I>>(_: I): InternalServerError;
|
|
226
|
+
}
|
|
227
|
+
export declare namespace NotFoundQuestInstance {
|
|
228
|
+
function encode(_: NotFoundQuestInstance, writer?: _m0.Writer): _m0.Writer;
|
|
229
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): NotFoundQuestInstance;
|
|
230
|
+
function fromJSON(_: any): NotFoundQuestInstance;
|
|
231
|
+
function toJSON(_: NotFoundQuestInstance): unknown;
|
|
232
|
+
function create<I extends Exact<DeepPartial<NotFoundQuestInstance>, I>>(base?: I): NotFoundQuestInstance;
|
|
233
|
+
function fromPartial<I extends Exact<DeepPartial<NotFoundQuestInstance>, I>>(_: I): NotFoundQuestInstance;
|
|
234
|
+
}
|
|
235
|
+
export declare namespace QuestAlreadyStarted {
|
|
236
|
+
function encode(_: QuestAlreadyStarted, writer?: _m0.Writer): _m0.Writer;
|
|
237
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): QuestAlreadyStarted;
|
|
238
|
+
function fromJSON(_: any): QuestAlreadyStarted;
|
|
239
|
+
function toJSON(_: QuestAlreadyStarted): unknown;
|
|
240
|
+
function create<I extends Exact<DeepPartial<QuestAlreadyStarted>, I>>(base?: I): QuestAlreadyStarted;
|
|
241
|
+
function fromPartial<I extends Exact<DeepPartial<QuestAlreadyStarted>, I>>(_: I): QuestAlreadyStarted;
|
|
242
|
+
}
|
|
243
|
+
export declare namespace NotOwner {
|
|
244
|
+
function encode(_: NotOwner, writer?: _m0.Writer): _m0.Writer;
|
|
245
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): NotOwner;
|
|
246
|
+
function fromJSON(_: any): NotOwner;
|
|
247
|
+
function toJSON(_: NotOwner): unknown;
|
|
248
|
+
function create<I extends Exact<DeepPartial<NotOwner>, I>>(base?: I): NotOwner;
|
|
249
|
+
function fromPartial<I extends Exact<DeepPartial<NotOwner>, I>>(_: I): NotOwner;
|
|
250
|
+
}
|
|
251
|
+
export declare namespace IgnoredEvent {
|
|
252
|
+
function encode(_: IgnoredEvent, writer?: _m0.Writer): _m0.Writer;
|
|
253
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): IgnoredEvent;
|
|
254
|
+
function fromJSON(_: any): IgnoredEvent;
|
|
255
|
+
function toJSON(_: IgnoredEvent): unknown;
|
|
256
|
+
function create<I extends Exact<DeepPartial<IgnoredEvent>, I>>(base?: I): IgnoredEvent;
|
|
257
|
+
function fromPartial<I extends Exact<DeepPartial<IgnoredEvent>, I>>(_: I): IgnoredEvent;
|
|
258
|
+
}
|
|
259
|
+
export declare namespace StartQuestRequest {
|
|
260
|
+
function encode(message: StartQuestRequest, writer?: _m0.Writer): _m0.Writer;
|
|
261
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): StartQuestRequest;
|
|
262
|
+
function fromJSON(object: any): StartQuestRequest;
|
|
263
|
+
function toJSON(message: StartQuestRequest): unknown;
|
|
264
|
+
function create<I extends Exact<DeepPartial<StartQuestRequest>, I>>(base?: I): StartQuestRequest;
|
|
265
|
+
function fromPartial<I extends Exact<DeepPartial<StartQuestRequest>, I>>(object: I): StartQuestRequest;
|
|
266
|
+
}
|
|
267
|
+
export declare namespace StartQuestResponse {
|
|
268
|
+
function encode(message: StartQuestResponse, writer?: _m0.Writer): _m0.Writer;
|
|
269
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): StartQuestResponse;
|
|
270
|
+
function fromJSON(object: any): StartQuestResponse;
|
|
271
|
+
function toJSON(message: StartQuestResponse): unknown;
|
|
272
|
+
function create<I extends Exact<DeepPartial<StartQuestResponse>, I>>(base?: I): StartQuestResponse;
|
|
273
|
+
function fromPartial<I extends Exact<DeepPartial<StartQuestResponse>, I>>(object: I): StartQuestResponse;
|
|
274
|
+
}
|
|
275
|
+
export declare namespace StartQuestResponse_Accepted {
|
|
276
|
+
function encode(_: StartQuestResponse_Accepted, writer?: _m0.Writer): _m0.Writer;
|
|
277
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): StartQuestResponse_Accepted;
|
|
278
|
+
function fromJSON(_: any): StartQuestResponse_Accepted;
|
|
279
|
+
function toJSON(_: StartQuestResponse_Accepted): unknown;
|
|
280
|
+
function create<I extends Exact<DeepPartial<StartQuestResponse_Accepted>, I>>(base?: I): StartQuestResponse_Accepted;
|
|
281
|
+
function fromPartial<I extends Exact<DeepPartial<StartQuestResponse_Accepted>, I>>(_: I): StartQuestResponse_Accepted;
|
|
282
|
+
}
|
|
283
|
+
export declare namespace AbortQuestRequest {
|
|
284
|
+
function encode(message: AbortQuestRequest, writer?: _m0.Writer): _m0.Writer;
|
|
285
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): AbortQuestRequest;
|
|
286
|
+
function fromJSON(object: any): AbortQuestRequest;
|
|
287
|
+
function toJSON(message: AbortQuestRequest): unknown;
|
|
288
|
+
function create<I extends Exact<DeepPartial<AbortQuestRequest>, I>>(base?: I): AbortQuestRequest;
|
|
289
|
+
function fromPartial<I extends Exact<DeepPartial<AbortQuestRequest>, I>>(object: I): AbortQuestRequest;
|
|
290
|
+
}
|
|
291
|
+
export declare namespace AbortQuestResponse {
|
|
292
|
+
function encode(message: AbortQuestResponse, writer?: _m0.Writer): _m0.Writer;
|
|
293
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): AbortQuestResponse;
|
|
294
|
+
function fromJSON(object: any): AbortQuestResponse;
|
|
295
|
+
function toJSON(message: AbortQuestResponse): unknown;
|
|
296
|
+
function create<I extends Exact<DeepPartial<AbortQuestResponse>, I>>(base?: I): AbortQuestResponse;
|
|
297
|
+
function fromPartial<I extends Exact<DeepPartial<AbortQuestResponse>, I>>(object: I): AbortQuestResponse;
|
|
298
|
+
}
|
|
299
|
+
export declare namespace AbortQuestResponse_Accepted {
|
|
300
|
+
function encode(_: AbortQuestResponse_Accepted, writer?: _m0.Writer): _m0.Writer;
|
|
301
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): AbortQuestResponse_Accepted;
|
|
302
|
+
function fromJSON(_: any): AbortQuestResponse_Accepted;
|
|
303
|
+
function toJSON(_: AbortQuestResponse_Accepted): unknown;
|
|
304
|
+
function create<I extends Exact<DeepPartial<AbortQuestResponse_Accepted>, I>>(base?: I): AbortQuestResponse_Accepted;
|
|
305
|
+
function fromPartial<I extends Exact<DeepPartial<AbortQuestResponse_Accepted>, I>>(_: I): AbortQuestResponse_Accepted;
|
|
306
|
+
}
|
|
307
|
+
export declare namespace Event {
|
|
308
|
+
function encode(message: Event, writer?: _m0.Writer): _m0.Writer;
|
|
309
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Event;
|
|
310
|
+
function fromJSON(object: any): Event;
|
|
311
|
+
function toJSON(message: Event): unknown;
|
|
312
|
+
function create<I extends Exact<DeepPartial<Event>, I>>(base?: I): Event;
|
|
313
|
+
function fromPartial<I extends Exact<DeepPartial<Event>, I>>(object: I): Event;
|
|
314
|
+
}
|
|
315
|
+
export declare namespace EventRequest {
|
|
316
|
+
function encode(message: EventRequest, writer?: _m0.Writer): _m0.Writer;
|
|
317
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): EventRequest;
|
|
318
|
+
function fromJSON(object: any): EventRequest;
|
|
319
|
+
function toJSON(message: EventRequest): unknown;
|
|
320
|
+
function create<I extends Exact<DeepPartial<EventRequest>, I>>(base?: I): EventRequest;
|
|
321
|
+
function fromPartial<I extends Exact<DeepPartial<EventRequest>, I>>(object: I): EventRequest;
|
|
322
|
+
}
|
|
323
|
+
export declare namespace EventResponse {
|
|
324
|
+
function encode(message: EventResponse, writer?: _m0.Writer): _m0.Writer;
|
|
325
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): EventResponse;
|
|
326
|
+
function fromJSON(object: any): EventResponse;
|
|
327
|
+
function toJSON(message: EventResponse): unknown;
|
|
328
|
+
function create<I extends Exact<DeepPartial<EventResponse>, I>>(base?: I): EventResponse;
|
|
329
|
+
function fromPartial<I extends Exact<DeepPartial<EventResponse>, I>>(object: I): EventResponse;
|
|
330
|
+
}
|
|
331
|
+
export declare namespace QuestDefinition {
|
|
332
|
+
function encode(message: QuestDefinition, writer?: _m0.Writer): _m0.Writer;
|
|
333
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): QuestDefinition;
|
|
334
|
+
function fromJSON(object: any): QuestDefinition;
|
|
335
|
+
function toJSON(message: QuestDefinition): unknown;
|
|
336
|
+
function create<I extends Exact<DeepPartial<QuestDefinition>, I>>(base?: I): QuestDefinition;
|
|
337
|
+
function fromPartial<I extends Exact<DeepPartial<QuestDefinition>, I>>(object: I): QuestDefinition;
|
|
338
|
+
}
|
|
339
|
+
export declare namespace Connection {
|
|
340
|
+
function encode(message: Connection, writer?: _m0.Writer): _m0.Writer;
|
|
341
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Connection;
|
|
342
|
+
function fromJSON(object: any): Connection;
|
|
343
|
+
function toJSON(message: Connection): unknown;
|
|
344
|
+
function create<I extends Exact<DeepPartial<Connection>, I>>(base?: I): Connection;
|
|
345
|
+
function fromPartial<I extends Exact<DeepPartial<Connection>, I>>(object: I): Connection;
|
|
346
|
+
}
|
|
347
|
+
export declare namespace Step {
|
|
348
|
+
function encode(message: Step, writer?: _m0.Writer): _m0.Writer;
|
|
349
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Step;
|
|
350
|
+
function fromJSON(object: any): Step;
|
|
351
|
+
function toJSON(message: Step): unknown;
|
|
352
|
+
function create<I extends Exact<DeepPartial<Step>, I>>(base?: I): Step;
|
|
353
|
+
function fromPartial<I extends Exact<DeepPartial<Step>, I>>(object: I): Step;
|
|
354
|
+
}
|
|
355
|
+
export declare namespace Action {
|
|
356
|
+
function encode(message: Action, writer?: _m0.Writer): _m0.Writer;
|
|
357
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Action;
|
|
358
|
+
function fromJSON(object: any): Action;
|
|
359
|
+
function toJSON(message: Action): unknown;
|
|
360
|
+
function create<I extends Exact<DeepPartial<Action>, I>>(base?: I): Action;
|
|
361
|
+
function fromPartial<I extends Exact<DeepPartial<Action>, I>>(object: I): Action;
|
|
362
|
+
}
|
|
363
|
+
export declare namespace Action_ParametersEntry {
|
|
364
|
+
function encode(message: Action_ParametersEntry, writer?: _m0.Writer): _m0.Writer;
|
|
365
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Action_ParametersEntry;
|
|
366
|
+
function fromJSON(object: any): Action_ParametersEntry;
|
|
367
|
+
function toJSON(message: Action_ParametersEntry): unknown;
|
|
368
|
+
function create<I extends Exact<DeepPartial<Action_ParametersEntry>, I>>(base?: I): Action_ParametersEntry;
|
|
369
|
+
function fromPartial<I extends Exact<DeepPartial<Action_ParametersEntry>, I>>(object: I): Action_ParametersEntry;
|
|
370
|
+
}
|
|
371
|
+
export declare namespace Task {
|
|
372
|
+
function encode(message: Task, writer?: _m0.Writer): _m0.Writer;
|
|
373
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Task;
|
|
374
|
+
function fromJSON(object: any): Task;
|
|
375
|
+
function toJSON(message: Task): unknown;
|
|
376
|
+
function create<I extends Exact<DeepPartial<Task>, I>>(base?: I): Task;
|
|
377
|
+
function fromPartial<I extends Exact<DeepPartial<Task>, I>>(object: I): Task;
|
|
378
|
+
}
|
|
379
|
+
export declare namespace StepContent {
|
|
380
|
+
function encode(message: StepContent, writer?: _m0.Writer): _m0.Writer;
|
|
381
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): StepContent;
|
|
382
|
+
function fromJSON(object: any): StepContent;
|
|
383
|
+
function toJSON(message: StepContent): unknown;
|
|
384
|
+
function create<I extends Exact<DeepPartial<StepContent>, I>>(base?: I): StepContent;
|
|
385
|
+
function fromPartial<I extends Exact<DeepPartial<StepContent>, I>>(object: I): StepContent;
|
|
386
|
+
}
|
|
387
|
+
export declare namespace QuestState {
|
|
388
|
+
function encode(message: QuestState, writer?: _m0.Writer): _m0.Writer;
|
|
389
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): QuestState;
|
|
390
|
+
function fromJSON(object: any): QuestState;
|
|
391
|
+
function toJSON(message: QuestState): unknown;
|
|
392
|
+
function create<I extends Exact<DeepPartial<QuestState>, I>>(base?: I): QuestState;
|
|
393
|
+
function fromPartial<I extends Exact<DeepPartial<QuestState>, I>>(object: I): QuestState;
|
|
394
|
+
}
|
|
395
|
+
export declare namespace QuestState_CurrentStepsEntry {
|
|
396
|
+
function encode(message: QuestState_CurrentStepsEntry, writer?: _m0.Writer): _m0.Writer;
|
|
397
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): QuestState_CurrentStepsEntry;
|
|
398
|
+
function fromJSON(object: any): QuestState_CurrentStepsEntry;
|
|
399
|
+
function toJSON(message: QuestState_CurrentStepsEntry): unknown;
|
|
400
|
+
function create<I extends Exact<DeepPartial<QuestState_CurrentStepsEntry>, I>>(base?: I): QuestState_CurrentStepsEntry;
|
|
401
|
+
function fromPartial<I extends Exact<DeepPartial<QuestState_CurrentStepsEntry>, I>>(object: I): QuestState_CurrentStepsEntry;
|
|
402
|
+
}
|
|
403
|
+
export declare namespace Quest {
|
|
404
|
+
function encode(message: Quest, writer?: _m0.Writer): _m0.Writer;
|
|
405
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Quest;
|
|
406
|
+
function fromJSON(object: any): Quest;
|
|
407
|
+
function toJSON(message: Quest): unknown;
|
|
408
|
+
function create<I extends Exact<DeepPartial<Quest>, I>>(base?: I): Quest;
|
|
409
|
+
function fromPartial<I extends Exact<DeepPartial<Quest>, I>>(object: I): Quest;
|
|
410
|
+
}
|
|
411
|
+
export declare namespace QuestInstance {
|
|
412
|
+
function encode(message: QuestInstance, writer?: _m0.Writer): _m0.Writer;
|
|
413
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): QuestInstance;
|
|
414
|
+
function fromJSON(object: any): QuestInstance;
|
|
415
|
+
function toJSON(message: QuestInstance): unknown;
|
|
416
|
+
function create<I extends Exact<DeepPartial<QuestInstance>, I>>(base?: I): QuestInstance;
|
|
417
|
+
function fromPartial<I extends Exact<DeepPartial<QuestInstance>, I>>(object: I): QuestInstance;
|
|
418
|
+
}
|
|
419
|
+
export declare namespace QuestStateUpdate {
|
|
420
|
+
function encode(message: QuestStateUpdate, writer?: _m0.Writer): _m0.Writer;
|
|
421
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): QuestStateUpdate;
|
|
422
|
+
function fromJSON(object: any): QuestStateUpdate;
|
|
423
|
+
function toJSON(message: QuestStateUpdate): unknown;
|
|
424
|
+
function create<I extends Exact<DeepPartial<QuestStateUpdate>, I>>(base?: I): QuestStateUpdate;
|
|
425
|
+
function fromPartial<I extends Exact<DeepPartial<QuestStateUpdate>, I>>(object: I): QuestStateUpdate;
|
|
426
|
+
}
|
|
427
|
+
export declare namespace UserUpdate {
|
|
428
|
+
function encode(message: UserUpdate, writer?: _m0.Writer): _m0.Writer;
|
|
429
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UserUpdate;
|
|
430
|
+
function fromJSON(object: any): UserUpdate;
|
|
431
|
+
function toJSON(message: UserUpdate): unknown;
|
|
432
|
+
function create<I extends Exact<DeepPartial<UserUpdate>, I>>(base?: I): UserUpdate;
|
|
433
|
+
function fromPartial<I extends Exact<DeepPartial<UserUpdate>, I>>(object: I): UserUpdate;
|
|
434
|
+
}
|
|
435
|
+
export declare namespace Quests {
|
|
436
|
+
function encode(message: Quests, writer?: _m0.Writer): _m0.Writer;
|
|
437
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Quests;
|
|
438
|
+
function fromJSON(object: any): Quests;
|
|
439
|
+
function toJSON(message: Quests): unknown;
|
|
440
|
+
function create<I extends Exact<DeepPartial<Quests>, I>>(base?: I): Quests;
|
|
441
|
+
function fromPartial<I extends Exact<DeepPartial<Quests>, I>>(object: I): Quests;
|
|
442
|
+
}
|
|
443
|
+
export declare namespace GetAllQuestsResponse {
|
|
444
|
+
function encode(message: GetAllQuestsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
445
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): GetAllQuestsResponse;
|
|
446
|
+
function fromJSON(object: any): GetAllQuestsResponse;
|
|
447
|
+
function toJSON(message: GetAllQuestsResponse): unknown;
|
|
448
|
+
function create<I extends Exact<DeepPartial<GetAllQuestsResponse>, I>>(base?: I): GetAllQuestsResponse;
|
|
449
|
+
function fromPartial<I extends Exact<DeepPartial<GetAllQuestsResponse>, I>>(object: I): GetAllQuestsResponse;
|
|
450
|
+
}
|
|
451
|
+
export declare namespace GetQuestDefinitionRequest {
|
|
452
|
+
function encode(message: GetQuestDefinitionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
453
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): GetQuestDefinitionRequest;
|
|
454
|
+
function fromJSON(object: any): GetQuestDefinitionRequest;
|
|
455
|
+
function toJSON(message: GetQuestDefinitionRequest): unknown;
|
|
456
|
+
function create<I extends Exact<DeepPartial<GetQuestDefinitionRequest>, I>>(base?: I): GetQuestDefinitionRequest;
|
|
457
|
+
function fromPartial<I extends Exact<DeepPartial<GetQuestDefinitionRequest>, I>>(object: I): GetQuestDefinitionRequest;
|
|
458
|
+
}
|
|
459
|
+
export declare namespace GetQuestDefinitionResponse {
|
|
460
|
+
function encode(message: GetQuestDefinitionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
461
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): GetQuestDefinitionResponse;
|
|
462
|
+
function fromJSON(object: any): GetQuestDefinitionResponse;
|
|
463
|
+
function toJSON(message: GetQuestDefinitionResponse): unknown;
|
|
464
|
+
function create<I extends Exact<DeepPartial<GetQuestDefinitionResponse>, I>>(base?: I): GetQuestDefinitionResponse;
|
|
465
|
+
function fromPartial<I extends Exact<DeepPartial<GetQuestDefinitionResponse>, I>>(object: I): GetQuestDefinitionResponse;
|
|
466
|
+
}
|
|
467
|
+
export type QuestsServiceDefinition = typeof QuestsServiceDefinition;
|
|
468
|
+
export declare const QuestsServiceDefinition: {
|
|
469
|
+
readonly name: "QuestsService";
|
|
470
|
+
readonly fullName: "decentraland.quests.QuestsService";
|
|
471
|
+
readonly methods: {
|
|
472
|
+
/** User actions */
|
|
473
|
+
readonly startQuest: {
|
|
474
|
+
readonly name: "StartQuest";
|
|
475
|
+
readonly requestType: typeof StartQuestRequest;
|
|
476
|
+
readonly requestStream: false;
|
|
477
|
+
readonly responseType: typeof StartQuestResponse;
|
|
478
|
+
readonly responseStream: false;
|
|
479
|
+
readonly options: {};
|
|
480
|
+
};
|
|
481
|
+
readonly abortQuest: {
|
|
482
|
+
readonly name: "AbortQuest";
|
|
483
|
+
readonly requestType: typeof AbortQuestRequest;
|
|
484
|
+
readonly requestStream: false;
|
|
485
|
+
readonly responseType: typeof AbortQuestResponse;
|
|
486
|
+
readonly responseStream: false;
|
|
487
|
+
readonly options: {};
|
|
488
|
+
};
|
|
489
|
+
readonly sendEvent: {
|
|
490
|
+
readonly name: "SendEvent";
|
|
491
|
+
readonly requestType: typeof EventRequest;
|
|
492
|
+
readonly requestStream: false;
|
|
493
|
+
readonly responseType: typeof EventResponse;
|
|
494
|
+
readonly responseStream: false;
|
|
495
|
+
readonly options: {};
|
|
496
|
+
};
|
|
497
|
+
/** Listen to changes in quest states and event processing updates */
|
|
498
|
+
readonly subscribe: {
|
|
499
|
+
readonly name: "Subscribe";
|
|
500
|
+
readonly requestType: typeof Empty;
|
|
501
|
+
readonly requestStream: false;
|
|
502
|
+
readonly responseType: typeof UserUpdate;
|
|
503
|
+
readonly responseStream: true;
|
|
504
|
+
readonly options: {};
|
|
505
|
+
};
|
|
506
|
+
/** Query quest information */
|
|
507
|
+
readonly getAllQuests: {
|
|
508
|
+
readonly name: "GetAllQuests";
|
|
509
|
+
readonly requestType: typeof Empty;
|
|
510
|
+
readonly requestStream: false;
|
|
511
|
+
readonly responseType: typeof GetAllQuestsResponse;
|
|
512
|
+
readonly responseStream: false;
|
|
513
|
+
readonly options: {};
|
|
514
|
+
};
|
|
515
|
+
readonly getQuestDefinition: {
|
|
516
|
+
readonly name: "GetQuestDefinition";
|
|
517
|
+
readonly requestType: typeof GetQuestDefinitionRequest;
|
|
518
|
+
readonly requestStream: false;
|
|
519
|
+
readonly responseType: typeof GetQuestDefinitionResponse;
|
|
520
|
+
readonly responseStream: false;
|
|
521
|
+
readonly options: {};
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
526
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
527
|
+
$case: string;
|
|
528
|
+
} ? {
|
|
529
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
530
|
+
} & {
|
|
531
|
+
$case: T["$case"];
|
|
532
|
+
} : T extends {} ? {
|
|
533
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
534
|
+
} : Partial<T>;
|
|
535
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
536
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
537
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
538
|
+
} & {
|
|
539
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
540
|
+
};
|
|
541
|
+
export {};
|