@devvit/public-api 0.11.17-next-2025-06-03-4b5bf9a9d.0 → 0.11.17-next-2025-06-04-b6703d5a9.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 (2) hide show
  1. package/package.json +7 -7
  2. package/public-api.d.ts +33 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/public-api",
3
- "version": "0.11.17-next-2025-06-03-4b5bf9a9d.0",
3
+ "version": "0.11.17-next-2025-06-04-b6703d5a9.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,17 +30,17 @@
30
30
  },
31
31
  "types": "./index.d.ts",
32
32
  "dependencies": {
33
- "@devvit/metrics": "0.11.17-next-2025-06-03-4b5bf9a9d.0",
34
- "@devvit/protos": "0.11.17-next-2025-06-03-4b5bf9a9d.0",
35
- "@devvit/shared-types": "0.11.17-next-2025-06-03-4b5bf9a9d.0",
33
+ "@devvit/metrics": "0.11.17-next-2025-06-04-b6703d5a9.0",
34
+ "@devvit/protos": "0.11.17-next-2025-06-04-b6703d5a9.0",
35
+ "@devvit/shared-types": "0.11.17-next-2025-06-04-b6703d5a9.0",
36
36
  "base64-js": "1.5.1",
37
37
  "clone-deep": "4.0.1",
38
38
  "moderndash": "4.0.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@ampproject/filesize": "4.3.0",
42
- "@devvit/repo-tools": "0.11.17-next-2025-06-03-4b5bf9a9d.0",
43
- "@devvit/tsconfig": "0.11.17-next-2025-06-03-4b5bf9a9d.0",
42
+ "@devvit/repo-tools": "0.11.17-next-2025-06-04-b6703d5a9.0",
43
+ "@devvit/tsconfig": "0.11.17-next-2025-06-04-b6703d5a9.0",
44
44
  "@microsoft/api-extractor": "7.41.0",
45
45
  "@reddit/faceplate-ui": "18.0.1",
46
46
  "@types/clone-deep": "4.0.1",
@@ -61,5 +61,5 @@
61
61
  }
62
62
  },
63
63
  "source": "./src/index.ts",
64
- "gitHead": "9cfed53c57fb0488bf45bf4f0dcdc295a8204bf0"
64
+ "gitHead": "c542e5d2968a5c769cfc7032f9a2f44d62a32ff6"
65
65
  }
package/public-api.d.ts CHANGED
@@ -13488,6 +13488,12 @@ declare interface LinkedBundle {
13488
13488
  products: {
13489
13489
  [key: string]: string;
13490
13490
  };
13491
+ /**
13492
+ * Standalone server implementation, without Blocks rendering or "Devvit Classic".
13493
+ * If provided, this code is expected to be an entry point for an HTTP server that can
13494
+ * handle requests at process.env.WEBBIT_PORT.
13495
+ */
13496
+ server?: ServerBundle | undefined;
13491
13497
  }
13492
13498
 
13493
13499
  declare const LinkedBundle: {
@@ -42429,6 +42435,33 @@ declare const SerializableServiceDefinition: {
42429
42435
  fromPartial(object: DeepPartial_13<SerializableServiceDefinition>): SerializableServiceDefinition;
42430
42436
  };
42431
42437
 
42438
+ /**
42439
+ * This represents a standalone server implementation that starts an HTTP server
42440
+ * to execute on Devvit's compute platform.
42441
+ */
42442
+ declare interface ServerBundle {
42443
+ /**
42444
+ * A compiled bundle of code to be executed as-is. Listening on the server port
42445
+ * for HTTP requests should occur through side effects of evaluating this code.
42446
+ */
42447
+ code: string;
42448
+ /**
42449
+ * Source map accompanying |code|, used for better stack traces when erorrs occur.
42450
+ * Not required. For specification, see: https://tc39.es/ecma426/
42451
+ */
42452
+ sourceMap: string;
42453
+ }
42454
+
42455
+ declare const ServerBundle: {
42456
+ $type: "devvit.runtime.ServerBundle";
42457
+ encode(message: ServerBundle, writer?: _m0.Writer): _m0.Writer;
42458
+ decode(input: _m0.Reader | Uint8Array, length?: number): ServerBundle;
42459
+ fromJSON(object: any): ServerBundle;
42460
+ toJSON(message: ServerBundle): unknown;
42461
+ create(base?: DeepPartial_15<ServerBundle>): ServerBundle;
42462
+ fromPartial(object: DeepPartial_15<ServerBundle>): ServerBundle;
42463
+ };
42464
+
42432
42465
  declare interface SetContestModeRequest {
42433
42466
  /**
42434
42467
  * Post thing ID