@striae-org/striae 5.2.0 → 5.3.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.
- package/.env.example +36 -33
- package/README.md +5 -46
- package/app/components/actions/case-export/core-export.ts +2 -174
- package/app/components/actions/case-export/download-handlers.ts +83 -750
- package/app/components/actions/case-export/index.ts +6 -30
- package/app/components/actions/case-export/metadata-helpers.ts +0 -78
- package/app/components/actions/case-export/types-constants.ts +0 -43
- package/app/components/actions/case-import/confirmation-import.ts +13 -14
- package/app/components/actions/case-import/zip-processing.ts +92 -12
- package/app/components/actions/generate-pdf.ts +3 -2
- package/app/components/audit/user-audit-viewer.tsx +0 -19
- package/app/components/audit/viewer/audit-viewer-header.tsx +0 -33
- package/app/components/navbar/case-modals/archive-case-modal.tsx +1 -1
- package/app/components/navbar/navbar.tsx +1 -1
- package/app/components/sidebar/case-import/case-import.module.css +35 -0
- package/app/components/sidebar/case-import/components/CasePreviewSection.tsx +59 -3
- package/app/components/sidebar/case-import/components/ConfirmationDialog.tsx +2 -4
- package/app/components/sidebar/case-import/components/ConfirmationPreviewSection.tsx +1 -1
- package/app/components/sidebar/notes/class-details-shared.ts +2 -2
- package/app/components/toast/toast.module.css +36 -0
- package/app/components/toast/toast.tsx +6 -2
- package/app/components/user/manage-profile.tsx +4 -3
- package/app/config-example/config.json +1 -2
- package/app/root.tsx +0 -7
- package/app/routes/_index.tsx +1 -1
- package/app/routes/auth/login.example.tsx +22 -103
- package/app/routes/auth/route.ts +1 -1
- package/app/routes/striae/striae.tsx +53 -59
- package/app/services/firebase/index.ts +0 -3
- package/app/types/export.ts +1 -2
- package/app/utils/auth/index.ts +0 -1
- package/app/utils/data/permissions.ts +3 -2
- package/package.json +10 -17
- package/public/_headers +0 -4
- package/public/_routes.json +0 -1
- package/worker-configuration.d.ts +20 -17
- package/workers/audit-worker/src/audit-worker.example.ts +9 -806
- package/workers/audit-worker/src/config.ts +7 -0
- package/workers/audit-worker/src/crypto/data-at-rest.ts +410 -0
- package/workers/audit-worker/src/handlers/audit-routes.ts +125 -0
- package/workers/audit-worker/src/storage/audit-storage.ts +99 -0
- package/workers/audit-worker/src/types.ts +56 -0
- package/workers/audit-worker/worker-configuration.d.ts +1 -1
- package/workers/audit-worker/wrangler.jsonc.example +1 -1
- package/workers/data-worker/src/config.ts +11 -0
- package/workers/data-worker/src/data-worker.example.ts +21 -942
- package/workers/data-worker/src/handlers/decrypt-export.ts +118 -0
- package/workers/data-worker/src/handlers/signing.ts +174 -0
- package/workers/data-worker/src/handlers/storage-routes.ts +129 -0
- package/workers/data-worker/src/registry/key-registry.ts +368 -0
- package/workers/data-worker/src/types.ts +46 -0
- package/workers/data-worker/worker-configuration.d.ts +1 -1
- package/workers/data-worker/wrangler.jsonc.example +1 -1
- package/workers/image-worker/worker-configuration.d.ts +1 -1
- package/workers/image-worker/wrangler.jsonc.example +1 -1
- package/workers/pdf-worker/worker-configuration.d.ts +2 -3
- package/workers/pdf-worker/wrangler.jsonc.example +1 -1
- package/workers/user-worker/src/auth.ts +30 -0
- package/workers/user-worker/src/cleanup/account-deletion.ts +337 -0
- package/workers/user-worker/src/config.ts +4 -0
- package/workers/user-worker/src/encryption-utils.ts +25 -0
- package/workers/user-worker/src/firebase/admin.ts +152 -0
- package/workers/user-worker/src/handlers/user-routes.ts +242 -0
- package/workers/user-worker/src/registry/user-kv.ts +172 -0
- package/workers/user-worker/src/storage/user-records.ts +34 -0
- package/workers/user-worker/src/types.ts +106 -0
- package/workers/user-worker/src/user-worker.example.ts +18 -964
- package/workers/user-worker/worker-configuration.d.ts +4 -2
- package/workers/user-worker/wrangler.jsonc.example +12 -1
- package/wrangler.toml.example +1 -1
- package/app/components/actions/case-export/data-processing.ts +0 -223
- package/app/components/sidebar/case-export/case-export.module.css +0 -418
- package/app/components/sidebar/case-export/case-export.tsx +0 -310
- package/app/types/exceljs-bare.d.ts +0 -9
- package/app/utils/auth/auth.ts +0 -11
- package/public/.well-known/security.txt +0 -6
- package/public/favicon.ico +0 -0
- package/public/icon-256.png +0 -0
- package/public/icon-512.png +0 -0
- package/public/manifest.json +0 -39
- package/public/shortcut.png +0 -0
- package/public/social-image.png +0 -0
- package/public/vendor/exceljs.LICENSE +0 -22
- package/public/vendor/exceljs.bare.min.js +0 -45
- package/scripts/deploy-all.sh +0 -166
- package/scripts/deploy-config/modules/env-utils.sh +0 -322
- package/scripts/deploy-config/modules/keys.sh +0 -404
- package/scripts/deploy-config/modules/prompt.sh +0 -372
- package/scripts/deploy-config/modules/scaffolding.sh +0 -336
- package/scripts/deploy-config/modules/validation.sh +0 -365
- package/scripts/deploy-config.sh +0 -236
- package/scripts/deploy-pages-secrets.sh +0 -231
- package/scripts/deploy-pages.sh +0 -34
- package/scripts/deploy-primershear-emails.sh +0 -167
- package/scripts/deploy-worker-secrets.sh +0 -374
- package/scripts/dev.cjs +0 -23
- package/scripts/install-workers.sh +0 -88
- package/scripts/run-eslint.cjs +0 -43
- package/scripts/update-compatibility-dates.cjs +0 -124
- package/scripts/update-markdown-versions.cjs +0 -43
- package/workers/keys-worker/package.json +0 -18
- package/workers/keys-worker/src/keys.example.ts +0 -67
- package/workers/keys-worker/src/keys.ts +0 -67
- package/workers/keys-worker/worker-configuration.d.ts +0 -7447
- package/workers/keys-worker/wrangler.jsonc.example +0 -15
package/public/_headers
CHANGED
package/public/_routes.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// Generated by Wrangler by running `wrangler types` (hash:
|
|
3
|
-
// Runtime types generated with workerd@1.20250823.0 2026-03-
|
|
2
|
+
// Generated by Wrangler by running `wrangler types` (hash: d8f8f87d89a635e81e94aa31fb52008f)
|
|
3
|
+
// Runtime types generated with workerd@1.20250823.0 2026-03-26 nodejs_compat
|
|
4
4
|
declare namespace Cloudflare {
|
|
5
5
|
interface Env {
|
|
6
6
|
ACCOUNT_ID: string;
|
|
@@ -16,31 +16,35 @@ declare namespace Cloudflare {
|
|
|
16
16
|
MEASUREMENT_ID: string;
|
|
17
17
|
FIREBASE_SERVICE_ACCOUNT_EMAIL: string;
|
|
18
18
|
FIREBASE_SERVICE_ACCOUNT_PRIVATE_KEY: string;
|
|
19
|
-
PAGES_PROJECT_NAME: string;
|
|
20
|
-
PAGES_CUSTOM_DOMAIN: string;
|
|
21
|
-
KEYS_WORKER_NAME: string;
|
|
22
|
-
KEYS_WORKER_DOMAIN: string;
|
|
23
|
-
KEYS_AUTH: string;
|
|
24
|
-
ACCOUNT_HASH: string;
|
|
25
|
-
USER_WORKER_NAME: string;
|
|
26
|
-
USER_WORKER_DOMAIN: string;
|
|
27
|
-
KV_STORE_ID: string;
|
|
28
19
|
USER_KV_ENCRYPTION_PRIVATE_KEY: string;
|
|
29
20
|
USER_KV_ENCRYPTION_KEY_ID: string;
|
|
30
21
|
USER_KV_ENCRYPTION_PUBLIC_KEY: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
DATA_WORKER_DOMAIN: string;
|
|
22
|
+
USER_KV_WRITE_ENDPOINTS_ENABLED: string;
|
|
23
|
+
USER_KV_ENCRYPTION_KEYS_JSON: string;
|
|
24
|
+
USER_KV_ENCRYPTION_ACTIVE_KEY_ID: string;
|
|
35
25
|
MANIFEST_SIGNING_PRIVATE_KEY: string;
|
|
36
26
|
MANIFEST_SIGNING_KEY_ID: string;
|
|
37
27
|
MANIFEST_SIGNING_PUBLIC_KEY: string;
|
|
38
28
|
EXPORT_ENCRYPTION_PRIVATE_KEY: string;
|
|
39
29
|
EXPORT_ENCRYPTION_KEY_ID: string;
|
|
40
30
|
EXPORT_ENCRYPTION_PUBLIC_KEY: string;
|
|
31
|
+
EXPORT_ENCRYPTION_KEYS_JSON: string;
|
|
32
|
+
EXPORT_ENCRYPTION_ACTIVE_KEY_ID: string;
|
|
33
|
+
DATA_AT_REST_ENCRYPTION_ENABLED: string;
|
|
41
34
|
DATA_AT_REST_ENCRYPTION_PRIVATE_KEY: string;
|
|
42
35
|
DATA_AT_REST_ENCRYPTION_KEY_ID: string;
|
|
43
36
|
DATA_AT_REST_ENCRYPTION_PUBLIC_KEY: string;
|
|
37
|
+
DATA_AT_REST_ENCRYPTION_KEYS_JSON: string;
|
|
38
|
+
DATA_AT_REST_ENCRYPTION_ACTIVE_KEY_ID: string;
|
|
39
|
+
PAGES_PROJECT_NAME: string;
|
|
40
|
+
PAGES_CUSTOM_DOMAIN: string;
|
|
41
|
+
USER_WORKER_NAME: string;
|
|
42
|
+
USER_WORKER_DOMAIN: string;
|
|
43
|
+
KV_STORE_ID: string;
|
|
44
|
+
DATA_WORKER_NAME: string;
|
|
45
|
+
DATA_BUCKET_NAME: string;
|
|
46
|
+
FILES_BUCKET_NAME: string;
|
|
47
|
+
DATA_WORKER_DOMAIN: string;
|
|
44
48
|
AUDIT_WORKER_NAME: string;
|
|
45
49
|
AUDIT_BUCKET_NAME: string;
|
|
46
50
|
AUDIT_WORKER_DOMAIN: string;
|
|
@@ -53,7 +57,6 @@ declare namespace Cloudflare {
|
|
|
53
57
|
PDF_WORKER_AUTH: string;
|
|
54
58
|
BROWSER_API_TOKEN: string;
|
|
55
59
|
PRIMERSHEAR_EMAILS: string;
|
|
56
|
-
DATA_AT_REST_ENCRYPTION_ENABLED: string;
|
|
57
60
|
}
|
|
58
61
|
}
|
|
59
62
|
interface Env extends Cloudflare.Env {}
|
|
@@ -61,7 +64,7 @@ type StringifyValues<EnvType extends Record<string, unknown>> = {
|
|
|
61
64
|
[Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string;
|
|
62
65
|
};
|
|
63
66
|
declare namespace NodeJS {
|
|
64
|
-
interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "ACCOUNT_ID" | "USER_DB_AUTH" | "R2_KEY_SECRET" | "IMAGES_API_TOKEN" | "API_KEY" | "AUTH_DOMAIN" | "PROJECT_ID" | "STORAGE_BUCKET" | "MESSAGING_SENDER_ID" | "APP_ID" | "MEASUREMENT_ID" | "FIREBASE_SERVICE_ACCOUNT_EMAIL" | "FIREBASE_SERVICE_ACCOUNT_PRIVATE_KEY" | "
|
|
67
|
+
interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "ACCOUNT_ID" | "USER_DB_AUTH" | "R2_KEY_SECRET" | "IMAGES_API_TOKEN" | "API_KEY" | "AUTH_DOMAIN" | "PROJECT_ID" | "STORAGE_BUCKET" | "MESSAGING_SENDER_ID" | "APP_ID" | "MEASUREMENT_ID" | "FIREBASE_SERVICE_ACCOUNT_EMAIL" | "FIREBASE_SERVICE_ACCOUNT_PRIVATE_KEY" | "USER_KV_ENCRYPTION_PRIVATE_KEY" | "USER_KV_ENCRYPTION_KEY_ID" | "USER_KV_ENCRYPTION_PUBLIC_KEY" | "USER_KV_WRITE_ENDPOINTS_ENABLED" | "USER_KV_ENCRYPTION_KEYS_JSON" | "USER_KV_ENCRYPTION_ACTIVE_KEY_ID" | "MANIFEST_SIGNING_PRIVATE_KEY" | "MANIFEST_SIGNING_KEY_ID" | "MANIFEST_SIGNING_PUBLIC_KEY" | "EXPORT_ENCRYPTION_PRIVATE_KEY" | "EXPORT_ENCRYPTION_KEY_ID" | "EXPORT_ENCRYPTION_PUBLIC_KEY" | "EXPORT_ENCRYPTION_KEYS_JSON" | "EXPORT_ENCRYPTION_ACTIVE_KEY_ID" | "DATA_AT_REST_ENCRYPTION_ENABLED" | "DATA_AT_REST_ENCRYPTION_PRIVATE_KEY" | "DATA_AT_REST_ENCRYPTION_KEY_ID" | "DATA_AT_REST_ENCRYPTION_PUBLIC_KEY" | "DATA_AT_REST_ENCRYPTION_KEYS_JSON" | "DATA_AT_REST_ENCRYPTION_ACTIVE_KEY_ID" | "PAGES_PROJECT_NAME" | "PAGES_CUSTOM_DOMAIN" | "USER_WORKER_NAME" | "USER_WORKER_DOMAIN" | "KV_STORE_ID" | "DATA_WORKER_NAME" | "DATA_BUCKET_NAME" | "FILES_BUCKET_NAME" | "DATA_WORKER_DOMAIN" | "AUDIT_WORKER_NAME" | "AUDIT_BUCKET_NAME" | "AUDIT_WORKER_DOMAIN" | "IMAGES_WORKER_NAME" | "IMAGES_WORKER_DOMAIN" | "IMAGE_SIGNED_URL_SECRET" | "IMAGE_SIGNED_URL_TTL_SECONDS" | "PDF_WORKER_NAME" | "PDF_WORKER_DOMAIN" | "PDF_WORKER_AUTH" | "BROWSER_API_TOKEN" | "PRIMERSHEAR_EMAILS">> {}
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
// Begin runtime types
|