@inquir/compute 0.4.2 → 0.4.4
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.
- package/README.md +2 -1
- package/dist/apps.d.ts +28 -2
- package/dist/apps.d.ts.map +1 -1
- package/dist/apps.js +4 -2
- package/dist/apps.js.map +1 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +2 -8
- package/dist/discovery.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/local-runner.d.ts.map +1 -1
- package/dist/local-runner.js +2 -8
- package/dist/local-runner.js.map +1 -1
- package/dist/system-packages.d.ts +441 -0
- package/dist/system-packages.d.ts.map +1 -0
- package/dist/system-packages.js +179 -0
- package/dist/system-packages.js.map +1 -0
- package/dist/transport.d.ts +26 -1
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +8 -0
- package/dist/transport.js.map +1 -1
- package/dist/tsx-loader.d.ts +9 -0
- package/dist/tsx-loader.d.ts.map +1 -0
- package/dist/tsx-loader.js +26 -0
- package/dist/tsx-loader.js.map +1 -0
- package/dist/types.d.ts +14 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -3
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* System packages (OS packages such as ffmpeg) are declared in inquir.yaml —
|
|
4
|
+
* the one config format for every language — and applied by a deploy:
|
|
5
|
+
*
|
|
6
|
+
* build:
|
|
7
|
+
* system:
|
|
8
|
+
* presets: [ffmpeg]
|
|
9
|
+
* packages: [poppler-utils, chromium]
|
|
10
|
+
* functions:
|
|
11
|
+
* transcode: # per-function override; replaces the default (no merge)
|
|
12
|
+
* build:
|
|
13
|
+
* system:
|
|
14
|
+
* presets: [ffmpeg]
|
|
15
|
+
*
|
|
16
|
+
* This module only reads and validates that schema (INQUIR_YAML_JSON_SCHEMA
|
|
17
|
+
* is what editors use for completion); it is never a second config source.
|
|
18
|
+
* The platform is the authority: GET /functions/system-presets lists its
|
|
19
|
+
* catalog, and the deploy validates the block again.
|
|
20
|
+
*/
|
|
21
|
+
/** Presets of catalog v1 (Debian bookworm). */
|
|
22
|
+
export declare const SYSTEM_PRESET_NAMES: readonly ["ffmpeg", "fonts", "ghostscript", "imagemagick", "libvips", "poppler", "tesseract"];
|
|
23
|
+
export type SystemPresetName = (typeof SYSTEM_PRESET_NAMES)[number];
|
|
24
|
+
/** tesseract `langs` values (tesseract-ocr-<lang> packages in bookworm). */
|
|
25
|
+
export declare const TESSERACT_LANGS: readonly ["ara", "bul", "ces", "chi-sim", "chi-tra", "dan", "deu", "ell", "eng", "est", "fin", "fra", "heb", "hin", "hrv", "hun", "ind", "ita", "jpn", "kat", "kaz", "kor", "lav", "lit", "nld", "nor", "pol", "por", "ron", "rus", "slk", "slv", "spa", "srp", "swe", "tha", "tur", "ukr", "vie"];
|
|
26
|
+
/** Debian package name with an optional apt `=version` pin (the platform applies the same rule). */
|
|
27
|
+
export declare const SYSTEM_PACKAGE_NAME_PATTERN = "^(?!.*\\.\\.)[a-z0-9](?:[a-z0-9+.-]{0,61}[a-z0-9])?(=[A-Za-z0-9.+~:_-]{1,64})?$";
|
|
28
|
+
export type SystemPresetRef = SystemPresetName | {
|
|
29
|
+
name: SystemPresetName;
|
|
30
|
+
langs?: string[];
|
|
31
|
+
};
|
|
32
|
+
/** The `build.system` block of inquir.yaml. */
|
|
33
|
+
export interface FunctionSystemConfig {
|
|
34
|
+
presets?: SystemPresetRef[];
|
|
35
|
+
/** Debian bookworm package names, optionally pinned with apt's `name=version`. */
|
|
36
|
+
packages?: string[];
|
|
37
|
+
}
|
|
38
|
+
/** The free-form package cap the platform applies by default (the Free plan figure). */
|
|
39
|
+
export declare const SYSTEM_MAX_PACKAGES = 10;
|
|
40
|
+
/** At most this many presets per block. */
|
|
41
|
+
export declare const SYSTEM_MAX_PRESETS = 8;
|
|
42
|
+
/** Presets that take options (an object entry); every other preset is a plain name. */
|
|
43
|
+
export declare const SYSTEM_PRESETS_WITH_OPTIONS: readonly ["tesseract"];
|
|
44
|
+
/**
|
|
45
|
+
* Package names a function image refuses (daemons, privilege tools, kernels,
|
|
46
|
+
* package tooling); an optional `=version` pin does not change that. The
|
|
47
|
+
* platform's validator uses the same list (a test keeps them in step).
|
|
48
|
+
*/
|
|
49
|
+
export declare const SYSTEM_PACKAGE_DENYLIST_PATTERN = "^(systemd.*|init|sudo|sudo-ldap|doas|openssh-server|docker.*|containerd.*|podman.*|runc|crun|linux-image-.*|linux-headers-.*|.*-dkms|apt-transport-.*|apt|dpkg|cron|anacron|rsyslog|udev|dbus)(=.*)?$";
|
|
50
|
+
/** zod twin of INQUIR_YAML_JSON_SCHEMA's system block. */
|
|
51
|
+
export declare const functionSystemConfigSchema: z.ZodNullable<z.ZodObject<{
|
|
52
|
+
presets: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEnum<["ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract", ...("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract")[]]>, z.ZodLiteral<"tesseract">, z.ZodObject<{
|
|
53
|
+
name: z.ZodLiteral<"tesseract">;
|
|
54
|
+
langs: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodEnum<["ara", "bul", "ces", "chi-sim", "chi-tra", "dan", "deu", "ell", "eng", "est", "fin", "fra", "heb", "hin", "hrv", "hun", "ind", "ita", "jpn", "kat", "kaz", "kor", "lav", "lit", "nld", "nor", "pol", "por", "ron", "rus", "slk", "slv", "spa", "srp", "swe", "tha", "tur", "ukr", "vie"]>, "many">, ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[], ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[]>>>;
|
|
55
|
+
}, "strict", z.ZodTypeAny, {
|
|
56
|
+
name: "tesseract";
|
|
57
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
name: "tesseract";
|
|
60
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
61
|
+
}>]>, "many">, ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
62
|
+
name: "tesseract";
|
|
63
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
64
|
+
})[], ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
65
|
+
name: "tesseract";
|
|
66
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
67
|
+
})[]>>>;
|
|
68
|
+
packages: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>>>;
|
|
69
|
+
}, "strict", z.ZodTypeAny, {
|
|
70
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
71
|
+
name: "tesseract";
|
|
72
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
73
|
+
})[] | null | undefined;
|
|
74
|
+
packages?: string[] | null | undefined;
|
|
75
|
+
}, {
|
|
76
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
77
|
+
name: "tesseract";
|
|
78
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
79
|
+
})[] | null | undefined;
|
|
80
|
+
packages?: string[] | null | undefined;
|
|
81
|
+
}>>;
|
|
82
|
+
/**
|
|
83
|
+
* `build.dependencies`: language packages, the same key for every runtime
|
|
84
|
+
* (node `name@version`, python a pip requirement such as `name==version`, go
|
|
85
|
+
* `module@version`). Only the shape is checked here; the platform validates
|
|
86
|
+
* each entry by the function's runtime and merges the list into its build
|
|
87
|
+
* workspace's package.json / requirements.txt / go.mod
|
|
88
|
+
* (docs/FUNCTION_BUILD_DEPENDENCIES.md; FUNCTIONS_INQUIR_YAML_DEPENDENCIES).
|
|
89
|
+
*/
|
|
90
|
+
export declare const buildDependenciesSchema: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
91
|
+
/** The parts of an inquir.yaml document the functions read; apps' `version` and `services` are checked by the platform. */
|
|
92
|
+
export declare const inquirYamlFunctionsSchema: z.ZodObject<{
|
|
93
|
+
version: z.ZodOptional<z.ZodUnknown>;
|
|
94
|
+
services: z.ZodOptional<z.ZodUnknown>;
|
|
95
|
+
build: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
96
|
+
system: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
97
|
+
presets: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEnum<["ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract", ...("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract")[]]>, z.ZodLiteral<"tesseract">, z.ZodObject<{
|
|
98
|
+
name: z.ZodLiteral<"tesseract">;
|
|
99
|
+
langs: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodEnum<["ara", "bul", "ces", "chi-sim", "chi-tra", "dan", "deu", "ell", "eng", "est", "fin", "fra", "heb", "hin", "hrv", "hun", "ind", "ita", "jpn", "kat", "kaz", "kor", "lav", "lit", "nld", "nor", "pol", "por", "ron", "rus", "slk", "slv", "spa", "srp", "swe", "tha", "tur", "ukr", "vie"]>, "many">, ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[], ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[]>>>;
|
|
100
|
+
}, "strict", z.ZodTypeAny, {
|
|
101
|
+
name: "tesseract";
|
|
102
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
103
|
+
}, {
|
|
104
|
+
name: "tesseract";
|
|
105
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
106
|
+
}>]>, "many">, ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
107
|
+
name: "tesseract";
|
|
108
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
109
|
+
})[], ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
110
|
+
name: "tesseract";
|
|
111
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
112
|
+
})[]>>>;
|
|
113
|
+
packages: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>>>;
|
|
114
|
+
}, "strict", z.ZodTypeAny, {
|
|
115
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
116
|
+
name: "tesseract";
|
|
117
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
118
|
+
})[] | null | undefined;
|
|
119
|
+
packages?: string[] | null | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
122
|
+
name: "tesseract";
|
|
123
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
124
|
+
})[] | null | undefined;
|
|
125
|
+
packages?: string[] | null | undefined;
|
|
126
|
+
}>>>;
|
|
127
|
+
dependencies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
128
|
+
}, "strict", z.ZodTypeAny, {
|
|
129
|
+
system?: {
|
|
130
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
131
|
+
name: "tesseract";
|
|
132
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
133
|
+
})[] | null | undefined;
|
|
134
|
+
packages?: string[] | null | undefined;
|
|
135
|
+
} | null | undefined;
|
|
136
|
+
dependencies?: string[] | null | undefined;
|
|
137
|
+
}, {
|
|
138
|
+
system?: {
|
|
139
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
140
|
+
name: "tesseract";
|
|
141
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
142
|
+
})[] | null | undefined;
|
|
143
|
+
packages?: string[] | null | undefined;
|
|
144
|
+
} | null | undefined;
|
|
145
|
+
dependencies?: string[] | null | undefined;
|
|
146
|
+
}>>>;
|
|
147
|
+
functions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
|
|
148
|
+
build: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
149
|
+
system: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
150
|
+
presets: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEnum<["ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract", ...("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract")[]]>, z.ZodLiteral<"tesseract">, z.ZodObject<{
|
|
151
|
+
name: z.ZodLiteral<"tesseract">;
|
|
152
|
+
langs: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodEnum<["ara", "bul", "ces", "chi-sim", "chi-tra", "dan", "deu", "ell", "eng", "est", "fin", "fra", "heb", "hin", "hrv", "hun", "ind", "ita", "jpn", "kat", "kaz", "kor", "lav", "lit", "nld", "nor", "pol", "por", "ron", "rus", "slk", "slv", "spa", "srp", "swe", "tha", "tur", "ukr", "vie"]>, "many">, ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[], ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[]>>>;
|
|
153
|
+
}, "strict", z.ZodTypeAny, {
|
|
154
|
+
name: "tesseract";
|
|
155
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
name: "tesseract";
|
|
158
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
159
|
+
}>]>, "many">, ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
160
|
+
name: "tesseract";
|
|
161
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
162
|
+
})[], ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
163
|
+
name: "tesseract";
|
|
164
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
165
|
+
})[]>>>;
|
|
166
|
+
packages: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>>>;
|
|
167
|
+
}, "strict", z.ZodTypeAny, {
|
|
168
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
169
|
+
name: "tesseract";
|
|
170
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
171
|
+
})[] | null | undefined;
|
|
172
|
+
packages?: string[] | null | undefined;
|
|
173
|
+
}, {
|
|
174
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
175
|
+
name: "tesseract";
|
|
176
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
177
|
+
})[] | null | undefined;
|
|
178
|
+
packages?: string[] | null | undefined;
|
|
179
|
+
}>>>;
|
|
180
|
+
dependencies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
181
|
+
}, "strict", z.ZodTypeAny, {
|
|
182
|
+
system?: {
|
|
183
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
184
|
+
name: "tesseract";
|
|
185
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
186
|
+
})[] | null | undefined;
|
|
187
|
+
packages?: string[] | null | undefined;
|
|
188
|
+
} | null | undefined;
|
|
189
|
+
dependencies?: string[] | null | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
system?: {
|
|
192
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
193
|
+
name: "tesseract";
|
|
194
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
195
|
+
})[] | null | undefined;
|
|
196
|
+
packages?: string[] | null | undefined;
|
|
197
|
+
} | null | undefined;
|
|
198
|
+
dependencies?: string[] | null | undefined;
|
|
199
|
+
}>>>;
|
|
200
|
+
}, "strict", z.ZodTypeAny, {
|
|
201
|
+
build?: {
|
|
202
|
+
system?: {
|
|
203
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
204
|
+
name: "tesseract";
|
|
205
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
206
|
+
})[] | null | undefined;
|
|
207
|
+
packages?: string[] | null | undefined;
|
|
208
|
+
} | null | undefined;
|
|
209
|
+
dependencies?: string[] | null | undefined;
|
|
210
|
+
} | null | undefined;
|
|
211
|
+
}, {
|
|
212
|
+
build?: {
|
|
213
|
+
system?: {
|
|
214
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
215
|
+
name: "tesseract";
|
|
216
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
217
|
+
})[] | null | undefined;
|
|
218
|
+
packages?: string[] | null | undefined;
|
|
219
|
+
} | null | undefined;
|
|
220
|
+
dependencies?: string[] | null | undefined;
|
|
221
|
+
} | null | undefined;
|
|
222
|
+
}>>>>>;
|
|
223
|
+
}, "strict", z.ZodTypeAny, {
|
|
224
|
+
version?: unknown;
|
|
225
|
+
services?: unknown;
|
|
226
|
+
build?: {
|
|
227
|
+
system?: {
|
|
228
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
229
|
+
name: "tesseract";
|
|
230
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
231
|
+
})[] | null | undefined;
|
|
232
|
+
packages?: string[] | null | undefined;
|
|
233
|
+
} | null | undefined;
|
|
234
|
+
dependencies?: string[] | null | undefined;
|
|
235
|
+
} | null | undefined;
|
|
236
|
+
functions?: Record<string, {
|
|
237
|
+
build?: {
|
|
238
|
+
system?: {
|
|
239
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
240
|
+
name: "tesseract";
|
|
241
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
242
|
+
})[] | null | undefined;
|
|
243
|
+
packages?: string[] | null | undefined;
|
|
244
|
+
} | null | undefined;
|
|
245
|
+
dependencies?: string[] | null | undefined;
|
|
246
|
+
} | null | undefined;
|
|
247
|
+
} | null> | null | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
version?: unknown;
|
|
250
|
+
services?: unknown;
|
|
251
|
+
build?: {
|
|
252
|
+
system?: {
|
|
253
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
254
|
+
name: "tesseract";
|
|
255
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
256
|
+
})[] | null | undefined;
|
|
257
|
+
packages?: string[] | null | undefined;
|
|
258
|
+
} | null | undefined;
|
|
259
|
+
dependencies?: string[] | null | undefined;
|
|
260
|
+
} | null | undefined;
|
|
261
|
+
functions?: Record<string, {
|
|
262
|
+
build?: {
|
|
263
|
+
system?: {
|
|
264
|
+
presets?: ("ffmpeg" | "fonts" | "ghostscript" | "imagemagick" | "libvips" | "poppler" | "tesseract" | {
|
|
265
|
+
name: "tesseract";
|
|
266
|
+
langs?: ("ara" | "bul" | "ces" | "chi-sim" | "chi-tra" | "dan" | "deu" | "ell" | "eng" | "est" | "fin" | "fra" | "heb" | "hin" | "hrv" | "hun" | "ind" | "ita" | "jpn" | "kat" | "kaz" | "kor" | "lav" | "lit" | "nld" | "nor" | "pol" | "por" | "ron" | "rus" | "slk" | "slv" | "spa" | "srp" | "swe" | "tha" | "tur" | "ukr" | "vie")[] | null | undefined;
|
|
267
|
+
})[] | null | undefined;
|
|
268
|
+
packages?: string[] | null | undefined;
|
|
269
|
+
} | null | undefined;
|
|
270
|
+
dependencies?: string[] | null | undefined;
|
|
271
|
+
} | null | undefined;
|
|
272
|
+
} | null> | null | undefined;
|
|
273
|
+
}>;
|
|
274
|
+
/**
|
|
275
|
+
* The system block one inquir.yaml document declares for `functionName`:
|
|
276
|
+
* functions.<name>.build.system first, then build.system; undefined when it
|
|
277
|
+
* declares neither (null: declared as none). Throws a ZodError on a malformed
|
|
278
|
+
* document. The platform resolves a deploy the same way, the function's own
|
|
279
|
+
* inquir.yaml before the project's.
|
|
280
|
+
*/
|
|
281
|
+
export declare function declaredSystemConfig(document: unknown, functionName: string): FunctionSystemConfig | null | undefined;
|
|
282
|
+
/** The keys inquir.yaml may hold at the top level (apps: version, services; functions: build, functions). */
|
|
283
|
+
export declare const INQUIR_YAML_TOP_LEVEL_KEYS: readonly ["version", "services", "build", "functions"];
|
|
284
|
+
/**
|
|
285
|
+
* JSON Schema (draft-07) of inquir.yaml, for editor completion and
|
|
286
|
+
* validation (`# yaml-language-server: $schema=…`). The repository keeps it
|
|
287
|
+
* as schemas/inquir.yaml.json (a test keeps the two equal, and another runs
|
|
288
|
+
* one fixture set through this schema and the platform validator); apps'
|
|
289
|
+
* `services` is described loosely here, its validator is the platform's.
|
|
290
|
+
* Unknown keys are refused everywhere a typo would silently drop packages.
|
|
291
|
+
*/
|
|
292
|
+
export declare const INQUIR_YAML_JSON_SCHEMA: {
|
|
293
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
294
|
+
readonly $id: "https://inquir.org/schemas/inquir.yaml.json";
|
|
295
|
+
readonly title: "inquir.yaml";
|
|
296
|
+
readonly description: "Inquir Compute configuration: function build settings (system packages) and the application manifest.";
|
|
297
|
+
readonly type: readonly ["object", "null"];
|
|
298
|
+
readonly additionalProperties: false;
|
|
299
|
+
readonly properties: {
|
|
300
|
+
readonly version: {
|
|
301
|
+
readonly const: 1;
|
|
302
|
+
readonly description: "Application manifest version (apps)";
|
|
303
|
+
};
|
|
304
|
+
readonly services: {
|
|
305
|
+
readonly type: "object";
|
|
306
|
+
readonly description: "Application services (apps): services.web.build, runtime, env";
|
|
307
|
+
};
|
|
308
|
+
readonly build: {
|
|
309
|
+
readonly $ref: "#/definitions/build";
|
|
310
|
+
readonly description: "Build settings for every function deployed from this project or directory";
|
|
311
|
+
};
|
|
312
|
+
readonly functions: {
|
|
313
|
+
readonly type: readonly ["object", "null"];
|
|
314
|
+
readonly description: "Per-function settings; a function entry replaces the project default (no merge)";
|
|
315
|
+
readonly additionalProperties: {
|
|
316
|
+
readonly type: readonly ["object", "null"];
|
|
317
|
+
readonly additionalProperties: false;
|
|
318
|
+
readonly properties: {
|
|
319
|
+
readonly build: {
|
|
320
|
+
readonly $ref: "#/definitions/build";
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
readonly definitions: {
|
|
327
|
+
readonly build: {
|
|
328
|
+
readonly type: readonly ["object", "null"];
|
|
329
|
+
readonly additionalProperties: false;
|
|
330
|
+
readonly properties: {
|
|
331
|
+
readonly system: {
|
|
332
|
+
readonly $ref: "#/definitions/system";
|
|
333
|
+
};
|
|
334
|
+
readonly dependencies: {
|
|
335
|
+
readonly type: readonly ["array", "null"];
|
|
336
|
+
readonly maxItems: 200;
|
|
337
|
+
readonly items: {
|
|
338
|
+
readonly type: "string";
|
|
339
|
+
readonly minLength: 1;
|
|
340
|
+
readonly maxLength: 512;
|
|
341
|
+
};
|
|
342
|
+
readonly description: "Language packages, the same list for every runtime: node name@version (npm), python a pip requirement such as name==version, go module@version. Merged into package.json / requirements.txt / go.mod for the build; the same package declared there with another version is an error. Where the platform does not enable it yet, a deploy ignores it with a warning.";
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
readonly system: {
|
|
347
|
+
readonly description: "OS packages installed into the function image (Debian bookworm; Node.js and Python today, Go coming soon). Removing the block removes them on the next deploy.";
|
|
348
|
+
readonly type: readonly ["object", "null"];
|
|
349
|
+
readonly additionalProperties: false;
|
|
350
|
+
readonly properties: {
|
|
351
|
+
readonly presets: {
|
|
352
|
+
readonly type: readonly ["array", "null"];
|
|
353
|
+
readonly maxItems: 8;
|
|
354
|
+
readonly uniqueItems: true;
|
|
355
|
+
readonly items: {
|
|
356
|
+
readonly anyOf: readonly [{
|
|
357
|
+
readonly enum: readonly ["ffmpeg", "fonts", "ghostscript", "imagemagick", "libvips", "poppler", "tesseract"];
|
|
358
|
+
readonly description: "A platform preset (Debian bookworm packages plus env)";
|
|
359
|
+
}, {
|
|
360
|
+
readonly type: "object";
|
|
361
|
+
readonly required: readonly ["name"];
|
|
362
|
+
readonly additionalProperties: false;
|
|
363
|
+
readonly description: "A preset with options (tesseract only)";
|
|
364
|
+
readonly properties: {
|
|
365
|
+
readonly name: {
|
|
366
|
+
readonly enum: readonly ["tesseract"];
|
|
367
|
+
};
|
|
368
|
+
readonly langs: {
|
|
369
|
+
readonly type: readonly ["array", "null"];
|
|
370
|
+
readonly maxItems: 8;
|
|
371
|
+
readonly uniqueItems: true;
|
|
372
|
+
readonly items: {
|
|
373
|
+
readonly enum: readonly ["ara", "bul", "ces", "chi-sim", "chi-tra", "dan", "deu", "ell", "eng", "est", "fin", "fra", "heb", "hin", "hrv", "hun", "ind", "ita", "jpn", "kat", "kaz", "kor", "lav", "lit", "nld", "nor", "pol", "por", "ron", "rus", "slk", "slv", "spa", "srp", "swe", "tha", "tur", "ukr", "vie"];
|
|
374
|
+
};
|
|
375
|
+
readonly description: "Extra OCR languages";
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
}];
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
readonly packages: {
|
|
382
|
+
readonly type: readonly ["array", "null"];
|
|
383
|
+
readonly maxItems: 10;
|
|
384
|
+
readonly uniqueItems: true;
|
|
385
|
+
readonly items: {
|
|
386
|
+
readonly type: "string";
|
|
387
|
+
readonly pattern: "^(?!.*\\.\\.)[a-z0-9](?:[a-z0-9+.-]{0,61}[a-z0-9])?(=[A-Za-z0-9.+~:_-]{1,64})?$";
|
|
388
|
+
readonly not: {
|
|
389
|
+
readonly pattern: "^(systemd.*|init|sudo|sudo-ldap|doas|openssh-server|docker.*|containerd.*|podman.*|runc|crun|linux-image-.*|linux-headers-.*|.*-dkms|apt-transport-.*|apt|dpkg|cron|anacron|rsyslog|udev|dbus)(=.*)?$";
|
|
390
|
+
};
|
|
391
|
+
readonly description: "Debian package, optionally name=version (daemons, privilege tools, kernels and package tooling are refused)";
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
/** GET /functions/:id/system-image (read-only). */
|
|
399
|
+
export interface FunctionSystemImageStatus {
|
|
400
|
+
mode: 'off' | 'report' | 'on';
|
|
401
|
+
system: (FunctionSystemConfig & {
|
|
402
|
+
source?: string;
|
|
403
|
+
}) | null;
|
|
404
|
+
source?: string | null;
|
|
405
|
+
serving: 'base' | 'derived' | 'pending';
|
|
406
|
+
runtimeKey?: string | null;
|
|
407
|
+
baseImage?: string | null;
|
|
408
|
+
distro?: string;
|
|
409
|
+
aptEpoch?: string;
|
|
410
|
+
key: string | null;
|
|
411
|
+
status: 'none' | 'not_built' | 'queued' | 'building' | 'ready' | 'failed' | 'retired';
|
|
412
|
+
imageRef: string | null;
|
|
413
|
+
deltaBytes?: number | null;
|
|
414
|
+
totalBytes?: number | null;
|
|
415
|
+
shared?: boolean;
|
|
416
|
+
lock?: string[] | null;
|
|
417
|
+
error?: string | null;
|
|
418
|
+
log?: string | null;
|
|
419
|
+
attempts?: number;
|
|
420
|
+
finishedAt?: string | null;
|
|
421
|
+
fallbackImage?: string | null;
|
|
422
|
+
packages?: string[];
|
|
423
|
+
env?: Record<string, string>;
|
|
424
|
+
}
|
|
425
|
+
/** GET /functions/system-presets */
|
|
426
|
+
export interface SystemPresetCatalog {
|
|
427
|
+
mode: 'off' | 'report' | 'on';
|
|
428
|
+
distro: string;
|
|
429
|
+
maxPackages: number;
|
|
430
|
+
presets: Array<{
|
|
431
|
+
name: string;
|
|
432
|
+
version: number;
|
|
433
|
+
title: string;
|
|
434
|
+
description: string;
|
|
435
|
+
options?: {
|
|
436
|
+
langs: string[];
|
|
437
|
+
};
|
|
438
|
+
minMemoryMb?: number;
|
|
439
|
+
}>;
|
|
440
|
+
}
|
|
441
|
+
//# sourceMappingURL=system-packages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-packages.d.ts","sourceRoot":"","sources":["../src/system-packages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;GAkBG;AAEH,+CAA+C;AAC/C,eAAO,MAAM,mBAAmB,+FAEtB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,4EAA4E;AAC5E,eAAO,MAAM,eAAe,oSAIlB,CAAC;AAEX,oGAAoG;AACpG,eAAO,MAAM,2BAA2B,oFAAoF,CAAC;AAE7H,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG;IA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