@luvabase/sdk 0.0.1 → 0.0.3

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.
@@ -0,0 +1,74 @@
1
+ import { z } from "zod"
2
+
3
+ export type AppManifest = z.infer<typeof AppManifest>
4
+ export const AppManifest = z.lazy(() =>
5
+ z.object({
6
+ identifier: z
7
+ .string()
8
+ .regex(/^[a-z0-9-]+$/)
9
+ .min(3)
10
+ .max(50)
11
+ .optional()
12
+ .describe(
13
+ "Globally unique url safe and lowercased identifier for the app e.g. 'luvabase-snake' (required for Luvabase submissions)",
14
+ ),
15
+ name: z
16
+ .string()
17
+ .min(3)
18
+ .max(30)
19
+ .describe("Name of the app e.g. 'Snake' (max 30 characters)"),
20
+ subtitle: z
21
+ .string()
22
+ .min(3)
23
+ .max(50)
24
+ .optional()
25
+ .describe(
26
+ "Subtitle of the app e.g. 'Play the classic of classics' (max 50 characters)",
27
+ ),
28
+ description: z
29
+ .string()
30
+ .max(10000)
31
+ .optional()
32
+ .describe("Full description of the app"),
33
+ screenshots: z
34
+ .array(z.string())
35
+ .optional()
36
+ .describe(
37
+ "Relative paths of app screenshots e.g. ['images/screenshot1.png', 'images/screenshot2.png']",
38
+ ),
39
+ category: z
40
+ .string()
41
+ .optional()
42
+ .describe(
43
+ "Could be 'productivity', 'health', etc (must be one of the standard categories listed here https://github.com/w3c/manifest/wiki/Categories)",
44
+ ),
45
+ icon: z
46
+ .string()
47
+ .optional()
48
+ .describe(
49
+ "Relative path of the app icon inside the .luva app file e.g. 'images/icon.png'",
50
+ ),
51
+ repository: z
52
+ .string()
53
+ .optional()
54
+ .describe(
55
+ "URL of the source code repository e.g. 'https://github.com/luvabase/snake'",
56
+ ),
57
+ services: z
58
+ .array(
59
+ z.object({
60
+ type: z.enum(["turso"]),
61
+ name: z.string(),
62
+ }),
63
+ )
64
+ .optional(),
65
+ relatedApps: z.array(RelatedApp).optional(),
66
+ }),
67
+ )
68
+
69
+ export const RelatedApp = z.object({
70
+ type: z.enum(["android", "ios"]),
71
+ identifier: z.string(), // android package name or ios bundle id
72
+ downloadLink: z.string().optional(),
73
+ redirectUrls: z.array(z.string()),
74
+ })
package/dist/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- //#region src/index.d.ts
2
- declare function hello(): string;
3
- //#endregion
4
- export { hello };
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";iBAAgB,KAAA,CAAA"}
package/dist/index.js DELETED
@@ -1,8 +0,0 @@
1
- //#region src/index.ts
2
- function hello() {
3
- return "Hello!";
4
- }
5
-
6
- //#endregion
7
- export { hello };
8
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export function hello() {\n return \"Hello!\"\n}\n"],"mappings":";AAAA,SAAgB,QAAQ;AACtB,QAAO"}