@gadicc/loom 1.38.0 → 2.0.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/.loom-source-manifest.json +97 -0
- package/README.md +103 -31
- package/db/databaseTls.js +6 -3
- package/db/databaseUrl.js +3 -2
- package/db/drizzle-config.js +14 -16
- package/db/fixtures.d.ts +1 -3
- package/db/fixtures.js +4 -7
- package/esm/bin/loom.d.ts +2 -1
- package/esm/bin/loom.d.ts.map +1 -1
- package/esm/bin/loom.js +37 -10
- package/esm/bin/loom.js.map +1 -0
- package/esm/mod.d.ts +0 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -1
- package/esm/mod.js.map +1 -0
- package/esm/src/apiKeys/authorize.d.ts.map +1 -1
- package/esm/src/apiKeys/authorize.js +15 -14
- package/esm/src/apiKeys/authorize.js.map +1 -0
- package/esm/src/apiKeys/betterAuth.d.ts.map +1 -1
- package/esm/src/apiKeys/betterAuth.js +1 -0
- package/esm/src/apiKeys/betterAuth.js.map +1 -0
- package/esm/src/apiKeys/country.d.ts.map +1 -1
- package/esm/src/apiKeys/country.js +1 -0
- package/esm/src/apiKeys/country.js.map +1 -0
- package/esm/src/apiKeys/credentials.d.ts.map +1 -1
- package/esm/src/apiKeys/credentials.js +3 -1
- package/esm/src/apiKeys/credentials.js.map +1 -0
- package/esm/src/apiKeys/fingerprint.d.ts.map +1 -1
- package/esm/src/apiKeys/fingerprint.js +1 -0
- package/esm/src/apiKeys/fingerprint.js.map +1 -0
- package/esm/src/apiKeys/lifecycle.d.ts.map +1 -1
- package/esm/src/apiKeys/lifecycle.js +1 -0
- package/esm/src/apiKeys/lifecycle.js.map +1 -0
- package/esm/src/apiKeys/limits.d.ts.map +1 -1
- package/esm/src/apiKeys/limits.js +10 -10
- package/esm/src/apiKeys/limits.js.map +1 -0
- package/esm/src/apiKeys/mod.d.ts +0 -1
- package/esm/src/apiKeys/mod.d.ts.map +1 -1
- package/esm/src/apiKeys/mod.js +1 -1
- package/esm/src/apiKeys/mod.js.map +1 -0
- package/esm/src/apiKeys/permissions.d.ts.map +1 -1
- package/esm/src/apiKeys/permissions.js +1 -0
- package/esm/src/apiKeys/permissions.js.map +1 -0
- package/esm/src/apiKeys/policy.d.ts.map +1 -1
- package/esm/src/apiKeys/policy.js +1 -0
- package/esm/src/apiKeys/policy.js.map +1 -0
- package/esm/src/apiKeys/retention.d.ts.map +1 -1
- package/esm/src/apiKeys/retention.js +1 -0
- package/esm/src/apiKeys/retention.js.map +1 -0
- package/esm/src/apiKeys/types.d.ts.map +1 -1
- package/esm/src/apiKeys/types.js +1 -0
- package/esm/src/apiKeys/types.js.map +1 -0
- package/esm/src/cli/atomicText.d.ts +3 -0
- package/esm/src/cli/atomicText.d.ts.map +1 -0
- package/esm/src/cli/atomicText.js +33 -0
- package/esm/src/cli/atomicText.js.map +1 -0
- package/esm/src/cli/bunLocalDev.d.ts +65 -0
- package/esm/src/cli/bunLocalDev.d.ts.map +1 -0
- package/esm/src/cli/bunLocalDev.js +459 -0
- package/esm/src/cli/bunLocalDev.js.map +1 -0
- package/esm/src/cli/bunProject.d.ts +30 -0
- package/esm/src/cli/bunProject.d.ts.map +1 -0
- package/esm/src/cli/bunProject.js +309 -0
- package/esm/src/cli/bunProject.js.map +1 -0
- package/esm/src/cli/cliBootstrap.d.ts +83 -0
- package/esm/src/cli/cliBootstrap.d.ts.map +1 -0
- package/esm/src/cli/cliBootstrap.js +186 -0
- package/esm/src/cli/cliBootstrap.js.map +1 -0
- package/esm/src/cli/externalSkills.d.ts.map +1 -1
- package/esm/src/cli/externalSkills.js +9 -5
- package/esm/src/cli/externalSkills.js.map +1 -0
- package/esm/src/cli/filesR2Policy.d.ts.map +1 -1
- package/esm/src/cli/filesR2Policy.js +18 -11
- package/esm/src/cli/filesR2Policy.js.map +1 -0
- package/esm/src/cli/generatedBuild.d.ts +42 -0
- package/esm/src/cli/generatedBuild.d.ts.map +1 -0
- package/esm/src/cli/generatedBuild.js +259 -0
- package/esm/src/cli/generatedBuild.js.map +1 -0
- package/esm/src/cli/generatedCleanup.d.ts +7 -0
- package/esm/src/cli/generatedCleanup.d.ts.map +1 -0
- package/esm/src/cli/generatedCleanup.js +67 -0
- package/esm/src/cli/generatedCleanup.js.map +1 -0
- package/esm/src/cli/generatedDevLease.d.ts +8 -0
- package/esm/src/cli/generatedDevLease.d.ts.map +1 -0
- package/esm/src/cli/generatedDevLease.js +39 -0
- package/esm/src/cli/generatedDevLease.js.map +1 -0
- package/esm/src/cli/generatedInstall.d.ts +64 -0
- package/esm/src/cli/generatedInstall.d.ts.map +1 -0
- package/esm/src/cli/generatedInstall.js +466 -0
- package/esm/src/cli/generatedInstall.js.map +1 -0
- package/esm/src/cli/generatedWorkflow.d.ts +34 -0
- package/esm/src/cli/generatedWorkflow.d.ts.map +1 -0
- package/esm/src/cli/generatedWorkflow.js +85 -0
- package/esm/src/cli/generatedWorkflow.js.map +1 -0
- package/esm/src/cli/legacyManagedOutputs.d.ts.map +1 -1
- package/esm/src/cli/legacyManagedOutputs.js +1 -0
- package/esm/src/cli/legacyManagedOutputs.js.map +1 -0
- package/esm/src/cli/localDb.d.ts.map +1 -1
- package/esm/src/cli/localDb.js +33 -28
- package/esm/src/cli/localDb.js.map +1 -0
- package/esm/src/cli/localDevLock.d.ts +9 -0
- package/esm/src/cli/localDevLock.d.ts.map +1 -1
- package/esm/src/cli/localDevLock.js +54 -13
- package/esm/src/cli/localDevLock.js.map +1 -0
- package/esm/src/cli/localDevPackage.d.ts +6 -11
- package/esm/src/cli/localDevPackage.d.ts.map +1 -1
- package/esm/src/cli/localDevPackage.js +51 -48
- package/esm/src/cli/localDevPackage.js.map +1 -0
- package/esm/src/cli/managedFiles.d.ts.map +1 -1
- package/esm/src/cli/managedFiles.js +34 -18
- package/esm/src/cli/managedFiles.js.map +1 -0
- package/esm/src/cli/migrationEnv.d.ts +16 -3
- package/esm/src/cli/migrationEnv.d.ts.map +1 -1
- package/esm/src/cli/migrationEnv.js +7 -4
- package/esm/src/cli/migrationEnv.js.map +1 -0
- package/esm/src/cli/mod.d.ts +19 -7
- package/esm/src/cli/mod.d.ts.map +1 -1
- package/esm/src/cli/mod.js +2000 -742
- package/esm/src/cli/mod.js.map +1 -0
- package/esm/src/cli/packageTreeSignature.d.ts +8 -0
- package/esm/src/cli/packageTreeSignature.d.ts.map +1 -0
- package/esm/src/cli/packageTreeSignature.js +60 -0
- package/esm/src/cli/packageTreeSignature.js.map +1 -0
- package/esm/src/cli/processIdentity.d.ts +7 -0
- package/esm/src/cli/processIdentity.d.ts.map +1 -0
- package/esm/src/cli/processIdentity.js +39 -0
- package/esm/src/cli/processIdentity.js.map +1 -0
- package/esm/src/cli/projectSkills.d.ts +1 -1
- package/esm/src/cli/projectSkills.d.ts.map +1 -1
- package/esm/src/cli/projectSkills.js +31 -23
- package/esm/src/cli/projectSkills.js.map +1 -0
- package/esm/src/cli/projectTooling.d.ts +6 -3
- package/esm/src/cli/projectTooling.d.ts.map +1 -1
- package/esm/src/cli/projectTooling.js +86 -41
- package/esm/src/cli/projectTooling.js.map +1 -0
- package/esm/src/cli/releaseConfig.d.ts.map +1 -1
- package/esm/src/cli/releaseConfig.js +5 -3
- package/esm/src/cli/releaseConfig.js.map +1 -0
- package/esm/src/cli/releaseCredentials.d.ts.map +1 -1
- package/esm/src/cli/releaseCredentials.js +19 -31
- package/esm/src/cli/releaseCredentials.js.map +1 -0
- package/esm/src/cli/releaseTrust.d.ts.map +1 -1
- package/esm/src/cli/releaseTrust.js +11 -4
- package/esm/src/cli/releaseTrust.js.map +1 -0
- package/esm/src/cli/releaseTrustCommand.d.ts.map +1 -1
- package/esm/src/cli/releaseTrustCommand.js +6 -4
- package/esm/src/cli/releaseTrustCommand.js.map +1 -0
- package/esm/src/cli/sourceConfig.d.ts +3 -0
- package/esm/src/cli/sourceConfig.d.ts.map +1 -0
- package/esm/src/cli/sourceConfig.js +91 -0
- package/esm/src/cli/sourceConfig.js.map +1 -0
- package/esm/src/cli/sourceDev.d.ts +77 -0
- package/esm/src/cli/sourceDev.d.ts.map +1 -0
- package/esm/src/cli/sourceDev.js +974 -0
- package/esm/src/cli/sourceDev.js.map +1 -0
- package/esm/src/cli/vercelBuildEnv.d.ts.map +1 -1
- package/esm/src/cli/vercelBuildEnv.js +21 -15
- package/esm/src/cli/vercelBuildEnv.js.map +1 -0
- package/esm/src/cli/vercelEnvMask.d.ts +2 -2
- package/esm/src/cli/vercelEnvMask.d.ts.map +1 -1
- package/esm/src/cli/vercelEnvMask.js +8 -4
- package/esm/src/cli/vercelEnvMask.js.map +1 -0
- package/esm/src/cli/vercelProjectRelease.d.ts.map +1 -1
- package/esm/src/cli/vercelProjectRelease.js +45 -22
- package/esm/src/cli/vercelProjectRelease.js.map +1 -0
- package/esm/src/cli/vercelPulledEnv.d.ts +1 -1
- package/esm/src/cli/vercelPulledEnv.d.ts.map +1 -1
- package/esm/src/cli/vercelPulledEnv.js +1 -0
- package/esm/src/cli/vercelPulledEnv.js.map +1 -0
- package/esm/src/clientData/identity.d.ts.map +1 -1
- package/esm/src/clientData/identity.js +1 -0
- package/esm/src/clientData/identity.js.map +1 -0
- package/esm/src/clientData/mod.d.ts +0 -1
- package/esm/src/clientData/mod.d.ts.map +1 -1
- package/esm/src/clientData/mod.js +1 -0
- package/esm/src/clientData/mod.js.map +1 -0
- package/esm/src/files/client.d.ts +1 -1
- package/esm/src/files/client.d.ts.map +1 -1
- package/esm/src/files/client.js +3 -4
- package/esm/src/files/client.js.map +1 -0
- package/esm/src/files/errors.d.ts.map +1 -1
- package/esm/src/files/errors.js +3 -12
- package/esm/src/files/errors.js.map +1 -0
- package/esm/src/files/hash.d.ts +1 -1
- package/esm/src/files/hash.d.ts.map +1 -1
- package/esm/src/files/hash.js +1 -0
- package/esm/src/files/hash.js.map +1 -0
- package/esm/src/files/memory.d.ts.map +1 -1
- package/esm/src/files/memory.js +2 -1
- package/esm/src/files/memory.js.map +1 -0
- package/esm/src/files/metadata.d.ts.map +1 -1
- package/esm/src/files/metadata.js +11 -18
- package/esm/src/files/metadata.js.map +1 -0
- package/esm/src/files/mod.d.ts +0 -1
- package/esm/src/files/mod.d.ts.map +1 -1
- package/esm/src/files/mod.js +1 -1
- package/esm/src/files/mod.js.map +1 -0
- package/esm/src/files/s3.d.ts.map +1 -1
- package/esm/src/files/s3.js +6 -4
- package/esm/src/files/s3.js.map +1 -0
- package/esm/src/files/service.d.ts.map +1 -1
- package/esm/src/files/service.js +3 -4
- package/esm/src/files/service.js.map +1 -0
- package/esm/src/files/types.d.ts.map +1 -1
- package/esm/src/files/types.js +1 -0
- package/esm/src/files/types.js.map +1 -0
- package/esm/src/jobs/catalog.d.ts.map +1 -1
- package/esm/src/jobs/catalog.js +5 -1
- package/esm/src/jobs/catalog.js.map +1 -0
- package/esm/src/jobs/controller.d.ts +1 -1
- package/esm/src/jobs/controller.d.ts.map +1 -1
- package/esm/src/jobs/controller.js +11 -55
- package/esm/src/jobs/controller.js.map +1 -0
- package/esm/src/jobs/direct.d.ts.map +1 -1
- package/esm/src/jobs/direct.js +3 -3
- package/esm/src/jobs/direct.js.map +1 -0
- package/esm/src/jobs/events.d.ts.map +1 -1
- package/esm/src/jobs/events.js +1 -0
- package/esm/src/jobs/events.js.map +1 -0
- package/esm/src/jobs/format.d.ts +5 -5
- package/esm/src/jobs/format.d.ts.map +1 -1
- package/esm/src/jobs/format.js +2 -1
- package/esm/src/jobs/format.js.map +1 -0
- package/esm/src/jobs/http.d.ts +3 -3
- package/esm/src/jobs/http.d.ts.map +1 -1
- package/esm/src/jobs/http.js +1 -0
- package/esm/src/jobs/http.js.map +1 -0
- package/esm/src/jobs/log.d.ts.map +1 -1
- package/esm/src/jobs/log.js +1 -0
- package/esm/src/jobs/log.js.map +1 -0
- package/esm/src/jobs/mod.d.ts.map +1 -1
- package/esm/src/jobs/mod.js +1 -0
- package/esm/src/jobs/mod.js.map +1 -0
- package/esm/src/jobs/run.d.ts.map +1 -1
- package/esm/src/jobs/run.js +1 -0
- package/esm/src/jobs/run.js.map +1 -0
- package/esm/src/jobs/sanitize.d.ts.map +1 -1
- package/esm/src/jobs/sanitize.js +1 -0
- package/esm/src/jobs/sanitize.js.map +1 -0
- package/esm/src/jobs/types.d.ts +1 -0
- package/esm/src/jobs/types.d.ts.map +1 -1
- package/esm/src/jobs/types.js +1 -0
- package/esm/src/jobs/types.js.map +1 -0
- package/esm/src/mail/errors.d.ts.map +1 -1
- package/esm/src/mail/errors.js +8 -42
- package/esm/src/mail/errors.js.map +1 -0
- package/esm/src/mail/memory.d.ts +1 -1
- package/esm/src/mail/memory.d.ts.map +1 -1
- package/esm/src/mail/memory.js +10 -14
- package/esm/src/mail/memory.js.map +1 -0
- package/esm/src/mail/mod.d.ts +0 -1
- package/esm/src/mail/mod.d.ts.map +1 -1
- package/esm/src/mail/mod.js +1 -1
- package/esm/src/mail/mod.js.map +1 -0
- package/esm/src/mail/postal.d.ts +1 -2
- package/esm/src/mail/postal.d.ts.map +1 -1
- package/esm/src/mail/postal.js +22 -18
- package/esm/src/mail/postal.js.map +1 -0
- package/esm/src/mail/retry.d.ts.map +1 -1
- package/esm/src/mail/retry.js +1 -0
- package/esm/src/mail/retry.js.map +1 -0
- package/esm/src/mail/sender.d.ts.map +1 -1
- package/esm/src/mail/sender.js +1 -0
- package/esm/src/mail/sender.js.map +1 -0
- package/esm/src/mail/service.d.ts.map +1 -1
- package/esm/src/mail/service.js +6 -7
- package/esm/src/mail/service.js.map +1 -0
- package/esm/src/mail/types.d.ts.map +1 -1
- package/esm/src/mail/types.js +1 -0
- package/esm/src/mail/types.js.map +1 -0
- package/esm/src/mui/apiKeys.d.ts +10 -11
- package/esm/src/mui/apiKeys.d.ts.map +1 -1
- package/esm/src/mui/apiKeys.js +83 -214
- package/esm/src/mui/apiKeys.js.map +1 -0
- package/esm/src/mui/apiKeysView.d.ts +1 -1
- package/esm/src/mui/apiKeysView.d.ts.map +1 -1
- package/esm/src/mui/apiKeysView.js +11 -9
- package/esm/src/mui/apiKeysView.js.map +1 -0
- package/esm/src/mui/confirm.d.ts +2 -2
- package/esm/src/mui/confirm.d.ts.map +1 -1
- package/esm/src/mui/confirm.js +3 -7
- package/esm/src/mui/confirm.js.map +1 -0
- package/esm/src/mui/mail.d.ts +4 -4
- package/esm/src/mui/mail.d.ts.map +1 -1
- package/esm/src/mui/mail.js +11 -71
- package/esm/src/mui/mail.js.map +1 -0
- package/esm/src/mui/mailView.d.ts +1 -1
- package/esm/src/mui/mailView.d.ts.map +1 -1
- package/esm/src/mui/mailView.js +1 -0
- package/esm/src/mui/mailView.js.map +1 -0
- package/esm/src/mui/mod.d.ts +0 -1
- package/esm/src/mui/mod.d.ts.map +1 -1
- package/esm/src/mui/mod.js +1 -0
- package/esm/src/mui/mod.js.map +1 -0
- package/esm/src/next/apiKeys/mod.d.ts +2 -3
- package/esm/src/next/apiKeys/mod.d.ts.map +1 -1
- package/esm/src/next/apiKeys/mod.js +6 -5
- package/esm/src/next/apiKeys/mod.js.map +1 -0
- package/esm/src/next/auth/client.d.ts +0 -1
- package/esm/src/next/auth/client.d.ts.map +1 -1
- package/esm/src/next/auth/client.js +1 -0
- package/esm/src/next/auth/client.js.map +1 -0
- package/esm/src/next/auth/config.d.ts.map +1 -1
- package/esm/src/next/auth/config.js +11 -17
- package/esm/src/next/auth/config.js.map +1 -0
- package/esm/src/next/auth/localTestLogin.d.ts.map +1 -1
- package/esm/src/next/auth/localTestLogin.js +13 -9
- package/esm/src/next/auth/localTestLogin.js.map +1 -0
- package/esm/src/next/auth/mod.d.ts.map +1 -1
- package/esm/src/next/auth/mod.js +1 -0
- package/esm/src/next/auth/mod.js.map +1 -0
- package/esm/src/next/auth/server.d.ts +2 -2
- package/esm/src/next/auth/server.d.ts.map +1 -1
- package/esm/src/next/auth/server.js +1 -0
- package/esm/src/next/auth/server.js.map +1 -0
- package/esm/src/next/files/mod.d.ts +0 -1
- package/esm/src/next/files/mod.d.ts.map +1 -1
- package/esm/src/next/files/mod.js +1 -1
- package/esm/src/next/files/mod.js.map +1 -0
- package/esm/src/next/files/route.d.ts +1 -1
- package/esm/src/next/files/route.d.ts.map +1 -1
- package/esm/src/next/files/route.js +11 -11
- package/esm/src/next/files/route.js.map +1 -0
- package/esm/src/next/jobs/list.d.ts +5 -5
- package/esm/src/next/jobs/list.d.ts.map +1 -1
- package/esm/src/next/jobs/list.js +15 -19
- package/esm/src/next/jobs/list.js.map +1 -0
- package/esm/src/next/jobs/mod.d.ts.map +1 -1
- package/esm/src/next/jobs/mod.js +1 -0
- package/esm/src/next/jobs/mod.js.map +1 -0
- package/esm/src/next/jobs/paths.d.ts +2 -2
- package/esm/src/next/jobs/paths.d.ts.map +1 -1
- package/esm/src/next/jobs/paths.js +1 -0
- package/esm/src/next/jobs/paths.js.map +1 -0
- package/esm/src/next/jobs/route.d.ts +2 -2
- package/esm/src/next/jobs/route.d.ts.map +1 -1
- package/esm/src/next/jobs/route.js +4 -4
- package/esm/src/next/jobs/route.js.map +1 -0
- package/esm/src/next/jobs/run.d.ts +2 -2
- package/esm/src/next/jobs/run.d.ts.map +1 -1
- package/esm/src/next/jobs/run.js +68 -132
- package/esm/src/next/jobs/run.js.map +1 -0
- package/esm/src/next/jobs/runRequest.d.ts +1 -1
- package/esm/src/next/jobs/runRequest.d.ts.map +1 -1
- package/esm/src/next/jobs/runRequest.js +3 -4
- package/esm/src/next/jobs/runRequest.js.map +1 -0
- package/esm/src/next/jobs/stream.d.ts.map +1 -1
- package/esm/src/next/jobs/stream.js +1 -0
- package/esm/src/next/jobs/stream.js.map +1 -0
- package/esm/src/next/mail/mod.d.ts +0 -1
- package/esm/src/next/mail/mod.d.ts.map +1 -1
- package/esm/src/next/mail/mod.js +1 -1
- package/esm/src/next/mail/mod.js.map +1 -0
- package/esm/src/next/mail/route.d.ts +2 -2
- package/esm/src/next/mail/route.d.ts.map +1 -1
- package/esm/src/next/mail/route.js +1 -0
- package/esm/src/next/mail/route.js.map +1 -0
- package/esm/src/next/pwa/mod.d.ts +0 -4
- package/esm/src/next/pwa/mod.d.ts.map +1 -1
- package/esm/src/next/pwa/mod.js +32 -16
- package/esm/src/next/pwa/mod.js.map +1 -0
- package/esm/src/next/pwa/worker.d.ts +0 -1
- package/esm/src/next/pwa/worker.d.ts.map +1 -1
- package/esm/src/next/pwa/worker.js +1 -0
- package/esm/src/next/pwa/worker.js.map +1 -0
- package/esm/src/next/secrets/constants.d.ts +3 -0
- package/esm/src/next/secrets/constants.d.ts.map +1 -0
- package/esm/src/next/secrets/constants.js +3 -0
- package/esm/src/next/secrets/constants.js.map +1 -0
- package/esm/src/next/secrets/mod.d.ts +1 -3
- package/esm/src/next/secrets/mod.d.ts.map +1 -1
- package/esm/src/next/secrets/mod.js +6 -7
- package/esm/src/next/secrets/mod.js.map +1 -0
- package/esm/src/next/sourceDev.d.ts +6 -0
- package/esm/src/next/sourceDev.d.ts.map +1 -0
- package/esm/src/next/sourceDev.js +41 -0
- package/esm/src/next/sourceDev.js.map +1 -0
- package/esm/src/secrets/encoding.d.ts.map +1 -1
- package/esm/src/secrets/encoding.js +1 -0
- package/esm/src/secrets/encoding.js.map +1 -0
- package/esm/src/secrets/errors.d.ts.map +1 -1
- package/esm/src/secrets/errors.js +3 -7
- package/esm/src/secrets/errors.js.map +1 -0
- package/esm/src/secrets/fingerprint.d.ts.map +1 -1
- package/esm/src/secrets/fingerprint.js +1 -0
- package/esm/src/secrets/fingerprint.js.map +1 -0
- package/esm/src/secrets/frame.d.ts.map +1 -1
- package/esm/src/secrets/frame.js +4 -3
- package/esm/src/secrets/frame.js.map +1 -0
- package/esm/src/secrets/keyring.d.ts.map +1 -1
- package/esm/src/secrets/keyring.js +6 -6
- package/esm/src/secrets/keyring.js.map +1 -0
- package/esm/src/secrets/legacy.d.ts +0 -1
- package/esm/src/secrets/legacy.d.ts.map +1 -1
- package/esm/src/secrets/legacy.js +13 -10
- package/esm/src/secrets/legacy.js.map +1 -0
- package/esm/src/secrets/maintenance.d.ts +0 -1
- package/esm/src/secrets/maintenance.d.ts.map +1 -1
- package/esm/src/secrets/maintenance.js +9 -24
- package/esm/src/secrets/maintenance.js.map +1 -0
- package/esm/src/secrets/mod.d.ts +0 -1
- package/esm/src/secrets/mod.d.ts.map +1 -1
- package/esm/src/secrets/mod.js +1 -1
- package/esm/src/secrets/mod.js.map +1 -0
- package/esm/src/secrets/secrets.d.ts.map +1 -1
- package/esm/src/secrets/secrets.js +38 -30
- package/esm/src/secrets/secrets.js.map +1 -0
- package/package.json +111 -135
- package/skills/loom/SKILL.md +40 -5
- package/skills/loom/references/esm-package.md +35 -0
- package/skills/loom/references/local-development.md +261 -29
- package/skills/loom-mail/SKILL.md +1 -0
- package/skills/upgrade-deps/SKILL.md +4 -2
- package/source/bin/loom.ts +50 -0
- package/source/mod.ts +10 -0
- package/source/src/apiKeys/authorize.ts +294 -0
- package/source/src/apiKeys/betterAuth.ts +253 -0
- package/source/src/apiKeys/country.ts +7 -0
- package/source/src/apiKeys/credentials.ts +171 -0
- package/source/src/apiKeys/fingerprint.ts +10 -0
- package/{script/src/apiKeys/lifecycle.d.ts → source/src/apiKeys/lifecycle.ts} +21 -23
- package/source/src/apiKeys/limits.ts +372 -0
- package/source/src/apiKeys/mod.ts +11 -0
- package/source/src/apiKeys/permissions.ts +153 -0
- package/source/src/apiKeys/policy.ts +189 -0
- package/source/src/apiKeys/retention.ts +136 -0
- package/source/src/apiKeys/types.ts +288 -0
- package/source/src/cli/atomicText.ts +38 -0
- package/source/src/cli/bunLocalDev.ts +646 -0
- package/source/src/cli/bunProject.ts +433 -0
- package/source/src/cli/cliBootstrap.ts +313 -0
- package/source/src/cli/externalSkills.ts +315 -0
- package/source/src/cli/filesR2Policy.ts +212 -0
- package/source/src/cli/generatedBuild.ts +380 -0
- package/source/src/cli/generatedCleanup.ts +87 -0
- package/source/src/cli/generatedDevLease.ts +52 -0
- package/source/src/cli/generatedInstall.ts +630 -0
- package/source/src/cli/generatedWorkflow.ts +135 -0
- package/{script/src/cli/legacyManagedOutputs.js → source/src/cli/legacyManagedOutputs.ts} +36 -30
- package/source/src/cli/localDb.ts +548 -0
- package/source/src/cli/localDevLock.ts +462 -0
- package/source/src/cli/localDevPackage.ts +754 -0
- package/source/src/cli/managedFiles.ts +688 -0
- package/source/src/cli/migrationEnv.ts +267 -0
- package/source/src/cli/mod.ts +26788 -0
- package/source/src/cli/packageTreeSignature.ts +65 -0
- package/source/src/cli/processIdentity.ts +38 -0
- package/source/src/cli/projectSkills.ts +1102 -0
- package/source/src/cli/projectTooling.ts +1140 -0
- package/source/src/cli/releaseConfig.ts +36 -0
- package/source/src/cli/releaseCredentials.ts +642 -0
- package/source/src/cli/releaseTrust.ts +194 -0
- package/source/src/cli/releaseTrustCommand.ts +210 -0
- package/source/src/cli/sourceConfig.ts +106 -0
- package/source/src/cli/sourceDev.ts +1279 -0
- package/source/src/cli/vercelBuildEnv.ts +714 -0
- package/source/src/cli/vercelEnvMask.ts +182 -0
- package/source/src/cli/vercelProjectRelease.ts +807 -0
- package/source/src/cli/vercelPulledEnv.ts +174 -0
- package/source/src/clientData/identity.ts +229 -0
- package/source/src/clientData/mod.ts +1 -0
- package/source/src/files/client.ts +75 -0
- package/source/src/files/errors.ts +69 -0
- package/source/src/files/hash.ts +109 -0
- package/source/src/files/memory.ts +158 -0
- package/source/src/files/metadata.ts +251 -0
- package/source/src/files/mod.ts +8 -0
- package/source/src/files/s3.ts +182 -0
- package/source/src/files/service.ts +210 -0
- package/source/src/files/types.ts +171 -0
- package/source/src/jobs/catalog.ts +303 -0
- package/source/src/jobs/controller.ts +156 -0
- package/source/src/jobs/direct.ts +177 -0
- package/source/src/jobs/events.ts +74 -0
- package/source/src/jobs/format.ts +233 -0
- package/source/src/jobs/http.ts +83 -0
- package/source/src/jobs/log.ts +10 -0
- package/source/src/jobs/mod.ts +10 -0
- package/source/src/jobs/run.ts +141 -0
- package/source/src/jobs/sanitize.ts +142 -0
- package/source/src/jobs/types.ts +43 -0
- package/source/src/mail/errors.ts +77 -0
- package/source/src/mail/memory.ts +451 -0
- package/source/src/mail/mod.ts +5 -0
- package/source/src/mail/postal.ts +363 -0
- package/source/src/mail/retry.ts +30 -0
- package/source/src/mail/sender.ts +57 -0
- package/source/src/mail/service.ts +252 -0
- package/source/src/mail/types.ts +229 -0
- package/source/src/mui/apiKeys.tsx +1044 -0
- package/source/src/mui/apiKeysView.ts +535 -0
- package/source/src/mui/confirm.tsx +138 -0
- package/source/src/mui/mail.tsx +279 -0
- package/source/src/mui/mailView.ts +50 -0
- package/source/src/mui/mod.ts +3 -0
- package/source/src/next/apiKeys/mod.ts +393 -0
- package/{script/src/next/auth/client.d.ts → source/src/next/auth/client.ts} +19 -5
- package/source/src/next/auth/config.ts +207 -0
- package/source/src/next/auth/localTestLogin.ts +412 -0
- package/source/src/next/auth/mod.ts +3 -0
- package/source/src/next/auth/server.ts +94 -0
- package/source/src/next/files/mod.ts +1 -0
- package/source/src/next/files/route.ts +621 -0
- package/source/src/next/jobs/list.tsx +90 -0
- package/source/src/next/jobs/mod.ts +5 -0
- package/source/src/next/jobs/paths.ts +70 -0
- package/source/src/next/jobs/route.ts +207 -0
- package/source/src/next/jobs/run.tsx +888 -0
- package/source/src/next/jobs/runRequest.ts +92 -0
- package/source/src/next/jobs/stream.ts +33 -0
- package/source/src/next/mail/mod.ts +1 -0
- package/source/src/next/mail/route.ts +75 -0
- package/source/src/next/pwa/mod.tsx +453 -0
- package/source/src/next/pwa/worker.ts +59 -0
- package/source/src/next/secrets/constants.ts +2 -0
- package/source/src/next/secrets/mod.ts +319 -0
- package/source/src/next/sourceDev.ts +50 -0
- package/source/src/secrets/encoding.ts +102 -0
- package/source/src/secrets/errors.ts +58 -0
- package/source/src/secrets/fingerprint.ts +132 -0
- package/source/src/secrets/frame.ts +119 -0
- package/source/src/secrets/keyring.ts +225 -0
- package/source/src/secrets/legacy.ts +244 -0
- package/source/src/secrets/maintenance.ts +517 -0
- package/source/src/secrets/mod.ts +38 -0
- package/source/src/secrets/secrets.ts +926 -0
- package/db/databaseTls.test.ts +0 -171
- package/db/databaseUrl.test.ts +0 -72
- package/db/neonEndpoint.test.ts +0 -51
- package/db/testing.test.ts +0 -28
- package/deno.json +0 -3
- package/esm/_dnt.polyfills.d.ts +0 -166
- package/esm/_dnt.polyfills.d.ts.map +0 -1
- package/esm/_dnt.polyfills.js +0 -177
- package/esm/_dnt.shims.d.ts +0 -2
- package/esm/_dnt.shims.d.ts.map +0 -1
- package/esm/_dnt.shims.js +0 -57
- package/esm/package.json +0 -3
- package/script/_dnt.polyfills.d.ts +0 -166
- package/script/_dnt.polyfills.d.ts.map +0 -1
- package/script/_dnt.polyfills.js +0 -180
- package/script/_dnt.shims.d.ts +0 -2
- package/script/_dnt.shims.d.ts.map +0 -1
- package/script/_dnt.shims.js +0 -60
- package/script/bin/loom.d.ts +0 -2
- package/script/bin/loom.d.ts.map +0 -1
- package/script/bin/loom.js +0 -17
- package/script/mod.d.ts +0 -12
- package/script/mod.d.ts.map +0 -1
- package/script/mod.js +0 -27
- package/script/package.json +0 -3
- package/script/src/apiKeys/authorize.d.ts +0 -4
- package/script/src/apiKeys/authorize.d.ts.map +0 -1
- package/script/src/apiKeys/authorize.js +0 -258
- package/script/src/apiKeys/betterAuth.d.ts +0 -123
- package/script/src/apiKeys/betterAuth.d.ts.map +0 -1
- package/script/src/apiKeys/betterAuth.js +0 -169
- package/script/src/apiKeys/country.d.ts +0 -3
- package/script/src/apiKeys/country.d.ts.map +0 -1
- package/script/src/apiKeys/country.js +0 -10
- package/script/src/apiKeys/credentials.d.ts +0 -39
- package/script/src/apiKeys/credentials.d.ts.map +0 -1
- package/script/src/apiKeys/credentials.js +0 -121
- package/script/src/apiKeys/fingerprint.d.ts +0 -3
- package/script/src/apiKeys/fingerprint.d.ts.map +0 -1
- package/script/src/apiKeys/fingerprint.js +0 -8
- package/script/src/apiKeys/lifecycle.d.ts.map +0 -1
- package/script/src/apiKeys/lifecycle.js +0 -7
- package/script/src/apiKeys/limits.d.ts +0 -132
- package/script/src/apiKeys/limits.d.ts.map +0 -1
- package/script/src/apiKeys/limits.js +0 -254
- package/script/src/apiKeys/mod.d.ts +0 -13
- package/script/src/apiKeys/mod.d.ts.map +0 -1
- package/script/src/apiKeys/mod.js +0 -28
- package/script/src/apiKeys/permissions.d.ts +0 -56
- package/script/src/apiKeys/permissions.d.ts.map +0 -1
- package/script/src/apiKeys/permissions.js +0 -136
- package/script/src/apiKeys/policy.d.ts +0 -61
- package/script/src/apiKeys/policy.d.ts.map +0 -1
- package/script/src/apiKeys/policy.js +0 -94
- package/script/src/apiKeys/retention.d.ts +0 -55
- package/script/src/apiKeys/retention.d.ts.map +0 -1
- package/script/src/apiKeys/retention.js +0 -70
- package/script/src/apiKeys/types.d.ts +0 -242
- package/script/src/apiKeys/types.d.ts.map +0 -1
- package/script/src/apiKeys/types.js +0 -2
- package/script/src/cli/externalSkills.d.ts +0 -39
- package/script/src/cli/externalSkills.d.ts.map +0 -1
- package/script/src/cli/externalSkills.js +0 -204
- package/script/src/cli/filesR2Policy.d.ts +0 -33
- package/script/src/cli/filesR2Policy.d.ts.map +0 -1
- package/script/src/cli/filesR2Policy.js +0 -135
- package/script/src/cli/legacyManagedOutputs.d.ts +0 -33
- package/script/src/cli/legacyManagedOutputs.d.ts.map +0 -1
- package/script/src/cli/localDb.d.ts +0 -28
- package/script/src/cli/localDb.d.ts.map +0 -1
- package/script/src/cli/localDb.js +0 -370
- package/script/src/cli/localDevLock.d.ts +0 -97
- package/script/src/cli/localDevLock.d.ts.map +0 -1
- package/script/src/cli/localDevLock.js +0 -320
- package/script/src/cli/localDevPackage.d.ts +0 -172
- package/script/src/cli/localDevPackage.d.ts.map +0 -1
- package/script/src/cli/localDevPackage.js +0 -635
- package/script/src/cli/managedFiles.d.ts +0 -131
- package/script/src/cli/managedFiles.d.ts.map +0 -1
- package/script/src/cli/managedFiles.js +0 -536
- package/script/src/cli/migrationEnv.d.ts +0 -63
- package/script/src/cli/migrationEnv.d.ts.map +0 -1
- package/script/src/cli/migrationEnv.js +0 -217
- package/script/src/cli/mod.d.ts +0 -582
- package/script/src/cli/mod.d.ts.map +0 -1
- package/script/src/cli/mod.js +0 -17010
- package/script/src/cli/projectSkills.d.ts +0 -109
- package/script/src/cli/projectSkills.d.ts.map +0 -1
- package/script/src/cli/projectSkills.js +0 -749
- package/script/src/cli/projectTooling.d.ts +0 -164
- package/script/src/cli/projectTooling.d.ts.map +0 -1
- package/script/src/cli/projectTooling.js +0 -847
- package/script/src/cli/releaseConfig.d.ts +0 -10
- package/script/src/cli/releaseConfig.d.ts.map +0 -1
- package/script/src/cli/releaseConfig.js +0 -26
- package/script/src/cli/releaseCredentials.d.ts +0 -32
- package/script/src/cli/releaseCredentials.d.ts.map +0 -1
- package/script/src/cli/releaseCredentials.js +0 -392
- package/script/src/cli/releaseTrust.d.ts +0 -39
- package/script/src/cli/releaseTrust.d.ts.map +0 -1
- package/script/src/cli/releaseTrust.js +0 -130
- package/script/src/cli/releaseTrustCommand.d.ts +0 -18
- package/script/src/cli/releaseTrustCommand.d.ts.map +0 -1
- package/script/src/cli/releaseTrustCommand.js +0 -145
- package/script/src/cli/vercelBuildEnv.d.ts +0 -62
- package/script/src/cli/vercelBuildEnv.d.ts.map +0 -1
- package/script/src/cli/vercelBuildEnv.js +0 -418
- package/script/src/cli/vercelEnvMask.d.ts +0 -38
- package/script/src/cli/vercelEnvMask.d.ts.map +0 -1
- package/script/src/cli/vercelEnvMask.js +0 -142
- package/script/src/cli/vercelProjectRelease.d.ts +0 -38
- package/script/src/cli/vercelProjectRelease.d.ts.map +0 -1
- package/script/src/cli/vercelProjectRelease.js +0 -607
- package/script/src/cli/vercelPulledEnv.d.ts +0 -65
- package/script/src/cli/vercelPulledEnv.d.ts.map +0 -1
- package/script/src/cli/vercelPulledEnv.js +0 -138
- package/script/src/clientData/identity.d.ts +0 -89
- package/script/src/clientData/identity.d.ts.map +0 -1
- package/script/src/clientData/identity.js +0 -134
- package/script/src/clientData/mod.d.ts +0 -3
- package/script/src/clientData/mod.d.ts.map +0 -1
- package/script/src/clientData/mod.js +0 -18
- package/script/src/files/client.d.ts +0 -29
- package/script/src/files/client.d.ts.map +0 -1
- package/script/src/files/client.js +0 -45
- package/script/src/files/errors.d.ts +0 -37
- package/script/src/files/errors.d.ts.map +0 -1
- package/script/src/files/errors.js +0 -76
- package/script/src/files/hash.d.ts +0 -15
- package/script/src/files/hash.d.ts.map +0 -1
- package/script/src/files/hash.js +0 -89
- package/script/src/files/memory.d.ts +0 -29
- package/script/src/files/memory.d.ts.map +0 -1
- package/script/src/files/memory.js +0 -113
- package/script/src/files/metadata.d.ts +0 -10
- package/script/src/files/metadata.d.ts.map +0 -1
- package/script/src/files/metadata.js +0 -189
- package/script/src/files/mod.d.ts +0 -10
- package/script/src/files/mod.d.ts.map +0 -1
- package/script/src/files/mod.js +0 -25
- package/script/src/files/s3.d.ts +0 -29
- package/script/src/files/s3.d.ts.map +0 -1
- package/script/src/files/s3.js +0 -110
- package/script/src/files/service.d.ts +0 -27
- package/script/src/files/service.d.ts.map +0 -1
- package/script/src/files/service.js +0 -139
- package/script/src/files/types.d.ts +0 -134
- package/script/src/files/types.d.ts.map +0 -1
- package/script/src/files/types.js +0 -2
- package/script/src/jobs/catalog.d.ts +0 -32
- package/script/src/jobs/catalog.d.ts.map +0 -1
- package/script/src/jobs/catalog.js +0 -223
- package/script/src/jobs/controller.d.ts +0 -41
- package/script/src/jobs/controller.d.ts.map +0 -1
- package/script/src/jobs/controller.js +0 -151
- package/script/src/jobs/direct.d.ts +0 -36
- package/script/src/jobs/direct.d.ts.map +0 -1
- package/script/src/jobs/direct.js +0 -128
- package/script/src/jobs/events.d.ts +0 -23
- package/script/src/jobs/events.d.ts.map +0 -1
- package/script/src/jobs/events.js +0 -50
- package/script/src/jobs/format.d.ts +0 -16
- package/script/src/jobs/format.d.ts.map +0 -1
- package/script/src/jobs/format.js +0 -193
- package/script/src/jobs/http.d.ts +0 -22
- package/script/src/jobs/http.d.ts.map +0 -1
- package/script/src/jobs/http.js +0 -50
- package/script/src/jobs/log.d.ts +0 -2
- package/script/src/jobs/log.d.ts.map +0 -1
- package/script/src/jobs/log.js +0 -13
- package/script/src/jobs/mod.d.ts +0 -11
- package/script/src/jobs/mod.d.ts.map +0 -1
- package/script/src/jobs/mod.js +0 -26
- package/script/src/jobs/run.d.ts +0 -39
- package/script/src/jobs/run.d.ts.map +0 -1
- package/script/src/jobs/run.js +0 -86
- package/script/src/jobs/sanitize.d.ts +0 -30
- package/script/src/jobs/sanitize.d.ts.map +0 -1
- package/script/src/jobs/sanitize.js +0 -97
- package/script/src/jobs/types.d.ts +0 -31
- package/script/src/jobs/types.d.ts.map +0 -1
- package/script/src/jobs/types.js +0 -2
- package/script/src/mail/errors.d.ts +0 -33
- package/script/src/mail/errors.d.ts.map +0 -1
- package/script/src/mail/errors.js +0 -97
- package/script/src/mail/memory.d.ts +0 -30
- package/script/src/mail/memory.d.ts.map +0 -1
- package/script/src/mail/memory.js +0 -345
- package/script/src/mail/mod.d.ts +0 -7
- package/script/src/mail/mod.d.ts.map +0 -1
- package/script/src/mail/mod.js +0 -22
- package/script/src/mail/postal.d.ts +0 -57
- package/script/src/mail/postal.d.ts.map +0 -1
- package/script/src/mail/postal.js +0 -251
- package/script/src/mail/retry.d.ts +0 -9
- package/script/src/mail/retry.d.ts.map +0 -1
- package/script/src/mail/retry.js +0 -22
- package/script/src/mail/sender.d.ts +0 -5
- package/script/src/mail/sender.d.ts.map +0 -1
- package/script/src/mail/sender.js +0 -52
- package/script/src/mail/service.d.ts +0 -23
- package/script/src/mail/service.d.ts.map +0 -1
- package/script/src/mail/service.js +0 -191
- package/script/src/mail/types.d.ts +0 -176
- package/script/src/mail/types.d.ts.map +0 -1
- package/script/src/mail/types.js +0 -2
- package/script/src/mui/apiKeys.d.ts +0 -171
- package/script/src/mui/apiKeys.d.ts.map +0 -1
- package/script/src/mui/apiKeys.js +0 -470
- package/script/src/mui/apiKeysView.d.ts +0 -193
- package/script/src/mui/apiKeysView.d.ts.map +0 -1
- package/script/src/mui/apiKeysView.js +0 -331
- package/script/src/mui/confirm.d.ts +0 -12
- package/script/src/mui/confirm.d.ts.map +0 -1
- package/script/src/mui/confirm.js +0 -85
- package/script/src/mui/mail.d.ts +0 -29
- package/script/src/mui/mail.d.ts.map +0 -1
- package/script/src/mui/mail.js +0 -159
- package/script/src/mui/mailView.d.ts +0 -20
- package/script/src/mui/mailView.d.ts.map +0 -1
- package/script/src/mui/mailView.js +0 -32
- package/script/src/mui/mod.d.ts +0 -5
- package/script/src/mui/mod.d.ts.map +0 -1
- package/script/src/mui/mod.js +0 -20
- package/script/src/next/apiKeys/mod.d.ts +0 -71
- package/script/src/next/apiKeys/mod.d.ts.map +0 -1
- package/script/src/next/apiKeys/mod.js +0 -227
- package/script/src/next/auth/client.d.ts.map +0 -1
- package/script/src/next/auth/client.js +0 -39
- package/script/src/next/auth/config.d.ts +0 -62
- package/script/src/next/auth/config.d.ts.map +0 -1
- package/script/src/next/auth/config.js +0 -178
- package/script/src/next/auth/localTestLogin.d.ts +0 -75
- package/script/src/next/auth/localTestLogin.d.ts.map +0 -1
- package/script/src/next/auth/localTestLogin.js +0 -291
- package/script/src/next/auth/mod.d.ts +0 -4
- package/script/src/next/auth/mod.d.ts.map +0 -1
- package/script/src/next/auth/mod.js +0 -19
- package/script/src/next/auth/server.d.ts +0 -44
- package/script/src/next/auth/server.d.ts.map +0 -1
- package/script/src/next/auth/server.js +0 -39
- package/script/src/next/files/mod.d.ts +0 -3
- package/script/src/next/files/mod.d.ts.map +0 -1
- package/script/src/next/files/mod.js +0 -18
- package/script/src/next/files/route.d.ts +0 -99
- package/script/src/next/files/route.d.ts.map +0 -1
- package/script/src/next/files/route.js +0 -353
- package/script/src/next/jobs/list.d.ts +0 -25
- package/script/src/next/jobs/list.d.ts.map +0 -1
- package/script/src/next/jobs/list.js +0 -48
- package/script/src/next/jobs/mod.d.ts +0 -6
- package/script/src/next/jobs/mod.d.ts.map +0 -1
- package/script/src/next/jobs/mod.js +0 -21
- package/script/src/next/jobs/paths.d.ts +0 -14
- package/script/src/next/jobs/paths.d.ts.map +0 -1
- package/script/src/next/jobs/paths.js +0 -47
- package/script/src/next/jobs/route.d.ts +0 -48
- package/script/src/next/jobs/route.d.ts.map +0 -1
- package/script/src/next/jobs/route.js +0 -105
- package/script/src/next/jobs/run.d.ts +0 -58
- package/script/src/next/jobs/run.d.ts.map +0 -1
- package/script/src/next/jobs/run.js +0 -592
- package/script/src/next/jobs/runRequest.d.ts +0 -19
- package/script/src/next/jobs/runRequest.d.ts.map +0 -1
- package/script/src/next/jobs/runRequest.js +0 -81
- package/script/src/next/jobs/stream.d.ts +0 -3
- package/script/src/next/jobs/stream.d.ts.map +0 -1
- package/script/src/next/jobs/stream.js +0 -28
- package/script/src/next/mail/mod.d.ts +0 -3
- package/script/src/next/mail/mod.d.ts.map +0 -1
- package/script/src/next/mail/mod.js +0 -18
- package/script/src/next/mail/route.d.ts +0 -12
- package/script/src/next/mail/route.d.ts.map +0 -1
- package/script/src/next/mail/route.js +0 -46
- package/script/src/next/pwa/mod.d.ts +0 -112
- package/script/src/next/pwa/mod.d.ts.map +0 -1
- package/script/src/next/pwa/mod.js +0 -303
- package/script/src/next/pwa/worker.d.ts +0 -27
- package/script/src/next/pwa/worker.d.ts.map +0 -1
- package/script/src/next/pwa/worker.js +0 -33
- package/script/src/next/secrets/mod.d.ts +0 -108
- package/script/src/next/secrets/mod.d.ts.map +0 -1
- package/script/src/next/secrets/mod.js +0 -218
- package/script/src/secrets/encoding.d.ts +0 -32
- package/script/src/secrets/encoding.d.ts.map +0 -1
- package/script/src/secrets/encoding.js +0 -95
- package/script/src/secrets/errors.d.ts +0 -45
- package/script/src/secrets/errors.d.ts.map +0 -1
- package/script/src/secrets/errors.js +0 -45
- package/script/src/secrets/fingerprint.d.ts +0 -43
- package/script/src/secrets/fingerprint.d.ts.map +0 -1
- package/script/src/secrets/fingerprint.js +0 -92
- package/script/src/secrets/frame.d.ts +0 -34
- package/script/src/secrets/frame.d.ts.map +0 -1
- package/script/src/secrets/frame.js +0 -91
- package/script/src/secrets/keyring.d.ts +0 -62
- package/script/src/secrets/keyring.d.ts.map +0 -1
- package/script/src/secrets/keyring.js +0 -202
- package/script/src/secrets/legacy.d.ts +0 -60
- package/script/src/secrets/legacy.d.ts.map +0 -1
- package/script/src/secrets/legacy.js +0 -186
- package/script/src/secrets/maintenance.d.ts +0 -173
- package/script/src/secrets/maintenance.d.ts.map +0 -1
- package/script/src/secrets/maintenance.js +0 -323
- package/script/src/secrets/mod.d.ts +0 -6
- package/script/src/secrets/mod.d.ts.map +0 -1
- package/script/src/secrets/mod.js +0 -24
- package/script/src/secrets/secrets.d.ts +0 -192
- package/script/src/secrets/secrets.d.ts.map +0 -1
- package/script/src/secrets/secrets.js +0 -532
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.hasApiKeyPermission = hasApiKeyPermission;
|
|
4
|
-
exports.decodeStoredApiKeyPermissions = decodeStoredApiKeyPermissions;
|
|
5
|
-
exports.apiKeyPermissionsFromScopeIds = apiKeyPermissionsFromScopeIds;
|
|
6
|
-
exports.apiKeyScopeIdsFromPermissions = apiKeyScopeIdsFromPermissions;
|
|
7
|
-
exports.apiKeyPrincipalPermissions = apiKeyPrincipalPermissions;
|
|
8
|
-
exports.apiKeyGrantedPermissions = apiKeyGrantedPermissions;
|
|
9
|
-
const hasOwn = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
|
|
10
|
-
/** Returns `value` only when it is a plain (JSON-shaped) object. */
|
|
11
|
-
function asPermissionRecord(value) {
|
|
12
|
-
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
13
|
-
return null;
|
|
14
|
-
const prototype = Object.getPrototypeOf(value);
|
|
15
|
-
if (prototype !== Object.prototype && prototype !== null)
|
|
16
|
-
return null;
|
|
17
|
-
return value;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Reports whether decoded api-key permissions grant exactly `permission`.
|
|
21
|
-
*
|
|
22
|
-
* `decoded` must already be decoded: Better Auth's `verifyApiKey` result, or a
|
|
23
|
-
* raw column passed through `decodeStoredApiKeyPermissions`. Strings are never
|
|
24
|
-
* decoded here, because Better Auth has already decoded the column once; a
|
|
25
|
-
* string at this point means double-encoded storage, which Better Auth's own
|
|
26
|
-
* check denies too.
|
|
27
|
-
*
|
|
28
|
-
* Fails closed: anything but a plain or null-prototype object, inherited
|
|
29
|
-
* properties, non-array action lists, and non-identical action strings never
|
|
30
|
-
* match. This is stricter than Better Auth's check, which reads inherited
|
|
31
|
-
* properties and would substring-match an action list stored as a string.
|
|
32
|
-
*/
|
|
33
|
-
function hasApiKeyPermission(decoded, permission) {
|
|
34
|
-
if (!permission || typeof permission !== "object")
|
|
35
|
-
return false;
|
|
36
|
-
const { action, resource } = permission;
|
|
37
|
-
if (typeof resource !== "string" || typeof action !== "string")
|
|
38
|
-
return false;
|
|
39
|
-
if (!resource || !action)
|
|
40
|
-
return false;
|
|
41
|
-
const record = asPermissionRecord(decoded);
|
|
42
|
-
if (!record || !hasOwn(record, resource))
|
|
43
|
-
return false;
|
|
44
|
-
const actions = record[resource];
|
|
45
|
-
return Array.isArray(actions) && actions.includes(action);
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Decodes a raw stored `apikey.permissions` value exactly once.
|
|
49
|
-
*
|
|
50
|
-
* Better Auth stores permissions as JSON text. A string is parsed once, and
|
|
51
|
-
* malformed JSON yields `null`; any other value is returned unchanged so a
|
|
52
|
-
* database driver that already decoded the column still works. JSON that
|
|
53
|
-
* decodes to another string, i.e. double-encoded storage, is returned as that
|
|
54
|
-
* string and therefore grants nothing.
|
|
55
|
-
*/
|
|
56
|
-
function decodeStoredApiKeyPermissions(stored) {
|
|
57
|
-
if (typeof stored !== "string")
|
|
58
|
-
return stored;
|
|
59
|
-
try {
|
|
60
|
-
return JSON.parse(stored);
|
|
61
|
-
}
|
|
62
|
-
catch {
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Converts scope IDs into the native permissions to store on a new key.
|
|
68
|
-
*
|
|
69
|
-
* Actions for scopes that share a resource are merged rather than replaced,
|
|
70
|
-
* and duplicates are removed. An ID that is not an own registry entry throws:
|
|
71
|
-
* validate untrusted input against the registry first.
|
|
72
|
-
*/
|
|
73
|
-
function apiKeyPermissionsFromScopeIds(registry, scopeIds) {
|
|
74
|
-
if (!Array.isArray(scopeIds)) {
|
|
75
|
-
throw new Error("API-key scope IDs must be an array.");
|
|
76
|
-
}
|
|
77
|
-
const actionsByResource = new Map();
|
|
78
|
-
for (const scopeId of scopeIds) {
|
|
79
|
-
if (typeof scopeId !== "string" || !hasOwn(registry.byId, scopeId)) {
|
|
80
|
-
throw new Error(`Unknown API-key scope "${String(scopeId)}".`);
|
|
81
|
-
}
|
|
82
|
-
const { action, resource } = registry.byId[scopeId].permission;
|
|
83
|
-
const actions = actionsByResource.get(resource) ?? [];
|
|
84
|
-
if (!actions.includes(action))
|
|
85
|
-
actions.push(action);
|
|
86
|
-
actionsByResource.set(resource, actions);
|
|
87
|
-
}
|
|
88
|
-
// `Object.fromEntries` defines own data properties, so a resource such as
|
|
89
|
-
// "__proto__" cannot change the result's prototype.
|
|
90
|
-
return Object.fromEntries(actionsByResource);
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Lists the registry scope IDs that decoded permissions grant exactly, in
|
|
94
|
-
* registry order. Grants outside the registry are ignored.
|
|
95
|
-
*/
|
|
96
|
-
function apiKeyScopeIdsFromPermissions(registry, decoded) {
|
|
97
|
-
return registry.list
|
|
98
|
-
.filter((scope) => hasApiKeyPermission(decoded, scope.permission))
|
|
99
|
-
.map((scope) => scope.id);
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Builds the explicit principal permissions for a verified key: the registry
|
|
103
|
-
* permissions that decoded permissions grant exactly, in registry order.
|
|
104
|
-
*/
|
|
105
|
-
function apiKeyPrincipalPermissions(registry, decoded) {
|
|
106
|
-
return registry.list
|
|
107
|
-
.filter((scope) => hasApiKeyPermission(decoded, scope.permission))
|
|
108
|
-
.map((scope) => ({
|
|
109
|
-
action: scope.permission.action,
|
|
110
|
-
resource: scope.permission.resource,
|
|
111
|
-
}));
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Flattens every exact grant in decoded permissions, for verifiers without a
|
|
115
|
-
* registry. Non-plain objects, inherited properties, non-array action lists,
|
|
116
|
-
* and non-string or empty actions are skipped.
|
|
117
|
-
*/
|
|
118
|
-
function apiKeyGrantedPermissions(decoded) {
|
|
119
|
-
const record = asPermissionRecord(decoded);
|
|
120
|
-
if (!record)
|
|
121
|
-
return [];
|
|
122
|
-
const permissions = [];
|
|
123
|
-
for (const resource of Object.keys(record)) {
|
|
124
|
-
const actions = record[resource];
|
|
125
|
-
if (!resource || !Array.isArray(actions))
|
|
126
|
-
continue;
|
|
127
|
-
const seen = new Set();
|
|
128
|
-
for (const action of actions) {
|
|
129
|
-
if (typeof action !== "string" || !action || seen.has(action))
|
|
130
|
-
continue;
|
|
131
|
-
seen.add(action);
|
|
132
|
-
permissions.push({ action, resource });
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
return permissions;
|
|
136
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { ApiKeyAuthorizationDescriptor, ApiKeyPermission, ApiKeyPolicy, ApiKeyPolicyResult, ApiKeyPrincipal } from "./types.js";
|
|
2
|
-
/** Minimum shape for one app-owned API-key scope definition. */
|
|
3
|
-
export interface ApiKeyScopeDefinition {
|
|
4
|
-
/** Native resource/action permission stored and verified by the auth provider. */
|
|
5
|
-
permission: ApiKeyPermission;
|
|
6
|
-
}
|
|
7
|
-
export type ApiKeyScopeDefinitions = Readonly<Record<string, ApiKeyScopeDefinition>>;
|
|
8
|
-
type ApiKeyScopeId<TDefinitions extends ApiKeyScopeDefinitions> = Extract<keyof TDefinitions, string>;
|
|
9
|
-
/** A scope definition projected into a list with its record key as `id`. */
|
|
10
|
-
export type ApiKeyScopeListItem<TDefinitions extends ApiKeyScopeDefinitions> = {
|
|
11
|
-
[TId in ApiKeyScopeId<TDefinitions>]: Readonly<{
|
|
12
|
-
id: TId;
|
|
13
|
-
} & TDefinitions[TId]>;
|
|
14
|
-
}[ApiKeyScopeId<TDefinitions>];
|
|
15
|
-
/** Typed projections derived from one app-owned scope definition record. */
|
|
16
|
-
export interface DefinedApiKeyScopes<TDefinitions extends ApiKeyScopeDefinitions> {
|
|
17
|
-
/** Original definitions indexed by stable app-owned scope ID. */
|
|
18
|
-
readonly byId: TDefinitions;
|
|
19
|
-
/** Stable scope IDs in definition order. */
|
|
20
|
-
readonly ids: readonly ApiKeyScopeId<TDefinitions>[];
|
|
21
|
-
/** Definitions in UI-friendly list form with an added `id`. */
|
|
22
|
-
readonly list: readonly ApiKeyScopeListItem<TDefinitions>[];
|
|
23
|
-
/** Native permissions indexed by stable app-owned scope ID. */
|
|
24
|
-
readonly permissions: {
|
|
25
|
-
readonly [TId in ApiKeyScopeId<TDefinitions>]: TDefinitions[TId]["permission"];
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
/** Context supplied to an app-owned dynamic policy rule. */
|
|
29
|
-
export interface ApiKeyPolicyRuleContext {
|
|
30
|
-
/** Protected operation and exact permission requested by the route. */
|
|
31
|
-
descriptor: ApiKeyAuthorizationDescriptor;
|
|
32
|
-
/** Explicit key principal returned by the consumer verifier. */
|
|
33
|
-
principal: ApiKeyPrincipal;
|
|
34
|
-
}
|
|
35
|
-
/** A static decision or fresh app-owned eligibility check for one scope. */
|
|
36
|
-
export type ApiKeyPolicyRule = "allow" | "deny" | ((context: ApiKeyPolicyRuleContext) => ApiKeyPolicyResult | Promise<ApiKeyPolicyResult>);
|
|
37
|
-
/** Exhaustive policy rules keyed by the registry's stable scope IDs. */
|
|
38
|
-
export type ApiKeyPolicyRules<TDefinitions extends ApiKeyScopeDefinitions> = {
|
|
39
|
-
readonly [TId in ApiKeyScopeId<TDefinitions>]: ApiKeyPolicyRule;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Defines one app's scopes and derives typed list and permission projections.
|
|
43
|
-
*
|
|
44
|
-
* Scope IDs and native resource/action pairs should remain stable after keys
|
|
45
|
-
* have been issued. Duplicate pairs are rejected because policy dispatch would
|
|
46
|
-
* otherwise be ambiguous.
|
|
47
|
-
*/
|
|
48
|
-
export declare function defineApiKeyScopes<const TDefinitions extends ApiKeyScopeDefinitions>(definitions: TDefinitions): DefinedApiKeyScopes<TDefinitions>;
|
|
49
|
-
/**
|
|
50
|
-
* Creates an exact-match, default-deny policy from a typed scope registry.
|
|
51
|
-
*
|
|
52
|
-
* The verifier remains responsible for proving that the key owns the requested
|
|
53
|
-
* native permission; for Better Auth, `createBetterAuthApiKeyVerifier` checks
|
|
54
|
-
* the decoded grants itself, because the plugin reports a missing permission
|
|
55
|
-
* as an unknown key. Dynamic rules are for fresh app-owned checks such as
|
|
56
|
-
* current role membership; thrown errors intentionally reach Loom's existing
|
|
57
|
-
* `policy_error` handling.
|
|
58
|
-
*/
|
|
59
|
-
export declare function createApiKeyPolicy<const TDefinitions extends ApiKeyScopeDefinitions>(registry: DefinedApiKeyScopes<TDefinitions>, rules: ApiKeyPolicyRules<TDefinitions>): ApiKeyPolicy;
|
|
60
|
-
export {};
|
|
61
|
-
//# sourceMappingURL=policy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../../src/src/apiKeys/policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,gEAAgE;AAChE,MAAM,WAAW,qBAAqB;IACpC,kFAAkF;IAClF,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CACtC,CAAC;AAEF,KAAK,aAAa,CAAC,YAAY,SAAS,sBAAsB,IAAI,OAAO,CACvE,MAAM,YAAY,EAClB,MAAM,CACP,CAAC;AAEF,4EAA4E;AAC5E,MAAM,MAAM,mBAAmB,CAC7B,YAAY,SAAS,sBAAsB,IACzC;KACD,GAAG,IAAI,aAAa,CAAC,YAAY,CAAC,GAAG,QAAQ,CAC5C;QAAE,EAAE,EAAE,GAAG,CAAA;KAAE,GAAG,YAAY,CAAC,GAAG,CAAC,CAChC;CACF,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC;AAE/B,4EAA4E;AAC5E,MAAM,WAAW,mBAAmB,CAClC,YAAY,SAAS,sBAAsB;IAE3C,iEAAiE;IACjE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,4CAA4C;IAC5C,QAAQ,CAAC,GAAG,EAAE,SAAS,aAAa,CAAC,YAAY,CAAC,EAAE,CAAC;IACrD,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,SAAS,mBAAmB,CAAC,YAAY,CAAC,EAAE,CAAC;IAC5D,+DAA+D;IAC/D,QAAQ,CAAC,WAAW,EAAE;QACpB,QAAQ,EAAE,GAAG,IAAI,aAAa,CAAC,YAAY,CAAC,GAC1C,YAAY,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC;KAClC,CAAC;CACH;AAED,4DAA4D;AAC5D,MAAM,WAAW,uBAAuB;IACtC,uEAAuE;IACvE,UAAU,EAAE,6BAA6B,CAAC;IAC1C,gEAAgE;IAChE,SAAS,EAAE,eAAe,CAAC;CAC5B;AAED,4EAA4E;AAC5E,MAAM,MAAM,gBAAgB,GACxB,OAAO,GACP,MAAM,GACN,CAAC,CACD,OAAO,EAAE,uBAAuB,KAC7B,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAEzD,wEAAwE;AACxE,MAAM,MAAM,iBAAiB,CAC3B,YAAY,SAAS,sBAAsB,IACzC;IACF,QAAQ,EAAE,GAAG,IAAI,aAAa,CAAC,YAAY,CAAC,GAAG,gBAAgB;CAChE,CAAC;AA+CF;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,CAAC,YAAY,SAAS,sBAAsB,EACjD,WAAW,EAAE,YAAY,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAkB9D;AAsBD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,CAAC,YAAY,SAAS,sBAAsB,EAEjD,QAAQ,EAAE,mBAAmB,CAAC,YAAY,CAAC,EAC3C,KAAK,EAAE,iBAAiB,CAAC,YAAY,CAAC,GACrC,YAAY,CAiBd"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defineApiKeyScopes = defineApiKeyScopes;
|
|
4
|
-
exports.createApiKeyPolicy = createApiKeyPolicy;
|
|
5
|
-
function permissionKey(permission) {
|
|
6
|
-
return JSON.stringify([permission.resource, permission.action]);
|
|
7
|
-
}
|
|
8
|
-
function assertPermission(scopeId, permission) {
|
|
9
|
-
for (const field of ["resource", "action"]) {
|
|
10
|
-
const value = permission[field];
|
|
11
|
-
if (typeof value !== "string" ||
|
|
12
|
-
value.length === 0 ||
|
|
13
|
-
value !== value.trim()) {
|
|
14
|
-
throw new Error(`API-key scope "${scopeId}" has an invalid permission ${field}.`);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
function indexScopePermissions(definitions) {
|
|
19
|
-
const scopeIdByPermission = new Map();
|
|
20
|
-
for (const scopeId of Object.keys(definitions)) {
|
|
21
|
-
const permission = definitions[scopeId].permission;
|
|
22
|
-
assertPermission(scopeId, permission);
|
|
23
|
-
const key = permissionKey(permission);
|
|
24
|
-
const existing = scopeIdByPermission.get(key);
|
|
25
|
-
if (existing !== undefined) {
|
|
26
|
-
throw new Error(`API-key scopes "${existing}" and "${scopeId}" use the same permission.`);
|
|
27
|
-
}
|
|
28
|
-
scopeIdByPermission.set(key, scopeId);
|
|
29
|
-
}
|
|
30
|
-
return scopeIdByPermission;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Defines one app's scopes and derives typed list and permission projections.
|
|
34
|
-
*
|
|
35
|
-
* Scope IDs and native resource/action pairs should remain stable after keys
|
|
36
|
-
* have been issued. Duplicate pairs are rejected because policy dispatch would
|
|
37
|
-
* otherwise be ambiguous.
|
|
38
|
-
*/
|
|
39
|
-
function defineApiKeyScopes(definitions) {
|
|
40
|
-
const ids = Object.keys(definitions);
|
|
41
|
-
if (ids.length === 0) {
|
|
42
|
-
throw new Error("Define at least one API-key scope.");
|
|
43
|
-
}
|
|
44
|
-
indexScopePermissions(definitions);
|
|
45
|
-
const list = ids.map((id) => ({
|
|
46
|
-
...definitions[id],
|
|
47
|
-
id,
|
|
48
|
-
}));
|
|
49
|
-
const permissions = Object.fromEntries(ids.map((id) => [id, definitions[id].permission]));
|
|
50
|
-
return { byId: definitions, ids, list, permissions };
|
|
51
|
-
}
|
|
52
|
-
function assertPolicyRules(registry, rules) {
|
|
53
|
-
const scopeIds = new Set(registry.ids);
|
|
54
|
-
for (const scopeId of registry.ids) {
|
|
55
|
-
if (!Object.prototype.hasOwnProperty.call(rules, scopeId)) {
|
|
56
|
-
throw new Error(`Missing API-key policy rule for scope "${scopeId}".`);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
for (const [scopeId, rule] of Object.entries(rules)) {
|
|
60
|
-
if (!scopeIds.has(scopeId)) {
|
|
61
|
-
throw new Error(`Unknown API-key policy rule scope "${scopeId}".`);
|
|
62
|
-
}
|
|
63
|
-
if (rule !== "allow" && rule !== "deny" && typeof rule !== "function") {
|
|
64
|
-
throw new Error(`Invalid API-key policy rule for scope "${scopeId}".`);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Creates an exact-match, default-deny policy from a typed scope registry.
|
|
70
|
-
*
|
|
71
|
-
* The verifier remains responsible for proving that the key owns the requested
|
|
72
|
-
* native permission; for Better Auth, `createBetterAuthApiKeyVerifier` checks
|
|
73
|
-
* the decoded grants itself, because the plugin reports a missing permission
|
|
74
|
-
* as an unknown key. Dynamic rules are for fresh app-owned checks such as
|
|
75
|
-
* current role membership; thrown errors intentionally reach Loom's existing
|
|
76
|
-
* `policy_error` handling.
|
|
77
|
-
*/
|
|
78
|
-
function createApiKeyPolicy(registry, rules) {
|
|
79
|
-
const scopeIdByPermission = indexScopePermissions(registry.byId);
|
|
80
|
-
assertPolicyRules(registry, rules);
|
|
81
|
-
return {
|
|
82
|
-
async authorize(principal, descriptor) {
|
|
83
|
-
const scopeId = scopeIdByPermission.get(permissionKey(descriptor.permission));
|
|
84
|
-
if (scopeId === undefined)
|
|
85
|
-
return { ok: false, code: "forbidden" };
|
|
86
|
-
const rule = rules[scopeId];
|
|
87
|
-
if (rule === "allow")
|
|
88
|
-
return { ok: true };
|
|
89
|
-
if (rule === "deny")
|
|
90
|
-
return { ok: false, code: "forbidden" };
|
|
91
|
-
return await rule({ descriptor, principal });
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_API_KEY_AUDIT_RETENTION: Readonly<{
|
|
2
|
-
cleanupBatchSize: 1000;
|
|
3
|
-
maxAgeDays: 180;
|
|
4
|
-
maxRequestsPerKey: 5000;
|
|
5
|
-
}>;
|
|
6
|
-
/** Bounded retention for API-key request groups. */
|
|
7
|
-
export interface ApiKeyAuditRetentionPolicy {
|
|
8
|
-
/** Maximum authorization request groups deleted in one transaction. */
|
|
9
|
-
cleanupBatchSize: number;
|
|
10
|
-
/** Maximum age of all events, including denials without an attributed key. */
|
|
11
|
-
maxAgeDays: number;
|
|
12
|
-
/** Maximum authorization request groups retained for each attributed key. */
|
|
13
|
-
maxRequestsPerKey: number;
|
|
14
|
-
}
|
|
15
|
-
export interface ApiKeyAuditPruneBatchRequest {
|
|
16
|
-
/** Delete request groups older than this instant before applying the key cap. */
|
|
17
|
-
cutoffOccurredAt: string;
|
|
18
|
-
maxRequestsPerKey: number;
|
|
19
|
-
requestBatchSize: number;
|
|
20
|
-
}
|
|
21
|
-
export interface ApiKeyAuditPruneBatchResult {
|
|
22
|
-
/** Number of physical authorization and completion rows deleted. */
|
|
23
|
-
deletedEvents: number;
|
|
24
|
-
/** Number of authorization request groups deleted. */
|
|
25
|
-
deletedRequests: number;
|
|
26
|
-
/** Whether another batch currently qualifies for the same policy. */
|
|
27
|
-
hasMore: boolean;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* App-owned transactional deletion for API-key audit retention.
|
|
31
|
-
* Implementations must delete an authorization event and its completion event
|
|
32
|
-
* together, retain the newest request groups when enforcing the per-key cap,
|
|
33
|
-
* and apply the age cutoff to unattributed denials.
|
|
34
|
-
*/
|
|
35
|
-
export interface ApiKeyAuditRetentionRepository {
|
|
36
|
-
pruneBatch(request: ApiKeyAuditPruneBatchRequest): Promise<ApiKeyAuditPruneBatchResult>;
|
|
37
|
-
}
|
|
38
|
-
export interface ApiKeyAuditRetentionResult {
|
|
39
|
-
batches: number;
|
|
40
|
-
complete: boolean;
|
|
41
|
-
cutoffOccurredAt: string;
|
|
42
|
-
deletedEvents: number;
|
|
43
|
-
deletedRequests: number;
|
|
44
|
-
}
|
|
45
|
-
/** Validates overrides and fills the recommended general-purpose defaults. */
|
|
46
|
-
export declare function createApiKeyAuditRetentionPolicy(overrides?: Partial<ApiKeyAuditRetentionPolicy>): ApiKeyAuditRetentionPolicy;
|
|
47
|
-
/** Runs bounded retention batches without coupling Loom to an app database. */
|
|
48
|
-
export declare function runApiKeyAuditRetention(options: {
|
|
49
|
-
/** Safety bound for one scheduled invocation; defaults to 100 batches. */
|
|
50
|
-
maxBatches?: number;
|
|
51
|
-
now?: Date;
|
|
52
|
-
policy?: Partial<ApiKeyAuditRetentionPolicy>;
|
|
53
|
-
repository: ApiKeyAuditRetentionRepository;
|
|
54
|
-
}): Promise<ApiKeyAuditRetentionResult>;
|
|
55
|
-
//# sourceMappingURL=retention.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../../src/src/apiKeys/retention.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B;;;;EAI1C,CAAC;AAEH,oDAAoD;AACpD,MAAM,WAAW,0BAA0B;IACzC,uEAAuE;IACvE,gBAAgB,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,UAAU,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,4BAA4B;IAC3C,iFAAiF;IACjF,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,2BAA2B;IAC1C,oEAAoE;IACpE,aAAa,EAAE,MAAM,CAAC;IACtB,sDAAsD;IACtD,eAAe,EAAE,MAAM,CAAC;IACxB,qEAAqE;IACrE,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,8BAA8B;IAC7C,UAAU,CACR,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB;AASD,8EAA8E;AAC9E,wBAAgB,gCAAgC,CAC9C,SAAS,GAAE,OAAO,CAAC,0BAA0B,CAAM,GAClD,0BAA0B,CAiB5B;AAED,+EAA+E;AAC/E,wBAAsB,uBAAuB,CAAC,OAAO,EAAE;IACrD,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,MAAM,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAC7C,UAAU,EAAE,8BAA8B,CAAC;CAC5C,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAyCtC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_API_KEY_AUDIT_RETENTION = void 0;
|
|
4
|
-
exports.createApiKeyAuditRetentionPolicy = createApiKeyAuditRetentionPolicy;
|
|
5
|
-
exports.runApiKeyAuditRetention = runApiKeyAuditRetention;
|
|
6
|
-
exports.DEFAULT_API_KEY_AUDIT_RETENTION = Object.freeze({
|
|
7
|
-
cleanupBatchSize: 1_000,
|
|
8
|
-
maxAgeDays: 180,
|
|
9
|
-
maxRequestsPerKey: 5_000,
|
|
10
|
-
});
|
|
11
|
-
function positiveInteger(value, name) {
|
|
12
|
-
if (!Number.isSafeInteger(value) || value < 1) {
|
|
13
|
-
throw new TypeError(`${name} must be a positive safe integer.`);
|
|
14
|
-
}
|
|
15
|
-
return value;
|
|
16
|
-
}
|
|
17
|
-
/** Validates overrides and fills the recommended general-purpose defaults. */
|
|
18
|
-
function createApiKeyAuditRetentionPolicy(overrides = {}) {
|
|
19
|
-
return {
|
|
20
|
-
cleanupBatchSize: positiveInteger(overrides.cleanupBatchSize ??
|
|
21
|
-
exports.DEFAULT_API_KEY_AUDIT_RETENTION.cleanupBatchSize, "cleanupBatchSize"),
|
|
22
|
-
maxAgeDays: positiveInteger(overrides.maxAgeDays ?? exports.DEFAULT_API_KEY_AUDIT_RETENTION.maxAgeDays, "maxAgeDays"),
|
|
23
|
-
maxRequestsPerKey: positiveInteger(overrides.maxRequestsPerKey ??
|
|
24
|
-
exports.DEFAULT_API_KEY_AUDIT_RETENTION.maxRequestsPerKey, "maxRequestsPerKey"),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
/** Runs bounded retention batches without coupling Loom to an app database. */
|
|
28
|
-
async function runApiKeyAuditRetention(options) {
|
|
29
|
-
const policy = createApiKeyAuditRetentionPolicy(options.policy);
|
|
30
|
-
const maxBatches = positiveInteger(options.maxBatches ?? 100, "maxBatches");
|
|
31
|
-
const now = options.now ?? new Date();
|
|
32
|
-
if (Number.isNaN(now.valueOf())) {
|
|
33
|
-
throw new TypeError("now must be a valid Date.");
|
|
34
|
-
}
|
|
35
|
-
const cutoffOccurredAt = new Date(now.valueOf() - policy.maxAgeDays * 24 * 60 * 60 * 1_000).toISOString();
|
|
36
|
-
let deletedEvents = 0;
|
|
37
|
-
let deletedRequests = 0;
|
|
38
|
-
for (let batches = 1; batches <= maxBatches; batches++) {
|
|
39
|
-
const batch = await options.repository.pruneBatch({
|
|
40
|
-
cutoffOccurredAt,
|
|
41
|
-
maxRequestsPerKey: policy.maxRequestsPerKey,
|
|
42
|
-
requestBatchSize: policy.cleanupBatchSize,
|
|
43
|
-
});
|
|
44
|
-
positiveIntegerOrZero(batch.deletedEvents, "deletedEvents");
|
|
45
|
-
positiveIntegerOrZero(batch.deletedRequests, "deletedRequests");
|
|
46
|
-
deletedEvents += batch.deletedEvents;
|
|
47
|
-
deletedRequests += batch.deletedRequests;
|
|
48
|
-
if (!batch.hasMore) {
|
|
49
|
-
return {
|
|
50
|
-
batches,
|
|
51
|
-
complete: true,
|
|
52
|
-
cutoffOccurredAt,
|
|
53
|
-
deletedEvents,
|
|
54
|
-
deletedRequests,
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
batches: maxBatches,
|
|
60
|
-
complete: false,
|
|
61
|
-
cutoffOccurredAt,
|
|
62
|
-
deletedEvents,
|
|
63
|
-
deletedRequests,
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function positiveIntegerOrZero(value, name) {
|
|
67
|
-
if (!Number.isSafeInteger(value) || value < 0) {
|
|
68
|
-
throw new TypeError(`${name} must be a non-negative safe integer.`);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
/** A single resource/action permission required by a protected operation. */
|
|
2
|
-
export interface ApiKeyPermission {
|
|
3
|
-
action: string;
|
|
4
|
-
resource: string;
|
|
5
|
-
}
|
|
6
|
-
/** The explicit identity returned by an app-owned API-key verifier. */
|
|
7
|
-
export interface ApiKeyPrincipal {
|
|
8
|
-
keyId: string;
|
|
9
|
-
keyName?: string;
|
|
10
|
-
keyStart?: string;
|
|
11
|
-
ownerId: string;
|
|
12
|
-
permissions: ApiKeyPermission[];
|
|
13
|
-
}
|
|
14
|
-
export type ApiKeyCredentialTransport = "authorization-bearer" | "x-api-key" | "query";
|
|
15
|
-
export type ApiKeyCredentialExtractionResult = {
|
|
16
|
-
kind: "missing";
|
|
17
|
-
} | {
|
|
18
|
-
kind: "malformed";
|
|
19
|
-
transport: ApiKeyCredentialTransport;
|
|
20
|
-
} | {
|
|
21
|
-
kind: "ambiguous";
|
|
22
|
-
/**
|
|
23
|
-
* The transports involved. A single element means one transport carried
|
|
24
|
-
* several values, for example `["x-api-key"]` for a repeated header or
|
|
25
|
-
* `["query"]` for a repeated query parameter.
|
|
26
|
-
*/
|
|
27
|
-
transports: ApiKeyCredentialTransport[];
|
|
28
|
-
} | {
|
|
29
|
-
credential: string;
|
|
30
|
-
kind: "present";
|
|
31
|
-
transport: ApiKeyCredentialTransport;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Which credential transports an app accepts. Plain data, so the same object
|
|
35
|
-
* can configure the authorizer and, passed from a Server Component, the MUI
|
|
36
|
-
* transport guidance.
|
|
37
|
-
*/
|
|
38
|
-
export interface ApiKeyCredentialOptions {
|
|
39
|
-
/** Accept `Authorization: Bearer <key>`. Defaults to `true`. */
|
|
40
|
-
allowAuthorizationBearer?: boolean;
|
|
41
|
-
/** Accept a query parameter. Defaults to `false`; URLs leak keys. */
|
|
42
|
-
allowQuery?: boolean;
|
|
43
|
-
/** Accept the `xApiKeyHeaderName` header. Defaults to `true`. */
|
|
44
|
-
allowXApiKey?: boolean;
|
|
45
|
-
/** Query parameter name. Defaults to `"apiKey"`. */
|
|
46
|
-
queryName?: string;
|
|
47
|
-
/** Header name for the `x-api-key` transport. Defaults to `"x-api-key"`. */
|
|
48
|
-
xApiKeyHeaderName?: string;
|
|
49
|
-
}
|
|
50
|
-
export interface ApiKeyCredentialSource {
|
|
51
|
-
headers: Headers;
|
|
52
|
-
searchParams?: URLSearchParams;
|
|
53
|
-
}
|
|
54
|
-
export type ApiKeyDenialCode = "ambiguous_credentials" | "audit_unavailable" | "credential_malformed" | "credential_missing" | "forbidden" | "insufficient_permission" | "invalid_credential" | "policy_error" | "rate_limited" | "verification_error";
|
|
55
|
-
export interface ApiKeyAuthorizationDescriptor {
|
|
56
|
-
actionName?: string;
|
|
57
|
-
functionName?: string;
|
|
58
|
-
metadata?: Record<string, unknown>;
|
|
59
|
-
operation: string;
|
|
60
|
-
pageName?: string;
|
|
61
|
-
permission: ApiKeyPermission;
|
|
62
|
-
}
|
|
63
|
-
export interface ApiKeyRequestAuditContext {
|
|
64
|
-
/** ISO 3166-1 alpha-2 country snapshot resolved from the originating IP. */
|
|
65
|
-
countryCode?: string;
|
|
66
|
-
ipAddress?: string;
|
|
67
|
-
method?: string;
|
|
68
|
-
requestId?: string;
|
|
69
|
-
routeTemplate?: string;
|
|
70
|
-
userAgent?: string;
|
|
71
|
-
}
|
|
72
|
-
export type ApiKeyAuthorizationOutcome = "allowed" | "denied" | "error";
|
|
73
|
-
export type ApiKeyOperationOutcome = "succeeded" | "failed" | "unknown";
|
|
74
|
-
export interface ApiKeyAuthorizationAuditEvent {
|
|
75
|
-
actionName?: string;
|
|
76
|
-
authorizationOutcome: ApiKeyAuthorizationOutcome;
|
|
77
|
-
credentialFingerprint?: string;
|
|
78
|
-
countryCode?: string;
|
|
79
|
-
eventType: "authorization";
|
|
80
|
-
functionName?: string;
|
|
81
|
-
httpStatus?: number;
|
|
82
|
-
ipAddress?: string;
|
|
83
|
-
keyId?: string;
|
|
84
|
-
keyNameSnapshot?: string;
|
|
85
|
-
keyStartSnapshot?: string;
|
|
86
|
-
metadata?: Record<string, unknown>;
|
|
87
|
-
method?: string;
|
|
88
|
-
operation: string;
|
|
89
|
-
ownerId?: string;
|
|
90
|
-
pageName?: string;
|
|
91
|
-
reasonCode?: ApiKeyAuditReasonCode;
|
|
92
|
-
requestId?: string;
|
|
93
|
-
routeTemplate?: string;
|
|
94
|
-
scopeAction: string;
|
|
95
|
-
scopeResource: string;
|
|
96
|
-
transport?: ApiKeyCredentialTransport;
|
|
97
|
-
userAgent?: string;
|
|
98
|
-
}
|
|
99
|
-
/** App-owned IP geolocation resolver; implementations should not use request-time network calls. */
|
|
100
|
-
export type ApiKeyCountryResolver = (ipAddress: string) => string | null | undefined | Promise<string | null | undefined>;
|
|
101
|
-
export interface ApiKeyCompletionAuditEvent {
|
|
102
|
-
actionName?: string;
|
|
103
|
-
authorizationEventId: string;
|
|
104
|
-
durationMs?: number;
|
|
105
|
-
eventType: "completion";
|
|
106
|
-
functionName?: string;
|
|
107
|
-
httpStatus?: number;
|
|
108
|
-
keyId: string;
|
|
109
|
-
keyNameSnapshot?: string;
|
|
110
|
-
keyStartSnapshot?: string;
|
|
111
|
-
metadata?: Record<string, unknown>;
|
|
112
|
-
operation: string;
|
|
113
|
-
operationOutcome: ApiKeyOperationOutcome;
|
|
114
|
-
ownerId: string;
|
|
115
|
-
pageName?: string;
|
|
116
|
-
/**
|
|
117
|
-
* Loom records an `ApiKeyCompletionReasonCode`. The type stays `string` for
|
|
118
|
-
* completion events an app appends itself; never record error messages or
|
|
119
|
-
* class names here, because owners can read their own audit history.
|
|
120
|
-
*/
|
|
121
|
-
reasonCode?: string;
|
|
122
|
-
requestId?: string;
|
|
123
|
-
scopeAction: string;
|
|
124
|
-
scopeResource: string;
|
|
125
|
-
}
|
|
126
|
-
export type ApiKeyAuditEvent = ApiKeyAuthorizationAuditEvent | ApiKeyCompletionAuditEvent;
|
|
127
|
-
export interface ApiKeyAuditPageRequest {
|
|
128
|
-
cursor?: string;
|
|
129
|
-
keyId?: string;
|
|
130
|
-
limit: number;
|
|
131
|
-
ownerId?: string;
|
|
132
|
-
}
|
|
133
|
-
export interface ApiKeyAuditPage {
|
|
134
|
-
events: Array<ApiKeyAuditEvent & {
|
|
135
|
-
id: string;
|
|
136
|
-
occurredAt: string;
|
|
137
|
-
}>;
|
|
138
|
-
nextCursor?: string;
|
|
139
|
-
}
|
|
140
|
-
/** App-owned persistence for immutable API-key audit events. */
|
|
141
|
-
export interface ApiKeyAuditRepository {
|
|
142
|
-
append(event: ApiKeyAuditEvent): Promise<{
|
|
143
|
-
id: string;
|
|
144
|
-
}>;
|
|
145
|
-
list?(request: ApiKeyAuditPageRequest): Promise<ApiKeyAuditPage>;
|
|
146
|
-
}
|
|
147
|
-
export interface ApiKeyVerifierRequest {
|
|
148
|
-
credential: string;
|
|
149
|
-
permission: ApiKeyPermission;
|
|
150
|
-
}
|
|
151
|
-
export type ApiKeyVerifierResult = {
|
|
152
|
-
ok: true;
|
|
153
|
-
principal: ApiKeyPrincipal;
|
|
154
|
-
} | {
|
|
155
|
-
code: "insufficient_permission" | "invalid_credential" | "rate_limited";
|
|
156
|
-
ok: false;
|
|
157
|
-
/**
|
|
158
|
-
* The valid key's identity, for an `insufficient_permission` denial
|
|
159
|
-
* only. Loom records it on the denial audit event so the key's owner can
|
|
160
|
-
* see it; it never reaches the caller or the response. Ignored for every
|
|
161
|
-
* other code, so invalid, revoked, expired, and rate-limited attempts stay
|
|
162
|
-
* unattributed.
|
|
163
|
-
*
|
|
164
|
-
* Return it only after the secret itself was verified (its hash matched)
|
|
165
|
-
* and the key was confirmed enabled and unexpired. Otherwise an
|
|
166
|
-
* attacker's attempts could be attributed to a victim's key and evict its
|
|
167
|
-
* history from the per-key retention cap.
|
|
168
|
-
*/
|
|
169
|
-
principal?: ApiKeyPrincipal;
|
|
170
|
-
status?: 401 | 403 | 429;
|
|
171
|
-
};
|
|
172
|
-
/** App adapter that performs exactly one verification call per authorization. */
|
|
173
|
-
export interface ApiKeyVerifier {
|
|
174
|
-
verify(request: ApiKeyVerifierRequest): Promise<ApiKeyVerifierResult>;
|
|
175
|
-
}
|
|
176
|
-
export type ApiKeyPolicyResult = {
|
|
177
|
-
ok: true;
|
|
178
|
-
} | {
|
|
179
|
-
code?: "forbidden";
|
|
180
|
-
ok: false;
|
|
181
|
-
status?: 403;
|
|
182
|
-
};
|
|
183
|
-
/** Fresh app-owned eligibility checks, such as current admin membership. */
|
|
184
|
-
export interface ApiKeyPolicy {
|
|
185
|
-
authorize(principal: ApiKeyPrincipal, descriptor: ApiKeyAuthorizationDescriptor): Promise<ApiKeyPolicyResult>;
|
|
186
|
-
}
|
|
187
|
-
export type ApiKeyAuthorizationResult = {
|
|
188
|
-
authorizationEventId: string;
|
|
189
|
-
credentialFingerprint: string;
|
|
190
|
-
ok: true;
|
|
191
|
-
principal: ApiKeyPrincipal;
|
|
192
|
-
transport: ApiKeyCredentialTransport;
|
|
193
|
-
} | {
|
|
194
|
-
authorizationEventId?: string;
|
|
195
|
-
code: ApiKeyDenialCode;
|
|
196
|
-
ok: false;
|
|
197
|
-
status: 400 | 401 | 403 | 429 | 500 | 503;
|
|
198
|
-
};
|
|
199
|
-
/**
|
|
200
|
-
* Reason recorded on an authorization audit event. Adds two audit-only codes
|
|
201
|
-
* for the `rejectCredential` hook: `credential_rejected` (it denied the
|
|
202
|
-
* credential; callers see `invalid_credential`) and
|
|
203
|
-
* `credential_rejection_error` (it threw; callers see `verification_error`).
|
|
204
|
-
*/
|
|
205
|
-
export type ApiKeyAuditReasonCode = ApiKeyDenialCode | "credential_rejected" | "credential_rejection_error";
|
|
206
|
-
/**
|
|
207
|
-
* Reason Loom records on a completion audit event: `handler_error` when the
|
|
208
|
-
* protected handler threw. The error's class and message are never recorded.
|
|
209
|
-
*/
|
|
210
|
-
export type ApiKeyCompletionReasonCode = "handler_error";
|
|
211
|
-
/** Context passed to a `rejectCredential` hook. */
|
|
212
|
-
export interface ApiKeyCredentialRejectionContext {
|
|
213
|
-
/** The protected operation being authorized. */
|
|
214
|
-
descriptor: ApiKeyAuthorizationDescriptor;
|
|
215
|
-
/** The transport the credential arrived in. */
|
|
216
|
-
transport: ApiKeyCredentialTransport;
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* App-owned check that denies specific credential values, such as a
|
|
220
|
-
* scheduler's shared secret, before Loom fingerprints, verifies, or
|
|
221
|
-
* attributes them. Any result other than `false` denies; a thrown error
|
|
222
|
-
* fails closed as `verification_error` (audited as
|
|
223
|
-
* `credential_rejection_error`).
|
|
224
|
-
*/
|
|
225
|
-
export type ApiKeyCredentialRejector = (credential: string, context: ApiKeyCredentialRejectionContext) => boolean | Promise<boolean>;
|
|
226
|
-
export interface AuthorizeApiKeyOptions {
|
|
227
|
-
audit: ApiKeyAuditRepository;
|
|
228
|
-
credentialOptions?: ApiKeyCredentialOptions;
|
|
229
|
-
descriptor: ApiKeyAuthorizationDescriptor;
|
|
230
|
-
policy: ApiKeyPolicy;
|
|
231
|
-
/**
|
|
232
|
-
* Called once with the single extracted credential, before it is
|
|
233
|
-
* fingerprinted or verified. A rejection is answered exactly like an
|
|
234
|
-
* invalid key (401 `invalid_credential`) and audited without any
|
|
235
|
-
* credential-derived data under reason `credential_rejected`.
|
|
236
|
-
*/
|
|
237
|
-
rejectCredential?: ApiKeyCredentialRejector;
|
|
238
|
-
request?: ApiKeyRequestAuditContext;
|
|
239
|
-
source: ApiKeyCredentialSource;
|
|
240
|
-
verifier: ApiKeyVerifier;
|
|
241
|
-
}
|
|
242
|
-
//# sourceMappingURL=types.d.ts.map
|