@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,1005 @@
|
|
|
1
|
+
import type { RecoveryRunnerDependencies, ShareLinkCoordinator } from '../helpers/share-link-coordinator';
|
|
2
|
+
import type { ShareLinkAttachmentOwnerApi } from '../helpers/share-link-attachment';
|
|
3
|
+
import type { ListShareLinksInput, ListShareLinksResult } from '../accesslayer/share-link/types';
|
|
4
|
+
export type ShareLinkRouterDependencies = {
|
|
5
|
+
readonly namespace: string;
|
|
6
|
+
readonly coordinator: ShareLinkCoordinator;
|
|
7
|
+
readonly recovery: RecoveryRunnerDependencies;
|
|
8
|
+
readonly attachments?: ShareLinkAttachmentOwnerApi;
|
|
9
|
+
readonly enforceAttachmentWriteRateLimit?: (ownerProfileId: string) => Promise<void>;
|
|
10
|
+
readonly listShareLinks: (input: ListShareLinksInput) => Promise<ListShareLinksResult>;
|
|
11
|
+
readonly enforceOwnerWriteRateLimit: (ownerProfileId: string) => Promise<void>;
|
|
12
|
+
readonly resolveViewCountingEligibility: (ownerProfileId: string) => Promise<boolean>;
|
|
13
|
+
};
|
|
14
|
+
export declare const createShareLinksRouter: (getDependencies: () => Promise<ShareLinkRouterDependencies | null>) => import("@trpc/server").TRPCBuiltRouter<{
|
|
15
|
+
ctx: import(".././routes/index").Context;
|
|
16
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
17
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
18
|
+
transformer: true;
|
|
19
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
20
|
+
putAttachmentChunk: import("@trpc/server").TRPCMutationProcedure<{
|
|
21
|
+
input: {
|
|
22
|
+
chunkCount: number;
|
|
23
|
+
envelope: {
|
|
24
|
+
v: 1;
|
|
25
|
+
alg: "A256GCM";
|
|
26
|
+
iv: string;
|
|
27
|
+
ct: string;
|
|
28
|
+
};
|
|
29
|
+
ownerEncryptedRecovery: {
|
|
30
|
+
protected: string;
|
|
31
|
+
iv: string;
|
|
32
|
+
ciphertext: string;
|
|
33
|
+
tag: string;
|
|
34
|
+
aad?: string | undefined;
|
|
35
|
+
recipients?: {
|
|
36
|
+
header: {
|
|
37
|
+
alg: string;
|
|
38
|
+
iv: string;
|
|
39
|
+
tag: string;
|
|
40
|
+
epk?: {
|
|
41
|
+
kty?: string | undefined;
|
|
42
|
+
crv?: string | undefined;
|
|
43
|
+
x?: string | undefined;
|
|
44
|
+
y?: string | undefined;
|
|
45
|
+
n?: string | undefined;
|
|
46
|
+
d?: string | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
kid?: string | undefined;
|
|
49
|
+
apv?: string | undefined;
|
|
50
|
+
apu?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
encrypted_key: string;
|
|
53
|
+
}[] | undefined;
|
|
54
|
+
};
|
|
55
|
+
id: string;
|
|
56
|
+
contentVersion: number;
|
|
57
|
+
attachmentId: string;
|
|
58
|
+
chunkIndex: number;
|
|
59
|
+
};
|
|
60
|
+
output: {
|
|
61
|
+
ok: true;
|
|
62
|
+
};
|
|
63
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
64
|
+
}>;
|
|
65
|
+
deleteAttachmentChunks: import("@trpc/server").TRPCMutationProcedure<{
|
|
66
|
+
input: {
|
|
67
|
+
id: string;
|
|
68
|
+
contentVersion: number;
|
|
69
|
+
attachmentId: string;
|
|
70
|
+
chunkCount: number;
|
|
71
|
+
};
|
|
72
|
+
output: {
|
|
73
|
+
ok: boolean;
|
|
74
|
+
};
|
|
75
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
76
|
+
}>;
|
|
77
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
78
|
+
input: {
|
|
79
|
+
id: string;
|
|
80
|
+
clientRequestId: string;
|
|
81
|
+
title: string;
|
|
82
|
+
selectedCount: number;
|
|
83
|
+
contentVersion: 1;
|
|
84
|
+
envelope: {
|
|
85
|
+
v: 1;
|
|
86
|
+
alg: "A256GCM";
|
|
87
|
+
iv: string;
|
|
88
|
+
ct: string;
|
|
89
|
+
};
|
|
90
|
+
ownerEncryptedRecovery: {
|
|
91
|
+
protected: string;
|
|
92
|
+
iv: string;
|
|
93
|
+
ciphertext: string;
|
|
94
|
+
tag: string;
|
|
95
|
+
aad?: string | undefined;
|
|
96
|
+
recipients?: {
|
|
97
|
+
header: {
|
|
98
|
+
alg: string;
|
|
99
|
+
iv: string;
|
|
100
|
+
tag: string;
|
|
101
|
+
epk?: {
|
|
102
|
+
kty?: string | undefined;
|
|
103
|
+
crv?: string | undefined;
|
|
104
|
+
x?: string | undefined;
|
|
105
|
+
y?: string | undefined;
|
|
106
|
+
n?: string | undefined;
|
|
107
|
+
d?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
kid?: string | undefined;
|
|
110
|
+
apv?: string | undefined;
|
|
111
|
+
apu?: string | undefined;
|
|
112
|
+
};
|
|
113
|
+
encrypted_key: string;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
};
|
|
116
|
+
note?: string | undefined;
|
|
117
|
+
expiresAt?: string | null | undefined;
|
|
118
|
+
passcode?: string | undefined;
|
|
119
|
+
notifyOnView?: boolean | undefined;
|
|
120
|
+
attachment?: {
|
|
121
|
+
id: string;
|
|
122
|
+
chunkCount: number;
|
|
123
|
+
} | undefined;
|
|
124
|
+
};
|
|
125
|
+
output: {
|
|
126
|
+
status: "completed";
|
|
127
|
+
share: {
|
|
128
|
+
id: string;
|
|
129
|
+
title: string;
|
|
130
|
+
selectedCount: number;
|
|
131
|
+
version: number;
|
|
132
|
+
contentVersion: number;
|
|
133
|
+
status: "pending" | "active" | "stopped";
|
|
134
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
137
|
+
expiresAt: string | null;
|
|
138
|
+
stoppedAt: string | null;
|
|
139
|
+
lastViewedAt: string | null;
|
|
140
|
+
passcodeProtected: boolean;
|
|
141
|
+
notifyOnView: boolean;
|
|
142
|
+
minorPolicy: {
|
|
143
|
+
isMinor: boolean | null;
|
|
144
|
+
policyResolved: boolean;
|
|
145
|
+
defaultExpiryDays: 30 | 365;
|
|
146
|
+
viewCountingEnabled: boolean;
|
|
147
|
+
};
|
|
148
|
+
note?: string | undefined;
|
|
149
|
+
attachmentId?: string | null | undefined;
|
|
150
|
+
attachmentChunkCount?: number | null | undefined;
|
|
151
|
+
viewCount?: number | undefined;
|
|
152
|
+
contentUrl?: string | undefined;
|
|
153
|
+
};
|
|
154
|
+
} | {
|
|
155
|
+
status: "pending";
|
|
156
|
+
id: string;
|
|
157
|
+
operationId: string;
|
|
158
|
+
};
|
|
159
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
160
|
+
}>;
|
|
161
|
+
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
162
|
+
input: {
|
|
163
|
+
id: string;
|
|
164
|
+
expectedVersion: number;
|
|
165
|
+
clientRequestId: string;
|
|
166
|
+
title?: string | undefined;
|
|
167
|
+
note?: string | null | undefined;
|
|
168
|
+
expiresAt?: string | null | undefined;
|
|
169
|
+
passcode?: string | null | undefined;
|
|
170
|
+
notifyOnView?: boolean | undefined;
|
|
171
|
+
contentVersion?: number | undefined;
|
|
172
|
+
selectedCount?: number | undefined;
|
|
173
|
+
envelope?: {
|
|
174
|
+
v: 1;
|
|
175
|
+
alg: "A256GCM";
|
|
176
|
+
iv: string;
|
|
177
|
+
ct: string;
|
|
178
|
+
} | undefined;
|
|
179
|
+
ownerEncryptedRecovery?: {
|
|
180
|
+
protected: string;
|
|
181
|
+
iv: string;
|
|
182
|
+
ciphertext: string;
|
|
183
|
+
tag: string;
|
|
184
|
+
aad?: string | undefined;
|
|
185
|
+
recipients?: {
|
|
186
|
+
header: {
|
|
187
|
+
alg: string;
|
|
188
|
+
iv: string;
|
|
189
|
+
tag: string;
|
|
190
|
+
epk?: {
|
|
191
|
+
kty?: string | undefined;
|
|
192
|
+
crv?: string | undefined;
|
|
193
|
+
x?: string | undefined;
|
|
194
|
+
y?: string | undefined;
|
|
195
|
+
n?: string | undefined;
|
|
196
|
+
d?: string | undefined;
|
|
197
|
+
} | undefined;
|
|
198
|
+
kid?: string | undefined;
|
|
199
|
+
apv?: string | undefined;
|
|
200
|
+
apu?: string | undefined;
|
|
201
|
+
};
|
|
202
|
+
encrypted_key: string;
|
|
203
|
+
}[] | undefined;
|
|
204
|
+
} | undefined;
|
|
205
|
+
attachment?: {
|
|
206
|
+
id: string;
|
|
207
|
+
chunkCount: number;
|
|
208
|
+
} | undefined;
|
|
209
|
+
};
|
|
210
|
+
output: {
|
|
211
|
+
status: "completed";
|
|
212
|
+
share: {
|
|
213
|
+
id: string;
|
|
214
|
+
title: string;
|
|
215
|
+
selectedCount: number;
|
|
216
|
+
version: number;
|
|
217
|
+
contentVersion: number;
|
|
218
|
+
status: "pending" | "active" | "stopped";
|
|
219
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
220
|
+
createdAt: string;
|
|
221
|
+
updatedAt: string;
|
|
222
|
+
expiresAt: string | null;
|
|
223
|
+
stoppedAt: string | null;
|
|
224
|
+
lastViewedAt: string | null;
|
|
225
|
+
passcodeProtected: boolean;
|
|
226
|
+
notifyOnView: boolean;
|
|
227
|
+
minorPolicy: {
|
|
228
|
+
isMinor: boolean | null;
|
|
229
|
+
policyResolved: boolean;
|
|
230
|
+
defaultExpiryDays: 30 | 365;
|
|
231
|
+
viewCountingEnabled: boolean;
|
|
232
|
+
};
|
|
233
|
+
note?: string | undefined;
|
|
234
|
+
attachmentId?: string | null | undefined;
|
|
235
|
+
attachmentChunkCount?: number | null | undefined;
|
|
236
|
+
viewCount?: number | undefined;
|
|
237
|
+
contentUrl?: string | undefined;
|
|
238
|
+
};
|
|
239
|
+
} | {
|
|
240
|
+
status: "pending";
|
|
241
|
+
id: string;
|
|
242
|
+
operationId: string;
|
|
243
|
+
};
|
|
244
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
245
|
+
}>;
|
|
246
|
+
revoke: import("@trpc/server").TRPCMutationProcedure<{
|
|
247
|
+
input: {
|
|
248
|
+
id: string;
|
|
249
|
+
expectedVersion?: number | undefined;
|
|
250
|
+
clientRequestId?: string | undefined;
|
|
251
|
+
};
|
|
252
|
+
output: {
|
|
253
|
+
status: "completed";
|
|
254
|
+
share: {
|
|
255
|
+
id: string;
|
|
256
|
+
title: string;
|
|
257
|
+
selectedCount: number;
|
|
258
|
+
version: number;
|
|
259
|
+
contentVersion: number;
|
|
260
|
+
status: "pending" | "active" | "stopped";
|
|
261
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
262
|
+
createdAt: string;
|
|
263
|
+
updatedAt: string;
|
|
264
|
+
expiresAt: string | null;
|
|
265
|
+
stoppedAt: string | null;
|
|
266
|
+
lastViewedAt: string | null;
|
|
267
|
+
passcodeProtected: boolean;
|
|
268
|
+
notifyOnView: boolean;
|
|
269
|
+
minorPolicy: {
|
|
270
|
+
isMinor: boolean | null;
|
|
271
|
+
policyResolved: boolean;
|
|
272
|
+
defaultExpiryDays: 30 | 365;
|
|
273
|
+
viewCountingEnabled: boolean;
|
|
274
|
+
};
|
|
275
|
+
note?: string | undefined;
|
|
276
|
+
attachmentId?: string | null | undefined;
|
|
277
|
+
attachmentChunkCount?: number | null | undefined;
|
|
278
|
+
viewCount?: number | undefined;
|
|
279
|
+
contentUrl?: string | undefined;
|
|
280
|
+
};
|
|
281
|
+
} | {
|
|
282
|
+
status: "pending";
|
|
283
|
+
id: string;
|
|
284
|
+
operationId: string;
|
|
285
|
+
};
|
|
286
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
287
|
+
}>;
|
|
288
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
289
|
+
input: {
|
|
290
|
+
limit?: number | undefined;
|
|
291
|
+
cursor?: string | undefined;
|
|
292
|
+
};
|
|
293
|
+
output: {
|
|
294
|
+
hasMore: boolean;
|
|
295
|
+
records: {
|
|
296
|
+
id: string;
|
|
297
|
+
title: string;
|
|
298
|
+
selectedCount: number;
|
|
299
|
+
version: number;
|
|
300
|
+
contentVersion: number;
|
|
301
|
+
status: "pending" | "active" | "stopped";
|
|
302
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
303
|
+
createdAt: string;
|
|
304
|
+
updatedAt: string;
|
|
305
|
+
expiresAt: string | null;
|
|
306
|
+
stoppedAt: string | null;
|
|
307
|
+
lastViewedAt: string | null;
|
|
308
|
+
passcodeProtected: boolean;
|
|
309
|
+
notifyOnView: boolean;
|
|
310
|
+
minorPolicy: {
|
|
311
|
+
isMinor: boolean | null;
|
|
312
|
+
policyResolved: boolean;
|
|
313
|
+
defaultExpiryDays: 30 | 365;
|
|
314
|
+
viewCountingEnabled: boolean;
|
|
315
|
+
};
|
|
316
|
+
note?: string | undefined;
|
|
317
|
+
attachmentId?: string | null | undefined;
|
|
318
|
+
attachmentChunkCount?: number | null | undefined;
|
|
319
|
+
viewCount?: number | undefined;
|
|
320
|
+
contentUrl?: string | undefined;
|
|
321
|
+
}[];
|
|
322
|
+
cursor?: string | undefined;
|
|
323
|
+
};
|
|
324
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
325
|
+
}>;
|
|
326
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
327
|
+
input: {
|
|
328
|
+
id: string;
|
|
329
|
+
};
|
|
330
|
+
output: {
|
|
331
|
+
status: "found";
|
|
332
|
+
share: {
|
|
333
|
+
id: string;
|
|
334
|
+
title: string;
|
|
335
|
+
selectedCount: number;
|
|
336
|
+
version: number;
|
|
337
|
+
contentVersion: number;
|
|
338
|
+
status: "pending" | "active" | "stopped";
|
|
339
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
340
|
+
createdAt: string;
|
|
341
|
+
updatedAt: string;
|
|
342
|
+
expiresAt: string | null;
|
|
343
|
+
stoppedAt: string | null;
|
|
344
|
+
lastViewedAt: string | null;
|
|
345
|
+
passcodeProtected: boolean;
|
|
346
|
+
notifyOnView: boolean;
|
|
347
|
+
minorPolicy: {
|
|
348
|
+
isMinor: boolean | null;
|
|
349
|
+
policyResolved: boolean;
|
|
350
|
+
defaultExpiryDays: 30 | 365;
|
|
351
|
+
viewCountingEnabled: boolean;
|
|
352
|
+
};
|
|
353
|
+
note?: string | undefined;
|
|
354
|
+
attachmentId?: string | null | undefined;
|
|
355
|
+
attachmentChunkCount?: number | null | undefined;
|
|
356
|
+
viewCount?: number | undefined;
|
|
357
|
+
contentUrl?: string | undefined;
|
|
358
|
+
};
|
|
359
|
+
} | {
|
|
360
|
+
status: "pending";
|
|
361
|
+
id: string;
|
|
362
|
+
operationId: string;
|
|
363
|
+
} | {
|
|
364
|
+
status: "not_found";
|
|
365
|
+
id: string;
|
|
366
|
+
};
|
|
367
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
368
|
+
}>;
|
|
369
|
+
getOperationStatus: import("@trpc/server").TRPCQueryProcedure<{
|
|
370
|
+
input: {
|
|
371
|
+
id: string;
|
|
372
|
+
operationId: string;
|
|
373
|
+
};
|
|
374
|
+
output: {
|
|
375
|
+
status: "found";
|
|
376
|
+
share: {
|
|
377
|
+
id: string;
|
|
378
|
+
title: string;
|
|
379
|
+
selectedCount: number;
|
|
380
|
+
version: number;
|
|
381
|
+
contentVersion: number;
|
|
382
|
+
status: "pending" | "active" | "stopped";
|
|
383
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
384
|
+
createdAt: string;
|
|
385
|
+
updatedAt: string;
|
|
386
|
+
expiresAt: string | null;
|
|
387
|
+
stoppedAt: string | null;
|
|
388
|
+
lastViewedAt: string | null;
|
|
389
|
+
passcodeProtected: boolean;
|
|
390
|
+
notifyOnView: boolean;
|
|
391
|
+
minorPolicy: {
|
|
392
|
+
isMinor: boolean | null;
|
|
393
|
+
policyResolved: boolean;
|
|
394
|
+
defaultExpiryDays: 30 | 365;
|
|
395
|
+
viewCountingEnabled: boolean;
|
|
396
|
+
};
|
|
397
|
+
note?: string | undefined;
|
|
398
|
+
attachmentId?: string | null | undefined;
|
|
399
|
+
attachmentChunkCount?: number | null | undefined;
|
|
400
|
+
viewCount?: number | undefined;
|
|
401
|
+
contentUrl?: string | undefined;
|
|
402
|
+
};
|
|
403
|
+
} | {
|
|
404
|
+
status: "pending";
|
|
405
|
+
id: string;
|
|
406
|
+
operationId: string;
|
|
407
|
+
} | {
|
|
408
|
+
status: "not_found";
|
|
409
|
+
id: string;
|
|
410
|
+
};
|
|
411
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
412
|
+
}>;
|
|
413
|
+
retry: import("@trpc/server").TRPCMutationProcedure<{
|
|
414
|
+
input: {
|
|
415
|
+
id: string;
|
|
416
|
+
operationId: string;
|
|
417
|
+
};
|
|
418
|
+
output: {
|
|
419
|
+
status: "found";
|
|
420
|
+
share: {
|
|
421
|
+
id: string;
|
|
422
|
+
title: string;
|
|
423
|
+
selectedCount: number;
|
|
424
|
+
version: number;
|
|
425
|
+
contentVersion: number;
|
|
426
|
+
status: "pending" | "active" | "stopped";
|
|
427
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
428
|
+
createdAt: string;
|
|
429
|
+
updatedAt: string;
|
|
430
|
+
expiresAt: string | null;
|
|
431
|
+
stoppedAt: string | null;
|
|
432
|
+
lastViewedAt: string | null;
|
|
433
|
+
passcodeProtected: boolean;
|
|
434
|
+
notifyOnView: boolean;
|
|
435
|
+
minorPolicy: {
|
|
436
|
+
isMinor: boolean | null;
|
|
437
|
+
policyResolved: boolean;
|
|
438
|
+
defaultExpiryDays: 30 | 365;
|
|
439
|
+
viewCountingEnabled: boolean;
|
|
440
|
+
};
|
|
441
|
+
note?: string | undefined;
|
|
442
|
+
attachmentId?: string | null | undefined;
|
|
443
|
+
attachmentChunkCount?: number | null | undefined;
|
|
444
|
+
viewCount?: number | undefined;
|
|
445
|
+
contentUrl?: string | undefined;
|
|
446
|
+
};
|
|
447
|
+
} | {
|
|
448
|
+
status: "pending";
|
|
449
|
+
id: string;
|
|
450
|
+
operationId: string;
|
|
451
|
+
} | {
|
|
452
|
+
status: "not_found";
|
|
453
|
+
id: string;
|
|
454
|
+
};
|
|
455
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
456
|
+
}>;
|
|
457
|
+
getRecovery: import("@trpc/server").TRPCQueryProcedure<{
|
|
458
|
+
input: {
|
|
459
|
+
id: string;
|
|
460
|
+
};
|
|
461
|
+
output: {
|
|
462
|
+
recovery: {
|
|
463
|
+
protected: string;
|
|
464
|
+
iv: string;
|
|
465
|
+
ciphertext: string;
|
|
466
|
+
tag: string;
|
|
467
|
+
aad?: string | undefined;
|
|
468
|
+
recipients?: {
|
|
469
|
+
header: {
|
|
470
|
+
alg: string;
|
|
471
|
+
iv: string;
|
|
472
|
+
tag: string;
|
|
473
|
+
epk?: {
|
|
474
|
+
kty?: string | undefined;
|
|
475
|
+
crv?: string | undefined;
|
|
476
|
+
x?: string | undefined;
|
|
477
|
+
y?: string | undefined;
|
|
478
|
+
n?: string | undefined;
|
|
479
|
+
d?: string | undefined;
|
|
480
|
+
} | undefined;
|
|
481
|
+
kid?: string | undefined;
|
|
482
|
+
apv?: string | undefined;
|
|
483
|
+
apu?: string | undefined;
|
|
484
|
+
};
|
|
485
|
+
encrypted_key: string;
|
|
486
|
+
}[] | undefined;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
490
|
+
}>;
|
|
491
|
+
getContent: import("@trpc/server").TRPCQueryProcedure<{
|
|
492
|
+
input: {
|
|
493
|
+
id: string;
|
|
494
|
+
};
|
|
495
|
+
output: {
|
|
496
|
+
id: string;
|
|
497
|
+
contentVersion: number;
|
|
498
|
+
envelope: {
|
|
499
|
+
v: 1;
|
|
500
|
+
alg: "A256GCM";
|
|
501
|
+
iv: string;
|
|
502
|
+
ct: string;
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
506
|
+
}>;
|
|
507
|
+
}>>;
|
|
508
|
+
export type ShareLinksRouter = ReturnType<typeof createShareLinksRouter>;
|
|
509
|
+
export declare const enforceOwnerShareWriteRateLimit: (namespace: string, ownerProfileId: string) => Promise<void>;
|
|
510
|
+
export declare const getProductionDependencies: () => Promise<ShareLinkRouterDependencies | null>;
|
|
511
|
+
export declare const shareLinksRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
512
|
+
ctx: import(".././routes/index").Context;
|
|
513
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
514
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
515
|
+
transformer: true;
|
|
516
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
517
|
+
putAttachmentChunk: import("@trpc/server").TRPCMutationProcedure<{
|
|
518
|
+
input: {
|
|
519
|
+
chunkCount: number;
|
|
520
|
+
envelope: {
|
|
521
|
+
v: 1;
|
|
522
|
+
alg: "A256GCM";
|
|
523
|
+
iv: string;
|
|
524
|
+
ct: string;
|
|
525
|
+
};
|
|
526
|
+
ownerEncryptedRecovery: {
|
|
527
|
+
protected: string;
|
|
528
|
+
iv: string;
|
|
529
|
+
ciphertext: string;
|
|
530
|
+
tag: string;
|
|
531
|
+
aad?: string | undefined;
|
|
532
|
+
recipients?: {
|
|
533
|
+
header: {
|
|
534
|
+
alg: string;
|
|
535
|
+
iv: string;
|
|
536
|
+
tag: string;
|
|
537
|
+
epk?: {
|
|
538
|
+
kty?: string | undefined;
|
|
539
|
+
crv?: string | undefined;
|
|
540
|
+
x?: string | undefined;
|
|
541
|
+
y?: string | undefined;
|
|
542
|
+
n?: string | undefined;
|
|
543
|
+
d?: string | undefined;
|
|
544
|
+
} | undefined;
|
|
545
|
+
kid?: string | undefined;
|
|
546
|
+
apv?: string | undefined;
|
|
547
|
+
apu?: string | undefined;
|
|
548
|
+
};
|
|
549
|
+
encrypted_key: string;
|
|
550
|
+
}[] | undefined;
|
|
551
|
+
};
|
|
552
|
+
id: string;
|
|
553
|
+
contentVersion: number;
|
|
554
|
+
attachmentId: string;
|
|
555
|
+
chunkIndex: number;
|
|
556
|
+
};
|
|
557
|
+
output: {
|
|
558
|
+
ok: true;
|
|
559
|
+
};
|
|
560
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
561
|
+
}>;
|
|
562
|
+
deleteAttachmentChunks: import("@trpc/server").TRPCMutationProcedure<{
|
|
563
|
+
input: {
|
|
564
|
+
id: string;
|
|
565
|
+
contentVersion: number;
|
|
566
|
+
attachmentId: string;
|
|
567
|
+
chunkCount: number;
|
|
568
|
+
};
|
|
569
|
+
output: {
|
|
570
|
+
ok: boolean;
|
|
571
|
+
};
|
|
572
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
573
|
+
}>;
|
|
574
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
575
|
+
input: {
|
|
576
|
+
id: string;
|
|
577
|
+
clientRequestId: string;
|
|
578
|
+
title: string;
|
|
579
|
+
selectedCount: number;
|
|
580
|
+
contentVersion: 1;
|
|
581
|
+
envelope: {
|
|
582
|
+
v: 1;
|
|
583
|
+
alg: "A256GCM";
|
|
584
|
+
iv: string;
|
|
585
|
+
ct: string;
|
|
586
|
+
};
|
|
587
|
+
ownerEncryptedRecovery: {
|
|
588
|
+
protected: string;
|
|
589
|
+
iv: string;
|
|
590
|
+
ciphertext: string;
|
|
591
|
+
tag: string;
|
|
592
|
+
aad?: string | undefined;
|
|
593
|
+
recipients?: {
|
|
594
|
+
header: {
|
|
595
|
+
alg: string;
|
|
596
|
+
iv: string;
|
|
597
|
+
tag: string;
|
|
598
|
+
epk?: {
|
|
599
|
+
kty?: string | undefined;
|
|
600
|
+
crv?: string | undefined;
|
|
601
|
+
x?: string | undefined;
|
|
602
|
+
y?: string | undefined;
|
|
603
|
+
n?: string | undefined;
|
|
604
|
+
d?: string | undefined;
|
|
605
|
+
} | undefined;
|
|
606
|
+
kid?: string | undefined;
|
|
607
|
+
apv?: string | undefined;
|
|
608
|
+
apu?: string | undefined;
|
|
609
|
+
};
|
|
610
|
+
encrypted_key: string;
|
|
611
|
+
}[] | undefined;
|
|
612
|
+
};
|
|
613
|
+
note?: string | undefined;
|
|
614
|
+
expiresAt?: string | null | undefined;
|
|
615
|
+
passcode?: string | undefined;
|
|
616
|
+
notifyOnView?: boolean | undefined;
|
|
617
|
+
attachment?: {
|
|
618
|
+
id: string;
|
|
619
|
+
chunkCount: number;
|
|
620
|
+
} | undefined;
|
|
621
|
+
};
|
|
622
|
+
output: {
|
|
623
|
+
status: "completed";
|
|
624
|
+
share: {
|
|
625
|
+
id: string;
|
|
626
|
+
title: string;
|
|
627
|
+
selectedCount: number;
|
|
628
|
+
version: number;
|
|
629
|
+
contentVersion: number;
|
|
630
|
+
status: "pending" | "active" | "stopped";
|
|
631
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
632
|
+
createdAt: string;
|
|
633
|
+
updatedAt: string;
|
|
634
|
+
expiresAt: string | null;
|
|
635
|
+
stoppedAt: string | null;
|
|
636
|
+
lastViewedAt: string | null;
|
|
637
|
+
passcodeProtected: boolean;
|
|
638
|
+
notifyOnView: boolean;
|
|
639
|
+
minorPolicy: {
|
|
640
|
+
isMinor: boolean | null;
|
|
641
|
+
policyResolved: boolean;
|
|
642
|
+
defaultExpiryDays: 30 | 365;
|
|
643
|
+
viewCountingEnabled: boolean;
|
|
644
|
+
};
|
|
645
|
+
note?: string | undefined;
|
|
646
|
+
attachmentId?: string | null | undefined;
|
|
647
|
+
attachmentChunkCount?: number | null | undefined;
|
|
648
|
+
viewCount?: number | undefined;
|
|
649
|
+
contentUrl?: string | undefined;
|
|
650
|
+
};
|
|
651
|
+
} | {
|
|
652
|
+
status: "pending";
|
|
653
|
+
id: string;
|
|
654
|
+
operationId: string;
|
|
655
|
+
};
|
|
656
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
657
|
+
}>;
|
|
658
|
+
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
659
|
+
input: {
|
|
660
|
+
id: string;
|
|
661
|
+
expectedVersion: number;
|
|
662
|
+
clientRequestId: string;
|
|
663
|
+
title?: string | undefined;
|
|
664
|
+
note?: string | null | undefined;
|
|
665
|
+
expiresAt?: string | null | undefined;
|
|
666
|
+
passcode?: string | null | undefined;
|
|
667
|
+
notifyOnView?: boolean | undefined;
|
|
668
|
+
contentVersion?: number | undefined;
|
|
669
|
+
selectedCount?: number | undefined;
|
|
670
|
+
envelope?: {
|
|
671
|
+
v: 1;
|
|
672
|
+
alg: "A256GCM";
|
|
673
|
+
iv: string;
|
|
674
|
+
ct: string;
|
|
675
|
+
} | undefined;
|
|
676
|
+
ownerEncryptedRecovery?: {
|
|
677
|
+
protected: string;
|
|
678
|
+
iv: string;
|
|
679
|
+
ciphertext: string;
|
|
680
|
+
tag: string;
|
|
681
|
+
aad?: string | undefined;
|
|
682
|
+
recipients?: {
|
|
683
|
+
header: {
|
|
684
|
+
alg: string;
|
|
685
|
+
iv: string;
|
|
686
|
+
tag: string;
|
|
687
|
+
epk?: {
|
|
688
|
+
kty?: string | undefined;
|
|
689
|
+
crv?: string | undefined;
|
|
690
|
+
x?: string | undefined;
|
|
691
|
+
y?: string | undefined;
|
|
692
|
+
n?: string | undefined;
|
|
693
|
+
d?: string | undefined;
|
|
694
|
+
} | undefined;
|
|
695
|
+
kid?: string | undefined;
|
|
696
|
+
apv?: string | undefined;
|
|
697
|
+
apu?: string | undefined;
|
|
698
|
+
};
|
|
699
|
+
encrypted_key: string;
|
|
700
|
+
}[] | undefined;
|
|
701
|
+
} | undefined;
|
|
702
|
+
attachment?: {
|
|
703
|
+
id: string;
|
|
704
|
+
chunkCount: number;
|
|
705
|
+
} | undefined;
|
|
706
|
+
};
|
|
707
|
+
output: {
|
|
708
|
+
status: "completed";
|
|
709
|
+
share: {
|
|
710
|
+
id: string;
|
|
711
|
+
title: string;
|
|
712
|
+
selectedCount: number;
|
|
713
|
+
version: number;
|
|
714
|
+
contentVersion: number;
|
|
715
|
+
status: "pending" | "active" | "stopped";
|
|
716
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
717
|
+
createdAt: string;
|
|
718
|
+
updatedAt: string;
|
|
719
|
+
expiresAt: string | null;
|
|
720
|
+
stoppedAt: string | null;
|
|
721
|
+
lastViewedAt: string | null;
|
|
722
|
+
passcodeProtected: boolean;
|
|
723
|
+
notifyOnView: boolean;
|
|
724
|
+
minorPolicy: {
|
|
725
|
+
isMinor: boolean | null;
|
|
726
|
+
policyResolved: boolean;
|
|
727
|
+
defaultExpiryDays: 30 | 365;
|
|
728
|
+
viewCountingEnabled: boolean;
|
|
729
|
+
};
|
|
730
|
+
note?: string | undefined;
|
|
731
|
+
attachmentId?: string | null | undefined;
|
|
732
|
+
attachmentChunkCount?: number | null | undefined;
|
|
733
|
+
viewCount?: number | undefined;
|
|
734
|
+
contentUrl?: string | undefined;
|
|
735
|
+
};
|
|
736
|
+
} | {
|
|
737
|
+
status: "pending";
|
|
738
|
+
id: string;
|
|
739
|
+
operationId: string;
|
|
740
|
+
};
|
|
741
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
742
|
+
}>;
|
|
743
|
+
revoke: import("@trpc/server").TRPCMutationProcedure<{
|
|
744
|
+
input: {
|
|
745
|
+
id: string;
|
|
746
|
+
expectedVersion?: number | undefined;
|
|
747
|
+
clientRequestId?: string | undefined;
|
|
748
|
+
};
|
|
749
|
+
output: {
|
|
750
|
+
status: "completed";
|
|
751
|
+
share: {
|
|
752
|
+
id: string;
|
|
753
|
+
title: string;
|
|
754
|
+
selectedCount: number;
|
|
755
|
+
version: number;
|
|
756
|
+
contentVersion: number;
|
|
757
|
+
status: "pending" | "active" | "stopped";
|
|
758
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
759
|
+
createdAt: string;
|
|
760
|
+
updatedAt: string;
|
|
761
|
+
expiresAt: string | null;
|
|
762
|
+
stoppedAt: string | null;
|
|
763
|
+
lastViewedAt: string | null;
|
|
764
|
+
passcodeProtected: boolean;
|
|
765
|
+
notifyOnView: boolean;
|
|
766
|
+
minorPolicy: {
|
|
767
|
+
isMinor: boolean | null;
|
|
768
|
+
policyResolved: boolean;
|
|
769
|
+
defaultExpiryDays: 30 | 365;
|
|
770
|
+
viewCountingEnabled: boolean;
|
|
771
|
+
};
|
|
772
|
+
note?: string | undefined;
|
|
773
|
+
attachmentId?: string | null | undefined;
|
|
774
|
+
attachmentChunkCount?: number | null | undefined;
|
|
775
|
+
viewCount?: number | undefined;
|
|
776
|
+
contentUrl?: string | undefined;
|
|
777
|
+
};
|
|
778
|
+
} | {
|
|
779
|
+
status: "pending";
|
|
780
|
+
id: string;
|
|
781
|
+
operationId: string;
|
|
782
|
+
};
|
|
783
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
784
|
+
}>;
|
|
785
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
786
|
+
input: {
|
|
787
|
+
limit?: number | undefined;
|
|
788
|
+
cursor?: string | undefined;
|
|
789
|
+
};
|
|
790
|
+
output: {
|
|
791
|
+
hasMore: boolean;
|
|
792
|
+
records: {
|
|
793
|
+
id: string;
|
|
794
|
+
title: string;
|
|
795
|
+
selectedCount: number;
|
|
796
|
+
version: number;
|
|
797
|
+
contentVersion: number;
|
|
798
|
+
status: "pending" | "active" | "stopped";
|
|
799
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
800
|
+
createdAt: string;
|
|
801
|
+
updatedAt: string;
|
|
802
|
+
expiresAt: string | null;
|
|
803
|
+
stoppedAt: string | null;
|
|
804
|
+
lastViewedAt: string | null;
|
|
805
|
+
passcodeProtected: boolean;
|
|
806
|
+
notifyOnView: boolean;
|
|
807
|
+
minorPolicy: {
|
|
808
|
+
isMinor: boolean | null;
|
|
809
|
+
policyResolved: boolean;
|
|
810
|
+
defaultExpiryDays: 30 | 365;
|
|
811
|
+
viewCountingEnabled: boolean;
|
|
812
|
+
};
|
|
813
|
+
note?: string | undefined;
|
|
814
|
+
attachmentId?: string | null | undefined;
|
|
815
|
+
attachmentChunkCount?: number | null | undefined;
|
|
816
|
+
viewCount?: number | undefined;
|
|
817
|
+
contentUrl?: string | undefined;
|
|
818
|
+
}[];
|
|
819
|
+
cursor?: string | undefined;
|
|
820
|
+
};
|
|
821
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
822
|
+
}>;
|
|
823
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
824
|
+
input: {
|
|
825
|
+
id: string;
|
|
826
|
+
};
|
|
827
|
+
output: {
|
|
828
|
+
status: "found";
|
|
829
|
+
share: {
|
|
830
|
+
id: string;
|
|
831
|
+
title: string;
|
|
832
|
+
selectedCount: number;
|
|
833
|
+
version: number;
|
|
834
|
+
contentVersion: number;
|
|
835
|
+
status: "pending" | "active" | "stopped";
|
|
836
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
837
|
+
createdAt: string;
|
|
838
|
+
updatedAt: string;
|
|
839
|
+
expiresAt: string | null;
|
|
840
|
+
stoppedAt: string | null;
|
|
841
|
+
lastViewedAt: string | null;
|
|
842
|
+
passcodeProtected: boolean;
|
|
843
|
+
notifyOnView: boolean;
|
|
844
|
+
minorPolicy: {
|
|
845
|
+
isMinor: boolean | null;
|
|
846
|
+
policyResolved: boolean;
|
|
847
|
+
defaultExpiryDays: 30 | 365;
|
|
848
|
+
viewCountingEnabled: boolean;
|
|
849
|
+
};
|
|
850
|
+
note?: string | undefined;
|
|
851
|
+
attachmentId?: string | null | undefined;
|
|
852
|
+
attachmentChunkCount?: number | null | undefined;
|
|
853
|
+
viewCount?: number | undefined;
|
|
854
|
+
contentUrl?: string | undefined;
|
|
855
|
+
};
|
|
856
|
+
} | {
|
|
857
|
+
status: "pending";
|
|
858
|
+
id: string;
|
|
859
|
+
operationId: string;
|
|
860
|
+
} | {
|
|
861
|
+
status: "not_found";
|
|
862
|
+
id: string;
|
|
863
|
+
};
|
|
864
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
865
|
+
}>;
|
|
866
|
+
getOperationStatus: import("@trpc/server").TRPCQueryProcedure<{
|
|
867
|
+
input: {
|
|
868
|
+
id: string;
|
|
869
|
+
operationId: string;
|
|
870
|
+
};
|
|
871
|
+
output: {
|
|
872
|
+
status: "found";
|
|
873
|
+
share: {
|
|
874
|
+
id: string;
|
|
875
|
+
title: string;
|
|
876
|
+
selectedCount: number;
|
|
877
|
+
version: number;
|
|
878
|
+
contentVersion: number;
|
|
879
|
+
status: "pending" | "active" | "stopped";
|
|
880
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
881
|
+
createdAt: string;
|
|
882
|
+
updatedAt: string;
|
|
883
|
+
expiresAt: string | null;
|
|
884
|
+
stoppedAt: string | null;
|
|
885
|
+
lastViewedAt: string | null;
|
|
886
|
+
passcodeProtected: boolean;
|
|
887
|
+
notifyOnView: boolean;
|
|
888
|
+
minorPolicy: {
|
|
889
|
+
isMinor: boolean | null;
|
|
890
|
+
policyResolved: boolean;
|
|
891
|
+
defaultExpiryDays: 30 | 365;
|
|
892
|
+
viewCountingEnabled: boolean;
|
|
893
|
+
};
|
|
894
|
+
note?: string | undefined;
|
|
895
|
+
attachmentId?: string | null | undefined;
|
|
896
|
+
attachmentChunkCount?: number | null | undefined;
|
|
897
|
+
viewCount?: number | undefined;
|
|
898
|
+
contentUrl?: string | undefined;
|
|
899
|
+
};
|
|
900
|
+
} | {
|
|
901
|
+
status: "pending";
|
|
902
|
+
id: string;
|
|
903
|
+
operationId: string;
|
|
904
|
+
} | {
|
|
905
|
+
status: "not_found";
|
|
906
|
+
id: string;
|
|
907
|
+
};
|
|
908
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
909
|
+
}>;
|
|
910
|
+
retry: import("@trpc/server").TRPCMutationProcedure<{
|
|
911
|
+
input: {
|
|
912
|
+
id: string;
|
|
913
|
+
operationId: string;
|
|
914
|
+
};
|
|
915
|
+
output: {
|
|
916
|
+
status: "found";
|
|
917
|
+
share: {
|
|
918
|
+
id: string;
|
|
919
|
+
title: string;
|
|
920
|
+
selectedCount: number;
|
|
921
|
+
version: number;
|
|
922
|
+
contentVersion: number;
|
|
923
|
+
status: "pending" | "active" | "stopped";
|
|
924
|
+
contentState: "staging" | "finalized" | "content_missing";
|
|
925
|
+
createdAt: string;
|
|
926
|
+
updatedAt: string;
|
|
927
|
+
expiresAt: string | null;
|
|
928
|
+
stoppedAt: string | null;
|
|
929
|
+
lastViewedAt: string | null;
|
|
930
|
+
passcodeProtected: boolean;
|
|
931
|
+
notifyOnView: boolean;
|
|
932
|
+
minorPolicy: {
|
|
933
|
+
isMinor: boolean | null;
|
|
934
|
+
policyResolved: boolean;
|
|
935
|
+
defaultExpiryDays: 30 | 365;
|
|
936
|
+
viewCountingEnabled: boolean;
|
|
937
|
+
};
|
|
938
|
+
note?: string | undefined;
|
|
939
|
+
attachmentId?: string | null | undefined;
|
|
940
|
+
attachmentChunkCount?: number | null | undefined;
|
|
941
|
+
viewCount?: number | undefined;
|
|
942
|
+
contentUrl?: string | undefined;
|
|
943
|
+
};
|
|
944
|
+
} | {
|
|
945
|
+
status: "pending";
|
|
946
|
+
id: string;
|
|
947
|
+
operationId: string;
|
|
948
|
+
} | {
|
|
949
|
+
status: "not_found";
|
|
950
|
+
id: string;
|
|
951
|
+
};
|
|
952
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
953
|
+
}>;
|
|
954
|
+
getRecovery: import("@trpc/server").TRPCQueryProcedure<{
|
|
955
|
+
input: {
|
|
956
|
+
id: string;
|
|
957
|
+
};
|
|
958
|
+
output: {
|
|
959
|
+
recovery: {
|
|
960
|
+
protected: string;
|
|
961
|
+
iv: string;
|
|
962
|
+
ciphertext: string;
|
|
963
|
+
tag: string;
|
|
964
|
+
aad?: string | undefined;
|
|
965
|
+
recipients?: {
|
|
966
|
+
header: {
|
|
967
|
+
alg: string;
|
|
968
|
+
iv: string;
|
|
969
|
+
tag: string;
|
|
970
|
+
epk?: {
|
|
971
|
+
kty?: string | undefined;
|
|
972
|
+
crv?: string | undefined;
|
|
973
|
+
x?: string | undefined;
|
|
974
|
+
y?: string | undefined;
|
|
975
|
+
n?: string | undefined;
|
|
976
|
+
d?: string | undefined;
|
|
977
|
+
} | undefined;
|
|
978
|
+
kid?: string | undefined;
|
|
979
|
+
apv?: string | undefined;
|
|
980
|
+
apu?: string | undefined;
|
|
981
|
+
};
|
|
982
|
+
encrypted_key: string;
|
|
983
|
+
}[] | undefined;
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
987
|
+
}>;
|
|
988
|
+
getContent: import("@trpc/server").TRPCQueryProcedure<{
|
|
989
|
+
input: {
|
|
990
|
+
id: string;
|
|
991
|
+
};
|
|
992
|
+
output: {
|
|
993
|
+
id: string;
|
|
994
|
+
contentVersion: number;
|
|
995
|
+
envelope: {
|
|
996
|
+
v: 1;
|
|
997
|
+
alg: "A256GCM";
|
|
998
|
+
iv: string;
|
|
999
|
+
ct: string;
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
meta: import(".././routes/index").RouteMetadata;
|
|
1003
|
+
}>;
|
|
1004
|
+
}>>;
|
|
1005
|
+
//# sourceMappingURL=share-links.d.ts.map
|