@devvit/protos 0.11.1-next-2024-10-14-af7baa6eb.0 → 0.11.1-next-2024-10-15-291db966e.0

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.
@@ -1,5 +1,5 @@
1
1
  ## Code generated by protoc, converted to text by Snootobuf. DO NOT EDIT.
2
- ## checksum: 924a606118dffac8730d1f9956e8015a69eee3e80f2dd523e7f345ee52ff054f
2
+ ## checksum: 1bed6116fb971292438ed886dd71e56b8cd61ed71c42540226e880c3c5b39228
3
3
 
4
4
  file: {
5
5
  message_type: {
@@ -149924,7 +149924,44 @@ file: {
149924
149924
  type: TYPE_MESSAGE
149925
149925
  type_name: ".google.protobuf.Struct"
149926
149926
  }
149927
+ field: {
149928
+ json_name: "errors"
149929
+ label: LABEL_REPEATED
149930
+ name: "errors"
149931
+ number: 2
149932
+ type: TYPE_MESSAGE
149933
+ type_name: ".devvit.plugin.redditapi.graphql.GraphQLError"
149934
+ }
149935
+ field: {
149936
+ json_name: "ok"
149937
+ label: LABEL_OPTIONAL
149938
+ name: "ok"
149939
+ number: 3
149940
+ oneof_index: 0
149941
+ proto3_optional: true
149942
+ type: TYPE_BOOL
149943
+ }
149927
149944
  name: "QueryResponse"
149945
+ oneof_decl: {
149946
+ name: "_ok"
149947
+ }
149948
+ }
149949
+ message_type: {
149950
+ field: {
149951
+ json_name: "code"
149952
+ label: LABEL_OPTIONAL
149953
+ name: "code"
149954
+ number: 1
149955
+ type: TYPE_STRING
149956
+ }
149957
+ field: {
149958
+ json_name: "message"
149959
+ label: LABEL_OPTIONAL
149960
+ name: "message"
149961
+ number: 2
149962
+ type: TYPE_STRING
149963
+ }
149964
+ name: "GraphQLError"
149928
149965
  }
149929
149966
  name: "devvit/plugin/redditapi/graphql/graphql_msg.proto"
149930
149967
  options: {
@@ -149937,7 +149974,7 @@ file: {
149937
149974
  span: 0
149938
149975
  span: 0
149939
149976
  span: 1
149940
- span: 27
149977
+ span: 34
149941
149978
  }
149942
149979
  location: {
149943
149980
  path: 12
@@ -150242,7 +150279,7 @@ file: {
150242
150279
  span: 0
150243
150280
  span: 1
150244
150281
  span: 25
150245
- span: 27
150282
+ span: 29
150246
150283
  }
150247
150284
  location: {
150248
150285
  path: 1
@@ -150291,6 +150328,198 @@ file: {
150291
150328
  span: 32
150292
150329
  span: 33
150293
150330
  }
150331
+ location: {
150332
+ path: 1
150333
+ path: 2
150334
+ path: 2
150335
+ path: 4
150336
+ span: 2
150337
+ span: 27
150338
+ span: 35
150339
+ }
150340
+ location: {
150341
+ path: 1
150342
+ path: 2
150343
+ path: 2
150344
+ path: 4
150345
+ path: 4
150346
+ span: 10
150347
+ span: 2
150348
+ span: 27
150349
+ }
150350
+ location: {
150351
+ path: 1
150352
+ path: 2
150353
+ path: 2
150354
+ path: 4
150355
+ path: 6
150356
+ span: 11
150357
+ span: 23
150358
+ span: 27
150359
+ }
150360
+ location: {
150361
+ path: 1
150362
+ path: 1
150363
+ path: 2
150364
+ path: 2
150365
+ path: 4
150366
+ span: 24
150367
+ span: 27
150368
+ span: 30
150369
+ }
150370
+ location: {
150371
+ path: 1
150372
+ path: 2
150373
+ path: 2
150374
+ path: 3
150375
+ path: 4
150376
+ span: 27
150377
+ span: 33
150378
+ span: 34
150379
+ }
150380
+ location: {
150381
+ path: 2
150382
+ path: 2
150383
+ path: 2
150384
+ path: 4
150385
+ span: 2
150386
+ span: 23
150387
+ span: 28
150388
+ }
150389
+ location: {
150390
+ path: 2
150391
+ path: 2
150392
+ path: 2
150393
+ path: 4
150394
+ path: 4
150395
+ span: 10
150396
+ span: 2
150397
+ span: 28
150398
+ }
150399
+ location: {
150400
+ path: 2
150401
+ path: 2
150402
+ path: 2
150403
+ path: 4
150404
+ path: 5
150405
+ span: 11
150406
+ span: 15
150407
+ span: 28
150408
+ }
150409
+ location: {
150410
+ path: 1
150411
+ path: 2
150412
+ path: 2
150413
+ path: 2
150414
+ path: 4
150415
+ span: 16
150416
+ span: 18
150417
+ span: 28
150418
+ }
150419
+ location: {
150420
+ path: 2
150421
+ path: 2
150422
+ path: 2
150423
+ path: 3
150424
+ path: 4
150425
+ span: 21
150426
+ span: 22
150427
+ span: 28
150428
+ }
150429
+ location: {
150430
+ path: 3
150431
+ path: 4
150432
+ span: 0
150433
+ span: 1
150434
+ span: 31
150435
+ span: 34
150436
+ }
150437
+ location: {
150438
+ path: 1
150439
+ path: 3
150440
+ path: 4
150441
+ span: 20
150442
+ span: 31
150443
+ span: 8
150444
+ }
150445
+ location: {
150446
+ path: 0
150447
+ path: 2
150448
+ path: 3
150449
+ path: 4
150450
+ span: 18
150451
+ span: 2
150452
+ span: 32
150453
+ }
150454
+ location: {
150455
+ path: 0
150456
+ path: 2
150457
+ path: 3
150458
+ path: 4
150459
+ path: 5
150460
+ span: 2
150461
+ span: 32
150462
+ span: 8
150463
+ }
150464
+ location: {
150465
+ path: 0
150466
+ path: 1
150467
+ path: 2
150468
+ path: 3
150469
+ path: 4
150470
+ span: 13
150471
+ span: 32
150472
+ span: 9
150473
+ }
150474
+ location: {
150475
+ path: 0
150476
+ path: 2
150477
+ path: 3
150478
+ path: 3
150479
+ path: 4
150480
+ span: 16
150481
+ span: 17
150482
+ span: 32
150483
+ }
150484
+ location: {
150485
+ path: 1
150486
+ path: 2
150487
+ path: 3
150488
+ path: 4
150489
+ span: 2
150490
+ span: 21
150491
+ span: 33
150492
+ }
150493
+ location: {
150494
+ path: 1
150495
+ path: 2
150496
+ path: 3
150497
+ path: 4
150498
+ path: 5
150499
+ span: 2
150500
+ span: 33
150501
+ span: 8
150502
+ }
150503
+ location: {
150504
+ path: 1
150505
+ path: 1
150506
+ path: 2
150507
+ path: 3
150508
+ path: 4
150509
+ span: 16
150510
+ span: 33
150511
+ span: 9
150512
+ }
150513
+ location: {
150514
+ path: 1
150515
+ path: 2
150516
+ path: 3
150517
+ path: 3
150518
+ path: 4
150519
+ span: 19
150520
+ span: 20
150521
+ span: 33
150522
+ }
150294
150523
  }
150295
150524
  syntax: "proto3"
150296
150525
  }
@@ -1,5 +1,5 @@
1
1
  ## Code generated by protoc, converted to text by Snootobuf. DO NOT EDIT.
2
- ## checksum: b374cf731b8e3addf4d5865d8ad1a04954238193dd58fa11f177925d82b6bc5f
2
+ ## checksum: 775041eeb3abde1eabb2c317dfb78bc19293a6fc07cb3d2f47ef0962bf65d7bc
3
3
 
4
4
  file: {
5
5
  message_type: {
@@ -149924,7 +149924,44 @@ file: {
149924
149924
  type: TYPE_MESSAGE
149925
149925
  type_name: ".google.protobuf.Struct"
149926
149926
  }
149927
+ field: {
149928
+ json_name: "errors"
149929
+ label: LABEL_REPEATED
149930
+ name: "errors"
149931
+ number: 2
149932
+ type: TYPE_MESSAGE
149933
+ type_name: ".devvit.plugin.redditapi.graphql.GraphQLError"
149934
+ }
149935
+ field: {
149936
+ json_name: "ok"
149937
+ label: LABEL_OPTIONAL
149938
+ name: "ok"
149939
+ number: 3
149940
+ oneof_index: 0
149941
+ proto3_optional: true
149942
+ type: TYPE_BOOL
149943
+ }
149927
149944
  name: "QueryResponse"
149945
+ oneof_decl: {
149946
+ name: "_ok"
149947
+ }
149948
+ }
149949
+ message_type: {
149950
+ field: {
149951
+ json_name: "code"
149952
+ label: LABEL_OPTIONAL
149953
+ name: "code"
149954
+ number: 1
149955
+ type: TYPE_STRING
149956
+ }
149957
+ field: {
149958
+ json_name: "message"
149959
+ label: LABEL_OPTIONAL
149960
+ name: "message"
149961
+ number: 2
149962
+ type: TYPE_STRING
149963
+ }
149964
+ name: "GraphQLError"
149928
149965
  }
149929
149966
  name: "devvit/plugin/redditapi/graphql/graphql_msg.proto"
149930
149967
  options: {
@@ -149937,7 +149974,7 @@ file: {
149937
149974
  span: 0
149938
149975
  span: 0
149939
149976
  span: 1
149940
- span: 27
149977
+ span: 34
149941
149978
  }
149942
149979
  location: {
149943
149980
  path: 12
@@ -150242,7 +150279,7 @@ file: {
150242
150279
  span: 0
150243
150280
  span: 1
150244
150281
  span: 25
150245
- span: 27
150282
+ span: 29
150246
150283
  }
150247
150284
  location: {
150248
150285
  path: 1
@@ -150291,6 +150328,198 @@ file: {
150291
150328
  span: 32
150292
150329
  span: 33
150293
150330
  }
150331
+ location: {
150332
+ path: 1
150333
+ path: 2
150334
+ path: 2
150335
+ path: 4
150336
+ span: 2
150337
+ span: 27
150338
+ span: 35
150339
+ }
150340
+ location: {
150341
+ path: 1
150342
+ path: 2
150343
+ path: 2
150344
+ path: 4
150345
+ path: 4
150346
+ span: 10
150347
+ span: 2
150348
+ span: 27
150349
+ }
150350
+ location: {
150351
+ path: 1
150352
+ path: 2
150353
+ path: 2
150354
+ path: 4
150355
+ path: 6
150356
+ span: 11
150357
+ span: 23
150358
+ span: 27
150359
+ }
150360
+ location: {
150361
+ path: 1
150362
+ path: 1
150363
+ path: 2
150364
+ path: 2
150365
+ path: 4
150366
+ span: 24
150367
+ span: 27
150368
+ span: 30
150369
+ }
150370
+ location: {
150371
+ path: 1
150372
+ path: 2
150373
+ path: 2
150374
+ path: 3
150375
+ path: 4
150376
+ span: 27
150377
+ span: 33
150378
+ span: 34
150379
+ }
150380
+ location: {
150381
+ path: 2
150382
+ path: 2
150383
+ path: 2
150384
+ path: 4
150385
+ span: 2
150386
+ span: 23
150387
+ span: 28
150388
+ }
150389
+ location: {
150390
+ path: 2
150391
+ path: 2
150392
+ path: 2
150393
+ path: 4
150394
+ path: 4
150395
+ span: 10
150396
+ span: 2
150397
+ span: 28
150398
+ }
150399
+ location: {
150400
+ path: 2
150401
+ path: 2
150402
+ path: 2
150403
+ path: 4
150404
+ path: 5
150405
+ span: 11
150406
+ span: 15
150407
+ span: 28
150408
+ }
150409
+ location: {
150410
+ path: 1
150411
+ path: 2
150412
+ path: 2
150413
+ path: 2
150414
+ path: 4
150415
+ span: 16
150416
+ span: 18
150417
+ span: 28
150418
+ }
150419
+ location: {
150420
+ path: 2
150421
+ path: 2
150422
+ path: 2
150423
+ path: 3
150424
+ path: 4
150425
+ span: 21
150426
+ span: 22
150427
+ span: 28
150428
+ }
150429
+ location: {
150430
+ path: 3
150431
+ path: 4
150432
+ span: 0
150433
+ span: 1
150434
+ span: 31
150435
+ span: 34
150436
+ }
150437
+ location: {
150438
+ path: 1
150439
+ path: 3
150440
+ path: 4
150441
+ span: 20
150442
+ span: 31
150443
+ span: 8
150444
+ }
150445
+ location: {
150446
+ path: 0
150447
+ path: 2
150448
+ path: 3
150449
+ path: 4
150450
+ span: 18
150451
+ span: 2
150452
+ span: 32
150453
+ }
150454
+ location: {
150455
+ path: 0
150456
+ path: 2
150457
+ path: 3
150458
+ path: 4
150459
+ path: 5
150460
+ span: 2
150461
+ span: 32
150462
+ span: 8
150463
+ }
150464
+ location: {
150465
+ path: 0
150466
+ path: 1
150467
+ path: 2
150468
+ path: 3
150469
+ path: 4
150470
+ span: 13
150471
+ span: 32
150472
+ span: 9
150473
+ }
150474
+ location: {
150475
+ path: 0
150476
+ path: 2
150477
+ path: 3
150478
+ path: 3
150479
+ path: 4
150480
+ span: 16
150481
+ span: 17
150482
+ span: 32
150483
+ }
150484
+ location: {
150485
+ path: 1
150486
+ path: 2
150487
+ path: 3
150488
+ path: 4
150489
+ span: 2
150490
+ span: 21
150491
+ span: 33
150492
+ }
150493
+ location: {
150494
+ path: 1
150495
+ path: 2
150496
+ path: 3
150497
+ path: 4
150498
+ path: 5
150499
+ span: 2
150500
+ span: 33
150501
+ span: 8
150502
+ }
150503
+ location: {
150504
+ path: 1
150505
+ path: 1
150506
+ path: 2
150507
+ path: 3
150508
+ path: 4
150509
+ span: 16
150510
+ span: 33
150511
+ span: 9
150512
+ }
150513
+ location: {
150514
+ path: 1
150515
+ path: 2
150516
+ path: 3
150517
+ path: 3
150518
+ path: 4
150519
+ span: 19
150520
+ span: 20
150521
+ span: 33
150522
+ }
150294
150523
  }
150295
150524
  syntax: "proto3"
150296
150525
  }
@@ -26,6 +26,12 @@ export interface QueryResponse {
26
26
  data?: {
27
27
  [key: string]: any;
28
28
  } | undefined;
29
+ errors: GraphQLError[];
30
+ ok?: boolean | undefined;
31
+ }
32
+ export interface GraphQLError {
33
+ code: string;
34
+ message: string;
29
35
  }
30
36
  export declare const QueryRequest: {
31
37
  $type: "devvit.plugin.redditapi.graphql.QueryRequest";
@@ -54,6 +60,15 @@ export declare const QueryResponse: {
54
60
  create(base?: DeepPartial<QueryResponse>): QueryResponse;
55
61
  fromPartial(object: DeepPartial<QueryResponse>): QueryResponse;
56
62
  };
63
+ export declare const GraphQLError: {
64
+ $type: "devvit.plugin.redditapi.graphql.GraphQLError";
65
+ encode(message: GraphQLError, writer?: _m0.Writer): _m0.Writer;
66
+ decode(input: _m0.Reader | Uint8Array, length?: number): GraphQLError;
67
+ fromJSON(object: any): GraphQLError;
68
+ toJSON(message: GraphQLError): unknown;
69
+ create(base?: DeepPartial<GraphQLError>): GraphQLError;
70
+ fromPartial(object: DeepPartial<GraphQLError>): GraphQLError;
71
+ };
57
72
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
58
73
  type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
59
74
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -1 +1 @@
1
- {"version":3,"file":"graphql_msg.d.ts","sourceRoot":"","sources":["../../../../../../src/types/devvit/plugin/redditapi/graphql/graphql_msg.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAIxC,MAAM,WAAW,YAAY;IAC3B,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAChD;AAED,MAAM,WAAW,qBAAqB;IACpC,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,6BAA6B;IAC7B,SAAS,CAAC,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AG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACvC,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC"}
@@ -158,7 +158,7 @@ export const PersistedQueryRequest = {
158
158
  };
159
159
  messageTypeRegistry.set(PersistedQueryRequest.$type, PersistedQueryRequest);
160
160
  function createBaseQueryResponse() {
161
- return { data: undefined };
161
+ return { data: undefined, errors: [], ok: undefined };
162
162
  }
163
163
  export const QueryResponse = {
164
164
  $type: "devvit.plugin.redditapi.graphql.QueryResponse",
@@ -166,6 +166,12 @@ export const QueryResponse = {
166
166
  if (message.data !== undefined) {
167
167
  Struct.encode(Struct.wrap(message.data), writer.uint32(10).fork()).ldelim();
168
168
  }
169
+ for (const v of message.errors) {
170
+ GraphQLError.encode(v, writer.uint32(18).fork()).ldelim();
171
+ }
172
+ if (message.ok !== undefined) {
173
+ writer.uint32(24).bool(message.ok);
174
+ }
169
175
  return writer;
170
176
  },
171
177
  decode(input, length) {
@@ -181,6 +187,18 @@ export const QueryResponse = {
181
187
  }
182
188
  message.data = Struct.unwrap(Struct.decode(reader, reader.uint32()));
183
189
  continue;
190
+ case 2:
191
+ if (tag !== 18) {
192
+ break;
193
+ }
194
+ message.errors.push(GraphQLError.decode(reader, reader.uint32()));
195
+ continue;
196
+ case 3:
197
+ if (tag !== 24) {
198
+ break;
199
+ }
200
+ message.ok = reader.bool();
201
+ continue;
184
202
  }
185
203
  if ((tag & 7) === 4 || tag === 0) {
186
204
  break;
@@ -190,13 +208,23 @@ export const QueryResponse = {
190
208
  return message;
191
209
  },
192
210
  fromJSON(object) {
193
- return { data: isObject(object.data) ? object.data : undefined };
211
+ return {
212
+ data: isObject(object.data) ? object.data : undefined,
213
+ errors: globalThis.Array.isArray(object?.errors) ? object.errors.map((e) => GraphQLError.fromJSON(e)) : [],
214
+ ok: isSet(object.ok) ? globalThis.Boolean(object.ok) : undefined,
215
+ };
194
216
  },
195
217
  toJSON(message) {
196
218
  const obj = {};
197
219
  if (message.data !== undefined) {
198
220
  obj.data = message.data;
199
221
  }
222
+ if (message.errors?.length) {
223
+ obj.errors = message.errors.map((e) => GraphQLError.toJSON(e));
224
+ }
225
+ if (message.ok !== undefined) {
226
+ obj.ok = message.ok;
227
+ }
200
228
  return obj;
201
229
  },
202
230
  create(base) {
@@ -205,10 +233,80 @@ export const QueryResponse = {
205
233
  fromPartial(object) {
206
234
  const message = createBaseQueryResponse();
207
235
  message.data = object.data ?? undefined;
236
+ message.errors = object.errors?.map((e) => GraphQLError.fromPartial(e)) || [];
237
+ message.ok = object.ok ?? undefined;
208
238
  return message;
209
239
  },
210
240
  };
211
241
  messageTypeRegistry.set(QueryResponse.$type, QueryResponse);
242
+ function createBaseGraphQLError() {
243
+ return { code: "", message: "" };
244
+ }
245
+ export const GraphQLError = {
246
+ $type: "devvit.plugin.redditapi.graphql.GraphQLError",
247
+ encode(message, writer = _m0.Writer.create()) {
248
+ if (message.code !== "") {
249
+ writer.uint32(10).string(message.code);
250
+ }
251
+ if (message.message !== "") {
252
+ writer.uint32(18).string(message.message);
253
+ }
254
+ return writer;
255
+ },
256
+ decode(input, length) {
257
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
258
+ let end = length === undefined ? reader.len : reader.pos + length;
259
+ const message = createBaseGraphQLError();
260
+ while (reader.pos < end) {
261
+ const tag = reader.uint32();
262
+ switch (tag >>> 3) {
263
+ case 1:
264
+ if (tag !== 10) {
265
+ break;
266
+ }
267
+ message.code = reader.string();
268
+ continue;
269
+ case 2:
270
+ if (tag !== 18) {
271
+ break;
272
+ }
273
+ message.message = reader.string();
274
+ continue;
275
+ }
276
+ if ((tag & 7) === 4 || tag === 0) {
277
+ break;
278
+ }
279
+ reader.skipType(tag & 7);
280
+ }
281
+ return message;
282
+ },
283
+ fromJSON(object) {
284
+ return {
285
+ code: isSet(object.code) ? globalThis.String(object.code) : "",
286
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
287
+ };
288
+ },
289
+ toJSON(message) {
290
+ const obj = {};
291
+ if (message.code !== "") {
292
+ obj.code = message.code;
293
+ }
294
+ if (message.message !== "") {
295
+ obj.message = message.message;
296
+ }
297
+ return obj;
298
+ },
299
+ create(base) {
300
+ return GraphQLError.fromPartial(base ?? {});
301
+ },
302
+ fromPartial(object) {
303
+ const message = createBaseGraphQLError();
304
+ message.code = object.code ?? "";
305
+ message.message = object.message ?? "";
306
+ return message;
307
+ },
308
+ };
309
+ messageTypeRegistry.set(GraphQLError.$type, GraphQLError);
212
310
  function isObject(value) {
213
311
  return typeof value === "object" && value !== null;
214
312
  }