@devvit/protos 0.11.20-next-2025-07-28-16-01-22-733d40e04.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 (39) 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/schema/snootobuf.redditapi.yaml +0 -3
  25. package/schema/snootobuf.yaml +0 -3
  26. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +12 -88
  27. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts.map +1 -1
  28. package/types/devvit/ui/effects/v1alpha/app_permission.d.ts +21 -82
  29. package/types/devvit/ui/effects/v1alpha/app_permission.d.ts.map +1 -1
  30. package/types/devvit/ui/effects/v1alpha/app_permission.js +21 -369
  31. package/types/devvit/ui/effects/v1alpha/effect.d.ts +4 -4
  32. package/types/devvit/ui/effects/v1alpha/effect.d.ts.map +1 -1
  33. package/types/devvit/ui/effects/v1alpha/effect.js +19 -21
  34. package/types/devvit/ui/events/v1alpha/event.d.ts +2 -2
  35. package/types/devvit/ui/events/v1alpha/event.d.ts.map +1 -1
  36. package/types/devvit/ui/events/v1alpha/event.js +13 -17
  37. package/types/devvit/ui/events/v1alpha/web_view.d.ts +2 -2
  38. package/types/devvit/ui/events/v1alpha/web_view.d.ts.map +1 -1
  39. package/types/devvit/ui/events/v1alpha/web_view.js +13 -17
@@ -6,350 +6,23 @@
6
6
  */
7
7
  /* eslint-disable */
8
8
  import _m0 from "protobufjs/minimal.js";
9
- import { consentStatusFromJSON, consentStatusToJSON, scopeFromJSON, scopeToJSON, } from "../../../../reddit/devvit/app_permission/v1/app_permission.js";
9
+ import { consentStatusFromJSON, consentStatusToJSON, } from "../../../../reddit/devvit/app_permission/v1/app_permission.js";
10
10
  import { messageTypeRegistry } from "../../../../typeRegistry.js";
11
- function createBaseObtainAppPermissionsEffect() {
12
- return { app: undefined, scopes: [], subreddit: undefined, redditor: undefined };
11
+ function createBaseCanRunAsUserEffect() {
12
+ return {};
13
13
  }
14
- export const ObtainAppPermissionsEffect = {
15
- $type: "devvit.ui.effects.v1alpha.ObtainAppPermissionsEffect",
16
- encode(message, writer = _m0.Writer.create()) {
17
- if (message.app !== undefined) {
18
- ObtainAppPermissionsEffect_DevvitApp.encode(message.app, writer.uint32(10).fork()).ldelim();
19
- }
20
- writer.uint32(18).fork();
21
- for (const v of message.scopes) {
22
- writer.int32(v);
23
- }
24
- writer.ldelim();
25
- if (message.subreddit !== undefined) {
26
- ObtainAppPermissionsEffect_Subreddit.encode(message.subreddit, writer.uint32(26).fork()).ldelim();
27
- }
28
- if (message.redditor !== undefined) {
29
- ObtainAppPermissionsEffect_Redditor.encode(message.redditor, writer.uint32(34).fork()).ldelim();
30
- }
31
- return writer;
32
- },
33
- decode(input, length) {
34
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
35
- let end = length === undefined ? reader.len : reader.pos + length;
36
- const message = createBaseObtainAppPermissionsEffect();
37
- while (reader.pos < end) {
38
- const tag = reader.uint32();
39
- switch (tag >>> 3) {
40
- case 1:
41
- if (tag !== 10) {
42
- break;
43
- }
44
- message.app = ObtainAppPermissionsEffect_DevvitApp.decode(reader, reader.uint32());
45
- continue;
46
- case 2:
47
- if (tag === 16) {
48
- message.scopes.push(reader.int32());
49
- continue;
50
- }
51
- if (tag === 18) {
52
- const end2 = reader.uint32() + reader.pos;
53
- while (reader.pos < end2) {
54
- message.scopes.push(reader.int32());
55
- }
56
- continue;
57
- }
58
- break;
59
- case 3:
60
- if (tag !== 26) {
61
- break;
62
- }
63
- message.subreddit = ObtainAppPermissionsEffect_Subreddit.decode(reader, reader.uint32());
64
- continue;
65
- case 4:
66
- if (tag !== 34) {
67
- break;
68
- }
69
- message.redditor = ObtainAppPermissionsEffect_Redditor.decode(reader, reader.uint32());
70
- continue;
71
- }
72
- if ((tag & 7) === 4 || tag === 0) {
73
- break;
74
- }
75
- reader.skipType(tag & 7);
76
- }
77
- return message;
78
- },
79
- fromJSON(object) {
80
- return {
81
- app: isSet(object.app) ? ObtainAppPermissionsEffect_DevvitApp.fromJSON(object.app) : undefined,
82
- scopes: globalThis.Array.isArray(object?.scopes) ? object.scopes.map((e) => scopeFromJSON(e)) : [],
83
- subreddit: isSet(object.subreddit) ? ObtainAppPermissionsEffect_Subreddit.fromJSON(object.subreddit) : undefined,
84
- redditor: isSet(object.redditor) ? ObtainAppPermissionsEffect_Redditor.fromJSON(object.redditor) : undefined,
85
- };
86
- },
87
- toJSON(message) {
88
- const obj = {};
89
- if (message.app !== undefined) {
90
- obj.app = ObtainAppPermissionsEffect_DevvitApp.toJSON(message.app);
91
- }
92
- if (message.scopes?.length) {
93
- obj.scopes = message.scopes.map((e) => scopeToJSON(e));
94
- }
95
- if (message.subreddit !== undefined) {
96
- obj.subreddit = ObtainAppPermissionsEffect_Subreddit.toJSON(message.subreddit);
97
- }
98
- if (message.redditor !== undefined) {
99
- obj.redditor = ObtainAppPermissionsEffect_Redditor.toJSON(message.redditor);
100
- }
101
- return obj;
102
- },
103
- create(base) {
104
- return ObtainAppPermissionsEffect.fromPartial(base ?? {});
105
- },
106
- fromPartial(object) {
107
- const message = createBaseObtainAppPermissionsEffect();
108
- message.app = (object.app !== undefined && object.app !== null)
109
- ? ObtainAppPermissionsEffect_DevvitApp.fromPartial(object.app)
110
- : undefined;
111
- message.scopes = object.scopes?.map((e) => e) || [];
112
- message.subreddit = (object.subreddit !== undefined && object.subreddit !== null)
113
- ? ObtainAppPermissionsEffect_Subreddit.fromPartial(object.subreddit)
114
- : undefined;
115
- message.redditor = (object.redditor !== undefined && object.redditor !== null)
116
- ? ObtainAppPermissionsEffect_Redditor.fromPartial(object.redditor)
117
- : undefined;
118
- return message;
119
- },
120
- };
121
- messageTypeRegistry.set(ObtainAppPermissionsEffect.$type, ObtainAppPermissionsEffect);
122
- function createBaseObtainAppPermissionsEffect_Redditor() {
123
- return { id: "", icon: undefined, snoovatarIcon: undefined };
124
- }
125
- export const ObtainAppPermissionsEffect_Redditor = {
126
- $type: "devvit.ui.effects.v1alpha.ObtainAppPermissionsEffect.Redditor",
127
- encode(message, writer = _m0.Writer.create()) {
128
- if (message.id !== "") {
129
- writer.uint32(10).string(message.id);
130
- }
131
- if (message.icon !== undefined) {
132
- writer.uint32(18).string(message.icon);
133
- }
134
- if (message.snoovatarIcon !== undefined) {
135
- writer.uint32(26).string(message.snoovatarIcon);
136
- }
137
- return writer;
138
- },
139
- decode(input, length) {
140
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
141
- let end = length === undefined ? reader.len : reader.pos + length;
142
- const message = createBaseObtainAppPermissionsEffect_Redditor();
143
- while (reader.pos < end) {
144
- const tag = reader.uint32();
145
- switch (tag >>> 3) {
146
- case 1:
147
- if (tag !== 10) {
148
- break;
149
- }
150
- message.id = reader.string();
151
- continue;
152
- case 2:
153
- if (tag !== 18) {
154
- break;
155
- }
156
- message.icon = reader.string();
157
- continue;
158
- case 3:
159
- if (tag !== 26) {
160
- break;
161
- }
162
- message.snoovatarIcon = reader.string();
163
- continue;
164
- }
165
- if ((tag & 7) === 4 || tag === 0) {
166
- break;
167
- }
168
- reader.skipType(tag & 7);
169
- }
170
- return message;
171
- },
172
- fromJSON(object) {
173
- return {
174
- id: isSet(object.id) ? globalThis.String(object.id) : "",
175
- icon: isSet(object.icon) ? globalThis.String(object.icon) : undefined,
176
- snoovatarIcon: isSet(object.snoovatarIcon) ? globalThis.String(object.snoovatarIcon) : undefined,
177
- };
178
- },
179
- toJSON(message) {
180
- const obj = {};
181
- if (message.id !== "") {
182
- obj.id = message.id;
183
- }
184
- if (message.icon !== undefined) {
185
- obj.icon = message.icon;
186
- }
187
- if (message.snoovatarIcon !== undefined) {
188
- obj.snoovatarIcon = message.snoovatarIcon;
189
- }
190
- return obj;
191
- },
192
- create(base) {
193
- return ObtainAppPermissionsEffect_Redditor.fromPartial(base ?? {});
194
- },
195
- fromPartial(object) {
196
- const message = createBaseObtainAppPermissionsEffect_Redditor();
197
- message.id = object.id ?? "";
198
- message.icon = object.icon ?? undefined;
199
- message.snoovatarIcon = object.snoovatarIcon ?? undefined;
200
- return message;
201
- },
202
- };
203
- messageTypeRegistry.set(ObtainAppPermissionsEffect_Redditor.$type, ObtainAppPermissionsEffect_Redditor);
204
- function createBaseObtainAppPermissionsEffect_DevvitApp() {
205
- return { appSlug: "", appName: "", termsAndConditionsUrl: undefined, privacyPolicyUrl: undefined };
206
- }
207
- export const ObtainAppPermissionsEffect_DevvitApp = {
208
- $type: "devvit.ui.effects.v1alpha.ObtainAppPermissionsEffect.DevvitApp",
209
- encode(message, writer = _m0.Writer.create()) {
210
- if (message.appSlug !== "") {
211
- writer.uint32(10).string(message.appSlug);
212
- }
213
- if (message.appName !== "") {
214
- writer.uint32(18).string(message.appName);
215
- }
216
- if (message.termsAndConditionsUrl !== undefined) {
217
- writer.uint32(26).string(message.termsAndConditionsUrl);
218
- }
219
- if (message.privacyPolicyUrl !== undefined) {
220
- writer.uint32(34).string(message.privacyPolicyUrl);
221
- }
222
- return writer;
223
- },
224
- decode(input, length) {
225
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
226
- let end = length === undefined ? reader.len : reader.pos + length;
227
- const message = createBaseObtainAppPermissionsEffect_DevvitApp();
228
- while (reader.pos < end) {
229
- const tag = reader.uint32();
230
- switch (tag >>> 3) {
231
- case 1:
232
- if (tag !== 10) {
233
- break;
234
- }
235
- message.appSlug = reader.string();
236
- continue;
237
- case 2:
238
- if (tag !== 18) {
239
- break;
240
- }
241
- message.appName = reader.string();
242
- continue;
243
- case 3:
244
- if (tag !== 26) {
245
- break;
246
- }
247
- message.termsAndConditionsUrl = reader.string();
248
- continue;
249
- case 4:
250
- if (tag !== 34) {
251
- break;
252
- }
253
- message.privacyPolicyUrl = reader.string();
254
- continue;
255
- }
256
- if ((tag & 7) === 4 || tag === 0) {
257
- break;
258
- }
259
- reader.skipType(tag & 7);
260
- }
261
- return message;
262
- },
263
- fromJSON(object) {
264
- return {
265
- appSlug: isSet(object.appSlug) ? globalThis.String(object.appSlug) : "",
266
- appName: isSet(object.appName) ? globalThis.String(object.appName) : "",
267
- termsAndConditionsUrl: isSet(object.termsAndConditionsUrl)
268
- ? globalThis.String(object.termsAndConditionsUrl)
269
- : undefined,
270
- privacyPolicyUrl: isSet(object.privacyPolicyUrl) ? globalThis.String(object.privacyPolicyUrl) : undefined,
271
- };
272
- },
273
- toJSON(message) {
274
- const obj = {};
275
- if (message.appSlug !== "") {
276
- obj.appSlug = message.appSlug;
277
- }
278
- if (message.appName !== "") {
279
- obj.appName = message.appName;
280
- }
281
- if (message.termsAndConditionsUrl !== undefined) {
282
- obj.termsAndConditionsUrl = message.termsAndConditionsUrl;
283
- }
284
- if (message.privacyPolicyUrl !== undefined) {
285
- obj.privacyPolicyUrl = message.privacyPolicyUrl;
286
- }
287
- return obj;
288
- },
289
- create(base) {
290
- return ObtainAppPermissionsEffect_DevvitApp.fromPartial(base ?? {});
291
- },
292
- fromPartial(object) {
293
- const message = createBaseObtainAppPermissionsEffect_DevvitApp();
294
- message.appSlug = object.appSlug ?? "";
295
- message.appName = object.appName ?? "";
296
- message.termsAndConditionsUrl = object.termsAndConditionsUrl ?? undefined;
297
- message.privacyPolicyUrl = object.privacyPolicyUrl ?? undefined;
298
- return message;
299
- },
300
- };
301
- messageTypeRegistry.set(ObtainAppPermissionsEffect_DevvitApp.$type, ObtainAppPermissionsEffect_DevvitApp);
302
- function createBaseObtainAppPermissionsEffect_Subreddit() {
303
- return { id: "", name: "", isNsfw: undefined, icon: undefined };
304
- }
305
- export const ObtainAppPermissionsEffect_Subreddit = {
306
- $type: "devvit.ui.effects.v1alpha.ObtainAppPermissionsEffect.Subreddit",
307
- encode(message, writer = _m0.Writer.create()) {
308
- if (message.id !== "") {
309
- writer.uint32(10).string(message.id);
310
- }
311
- if (message.name !== "") {
312
- writer.uint32(18).string(message.name);
313
- }
314
- if (message.isNsfw !== undefined) {
315
- writer.uint32(24).bool(message.isNsfw);
316
- }
317
- if (message.icon !== undefined) {
318
- writer.uint32(34).string(message.icon);
319
- }
14
+ export const CanRunAsUserEffect = {
15
+ $type: "devvit.ui.effects.v1alpha.CanRunAsUserEffect",
16
+ encode(_, writer = _m0.Writer.create()) {
320
17
  return writer;
321
18
  },
322
19
  decode(input, length) {
323
20
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
324
21
  let end = length === undefined ? reader.len : reader.pos + length;
325
- const message = createBaseObtainAppPermissionsEffect_Subreddit();
22
+ const message = createBaseCanRunAsUserEffect();
326
23
  while (reader.pos < end) {
327
24
  const tag = reader.uint32();
328
25
  switch (tag >>> 3) {
329
- case 1:
330
- if (tag !== 10) {
331
- break;
332
- }
333
- message.id = reader.string();
334
- continue;
335
- case 2:
336
- if (tag !== 18) {
337
- break;
338
- }
339
- message.name = reader.string();
340
- continue;
341
- case 3:
342
- if (tag !== 24) {
343
- break;
344
- }
345
- message.isNsfw = reader.bool();
346
- continue;
347
- case 4:
348
- if (tag !== 34) {
349
- break;
350
- }
351
- message.icon = reader.string();
352
- continue;
353
26
  }
354
27
  if ((tag & 7) === 4 || tag === 0) {
355
28
  break;
@@ -358,48 +31,27 @@ export const ObtainAppPermissionsEffect_Subreddit = {
358
31
  }
359
32
  return message;
360
33
  },
361
- fromJSON(object) {
362
- return {
363
- id: isSet(object.id) ? globalThis.String(object.id) : "",
364
- name: isSet(object.name) ? globalThis.String(object.name) : "",
365
- isNsfw: isSet(object.isNsfw) ? globalThis.Boolean(object.isNsfw) : undefined,
366
- icon: isSet(object.icon) ? globalThis.String(object.icon) : undefined,
367
- };
34
+ fromJSON(_) {
35
+ return {};
368
36
  },
369
- toJSON(message) {
37
+ toJSON(_) {
370
38
  const obj = {};
371
- if (message.id !== "") {
372
- obj.id = message.id;
373
- }
374
- if (message.name !== "") {
375
- obj.name = message.name;
376
- }
377
- if (message.isNsfw !== undefined) {
378
- obj.isNsfw = message.isNsfw;
379
- }
380
- if (message.icon !== undefined) {
381
- obj.icon = message.icon;
382
- }
383
39
  return obj;
384
40
  },
385
41
  create(base) {
386
- return ObtainAppPermissionsEffect_Subreddit.fromPartial(base ?? {});
42
+ return CanRunAsUserEffect.fromPartial(base ?? {});
387
43
  },
388
- fromPartial(object) {
389
- const message = createBaseObtainAppPermissionsEffect_Subreddit();
390
- message.id = object.id ?? "";
391
- message.name = object.name ?? "";
392
- message.isNsfw = object.isNsfw ?? undefined;
393
- message.icon = object.icon ?? undefined;
44
+ fromPartial(_) {
45
+ const message = createBaseCanRunAsUserEffect();
394
46
  return message;
395
47
  },
396
48
  };
397
- messageTypeRegistry.set(ObtainAppPermissionsEffect_Subreddit.$type, ObtainAppPermissionsEffect_Subreddit);
398
- function createBaseAppPermissionsConsentSubmittedEvent() {
49
+ messageTypeRegistry.set(CanRunAsUserEffect.$type, CanRunAsUserEffect);
50
+ function createBaseConsentStatusEvent() {
399
51
  return { consentStatus: 0 };
400
52
  }
401
- export const AppPermissionsConsentSubmittedEvent = {
402
- $type: "devvit.ui.effects.v1alpha.AppPermissionsConsentSubmittedEvent",
53
+ export const ConsentStatusEvent = {
54
+ $type: "devvit.ui.effects.v1alpha.ConsentStatusEvent",
403
55
  encode(message, writer = _m0.Writer.create()) {
404
56
  if (message.consentStatus !== 0) {
405
57
  writer.uint32(8).int32(message.consentStatus);
@@ -409,7 +61,7 @@ export const AppPermissionsConsentSubmittedEvent = {
409
61
  decode(input, length) {
410
62
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
411
63
  let end = length === undefined ? reader.len : reader.pos + length;
412
- const message = createBaseAppPermissionsConsentSubmittedEvent();
64
+ const message = createBaseConsentStatusEvent();
413
65
  while (reader.pos < end) {
414
66
  const tag = reader.uint32();
415
67
  switch (tag >>> 3) {
@@ -438,15 +90,15 @@ export const AppPermissionsConsentSubmittedEvent = {
438
90
  return obj;
439
91
  },
440
92
  create(base) {
441
- return AppPermissionsConsentSubmittedEvent.fromPartial(base ?? {});
93
+ return ConsentStatusEvent.fromPartial(base ?? {});
442
94
  },
443
95
  fromPartial(object) {
444
- const message = createBaseAppPermissionsConsentSubmittedEvent();
96
+ const message = createBaseConsentStatusEvent();
445
97
  message.consentStatus = object.consentStatus ?? 0;
446
98
  return message;
447
99
  },
448
100
  };
449
- messageTypeRegistry.set(AppPermissionsConsentSubmittedEvent.$type, AppPermissionsConsentSubmittedEvent);
101
+ messageTypeRegistry.set(ConsentStatusEvent.$type, ConsentStatusEvent);
450
102
  function isSet(value) {
451
103
  return value !== null && value !== undefined;
452
104
  }
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import _m0 from "protobufjs/minimal.js";
8
8
  import { WebViewEffect } from "../web_view/v1alpha/web_view.js";
9
- import { ObtainAppPermissionsEffect } from "./app_permission.js";
9
+ import { CanRunAsUserEffect } from "./app_permission.js";
10
10
  import { CreateOrderEffect } from "./create_order.js";
11
11
  import { SetIntervalsEffect } from "./interval.js";
12
12
  import { NavigateToUrlEffect } from "./navigate_to_url.js";
@@ -34,8 +34,8 @@ export declare enum EffectType {
34
34
  EFFECT_CREATE_ORDER = 8,
35
35
  /** EFFECT_WEB_VIEW - Control and communicate with WebViews */
36
36
  EFFECT_WEB_VIEW = 9,
37
- /** EFFECT_OBTAIN_APP_PERMISSIONS - Obtain app permissions (will open a dialog to the user) */
38
- EFFECT_OBTAIN_APP_PERMISSIONS = 10,
37
+ /** EFFECT_CAN_RUN_AS_USER - Check if the app can execute some actions as the user */
38
+ EFFECT_CAN_RUN_AS_USER = 11,
39
39
  UNRECOGNIZED = -1
40
40
  }
41
41
  export declare function effectTypeFromJSON(object: any): EffectType;
@@ -50,7 +50,7 @@ export interface Effect {
50
50
  interval?: SetIntervalsEffect | undefined;
51
51
  createOrder?: CreateOrderEffect | undefined;
52
52
  webView?: WebViewEffect | undefined;
53
- obtainAppPermissions?: ObtainAppPermissionsEffect | undefined;
53
+ canRunAsUser?: CanRunAsUserEffect | undefined;
54
54
  /** TODO: remove this field once all clients are updated. Redundant with effect_type */
55
55
  type: EffectType;
56
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"effect.d.ts","sourceRoot":"","sources":["../../../../../../src/types/devvit/ui/effects/v1alpha/effect.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,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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 { messageTypeRegistry } from "../../../../typeRegistry.js";
10
10
  import { WebViewEffect } from "../web_view/v1alpha/web_view.js";
11
- import { ObtainAppPermissionsEffect } from "./app_permission.js";
11
+ import { CanRunAsUserEffect } from "./app_permission.js";
12
12
  import { CreateOrderEffect } from "./create_order.js";
13
13
  import { SetIntervalsEffect } from "./interval.js";
14
14
  import { NavigateToUrlEffect } from "./navigate_to_url.js";
@@ -37,8 +37,8 @@ export var EffectType;
37
37
  EffectType[EffectType["EFFECT_CREATE_ORDER"] = 8] = "EFFECT_CREATE_ORDER";
38
38
  /** EFFECT_WEB_VIEW - Control and communicate with WebViews */
39
39
  EffectType[EffectType["EFFECT_WEB_VIEW"] = 9] = "EFFECT_WEB_VIEW";
40
- /** EFFECT_OBTAIN_APP_PERMISSIONS - Obtain app permissions (will open a dialog to the user) */
41
- EffectType[EffectType["EFFECT_OBTAIN_APP_PERMISSIONS"] = 10] = "EFFECT_OBTAIN_APP_PERMISSIONS";
40
+ /** EFFECT_CAN_RUN_AS_USER - Check if the app can execute some actions as the user */
41
+ EffectType[EffectType["EFFECT_CAN_RUN_AS_USER"] = 11] = "EFFECT_CAN_RUN_AS_USER";
42
42
  EffectType[EffectType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
43
43
  })(EffectType || (EffectType = {}));
44
44
  export function effectTypeFromJSON(object) {
@@ -70,9 +70,9 @@ export function effectTypeFromJSON(object) {
70
70
  case 9:
71
71
  case "EFFECT_WEB_VIEW":
72
72
  return EffectType.EFFECT_WEB_VIEW;
73
- case 10:
74
- case "EFFECT_OBTAIN_APP_PERMISSIONS":
75
- return EffectType.EFFECT_OBTAIN_APP_PERMISSIONS;
73
+ case 11:
74
+ case "EFFECT_CAN_RUN_AS_USER":
75
+ return EffectType.EFFECT_CAN_RUN_AS_USER;
76
76
  case -1:
77
77
  case "UNRECOGNIZED":
78
78
  default:
@@ -99,8 +99,8 @@ export function effectTypeToJSON(object) {
99
99
  return 8;
100
100
  case EffectType.EFFECT_WEB_VIEW:
101
101
  return 9;
102
- case EffectType.EFFECT_OBTAIN_APP_PERMISSIONS:
103
- return 10;
102
+ case EffectType.EFFECT_CAN_RUN_AS_USER:
103
+ return 11;
104
104
  case EffectType.UNRECOGNIZED:
105
105
  default:
106
106
  return -1;
@@ -117,7 +117,7 @@ function createBaseEffect() {
117
117
  interval: undefined,
118
118
  createOrder: undefined,
119
119
  webView: undefined,
120
- obtainAppPermissions: undefined,
120
+ canRunAsUser: undefined,
121
121
  type: 0,
122
122
  };
123
123
  }
@@ -151,8 +151,8 @@ export const Effect = {
151
151
  if (message.webView !== undefined) {
152
152
  WebViewEffect.encode(message.webView, writer.uint32(90).fork()).ldelim();
153
153
  }
154
- if (message.obtainAppPermissions !== undefined) {
155
- ObtainAppPermissionsEffect.encode(message.obtainAppPermissions, writer.uint32(98).fork()).ldelim();
154
+ if (message.canRunAsUser !== undefined) {
155
+ CanRunAsUserEffect.encode(message.canRunAsUser, writer.uint32(106).fork()).ldelim();
156
156
  }
157
157
  if (message.type !== 0) {
158
158
  writer.uint32(56).int32(message.type);
@@ -220,11 +220,11 @@ export const Effect = {
220
220
  }
221
221
  message.webView = WebViewEffect.decode(reader, reader.uint32());
222
222
  continue;
223
- case 12:
224
- if (tag !== 98) {
223
+ case 13:
224
+ if (tag !== 106) {
225
225
  break;
226
226
  }
227
- message.obtainAppPermissions = ObtainAppPermissionsEffect.decode(reader, reader.uint32());
227
+ message.canRunAsUser = CanRunAsUserEffect.decode(reader, reader.uint32());
228
228
  continue;
229
229
  case 7:
230
230
  if (tag !== 56) {
@@ -253,9 +253,7 @@ export const Effect = {
253
253
  interval: isSet(object.interval) ? SetIntervalsEffect.fromJSON(object.interval) : undefined,
254
254
  createOrder: isSet(object.createOrder) ? CreateOrderEffect.fromJSON(object.createOrder) : undefined,
255
255
  webView: isSet(object.webView) ? WebViewEffect.fromJSON(object.webView) : undefined,
256
- obtainAppPermissions: isSet(object.obtainAppPermissions)
257
- ? ObtainAppPermissionsEffect.fromJSON(object.obtainAppPermissions)
258
- : undefined,
256
+ canRunAsUser: isSet(object.canRunAsUser) ? CanRunAsUserEffect.fromJSON(object.canRunAsUser) : undefined,
259
257
  type: isSet(object.type) ? effectTypeFromJSON(object.type) : 0,
260
258
  };
261
259
  },
@@ -288,8 +286,8 @@ export const Effect = {
288
286
  if (message.webView !== undefined) {
289
287
  obj.webView = WebViewEffect.toJSON(message.webView);
290
288
  }
291
- if (message.obtainAppPermissions !== undefined) {
292
- obj.obtainAppPermissions = ObtainAppPermissionsEffect.toJSON(message.obtainAppPermissions);
289
+ if (message.canRunAsUser !== undefined) {
290
+ obj.canRunAsUser = CanRunAsUserEffect.toJSON(message.canRunAsUser);
293
291
  }
294
292
  if (message.type !== 0) {
295
293
  obj.type = effectTypeToJSON(message.type);
@@ -329,8 +327,8 @@ export const Effect = {
329
327
  message.webView = (object.webView !== undefined && object.webView !== null)
330
328
  ? WebViewEffect.fromPartial(object.webView)
331
329
  : undefined;
332
- message.obtainAppPermissions = (object.obtainAppPermissions !== undefined && object.obtainAppPermissions !== null)
333
- ? ObtainAppPermissionsEffect.fromPartial(object.obtainAppPermissions)
330
+ message.canRunAsUser = (object.canRunAsUser !== undefined && object.canRunAsUser !== null)
331
+ ? CanRunAsUserEffect.fromPartial(object.canRunAsUser)
334
332
  : undefined;
335
333
  message.type = object.type ?? 0;
336
334
  return message;
@@ -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 { OrderResultEvent } from "../../effects/v1alpha/create_order.js";
10
10
  import { RealtimeSubscriptionEvent } from "../../effects/v1alpha/realtime_subscriptions.js";
11
11
  import { FormCanceledEvent, FormSubmittedEvent } from "../../effects/v1alpha/show_form.js";
@@ -38,7 +38,7 @@ export interface UIEvent {
38
38
  resize?: ResizeEvent | undefined;
39
39
  webView?: WebViewEvent | undefined;
40
40
  formCanceled?: FormCanceledEvent | undefined;
41
- appPermissionsConsentSubmitted?: AppPermissionsConsentSubmittedEvent | undefined;
41
+ consentStatus?: ConsentStatusEvent | undefined;
42
42
  /**
43
43
  * If an event is async, it can be fired in parallel with other events. Async events
44
44
  * are not allowed to mutate state. Any state mutations they attempt would be ignored.
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../../../../src/types/devvit/ui/events/v1alpha/event.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAIxC,OAAO,EAAE,mCAAmC,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C;;;;;GAKG;AACH,oBAAY,YAAY;IACtB,GAAG,IAAI;IACP,KAAK,IAAI;IACT,MAAM,IAAI;IACV,YAAY,KAAK;CAClB;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAAG,GAAG,YAAY,CAgB9D;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAY/D;AAED,MAAM,WAAW,OAAO;IACtB,aAAa,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;IACtD,aAAa,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC/C,WAAW,CAAC,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