@absolutejs/absolute 0.20.0-beta.80 → 0.20.0-beta.81

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.
@@ -34,5 +34,13 @@ export type NormalizedAbsoluteMobileConfig = {
34
34
  keyId: string;
35
35
  };
36
36
  };
37
+ updateServer?: {
38
+ autoMount: boolean;
39
+ expoCodeSigningKeys: Record<string, {
40
+ certificatePem: string;
41
+ privateKeyEnv: string;
42
+ }>;
43
+ registryModule: string;
44
+ };
37
45
  };
38
46
  export declare const normalizeAbsoluteMobileConfig: (config: MobileConfig, projectRoot: string) => NormalizedAbsoluteMobileConfig;
@@ -53,3 +53,4 @@ export * from './updatePublisher';
53
53
  export * from './updateRuntime';
54
54
  export * from './updateRollout';
55
55
  export * from './updateSigning';
56
+ export * from './updateServer';
@@ -0,0 +1,33 @@
1
+ import { Elysia } from 'elysia';
2
+ import type { MobileUpdateRegistry } from '@absolutejs/deploy/mobile-update';
3
+ import type { NormalizedAbsoluteMobileConfig } from './config';
4
+ export declare const ABSOLUTE_MOBILE_UPDATE_SERVER_FORMAT: 1;
5
+ export declare const DEFAULT_MOBILE_UPDATE_REGISTRY_MODULE = "mobile.update.ts";
6
+ export type AbsoluteMobileUpdateServerMetadata = {
7
+ format: typeof ABSOLUTE_MOBILE_UPDATE_SERVER_FORMAT;
8
+ provider: string;
9
+ storage: 'durable' | 'local';
10
+ };
11
+ export type AbsoluteMobileUpdateServerModule = {
12
+ metadata: AbsoluteMobileUpdateServerMetadata;
13
+ registry: MobileUpdateRegistry;
14
+ };
15
+ export declare const loadAbsoluteMobileUpdateServerModule: (projectRoot: string, requestedModulePath?: string) => Promise<AbsoluteMobileUpdateServerModule>;
16
+ export declare const createAbsoluteMobileUpdateServerPlugin: (config: NormalizedAbsoluteMobileConfig, projectRoot: string, options?: {
17
+ production?: boolean;
18
+ }) => Promise<Elysia<"", "local", import("elysia/types").DefaultSingleton, {
19
+ typebox: {};
20
+ error: [];
21
+ }, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral>>;
22
+ export declare const inspectAbsoluteMobileUpdateServer: (config: NormalizedAbsoluteMobileConfig, projectRoot: string) => Promise<AbsoluteMobileUpdateServerMetadata | undefined>;
23
+ export declare const renderAbsoluteMobileUpdateRegistry: (options: {
24
+ publicKeys: Readonly<Record<string, string>>;
25
+ storage: "local" | "s3";
26
+ }) => string;
27
+ export declare const writeAbsoluteMobileUpdateRegistry: (options: {
28
+ force?: boolean;
29
+ modulePath?: string;
30
+ projectRoot: string;
31
+ publicKeys: Readonly<Record<string, string>>;
32
+ storage: "local" | "s3";
33
+ }) => Promise<string>;
@@ -106,6 +106,22 @@ type MobileSharedConfig = {
106
106
  /** Rotation identity. Defaults to `main`. */
107
107
  keyId?: string;
108
108
  };
109
+ /** Trusted-server update endpoint provisioning. Native clients receive only
110
+ * the manifest URL and public verification material. */
111
+ server?: {
112
+ /** Mount the update endpoint in the AbsoluteJS runtime. Defaults to true. */
113
+ autoMount?: boolean;
114
+ /** Project-relative registry module. Defaults to `mobile.update.ts`. */
115
+ registry?: string;
116
+ /** Environment variable containing the Expo RSA private key PEM. */
117
+ expoPrivateKeyEnv?: string;
118
+ /** Older Expo certificate/private-key references retained while binaries
119
+ * signed with those certificates are still supported. */
120
+ expoCodeSigningKeys?: Readonly<Record<string, {
121
+ certificatePath: string;
122
+ privateKeyEnv: string;
123
+ }>>;
124
+ };
109
125
  };
110
126
  /** Capacitor webDir output. Defaults to `.absolutejs/mobile/web`. */
111
127
  bundleDirectory?: string;
package/package.json CHANGED
@@ -9,6 +9,7 @@
9
9
  "dependencies": {
10
10
  "@absolutejs/auth": ">=0.75.0 <0.77.0",
11
11
  "@absolutejs/beacon": ">=0.7.0-beta.4 <0.8.0",
12
+ "@absolutejs/deploy": "0.25.5",
12
13
  "@absolutejs/devices": "0.7.0",
13
14
  "@absolutejs/devices-capacitor": "0.8.0",
14
15
  "@absolutejs/devices-expo": "0.0.2",
@@ -31,7 +32,7 @@
31
32
  },
32
33
  "description": "A fullstack meta-framework for building web applications with TypeScript",
33
34
  "devDependencies": {
34
- "@absolutejs/deploy": "0.25.5",
35
+ "@absolutejs/blob": "0.5.2",
35
36
  "@absolutejs/dispatch": "0.9.0",
36
37
  "@absolutejs/manifest": "0.9.0",
37
38
  "@absolutejs/scoped-state": "0.2.2",
@@ -518,7 +519,7 @@
518
519
  ]
519
520
  }
520
521
  },
521
- "version": "0.20.0-beta.80",
522
+ "version": "0.20.0-beta.81",
522
523
  "workspaces": [
523
524
  "tests/fixtures/*",
524
525
  "tests/fixtures/_packages/*"