@learncard/network-brain-service 3.19.0 → 4.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/.env.example +47 -82
- package/AGENTS.md +52 -0
- package/CHANGELOG.md +147 -0
- package/README.md +51 -2
- package/bootstrapLambda.test.ts +72 -0
- package/config/config.dev.json +29 -0
- package/config/config.example.json +29 -0
- package/config/config.json +1 -0
- package/config/config.production.json +29 -0
- package/config/config.scouts.dev.json +24 -0
- package/config/config.scouts.production.json +24 -0
- package/contractEventsLambda.ts +18 -0
- package/contractEventsLambdaApp.ts +19 -0
- package/didWebLambda.ts +13 -18
- package/didWebLambdaApp.ts +22 -0
- package/dist/accesslayer/app-manifest-version/create.d.ts +10 -0
- package/dist/accesslayer/app-manifest-version/create.d.ts.map +1 -0
- package/dist/accesslayer/app-manifest-version/read.d.ts +11 -0
- package/dist/accesslayer/app-manifest-version/read.d.ts.map +1 -0
- package/dist/accesslayer/app-manifest-version/update.d.ts +7 -0
- package/dist/accesslayer/app-manifest-version/update.d.ts.map +1 -0
- package/dist/accesslayer/app-store-listing/read.d.ts +2 -1
- package/dist/accesslayer/app-store-listing/read.d.ts.map +1 -1
- package/dist/accesslayer/app-store-listing/relationships/create.d.ts +1 -0
- package/dist/accesslayer/app-store-listing/relationships/create.d.ts.map +1 -1
- package/dist/accesslayer/app-store-listing/relationships/read.d.ts +2 -0
- package/dist/accesslayer/app-store-listing/relationships/read.d.ts.map +1 -1
- package/dist/accesslayer/app-store-listing/update.d.ts +1 -0
- package/dist/accesslayer/app-store-listing/update.d.ts.map +1 -1
- package/dist/accesslayer/boost/relationships/create.d.ts +2 -1
- package/dist/accesslayer/boost/relationships/create.d.ts.map +1 -1
- package/dist/accesslayer/consentflowcontract/create.d.ts +9 -1
- package/dist/accesslayer/consentflowcontract/create.d.ts.map +1 -1
- package/dist/accesslayer/consentflowcontract/read.d.ts +34 -3
- package/dist/accesslayer/consentflowcontract/read.d.ts.map +1 -1
- package/dist/accesslayer/consentflowcontract/relationships/create.d.ts +4 -1
- package/dist/accesslayer/consentflowcontract/relationships/create.d.ts.map +1 -1
- package/dist/accesslayer/consentflowcontract/relationships/delete.d.ts.map +1 -1
- package/dist/accesslayer/consentflowcontract/relationships/read.d.ts +3 -2
- package/dist/accesslayer/consentflowcontract/relationships/read.d.ts.map +1 -1
- package/dist/accesslayer/consentflowcontract/relationships/recipients.d.ts +12 -0
- package/dist/accesslayer/consentflowcontract/relationships/recipients.d.ts.map +1 -0
- package/dist/accesslayer/consentflowcontract/relationships/smartResume.d.ts +12 -0
- package/dist/accesslayer/consentflowcontract/relationships/smartResume.d.ts.map +1 -0
- package/dist/accesslayer/consentflowcontract/relationships/update.d.ts +8 -5
- package/dist/accesslayer/consentflowcontract/relationships/update.d.ts.map +1 -1
- package/dist/accesslayer/credential/create.d.ts +2 -1
- package/dist/accesslayer/credential/create.d.ts.map +1 -1
- package/dist/accesslayer/credential/relationships/create.d.ts +4 -3
- package/dist/accesslayer/credential/relationships/create.d.ts.map +1 -1
- package/dist/accesslayer/inbox-credential/relationships/create.d.ts +2 -1
- package/dist/accesslayer/inbox-credential/relationships/create.d.ts.map +1 -1
- package/dist/accesslayer/inbox-credential/update.d.ts +2 -1
- package/dist/accesslayer/inbox-credential/update.d.ts.map +1 -1
- package/dist/accesslayer/presentation/read.d.ts.map +1 -1
- package/dist/accesslayer/presentation/relationships/create.d.ts +2 -2
- package/dist/accesslayer/presentation/relationships/create.d.ts.map +1 -1
- package/dist/accesslayer/presentation/relationships/read.d.ts.map +1 -1
- package/dist/accesslayer/share-link/abandon.d.ts +3 -0
- package/dist/accesslayer/share-link/abandon.d.ts.map +1 -0
- package/dist/accesslayer/share-link/attachment.d.ts +37 -0
- package/dist/accesslayer/share-link/attachment.d.ts.map +1 -0
- package/dist/accesslayer/share-link/cleanup.d.ts +6 -0
- package/dist/accesslayer/share-link/cleanup.d.ts.map +1 -0
- package/dist/accesslayer/share-link/errors.d.ts +8 -0
- package/dist/accesslayer/share-link/errors.d.ts.map +1 -0
- package/dist/accesslayer/share-link/finalize.d.ts +3 -0
- package/dist/accesslayer/share-link/finalize.d.ts.map +1 -0
- package/dist/accesslayer/share-link/helpers.d.ts +59 -0
- package/dist/accesslayer/share-link/helpers.d.ts.map +1 -0
- package/dist/accesslayer/share-link/index.d.ts +12 -0
- package/dist/accesslayer/share-link/index.d.ts.map +1 -0
- package/dist/accesslayer/share-link/list.d.ts +5 -0
- package/dist/accesslayer/share-link/list.d.ts.map +1 -0
- package/dist/accesslayer/share-link/read.d.ts +5 -0
- package/dist/accesslayer/share-link/read.d.ts.map +1 -0
- package/dist/accesslayer/share-link/receipt.d.ts +11 -0
- package/dist/accesslayer/share-link/receipt.d.ts.map +1 -0
- package/dist/accesslayer/share-link/recovery.d.ts +6 -0
- package/dist/accesslayer/share-link/recovery.d.ts.map +1 -0
- package/dist/accesslayer/share-link/reserve.d.ts +4 -0
- package/dist/accesslayer/share-link/reserve.d.ts.map +1 -0
- package/dist/accesslayer/share-link/revoke.d.ts +3 -0
- package/dist/accesslayer/share-link/revoke.d.ts.map +1 -0
- package/dist/accesslayer/share-link/transaction-execution.d.ts +18 -0
- package/dist/accesslayer/share-link/transaction-execution.d.ts.map +1 -0
- package/dist/accesslayer/share-link/transaction.d.ts +15 -0
- package/dist/accesslayer/share-link/transaction.d.ts.map +1 -0
- package/dist/accesslayer/share-link/types.d.ts +375 -0
- package/dist/accesslayer/share-link/types.d.ts.map +1 -0
- package/dist/app.d.ts +4 -0
- package/dist/app.d.ts.map +1 -1
- package/dist/cache/app-store.caches.d.ts +49 -0
- package/dist/cache/app-store.caches.d.ts.map +1 -1
- package/dist/config/applyDockerStageConfig.d.ts +2 -0
- package/dist/config/applyDockerStageConfig.d.ts.map +1 -0
- package/dist/config/environment.d.ts +14 -0
- package/dist/config/environment.d.ts.map +1 -1
- package/dist/config/serverlessFunctionEnv.test.d.ts +2 -0
- package/dist/config/serverlessFunctionEnv.test.d.ts.map +1 -0
- package/dist/config/stageConfig.d.ts +112 -0
- package/dist/config/stageConfig.d.ts.map +1 -0
- package/dist/config/stageConfig.test.d.ts +2 -0
- package/dist/config/stageConfig.test.d.ts.map +1 -0
- package/dist/constants/auth-grant.d.ts +2 -0
- package/dist/constants/auth-grant.d.ts.map +1 -1
- package/dist/didkit_wasm_bg.wasm +0 -0
- package/dist/docker-entry.d.ts +1 -1
- package/dist/docker-entry.d.ts.map +1 -1
- package/dist/helpers/app-manifest.helpers.d.ts +5 -0
- package/dist/helpers/app-manifest.helpers.d.ts.map +1 -0
- package/dist/helpers/boost.helpers.d.ts.map +1 -1
- package/dist/helpers/claim-hooks.helpers.d.ts +2 -1
- package/dist/helpers/claim-hooks.helpers.d.ts.map +1 -1
- package/dist/helpers/consent-referral.helpers.d.ts +2 -0
- package/dist/helpers/consent-referral.helpers.d.ts.map +1 -0
- package/dist/helpers/consent-scopes.helpers.d.ts +7 -0
- package/dist/helpers/consent-scopes.helpers.d.ts.map +1 -0
- package/dist/helpers/contract-event-maintenance.helpers.d.ts +3 -0
- package/dist/helpers/contract-event-maintenance.helpers.d.ts.map +1 -0
- package/dist/helpers/contract-events.helpers.d.ts +25 -0
- package/dist/helpers/contract-events.helpers.d.ts.map +1 -0
- package/dist/helpers/contract-requests.helpers.d.ts +19 -0
- package/dist/helpers/contract-requests.helpers.d.ts.map +1 -0
- package/dist/helpers/credentialSubject.helpers.d.ts +3 -0
- package/dist/helpers/credentialSubject.helpers.d.ts.map +1 -0
- package/dist/helpers/credentialSubject.helpers.test.d.ts +2 -0
- package/dist/helpers/credentialSubject.helpers.test.d.ts.map +1 -0
- package/dist/helpers/finalize-inbox.helpers.d.ts +3 -3
- package/dist/helpers/finalize-inbox.helpers.d.ts.map +1 -1
- package/dist/helpers/inbox.helpers.d.ts.map +1 -1
- package/dist/helpers/inline-template.helpers.d.ts +45 -0
- package/dist/helpers/inline-template.helpers.d.ts.map +1 -0
- package/dist/helpers/notificationMessages.d.ts +1 -1
- package/dist/helpers/notificationMessages.d.ts.map +1 -1
- package/dist/helpers/notificationQueue.helpers.d.ts.map +1 -1
- package/dist/helpers/notifications.helpers.d.ts +6 -0
- package/dist/helpers/notifications.helpers.d.ts.map +1 -1
- package/dist/helpers/presentation-metadata.d.ts +4 -0
- package/dist/helpers/presentation-metadata.d.ts.map +1 -0
- package/dist/helpers/presentation.helpers.d.ts +1 -1
- package/dist/helpers/presentation.helpers.d.ts.map +1 -1
- package/dist/helpers/profile.helpers.d.ts +2 -0
- package/dist/helpers/profile.helpers.d.ts.map +1 -1
- package/dist/helpers/share-content-client/adapters.d.ts +10 -0
- package/dist/helpers/share-content-client/adapters.d.ts.map +1 -0
- package/dist/helpers/share-content-client/canonical.d.ts +7 -0
- package/dist/helpers/share-content-client/canonical.d.ts.map +1 -0
- package/dist/helpers/share-content-client/client.d.ts +5 -0
- package/dist/helpers/share-content-client/client.d.ts.map +1 -0
- package/dist/helpers/share-content-client/config.d.ts +11 -0
- package/dist/helpers/share-content-client/config.d.ts.map +1 -0
- package/dist/helpers/share-content-client/index.d.ts +6 -0
- package/dist/helpers/share-content-client/index.d.ts.map +1 -0
- package/dist/helpers/share-content-client/responses.d.ts +16 -0
- package/dist/helpers/share-content-client/responses.d.ts.map +1 -0
- package/dist/helpers/share-content-client/types.d.ts +145 -0
- package/dist/helpers/share-content-client/types.d.ts.map +1 -0
- package/dist/helpers/share-link-attachment-access.d.ts +4 -0
- package/dist/helpers/share-link-attachment-access.d.ts.map +1 -0
- package/dist/helpers/share-link-attachment.d.ts +18 -0
- package/dist/helpers/share-link-attachment.d.ts.map +1 -0
- package/dist/helpers/share-link-coordinator/attachment-stat.d.ts +5 -0
- package/dist/helpers/share-link-coordinator/attachment-stat.d.ts.map +1 -0
- package/dist/helpers/share-link-coordinator/budget-helpers.d.ts +5 -0
- package/dist/helpers/share-link-coordinator/budget-helpers.d.ts.map +1 -0
- package/dist/helpers/share-link-coordinator/cleanup-runner.d.ts +3 -0
- package/dist/helpers/share-link-coordinator/cleanup-runner.d.ts.map +1 -0
- package/dist/helpers/share-link-coordinator/coordinator.d.ts +4 -0
- package/dist/helpers/share-link-coordinator/coordinator.d.ts.map +1 -0
- package/dist/helpers/share-link-coordinator/index.d.ts +5 -0
- package/dist/helpers/share-link-coordinator/index.d.ts.map +1 -0
- package/dist/helpers/share-link-coordinator/recovery-runner.d.ts +9 -0
- package/dist/helpers/share-link-coordinator/recovery-runner.d.ts.map +1 -0
- package/dist/helpers/share-link-coordinator/runtime.d.ts +11 -0
- package/dist/helpers/share-link-coordinator/runtime.d.ts.map +1 -0
- package/dist/helpers/share-link-coordinator/stat.d.ts +4 -0
- package/dist/helpers/share-link-coordinator/stat.d.ts.map +1 -0
- package/dist/helpers/share-link-coordinator/types.d.ts +160 -0
- package/dist/helpers/share-link-coordinator/types.d.ts.map +1 -0
- package/dist/helpers/share-link-lifecycle/index.d.ts +5 -0
- package/dist/helpers/share-link-lifecycle/index.d.ts.map +1 -0
- package/dist/helpers/share-link-lifecycle/lease.helpers.d.ts +4 -0
- package/dist/helpers/share-link-lifecycle/lease.helpers.d.ts.map +1 -0
- package/dist/helpers/share-link-lifecycle/recovery.helpers.d.ts +21 -0
- package/dist/helpers/share-link-lifecycle/recovery.helpers.d.ts.map +1 -0
- package/dist/helpers/share-link-lifecycle/request-hash.helpers.d.ts +9 -0
- package/dist/helpers/share-link-lifecycle/request-hash.helpers.d.ts.map +1 -0
- package/dist/helpers/share-link-lifecycle/types.d.ts +14 -0
- package/dist/helpers/share-link-lifecycle/types.d.ts.map +1 -0
- package/dist/helpers/share-link-maintenance/budget.d.ts +12 -0
- package/dist/helpers/share-link-maintenance/budget.d.ts.map +1 -0
- package/dist/helpers/share-link-maintenance/config.d.ts +48 -0
- package/dist/helpers/share-link-maintenance/config.d.ts.map +1 -0
- package/dist/helpers/share-link-maintenance/index.d.ts +8 -0
- package/dist/helpers/share-link-maintenance/index.d.ts.map +1 -0
- package/dist/helpers/share-link-maintenance/runner.d.ts +20 -0
- package/dist/helpers/share-link-maintenance/runner.d.ts.map +1 -0
- package/dist/helpers/share-link-maintenance/runtime.d.ts +38 -0
- package/dist/helpers/share-link-maintenance/runtime.d.ts.map +1 -0
- package/dist/helpers/share-link-maintenance/scheduler.d.ts +18 -0
- package/dist/helpers/share-link-maintenance/scheduler.d.ts.map +1 -0
- package/dist/helpers/share-link-maintenance/telemetry.d.ts +5 -0
- package/dist/helpers/share-link-maintenance/telemetry.d.ts.map +1 -0
- package/dist/helpers/share-link-maintenance/types.d.ts +56 -0
- package/dist/helpers/share-link-maintenance/types.d.ts.map +1 -0
- package/dist/helpers/share-link-owner/config.d.ts +16 -0
- package/dist/helpers/share-link-owner/config.d.ts.map +1 -0
- package/dist/helpers/share-link-owner/diagnostics.d.ts +26 -0
- package/dist/helpers/share-link-owner/diagnostics.d.ts.map +1 -0
- package/dist/helpers/share-link-owner/lazy-initializer.d.ts +2 -0
- package/dist/helpers/share-link-owner/lazy-initializer.d.ts.map +1 -0
- package/dist/helpers/share-link-owner-projection.d.ts +4 -0
- package/dist/helpers/share-link-owner-projection.d.ts.map +1 -0
- package/dist/helpers/share-link-passcode-abuse.d.ts +2 -0
- package/dist/helpers/share-link-passcode-abuse.d.ts.map +1 -0
- package/dist/helpers/share-link-passcode.d.ts +6 -0
- package/dist/helpers/share-link-passcode.d.ts.map +1 -0
- package/dist/helpers/share-link-policy/index.d.ts +4 -0
- package/dist/helpers/share-link-policy/index.d.ts.map +1 -0
- package/dist/helpers/share-link-policy/production.d.ts +11 -0
- package/dist/helpers/share-link-policy/production.d.ts.map +1 -0
- package/dist/helpers/share-link-policy/resolver.d.ts +6 -0
- package/dist/helpers/share-link-policy/resolver.d.ts.map +1 -0
- package/dist/helpers/share-link-policy/types.d.ts +22 -0
- package/dist/helpers/share-link-policy/types.d.ts.map +1 -0
- package/dist/helpers/share-link-public/config.d.ts +13 -0
- package/dist/helpers/share-link-public/config.d.ts.map +1 -0
- package/dist/helpers/share-link-view-notification.d.ts +2 -0
- package/dist/helpers/share-link-view-notification.d.ts.map +1 -0
- package/dist/helpers/signingAuthority.helpers.d.ts.map +1 -1
- package/dist/helpers/smartResume.helpers.d.ts +3 -0
- package/dist/helpers/smartResume.helpers.d.ts.map +1 -0
- package/dist/index.js +2 -2
- package/dist/models/AppManifestVersion.d.ts +20 -0
- package/dist/models/AppManifestVersion.d.ts.map +1 -0
- package/dist/models/AppStoreListing.d.ts +13 -0
- package/dist/models/AppStoreListing.d.ts.map +1 -1
- package/dist/models/ConsentFlowContract.d.ts +13 -2
- package/dist/models/ConsentFlowContract.d.ts.map +1 -1
- package/dist/models/ConsentFlowTerms.d.ts.map +1 -1
- package/dist/models/ConsentFlowTransaction.d.ts.map +1 -1
- package/dist/models/Integration.d.ts +2 -0
- package/dist/models/Integration.d.ts.map +1 -1
- package/dist/models/Presentation.d.ts +2 -0
- package/dist/models/Presentation.d.ts.map +1 -1
- package/dist/models/Profile.d.ts +2 -0
- package/dist/models/Profile.d.ts.map +1 -1
- package/dist/models/ShareLink.d.ts +46 -0
- package/dist/models/ShareLink.d.ts.map +1 -0
- package/dist/models/ShareViewReceipt.d.ts +22 -0
- package/dist/models/ShareViewReceipt.d.ts.map +1 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/share-link-constraints.d.ts +3 -0
- package/dist/models/share-link-constraints.d.ts.map +1 -0
- package/dist/openapi.d.ts +1 -1
- package/dist/openapi.d.ts.map +1 -1
- package/dist/public-share-link-http.d.ts +4 -0
- package/dist/public-share-link-http.d.ts.map +1 -0
- package/dist/routes/app-store.d.ts +619 -0
- package/dist/routes/app-store.d.ts.map +1 -1
- package/dist/routes/boosts.d.ts +2 -2
- package/dist/routes/boosts.d.ts.map +1 -1
- package/dist/routes/contracts.d.ts +148 -5
- package/dist/routes/contracts.d.ts.map +1 -1
- package/dist/routes/credentials.d.ts +35 -1
- package/dist/routes/credentials.d.ts.map +1 -1
- package/dist/routes/inbox.d.ts +52 -2
- package/dist/routes/inbox.d.ts.map +1 -1
- package/dist/routes/index.d.ts +153 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/presentations.d.ts +1 -0
- package/dist/routes/presentations.d.ts.map +1 -1
- package/dist/routes/profile-manager.d.ts.map +1 -1
- package/dist/routes/profiles.d.ts.map +1 -1
- package/dist/routes/public-share-links.d.ts +285 -0
- package/dist/routes/public-share-links.d.ts.map +1 -0
- package/dist/routes/share-links.d.ts +1005 -0
- package/dist/routes/share-links.d.ts.map +1 -0
- package/dist/routes/test.d.ts +5 -0
- package/dist/routes/test.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/services/delivery/adapters/postmark.adapter.d.ts.map +1 -1
- package/dist/types/app-manifest.d.ts +339 -0
- package/dist/types/app-manifest.d.ts.map +1 -0
- package/dist/types/app-store-listing.d.ts +34 -0
- package/dist/types/app-store-listing.d.ts.map +1 -1
- package/dist/types/consentflowcontract.d.ts +31 -4
- package/dist/types/consentflowcontract.d.ts.map +1 -1
- package/dist/types/credential-refresh.d.ts +1 -1
- package/esbuildPlugins.cjs +1 -0
- package/lambda.ts +49 -192
- package/lambdaApp.ts +203 -0
- package/package.json +25 -17
- package/scripts/export-openapi.ts +20 -0
- package/scripts/offline-schema-environment.ts +18 -0
- package/scripts/seed-demo-persona.ts +425 -0
- package/scripts/verify-python-contracts.ts +72 -0
- package/serverless-local.yml +3 -6
- package/serverless.function-env.cjs +50 -0
- package/serverless.local.yml +0 -1
- package/serverless.yml +44 -55
- package/shareLinkMaintenanceLambda.ts +18 -0
- package/shareLinkMaintenanceLambdaApp.ts +50 -0
- package/src/accesslayer/app-manifest-version/create.ts +57 -0
- package/src/accesslayer/app-manifest-version/read.ts +129 -0
- package/src/accesslayer/app-manifest-version/update.ts +61 -0
- package/src/accesslayer/app-store-listing/read.ts +6 -0
- package/src/accesslayer/app-store-listing/relationships/create.ts +20 -0
- package/src/accesslayer/app-store-listing/relationships/read.ts +24 -1
- package/src/accesslayer/app-store-listing/update.ts +15 -0
- package/src/accesslayer/boost/relationships/create.ts +8 -2
- package/src/accesslayer/consentflowcontract/create.ts +81 -8
- package/src/accesslayer/consentflowcontract/read.ts +84 -10
- package/src/accesslayer/consentflowcontract/relationships/create.ts +125 -109
- package/src/accesslayer/consentflowcontract/relationships/delete.ts +1 -0
- package/src/accesslayer/consentflowcontract/relationships/read.ts +184 -108
- package/src/accesslayer/consentflowcontract/relationships/recipients.ts +125 -0
- package/src/accesslayer/consentflowcontract/relationships/smartResume.ts +125 -0
- package/src/accesslayer/consentflowcontract/relationships/update.ts +255 -217
- package/src/accesslayer/credential/create.test.ts +2 -115
- package/src/accesslayer/credential/create.ts +11 -6
- package/src/accesslayer/credential/relationships/create.ts +17 -10
- package/src/accesslayer/inbox-credential/relationships/create.ts +70 -48
- package/src/accesslayer/inbox-credential/update.ts +4 -2
- package/src/accesslayer/presentation/read.ts +57 -25
- package/src/accesslayer/presentation/relationships/create.ts +54 -11
- package/src/accesslayer/presentation/relationships/read.ts +21 -6
- package/src/accesslayer/share-link/abandon.ts +120 -0
- package/src/accesslayer/share-link/attachment.ts +360 -0
- package/src/accesslayer/share-link/cleanup.ts +271 -0
- package/src/accesslayer/share-link/errors.ts +32 -0
- package/src/accesslayer/share-link/finalize.ts +313 -0
- package/src/accesslayer/share-link/helpers.ts +450 -0
- package/src/accesslayer/share-link/index.ts +11 -0
- package/src/accesslayer/share-link/list.ts +162 -0
- package/src/accesslayer/share-link/read.ts +107 -0
- package/src/accesslayer/share-link/receipt.ts +548 -0
- package/src/accesslayer/share-link/recovery.ts +565 -0
- package/src/accesslayer/share-link/reserve.ts +763 -0
- package/src/accesslayer/share-link/revoke.ts +232 -0
- package/src/accesslayer/share-link/transaction-execution.ts +72 -0
- package/src/accesslayer/share-link/transaction.ts +126 -0
- package/src/accesslayer/share-link/types.ts +606 -0
- package/src/app.ts +6 -0
- package/src/cache/app-store.caches.ts +35 -0
- package/src/config/applyDockerStageConfig.ts +6 -0
- package/src/config/environment.test.ts +17 -12
- package/src/config/environment.ts +15 -0
- package/src/config/serverlessFunctionEnv.test.ts +105 -0
- package/src/config/stageConfig.test.ts +25 -0
- package/src/config/stageConfig.ts +24 -0
- package/src/constants/auth-grant.ts +5 -0
- package/src/docker-entry.ts +81 -0
- package/src/helpers/app-manifest.helpers.ts +185 -0
- package/src/helpers/boost.helpers.ts +4 -31
- package/src/helpers/claim-hooks.helpers.ts +20 -7
- package/src/helpers/consent-referral.helpers.ts +6 -0
- package/src/helpers/consent-scopes.helpers.ts +58 -0
- package/src/helpers/contract-event-maintenance.helpers.ts +43 -0
- package/src/helpers/contract-events.helpers.ts +540 -0
- package/src/helpers/contract-requests.helpers.ts +211 -0
- package/src/helpers/credentialSubject.helpers.test.ts +114 -0
- package/src/helpers/credentialSubject.helpers.ts +40 -0
- package/src/helpers/finalize-inbox.helpers.ts +163 -44
- package/src/helpers/inbox.helpers.ts +58 -70
- package/src/helpers/inline-template.helpers.ts +560 -0
- package/src/helpers/notificationMessages.ts +77 -1
- package/src/helpers/notificationQueue.helpers.ts +23 -5
- package/src/helpers/notifications.helpers.ts +25 -1
- package/src/helpers/presentation-metadata.ts +41 -0
- package/src/helpers/presentation.helpers.ts +27 -20
- package/src/helpers/profile.helpers.ts +13 -0
- package/src/helpers/share-content-client/adapters.ts +55 -0
- package/src/helpers/share-content-client/canonical.ts +25 -0
- package/src/helpers/share-content-client/client.ts +440 -0
- package/src/helpers/share-content-client/config.ts +189 -0
- package/src/helpers/share-content-client/index.ts +27 -0
- package/src/helpers/share-content-client/responses.ts +273 -0
- package/src/helpers/share-content-client/types.ts +253 -0
- package/src/helpers/share-link-attachment-access.ts +87 -0
- package/src/helpers/share-link-attachment.ts +115 -0
- package/src/helpers/share-link-coordinator/attachment-stat.ts +41 -0
- package/src/helpers/share-link-coordinator/budget-helpers.ts +53 -0
- package/src/helpers/share-link-coordinator/cleanup-runner.ts +286 -0
- package/src/helpers/share-link-coordinator/coordinator.ts +727 -0
- package/src/helpers/share-link-coordinator/index.ts +8 -0
- package/src/helpers/share-link-coordinator/recovery-runner.ts +443 -0
- package/src/helpers/share-link-coordinator/runtime.ts +88 -0
- package/src/helpers/share-link-coordinator/stat.ts +30 -0
- package/src/helpers/share-link-coordinator/types.ts +353 -0
- package/src/helpers/share-link-lifecycle/index.ts +4 -0
- package/src/helpers/share-link-lifecycle/lease.helpers.ts +35 -0
- package/src/helpers/share-link-lifecycle/recovery.helpers.ts +173 -0
- package/src/helpers/share-link-lifecycle/request-hash.helpers.ts +130 -0
- package/src/helpers/share-link-lifecycle/types.ts +58 -0
- package/src/helpers/share-link-maintenance/budget.ts +63 -0
- package/src/helpers/share-link-maintenance/config.ts +312 -0
- package/src/helpers/share-link-maintenance/index.ts +24 -0
- package/src/helpers/share-link-maintenance/runner.ts +251 -0
- package/src/helpers/share-link-maintenance/runtime.ts +340 -0
- package/src/helpers/share-link-maintenance/scheduler.ts +126 -0
- package/src/helpers/share-link-maintenance/telemetry.ts +73 -0
- package/src/helpers/share-link-maintenance/types.ts +91 -0
- package/src/helpers/share-link-owner/config.ts +48 -0
- package/src/helpers/share-link-owner/diagnostics.ts +89 -0
- package/src/helpers/share-link-owner/lazy-initializer.ts +29 -0
- package/src/helpers/share-link-owner-projection.ts +54 -0
- package/src/helpers/share-link-passcode-abuse.ts +36 -0
- package/src/helpers/share-link-passcode.ts +47 -0
- package/src/helpers/share-link-policy/index.ts +7 -0
- package/src/helpers/share-link-policy/production.ts +108 -0
- package/src/helpers/share-link-policy/resolver.ts +113 -0
- package/src/helpers/share-link-policy/types.ts +56 -0
- package/src/helpers/share-link-public/config.ts +41 -0
- package/src/helpers/share-link-view-notification.ts +18 -0
- package/src/helpers/signingAuthority.helpers.ts +23 -14
- package/src/helpers/smartResume.helpers.ts +123 -0
- package/src/models/AppManifestVersion.ts +43 -0
- package/src/models/AppStoreListing.ts +32 -0
- package/src/models/ConsentFlowContract.ts +34 -3
- package/src/models/ConsentFlowTerms.ts +10 -0
- package/src/models/ConsentFlowTransaction.ts +3 -0
- package/src/models/Integration.ts +2 -0
- package/src/models/Presentation.ts +2 -2
- package/src/models/Profile.ts +3 -2
- package/src/models/ShareLink.ts +134 -0
- package/src/models/ShareViewReceipt.ts +69 -0
- package/src/models/index.ts +25 -0
- package/src/models/share-link-constraints.ts +98 -0
- package/src/openapi.ts +44 -8
- package/src/public-share-link-http.ts +49 -0
- package/src/routes/app-store.ts +1056 -38
- package/src/routes/boosts.ts +14 -25
- package/src/routes/contracts.ts +384 -273
- package/src/routes/inbox.ts +4 -2
- package/src/routes/index.ts +142 -44
- package/src/routes/presentations.ts +19 -3
- package/src/routes/profile-manager.ts +29 -2
- package/src/routes/profiles.ts +29 -6
- package/src/routes/public-share-links.ts +983 -0
- package/src/routes/share-links.ts +709 -0
- package/src/routes/workflows.ts +3 -2
- package/src/services/delivery/adapters/postmark.adapter.ts +4 -1
- package/src/types/app-manifest.ts +28 -0
- package/src/types/app-store-listing.ts +13 -0
- package/src/types/consentflowcontract.ts +25 -4
- package/test/app-manifest.helpers.spec.ts +170 -0
- package/test/app-manifest.routes.spec.ts +299 -0
- package/test/app-store-listing-updates.spec.ts +236 -0
- package/test/app-store-listing.spec.ts +65 -3
- package/test/consent-data-boundaries.spec.ts +352 -0
- package/test/consent-recipients.spec.ts +513 -0
- package/test/consent-scopes.helpers.spec.ts +67 -0
- package/test/consentflow.spec.ts +63 -2
- package/test/contract-requests.spec.ts +1588 -0
- package/test/credential-storage.neo4j.spec.ts +122 -0
- package/test/dids.spec.ts +10 -1
- package/test/guardian-gated-routes.spec.ts +49 -0
- package/test/helpers/share-link-fixtures.ts +94 -0
- package/test/inbox-security.e2e.ts +26 -10
- package/test/inbox.spec.ts +184 -8
- package/test/inline-template.helpers.spec.ts +49 -0
- package/test/managed-recipient-inbox.spec.ts +152 -0
- package/test/notificationMessages.spec.ts +13 -0
- package/test/openapi.spec.ts +14 -53
- package/test/presentations.spec.ts +54 -6
- package/test/profiles.spec.ts +97 -1
- package/test/share-content-client.contract.spec.ts +365 -0
- package/test/share-content-client.unit.spec.ts +462 -0
- package/test/share-link-abuse.unit.spec.ts +65 -0
- package/test/share-link-attachment.neo4j.spec.ts +262 -0
- package/test/share-link-attachment.unit.spec.ts +244 -0
- package/test/share-link-coordinator.neo4j.spec.ts +684 -0
- package/test/share-link-coordinator.unit.spec.ts +990 -0
- package/test/share-link-dependency-diagnostics.unit.spec.ts +127 -0
- package/test/share-link-lifecycle.neo4j.spec.ts +1411 -0
- package/test/share-link-lifecycle.unit.spec.ts +205 -0
- package/test/share-link-list-cursor.unit.spec.ts +86 -0
- package/test/share-link-list.neo4j.spec.ts +324 -0
- package/test/share-link-maintenance.neo4j.spec.ts +355 -0
- package/test/share-link-maintenance.unit.spec.ts +1140 -0
- package/test/share-link-owner-policy.unit.spec.ts +210 -0
- package/test/share-link-owner-route.unit.spec.ts +820 -0
- package/test/share-link-owner-runtime.unit.spec.ts +102 -0
- package/test/share-link-passcode.unit.spec.ts +29 -0
- package/test/share-link-policy.unit.spec.ts +149 -0
- package/test/share-link-presentation-metadata.unit.spec.ts +49 -0
- package/test/share-link-production-policy.unit.spec.ts +126 -0
- package/test/share-link-public-config.unit.spec.ts +64 -0
- package/test/share-link-public-http-adapter.unit.spec.ts +315 -0
- package/test/share-link-public-route.unit.spec.ts +1079 -0
- package/test/share-link-receipt.neo4j.spec.ts +943 -0
- package/test/share-link-recovery.neo4j.spec.ts +935 -0
- package/test/share-link-recovery.unit.spec.ts +726 -0
- package/test/share-link-service-policy.neo4j.spec.ts +403 -0
- package/test/signing-authority-encryption.spec.ts +75 -0
- package/test/smart-resume-consent.spec.ts +233 -0
- package/test/smart-resume-upload.spec.ts +65 -0
- package/tsconfig.build.json +1 -1
- package/tsconfig.json +1 -0
- package/vitest.config.ts +14 -0
- package/vitest.inbox-e2e.config.ts +2 -0
- package/vitest.share-links-neo4j.config.ts +19 -0
- package/vitest.share-links-unit.config.ts +28 -0
- package/workerLambda.test.ts +100 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import 'dotenv/config';
|
|
2
|
+
export declare const base: Record<string, string>;
|
|
3
|
+
export declare const stages: {
|
|
4
|
+
dev: {
|
|
5
|
+
CLIENT_APP_DOMAIN_NAME: string;
|
|
6
|
+
CREDENTIAL_REFRESH_ENABLED: string;
|
|
7
|
+
CREDENTIAL_REFRESH_NOTIFICATION_WINDOW_HOURS: string;
|
|
8
|
+
DOMAIN_NAME: string;
|
|
9
|
+
INBOX_BATCH_ITEMS_PER_HOUR: string;
|
|
10
|
+
INBOX_DELETE_EXPIRED_RECORDS: string;
|
|
11
|
+
MESSAGEBIRD_ORIGINATOR: string;
|
|
12
|
+
OIDC_EXPECTED_AUDIENCE: string;
|
|
13
|
+
OIDC_TRUSTED_ISSUERS: string;
|
|
14
|
+
POSTMARK_FROM_EMAIL: string;
|
|
15
|
+
SENTRY_ENV: string;
|
|
16
|
+
SHARE_LINK_MAINTENANCE_ALLOW_INSECURE_LOOPBACK: string;
|
|
17
|
+
SHARE_LINK_MAINTENANCE_AUDIENCE: string;
|
|
18
|
+
SHARE_LINK_MAINTENANCE_BUDGET_MS: string;
|
|
19
|
+
SHARE_LINK_MAINTENANCE_CLAIMANT: string;
|
|
20
|
+
SHARE_LINK_MAINTENANCE_CLAIM_MS: string;
|
|
21
|
+
SHARE_LINK_MAINTENANCE_CLEANUP_LIMIT: string;
|
|
22
|
+
SHARE_LINK_MAINTENANCE_FINALIZE_RESERVE_MS: string;
|
|
23
|
+
SHARE_LINK_MAINTENANCE_GRAPH_TIMEOUT_MS: string;
|
|
24
|
+
SHARE_LINK_MAINTENANCE_INTERVAL_MS: string;
|
|
25
|
+
SHARE_LINK_MAINTENANCE_LEASE_MS: string;
|
|
26
|
+
SHARE_LINK_MAINTENANCE_NAMESPACE: string;
|
|
27
|
+
SHARE_LINK_MAINTENANCE_ORIGIN: string;
|
|
28
|
+
SHARE_LINK_MAINTENANCE_RECOVERY_LIMIT: string;
|
|
29
|
+
SHARE_LINK_MAINTENANCE_REQUEST_TIMEOUT_MS: string;
|
|
30
|
+
SIGNING_AUTHORITY_ENDPOINT: string;
|
|
31
|
+
SKILL_EMBEDDING_GOOGLE_MODEL: string;
|
|
32
|
+
};
|
|
33
|
+
production: {
|
|
34
|
+
CLIENT_APP_DOMAIN_NAME: string;
|
|
35
|
+
CREDENTIAL_REFRESH_ENABLED: string;
|
|
36
|
+
CREDENTIAL_REFRESH_NOTIFICATION_WINDOW_HOURS: string;
|
|
37
|
+
DOMAIN_NAME: string;
|
|
38
|
+
INBOX_BATCH_ITEMS_PER_HOUR: string;
|
|
39
|
+
INBOX_DELETE_EXPIRED_RECORDS: string;
|
|
40
|
+
MESSAGEBIRD_ORIGINATOR: string;
|
|
41
|
+
OIDC_EXPECTED_AUDIENCE: string;
|
|
42
|
+
OIDC_TRUSTED_ISSUERS: string;
|
|
43
|
+
POSTMARK_FROM_EMAIL: string;
|
|
44
|
+
SENTRY_ENV: string;
|
|
45
|
+
SHARE_LINK_MAINTENANCE_ALLOW_INSECURE_LOOPBACK: string;
|
|
46
|
+
SHARE_LINK_MAINTENANCE_AUDIENCE: string;
|
|
47
|
+
SHARE_LINK_MAINTENANCE_BUDGET_MS: string;
|
|
48
|
+
SHARE_LINK_MAINTENANCE_CLAIMANT: string;
|
|
49
|
+
SHARE_LINK_MAINTENANCE_CLAIM_MS: string;
|
|
50
|
+
SHARE_LINK_MAINTENANCE_CLEANUP_LIMIT: string;
|
|
51
|
+
SHARE_LINK_MAINTENANCE_FINALIZE_RESERVE_MS: string;
|
|
52
|
+
SHARE_LINK_MAINTENANCE_GRAPH_TIMEOUT_MS: string;
|
|
53
|
+
SHARE_LINK_MAINTENANCE_INTERVAL_MS: string;
|
|
54
|
+
SHARE_LINK_MAINTENANCE_LEASE_MS: string;
|
|
55
|
+
SHARE_LINK_MAINTENANCE_NAMESPACE: string;
|
|
56
|
+
SHARE_LINK_MAINTENANCE_ORIGIN: string;
|
|
57
|
+
SHARE_LINK_MAINTENANCE_RECOVERY_LIMIT: string;
|
|
58
|
+
SHARE_LINK_MAINTENANCE_REQUEST_TIMEOUT_MS: string;
|
|
59
|
+
SIGNING_AUTHORITY_ENDPOINT: string;
|
|
60
|
+
SKILL_EMBEDDING_GOOGLE_MODEL: string;
|
|
61
|
+
};
|
|
62
|
+
'scouts.dev': {
|
|
63
|
+
CLIENT_APP_DOMAIN_NAME: string;
|
|
64
|
+
CREDENTIAL_REFRESH_ENABLED: string;
|
|
65
|
+
CREDENTIAL_REFRESH_NOTIFICATION_WINDOW_HOURS: string;
|
|
66
|
+
DOMAIN_NAME: string;
|
|
67
|
+
INBOX_BATCH_ITEMS_PER_HOUR: string;
|
|
68
|
+
INBOX_DELETE_EXPIRED_RECORDS: string;
|
|
69
|
+
MESSAGEBIRD_ORIGINATOR: string;
|
|
70
|
+
POSTMARK_FROM_EMAIL: string;
|
|
71
|
+
SENTRY_ENV: string;
|
|
72
|
+
SHARE_LINK_MAINTENANCE_ALLOW_INSECURE_LOOPBACK: string;
|
|
73
|
+
SHARE_LINK_MAINTENANCE_BUDGET_MS: string;
|
|
74
|
+
SHARE_LINK_MAINTENANCE_CLAIMANT: string;
|
|
75
|
+
SHARE_LINK_MAINTENANCE_CLAIM_MS: string;
|
|
76
|
+
SHARE_LINK_MAINTENANCE_CLEANUP_LIMIT: string;
|
|
77
|
+
SHARE_LINK_MAINTENANCE_FINALIZE_RESERVE_MS: string;
|
|
78
|
+
SHARE_LINK_MAINTENANCE_GRAPH_TIMEOUT_MS: string;
|
|
79
|
+
SHARE_LINK_MAINTENANCE_INTERVAL_MS: string;
|
|
80
|
+
SHARE_LINK_MAINTENANCE_LEASE_MS: string;
|
|
81
|
+
SHARE_LINK_MAINTENANCE_RECOVERY_LIMIT: string;
|
|
82
|
+
SHARE_LINK_MAINTENANCE_REQUEST_TIMEOUT_MS: string;
|
|
83
|
+
SIGNING_AUTHORITY_ENDPOINT: string;
|
|
84
|
+
SKILL_EMBEDDING_GOOGLE_MODEL: string;
|
|
85
|
+
};
|
|
86
|
+
'scouts.production': {
|
|
87
|
+
CLIENT_APP_DOMAIN_NAME: string;
|
|
88
|
+
CREDENTIAL_REFRESH_ENABLED: string;
|
|
89
|
+
CREDENTIAL_REFRESH_NOTIFICATION_WINDOW_HOURS: string;
|
|
90
|
+
DOMAIN_NAME: string;
|
|
91
|
+
INBOX_BATCH_ITEMS_PER_HOUR: string;
|
|
92
|
+
INBOX_DELETE_EXPIRED_RECORDS: string;
|
|
93
|
+
MESSAGEBIRD_ORIGINATOR: string;
|
|
94
|
+
POSTMARK_FROM_EMAIL: string;
|
|
95
|
+
SENTRY_ENV: string;
|
|
96
|
+
SHARE_LINK_MAINTENANCE_ALLOW_INSECURE_LOOPBACK: string;
|
|
97
|
+
SHARE_LINK_MAINTENANCE_BUDGET_MS: string;
|
|
98
|
+
SHARE_LINK_MAINTENANCE_CLAIMANT: string;
|
|
99
|
+
SHARE_LINK_MAINTENANCE_CLAIM_MS: string;
|
|
100
|
+
SHARE_LINK_MAINTENANCE_CLEANUP_LIMIT: string;
|
|
101
|
+
SHARE_LINK_MAINTENANCE_FINALIZE_RESERVE_MS: string;
|
|
102
|
+
SHARE_LINK_MAINTENANCE_GRAPH_TIMEOUT_MS: string;
|
|
103
|
+
SHARE_LINK_MAINTENANCE_INTERVAL_MS: string;
|
|
104
|
+
SHARE_LINK_MAINTENANCE_LEASE_MS: string;
|
|
105
|
+
SHARE_LINK_MAINTENANCE_RECOVERY_LIMIT: string;
|
|
106
|
+
SHARE_LINK_MAINTENANCE_REQUEST_TIMEOUT_MS: string;
|
|
107
|
+
SIGNING_AUTHORITY_ENDPOINT: string;
|
|
108
|
+
SKILL_EMBEDDING_GOOGLE_MODEL: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export declare const applyBrainServiceStageConfig: (stage: string | undefined) => void;
|
|
112
|
+
//# sourceMappingURL=stageConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stageConfig.d.ts","sourceRoot":"","sources":["../../src/config/stageConfig.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AASvB,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAc,CAAC;AAEvD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM+B,CAAC;AAInD,eAAO,MAAM,4BAA4B,GAAI,OAAO,MAAM,GAAG,SAAS,KAAG,IAExE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stageConfig.test.d.ts","sourceRoot":"","sources":["../../src/config/stageConfig.test.ts"],"names":[],"mappings":""}
|
|
@@ -6,4 +6,6 @@ export declare const AUTH_GRANT_CREDENTIAL_MANAGEMENT_SCOPE = "credential:* pres
|
|
|
6
6
|
export declare const AUTH_GRANT_CONTRACTS_SCOPE = "contracts:*";
|
|
7
7
|
export declare const AUTH_GRANT_DID_METADATA_SCOPE = "didMetadata:*";
|
|
8
8
|
export declare const AUTH_GRANT_AUTH_GRANTS_SCOPE = "authGrants:*";
|
|
9
|
+
export declare const AUTH_GRANT_SHARE_LINKS_READ_SCOPE = "shareLinks:read";
|
|
10
|
+
export declare const AUTH_GRANT_SHARE_LINKS_WRITE_SCOPE = "shareLinks:write";
|
|
9
11
|
//# sourceMappingURL=auth-grant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-grant.d.ts","sourceRoot":"","sources":["../../src/constants/auth-grant.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,0BAA0B,WAAW,CAAC;AACnD,eAAO,MAAM,4BAA4B,QAAQ,CAAC;AAClD,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eAAO,MAAM,mCAAmC,+BAA+B,CAAC;AAChF,eAAO,MAAM,sCAAsC,yCAAyC,CAAC;AAC7F,eAAO,MAAM,0BAA0B,gBAAgB,CAAC;AACxD,eAAO,MAAM,6BAA6B,kBAAkB,CAAC;AAC7D,eAAO,MAAM,4BAA4B,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"auth-grant.d.ts","sourceRoot":"","sources":["../../src/constants/auth-grant.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,0BAA0B,WAAW,CAAC;AACnD,eAAO,MAAM,4BAA4B,QAAQ,CAAC;AAClD,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eAAO,MAAM,mCAAmC,+BAA+B,CAAC;AAChF,eAAO,MAAM,sCAAsC,yCAAyC,CAAC;AAC7F,eAAO,MAAM,0BAA0B,gBAAgB,CAAC;AACxD,eAAO,MAAM,6BAA6B,kBAAkB,CAAC;AAC7D,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAI3D,eAAO,MAAM,iCAAiC,oBAAoB,CAAC;AACnE,eAAO,MAAM,kCAAkC,qBAAqB,CAAC"}
|
package/dist/didkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/dist/docker-entry.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import './config/applyDockerStageConfig';
|
|
2
2
|
//# sourceMappingURL=docker-entry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docker-entry.d.ts","sourceRoot":"","sources":["../src/docker-entry.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"docker-entry.d.ts","sourceRoot":"","sources":["../src/docker-entry.ts"],"names":[],"mappings":"AAAA,OAAO,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AppManifest, AppManifestDiff } from '@learncard/types';
|
|
2
|
+
export declare const canonicalizeManifest: (manifest: AppManifest) => string;
|
|
3
|
+
export declare const hashManifest: (manifest: AppManifest) => string;
|
|
4
|
+
export declare const diffManifests: (current: AppManifest, next: AppManifest) => AppManifestDiff;
|
|
5
|
+
//# sourceMappingURL=app-manifest.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-manifest.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/app-manifest.helpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAA0B,MAAM,kBAAkB,CAAC;AAiH7F,eAAO,MAAM,oBAAoB,GAAI,UAAU,WAAW,KAAG,MAE5D,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,WAAW,KAAG,MAEpD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,SAAS,WAAW,EAAE,MAAM,WAAW,KAAG,eA2DvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boost.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/boost.helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,EAAE,EACF,GAAG,EACH,UAAU,EAEV,sBAAsB,EACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EACH,gBAAgB,EAInB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"boost.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/boost.helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,EAAE,EACF,GAAG,EACH,UAAU,EAEV,sBAAsB,EACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EACH,gBAAgB,EAInB,MAAM,iBAAiB,CAAC;AAWzB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAgBxC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,WAAW,GAAI,IAAI,MAAM,EAAE,QAAQ,MAAM,KAAG,MACpB,CAAC;AAEtC,eAAO,MAAM,mBAAmB,GAC5B,SAAS,WAAW,EACpB,OAAO,aAAa,KACrB,OAAO,CAAC,OAAO,CAOjB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,aAAa,KAAG,OAEnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,aAAa,KAAG,OAEzD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,aAAa,KAAG,OAEtD,CAAC;AAMF,eAAO,MAAM,0BAA0B,GAAU,OAAO,aAAa,KAAG,OAAO,CAAC,OAAO,CAQtF,CAAC;AAEF,eAAO,MAAM,oCAAoC,GAC7C,YAAY,EAAE,GAAG,UAAU,EAC3B,mBAAmB,MAAM,KAC1B,MAQF,CAAC;AAEF,eAAO,MAAM,SAAS,GAAU,iJAa7B;IACC,IAAI,EAAE,gBAAgB,CAAC;IACvB,EAAE,EAAE,WAAW,CAAC;IAChB,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,EAAE,EAAE,GAAG,GAAG,GAAG,gBAAgB,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,KAAG,OAAO,CAAC,MAAM,CAiHjB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC5B,OAAO,aAAa,EACpB,QAAQ,MAAM,EACd,MAAM,gBAAgB,EACtB,IAAI,WAAW,EACf,yBAAyB,2BAA2B,KACrD,OAAO,CAAC,MAAM,CAmChB,CAAC;AAKF,eAAO,MAAM,gBAAgB,GAAI,WAAW,MAAM,KAAG,sBAAsB,GAAG,IAY7E,CAAC;AAMF,eAAO,MAAM,0BAA0B,GACnC,OAAO,aAAa,EACpB,UAAU,MAAM,EAChB,QAAQ,MAAM,EACd,UAAS;IACL,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACjB,KACP,OAAO,CAAC,UAAU,CA4CpB,CAAC;AAqCF,eAAO,MAAM,kCAAkC,GAC3C,YAAY,UAAU,EACtB,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,kBAAiB,OAAc,KAChC,UAmDF,CAAC;AA8BF,eAAO,MAAM,iBAAiB,GAAU,UAAU,MAAM,KAAG,OAAO,CAAC,aAAa,CAc/E,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { Transaction } from 'neo4j-driver';
|
|
1
2
|
import { CredentialInstance } from '.././models/index';
|
|
2
3
|
import { ProfileType } from '../types/profile';
|
|
3
|
-
export declare const processClaimHooks: (profile: ProfileType, credential: CredentialInstance) => Promise<void>;
|
|
4
|
+
export declare const processClaimHooks: (profile: ProfileType, credential: CredentialInstance, transaction?: Transaction) => Promise<void>;
|
|
4
5
|
//# sourceMappingURL=claim-hooks.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim-hooks.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/claim-hooks.helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"claim-hooks.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/claim-hooks.helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAA+C,MAAM,SAAS,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAwH5C,eAAO,MAAM,iBAAiB,GAC1B,SAAS,WAAW,EACpB,YAAY,kBAAkB,EAC9B,cAAc,WAAW,KAC1B,OAAO,CAAC,IAAI,CAsBd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent-referral.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/consent-referral.helpers.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,2BAA2B,GAAI,yBAAgC,KAAG,MAI9E,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ConsentRequest, NormalizedConsentScopes } from '@learncard/partner-connect-core';
|
|
2
|
+
import type { ConsentFlowContract } from '@learncard/types';
|
|
3
|
+
export declare const normalizeConsentScopes: (request: ConsentRequest) => NormalizedConsentScopes;
|
|
4
|
+
export declare const computeConsentScopeHash: (scopes: NormalizedConsentScopes) => string;
|
|
5
|
+
export declare const buildConsentFlowContractFromScopes: (scopes: NormalizedConsentScopes) => ConsentFlowContract;
|
|
6
|
+
export declare const buildScopedConsentContractName: (listingDisplayName: string) => string;
|
|
7
|
+
//# sourceMappingURL=consent-scopes.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent-scopes.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/consent-scopes.helpers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAS5D,eAAO,MAAM,sBAAsB,GAAI,SAAS,cAAc,KAAG,uBAEhE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,QAAQ,uBAAuB,KAAG,MAEzE,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAC3C,QAAQ,uBAAuB,KAChC,mBAqBF,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,oBAAoB,MAAM,KAAG,MAQ3E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-event-maintenance.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/contract-event-maintenance.helpers.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,8BAA8B,UAM1C,CAAC;AAKF,eAAO,MAAM,8BAA8B,QAAa,OAAO,CAAC,IAAI,CA6BnE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { QueryBuilder } from 'neogma';
|
|
2
|
+
import { type ConsentFlowTransaction, type LCNNotification } from '@learncard/types';
|
|
3
|
+
import { type NotificationMessageKey } from './notificationMessages';
|
|
4
|
+
export type ContractEventDispatchSummary = {
|
|
5
|
+
delivered: number;
|
|
6
|
+
pending: number;
|
|
7
|
+
skipped: number;
|
|
8
|
+
rejected: number;
|
|
9
|
+
failed: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const appendConsentEvent: (query: QueryBuilder, { consenterProfileId, transaction, domain, messageKey, }: {
|
|
12
|
+
consenterProfileId: string;
|
|
13
|
+
transaction: ConsentFlowTransaction;
|
|
14
|
+
domain?: string;
|
|
15
|
+
messageKey: NotificationMessageKey;
|
|
16
|
+
}) => QueryBuilder;
|
|
17
|
+
export declare const requestEventCypher = "\n WITH contract, request, target\n MATCH (contract)-[:CREATED_BY]->(owner:Profile)\n MERGE (event:ConsentFlowEvent {id: CASE WHEN $eventKind = 'request_sent' THEN request.requestId ELSE request.requestId + ':' + request.status END})\n ON CREATE SET event += {contractId: contract.id, fromId: $eventFrom,\n ownerId: owner.profileId, domain: $domain, kind: $eventKind, createdAt: $now,\n requestId: request.requestId, requestedBy: request.requestedBy,\n externalReferenceId: request.externalReferenceId, message: request.message, fanoutCreated: false, cleanupPending: true}\n WITH request, event, owner, target,\n CASE WHEN coalesce(event.fanoutCreated, false) THEN []\n WHEN $eventKind = 'request_sent' THEN [target.profileId]\n ELSE [owner.profileId] + CASE WHEN request.requestedBy <> owner.profileId\n THEN [request.requestedBy] ELSE [] END END AS deliveries\n FOREACH (recipientId IN [id IN deliveries WHERE id IS NOT NULL AND id <> $eventFrom] |\n MERGE (event)-[:HAS_DELIVERY]->(delivery:ConsentFlowEventDelivery {id: event.id + ':' + recipientId})\n ON CREATE SET delivery += {toId: recipientId, state: 'pending', nextAttemptAt: $now,\n eventCreatedAt: event.createdAt, attempts: 0,\n role: CASE WHEN $eventKind = 'request_sent' THEN 'target'\n WHEN recipientId = owner.profileId THEN 'owner' ELSE 'requester' END})\n SET event.fanoutCreated = true\n RETURN DISTINCT request, event.id AS eventId\n";
|
|
18
|
+
export declare const authorizeContractNotification: (notification: LCNNotification) => Promise<boolean>;
|
|
19
|
+
export declare const dispatchContractEvents: ({ eventId, limit, budgetMs, }?: {
|
|
20
|
+
eventId?: string;
|
|
21
|
+
limit?: number;
|
|
22
|
+
budgetMs?: number;
|
|
23
|
+
}) => Promise<ContractEventDispatchSummary>;
|
|
24
|
+
export declare const tryDispatchContractEvent: (eventId: string) => Promise<void>;
|
|
25
|
+
//# sourceMappingURL=contract-events.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-events.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/contract-events.helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAKtC,OAAO,EAIH,KAAK,sBAAsB,EAE3B,KAAK,eAAe,EACvB,MAAM,kBAAkB,CAAC;AAS1B,OAAO,EAA0B,KAAK,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAgB7F,MAAM,MAAM,4BAA4B,GAAG;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAC3B,OAAO,YAAY,EACnB,0DAKG;IACC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,sBAAsB,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,sBAAsB,CAAC;CACtC,KACF,YA4DF,CAAC;AAGF,eAAO,MAAM,kBAAkB,y/CAqB9B,CAAC;AA6BF,eAAO,MAAM,6BAA6B,GACtC,cAAc,eAAe,KAC9B,OAAO,CAAC,OAAO,CA2DjB,CAAC;AAoGF,eAAO,MAAM,sBAAsB,GAAU,gCAI1C;IACC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CAChB,KAAG,OAAO,CAAC,4BAA4B,CAwL5C,CAAC;AAGF,eAAO,MAAM,wBAAwB,GAAU,SAAS,MAAM,KAAG,OAAO,CAAC,IAAI,CAU5E,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SendContractRequest } from '@learncard/types';
|
|
2
|
+
import type { ProfileType } from '../types/profile';
|
|
3
|
+
import type { DbContractType } from '../types/consentflowcontract';
|
|
4
|
+
export declare const resolveContractRequest: (contractUri: string, targetIdentifier: string, profile: ProfileType, domain: string, allowRecipients?: boolean) => Promise<{
|
|
5
|
+
contract: DbContractType;
|
|
6
|
+
target: ProfileType;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const canManageContractRequests: (contract: DbContractType, profileId: string, allowRecipients?: boolean) => Promise<boolean>;
|
|
9
|
+
export declare const sendGenericContractRequest: (input: SendContractRequest, profile: ProfileType, domain: string) => Promise<boolean>;
|
|
10
|
+
export declare const decideGenericContractRequest: ({ contract, targetProfileId, actorProfileId, status, domain, }: {
|
|
11
|
+
contract: DbContractType;
|
|
12
|
+
targetProfileId: string;
|
|
13
|
+
actorProfileId: string;
|
|
14
|
+
status: "denied" | "cancelled";
|
|
15
|
+
domain: string;
|
|
16
|
+
}) => Promise<boolean>;
|
|
17
|
+
export declare const markGenericContractRequestSeen: (contractId: string, targetProfileId: string) => Promise<boolean>;
|
|
18
|
+
export declare const assertGenericRequestWriteScope: (scope?: string) => void;
|
|
19
|
+
//# sourceMappingURL=contract-requests.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-requests.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/contract-requests.helpers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAiB5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,eAAO,MAAM,sBAAsB,GAC/B,aAAa,MAAM,EACnB,kBAAkB,MAAM,EACxB,SAAS,WAAW,EACpB,QAAQ,MAAM,EACd,yBAAsB,KACvB,OAAO,CAAC;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,CAY3D,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAClC,UAAU,cAAc,EACxB,WAAW,MAAM,EACjB,yBAAuB,KACxB,OAAO,CAAC,OAAO,CAGjB,CAAC;AAGF,eAAO,MAAM,0BAA0B,GACnC,OAAO,mBAAmB,EAC1B,SAAS,WAAW,EACpB,QAAQ,MAAM,KACf,OAAO,CAAC,OAAO,CAmEjB,CAAC;AAGF,eAAO,MAAM,4BAA4B,GAAU,gEAMhD;IACC,QAAQ,EAAE,cAAc,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;CAClB,KAAG,OAAO,CAAC,OAAO,CA8ClB,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACvC,YAAY,MAAM,EAClB,iBAAiB,MAAM,KACxB,OAAO,CAAC,OAAO,CAUjB,CAAC;AAGF,eAAO,MAAM,8BAA8B,GAAI,QAAQ,MAAM,KAAG,IAM/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentialSubject.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/credentialSubject.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAgCvD,eAAO,MAAM,uBAAuB,GAAI,YAAY,UAAU,GAAG,EAAE,EAAE,YAAY,MAAM,KAAG,IAOzF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentialSubject.helpers.test.d.ts","sourceRoot":"","sources":["../../src/helpers/credentialSubject.helpers.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { VC } from '@learncard/types';
|
|
1
|
+
import { VC, JWE } from '@learncard/types';
|
|
2
2
|
import { ProfileType } from '../types/profile';
|
|
3
3
|
export declare function finalizeInboxCredentialsForProfile(profile: ProfileType, domain: string): Promise<{
|
|
4
4
|
processed: number;
|
|
5
5
|
claimed: number;
|
|
6
6
|
errors: number;
|
|
7
7
|
guardianPending: number;
|
|
8
|
-
verifiableCredentials: VC[];
|
|
8
|
+
verifiableCredentials: (VC | JWE)[];
|
|
9
9
|
deliveries: {
|
|
10
10
|
id: string;
|
|
11
|
-
credential: VC;
|
|
11
|
+
credential: VC | JWE;
|
|
12
12
|
}[];
|
|
13
13
|
}>;
|
|
14
14
|
//# sourceMappingURL=finalize-inbox.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finalize-inbox.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/finalize-inbox.helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,EAAE,
|
|
1
|
+
{"version":3,"file":"finalize-inbox.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/finalize-inbox.helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,EAAE,EACF,GAAG,EAKN,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA4H5C,wBAAsB,kCAAkC,CACpD,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,MAAM,GACf,OAAO,CAAC;IACP,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC;IACpC,UAAU,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,EAAE,GAAG,GAAG,CAAA;KAAE,EAAE,CAAC;CACtD,CAAC,CAqRD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/inbox.helpers.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,EAAE,EACF,UAAU,EAGV,EAAE,EACF,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EAE3B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"inbox.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/inbox.helpers.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,EAAE,EACF,UAAU,EAGV,EAAE,EACF,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EAE3B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAKzE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAmClC,eAAO,MAAM,2BAA2B,GAAU,YAAY,UAAU,KAAG,OAAO,CAAC,OAAO,CAUzF,CAAC;AAEF,eAAO,MAAM,cAAc,GACvB,eAAe,WAAW,EAC1B,yBAAyB,2BAA2B,EACpD,WAAW,sBAAsB,EACjC,YAAY,EAAE,GAAG,UAAU,GAAG,EAAE,EAChC,gBAAe,wBAAwB,CAAC,eAAe,CAAC,GAAG;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,aAAK,EACN,KAAK,OAAO,EACZ,cAAc,MAAM,KACrB,OAAO,CAAC;IACP,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;IACnE,eAAe,EAAE,mBAAmB,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAoGA,CAAC;AAEF,eAAO,MAAM,YAAY,GACrB,eAAe,WAAW,EAC1B,WAAW,sBAAsB,EACjC,YAAY,EAAE,GAAG,UAAU,GAAG,EAAE,EAChC,gBAAe,wBAAwB,CAAC,eAAe,CAAC,GAAG;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC,aAAK,EACN,KAAK,OAAO,EAEZ,iBAAiB,MAAM,OAAO,CAAC,IAAI,CAAC,KACrC,OAAO,CAAC;IACP,OAAO,CAAC,EAAE,OAAO,kBAAkB,EAAE,6BAA6B,CAAC;IACnE,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;IACnE,eAAe,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;CACpF,CAkwBA,CAAC;AAOF,eAAO,MAAM,2BAA2B,GACpC,OAAO,wBAAwB,EAC/B,KAAK,OAAO,KACb,OAAO,CAAC;IAAE,UAAU,EAAE,EAAE,GAAG,UAAU,GAAG,EAAE,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,CAoDzE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { InlineCredentialTemplate, VariableManifest } from '@learncard/partner-connect-core';
|
|
2
|
+
import { type BoostInstance } from '.././models/index';
|
|
3
|
+
import type { AppStoreListingType } from '../types/app-store-listing';
|
|
4
|
+
import type { IntegrationType } from '../types/integration';
|
|
5
|
+
import type { ProfileType, SigningAuthorityForUserType } from '../types/profile';
|
|
6
|
+
type InlineTemplateBoostMeta = {
|
|
7
|
+
integrationId?: string;
|
|
8
|
+
templateAlias?: string;
|
|
9
|
+
inlineTemplateHash?: string;
|
|
10
|
+
inlineTemplateVersion?: number;
|
|
11
|
+
inlineVariableManifest?: string;
|
|
12
|
+
source?: string;
|
|
13
|
+
supersededAt?: string;
|
|
14
|
+
supersededBy?: string;
|
|
15
|
+
};
|
|
16
|
+
type UpsertInlineTemplateBoostResult = {
|
|
17
|
+
boost: BoostInstance;
|
|
18
|
+
boostUri: string;
|
|
19
|
+
templateVersion: number;
|
|
20
|
+
manifest: VariableManifest;
|
|
21
|
+
};
|
|
22
|
+
export declare const readInlineTemplateBoostMeta: (boostOrId: BoostInstance | string) => Promise<InlineTemplateBoostMeta>;
|
|
23
|
+
export declare const getInlineTemplateVersion: (boost: BoostInstance) => number | undefined;
|
|
24
|
+
export declare const getInlineTemplateHashForBoost: (boost: BoostInstance) => string | undefined;
|
|
25
|
+
export declare const isInlineTemplateBoostVersionMatch: (boost: BoostInstance, templateHash: string, templateVersion: number) => boolean;
|
|
26
|
+
export declare const computeInlineTemplateHash: (template: InlineCredentialTemplate) => {
|
|
27
|
+
credentialTemplateJson: string;
|
|
28
|
+
variableManifest: VariableManifest;
|
|
29
|
+
category: string;
|
|
30
|
+
walletSkills?: unknown;
|
|
31
|
+
contentHash: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const validateInlineTemplateOrThrow: (template: InlineCredentialTemplate) => void;
|
|
34
|
+
export declare const validateInlineTemplateDataOrThrow: (manifest: VariableManifest, templateData: Record<string, unknown> | undefined) => void;
|
|
35
|
+
export declare const ensureManagedSigningAuthorityForListing: (listing: AppStoreListingType, integration: IntegrationType, integrationOwner: ProfileType, domain: string) => Promise<SigningAuthorityForUserType>;
|
|
36
|
+
export declare const upsertInlineTemplateBoostForListing: ({ listing, integration, templateAlias, template, domain, desiredVersion, }: {
|
|
37
|
+
listing: AppStoreListingType;
|
|
38
|
+
integration: IntegrationType;
|
|
39
|
+
templateAlias: string;
|
|
40
|
+
template: InlineCredentialTemplate;
|
|
41
|
+
domain: string;
|
|
42
|
+
desiredVersion?: number;
|
|
43
|
+
}) => Promise<UpsertInlineTemplateBoostResult>;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=inline-template.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-template.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/inline-template.helpers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAkClG,OAAO,EAAS,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAE9E,KAAK,uBAAuB,GAAG;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,+BAA+B,GAAG;IACnC,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAeF,eAAO,MAAM,2BAA2B,GACpC,WAAW,aAAa,GAAG,MAAM,KAClC,OAAO,CAAC,uBAAuB,CA4CjC,CAAC;AAMF,eAAO,MAAM,wBAAwB,GAAI,OAAO,aAAa,KAAG,MAAM,GAAG,SAGxE,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,OAAO,aAAa,KAAG,MAAM,GAAG,SAG7E,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAC1C,OAAO,aAAa,EACpB,cAAc,MAAM,EACpB,iBAAiB,MAAM,KACxB,OAKF,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAClC,UAAU,wBAAwB,KACnC;IACC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CAkBvB,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,UAAU,wBAAwB,KAAG,IAWlF,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAC1C,UAAU,gBAAgB,EAC1B,cAAc,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,KAClD,IAWF,CAAC;AAuFF,eAAO,MAAM,uCAAuC,GAChD,SAAS,mBAAmB,EAC5B,aAAa,eAAe,EAC5B,kBAAkB,WAAW,EAC7B,QAAQ,MAAM,KACf,OAAO,CAAC,2BAA2B,CAoDrC,CAAC;AAuCF,eAAO,MAAM,mCAAmC,GAAU,4EAOvD;IACC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,WAAW,EAAE,eAAe,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,wBAAwB,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B,KAAG,OAAO,CAAC,+BAA+B,CAoJ1C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type NotificationMessageKey = 'boostReceived' | 'boostAccepted' | 'boostAcceptedConnect' | 'credentialReceived' | 'endorsementReceived' | 'connectionAccepted' | 'connectionRequest' | 'connectionRequestExpiredInvite' | 'presentationReceived' | 'issuanceDelivered' | 'issuanceClaimed' | 'issuanceError' | 'guardianApprovalPending' | 'guardianApproved' | 'guardianRejected' | 'parentAccountApproved' | 'appListingSubmitted' | 'appListingWithdrawn' | 'appListingApproved' | 'appListingRejected' | 'consentFlowViewRequest' | 'consentFlowInvite' | 'consentFlowShare' | 'consentFlowTransactionCreated' | 'consentFlowInsightsShared' | 'consentFlowTransactionReconsented' | 'consentFlowTransactionUpdatedTerms' | 'consentFlowTransactionWithdrawn' | 'consentFlowTransactionSyncedSingle' | 'consentFlowTransactionSyncedPlural' | 'credentialRevokedNamed' | 'credentialRevokedUnnamed' | 'credentialSuspendedNamed' | 'credentialSuspendedUnnamed' | 'credentialRestoredNamed' | 'credentialRestoredUnnamed' | 'credentialRefreshed';
|
|
1
|
+
export type NotificationMessageKey = 'boostReceived' | 'boostAccepted' | 'boostAcceptedConnect' | 'credentialReceived' | 'endorsementReceived' | 'connectionAccepted' | 'connectionRequest' | 'connectionRequestExpiredInvite' | 'presentationReceived' | 'issuanceDelivered' | 'issuanceClaimed' | 'issuanceError' | 'guardianApprovalPending' | 'guardianApproved' | 'guardianRejected' | 'parentAccountApproved' | 'appListingSubmitted' | 'appListingWithdrawn' | 'appListingApproved' | 'appListingRejected' | 'contractRequestReceived' | 'contractRequestAccepted' | 'contractRequestDenied' | 'contractRequestCancelled' | 'consentFlowViewRequest' | 'consentFlowInvite' | 'consentFlowShare' | 'consentFlowTransactionCreated' | 'consentFlowInsightsShared' | 'consentFlowTransactionReconsented' | 'consentFlowTransactionUpdatedTerms' | 'consentFlowTransactionWithdrawn' | 'consentFlowTransactionSyncedSingle' | 'consentFlowTransactionSyncedPlural' | 'credentialRevokedNamed' | 'credentialRevokedUnnamed' | 'credentialSuspendedNamed' | 'credentialSuspendedUnnamed' | 'credentialRestoredNamed' | 'credentialRestoredUnnamed' | 'credentialRefreshed' | 'shareViewed';
|
|
2
2
|
type MessageTemplate = {
|
|
3
3
|
title: string;
|
|
4
4
|
body: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationMessages.d.ts","sourceRoot":"","sources":["../../src/helpers/notificationMessages.ts"],"names":[],"mappings":"AAmBA,MAAM,MAAM,sBAAsB,GAC5B,eAAe,GACf,eAAe,GACf,sBAAsB,GACtB,oBAAoB,GACpB,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,gCAAgC,GAChC,sBAAsB,GACtB,mBAAmB,GACnB,iBAAiB,GACjB,eAAe,GACf,yBAAyB,GACzB,kBAAkB,GAClB,kBAAkB,GAClB,uBAAuB,GACvB,qBAAqB,GACrB,qBAAqB,GACrB,oBAAoB,GACpB,oBAAoB,GACpB,wBAAwB,GACxB,mBAAmB,GACnB,kBAAkB,GAElB,+BAA+B,GAC/B,2BAA2B,GAC3B,mCAAmC,GACnC,oCAAoC,GACpC,iCAAiC,GACjC,oCAAoC,GACpC,oCAAoC,GACpC,wBAAwB,GACxB,0BAA0B,GAC1B,0BAA0B,GAC1B,4BAA4B,GAC5B,yBAAyB,GACzB,2BAA2B,GAG3B,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"notificationMessages.d.ts","sourceRoot":"","sources":["../../src/helpers/notificationMessages.ts"],"names":[],"mappings":"AAmBA,MAAM,MAAM,sBAAsB,GAC5B,eAAe,GACf,eAAe,GACf,sBAAsB,GACtB,oBAAoB,GACpB,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,gCAAgC,GAChC,sBAAsB,GACtB,mBAAmB,GACnB,iBAAiB,GACjB,eAAe,GACf,yBAAyB,GACzB,kBAAkB,GAClB,kBAAkB,GAClB,uBAAuB,GACvB,qBAAqB,GACrB,qBAAqB,GACrB,oBAAoB,GACpB,oBAAoB,GACpB,yBAAyB,GACzB,yBAAyB,GACzB,uBAAuB,GACvB,0BAA0B,GAC1B,wBAAwB,GACxB,mBAAmB,GACnB,kBAAkB,GAElB,+BAA+B,GAC/B,2BAA2B,GAC3B,mCAAmC,GACnC,oCAAoC,GACpC,iCAAiC,GACjC,oCAAoC,GACpC,oCAAoC,GACpC,wBAAwB,GACxB,0BAA0B,GAC1B,0BAA0B,GAC1B,4BAA4B,GAC5B,yBAAyB,GACzB,2BAA2B,GAG3B,qBAAqB,GACrB,aAAa,CAAC;AAEpB,KAAK,eAAe,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAIvD,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAqsB3D,eAAO,MAAM,sBAAsB,GAC/B,KAAK,sBAAsB,EAC3B,QAAQ,MAAM,EACd,SAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAM,KAChD,eAcF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationQueue.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/notificationQueue.helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notificationQueue.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/notificationQueue.helpers.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,yBAAyB,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,IAAI,CAmC1E,CAAC"}
|
|
@@ -2,7 +2,13 @@ import { LCNNotification } from '@learncard/types';
|
|
|
2
2
|
import type { ProfileType } from '../types/profile';
|
|
3
3
|
type NotificationDeliveryOptions = {
|
|
4
4
|
propagateDirectWebhookTransportErrors?: boolean;
|
|
5
|
+
throwOnPermanentFailure?: boolean;
|
|
5
6
|
};
|
|
7
|
+
export declare class PermanentNotificationDeliveryError extends Error {
|
|
8
|
+
readonly reason: 'no_webhook' | 'invalid_webhook' | 'webhook_rejected';
|
|
9
|
+
readonly statusCode?: number | undefined;
|
|
10
|
+
constructor(reason: 'no_webhook' | 'invalid_webhook' | 'webhook_rejected', statusCode?: number | undefined);
|
|
11
|
+
}
|
|
6
12
|
export declare const parseNotificationWebhookResponse: (responseBody: unknown, responseOk: boolean) => boolean;
|
|
7
13
|
export declare const buildInitialCredentialReceivedNotification: (params: {
|
|
8
14
|
holderProfile: ProfileType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/notifications.helpers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAoC,MAAM,kBAAkB,CAAC;AAOrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAajD,KAAK,2BAA2B,GAAG;IAC/B,qCAAqC,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"notifications.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/notifications.helpers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAoC,MAAM,kBAAkB,CAAC;AAOrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAajD,KAAK,2BAA2B,GAAG;IAC/B,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAEhD,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACrC,CAAC;AAEF,qBAAa,kCAAmC,SAAQ,KAAK;IAErD,QAAQ,CAAC,MAAM,EAAE,YAAY,GAAG,iBAAiB,GAAG,kBAAkB;IACtE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM;gBADnB,MAAM,EAAE,YAAY,GAAG,iBAAiB,GAAG,kBAAkB,EAC7D,UAAU,CAAC,EAAE,MAAM,YAAA;CAKnC;AAuED,eAAO,MAAM,gCAAgC,GACzC,cAAc,OAAO,EACrB,YAAY,OAAO,KACpB,OAcF,CAAC;AAmCF,eAAO,MAAM,0CAA0C,GAAI,QAAQ;IAC/D,aAAa,EAAE,WAAW,CAAC;IAC3B,aAAa,EAAE,WAAW,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACf,KAAG,eAqBH,CAAC;AAYF,MAAM,MAAM,oCAAoC,GAAG;IAE/C,YAAY,EAAE,eAAe,CAAC;IAE9B,cAAc,EAAE,MAAM,CAAC;IAEvB,QAAQ,EAAE,MAAM,CAAC;IAEjB,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,0CAA0C,GAAG;IACrD,aAAa,EAAE,WAAW,CAAC;IAC3B,aAAa,EAAE,WAAW,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,MAAM,CAAC;IAEhB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,oCAAoC,GAC7C,QAAQ,0CAA0C,KACnD,oCAyBF,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACtC,cAAc,eAAe,KAC9B,MAAM,GAAG,SAKX,CAAC;AAUF,wBAAsB,sBAAsB,CACxC,YAAY,EAAE,eAAe,EAC7B,OAAO,GAAE,2BAAgC,yFA+B5C;AAED,wBAAsB,gBAAgB,CAClC,YAAY,EAAE,eAAe,EAC7B,OAAO,GAAE,2BAAgC,oBA0I5C"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PresentationMetadataValidator: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3
|
+
export declare const assertPresentationMetadataRecipient: (metadata: Record<string, unknown> | undefined, senderProfileId: string, recipientProfileId: string) => void;
|
|
4
|
+
//# sourceMappingURL=presentation-metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation-metadata.d.ts","sourceRoot":"","sources":["../../src/helpers/presentation-metadata.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,eAAO,MAAM,6BAA6B,wCAOpC,CAAC;AAEP,eAAO,MAAM,mCAAmC,GAC5C,UAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC7C,iBAAiB,MAAM,EACvB,oBAAoB,MAAM,KAC3B,IAMF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VP, JWE } from '@learncard/types';
|
|
2
2
|
import { ProfileType } from '../types/profile';
|
|
3
3
|
export declare const getPresentationUri: (id: string, domain: string) => string;
|
|
4
|
-
export declare const sendPresentation: (from: ProfileType, to: ProfileType, presentation: VP | JWE, domain: string) => Promise<string>;
|
|
4
|
+
export declare const sendPresentation: (from: ProfileType, to: ProfileType, presentation: VP | JWE, domain: string, metadata?: Record<string, unknown>) => Promise<string>;
|
|
5
5
|
export declare const acceptPresentation: (profile: ProfileType, uri: string) => Promise<boolean>;
|
|
6
6
|
//# sourceMappingURL=presentation.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/presentation.helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,GAAG,EAAoC,MAAM,kBAAkB,CAAC;AAe7E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,EAAE,QAAQ,MAAM,KAAG,MACpB,CAAC;AAE7C,eAAO,MAAM,gBAAgB,GACzB,MAAM,WAAW,EACjB,IAAI,WAAW,EACf,cAAc,EAAE,GAAG,GAAG,EACtB,QAAQ,MAAM,
|
|
1
|
+
{"version":3,"file":"presentation.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/presentation.helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,GAAG,EAAoC,MAAM,kBAAkB,CAAC;AAe7E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,EAAE,QAAQ,MAAM,KAAG,MACpB,CAAC;AAE7C,eAAO,MAAM,gBAAgB,GACzB,MAAM,WAAW,EACjB,IAAI,WAAW,EACf,cAAc,EAAE,GAAG,GAAG,EACtB,QAAQ,MAAM,EACd,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KACnC,OAAO,CAAC,MAAM,CAuBhB,CAAC;AAKF,eAAO,MAAM,kBAAkB,GAAU,SAAS,WAAW,EAAE,KAAK,MAAM,KAAG,OAAO,CAAC,OAAO,CA6B3F,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ProfileType } from '../types/profile';
|
|
2
2
|
export declare const transformProfileId: (rawInput: string) => string;
|
|
3
|
+
export declare const PublicProfileIdValidator: import("zod").ZodString;
|
|
4
|
+
export declare const isServiceProfileExemptFromGuardianship: (isServiceProfile: unknown, profileType: unknown) => boolean;
|
|
3
5
|
export declare const getOrCreateFederatedProfile: (senderDid: string, senderServiceDid: string, displayName: string) => Promise<ProfileType>;
|
|
4
6
|
//# sourceMappingURL=profile.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/profile.helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"profile.helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/profile.helpers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,KAAG,MACL,CAAC;AAElD,eAAO,MAAM,wBAAwB,yBAGpC,CAAC;AAGF,eAAO,MAAM,sCAAsC,GAC/C,kBAAkB,OAAO,EACzB,aAAa,OAAO,KACrB,OAA+D,CAAC;AAWnE,eAAO,MAAM,2BAA2B,GACpC,WAAW,MAAM,EACjB,kBAAkB,MAAM,EACxB,aAAa,MAAM,KACpB,OAAO,CAAC,WAAW,CA4BrB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ShareContentTokenSigner } from './types';
|
|
2
|
+
export declare const createDidWebLearnCardTokenSigner: (dependencies?: {
|
|
3
|
+
getLearnCard?: () => Promise<{
|
|
4
|
+
invoke: {
|
|
5
|
+
issuePresentation: (...args: unknown[]) => unknown;
|
|
6
|
+
};
|
|
7
|
+
}>;
|
|
8
|
+
getSignerDid?: () => string;
|
|
9
|
+
}) => ShareContentTokenSigner;
|
|
10
|
+
//# sourceMappingURL=adapters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../../src/helpers/share-content-client/adapters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAgBvD,eAAO,MAAM,gCAAgC,GAAI,eAAe;IAC5D,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC;QACzB,MAAM,EAAE;YAAE,iBAAiB,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAA;SAAE,CAAC;KAClE,CAAC,CAAC;IACH,YAAY,CAAC,EAAE,MAAM,MAAM,CAAC;CAC/B,KAAG,uBA+BH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { canonicalizeShareContentRequestBody, DEFAULT_MAX_CANONICAL_BYTES, DEFAULT_MAX_CANONICAL_DEPTH, ShareContentCanonicalizationError, } from '@learncard/helpers';
|
|
2
|
+
export declare const computeShareContentRequestBodyHash: (body: unknown, options?: {
|
|
3
|
+
maxBytes?: number;
|
|
4
|
+
maxDepth?: number;
|
|
5
|
+
}) => string;
|
|
6
|
+
export declare const isSha256Hex: (value: unknown) => value is string;
|
|
7
|
+
//# sourceMappingURL=canonical.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canonical.d.ts","sourceRoot":"","sources":["../../../src/helpers/share-content-client/canonical.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,mCAAmC,EACnC,2BAA2B,EAC3B,2BAA2B,EAC3B,iCAAiC,GACpC,MAAM,oBAAoB,CAAC;AAM5B,eAAO,MAAM,kCAAkC,GAC3C,MAAM,OAAO,EACb,UAAS;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,KACvD,MAGmB,CAAC;AAGvB,eAAO,MAAM,WAAW,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MACO,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ShareContentClient, type ShareContentClientConfig, type ShareContentContentProjection, type ShareContentDeleteValue, type ShareContentPutValue, type ShareContentRecoveryProjection, type ShareContentStatValue } from './types';
|
|
2
|
+
export declare const createShareContentClient: (config: ShareContentClientConfig) => ShareContentClient;
|
|
3
|
+
export type { ShareContentClient, ShareContentClientConfig };
|
|
4
|
+
export type { ShareContentContentProjection, ShareContentDeleteValue, ShareContentPutValue, ShareContentRecoveryProjection, ShareContentStatValue, };
|
|
5
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/helpers/share-content-client/client.ts"],"names":[],"mappings":"AAWA,OAAO,EAMH,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAG7B,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAI5B,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAE7B,MAAM,SAAS,CAAC;AAgIjB,eAAO,MAAM,wBAAwB,GAAI,QAAQ,wBAAwB,KAAG,kBAgR3E,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,CAAC;AAC7D,YAAY,EACR,6BAA6B,EAC7B,uBAAuB,EACvB,oBAAoB,EACpB,8BAA8B,EAC9B,qBAAqB,GACxB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ShareContentClientConfig } from './types';
|
|
2
|
+
export declare const DISABLED_SHARE_CONTENT_CLIENT_CONFIG: ShareContentClientConfig;
|
|
3
|
+
export declare const validateShareContentOrigin: (origin: unknown, allowInsecureLoopback: boolean) => {
|
|
4
|
+
ok: true;
|
|
5
|
+
origin: string;
|
|
6
|
+
} | {
|
|
7
|
+
ok: false;
|
|
8
|
+
reason: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const resolveShareContentClientConfig: (raw: unknown) => ShareContentClientConfig;
|
|
11
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/helpers/share-content-client/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAQH,KAAK,wBAAwB,EAEhC,MAAM,SAAS,CAAC;AAmBjB,eAAO,MAAM,oCAAoC,EAAE,wBAgBrB,CAAC;AAmB/B,eAAO,MAAM,0BAA0B,GACnC,QAAQ,OAAO,EACf,uBAAuB,OAAO,KAC/B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAuC5D,CAAC;AAGF,eAAO,MAAM,+BAA+B,GAAI,KAAK,OAAO,KAAG,wBA+E9D,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export { canonicalizeShareContentRequestBody, computeShareContentRequestBodyHash, isSha256Hex, ShareContentCanonicalizationError, } from './canonical';
|
|
3
|
+
export { DISABLED_SHARE_CONTENT_CLIENT_CONFIG, resolveShareContentClientConfig, validateShareContentOrigin, } from './config';
|
|
4
|
+
export { createShareContentClient } from './client';
|
|
5
|
+
export { parseShareContentActiveSummary, parseShareContentContentProjection, parseShareContentDeleteValue, parseShareContentPutValue, parseShareContentRecoveryProjection, parseShareContentResponseEnvelope, parseShareContentStatValue, parseShareContentTombstoneSummary, } from './responses';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/share-content-client/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EACH,mCAAmC,EACnC,kCAAkC,EAClC,WAAW,EACX,iCAAiC,GACpC,MAAM,aAAa,CAAC;AACrB,OAAO,EACH,oCAAoC,EACpC,+BAA+B,EAC/B,0BAA0B,GAC7B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EACH,8BAA8B,EAC9B,kCAAkC,EAClC,4BAA4B,EAC5B,yBAAyB,EACzB,mCAAmC,EACnC,iCAAiC,EACjC,0BAA0B,EAC1B,iCAAiC,GACpC,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ShareContentActiveSummary, ShareContentContentProjection, ShareContentDeleteValue, ShareContentPutValue, ShareContentRecoveryProjection, ShareContentStatValue, ShareContentTombstoneSummary } from './types';
|
|
2
|
+
export declare const parseShareContentActiveSummary: (value: unknown) => ShareContentActiveSummary | null;
|
|
3
|
+
export declare const parseShareContentTombstoneSummary: (value: unknown) => ShareContentTombstoneSummary | null;
|
|
4
|
+
export declare const parseShareContentStatValue: (value: unknown) => ShareContentStatValue | null;
|
|
5
|
+
export declare const parseShareContentDeleteValue: (value: unknown) => ShareContentDeleteValue | null;
|
|
6
|
+
export declare const parseShareContentPutValue: (value: unknown) => ShareContentPutValue | null;
|
|
7
|
+
export declare const parseShareContentContentProjection: (value: unknown) => ShareContentContentProjection | null;
|
|
8
|
+
export declare const parseShareContentRecoveryProjection: (value: unknown) => ShareContentRecoveryProjection | null;
|
|
9
|
+
export declare const parseShareContentResponseEnvelope: (parsed: unknown) => {
|
|
10
|
+
ok: true;
|
|
11
|
+
value: unknown;
|
|
12
|
+
} | {
|
|
13
|
+
ok: false;
|
|
14
|
+
error: string;
|
|
15
|
+
} | null;
|
|
16
|
+
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/helpers/share-content-client/responses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,yBAAyB,EACzB,6BAA6B,EAC7B,uBAAuB,EAGvB,oBAAoB,EACpB,8BAA8B,EAC9B,qBAAqB,EACrB,4BAA4B,EAC/B,MAAM,SAAS,CAAC;AA6IjB,eAAO,MAAM,8BAA8B,UAtER,OAAO,KAAG,yBAAyB,GAAG,IAsET,CAAC;AACjE,eAAO,MAAM,iCAAiC,UAhCR,OAAO,KAAG,4BAA4B,GAAG,IAgCT,CAAC;AAEvE,eAAO,MAAM,0BAA0B,GAAI,OAAO,OAAO,KAAG,qBAAqB,GAAG,IACvB,CAAC;AAE9D,eAAO,MAAM,4BAA4B,GAAI,OAAO,OAAO,KAAG,uBAAuB,GAAG,IACxD,CAAC;AAEjC,eAAO,MAAM,yBAAyB,GAAI,OAAO,OAAO,KAAG,oBAAoB,GAAG,IASjF,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAC3C,OAAO,OAAO,KACf,6BAA6B,GAAG,IAqClC,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAC5C,OAAO,OAAO,KACf,8BAA8B,GAAG,IAqCnC,CAAC;AAGF,eAAO,MAAM,iCAAiC,GAC1C,QAAQ,OAAO,KAChB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAgBhE,CAAC"}
|