@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,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"CLIENT_APP_DOMAIN_NAME": "staging.pass.scout.org",
|
|
3
|
+
"CREDENTIAL_REFRESH_ENABLED": "false",
|
|
4
|
+
"CREDENTIAL_REFRESH_NOTIFICATION_WINDOW_HOURS": "24",
|
|
5
|
+
"DOMAIN_NAME": "staging.scoutnetwork.org",
|
|
6
|
+
"INBOX_BATCH_ITEMS_PER_HOUR": "10000",
|
|
7
|
+
"INBOX_DELETE_EXPIRED_RECORDS": "false",
|
|
8
|
+
"MESSAGEBIRD_ORIGINATOR": "+12077447198",
|
|
9
|
+
"POSTMARK_FROM_EMAIL": "ScoutPass <inbox@scoutnetwork.org>",
|
|
10
|
+
"SENTRY_ENV": "scout-network-staging",
|
|
11
|
+
"SHARE_LINK_MAINTENANCE_ALLOW_INSECURE_LOOPBACK": "false",
|
|
12
|
+
"SHARE_LINK_MAINTENANCE_BUDGET_MS": "60000",
|
|
13
|
+
"SHARE_LINK_MAINTENANCE_CLAIMANT": "brain-share-link-maintenance",
|
|
14
|
+
"SHARE_LINK_MAINTENANCE_CLAIM_MS": "300000",
|
|
15
|
+
"SHARE_LINK_MAINTENANCE_CLEANUP_LIMIT": "25",
|
|
16
|
+
"SHARE_LINK_MAINTENANCE_FINALIZE_RESERVE_MS": "5000",
|
|
17
|
+
"SHARE_LINK_MAINTENANCE_GRAPH_TIMEOUT_MS": "15000",
|
|
18
|
+
"SHARE_LINK_MAINTENANCE_INTERVAL_MS": "300000",
|
|
19
|
+
"SHARE_LINK_MAINTENANCE_LEASE_MS": "120000",
|
|
20
|
+
"SHARE_LINK_MAINTENANCE_RECOVERY_LIMIT": "25",
|
|
21
|
+
"SHARE_LINK_MAINTENANCE_REQUEST_TIMEOUT_MS": "10000",
|
|
22
|
+
"SIGNING_AUTHORITY_ENDPOINT": "https://staging.api.scoutnetwork.org/api",
|
|
23
|
+
"SKILL_EMBEDDING_GOOGLE_MODEL": "gemini-embedding-001"
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"CLIENT_APP_DOMAIN_NAME": "pass.scout.org",
|
|
3
|
+
"CREDENTIAL_REFRESH_ENABLED": "false",
|
|
4
|
+
"CREDENTIAL_REFRESH_NOTIFICATION_WINDOW_HOURS": "24",
|
|
5
|
+
"DOMAIN_NAME": "scoutnetwork.org",
|
|
6
|
+
"INBOX_BATCH_ITEMS_PER_HOUR": "10000",
|
|
7
|
+
"INBOX_DELETE_EXPIRED_RECORDS": "false",
|
|
8
|
+
"MESSAGEBIRD_ORIGINATOR": "+12077447198",
|
|
9
|
+
"POSTMARK_FROM_EMAIL": "ScoutPass <inbox@scoutnetwork.org>",
|
|
10
|
+
"SENTRY_ENV": "scout-network-production",
|
|
11
|
+
"SHARE_LINK_MAINTENANCE_ALLOW_INSECURE_LOOPBACK": "false",
|
|
12
|
+
"SHARE_LINK_MAINTENANCE_BUDGET_MS": "60000",
|
|
13
|
+
"SHARE_LINK_MAINTENANCE_CLAIMANT": "brain-share-link-maintenance",
|
|
14
|
+
"SHARE_LINK_MAINTENANCE_CLAIM_MS": "300000",
|
|
15
|
+
"SHARE_LINK_MAINTENANCE_CLEANUP_LIMIT": "25",
|
|
16
|
+
"SHARE_LINK_MAINTENANCE_FINALIZE_RESERVE_MS": "5000",
|
|
17
|
+
"SHARE_LINK_MAINTENANCE_GRAPH_TIMEOUT_MS": "15000",
|
|
18
|
+
"SHARE_LINK_MAINTENANCE_INTERVAL_MS": "300000",
|
|
19
|
+
"SHARE_LINK_MAINTENANCE_LEASE_MS": "120000",
|
|
20
|
+
"SHARE_LINK_MAINTENANCE_RECOVERY_LIMIT": "25",
|
|
21
|
+
"SHARE_LINK_MAINTENANCE_REQUEST_TIMEOUT_MS": "10000",
|
|
22
|
+
"SIGNING_AUTHORITY_ENDPOINT": "https://api.scoutnetwork.org/api",
|
|
23
|
+
"SKILL_EMBEDDING_GOOGLE_MODEL": "gemini-embedding-001"
|
|
24
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { bootstrapLambda } from '@learncard/service-config';
|
|
2
|
+
|
|
3
|
+
import { base, stages } from './src/config/stageConfig';
|
|
4
|
+
|
|
5
|
+
type ContractEventsApp = typeof import('./contractEventsLambdaApp');
|
|
6
|
+
|
|
7
|
+
const getApplication = bootstrapLambda<ContractEventsApp>({
|
|
8
|
+
base,
|
|
9
|
+
stages,
|
|
10
|
+
stage: process.env.AWS_LAMBDA_FUNCTION_NAME
|
|
11
|
+
? process.env.LAMBDA_STAGE
|
|
12
|
+
: process.env.CONFIG_STAGE,
|
|
13
|
+
importApp: () => import('./contractEventsLambdaApp'),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export const contractEventsHandler = async (
|
|
17
|
+
...args: Parameters<ContractEventsApp['contractEventsHandler']>
|
|
18
|
+
) => (await getApplication()).contractEventsHandler(...args);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Context } from 'aws-lambda';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
dispatchContractEvents,
|
|
5
|
+
type ContractEventDispatchSummary,
|
|
6
|
+
} from './src/helpers/contract-events.helpers';
|
|
7
|
+
|
|
8
|
+
/** Recover committed event intents after process failure; scheduler input cannot alter scope. */
|
|
9
|
+
export const contractEventsHandler = async (
|
|
10
|
+
_event: unknown,
|
|
11
|
+
context?: Pick<Context, 'getRemainingTimeInMillis'>
|
|
12
|
+
): Promise<ContractEventDispatchSummary> =>
|
|
13
|
+
dispatchContractEvents({
|
|
14
|
+
limit: 100,
|
|
15
|
+
budgetMs: Math.max(
|
|
16
|
+
0,
|
|
17
|
+
Math.min(45_000, (context?.getRemainingTimeInMillis() ?? 50_000) - 8_000)
|
|
18
|
+
),
|
|
19
|
+
});
|
package/didWebLambda.ts
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as Sentry from '@sentry/serverless';
|
|
1
|
+
import { bootstrapLambda } from '@learncard/service-config';
|
|
3
2
|
|
|
4
|
-
import
|
|
5
|
-
import { environment } from './src/config/environment';
|
|
6
|
-
import { toServerlessApplication } from './src/helpers/serverlessApplication';
|
|
3
|
+
import { base, stages } from './src/config/stageConfig';
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
],
|
|
5
|
+
type DidWebApp = typeof import('./didWebLambdaApp');
|
|
6
|
+
|
|
7
|
+
const getApplication = bootstrapLambda<DidWebApp>({
|
|
8
|
+
base,
|
|
9
|
+
stages,
|
|
10
|
+
stage: process.env.AWS_LAMBDA_FUNCTION_NAME
|
|
11
|
+
? process.env.LAMBDA_STAGE
|
|
12
|
+
: process.env.CONFIG_STAGE,
|
|
13
|
+
importApp: () => import('./didWebLambdaApp'),
|
|
18
14
|
});
|
|
19
15
|
|
|
20
|
-
export const didWebHandler =
|
|
21
|
-
|
|
22
|
-
);
|
|
16
|
+
export const didWebHandler = async (...args: Parameters<DidWebApp['didWebHandler']>) =>
|
|
17
|
+
(await getApplication()).didWebHandler(...args);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import serverlessHttp from 'serverless-http';
|
|
2
|
+
import * as Sentry from '@sentry/serverless';
|
|
3
|
+
|
|
4
|
+
import didWebApp from './src/dids';
|
|
5
|
+
import { environment } from './src/config/environment';
|
|
6
|
+
import { toServerlessApplication } from './src/helpers/serverlessApplication';
|
|
7
|
+
|
|
8
|
+
Sentry.AWSLambda.init({
|
|
9
|
+
dsn: environment.SENTRY_DSN,
|
|
10
|
+
environment: environment.SENTRY_ENV,
|
|
11
|
+
enabled: Boolean(environment.SENTRY_DSN),
|
|
12
|
+
tracesSampleRate: 1.0,
|
|
13
|
+
integrations: [
|
|
14
|
+
new Sentry.Integrations.Console(),
|
|
15
|
+
new Sentry.Integrations.Http({ tracing: true }),
|
|
16
|
+
new Sentry.Integrations.ContextLines(),
|
|
17
|
+
],
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export const didWebHandler = Sentry.AWSLambda.wrapHandler(
|
|
21
|
+
serverlessHttp(toServerlessApplication(didWebApp))
|
|
22
|
+
);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AppManifest } from '@learncard/types';
|
|
2
|
+
import type { AppManifestVersionType } from '../../types/app-manifest';
|
|
3
|
+
export declare const createAppManifestVersion: ({ integrationId, version, manifestHash, manifest, status, }: {
|
|
4
|
+
integrationId: string;
|
|
5
|
+
version: number;
|
|
6
|
+
manifestHash: string;
|
|
7
|
+
manifest: AppManifest;
|
|
8
|
+
status?: "draft" | "active" | "superseded";
|
|
9
|
+
}) => Promise<AppManifestVersionType>;
|
|
10
|
+
//# sourceMappingURL=create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/accesslayer/app-manifest-version/create.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAIjE,eAAO,MAAM,wBAAwB,GAAU,6DAM5C;IACC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,WAAW,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,YAAY,CAAC;CAC9C,KAAG,OAAO,CAAC,sBAAsB,CAkCjC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AppManifestVersionType } from '../../types/app-manifest';
|
|
2
|
+
export declare const readAppManifestVersionById: (id: string) => Promise<AppManifestVersionType | null>;
|
|
3
|
+
export declare const getManifestVersionForIntegration: (integrationId: string, version: number) => Promise<AppManifestVersionType | null>;
|
|
4
|
+
export declare const getLatestManifestVersionForIntegration: (integrationId: string) => Promise<AppManifestVersionType | null>;
|
|
5
|
+
export declare const getActiveManifestVersionForIntegration: (integrationId: string) => Promise<AppManifestVersionType | null>;
|
|
6
|
+
export declare const getManifestVersionsForIntegration: (integrationId: string, { limit, cursor }: {
|
|
7
|
+
limit: number;
|
|
8
|
+
cursor?: string;
|
|
9
|
+
}) => Promise<AppManifestVersionType[]>;
|
|
10
|
+
export declare const getListingIdForManifestVersion: (id: string) => Promise<string | null>;
|
|
11
|
+
//# sourceMappingURL=read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../src/accesslayer/app-manifest-version/read.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAuBjE,eAAO,MAAM,0BAA0B,GACnC,IAAI,MAAM,KACX,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAavC,CAAC;AAEF,eAAO,MAAM,gCAAgC,GACzC,eAAe,MAAM,EACrB,SAAS,MAAM,KAChB,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAavC,CAAC;AAEF,eAAO,MAAM,sCAAsC,GAC/C,eAAe,MAAM,KACtB,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAcvC,CAAC;AAEF,eAAO,MAAM,sCAAsC,GAC/C,eAAe,MAAM,KACtB,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAcvC,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAC1C,eAAe,MAAM,EACrB,mBAAmB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KACtD,OAAO,CAAC,sBAAsB,EAAE,CAclC,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAU,IAAI,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAWtF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const updateAppManifestVersion: (id: string, updates: Partial<{
|
|
2
|
+
status: "draft" | "active" | "superseded";
|
|
3
|
+
activatedAt: string | null;
|
|
4
|
+
}>) => Promise<boolean>;
|
|
5
|
+
export declare const markManifestVersionsSuperseded: (integrationId: string, exceptId: string) => Promise<boolean>;
|
|
6
|
+
export declare const associateListingWithManifestVersion: (listingId: string, manifestVersionId: string) => Promise<boolean>;
|
|
7
|
+
//# sourceMappingURL=update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/accesslayer/app-manifest-version/update.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,GACjC,IAAI,MAAM,EACV,SAAS,OAAO,CAAC;IACb,MAAM,EAAE,OAAO,GAAG,QAAQ,GAAG,YAAY,CAAC;IAC1C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC,KACH,OAAO,CAAC,OAAO,CAsBjB,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACvC,eAAe,MAAM,EACrB,UAAU,MAAM,KACjB,OAAO,CAAC,OAAO,CASjB,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAC5C,WAAW,MAAM,EACjB,mBAAmB,MAAM,KAC1B,OAAO,CAAC,OAAO,CAWjB,CAAC"}
|
|
@@ -35,11 +35,12 @@ export type ListingWithSubmitter = AppStoreListingType & {
|
|
|
35
35
|
email?: string;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
export declare const getListedAppsWithSubmitter: ({ limit, cursor, status, includeAllStatuses, excludeDemoted, }: {
|
|
38
|
+
export declare const getListedAppsWithSubmitter: ({ limit, cursor, status, includeAllStatuses, excludeDemoted, pendingUpdatesOnly, }: {
|
|
39
39
|
limit: number;
|
|
40
40
|
cursor?: string;
|
|
41
41
|
status?: string;
|
|
42
42
|
includeAllStatuses?: boolean;
|
|
43
43
|
excludeDemoted?: boolean;
|
|
44
|
+
pendingUpdatesOnly?: boolean;
|
|
44
45
|
}) => Promise<ListingWithSubmitter[]>;
|
|
45
46
|
//# sourceMappingURL=read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../src/accesslayer/app-store-listing/read.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,eAAO,MAAM,uBAAuB,GAChC,WAAW,MAAM,KAClB,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAYpC,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAClC,MAAM,MAAM,KACb,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAYpC,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACtC,OAAO,MAAM,KACd,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAcpC,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAClC,eAAe,MAAM,EACrB,mBAAmB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KACtD,OAAO,CAAC,mBAAmB,EAAE,CAkB/B,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAU,eAAe,MAAM,KAAG,OAAO,CAAC,MAAM,CAQvF,CAAC;AAEF,eAAO,MAAM,aAAa,GAAU,0FAQjC;IACC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,KAAG,OAAO,CAAC,mBAAmB,EAAE,CA+ChC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAC/B,YAAY,MAAM,EAClB,mBAAmB;IAAE,KAAK,EAAE,MAAM,CAAC;IA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E,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAU,oFAO9C;IACC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC,KAAG,OAAO,CAAC,oBAAoB,EAAE,CAsEjC,CAAC"}
|
|
@@ -3,6 +3,7 @@ export declare const associateListingWithSubmitter: (listingId: string, profileI
|
|
|
3
3
|
export declare const updateSubmittedAt: (listingId: string, submittedAt: string) => Promise<boolean>;
|
|
4
4
|
export declare const installAppForProfile: (profileId: string, listingId: string, installedAt?: string) => Promise<boolean>;
|
|
5
5
|
export declare const associateBoostWithListing: (listingId: string, boostUri: string, templateAlias: string) => Promise<boolean>;
|
|
6
|
+
export declare const associateConsentContractWithListing: (listingId: string, contractId: string, scopeHash: string) => Promise<boolean>;
|
|
6
7
|
export declare const associateListingWithSigningAuthority: (listingId: string, signingAuthorityEndpoint: string, props: {
|
|
7
8
|
name: string;
|
|
8
9
|
did: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/app-store-listing/relationships/create.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,+BAA+B,GACxC,WAAW,MAAM,EACjB,eAAe,MAAM,KACtB,OAAO,CAAC,OAAO,CAUjB,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACtC,WAAW,MAAM,EACjB,WAAW,MAAM,EACjB,cAAc,MAAM,KACrB,OAAO,CAAC,OAAO,CAgBjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC1B,WAAW,MAAM,EACjB,aAAa,MAAM,KACpB,OAAO,CAAC,OAAO,CAWjB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC7B,WAAW,MAAM,EACjB,WAAW,MAAM,EACjB,cAAa,MAAiC,KAC/C,OAAO,CAAC,OAAO,CAcjB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAClC,WAAW,MAAM,EACjB,UAAU,MAAM,EAChB,eAAe,MAAM,KACtB,OAAO,CAAC,OAAO,CAgBjB,CAAC;AAEF,eAAO,MAAM,oCAAoC,GAC7C,WAAW,MAAM,EACjB,0BAA0B,MAAM,EAChC,OAAO;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,KAC1D,OAAO,CAAC,OAAO,CAkBjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/app-store-listing/relationships/create.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,+BAA+B,GACxC,WAAW,MAAM,EACjB,eAAe,MAAM,KACtB,OAAO,CAAC,OAAO,CAUjB,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACtC,WAAW,MAAM,EACjB,WAAW,MAAM,EACjB,cAAc,MAAM,KACrB,OAAO,CAAC,OAAO,CAgBjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC1B,WAAW,MAAM,EACjB,aAAa,MAAM,KACpB,OAAO,CAAC,OAAO,CAWjB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC7B,WAAW,MAAM,EACjB,WAAW,MAAM,EACjB,cAAa,MAAiC,KAC/C,OAAO,CAAC,OAAO,CAcjB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAClC,WAAW,MAAM,EACjB,UAAU,MAAM,EAChB,eAAe,MAAM,KACtB,OAAO,CAAC,OAAO,CAgBjB,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAC5C,WAAW,MAAM,EACjB,YAAY,MAAM,EAClB,WAAW,MAAM,KAClB,OAAO,CAAC,OAAO,CAcjB,CAAC;AAEF,eAAO,MAAM,oCAAoC,GAC7C,WAAW,MAAM,EACjB,0BAA0B,MAAM,EAChC,OAAO;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,KAC1D,OAAO,CAAC,OAAO,CAkBjB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IntegrationType } from '../../../types/integration';
|
|
2
2
|
import { ProfileType } from '../../../types/profile';
|
|
3
3
|
import { BoostInstance } from '../../.././models/index';
|
|
4
|
+
import type { DbContractType } from '../../../types/consentflowcontract';
|
|
4
5
|
export declare const getIntegrationForListing: (listingIdOrSlug: string) => Promise<IntegrationType | null>;
|
|
5
6
|
export declare const getOwnerProfileForListing: (listingId: string) => Promise<ProfileType | null>;
|
|
6
7
|
export declare const getProfilesInstalledApp: (listingId: string, { limit, cursor }: {
|
|
@@ -19,6 +20,7 @@ export declare const getBoostsForListing: (listingId: string, domain: string) =>
|
|
|
19
20
|
boostUri: string;
|
|
20
21
|
}>>;
|
|
21
22
|
export declare const hasTemplateAliasForListing: (listingId: string, templateAlias: string) => Promise<boolean>;
|
|
23
|
+
export declare const getConsentContractForListingByScopeHash: (listingId: string, scopeHash: string) => Promise<DbContractType | null>;
|
|
22
24
|
export declare const getCredentialsSentByListingToProfile: (listingId: string, profileId: string, options: {
|
|
23
25
|
limit: number;
|
|
24
26
|
cursor?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/app-store-listing/relationships/read.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAS,aAAa,EAAE,MAAM,SAAS,CAAC;AAK/C,eAAO,MAAM,wBAAwB,GACjC,iBAAi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SAAS,GAAG,WAAW,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC,CAwDL,CAAC;AAEF,eAAO,MAAM,sCAAsC,GAC/C,WAAW,MAAM,EACjB,WAAW,MAAM,KAClB,OAAO,CAAC,MAAM,CAWhB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAwB5F,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { AppStoreListingType, AppStoreListingUpdateType } from '../../types/app-store-listing';
|
|
2
2
|
export declare const updateAppStoreListing: (listing: AppStoreListingType, updates: AppStoreListingUpdateType) => Promise<boolean>;
|
|
3
|
+
export declare const clearPendingListingUpdate: (listingId: string) => Promise<void>;
|
|
3
4
|
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/accesslayer/app-store-listing/update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/accesslayer/app-store-listing/update.ts"],"names":[],"mappings":"AAIA,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAC5B,MAAM,yBAAyB,CAAC;AAEjC,eAAO,MAAM,qBAAqB,GAC9B,SAAS,mBAAmB,EAC5B,SAAS,yBAAyB,KACnC,OAAO,CAAC,OAAO,CA8DjB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC,IAAI,CAM/E,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { Transaction } from 'neo4j-driver';
|
|
1
2
|
import { CredentialInstance, BoostInstance, AppStoreListingInstance } from '../../.././models/index';
|
|
2
3
|
import { ProfileType } from '../../../types/profile';
|
|
3
|
-
export declare const createBoostInstanceOfRelationship: (credential: CredentialInstance, boost: BoostInstance) => Promise<void>;
|
|
4
|
+
export declare const createBoostInstanceOfRelationship: (credential: CredentialInstance, boost: BoostInstance, transaction?: Transaction) => Promise<void>;
|
|
4
5
|
export declare const createReceivedCredentialRelationship: (to: ProfileType, from: ProfileType, credential: CredentialInstance) => Promise<void>;
|
|
5
6
|
export declare const setProfileAsBoostAdmin: (profile: ProfileType, boost: BoostInstance) => Promise<void>;
|
|
6
7
|
export declare const giveProfileEmptyPermissions: (profile: ProfileType, boost: BoostInstance) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/boost/relationships/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAErF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,eAAO,MAAM,iCAAiC,GAC1C,YAAY,kBAAkB,EAC9B,OAAO,aAAa,
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/boost/relationships/create.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAErF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,eAAO,MAAM,iCAAiC,GAC1C,YAAY,kBAAkB,EAC9B,OAAO,aAAa,EACpB,cAAc,WAAW,KAC1B,OAAO,CAAC,IAAI,CAMd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import { DbContractType } from '../../types/consentflowcontract';
|
|
3
|
-
export declare const createConsentFlowContract: ({ contract, name, subtitle, description, reasonForAccessing, needsGuardianConsent, redirectUrl, frontDoorBoostUri, image, expiresAt, }: {
|
|
3
|
+
export declare const createConsentFlowContract: ({ contract, ownerProfileId, recipientIds, writerIds, autoboosts, name, subtitle, description, reasonForAccessing, needsGuardianConsent, redirectUrl, frontDoorBoostUri, image, expiresAt, }: {
|
|
4
4
|
contract: ConsentFlowContractType;
|
|
5
|
+
ownerProfileId: string;
|
|
6
|
+
recipientIds?: string[];
|
|
7
|
+
writerIds?: string[];
|
|
8
|
+
autoboosts?: {
|
|
9
|
+
id: string;
|
|
10
|
+
signingAuthorityEndpoint: string;
|
|
11
|
+
signingAuthorityName: string;
|
|
12
|
+
}[];
|
|
5
13
|
name: string;
|
|
6
14
|
subtitle?: string;
|
|
7
15
|
description?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/accesslayer/consentflowcontract/create.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAGlF,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,eAAO,MAAM,yBAAyB,GAAU,
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/accesslayer/consentflowcontract/create.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAGlF,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,eAAO,MAAM,yBAAyB,GAAU,6LAe7C;IACC,QAAQ,EAAE,uBAAuB,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,wBAAwB,EAAE,MAAM,CAAC;QAAC,oBAAoB,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC9F,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,KAAG,OAAO,CAAC,cAAc,CA6FzB,CAAC"}
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { ConsentFlowInstance } from '../.././models/index';
|
|
2
2
|
import { DbContractType } from '../../types/consentflowcontract';
|
|
3
|
+
import type { ContractRequestFields } from '@learncard/types';
|
|
3
4
|
import { ProfileType } from '../../types/profile';
|
|
4
5
|
export declare const getContractById: (id: string) => Promise<DbContractType | null>;
|
|
5
6
|
export declare const getContractByUri: (uri: string) => Promise<DbContractType | null>;
|
|
6
7
|
export declare const getConsentFlowContractById: (id: string) => Promise<ConsentFlowInstance | null>;
|
|
7
|
-
export declare const
|
|
8
|
+
export declare const getContractRequestAccess: (contractId: string, profileId: string) => Promise<{
|
|
9
|
+
isOwner: boolean;
|
|
10
|
+
isManager: boolean;
|
|
11
|
+
isRecipient: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const getRequestedForList: (id: string, viewerProfileId: string) => Promise<{
|
|
8
14
|
profile: any;
|
|
9
15
|
status: any;
|
|
10
16
|
readStatus: any;
|
|
17
|
+
requestId?: string | undefined;
|
|
18
|
+
requestedBy?: string | undefined;
|
|
19
|
+
externalReferenceId?: string | undefined;
|
|
20
|
+
requestedAt?: string | undefined;
|
|
21
|
+
message?: string | undefined;
|
|
11
22
|
}[]>;
|
|
12
23
|
export declare const getSharedInsightsRequestsForTargetProfile: (targetProfileId: string) => Promise<{
|
|
13
24
|
profile: ProfileType;
|
|
@@ -19,16 +30,36 @@ export declare const getRequestedForByStatus: (id: string, status: "pending" | "
|
|
|
19
30
|
profile: any;
|
|
20
31
|
status: any;
|
|
21
32
|
readStatus: any;
|
|
33
|
+
requestId?: string | undefined;
|
|
34
|
+
requestedBy?: string | undefined;
|
|
35
|
+
externalReferenceId?: string | undefined;
|
|
36
|
+
requestedAt?: string | undefined;
|
|
37
|
+
message?: string | undefined;
|
|
22
38
|
}[]>;
|
|
23
|
-
export declare const getRequestedForForUser: (contractId: string, requesterProfileId: string) => Promise<{
|
|
39
|
+
export declare const getRequestedForForUser: (contractId: string, requesterProfileId: string, viewerProfileId: string) => Promise<{
|
|
24
40
|
profile: any;
|
|
25
41
|
status: any;
|
|
26
42
|
readStatus: any;
|
|
43
|
+
requestId?: string | undefined;
|
|
44
|
+
requestedBy?: string | undefined;
|
|
45
|
+
externalReferenceId?: string | undefined;
|
|
46
|
+
requestedAt?: string | undefined;
|
|
47
|
+
message?: string | undefined;
|
|
27
48
|
}[]>;
|
|
28
49
|
export declare const getAllRequestsForTargetProfile: (targetProfileId: string) => Promise<{
|
|
29
|
-
contract: any;
|
|
30
50
|
profile: any;
|
|
31
51
|
status: any;
|
|
32
52
|
readStatus: any;
|
|
53
|
+
requestId?: string | undefined;
|
|
54
|
+
requestedBy?: string | undefined;
|
|
55
|
+
externalReferenceId?: string | undefined;
|
|
56
|
+
requestedAt?: string | undefined;
|
|
57
|
+
message?: string | undefined;
|
|
58
|
+
contract: any;
|
|
33
59
|
}[]>;
|
|
60
|
+
export type StoredContractRequest = ContractRequestFields & {
|
|
61
|
+
status?: 'pending' | 'accepted' | 'denied' | 'cancelled' | null;
|
|
62
|
+
readStatus?: 'unseen' | 'seen' | null;
|
|
63
|
+
};
|
|
64
|
+
export declare const getStoredContractRequest: (contractId: string, targetProfileId: string) => Promise<StoredContractRequest | null>;
|
|
34
65
|
//# sourceMappingURL=read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../src/accesslayer/consentflowcontract/read.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../src/accesslayer/consentflowcontract/read.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,mBAAmB,EAAW,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAO,MAAM,eAAe,GAAU,IAAI,MAAM,KAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAU/E,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAEjF,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACnC,IAAI,MAAM,KACX,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAWpC,CAAC;AAaF,eAAO,MAAM,wBAAwB,GACjC,YAAY,MAAM,EAClB,WAAW,MAAM,KAClB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,OAAO,CAAA;CAAE,CAkBxE,CAAC;AASF,eAAO,MAAM,mBAAmB,GAAU,IAAI,MAAM,EAAE,iBAAiB,MAAM;;;;;;;;;IAqB5E,CAAC;AAEF,eAAO,MAAM,yCAAyC,GAClD,iBAAiB,MAAM,KACxB,OAAO,CACN;IACI,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,SAAS,GAAG,UAAU,CAAC;IAC/B,UAAU,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;CACtB,EAAE,CA2CN,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAChC,IAAI,MAAM,EACV,QAAQ,SAAS,GAAG,UAAU,GAAG,QAAQ;;;;;;;;;IAuB5C,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAC/B,YAAY,MAAM,EAClB,oBAAoB,MAAM,EAC1B,iBAAiB,MAAM;;;;;;;;;IAyB1B,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAU,iBAAiB,MAAM;;;;;;;;;;IAsB3E,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,GAAG;IACxD,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,IAAI,CAAC;IAChE,UAAU,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACjC,YAAY,MAAM,EAClB,iBAAiB,MAAM,KACxB,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAStC,CAAC"}
|
|
@@ -10,11 +10,14 @@ export declare const setRelatedBoostForContract: (contract: DbContractType, boos
|
|
|
10
10
|
export declare const consentToContract: (consenter: LCNProfile, { contract, contractOwner }: {
|
|
11
11
|
contract: DbContractType;
|
|
12
12
|
contractOwner: LCNProfile;
|
|
13
|
-
}, { terms: _terms, expiresAt, oneTime, guardianApproval, }: {
|
|
13
|
+
}, { terms: _terms, expiresAt, oneTime, guardianApproval, audienceVersion, expectedRequestId, smartResumeFingerprint, }: {
|
|
14
14
|
terms: ConsentFlowTermsType;
|
|
15
15
|
expiresAt?: string;
|
|
16
16
|
liveSyncing?: boolean;
|
|
17
17
|
oneTime?: boolean;
|
|
18
18
|
guardianApproval?: ConsentFlowGuardianApproval;
|
|
19
|
+
audienceVersion?: number;
|
|
20
|
+
expectedRequestId?: string;
|
|
21
|
+
smartResumeFingerprint?: string;
|
|
19
22
|
}, domain: string) => Promise<boolean>;
|
|
20
23
|
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/consentflowcontract/relationships/create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/consentflowcontract/relationships/create.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,gBAAgB,IAAI,oBAAoB,EAExC,2BAA2B,EAC3B,UAAU,EAGb,MAAM,kBAAkB,CAAC;AAS1B,OAAO,EAAE,cAAc,EAAmB,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAoBxC,eAAO,MAAM,qBAAqB,GAAU,UAAU,cAAc,EAAE,SAAS,UAAU,oBAQxF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAChC,UAAU,cAAc,EACxB,OAAO,SAAS,EAChB,kBAAkB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EACpD,SAAS,MAAM,oBAWlB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACnC,UAAU,cAAc,EACxB,OAAO,SAAS,KACjB,OAAO,CAAC,IAAI,CAKd,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC1B,WAAW,UAAU,EACrB,6BAA6B;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,aAAa,EAAE,UAAU,CAAA;CAAE,EACpF,sHAQG;IACC,KAAK,EAAE,oBAAoB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,2BAA2B,CAAC;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC,EACD,QAAQ,MAAM,qBAsRjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/consentflowcontract/relationships/delete.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,GAAU,IAAI,MAAM,KAAG,OAAO,CAAC,MAAM,CAEhE,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACvC,IAAI,MAAM,EACV,WAAW,MAAM,KAClB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/consentflowcontract/relationships/delete.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,GAAU,IAAI,MAAM,KAAG,OAAO,CAAC,MAAM,CAEhE,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACvC,IAAI,MAAM,EACV,WAAW,MAAM,KAClB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAuBhD,CAAC"}
|
|
@@ -46,14 +46,15 @@ export declare const getConsentedContractsForProfile: (profile: ProfileType, { q
|
|
|
46
46
|
owner: LCNProfile;
|
|
47
47
|
terms: DbTermsType;
|
|
48
48
|
autoBoosts: string[];
|
|
49
|
+
recipients: ProfileType[];
|
|
49
50
|
}[]>;
|
|
50
51
|
export declare const getHolderExportMetadataForProfile: (profile: ProfileType, domain: string) => Promise<HolderExportMetadata>;
|
|
51
|
-
export declare const getConsentedDataForProfile: (profileId: string,
|
|
52
|
+
export declare const getConsentedDataForProfile: (profileId: string, options: {
|
|
52
53
|
query?: ConsentFlowDataQuery;
|
|
53
54
|
limit: number;
|
|
54
55
|
cursor?: string;
|
|
55
56
|
}) => Promise<ConsentFlowContractData[]>;
|
|
56
|
-
export declare const getConsentedDataForContract: (id: string,
|
|
57
|
+
export declare const getConsentedDataForContract: (id: string, viewerProfileId: string, options: {
|
|
57
58
|
query?: ConsentFlowDataQuery;
|
|
58
59
|
limit: number;
|
|
59
60
|
cursor?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/consentflowcontract/relationships/read.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/consentflowcontract/relationships/read.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,WAAW,EAGX,cAAc,EAId,iBAAiB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,uBAAuB,EACvB,6BAA6B,EAC7B,wBAAwB,EACxB,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,4BAA4B,EAC5B,oBAAoB,EACpB,UAAU,EACb,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQlD,eAAO,MAAM,iCAAiC,GAC1C,SAAS,WAAW,EACpB,UAAU,cAAc,KACzB,OAAO,CAAC,OAAO,CAYjB,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACtC,SAAS,WAAW,GAAG,MAAM,EAC7B,UAAU,cAAc,KACzB,OAAO,CAAC,OAAO,CAiBjB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAU,OAAO,WAAW,KAAG,OAAO,CAAC,OAAO,CAiBpF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAC/B,IAAI,MAAM,KACX,OAAO,CAAC;IAAE,aAAa,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAA;CAAE,GAAG,IAAI,CAiBxE,CAAC;AAEF,eAAO,MAAM,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c,EAAE,CAAA;CAAE,CAAC,EAAE,CA0CnE,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAU,YAAY,MAAM,KAAG,OAAO,CAAC,aAAa,EAAE,CAa7F,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACjC,YAAY,MAAM,EAClB,QAAQ,MAAM,KACf,OAAO,CAAC,MAAM,EAAE,CAGlB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAU,UAAU,cAAc,KAAG,OAAO,CAAC,WAAW,EAAE,CAiB3F,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { QueryBuilder } from 'neogma';
|
|
2
|
+
import { ProfileType } from '../../../types/profile';
|
|
3
|
+
export declare const lockContractAudience: (query: QueryBuilder, contractId: string) => QueryBuilder;
|
|
4
|
+
export declare const runAudienceMutation: (query: QueryBuilder) => ReturnType<QueryBuilder["run"]>;
|
|
5
|
+
export declare const audienceVersionWhere = "\n(($audienceVersion IS NULL AND coalesce(contract.audienceVersion, 0) = 0)\n OR coalesce(contract.audienceVersion, 0) = $audienceVersion)\n";
|
|
6
|
+
export declare const consentMutationWhere = "\n(CASE WHEN contract.expiresAt IS NULL OR trim(contract.expiresAt) = '' THEN true\n ELSE datetime(contract.expiresAt) > datetime.realtime() END)\nAND ($expectedRequestId IS NULL OR EXISTS {\n MATCH (contract)-[request:REQUESTED_FOR]->(:Profile {profileId: $consenterProfileId})\n WHERE request.requestId = $expectedRequestId AND request.status = 'pending'\n})\n";
|
|
7
|
+
export declare const assertAudienceMutation: (count: number) => void;
|
|
8
|
+
export declare const getRecipientsForContract: (contractId: string) => Promise<ProfileType[]>;
|
|
9
|
+
export declare const canReadContractData: (contractId: string, profileId: string) => Promise<boolean>;
|
|
10
|
+
export declare const addRecipientToContract: (contractId: string, profileId: string) => Promise<boolean>;
|
|
11
|
+
export declare const removeRecipientFromContract: (contractId: string, profileId: string) => Promise<boolean>;
|
|
12
|
+
//# sourceMappingURL=recipients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipients.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/consentflowcontract/relationships/recipients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,eAAO,MAAM,oBAAoB,GAAI,OAAO,YAAY,EAAE,YAAY,MAAM,KAAG,YAItD,CAAC;AAG1B,eAAO,MAAM,mBAAmB,GAAU,OAAO,YAAY,KAAG,UAAU,CAAC,YAAY,CAAC,KAAK,CAAC,CAkB7F,CAAC;AAEF,eAAO,MAAM,oBAAoB,iJAGhC,CAAC;AAGF,eAAO,MAAM,oBAAoB,qXAOhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,OAAO,MAAM,KAAG,IAMtD,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAU,YAAY,MAAM,KAAG,OAAO,CAAC,WAAW,EAAE,CAYxF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC5B,YAAY,MAAM,EAClB,WAAW,MAAM,KAClB,OAAO,CAAC,OAAO,CAQjB,CAAC;AAGF,eAAO,MAAM,sBAAsB,GAC/B,YAAY,MAAM,EAClB,WAAW,MAAM,KAClB,OAAO,CAAC,OAAO,CAuBjB,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACpC,YAAY,MAAM,EAClB,WAAW,MAAM,KAClB,OAAO,CAAC,OAAO,CASjB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ConsentFlowTerms } from '@learncard/types';
|
|
2
|
+
export declare const smartResumeFingerprint: (submission: unknown) => string;
|
|
3
|
+
export declare const publishSmartResume: ({ contractId, profileId, termsId, fingerprint, audienceVersion, expectedRequestId, upload, }: {
|
|
4
|
+
contractId: string;
|
|
5
|
+
profileId: string;
|
|
6
|
+
termsId: string;
|
|
7
|
+
fingerprint: string;
|
|
8
|
+
audienceVersion?: number;
|
|
9
|
+
expectedRequestId?: string;
|
|
10
|
+
upload: (terms: ConsentFlowTerms) => Promise<string | undefined>;
|
|
11
|
+
}) => Promise<string | undefined>;
|
|
12
|
+
//# sourceMappingURL=smartResume.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smartResume.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/consentflowcontract/relationships/smartResume.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAsBzD,eAAO,MAAM,sBAAsB,GAAI,YAAY,OAAO,KAAG,MAGvC,CAAC;AAOvB,eAAO,MAAM,kBAAkB,GAAU,8FAQtC;IACC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACpE,KAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAyE7B,CAAC"}
|
|
@@ -5,36 +5,39 @@ export declare const reconsentTerms: (relationship: {
|
|
|
5
5
|
consenter: LCNProfile;
|
|
6
6
|
contract: DbContractType;
|
|
7
7
|
contractOwner: LCNProfile;
|
|
8
|
-
}, { terms, expiresAt, oneTime, guardianApproval, }: {
|
|
8
|
+
}, { terms, expiresAt, oneTime, guardianApproval, audienceVersion, expectedRequestId, smartResumeFingerprint, }: {
|
|
9
9
|
terms: ConsentFlowTermsType;
|
|
10
10
|
expiresAt?: string;
|
|
11
11
|
oneTime?: boolean;
|
|
12
12
|
guardianApproval?: ConsentFlowGuardianApproval;
|
|
13
|
+
audienceVersion?: number;
|
|
14
|
+
expectedRequestId?: string;
|
|
15
|
+
smartResumeFingerprint?: string;
|
|
13
16
|
}, domain: string) => Promise<boolean>;
|
|
14
17
|
export declare const updateTerms: (relationship: {
|
|
15
18
|
terms: DbTermsType;
|
|
16
19
|
consenter: LCNProfile;
|
|
17
20
|
contract: DbContractType;
|
|
18
21
|
contractOwner: LCNProfile;
|
|
19
|
-
}, { terms, expiresAt, oneTime, guardianApproval, }: {
|
|
22
|
+
}, { terms, expiresAt, oneTime, guardianApproval, audienceVersion, }: {
|
|
20
23
|
terms: ConsentFlowTermsType;
|
|
21
24
|
expiresAt?: string;
|
|
22
25
|
oneTime?: boolean;
|
|
23
26
|
guardianApproval?: ConsentFlowGuardianApproval;
|
|
27
|
+
audienceVersion?: number;
|
|
24
28
|
}, domain: string) => Promise<boolean>;
|
|
25
29
|
export declare const withdrawTerms: (relationship: {
|
|
26
30
|
terms: DbTermsType;
|
|
27
31
|
consenter: LCNProfile;
|
|
28
32
|
contract: DbContractType;
|
|
29
33
|
contractOwner: LCNProfile;
|
|
30
|
-
}) => Promise<boolean>;
|
|
34
|
+
}, domain?: string) => Promise<boolean>;
|
|
31
35
|
export declare const syncCredentialsToContract: (relationship: {
|
|
32
36
|
terms: DbTermsType;
|
|
33
37
|
consenter: LCNProfile;
|
|
34
38
|
contract: DbContractType;
|
|
35
39
|
contractOwner: LCNProfile;
|
|
36
|
-
}, categories: Record<string, string[]
|
|
40
|
+
}, categories: Record<string, string[]>, audienceVersion?: number, domain?: string) => Promise<boolean>;
|
|
37
41
|
export declare const pruneDeletedUrisFromConsentTerms: (terms: DbTermsType, deletedUris: string[]) => Promise<number>;
|
|
38
|
-
export declare const updateRequestedForStatusIfExists: (id: string, profileId: string, status: "pending" | "accepted" | "denied") => Promise<void>;
|
|
39
42
|
export declare const upsertRequestedForRelationship: (id: string, profileId: string, status?: "pending" | "accepted" | "denied", readStatus?: "seen" | "unseen" | null) => Promise<void>;
|
|
40
43
|
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/consentflowcontract/relationships/update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../src/accesslayer/consentflowcontract/relationships/update.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,gBAAgB,IAAI,oBAAoB,EAExC,2BAA2B,EAC3B,UAAU,EAGb,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAiBxE,eAAO,MAAM,cAAc,GACvB,cAAc;IACV,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,UAAU,CAAC;IACtB,QAAQ,EAAE,cAAc,CAAC;IACzB,aAAa,EAAE,UAAU,CAAC;CAC7B,EACD,8GAQG;IACC,KAAK,EAAE,oBAAoB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,2BAA2B,CAAC;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC,EACD,QAAQ,MAAM,KACf,OAAO,CAAC,OAAO,CA6NjB,CAAC;AAEF,eAAO,MAAM,WAAW,GACpB,cAAc;IACV,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,UAAU,CAAC;IACtB,QAAQ,EAAE,cAAc,CAAC;IACzB,aAAa,EAAE,UAAU,CAAC;CAC7B,EACD,mEAMG;IACC,KAAK,EAAE,oBAAoB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,2BAA2B,CAAC;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,EACD,QAAQ,MAAM,KACf,OAAO,CAAC,OAAO,CAuNjB,CAAC;AAEF,eAAO,MAAM,aAAa,GACtB,cAAc;IACV,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,UAAU,CAAC;IACtB,QAAQ,EAAE,cAAc,CAAC;IACzB,aAAa,EAAE,UAAU,CAAC;CAC7B,EACD,SAAS,MAAM,KAChB,OAAO,CAAC,OAAO,CAmDjB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAClC,cAAc;IACV,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,UAAU,CAAC;IACtB,QAAQ,EAAE,cAAc,CAAC;IACzB,aAAa,EAAE,UAAU,CAAC;CAC7B,EACD,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EACpC,kBAAkB,MAAM,EACxB,SAAS,MAAM,KAChB,OAAO,CAAC,OAAO,CAsHjB,CAAC;AAEF,eAAO,MAAM,gCAAgC,GACzC,OAAO,WAAW,EAClB,aAAa,MAAM,EAAE,KACtB,OAAO,CAAC,MAAM,CAmEhB,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACvC,IAAI,MAAM,EACV,WAAW,MAAM,EACjB,SAAS,SAAS,GAAG,UAAU,GAAG,QAAQ,EAC1C,aAAa,MAAM,GAAG,QAAQ,GAAG,IAAI,kBAyBxC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UnsignedVC, VC, JWE } from '@learncard/types';
|
|
2
|
+
import type { Transaction } from 'neo4j-driver';
|
|
2
3
|
import type { IssuedCredential } from '../../types/credential';
|
|
3
4
|
import { CredentialInstance } from '../.././models/index';
|
|
4
|
-
export declare const storeCredential: (input: UnsignedVC | VC | JWE | IssuedCredential) => Promise<CredentialInstance>;
|
|
5
|
+
export declare const storeCredential: (input: UnsignedVC | VC | JWE | IssuedCredential, transaction?: Transaction) => Promise<CredentialInstance>;
|
|
5
6
|
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/accesslayer/credential/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,UAAU,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/accesslayer/credential/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,UAAU,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC1F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAc,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEzD,eAAO,MAAM,eAAe,GACxB,OAAO,UAAU,GAAG,EAAE,GAAG,GAAG,GAAG,gBAAgB,EAC/C,cAAc,WAAW,KAC1B,OAAO,CAAC,kBAAkB,CA4B5B,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import type { Transaction } from 'neo4j-driver';
|
|
1
2
|
import { CredentialInstance } from '../../.././models/index';
|
|
2
3
|
import { ProfileType } from '../../../types/profile';
|
|
3
4
|
import { CredentialIssuer } from '../../../types/issuer';
|
|
4
5
|
import { DbTermsType } from '../../../types/consentflowcontract';
|
|
5
|
-
export declare const createSentCredentialRelationship: (issuer: CredentialIssuer, to: ProfileType, credential: CredentialInstance, metadata?: Record<string, unknown>, activityId?: string, integrationId?: string) => Promise<void>;
|
|
6
|
+
export declare const createSentCredentialRelationship: (issuer: CredentialIssuer, to: ProfileType, credential: CredentialInstance, metadata?: Record<string, unknown>, activityId?: string, integrationId?: string, transaction?: Transaction) => Promise<void>;
|
|
6
7
|
export declare const createListingSentCredentialRelationship: (listingId: string, to: ProfileType, credential: CredentialInstance, metadata?: Record<string, unknown>, activityId?: string, integrationId?: string) => Promise<void>;
|
|
7
8
|
export declare const createReceivedCredentialRelationship: (to: ProfileType, from: ProfileType | {
|
|
8
9
|
listing_id: string;
|
|
9
|
-
}, credential: CredentialInstance, metadata?: Record<string, unknown
|
|
10
|
-
export declare const setDefaultClaimedRole: (profile: ProfileType, credential: CredentialInstance) => Promise<void>;
|
|
10
|
+
}, credential: CredentialInstance, metadata?: Record<string, unknown>, transaction?: Transaction) => Promise<void>;
|
|
11
|
+
export declare const setDefaultClaimedRole: (profile: ProfileType, credential: CredentialInstance, transaction?: Transaction) => Promise<void>;
|
|
11
12
|
export declare const createCredentialIssuedViaContractRelationship: (credential: CredentialInstance, terms: DbTermsType) => Promise<void>;
|
|
12
13
|
//# sourceMappingURL=create.d.ts.map
|