@devvit/protos 0.11.20-next-2025-07-23-16-35-06-4e9bd2820.0 → 0.11.20-next-2025-07-23-18-03-59-68cb855f3.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.
@@ -4,6 +4,41 @@
4
4
  * Code generated by ts-proto. DO NOT EDIT.
5
5
  * @packageDocumentation
6
6
  */
7
+ /**
8
+ * Initialization data sent from the client (Shreddit, Android, iOS) to the
9
+ * web view.
10
+ */
11
+ export type BridgeContext = {
12
+ /**
13
+ * to-do: use webbit_token once it is a superset of DevvitPostData and a
14
+ * decoder is available.
15
+ *
16
+ * @deprecated
17
+ */
18
+ postData?: DevvitPostData | undefined;
19
+ shareParam?: ShareParam | undefined;
20
+ /**
21
+ * to-do: use webbit_token once it is a superset of WebViewContext.
22
+ *
23
+ * @deprecated
24
+ */
25
+ webViewContext?: WebViewContext | undefined;
26
+ /**
27
+ * Signed WebbitToken user JWT (header, payload, signature base64 strings
28
+ * separated by dots). Users shouldn't share their JWTs with others, but
29
+ * perfectly fine for a given user to see. Named WebbitToken to match GQL's
30
+ * definition. Eg:
31
+ * eyJhbGciOiJIUzI1NiIsImtpZCI6ImVlYzJjOWUzLWM0NTctNTM3Zi05NThmLTI5MDg3N2U4NjNlYyIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJkZXZ2aXQtZ2F0ZXdheS5yZWRkaXQuY29tIiwiYXVkIjpbIjhlMGUwZWI3LTc0NzgtNGVmMS1hNGZmLTk5NTlmMTkzZmNkMC0wLTAtOS13ZWJ2aWV3LmRldnZpdC5uZXQiXSwiZXhwIjoxNzUzMzcxODU2LCJuYmYiOjE3NTMyODU0NTYsImlhdCI6MTc1MzI4NTQ1NiwianRpIjoiYTA5NWMyOTktOWJkNS00MGUzLWEyYTEtYzhkYTBiMDc0ZjRhIiwiZGV2dml0LXBvc3QtaWQiOiJ0M18xbTdjcHZxIiwiZGV2dml0LXBvc3QtZGF0YSI6e30sImRldnZpdC11c2VyLWlkIjoidDJfazZsZGJqaDMiLCJkZXZ2aXQtaW5zdGFsbGF0aW9uIjoiOGUwZTBlYjctNzQ3OC00ZWYxLWE0ZmYtOTk1OWYxOTNmY2QwIn0.6M4NKCUsB4kWhZmslE909IL-hf2FAVMrkjB-peaHLHc
32
+ */
33
+ webbitToken: string;
34
+ /**
35
+ * Untrusted unknown debug user data passed in the case-insensitive
36
+ * `devvitdebug` query param of the hosting
37
+ * window (eg, `reddit.com?devvitdebug=...`).
38
+ */
39
+ devvitDebug: string;
40
+ };
41
+ /** @deprecated */
7
42
  export type WebViewContext = {
8
43
  /** Subreddit Thing ID (t5) */
9
44
  subredditId: string;
@@ -25,4 +60,38 @@ export type DevvitPostData = {
25
60
  [key: string]: any;
26
61
  } | undefined;
27
62
  };
63
+ /**
64
+ * App deep link. Passed in case-insensitive `devvitshare` query param of the
65
+ * hosting window (eg, `reddit.com?devvitshare=...`) as user data.
66
+ *
67
+ * url.searchParams.set(
68
+ * JSON.stringify({params: {foo: 'bar'}, path: '/a/b/c/index.html', hash: '#abc'} satisfies ShareParam) // Encodes.
69
+ * )
70
+ * const shareParam: ShareParam | undefined = JSON.parse(
71
+ * url.searchParams.get('devvitshare') || '{}' // Decodes.
72
+ * ) ?? undefined
73
+ * ...Verify user data...
74
+ *
75
+ * Links are always assumed to use PDP.
76
+ */
77
+ export type ShareParam = {
78
+ /**
79
+ * Everything after and including the first /. Aligns to
80
+ * https://developer.mozilla.org/en-US/docs/Web/API/URL/pathname.
81
+ */
82
+ path: string;
83
+ /** URL query parameters (key-value). */
84
+ params: {
85
+ [key: string]: string;
86
+ };
87
+ /**
88
+ * Everything after and including the first #. Aligns to
89
+ * https://developer.mozilla.org/en-US/docs/Web/API/URL/hash.
90
+ */
91
+ hash: string;
92
+ };
93
+ export type ShareParam_ParamsEntry = {
94
+ key: string;
95
+ value: string;
96
+ };
28
97
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../../../src/json/devvit/ui/effects/web_view/v1alpha/context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,MAAM,cAAc,GAAG;IAC3B,8BAA8B;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,4JAA4J;IAC5J,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CACpD,CAAA"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../../../src/json/devvit/ui/effects/web_view/v1alpha/context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACtC,UAAU,CAAC,EACP,UAAU,GACV,SAAS,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EACX,cAAc,GACd,SAAS,CAAC;IACd;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,kBAAkB;AAClB,MAAM,MAAM,cAAc,GAAG;IAC3B,8BAA8B;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,4JAA4J;IAC5J,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CACpD,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAA"}
package/meta.min.json CHANGED
@@ -6156,7 +6156,7 @@
6156
6156
  "format": "esm"
6157
6157
  },
6158
6158
  "src/types/devvit/ui/effects/web_view/v1alpha/context.ts": {
6159
- "bytes": 7583,
6159
+ "bytes": 20062,
6160
6160
  "imports": [
6161
6161
  {
6162
6162
  "path": "../../node_modules/protobufjs/minimal.js",
@@ -7538,7 +7538,7 @@
7538
7538
  "imports": [],
7539
7539
  "exports": [],
7540
7540
  "inputs": {},
7541
- "bytes": 5554079
7541
+ "bytes": 5572936
7542
7542
  },
7543
7543
  "dist/protos.min.js": {
7544
7544
  "imports": [],
@@ -7941,7 +7941,7 @@
7941
7941
  "bytesInOutput": 26964
7942
7942
  },
7943
7943
  "src/types/devvit/ui/effects/web_view/v1alpha/context.ts": {
7944
- "bytesInOutput": 2927
7944
+ "bytesInOutput": 7404
7945
7945
  },
7946
7946
  "src/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.ts": {
7947
7947
  "bytesInOutput": 7633
@@ -8046,7 +8046,7 @@
8046
8046
  "bytesInOutput": 2438
8047
8047
  }
8048
8048
  },
8049
- "bytes": 1434733
8049
+ "bytes": 1439210
8050
8050
  }
8051
8051
  }
8052
8052
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/protos",
3
- "version": "0.11.20-next-2025-07-23-16-35-06-4e9bd2820.0",
3
+ "version": "0.11.20-next-2025-07-23-18-03-59-68cb855f3.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@ampproject/filesize": "4.3.0",
47
- "@devvit/repo-tools": "0.11.20-next-2025-07-23-16-35-06-4e9bd2820.0",
48
- "@devvit/tsconfig": "0.11.20-next-2025-07-23-16-35-06-4e9bd2820.0",
47
+ "@devvit/repo-tools": "0.11.20-next-2025-07-23-18-03-59-68cb855f3.0",
48
+ "@devvit/tsconfig": "0.11.20-next-2025-07-23-18-03-59-68cb855f3.0",
49
49
  "@protobuf-ts/plugin": "2.9.3",
50
50
  "@types/long": "4.0.2",
51
51
  "chokidar-cli": "3.0.0",
@@ -79,5 +79,5 @@
79
79
  ]
80
80
  }
81
81
  },
82
- "gitHead": "3907b5ce758ea9f664816b328bed931603106bb7"
82
+ "gitHead": "05a2adc883e58fea20594c9e6ec1cc6c0f8a0da7"
83
83
  }