@lapis-notes/api 0.1.4 → 0.2.1
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/CHANGELOG.md +206 -0
- package/README.md +21 -2
- package/dist/__tests__/fixtures/indexed-mutations.json +6862 -0
- package/dist/__tests__/fixtures/memory-storage.json +309 -0
- package/dist/__tests__/fixtures/native-facade-contract.json +3224 -0
- package/dist/__tests__/fixtures/projection-query.json +195 -0
- package/dist/__tests__/fixtures/projection-values.json +60 -0
- package/dist/__tests__/fixtures/search-preparation.json +1513 -0
- package/dist/__tests__/fixtures/search-retrieval.json +15409 -0
- package/dist/__tests__/fixtures/search-semantic-model.json +3691 -0
- package/dist/__tests__/fixtures/search-semantic-retrieval.json +6603 -0
- package/dist/__tests__/fixtures/search-storage.json +409 -0
- package/dist/__tests__/fixtures/task-projection.json +428 -0
- package/dist/__tests__/indexed-mutation-support.js +262 -0
- package/dist/__tests__/projection-query-support.js +40 -0
- package/dist/__tests__/search-retrieval-support.js +47 -0
- package/dist/app-database-host.d.ts +1 -0
- package/dist/app-shell-plugin-persistence.d.ts +3 -2
- package/dist/app-shell-plugin-persistence.js +37 -3
- package/dist/cache.svelte.d.ts +8 -1
- package/dist/cache.svelte.js +103 -5
- package/dist/command.svelte.js +29 -2
- package/dist/components/editor/editor.css +4 -0
- package/dist/components/editor/editor.svelte +21 -9
- package/dist/components/editor/embedded-editor-surface.js +3 -1
- package/dist/components/editor/inline-title-alignment.d.ts +3 -0
- package/dist/components/editor/inline-title-alignment.js +57 -0
- package/dist/configuration.svelte.d.ts +270 -206
- package/dist/configuration.svelte.js +161 -86
- package/dist/context.svelte.d.ts +21 -3
- package/dist/context.svelte.js +63 -20
- package/dist/diagnostics.d.ts +8 -0
- package/dist/diagnostics.js +6 -0
- package/dist/editor-save-context.d.ts +12 -1
- package/dist/editor-save-context.js +32 -1
- package/dist/editor-view-registry.d.ts +10 -0
- package/dist/editor-view-registry.js +44 -4
- package/dist/editor.svelte.js +128 -37
- package/dist/embed-registry.d.ts +10 -0
- package/dist/embed-registry.js +15 -0
- package/dist/file-editing-failures.d.ts +2 -0
- package/dist/file-editing-failures.js +29 -0
- package/dist/file-editing-native-issues.d.ts +19 -0
- package/dist/file-editing-native-issues.js +65 -0
- package/dist/file-editing-sessions.d.ts +56 -8
- package/dist/file-editing-sessions.js +185 -15
- package/dist/file-manager.d.ts +8 -1
- package/dist/file-manager.js +37 -3
- package/dist/file-state-store.d.ts +5 -0
- package/dist/file-state-store.js +34 -0
- package/dist/file-text-conflicts.d.ts +25 -0
- package/dist/file-text-conflicts.js +35 -0
- package/dist/file-text-mutation.d.ts +13 -0
- package/dist/file-text-mutation.js +100 -0
- package/dist/file-text-persistence.d.ts +36 -0
- package/dist/file-text-persistence.js +234 -0
- package/dist/file-text-state-writer.d.ts +34 -0
- package/dist/file-text-state-writer.js +183 -0
- package/dist/files-configuration.d.ts +20 -0
- package/dist/files-configuration.js +47 -0
- package/dist/generated/plugin-host-modules.schema.generated.d.ts +87 -37
- package/dist/generated/plugin-host-modules.schema.generated.js +102 -37
- package/dist/glob.d.ts +3 -0
- package/dist/glob.js +2 -1
- package/dist/icons/changes.d.ts +3 -0
- package/dist/icons/changes.js +16 -0
- package/dist/icons/index.d.ts +5 -1
- package/dist/icons/index.js +44 -3
- package/dist/icons/registry.d.ts +35 -0
- package/dist/icons/registry.js +154 -0
- package/dist/icons/safe-svg.d.ts +2 -0
- package/dist/icons/safe-svg.js +44 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +3 -1
- package/dist/lapis-extension.d.ts +6 -2
- package/dist/lapis-extension.js +2 -0
- package/dist/metadata.svelte.js +45 -2
- package/dist/native-background-indexing.d.ts +48 -0
- package/dist/native-background-indexing.js +208 -0
- package/dist/native-database-protocol.d.ts +29 -0
- package/dist/native-database-protocol.js +1 -0
- package/dist/native-editing-intent-lease.d.ts +17 -0
- package/dist/native-editing-intent-lease.js +188 -0
- package/dist/native-editing-intents-protocol.d.ts +70 -0
- package/dist/native-editing-intents-protocol.js +1 -0
- package/dist/native-editing-intents.d.ts +8 -0
- package/dist/native-editing-intents.js +1 -0
- package/dist/native-editing-problems.d.ts +3 -0
- package/dist/native-editing-problems.js +180 -0
- package/dist/native-editing-recovery.d.ts +24 -0
- package/dist/native-editing-recovery.js +198 -0
- package/dist/native-editing-session.d.ts +51 -0
- package/dist/native-editing-session.js +251 -0
- package/dist/native-history-index-protocol.d.ts +80 -0
- package/dist/native-history-index-protocol.js +1 -0
- package/dist/native-history-index.d.ts +6 -0
- package/dist/native-history-index.js +1 -0
- package/dist/native-indexing-protocol.d.ts +63 -0
- package/dist/native-indexing-protocol.js +1 -0
- package/dist/native-participant-protocol.d.ts +67 -0
- package/dist/native-participant-protocol.js +3 -0
- package/dist/native-queue-protocol.d.ts +73 -0
- package/dist/native-queue-protocol.js +3 -0
- package/dist/native-tasks-protocol.d.ts +264 -0
- package/dist/native-tasks-protocol.js +1 -0
- package/dist/native-tasks.d.ts +35 -0
- package/dist/native-tasks.js +79 -0
- package/dist/native-turn-protocol.d.ts +81 -0
- package/dist/native-turn-protocol.js +1 -0
- package/dist/native-turns.d.ts +29 -0
- package/dist/native-turns.js +2 -0
- package/dist/plugin-asset-server.js +3 -2
- package/dist/plugin-dependency-resolver.d.ts +1 -1
- package/dist/plugin-distribution/compatibility.d.ts +1 -1
- package/dist/plugin-distribution/compatibility.js +10 -5
- package/dist/plugin-distribution/installed-plugin-state.js +2 -1
- package/dist/plugin-distribution/installer.d.ts +6 -0
- package/dist/plugin-distribution/installer.js +90 -37
- package/dist/plugin-distribution/manager.d.ts +4 -1
- package/dist/plugin-distribution/manager.js +12 -5
- package/dist/plugin-distribution/registry-cache.js +2 -1
- package/dist/plugin-distribution/registry-source-state.js +2 -1
- package/dist/plugin-distribution/schemas.d.ts +26 -8
- package/dist/plugin-distribution/schemas.js +2 -1
- package/dist/plugin-distribution/types.d.ts +4 -0
- package/dist/plugin-manager.d.ts +20 -4
- package/dist/plugin-manager.js +228 -64
- package/dist/plugin-runtime-entry.d.ts +1 -1
- package/dist/plugin-runtime-entry.js +16 -0
- package/dist/plugin.d.ts +18 -2
- package/dist/plugin.js +93 -39
- package/dist/registry-schema/catalog-v1.d.ts +60 -9
- package/dist/registry-schema/catalog-v1.js +2 -1
- package/dist/registry-schema/catalog-v2.d.ts +60 -9
- package/dist/registry-schema/catalog-v2.js +1 -1
- package/dist/search-result-provider.d.ts +95 -0
- package/dist/search-result-provider.js +42 -0
- package/dist/status-bar.svelte.d.ts +26 -20
- package/dist/status-bar.svelte.js +1 -0
- package/dist/storage/app-database.d.ts +6 -2
- package/dist/storage/app-database.js +41 -34
- package/dist/storage/desktop-native.d.ts +5 -3
- package/dist/storage/desktop-native.js +59 -6
- package/dist/storage/directory-watcher.d.ts +27 -0
- package/dist/storage/directory-watcher.js +201 -0
- package/dist/storage/fs.d.ts +14 -27
- package/dist/storage/fs.js +2 -168
- package/dist/storage/index-projection.js +33 -15
- package/dist/storage/memory-vault-adapter.d.ts +2 -0
- package/dist/storage/memory-vault-adapter.js +14 -1
- package/dist/storage/path.d.ts +6 -2
- package/dist/storage/path.js +8 -2
- package/dist/storage/projection-query-candidates.d.ts +3 -0
- package/dist/storage/projection-query-candidates.js +69 -0
- package/dist/storage/remote-app-database.d.ts +2 -2
- package/dist/storage/remote-app-database.js +1 -1
- package/dist/storage/runtime.d.ts +3 -0
- package/dist/storage/runtime.js +3 -0
- package/dist/storage/search-embedding-record.d.ts +3 -0
- package/dist/storage/search-embedding-record.js +18 -0
- package/dist/storage/turso-app-database.d.ts +2 -0
- package/dist/storage/turso-app-database.js +67 -30
- package/dist/storage/vault-listing.d.ts +3 -0
- package/dist/storage/vault-listing.js +36 -0
- package/dist/storage/vault-reconciliation.d.ts +19 -0
- package/dist/storage/vault-reconciliation.js +137 -0
- package/dist/storage/vault-session.d.ts +8 -0
- package/dist/storage/vault-session.js +10 -2
- package/dist/storage/vault.svelte.d.ts +53 -4
- package/dist/storage/vault.svelte.js +223 -87
- package/dist/sync-host.d.ts +12 -3
- package/dist/sync-host.js +5 -1
- package/dist/vault-change-views.d.ts +4 -0
- package/dist/vault-change-views.js +43 -0
- package/dist/vault-changes.d.ts +37 -0
- package/dist/vault-changes.js +228 -0
- package/dist/view.svelte.d.ts +182 -149
- package/dist/view.svelte.js +11 -2
- package/dist/workspace-close-guard.d.ts +3 -0
- package/dist/workspace-close-guard.js +35 -0
- package/dist/workspace-host-internal.js +10 -2
- package/dist/workspace-layout-normalizer.d.ts +4 -2
- package/dist/workspace-layout-normalizer.js +5 -5
- package/dist/workspace-view-document.d.ts +3 -0
- package/dist/workspace-view-document.js +12 -0
- package/dist/workspace.svelte.d.ts +13 -2
- package/dist/workspace.svelte.js +371 -82
- package/package.json +45 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
2
|
export declare const registryCatalogStatusSchema: z.ZodEnum<["active", "pending", "deprecated", "disabled", "revoked"]>;
|
|
3
3
|
export declare const registryImageReferenceSchema: z.ZodObject<{
|
|
4
4
|
url: z.ZodString;
|
|
@@ -1302,42 +1302,51 @@ export declare const registryCatalogEntrySchema: z.ZodObject<{
|
|
|
1302
1302
|
contributes: z.ZodOptional<z.ZodObject<{
|
|
1303
1303
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1304
1304
|
id: z.ZodString;
|
|
1305
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1305
1306
|
label: z.ZodOptional<z.ZodString>;
|
|
1306
1307
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1307
1308
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1308
1309
|
id: z.ZodString;
|
|
1310
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1309
1311
|
label: z.ZodOptional<z.ZodString>;
|
|
1310
1312
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1311
1313
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1312
1314
|
id: z.ZodString;
|
|
1315
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1313
1316
|
label: z.ZodOptional<z.ZodString>;
|
|
1314
1317
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1315
1318
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1316
1319
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1317
1320
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1318
1321
|
id: z.ZodString;
|
|
1322
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1319
1323
|
label: z.ZodOptional<z.ZodString>;
|
|
1320
1324
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1321
1325
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1322
1326
|
id: z.ZodString;
|
|
1327
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1323
1328
|
label: z.ZodOptional<z.ZodString>;
|
|
1324
1329
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1325
1330
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1326
1331
|
id: z.ZodString;
|
|
1332
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1327
1333
|
label: z.ZodOptional<z.ZodString>;
|
|
1328
1334
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1329
1335
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1330
1336
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1331
1337
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1332
1338
|
id: z.ZodString;
|
|
1339
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1333
1340
|
label: z.ZodOptional<z.ZodString>;
|
|
1334
1341
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1335
1342
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1336
1343
|
id: z.ZodString;
|
|
1344
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1337
1345
|
label: z.ZodOptional<z.ZodString>;
|
|
1338
1346
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1339
1347
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1340
1348
|
id: z.ZodString;
|
|
1349
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1341
1350
|
label: z.ZodOptional<z.ZodString>;
|
|
1342
1351
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1343
1352
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
@@ -1346,12 +1355,12 @@ export declare const registryCatalogEntrySchema: z.ZodObject<{
|
|
|
1346
1355
|
description: string;
|
|
1347
1356
|
name: string;
|
|
1348
1357
|
status: "active" | "pending" | "disabled" | "deprecated" | "revoked";
|
|
1358
|
+
id: string;
|
|
1349
1359
|
owner: {
|
|
1350
1360
|
name: string;
|
|
1351
1361
|
verified: boolean;
|
|
1352
1362
|
url?: string | undefined;
|
|
1353
1363
|
};
|
|
1354
|
-
id: string;
|
|
1355
1364
|
author: string;
|
|
1356
1365
|
badges: string[];
|
|
1357
1366
|
minAppVersion: string;
|
|
@@ -1407,14 +1416,17 @@ export declare const registryCatalogEntrySchema: z.ZodObject<{
|
|
|
1407
1416
|
contributes?: z.objectOutputType<{
|
|
1408
1417
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1409
1418
|
id: z.ZodString;
|
|
1419
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1410
1420
|
label: z.ZodOptional<z.ZodString>;
|
|
1411
1421
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1412
1422
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1413
1423
|
id: z.ZodString;
|
|
1424
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1414
1425
|
label: z.ZodOptional<z.ZodString>;
|
|
1415
1426
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1416
1427
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1417
1428
|
id: z.ZodString;
|
|
1429
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1418
1430
|
label: z.ZodOptional<z.ZodString>;
|
|
1419
1431
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1420
1432
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
@@ -1429,12 +1441,12 @@ export declare const registryCatalogEntrySchema: z.ZodObject<{
|
|
|
1429
1441
|
description: string;
|
|
1430
1442
|
name: string;
|
|
1431
1443
|
status: "active" | "pending" | "disabled" | "deprecated" | "revoked";
|
|
1444
|
+
id: string;
|
|
1432
1445
|
owner: {
|
|
1433
1446
|
name: string;
|
|
1434
1447
|
verified: boolean;
|
|
1435
1448
|
url?: string | undefined;
|
|
1436
1449
|
};
|
|
1437
|
-
id: string;
|
|
1438
1450
|
author: string;
|
|
1439
1451
|
minAppVersion: string;
|
|
1440
1452
|
platforms: string[];
|
|
@@ -1490,14 +1502,17 @@ export declare const registryCatalogEntrySchema: z.ZodObject<{
|
|
|
1490
1502
|
contributes?: z.objectInputType<{
|
|
1491
1503
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1492
1504
|
id: z.ZodString;
|
|
1505
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1493
1506
|
label: z.ZodOptional<z.ZodString>;
|
|
1494
1507
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1495
1508
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1496
1509
|
id: z.ZodString;
|
|
1510
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1497
1511
|
label: z.ZodOptional<z.ZodString>;
|
|
1498
1512
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1499
1513
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1500
1514
|
id: z.ZodString;
|
|
1515
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1501
1516
|
label: z.ZodOptional<z.ZodString>;
|
|
1502
1517
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1503
1518
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
@@ -1862,42 +1877,51 @@ export declare const registryCatalogIndexSchema: z.ZodObject<{
|
|
|
1862
1877
|
contributes: z.ZodOptional<z.ZodObject<{
|
|
1863
1878
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1864
1879
|
id: z.ZodString;
|
|
1880
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1865
1881
|
label: z.ZodOptional<z.ZodString>;
|
|
1866
1882
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1867
1883
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1868
1884
|
id: z.ZodString;
|
|
1885
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1869
1886
|
label: z.ZodOptional<z.ZodString>;
|
|
1870
1887
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1871
1888
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1872
1889
|
id: z.ZodString;
|
|
1890
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1873
1891
|
label: z.ZodOptional<z.ZodString>;
|
|
1874
1892
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1875
1893
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1876
1894
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1877
1895
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1878
1896
|
id: z.ZodString;
|
|
1897
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1879
1898
|
label: z.ZodOptional<z.ZodString>;
|
|
1880
1899
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1881
1900
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1882
1901
|
id: z.ZodString;
|
|
1902
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1883
1903
|
label: z.ZodOptional<z.ZodString>;
|
|
1884
1904
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1885
1905
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1886
1906
|
id: z.ZodString;
|
|
1907
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1887
1908
|
label: z.ZodOptional<z.ZodString>;
|
|
1888
1909
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1889
1910
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1890
1911
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1891
1912
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1892
1913
|
id: z.ZodString;
|
|
1914
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1893
1915
|
label: z.ZodOptional<z.ZodString>;
|
|
1894
1916
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1895
1917
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1896
1918
|
id: z.ZodString;
|
|
1919
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1897
1920
|
label: z.ZodOptional<z.ZodString>;
|
|
1898
1921
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1899
1922
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1900
1923
|
id: z.ZodString;
|
|
1924
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1901
1925
|
label: z.ZodOptional<z.ZodString>;
|
|
1902
1926
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1903
1927
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
@@ -1906,12 +1930,12 @@ export declare const registryCatalogIndexSchema: z.ZodObject<{
|
|
|
1906
1930
|
description: string;
|
|
1907
1931
|
name: string;
|
|
1908
1932
|
status: "active" | "pending" | "disabled" | "deprecated" | "revoked";
|
|
1933
|
+
id: string;
|
|
1909
1934
|
owner: {
|
|
1910
1935
|
name: string;
|
|
1911
1936
|
verified: boolean;
|
|
1912
1937
|
url?: string | undefined;
|
|
1913
1938
|
};
|
|
1914
|
-
id: string;
|
|
1915
1939
|
author: string;
|
|
1916
1940
|
badges: string[];
|
|
1917
1941
|
minAppVersion: string;
|
|
@@ -1967,14 +1991,17 @@ export declare const registryCatalogIndexSchema: z.ZodObject<{
|
|
|
1967
1991
|
contributes?: z.objectOutputType<{
|
|
1968
1992
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1969
1993
|
id: z.ZodString;
|
|
1994
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1970
1995
|
label: z.ZodOptional<z.ZodString>;
|
|
1971
1996
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1972
1997
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1973
1998
|
id: z.ZodString;
|
|
1999
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1974
2000
|
label: z.ZodOptional<z.ZodString>;
|
|
1975
2001
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1976
2002
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1977
2003
|
id: z.ZodString;
|
|
2004
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
1978
2005
|
label: z.ZodOptional<z.ZodString>;
|
|
1979
2006
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1980
2007
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
@@ -1989,12 +2016,12 @@ export declare const registryCatalogIndexSchema: z.ZodObject<{
|
|
|
1989
2016
|
description: string;
|
|
1990
2017
|
name: string;
|
|
1991
2018
|
status: "active" | "pending" | "disabled" | "deprecated" | "revoked";
|
|
2019
|
+
id: string;
|
|
1992
2020
|
owner: {
|
|
1993
2021
|
name: string;
|
|
1994
2022
|
verified: boolean;
|
|
1995
2023
|
url?: string | undefined;
|
|
1996
2024
|
};
|
|
1997
|
-
id: string;
|
|
1998
2025
|
author: string;
|
|
1999
2026
|
minAppVersion: string;
|
|
2000
2027
|
platforms: string[];
|
|
@@ -2050,14 +2077,17 @@ export declare const registryCatalogIndexSchema: z.ZodObject<{
|
|
|
2050
2077
|
contributes?: z.objectInputType<{
|
|
2051
2078
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2052
2079
|
id: z.ZodString;
|
|
2080
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
2053
2081
|
label: z.ZodOptional<z.ZodString>;
|
|
2054
2082
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2055
2083
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2056
2084
|
id: z.ZodString;
|
|
2085
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
2057
2086
|
label: z.ZodOptional<z.ZodString>;
|
|
2058
2087
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2059
2088
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2060
2089
|
id: z.ZodString;
|
|
2090
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
2061
2091
|
label: z.ZodOptional<z.ZodString>;
|
|
2062
2092
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2063
2093
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
@@ -2076,12 +2106,12 @@ export declare const registryCatalogIndexSchema: z.ZodObject<{
|
|
|
2076
2106
|
description: string;
|
|
2077
2107
|
name: string;
|
|
2078
2108
|
status: "active" | "pending" | "disabled" | "deprecated" | "revoked";
|
|
2109
|
+
id: string;
|
|
2079
2110
|
owner: {
|
|
2080
2111
|
name: string;
|
|
2081
2112
|
verified: boolean;
|
|
2082
2113
|
url?: string | undefined;
|
|
2083
2114
|
};
|
|
2084
|
-
id: string;
|
|
2085
2115
|
author: string;
|
|
2086
2116
|
badges: string[];
|
|
2087
2117
|
minAppVersion: string;
|
|
@@ -2137,14 +2167,17 @@ export declare const registryCatalogIndexSchema: z.ZodObject<{
|
|
|
2137
2167
|
contributes?: z.objectOutputType<{
|
|
2138
2168
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2139
2169
|
id: z.ZodString;
|
|
2170
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
2140
2171
|
label: z.ZodOptional<z.ZodString>;
|
|
2141
2172
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2142
2173
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2143
2174
|
id: z.ZodString;
|
|
2175
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
2144
2176
|
label: z.ZodOptional<z.ZodString>;
|
|
2145
2177
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2146
2178
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2147
2179
|
id: z.ZodString;
|
|
2180
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
2148
2181
|
label: z.ZodOptional<z.ZodString>;
|
|
2149
2182
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2150
2183
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
@@ -2163,12 +2196,12 @@ export declare const registryCatalogIndexSchema: z.ZodObject<{
|
|
|
2163
2196
|
description: string;
|
|
2164
2197
|
name: string;
|
|
2165
2198
|
status: "active" | "pending" | "disabled" | "deprecated" | "revoked";
|
|
2199
|
+
id: string;
|
|
2166
2200
|
owner: {
|
|
2167
2201
|
name: string;
|
|
2168
2202
|
verified: boolean;
|
|
2169
2203
|
url?: string | undefined;
|
|
2170
2204
|
};
|
|
2171
|
-
id: string;
|
|
2172
2205
|
author: string;
|
|
2173
2206
|
minAppVersion: string;
|
|
2174
2207
|
platforms: string[];
|
|
@@ -2224,14 +2257,17 @@ export declare const registryCatalogIndexSchema: z.ZodObject<{
|
|
|
2224
2257
|
contributes?: z.objectInputType<{
|
|
2225
2258
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2226
2259
|
id: z.ZodString;
|
|
2260
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
2227
2261
|
label: z.ZodOptional<z.ZodString>;
|
|
2228
2262
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2229
2263
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2230
2264
|
id: z.ZodString;
|
|
2265
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
2231
2266
|
label: z.ZodOptional<z.ZodString>;
|
|
2232
2267
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2233
2268
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2234
2269
|
id: z.ZodString;
|
|
2270
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
2235
2271
|
label: z.ZodOptional<z.ZodString>;
|
|
2236
2272
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2237
2273
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
@@ -3545,42 +3581,51 @@ export declare const registryCatalogDetailSchema: z.ZodObject<{
|
|
|
3545
3581
|
contributes: z.ZodOptional<z.ZodObject<{
|
|
3546
3582
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3547
3583
|
id: z.ZodString;
|
|
3584
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
3548
3585
|
label: z.ZodOptional<z.ZodString>;
|
|
3549
3586
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3550
3587
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3551
3588
|
id: z.ZodString;
|
|
3589
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
3552
3590
|
label: z.ZodOptional<z.ZodString>;
|
|
3553
3591
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3554
3592
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3555
3593
|
id: z.ZodString;
|
|
3594
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
3556
3595
|
label: z.ZodOptional<z.ZodString>;
|
|
3557
3596
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3558
3597
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3559
3598
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3560
3599
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3561
3600
|
id: z.ZodString;
|
|
3601
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
3562
3602
|
label: z.ZodOptional<z.ZodString>;
|
|
3563
3603
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3564
3604
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3565
3605
|
id: z.ZodString;
|
|
3606
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
3566
3607
|
label: z.ZodOptional<z.ZodString>;
|
|
3567
3608
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3568
3609
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3569
3610
|
id: z.ZodString;
|
|
3611
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
3570
3612
|
label: z.ZodOptional<z.ZodString>;
|
|
3571
3613
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3572
3614
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3573
3615
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3574
3616
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3575
3617
|
id: z.ZodString;
|
|
3618
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
3576
3619
|
label: z.ZodOptional<z.ZodString>;
|
|
3577
3620
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3578
3621
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3579
3622
|
id: z.ZodString;
|
|
3623
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
3580
3624
|
label: z.ZodOptional<z.ZodString>;
|
|
3581
3625
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3582
3626
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3583
3627
|
id: z.ZodString;
|
|
3628
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
3584
3629
|
label: z.ZodOptional<z.ZodString>;
|
|
3585
3630
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3586
3631
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
@@ -3673,6 +3718,7 @@ export declare const registryCatalogDetailSchema: z.ZodObject<{
|
|
|
3673
3718
|
description: string;
|
|
3674
3719
|
name: string;
|
|
3675
3720
|
status: "active" | "pending" | "disabled" | "deprecated" | "revoked";
|
|
3721
|
+
id: string;
|
|
3676
3722
|
versions: Record<string, {
|
|
3677
3723
|
version: string;
|
|
3678
3724
|
bundle: {
|
|
@@ -3700,7 +3746,6 @@ export declare const registryCatalogDetailSchema: z.ZodObject<{
|
|
|
3700
3746
|
verified: boolean;
|
|
3701
3747
|
url?: string | undefined;
|
|
3702
3748
|
};
|
|
3703
|
-
id: string;
|
|
3704
3749
|
schemaVersion: 1;
|
|
3705
3750
|
author: string;
|
|
3706
3751
|
channel: "community" | "official";
|
|
@@ -3884,14 +3929,17 @@ export declare const registryCatalogDetailSchema: z.ZodObject<{
|
|
|
3884
3929
|
contributes?: z.objectOutputType<{
|
|
3885
3930
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3886
3931
|
id: z.ZodString;
|
|
3932
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
3887
3933
|
label: z.ZodOptional<z.ZodString>;
|
|
3888
3934
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3889
3935
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3890
3936
|
id: z.ZodString;
|
|
3937
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
3891
3938
|
label: z.ZodOptional<z.ZodString>;
|
|
3892
3939
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3893
3940
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3894
3941
|
id: z.ZodString;
|
|
3942
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
3895
3943
|
label: z.ZodOptional<z.ZodString>;
|
|
3896
3944
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3897
3945
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
@@ -3903,6 +3951,7 @@ export declare const registryCatalogDetailSchema: z.ZodObject<{
|
|
|
3903
3951
|
description: string;
|
|
3904
3952
|
name: string;
|
|
3905
3953
|
status: "active" | "pending" | "disabled" | "deprecated" | "revoked";
|
|
3954
|
+
id: string;
|
|
3906
3955
|
versions: Record<string, {
|
|
3907
3956
|
version: string;
|
|
3908
3957
|
bundle: {
|
|
@@ -3930,7 +3979,6 @@ export declare const registryCatalogDetailSchema: z.ZodObject<{
|
|
|
3930
3979
|
verified: boolean;
|
|
3931
3980
|
url?: string | undefined;
|
|
3932
3981
|
};
|
|
3933
|
-
id: string;
|
|
3934
3982
|
schemaVersion: 1;
|
|
3935
3983
|
author: string;
|
|
3936
3984
|
channel: "community" | "official";
|
|
@@ -4114,14 +4162,17 @@ export declare const registryCatalogDetailSchema: z.ZodObject<{
|
|
|
4114
4162
|
contributes?: z.objectInputType<{
|
|
4115
4163
|
editorViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4116
4164
|
id: z.ZodString;
|
|
4165
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
4117
4166
|
label: z.ZodOptional<z.ZodString>;
|
|
4118
4167
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4119
4168
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4120
4169
|
id: z.ZodString;
|
|
4170
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
4121
4171
|
label: z.ZodOptional<z.ZodString>;
|
|
4122
4172
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4123
4173
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4124
4174
|
id: z.ZodString;
|
|
4175
|
+
fileIcon: z.ZodOptional<z.ZodString>;
|
|
4125
4176
|
label: z.ZodOptional<z.ZodString>;
|
|
4126
4177
|
filenamePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4127
4178
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
2
|
const nonEmptyString = z.string().min(1);
|
|
3
3
|
const sha256 = z.string().regex(/^[0-9a-f]{64}$/u);
|
|
4
4
|
export const registryCatalogStatusSchema = z.enum([
|
|
@@ -99,6 +99,7 @@ const registryContributionsSchema = z
|
|
|
99
99
|
.array(z
|
|
100
100
|
.object({
|
|
101
101
|
id: nonEmptyString,
|
|
102
|
+
fileIcon: z.string().optional(),
|
|
102
103
|
label: nonEmptyString.optional(),
|
|
103
104
|
filenamePatterns: z.array(nonEmptyString).optional(),
|
|
104
105
|
})
|