@devvit/protos 0.11.20-next-2025-07-28-21-05-32-e67a64bd1.0 → 0.11.20-next-2025-07-28-21-28-35-48e67f2ad.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.
Files changed (37) hide show
  1. package/json/devvit/ui/effects/v1alpha/app_permission.d.ts +5 -40
  2. package/json/devvit/ui/effects/v1alpha/app_permission.d.ts.map +1 -1
  3. package/json/devvit/ui/effects/v1alpha/effect.d.ts +4 -4
  4. package/json/devvit/ui/effects/v1alpha/effect.d.ts.map +1 -1
  5. package/json/devvit/ui/effects/v1alpha/effect.js +2 -2
  6. package/json/devvit/ui/events/v1alpha/event.d.ts +2 -2
  7. package/json/devvit/ui/events/v1alpha/event.d.ts.map +1 -1
  8. package/json/devvit/ui/events/v1alpha/web_view.d.ts +2 -2
  9. package/json/devvit/ui/events/v1alpha/web_view.d.ts.map +1 -1
  10. package/meta.min.json +10 -10
  11. package/package.json +4 -4
  12. package/protos.min.js +1 -1
  13. package/protos.min.js.map +3 -3
  14. package/schema/.snootobuf/deps/devvit/ui/effects/v1alpha/app_permission.proto +5 -41
  15. package/schema/.snootobuf/deps/devvit/ui/effects/v1alpha/effect.proto +5 -3
  16. package/schema/.snootobuf/deps/devvit/ui/events/v1alpha/event.proto +1 -1
  17. package/schema/.snootobuf/deps/devvit/ui/events/v1alpha/web_view.proto +1 -1
  18. package/schema/devvit/ui/effects/v1alpha/app_permission.proto +5 -41
  19. package/schema/devvit/ui/effects/v1alpha/effect.proto +5 -3
  20. package/schema/devvit/ui/events/v1alpha/event.proto +1 -1
  21. package/schema/devvit/ui/events/v1alpha/web_view.proto +1 -1
  22. package/schema/snootobuf.lock +0 -0
  23. package/schema/snootobuf.redditapi.lock +0 -0
  24. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +12 -88
  25. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts.map +1 -1
  26. package/types/devvit/ui/effects/v1alpha/app_permission.d.ts +21 -82
  27. package/types/devvit/ui/effects/v1alpha/app_permission.d.ts.map +1 -1
  28. package/types/devvit/ui/effects/v1alpha/app_permission.js +21 -369
  29. package/types/devvit/ui/effects/v1alpha/effect.d.ts +4 -4
  30. package/types/devvit/ui/effects/v1alpha/effect.d.ts.map +1 -1
  31. package/types/devvit/ui/effects/v1alpha/effect.js +19 -21
  32. package/types/devvit/ui/events/v1alpha/event.d.ts +2 -2
  33. package/types/devvit/ui/events/v1alpha/event.d.ts.map +1 -1
  34. package/types/devvit/ui/events/v1alpha/event.js +13 -17
  35. package/types/devvit/ui/events/v1alpha/web_view.d.ts +2 -2
  36. package/types/devvit/ui/events/v1alpha/web_view.d.ts.map +1 -1
  37. package/types/devvit/ui/events/v1alpha/web_view.js +13 -17
@@ -9,7 +9,7 @@ import _m0 from "protobufjs/minimal.js";
9
9
  import { Struct } from "../../../../google/protobuf/struct.js";
10
10
  import { BoolValue, StringValue } from "../../../../google/protobuf/wrappers.js";
11
11
  import { messageTypeRegistry } from "../../../../typeRegistry.js";
12
- import { AppPermissionsConsentSubmittedEvent } from "../../effects/v1alpha/app_permission.js";
12
+ import { ConsentStatusEvent } from "../../effects/v1alpha/app_permission.js";
13
13
  import { OrderResultEvent } from "../../effects/v1alpha/create_order.js";
14
14
  import { RealtimeSubscriptionEvent } from "../../effects/v1alpha/realtime_subscriptions.js";
15
15
  import { FormCanceledEvent, FormSubmittedEvent } from "../../effects/v1alpha/show_form.js";
@@ -72,7 +72,7 @@ function createBaseUIEvent() {
72
72
  resize: undefined,
73
73
  webView: undefined,
74
74
  formCanceled: undefined,
75
- appPermissionsConsentSubmitted: undefined,
75
+ consentStatus: undefined,
76
76
  async: undefined,
77
77
  hook: undefined,
78
78
  retry: undefined,
@@ -118,9 +118,8 @@ export const UIEvent = {
118
118
  if (message.formCanceled !== undefined) {
119
119
  FormCanceledEvent.encode(message.formCanceled, writer.uint32(170).fork()).ldelim();
120
120
  }
121
- if (message.appPermissionsConsentSubmitted !== undefined) {
122
- AppPermissionsConsentSubmittedEvent.encode(message.appPermissionsConsentSubmitted, writer.uint32(178).fork())
123
- .ldelim();
121
+ if (message.consentStatus !== undefined) {
122
+ ConsentStatusEvent.encode(message.consentStatus, writer.uint32(186).fork()).ldelim();
124
123
  }
125
124
  if (message.async !== undefined) {
126
125
  BoolValue.encode({ value: message.async }, writer.uint32(122).fork()).ldelim();
@@ -215,11 +214,11 @@ export const UIEvent = {
215
214
  }
216
215
  message.formCanceled = FormCanceledEvent.decode(reader, reader.uint32());
217
216
  continue;
218
- case 22:
219
- if (tag !== 178) {
217
+ case 23:
218
+ if (tag !== 186) {
220
219
  break;
221
220
  }
222
- message.appPermissionsConsentSubmitted = AppPermissionsConsentSubmittedEvent.decode(reader, reader.uint32());
221
+ message.consentStatus = ConsentStatusEvent.decode(reader, reader.uint32());
223
222
  continue;
224
223
  case 15:
225
224
  if (tag !== 122) {
@@ -267,9 +266,7 @@ export const UIEvent = {
267
266
  resize: isSet(object.resize) ? ResizeEvent.fromJSON(object.resize) : undefined,
268
267
  webView: isSet(object.webView) ? WebViewEvent.fromJSON(object.webView) : undefined,
269
268
  formCanceled: isSet(object.formCanceled) ? FormCanceledEvent.fromJSON(object.formCanceled) : undefined,
270
- appPermissionsConsentSubmitted: isSet(object.appPermissionsConsentSubmitted)
271
- ? AppPermissionsConsentSubmittedEvent.fromJSON(object.appPermissionsConsentSubmitted)
272
- : undefined,
269
+ consentStatus: isSet(object.consentStatus) ? ConsentStatusEvent.fromJSON(object.consentStatus) : undefined,
273
270
  async: isSet(object.async) ? Boolean(object.async) : undefined,
274
271
  hook: isSet(object.hook) ? String(object.hook) : undefined,
275
272
  retry: isSet(object.retry) ? Boolean(object.retry) : undefined,
@@ -314,8 +311,8 @@ export const UIEvent = {
314
311
  if (message.formCanceled !== undefined) {
315
312
  obj.formCanceled = FormCanceledEvent.toJSON(message.formCanceled);
316
313
  }
317
- if (message.appPermissionsConsentSubmitted !== undefined) {
318
- obj.appPermissionsConsentSubmitted = AppPermissionsConsentSubmittedEvent.toJSON(message.appPermissionsConsentSubmitted);
314
+ if (message.consentStatus !== undefined) {
315
+ obj.consentStatus = ConsentStatusEvent.toJSON(message.consentStatus);
319
316
  }
320
317
  if (message.async !== undefined) {
321
318
  obj.async = message.async;
@@ -372,10 +369,9 @@ export const UIEvent = {
372
369
  message.formCanceled = (object.formCanceled !== undefined && object.formCanceled !== null)
373
370
  ? FormCanceledEvent.fromPartial(object.formCanceled)
374
371
  : undefined;
375
- message.appPermissionsConsentSubmitted =
376
- (object.appPermissionsConsentSubmitted !== undefined && object.appPermissionsConsentSubmitted !== null)
377
- ? AppPermissionsConsentSubmittedEvent.fromPartial(object.appPermissionsConsentSubmitted)
378
- : undefined;
372
+ message.consentStatus = (object.consentStatus !== undefined && object.consentStatus !== null)
373
+ ? ConsentStatusEvent.fromPartial(object.consentStatus)
374
+ : undefined;
379
375
  message.async = object.async ?? undefined;
380
376
  message.hook = object.hook ?? undefined;
381
377
  message.retry = object.retry ?? undefined;
@@ -5,7 +5,7 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
  import _m0 from "protobufjs/minimal.js";
8
- import { AppPermissionsConsentSubmittedEvent } from "../../effects/v1alpha/app_permission.js";
8
+ import { ConsentStatusEvent } from "../../effects/v1alpha/app_permission.js";
9
9
  import { RealtimeSubscriptionEvent } from "../../effects/v1alpha/realtime_subscriptions.js";
10
10
  import { FormCanceledEvent, FormSubmittedEvent } from "../../effects/v1alpha/show_form.js";
11
11
  import { WebViewImmersiveMode } from "../../effects/web_view/v1alpha/immersive_mode.js";
@@ -44,7 +44,7 @@ export interface WebViewInternalEventMessage {
44
44
  formSubmitted?: FormSubmittedEvent | undefined;
45
45
  realtimeEvent?: RealtimeSubscriptionEvent | undefined;
46
46
  immersiveModeEvent?: WebViewImmersiveModeChangedEvent | undefined;
47
- appPermissionsConsentSubmitted?: AppPermissionsConsentSubmittedEvent | undefined;
47
+ consentStatus?: ConsentStatusEvent | undefined;
48
48
  }
49
49
  export declare const WebViewPostMessageEvent: {
50
50
  $type: "devvit.ui.events.v1alpha.WebViewPostMessageEvent";
@@ -1 +1 @@
1
- {"version":3,"file":"web_view.d.ts","sourceRoot":"","sources":["../../../../../../src/types/devvit/ui/events/v1alpha/web_view.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAGxC,OAAO,EAAE,mCAAmC,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EACL,oBAAoB,EAGrB,MAAM,kDAAkD,CAAC;AAE1D,oBAAY,iBAAiB;IAC3B,eAAe,IAAI;IACnB,cAAc,IAAI;IAClB,YAAY,KAAK;CAClB;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,GAAG,GAAG,iBAAiB,CAaxE;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAUzE;AAED,4EAA4E;AAC5E,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,OAAO,CAAC,EACJ,GAAG,GACH,SAAS,CAAC;IACd,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,gEAAgE;AAChE,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,iBAAiB,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAClD,UAAU,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;CACjD;AAED,MAAM,WAAW,gCAAgC;IAC/C,aAAa,EAAE,oBAAoB,CAAC;CACrC;AAED,MAAM,WAAW,2BAA2B;IAC1C,8FAA8F;IAC9F,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,iBAAiB,GAAG,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AgC;oBAIvC,gCAAgC,GAAG,OAAO;kBAQ5C,WAAW,CAAC,gCAAgC,CAAC,GAAG,gCAAgC;wBAG1E,WAAW,CAAC,gCAAgC,CAAC,GAAG,gCAAgC;CAKrG,CAAC;AAeF,eAAO,MAAM,2BAA2B;;oBAGtB,2BAA2B,WAAU,GAAG,CAAC,MAAM,GAAyB,GAAG,CAAC,MAAM;kBAsBpF,GAAG,CAAC,MAAM,GAAG,UAAU,WAAW,MAAM,GAAG,2BAA2B;qBA0DnE,GAAG,GAAG,2BAA2B;oBAalC,2BAA2B,GAAG,OAAO;kBAuBvC,WAAW,CAAC,2BAA2B,CAAC,GAAG,2BAA2B;wBAGhE,WAAW,CAAC,2BAA2B,CAAC,GAAG,2BAA2B;CAoB3F,CAAC;AAIF,KAAK,OAAO,GAAG,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"}
@@ -8,7 +8,7 @@
8
8
  import _m0 from "protobufjs/minimal.js";
9
9
  import { Value } from "../../../../google/protobuf/struct.js";
10
10
  import { messageTypeRegistry } from "../../../../typeRegistry.js";
11
- import { AppPermissionsConsentSubmittedEvent } from "../../effects/v1alpha/app_permission.js";
11
+ import { ConsentStatusEvent } from "../../effects/v1alpha/app_permission.js";
12
12
  import { RealtimeSubscriptionEvent } from "../../effects/v1alpha/realtime_subscriptions.js";
13
13
  import { FormCanceledEvent, FormSubmittedEvent } from "../../effects/v1alpha/show_form.js";
14
14
  import { webViewImmersiveModeFromJSON, webViewImmersiveModeToJSON, } from "../../effects/web_view/v1alpha/immersive_mode.js";
@@ -294,7 +294,7 @@ function createBaseWebViewInternalEventMessage() {
294
294
  formSubmitted: undefined,
295
295
  realtimeEvent: undefined,
296
296
  immersiveModeEvent: undefined,
297
- appPermissionsConsentSubmitted: undefined,
297
+ consentStatus: undefined,
298
298
  };
299
299
  }
300
300
  export const WebViewInternalEventMessage = {
@@ -315,9 +315,8 @@ export const WebViewInternalEventMessage = {
315
315
  if (message.immersiveModeEvent !== undefined) {
316
316
  WebViewImmersiveModeChangedEvent.encode(message.immersiveModeEvent, writer.uint32(42).fork()).ldelim();
317
317
  }
318
- if (message.appPermissionsConsentSubmitted !== undefined) {
319
- AppPermissionsConsentSubmittedEvent.encode(message.appPermissionsConsentSubmitted, writer.uint32(50).fork())
320
- .ldelim();
318
+ if (message.consentStatus !== undefined) {
319
+ ConsentStatusEvent.encode(message.consentStatus, writer.uint32(58).fork()).ldelim();
321
320
  }
322
321
  return writer;
323
322
  },
@@ -358,11 +357,11 @@ export const WebViewInternalEventMessage = {
358
357
  }
359
358
  message.immersiveModeEvent = WebViewImmersiveModeChangedEvent.decode(reader, reader.uint32());
360
359
  continue;
361
- case 6:
362
- if (tag !== 50) {
360
+ case 7:
361
+ if (tag !== 58) {
363
362
  break;
364
363
  }
365
- message.appPermissionsConsentSubmitted = AppPermissionsConsentSubmittedEvent.decode(reader, reader.uint32());
364
+ message.consentStatus = ConsentStatusEvent.decode(reader, reader.uint32());
366
365
  continue;
367
366
  }
368
367
  if ((tag & 7) === 4 || tag === 0) {
@@ -381,9 +380,7 @@ export const WebViewInternalEventMessage = {
381
380
  immersiveModeEvent: isSet(object.immersiveModeEvent)
382
381
  ? WebViewImmersiveModeChangedEvent.fromJSON(object.immersiveModeEvent)
383
382
  : undefined,
384
- appPermissionsConsentSubmitted: isSet(object.appPermissionsConsentSubmitted)
385
- ? AppPermissionsConsentSubmittedEvent.fromJSON(object.appPermissionsConsentSubmitted)
386
- : undefined,
383
+ consentStatus: isSet(object.consentStatus) ? ConsentStatusEvent.fromJSON(object.consentStatus) : undefined,
387
384
  };
388
385
  },
389
386
  toJSON(message) {
@@ -403,8 +400,8 @@ export const WebViewInternalEventMessage = {
403
400
  if (message.immersiveModeEvent !== undefined) {
404
401
  obj.immersiveModeEvent = WebViewImmersiveModeChangedEvent.toJSON(message.immersiveModeEvent);
405
402
  }
406
- if (message.appPermissionsConsentSubmitted !== undefined) {
407
- obj.appPermissionsConsentSubmitted = AppPermissionsConsentSubmittedEvent.toJSON(message.appPermissionsConsentSubmitted);
403
+ if (message.consentStatus !== undefined) {
404
+ obj.consentStatus = ConsentStatusEvent.toJSON(message.consentStatus);
408
405
  }
409
406
  return obj;
410
407
  },
@@ -426,10 +423,9 @@ export const WebViewInternalEventMessage = {
426
423
  message.immersiveModeEvent = (object.immersiveModeEvent !== undefined && object.immersiveModeEvent !== null)
427
424
  ? WebViewImmersiveModeChangedEvent.fromPartial(object.immersiveModeEvent)
428
425
  : undefined;
429
- message.appPermissionsConsentSubmitted =
430
- (object.appPermissionsConsentSubmitted !== undefined && object.appPermissionsConsentSubmitted !== null)
431
- ? AppPermissionsConsentSubmittedEvent.fromPartial(object.appPermissionsConsentSubmitted)
432
- : undefined;
426
+ message.consentStatus = (object.consentStatus !== undefined && object.consentStatus !== null)
427
+ ? ConsentStatusEvent.fromPartial(object.consentStatus)
428
+ : undefined;
433
429
  return message;
434
430
  },
435
431
  };