@qlever-llc/trellis 0.11.0-rc.6 → 0.11.0-rc.7
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/esm/auth/device_activation.d.ts +6 -19
- package/esm/auth/device_activation.d.ts.map +1 -1
- package/esm/auth/device_activation.js +4 -7
- package/esm/auth/mod.d.ts +2 -2
- package/esm/auth/mod.d.ts.map +1 -1
- package/esm/auth/mod.js +2 -2
- package/esm/auth/proof.d.ts +10 -0
- package/esm/auth/proof.d.ts.map +1 -1
- package/esm/auth/proof.js +41 -3
- package/esm/auth/protocol.d.ts +122 -17
- package/esm/auth/protocol.d.ts.map +1 -1
- package/esm/auth/protocol.js +58 -1
- package/esm/auth/schemas.d.ts.map +1 -1
- package/esm/auth/schemas.js +1 -1
- package/esm/browser.d.ts +5 -6
- package/esm/browser.d.ts.map +1 -1
- package/esm/caller.d.ts +38 -0
- package/esm/caller.d.ts.map +1 -0
- package/esm/caller.js +45 -0
- package/esm/client.d.ts +1 -48
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +1 -41
- package/esm/client_connect.d.ts +8 -23
- package/esm/client_connect.d.ts.map +1 -1
- package/esm/client_connect.js +6 -6
- package/esm/contract.d.ts +2 -22
- package/esm/contract.d.ts.map +1 -1
- package/esm/contract.js +2 -1
- package/esm/contract_support/contract_runtime.d.ts +25 -0
- package/esm/contract_support/contract_runtime.d.ts.map +1 -0
- package/esm/contract_support/contract_runtime.js +4 -0
- package/esm/contract_support/descriptors.d.ts +49 -0
- package/esm/contract_support/descriptors.d.ts.map +1 -0
- package/esm/contract_support/descriptors.js +101 -0
- package/esm/contract_support/features.d.ts +17 -0
- package/esm/contract_support/features.d.ts.map +1 -0
- package/esm/contract_support/features.js +19 -0
- package/esm/contract_support/mod.d.ts +207 -199
- package/esm/contract_support/mod.d.ts.map +1 -1
- package/esm/contract_support/mod.js +246 -206
- package/esm/contract_support/protocol.d.ts +27 -16
- package/esm/contract_support/protocol.d.ts.map +1 -1
- package/esm/contract_support/protocol.js +12 -7
- package/esm/contract_support/runtime.d.ts +3 -2
- package/esm/contract_support/runtime.d.ts.map +1 -1
- package/esm/contract_support/schema_pointers.d.ts.map +1 -1
- package/esm/contract_support/schema_pointers.js +11 -2
- package/esm/contract_support/surface_names.d.ts +17 -0
- package/esm/contract_support/surface_names.d.ts.map +1 -0
- package/esm/contract_support/surface_names.js +34 -0
- package/esm/contracts.d.ts +1 -1
- package/esm/contracts.d.ts.map +1 -1
- package/esm/contracts.js +1 -0
- package/esm/device/deno.d.ts +2 -30
- package/esm/device/deno.d.ts.map +1 -1
- package/esm/device.d.ts +15 -42
- package/esm/device.d.ts.map +1 -1
- package/esm/device.js +30 -30
- package/esm/errors/index.d.ts +15 -15
- package/esm/generated-sdk/auth/descriptors.d.ts +678 -0
- package/esm/generated-sdk/auth/descriptors.d.ts.map +1 -0
- package/esm/generated-sdk/auth/descriptors.js +871 -0
- package/esm/generated-sdk/auth/mod.d.ts +1 -5
- package/esm/generated-sdk/auth/mod.d.ts.map +1 -1
- package/esm/generated-sdk/auth/mod.js +1 -2
- package/esm/generated-sdk/auth/schemas.d.ts +418 -49
- package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/auth/schemas.js +242 -21
- package/esm/generated-sdk/auth/types.d.ts +93 -830
- package/esm/generated-sdk/auth/types.d.ts.map +1 -1
- package/esm/generated-sdk/auth/types.js +2 -2
- package/esm/generated-sdk/eventlog/descriptors.d.ts +58 -0
- package/esm/generated-sdk/eventlog/descriptors.d.ts.map +1 -0
- package/esm/generated-sdk/eventlog/descriptors.js +73 -0
- package/esm/generated-sdk/eventlog/mod.d.ts +4 -0
- package/esm/generated-sdk/eventlog/mod.d.ts.map +1 -0
- package/esm/generated-sdk/eventlog/mod.js +3 -0
- package/esm/generated-sdk/eventlog/schemas.d.ts +433 -0
- package/esm/generated-sdk/eventlog/schemas.d.ts.map +1 -0
- package/esm/generated-sdk/eventlog/schemas.js +266 -0
- package/esm/generated-sdk/eventlog/types.d.ts +156 -0
- package/esm/generated-sdk/eventlog/types.d.ts.map +1 -0
- package/esm/generated-sdk/eventlog/types.js +35 -0
- package/esm/generated-sdk/health/descriptors.d.ts +46 -0
- package/esm/generated-sdk/health/descriptors.d.ts.map +1 -0
- package/esm/generated-sdk/health/descriptors.js +52 -0
- package/esm/generated-sdk/health/mod.d.ts +1 -4
- package/esm/generated-sdk/health/mod.d.ts.map +1 -1
- package/esm/generated-sdk/health/mod.js +1 -2
- package/esm/generated-sdk/health/schemas.d.ts +912 -45
- package/esm/generated-sdk/health/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/health/schemas.js +620 -38
- package/esm/generated-sdk/health/types.d.ts +228 -29
- package/esm/generated-sdk/health/types.d.ts.map +1 -1
- package/esm/generated-sdk/health/types.js +35 -2
- package/esm/generated-sdk/jobs/descriptors.d.ts +118 -0
- package/esm/generated-sdk/jobs/descriptors.d.ts.map +1 -0
- package/esm/generated-sdk/jobs/descriptors.js +157 -0
- package/esm/generated-sdk/jobs/mod.d.ts +1 -4
- package/esm/generated-sdk/jobs/mod.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/mod.js +1 -2
- package/esm/generated-sdk/jobs/schemas.d.ts +639 -0
- package/esm/generated-sdk/jobs/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/schemas.js +286 -0
- package/esm/generated-sdk/jobs/types.d.ts +146 -136
- package/esm/generated-sdk/jobs/types.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/types.js +1 -3
- package/esm/generated-sdk/state/descriptors.d.ts +58 -0
- package/esm/generated-sdk/state/descriptors.d.ts.map +1 -0
- package/esm/generated-sdk/state/descriptors.js +88 -0
- package/esm/generated-sdk/state/mod.d.ts +1 -4
- package/esm/generated-sdk/state/mod.d.ts.map +1 -1
- package/esm/generated-sdk/state/mod.js +1 -2
- package/esm/generated-sdk/state/types.d.ts +0 -90
- package/esm/generated-sdk/state/types.d.ts.map +1 -1
- package/esm/generated-sdk/state/types.js +2 -2
- package/esm/generated-sdk/trellis-core/descriptors.d.ts +26 -0
- package/esm/generated-sdk/trellis-core/descriptors.d.ts.map +1 -0
- package/esm/generated-sdk/trellis-core/descriptors.js +28 -0
- package/esm/generated-sdk/trellis-core/mod.d.ts +1 -4
- package/esm/generated-sdk/trellis-core/mod.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/mod.js +1 -2
- package/esm/generated-sdk/trellis-core/schemas.d.ts +41 -24
- package/esm/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/schemas.js +27 -10
- package/esm/generated-sdk/trellis-core/types.d.ts +3 -150
- package/esm/generated-sdk/trellis-core/types.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/types.js +2 -2
- package/esm/health_transport.d.ts +19 -0
- package/esm/health_transport.d.ts.map +1 -0
- package/esm/health_transport.js +31 -0
- package/esm/helpers.d.ts +1 -1
- package/esm/helpers.d.ts.map +1 -1
- package/esm/helpers.js +14 -4
- package/esm/index.d.ts +14 -10
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +8 -3
- package/esm/jobs.d.ts +106 -15
- package/esm/jobs.d.ts.map +1 -1
- package/esm/jobs.js +163 -11
- package/esm/models/auth/rpc/Logout.d.ts.map +1 -1
- package/esm/models/auth/rpc/Logout.js +1 -1
- package/esm/models/trellis/ContractResources.d.ts +16 -0
- package/esm/models/trellis/ContractResources.d.ts.map +1 -0
- package/esm/models/trellis/ContractResources.js +2 -0
- package/esm/models/trellis/rpc/TrellisBindingsGet.d.ts +87 -0
- package/esm/models/trellis/rpc/TrellisBindingsGet.d.ts.map +1 -0
- package/esm/models/trellis/rpc/TrellisBindingsGet.js +10 -0
- package/esm/models/trellis/rpc/TrellisCatalog.d.ts +95 -0
- package/esm/models/trellis/rpc/TrellisCatalog.d.ts.map +1 -0
- package/esm/models/trellis/rpc/TrellisCatalog.js +45 -0
- package/esm/models/trellis/rpc/TrellisContractGet.d.ts +198 -0
- package/esm/models/trellis/rpc/TrellisContractGet.d.ts.map +1 -0
- package/esm/models/trellis/rpc/TrellisContractGet.js +40 -0
- package/esm/models/trellis/rpc/TrellisSurfaceStatus.d.ts +31 -0
- package/esm/models/trellis/rpc/TrellisSurfaceStatus.d.ts.map +1 -0
- package/esm/models/trellis/rpc/TrellisSurfaceStatus.js +50 -0
- package/esm/operations.d.ts +36 -21
- package/esm/operations.d.ts.map +1 -1
- package/esm/operations.js +42 -3
- package/esm/provider.d.ts +114 -0
- package/esm/provider.d.ts.map +1 -0
- package/esm/provider.js +72 -0
- package/esm/sdk/eventlog.d.ts +2 -0
- package/esm/sdk/eventlog.d.ts.map +1 -0
- package/esm/sdk/eventlog.js +1 -0
- package/esm/server/health.d.ts +84 -29
- package/esm/server/health.d.ts.map +1 -1
- package/esm/server/health.js +102 -47
- package/esm/server/health_schemas.d.ts +4 -28
- package/esm/server/health_schemas.d.ts.map +1 -1
- package/esm/server/health_schemas.js +4 -21
- package/esm/server/internal_jobs/active-job.d.ts +3 -1
- package/esm/server/internal_jobs/active-job.d.ts.map +1 -1
- package/esm/server/internal_jobs/active-job.js +3 -0
- package/esm/server/internal_jobs/bindings.d.ts +4 -1
- package/esm/server/internal_jobs/bindings.d.ts.map +1 -1
- package/esm/server/internal_jobs/job-manager.d.ts +16 -11
- package/esm/server/internal_jobs/job-manager.d.ts.map +1 -1
- package/esm/server/internal_jobs/job-manager.js +144 -18
- package/esm/server/internal_jobs/key-coordinator.d.ts +13 -1
- package/esm/server/internal_jobs/key-coordinator.d.ts.map +1 -1
- package/esm/server/internal_jobs/key-coordinator.js +72 -3
- package/esm/server/internal_jobs/projection.js +2 -0
- package/esm/server/internal_jobs/runtime-worker.d.ts +2 -0
- package/esm/server/internal_jobs/runtime-worker.d.ts.map +1 -1
- package/esm/server/internal_jobs/runtime-worker.js +107 -67
- package/esm/server/internal_jobs/types.d.ts +142 -1
- package/esm/server/internal_jobs/types.d.ts.map +1 -1
- package/esm/server/internal_jobs/types.js +64 -0
- package/esm/server/service.d.ts +81 -130
- package/esm/server/service.d.ts.map +1 -1
- package/esm/server/service.js +480 -127
- package/esm/server/subscription.d.ts +10 -9
- package/esm/server/subscription.d.ts.map +1 -1
- package/esm/server/transfer.d.ts +1 -1
- package/esm/server.d.ts +8 -8
- package/esm/server.d.ts.map +1 -1
- package/esm/server.js +120 -171
- package/esm/service/deno.d.ts +1 -1
- package/esm/service/deno.d.ts.map +1 -1
- package/esm/service/mod.d.ts +4 -4
- package/esm/service/mod.d.ts.map +1 -1
- package/esm/service/mod.js +3 -3
- package/esm/service/node.d.ts +1 -1
- package/esm/service/node.d.ts.map +1 -1
- package/esm/service/outbox_inbox.d.ts +14 -5
- package/esm/service/outbox_inbox.d.ts.map +1 -1
- package/esm/service/outbox_inbox.js +31 -5
- package/{script/trellis.d.ts → esm/session.d.ts} +86 -101
- package/esm/session.d.ts.map +1 -0
- package/esm/{trellis.js → session.js} +307 -33
- package/esm/session_baseline.d.ts +170 -0
- package/esm/session_baseline.d.ts.map +1 -0
- package/esm/session_baseline.js +39 -0
- package/package.json +6 -6
- package/script/auth/device_activation.d.ts +6 -19
- package/script/auth/device_activation.d.ts.map +1 -1
- package/script/auth/device_activation.js +4 -7
- package/script/auth/mod.d.ts +2 -2
- package/script/auth/mod.d.ts.map +1 -1
- package/script/auth/mod.js +14 -6
- package/script/auth/proof.d.ts +10 -0
- package/script/auth/proof.d.ts.map +1 -1
- package/script/auth/proof.js +44 -3
- package/script/auth/protocol.d.ts +122 -17
- package/script/auth/protocol.d.ts.map +1 -1
- package/script/auth/protocol.js +63 -6
- package/script/auth/schemas.d.ts.map +1 -1
- package/script/auth/schemas.js +1 -1
- package/script/browser.d.ts +5 -6
- package/script/browser.d.ts.map +1 -1
- package/script/caller.d.ts +38 -0
- package/script/caller.d.ts.map +1 -0
- package/script/caller.js +48 -0
- package/script/client.d.ts +1 -48
- package/script/client.d.ts.map +1 -1
- package/script/client.js +0 -76
- package/script/client_connect.d.ts +8 -23
- package/script/client_connect.d.ts.map +1 -1
- package/script/client_connect.js +12 -12
- package/script/contract.d.ts +2 -22
- package/script/contract.d.ts.map +1 -1
- package/script/contract.js +6 -1
- package/script/contract_support/contract_runtime.d.ts +25 -0
- package/script/contract_support/contract_runtime.d.ts.map +1 -0
- package/script/contract_support/contract_runtime.js +8 -0
- package/script/contract_support/descriptors.d.ts +49 -0
- package/script/contract_support/descriptors.d.ts.map +1 -0
- package/script/contract_support/descriptors.js +111 -0
- package/script/contract_support/features.d.ts +17 -0
- package/script/contract_support/features.d.ts.map +1 -0
- package/script/contract_support/features.js +25 -0
- package/script/contract_support/mod.d.ts +207 -199
- package/script/contract_support/mod.d.ts.map +1 -1
- package/script/contract_support/mod.js +262 -208
- package/script/contract_support/protocol.d.ts +27 -16
- package/script/contract_support/protocol.d.ts.map +1 -1
- package/script/contract_support/protocol.js +12 -7
- package/script/contract_support/runtime.d.ts +3 -2
- package/script/contract_support/runtime.d.ts.map +1 -1
- package/script/contract_support/schema_pointers.d.ts.map +1 -1
- package/script/contract_support/schema_pointers.js +11 -2
- package/script/contract_support/surface_names.d.ts +17 -0
- package/script/contract_support/surface_names.d.ts.map +1 -0
- package/script/contract_support/surface_names.js +38 -0
- package/script/contracts.d.ts +1 -1
- package/script/contracts.d.ts.map +1 -1
- package/script/contracts.js +6 -1
- package/script/device/deno.d.ts +2 -30
- package/script/device/deno.d.ts.map +1 -1
- package/script/device.d.ts +15 -42
- package/script/device.d.ts.map +1 -1
- package/script/device.js +30 -30
- package/script/errors/index.d.ts +15 -15
- package/script/generated-sdk/auth/descriptors.d.ts +678 -0
- package/script/generated-sdk/auth/descriptors.d.ts.map +1 -0
- package/script/generated-sdk/auth/descriptors.js +875 -0
- package/script/generated-sdk/auth/mod.d.ts +1 -5
- package/script/generated-sdk/auth/mod.d.ts.map +1 -1
- package/script/generated-sdk/auth/mod.js +1 -10
- package/script/generated-sdk/auth/schemas.d.ts +418 -49
- package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
- package/script/generated-sdk/auth/schemas.js +244 -23
- package/script/generated-sdk/auth/types.d.ts +93 -830
- package/script/generated-sdk/auth/types.d.ts.map +1 -1
- package/script/generated-sdk/auth/types.js +1 -3
- package/script/generated-sdk/eventlog/descriptors.d.ts +58 -0
- package/script/generated-sdk/eventlog/descriptors.d.ts.map +1 -0
- package/script/generated-sdk/eventlog/descriptors.js +109 -0
- package/script/generated-sdk/eventlog/mod.d.ts +4 -0
- package/script/generated-sdk/eventlog/mod.d.ts.map +1 -0
- package/script/generated-sdk/eventlog/mod.js +19 -0
- package/script/generated-sdk/eventlog/schemas.d.ts +433 -0
- package/script/generated-sdk/eventlog/schemas.d.ts.map +1 -0
- package/script/generated-sdk/eventlog/schemas.js +269 -0
- package/script/generated-sdk/eventlog/types.d.ts +156 -0
- package/script/generated-sdk/eventlog/types.d.ts.map +1 -0
- package/script/generated-sdk/eventlog/types.js +39 -0
- package/script/generated-sdk/health/descriptors.d.ts +46 -0
- package/script/generated-sdk/health/descriptors.d.ts.map +1 -0
- package/script/generated-sdk/health/descriptors.js +88 -0
- package/script/generated-sdk/health/mod.d.ts +1 -4
- package/script/generated-sdk/health/mod.d.ts.map +1 -1
- package/script/generated-sdk/health/mod.js +1 -10
- package/script/generated-sdk/health/schemas.d.ts +912 -45
- package/script/generated-sdk/health/schemas.d.ts.map +1 -1
- package/script/generated-sdk/health/schemas.js +621 -39
- package/script/generated-sdk/health/types.d.ts +228 -29
- package/script/generated-sdk/health/types.d.ts.map +1 -1
- package/script/generated-sdk/health/types.js +37 -3
- package/script/generated-sdk/jobs/descriptors.d.ts +118 -0
- package/script/generated-sdk/jobs/descriptors.d.ts.map +1 -0
- package/script/generated-sdk/jobs/descriptors.js +193 -0
- package/script/generated-sdk/jobs/mod.d.ts +1 -4
- package/script/generated-sdk/jobs/mod.d.ts.map +1 -1
- package/script/generated-sdk/jobs/mod.js +1 -10
- package/script/generated-sdk/jobs/schemas.d.ts +639 -0
- package/script/generated-sdk/jobs/schemas.d.ts.map +1 -1
- package/script/generated-sdk/jobs/schemas.js +286 -0
- package/script/generated-sdk/jobs/types.d.ts +146 -136
- package/script/generated-sdk/jobs/types.d.ts.map +1 -1
- package/script/generated-sdk/jobs/types.js +2 -4
- package/script/generated-sdk/state/descriptors.d.ts +58 -0
- package/script/generated-sdk/state/descriptors.d.ts.map +1 -0
- package/script/generated-sdk/state/descriptors.js +91 -0
- package/script/generated-sdk/state/mod.d.ts +1 -4
- package/script/generated-sdk/state/mod.d.ts.map +1 -1
- package/script/generated-sdk/state/mod.js +1 -10
- package/script/generated-sdk/state/types.d.ts +0 -90
- package/script/generated-sdk/state/types.d.ts.map +1 -1
- package/script/generated-sdk/state/types.js +1 -3
- package/script/generated-sdk/trellis-core/descriptors.d.ts +26 -0
- package/script/generated-sdk/trellis-core/descriptors.d.ts.map +1 -0
- package/script/generated-sdk/trellis-core/descriptors.js +31 -0
- package/script/generated-sdk/trellis-core/mod.d.ts +1 -4
- package/script/generated-sdk/trellis-core/mod.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/mod.js +1 -10
- package/script/generated-sdk/trellis-core/schemas.d.ts +41 -24
- package/script/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/schemas.js +27 -10
- package/script/generated-sdk/trellis-core/types.d.ts +3 -150
- package/script/generated-sdk/trellis-core/types.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/types.js +1 -3
- package/script/health_transport.d.ts +19 -0
- package/script/health_transport.d.ts.map +1 -0
- package/script/health_transport.js +35 -0
- package/script/helpers.d.ts +1 -1
- package/script/helpers.d.ts.map +1 -1
- package/script/helpers.js +14 -4
- package/script/index.d.ts +14 -10
- package/script/index.d.ts.map +1 -1
- package/script/index.js +24 -11
- package/script/jobs.d.ts +106 -15
- package/script/jobs.d.ts.map +1 -1
- package/script/jobs.js +167 -11
- package/script/models/auth/rpc/Logout.d.ts.map +1 -1
- package/script/models/auth/rpc/Logout.js +1 -1
- package/script/models/trellis/ContractResources.d.ts +16 -0
- package/script/models/trellis/ContractResources.d.ts.map +1 -0
- package/script/models/trellis/ContractResources.js +16 -0
- package/script/models/trellis/rpc/TrellisBindingsGet.d.ts +87 -0
- package/script/models/trellis/rpc/TrellisBindingsGet.d.ts.map +1 -0
- package/script/models/trellis/rpc/TrellisBindingsGet.js +16 -0
- package/script/models/trellis/rpc/TrellisCatalog.d.ts +95 -0
- package/script/models/trellis/rpc/TrellisCatalog.d.ts.map +1 -0
- package/script/models/trellis/rpc/TrellisCatalog.js +51 -0
- package/script/models/trellis/rpc/TrellisContractGet.d.ts +198 -0
- package/script/models/trellis/rpc/TrellisContractGet.d.ts.map +1 -0
- package/script/models/trellis/rpc/TrellisContractGet.js +46 -0
- package/script/models/trellis/rpc/TrellisSurfaceStatus.d.ts +31 -0
- package/script/models/trellis/rpc/TrellisSurfaceStatus.d.ts.map +1 -0
- package/script/models/trellis/rpc/TrellisSurfaceStatus.js +56 -0
- package/script/operations.d.ts +36 -21
- package/script/operations.d.ts.map +1 -1
- package/script/operations.js +43 -3
- package/script/provider.d.ts +114 -0
- package/script/provider.d.ts.map +1 -0
- package/script/provider.js +76 -0
- package/script/sdk/eventlog.d.ts +2 -0
- package/script/sdk/eventlog.d.ts.map +1 -0
- package/script/sdk/eventlog.js +17 -0
- package/script/server/health.d.ts +84 -29
- package/script/server/health.d.ts.map +1 -1
- package/script/server/health.js +107 -50
- package/script/server/health_schemas.d.ts +4 -28
- package/script/server/health_schemas.d.ts.map +1 -1
- package/script/server/health_schemas.js +5 -22
- package/script/server/internal_jobs/active-job.d.ts +3 -1
- package/script/server/internal_jobs/active-job.d.ts.map +1 -1
- package/script/server/internal_jobs/active-job.js +3 -0
- package/script/server/internal_jobs/bindings.d.ts +4 -1
- package/script/server/internal_jobs/bindings.d.ts.map +1 -1
- package/script/server/internal_jobs/job-manager.d.ts +16 -11
- package/script/server/internal_jobs/job-manager.d.ts.map +1 -1
- package/script/server/internal_jobs/job-manager.js +144 -17
- package/script/server/internal_jobs/key-coordinator.d.ts +13 -1
- package/script/server/internal_jobs/key-coordinator.d.ts.map +1 -1
- package/script/server/internal_jobs/key-coordinator.js +72 -3
- package/script/server/internal_jobs/projection.js +2 -0
- package/script/server/internal_jobs/runtime-worker.d.ts +2 -0
- package/script/server/internal_jobs/runtime-worker.d.ts.map +1 -1
- package/script/server/internal_jobs/runtime-worker.js +107 -67
- package/script/server/internal_jobs/types.d.ts +142 -1
- package/script/server/internal_jobs/types.d.ts.map +1 -1
- package/script/server/internal_jobs/types.js +65 -1
- package/script/server/service.d.ts +81 -130
- package/script/server/service.d.ts.map +1 -1
- package/script/server/service.js +487 -133
- package/script/server/subscription.d.ts +10 -9
- package/script/server/subscription.d.ts.map +1 -1
- package/script/server/transfer.d.ts +1 -1
- package/script/server.d.ts +8 -8
- package/script/server.d.ts.map +1 -1
- package/script/server.js +144 -195
- package/script/service/deno.d.ts +1 -1
- package/script/service/deno.d.ts.map +1 -1
- package/script/service/mod.d.ts +4 -4
- package/script/service/mod.d.ts.map +1 -1
- package/script/service/mod.js +1 -6
- package/script/service/node.d.ts +1 -1
- package/script/service/node.d.ts.map +1 -1
- package/script/service/outbox_inbox.d.ts +14 -5
- package/script/service/outbox_inbox.d.ts.map +1 -1
- package/script/service/outbox_inbox.js +31 -5
- package/{esm/trellis.d.ts → script/session.d.ts} +86 -101
- package/script/session.d.ts.map +1 -0
- package/script/{trellis.js → session.js} +307 -33
- package/script/session_baseline.d.ts +170 -0
- package/script/session_baseline.d.ts.map +1 -0
- package/script/session_baseline.js +42 -0
- package/src/auth/device_activation.ts +18 -41
- package/src/auth/mod.ts +12 -0
- package/src/auth/proof.ts +92 -3
- package/src/auth/protocol.ts +74 -1
- package/src/auth/schemas.ts +1 -1
- package/src/browser.ts +7 -17
- package/src/caller.ts +173 -0
- package/src/client.ts +1 -154
- package/src/client_connect.ts +30 -42
- package/src/contract.ts +6 -70
- package/src/contract_support/contract_runtime.ts +49 -0
- package/src/contract_support/descriptors.ts +315 -0
- package/src/contract_support/features.ts +56 -0
- package/src/contract_support/mod.ts +778 -730
- package/src/contract_support/protocol.ts +12 -7
- package/src/contract_support/runtime.ts +3 -1
- package/src/contract_support/schema_pointers.ts +12 -2
- package/src/contract_support/surface_names.ts +91 -0
- package/src/contracts.ts +6 -1
- package/src/device/deno.ts +7 -30
- package/src/device.ts +53 -102
- package/src/health_transport.ts +55 -0
- package/src/helpers.ts +19 -6
- package/src/index.ts +37 -34
- package/src/jobs.ts +271 -23
- package/src/models/auth/rpc/Logout.ts +3 -6
- package/src/models/trellis/ContractResources.ts +49 -0
- package/src/models/trellis/rpc/TrellisBindingsGet.ts +29 -0
- package/src/models/trellis/rpc/TrellisCatalog.ts +56 -0
- package/src/models/trellis/rpc/TrellisContractGet.ts +67 -0
- package/src/models/trellis/rpc/TrellisSurfaceStatus.ts +60 -0
- package/src/operations.ts +285 -119
- package/src/provider.ts +486 -0
- package/src/sdk/_generated/auth/descriptors.ts +1668 -0
- package/src/sdk/_generated/auth/mod.ts +1 -23
- package/src/sdk/_generated/auth/schemas.ts +246 -21
- package/src/sdk/_generated/auth/types.ts +90 -1306
- package/src/sdk/_generated/core/descriptors.ts +66 -0
- package/src/sdk/_generated/core/mod.ts +1 -18
- package/src/sdk/_generated/core/schemas.ts +27 -10
- package/src/sdk/_generated/core/types.ts +1 -180
- package/src/sdk/_generated/eventlog/descriptors.ts +118 -0
- package/src/sdk/_generated/eventlog/mod.ts +3 -0
- package/src/sdk/_generated/eventlog/schemas.ts +278 -0
- package/src/sdk/_generated/eventlog/types.ts +163 -0
- package/src/sdk/_generated/health/descriptors.ts +83 -0
- package/src/sdk/_generated/health/mod.ts +1 -18
- package/src/sdk/_generated/health/schemas.ts +630 -38
- package/src/sdk/_generated/health/types.ts +218 -38
- package/src/sdk/_generated/jobs/descriptors.ts +199 -0
- package/src/sdk/_generated/jobs/mod.ts +1 -18
- package/src/sdk/_generated/jobs/schemas.ts +286 -0
- package/src/sdk/_generated/jobs/types.ts +169 -199
- package/src/sdk/_generated/state/descriptors.ts +118 -0
- package/src/sdk/_generated/state/mod.ts +1 -18
- package/src/sdk/_generated/state/types.ts +0 -124
- package/src/sdk/eventlog.ts +2 -0
- package/src/server/health.ts +149 -65
- package/src/server/health_schemas.ts +5 -22
- package/src/server/internal_jobs/active-job.ts +12 -1
- package/src/server/internal_jobs/bindings.ts +2 -1
- package/src/server/internal_jobs/job-manager.ts +197 -26
- package/src/server/internal_jobs/key-coordinator.ts +93 -4
- package/src/server/internal_jobs/projection.ts +2 -0
- package/src/server/internal_jobs/runtime-worker.ts +121 -77
- package/src/server/internal_jobs/types.ts +84 -0
- package/src/server/runtime.ts +1 -1
- package/src/server/service.ts +761 -215
- package/src/server/subscription.ts +10 -9
- package/src/server/transfer.ts +1 -1
- package/src/server.ts +162 -221
- package/src/service/deno.ts +3 -1
- package/src/service/mod.ts +5 -7
- package/src/service/node.ts +2 -1
- package/src/service/outbox_inbox.ts +53 -10
- package/src/{trellis.ts → session.ts} +498 -162
- package/src/session_baseline.ts +56 -0
- package/esm/generated-sdk/auth/api.d.ts +0 -51
- package/esm/generated-sdk/auth/api.d.ts.map +0 -1
- package/esm/generated-sdk/auth/api.js +0 -19
- package/esm/generated-sdk/auth/client.d.ts +0 -300
- package/esm/generated-sdk/auth/client.d.ts.map +0 -1
- package/esm/generated-sdk/auth/client.js +0 -1
- package/esm/generated-sdk/auth/contract.d.ts +0 -8
- package/esm/generated-sdk/auth/contract.d.ts.map +0 -1
- package/esm/generated-sdk/auth/contract.js +0 -10925
- package/esm/generated-sdk/auth/owned_api.d.ts +0 -604
- package/esm/generated-sdk/auth/owned_api.d.ts.map +0 -1
- package/esm/generated-sdk/auth/owned_api.js +0 -855
- package/esm/generated-sdk/health/api.d.ts +0 -48
- package/esm/generated-sdk/health/api.d.ts.map +0 -1
- package/esm/generated-sdk/health/api.js +0 -14
- package/esm/generated-sdk/health/client.d.ts +0 -51
- package/esm/generated-sdk/health/client.d.ts.map +0 -1
- package/esm/generated-sdk/health/client.js +0 -1
- package/esm/generated-sdk/health/contract.d.ts +0 -8
- package/esm/generated-sdk/health/contract.d.ts.map +0 -1
- package/esm/generated-sdk/health/contract.js +0 -153
- package/esm/generated-sdk/health/owned_api.d.ts +0 -16
- package/esm/generated-sdk/health/owned_api.d.ts.map +0 -1
- package/esm/generated-sdk/health/owned_api.js +0 -16
- package/esm/generated-sdk/jobs/api.d.ts +0 -51
- package/esm/generated-sdk/jobs/api.d.ts.map +0 -1
- package/esm/generated-sdk/jobs/api.js +0 -19
- package/esm/generated-sdk/jobs/client.d.ts +0 -91
- package/esm/generated-sdk/jobs/client.d.ts.map +0 -1
- package/esm/generated-sdk/jobs/client.js +0 -1
- package/esm/generated-sdk/jobs/contract.d.ts +0 -8
- package/esm/generated-sdk/jobs/contract.d.ts.map +0 -1
- package/esm/generated-sdk/jobs/contract.js +0 -3006
- package/esm/generated-sdk/jobs/owned_api.d.ts +0 -127
- package/esm/generated-sdk/jobs/owned_api.d.ts.map +0 -1
- package/esm/generated-sdk/jobs/owned_api.js +0 -164
- package/esm/generated-sdk/state/api.d.ts +0 -51
- package/esm/generated-sdk/state/api.d.ts.map +0 -1
- package/esm/generated-sdk/state/api.js +0 -19
- package/esm/generated-sdk/state/client.d.ts +0 -77
- package/esm/generated-sdk/state/client.d.ts.map +0 -1
- package/esm/generated-sdk/state/client.js +0 -1
- package/esm/generated-sdk/state/contract.d.ts +0 -8
- package/esm/generated-sdk/state/contract.d.ts.map +0 -1
- package/esm/generated-sdk/state/contract.js +0 -682
- package/esm/generated-sdk/state/owned_api.d.ts +0 -66
- package/esm/generated-sdk/state/owned_api.d.ts.map +0 -1
- package/esm/generated-sdk/state/owned_api.js +0 -94
- package/esm/generated-sdk/trellis-core/api.d.ts +0 -51
- package/esm/generated-sdk/trellis-core/api.d.ts.map +0 -1
- package/esm/generated-sdk/trellis-core/api.js +0 -19
- package/esm/generated-sdk/trellis-core/client.d.ts +0 -69
- package/esm/generated-sdk/trellis-core/client.d.ts.map +0 -1
- package/esm/generated-sdk/trellis-core/client.js +0 -1
- package/esm/generated-sdk/trellis-core/contract.d.ts +0 -8
- package/esm/generated-sdk/trellis-core/contract.d.ts.map +0 -1
- package/esm/generated-sdk/trellis-core/contract.js +0 -879
- package/esm/generated-sdk/trellis-core/owned_api.d.ts +0 -42
- package/esm/generated-sdk/trellis-core/owned_api.d.ts.map +0 -1
- package/esm/generated-sdk/trellis-core/owned_api.js +0 -42
- package/esm/health.d.ts +0 -5
- package/esm/health.d.ts.map +0 -1
- package/esm/health.js +0 -3
- package/esm/trellis.d.ts.map +0 -1
- package/script/generated-sdk/auth/api.d.ts +0 -51
- package/script/generated-sdk/auth/api.d.ts.map +0 -1
- package/script/generated-sdk/auth/api.js +0 -22
- package/script/generated-sdk/auth/client.d.ts +0 -300
- package/script/generated-sdk/auth/client.d.ts.map +0 -1
- package/script/generated-sdk/auth/client.js +0 -2
- package/script/generated-sdk/auth/contract.d.ts +0 -8
- package/script/generated-sdk/auth/contract.d.ts.map +0 -1
- package/script/generated-sdk/auth/contract.js +0 -10928
- package/script/generated-sdk/auth/owned_api.d.ts +0 -604
- package/script/generated-sdk/auth/owned_api.d.ts.map +0 -1
- package/script/generated-sdk/auth/owned_api.js +0 -858
- package/script/generated-sdk/health/api.d.ts +0 -48
- package/script/generated-sdk/health/api.d.ts.map +0 -1
- package/script/generated-sdk/health/api.js +0 -17
- package/script/generated-sdk/health/client.d.ts +0 -51
- package/script/generated-sdk/health/client.d.ts.map +0 -1
- package/script/generated-sdk/health/client.js +0 -2
- package/script/generated-sdk/health/contract.d.ts +0 -8
- package/script/generated-sdk/health/contract.d.ts.map +0 -1
- package/script/generated-sdk/health/contract.js +0 -156
- package/script/generated-sdk/health/owned_api.d.ts +0 -16
- package/script/generated-sdk/health/owned_api.d.ts.map +0 -1
- package/script/generated-sdk/health/owned_api.js +0 -19
- package/script/generated-sdk/jobs/api.d.ts +0 -51
- package/script/generated-sdk/jobs/api.d.ts.map +0 -1
- package/script/generated-sdk/jobs/api.js +0 -22
- package/script/generated-sdk/jobs/client.d.ts +0 -91
- package/script/generated-sdk/jobs/client.d.ts.map +0 -1
- package/script/generated-sdk/jobs/client.js +0 -2
- package/script/generated-sdk/jobs/contract.d.ts +0 -8
- package/script/generated-sdk/jobs/contract.d.ts.map +0 -1
- package/script/generated-sdk/jobs/contract.js +0 -3009
- package/script/generated-sdk/jobs/owned_api.d.ts +0 -127
- package/script/generated-sdk/jobs/owned_api.d.ts.map +0 -1
- package/script/generated-sdk/jobs/owned_api.js +0 -200
- package/script/generated-sdk/state/api.d.ts +0 -51
- package/script/generated-sdk/state/api.d.ts.map +0 -1
- package/script/generated-sdk/state/api.js +0 -22
- package/script/generated-sdk/state/client.d.ts +0 -77
- package/script/generated-sdk/state/client.d.ts.map +0 -1
- package/script/generated-sdk/state/client.js +0 -2
- package/script/generated-sdk/state/contract.d.ts +0 -8
- package/script/generated-sdk/state/contract.d.ts.map +0 -1
- package/script/generated-sdk/state/contract.js +0 -685
- package/script/generated-sdk/state/owned_api.d.ts +0 -66
- package/script/generated-sdk/state/owned_api.d.ts.map +0 -1
- package/script/generated-sdk/state/owned_api.js +0 -97
- package/script/generated-sdk/trellis-core/api.d.ts +0 -51
- package/script/generated-sdk/trellis-core/api.d.ts.map +0 -1
- package/script/generated-sdk/trellis-core/api.js +0 -22
- package/script/generated-sdk/trellis-core/client.d.ts +0 -69
- package/script/generated-sdk/trellis-core/client.d.ts.map +0 -1
- package/script/generated-sdk/trellis-core/client.js +0 -2
- package/script/generated-sdk/trellis-core/contract.d.ts +0 -8
- package/script/generated-sdk/trellis-core/contract.d.ts.map +0 -1
- package/script/generated-sdk/trellis-core/contract.js +0 -882
- package/script/generated-sdk/trellis-core/owned_api.d.ts +0 -42
- package/script/generated-sdk/trellis-core/owned_api.d.ts.map +0 -1
- package/script/generated-sdk/trellis-core/owned_api.js +0 -45
- package/script/health.d.ts +0 -5
- package/script/health.d.ts.map +0 -1
- package/script/health.js +0 -14
- package/script/trellis.d.ts.map +0 -1
- package/src/health.ts +0 -21
- package/src/sdk/_generated/auth/api.ts +0 -67
- package/src/sdk/_generated/auth/client.ts +0 -891
- package/src/sdk/_generated/auth/contract.ts +0 -10983
- package/src/sdk/_generated/auth/owned_api.ts +0 -1254
- package/src/sdk/_generated/core/api.ts +0 -67
- package/src/sdk/_generated/core/client.ts +0 -137
- package/src/sdk/_generated/core/contract.ts +0 -919
- package/src/sdk/_generated/core/owned_api.ts +0 -67
- package/src/sdk/_generated/health/api.ts +0 -60
- package/src/sdk/_generated/health/client.ts +0 -115
- package/src/sdk/_generated/health/contract.ts +0 -190
- package/src/sdk/_generated/health/owned_api.ts +0 -20
- package/src/sdk/_generated/jobs/api.ts +0 -67
- package/src/sdk/_generated/jobs/client.ts +0 -183
- package/src/sdk/_generated/jobs/contract.ts +0 -3060
- package/src/sdk/_generated/jobs/owned_api.ts +0 -193
- package/src/sdk/_generated/state/api.ts +0 -67
- package/src/sdk/_generated/state/client.ts +0 -157
- package/src/sdk/_generated/state/contract.ts +0 -724
- package/src/sdk/_generated/state/owned_api.ts +0 -115
|
@@ -45,27 +45,14 @@ type AuthResolveDeviceUserAuthoritiesOperationShape = {
|
|
|
45
45
|
output: typeof AuthResolveDeviceUserAuthoritiesResponseSchema;
|
|
46
46
|
};
|
|
47
47
|
export type AuthResolveDeviceUserAuthoritiesOperation = OperationRef<AuthResolveDeviceUserAuthoritiesOperationShape, AuthResolveDeviceUserAuthoritiesProgress, AuthResolveDeviceUserAuthoritiesOutput>;
|
|
48
|
-
type
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
deviceUserAuthoritiesList(input: AuthDeviceUserAuthoritiesListInput): AsyncResult<AuthDeviceUserAuthoritiesListOutput, BaseError>;
|
|
52
|
-
deviceUserAuthoritiesRevoke(input: AuthDeviceUserAuthoritiesRevokeInput): AsyncResult<AuthDeviceUserAuthoritiesRevokeResponse, BaseError>;
|
|
53
|
-
devicesConnectInfoGet(input: GetDeviceConnectInfoInput): AsyncResult<GetDeviceConnectInfoOutput, BaseError>;
|
|
54
|
-
};
|
|
48
|
+
export type DeviceActivationTransport = {
|
|
49
|
+
authDeviceUserAuthoritiesResolve(input: AuthResolveDeviceUserAuthoritiesInput): {
|
|
50
|
+
start(): AsyncResult<AuthResolveDeviceUserAuthoritiesOperation, BaseError>;
|
|
55
51
|
};
|
|
52
|
+
authDeviceUserAuthoritiesList(input: AuthDeviceUserAuthoritiesListInput): AsyncResult<AuthDeviceUserAuthoritiesListOutput, BaseError>;
|
|
53
|
+
authDeviceUserAuthoritiesRevoke(input: AuthDeviceUserAuthoritiesRevokeInput): AsyncResult<AuthDeviceUserAuthoritiesRevokeResponse, BaseError>;
|
|
54
|
+
authDevicesConnectInfoGet(input: GetDeviceConnectInfoInput): AsyncResult<GetDeviceConnectInfoOutput, BaseError>;
|
|
56
55
|
};
|
|
57
|
-
type ResolveDeviceUserAuthoritiesOperationClient = {
|
|
58
|
-
operation: {
|
|
59
|
-
auth: {
|
|
60
|
-
deviceUserAuthoritiesResolve: {
|
|
61
|
-
input(input: AuthResolveDeviceUserAuthoritiesInput): {
|
|
62
|
-
start(): AsyncResult<AuthResolveDeviceUserAuthoritiesOperation, BaseError>;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
export type DeviceActivationTransport = RequestClient & ResolveDeviceUserAuthoritiesOperationClient;
|
|
69
56
|
export declare function deriveDeviceIdentity(deviceRootSecret: Uint8Array): Promise<DeviceIdentity>;
|
|
70
57
|
export declare function deriveDeviceQrMac(input: {
|
|
71
58
|
activationKey: Uint8Array | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device_activation.d.ts","sourceRoot":"","sources":["../../src/auth/device_activation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM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;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,GAAG,OAAO,CAAC,eAAe,GAAG;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC,CA0BxD;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,UAAU,GAAG,MAAM,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,OAAO,CACT,OAAO,CAAC,+BAA+B,EAAE;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,CAAC,CAClE,CAuDA;AAED,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,UAAU,GAAG,MAAM,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,GAAG,OAAO,CAAC,0BAA0B,CAAC,CA+BtC;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,yBAAyB;wCAGK,qCAAqC;iCAG5C,kCAAkC;kCAGjC,oCAAoC;gCAGtC,yBAAyB;EAIxD;AAED,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,OAAO,CAAC,CAmBlB"}
|
|
@@ -346,19 +346,16 @@ export async function getDeviceConnectInfo(args) {
|
|
|
346
346
|
export function createDeviceActivationClient(client) {
|
|
347
347
|
return {
|
|
348
348
|
resolveDeviceUserAuthorities(input) {
|
|
349
|
-
return client.
|
|
350
|
-
.start()
|
|
351
|
-
.orThrow();
|
|
349
|
+
return client.authDeviceUserAuthoritiesResolve(input).start().orThrow();
|
|
352
350
|
},
|
|
353
351
|
listDeviceActivations(input) {
|
|
354
|
-
return client.
|
|
352
|
+
return client.authDeviceUserAuthoritiesList(input).orThrow();
|
|
355
353
|
},
|
|
356
354
|
revokeDeviceActivation(input) {
|
|
357
|
-
return client.
|
|
358
|
-
.orThrow();
|
|
355
|
+
return client.authDeviceUserAuthoritiesRevoke(input).orThrow();
|
|
359
356
|
},
|
|
360
357
|
getDeviceConnectInfo(input) {
|
|
361
|
-
return client.
|
|
358
|
+
return client.authDevicesConnectInfoGet(input).orThrow();
|
|
362
359
|
},
|
|
363
360
|
};
|
|
364
361
|
}
|
package/esm/auth/mod.d.ts
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export { type AuthDeviceUserAuthoritiesListInput, type AuthDeviceUserAuthoritiesListOutput, type AuthDeviceUserAuthoritiesRevokeInput, type AuthDeviceUserAuthoritiesRevokeResponse, type AuthResolveDeviceUserAuthoritiesInput, type AuthResolveDeviceUserAuthoritiesOperation, type AuthResolveDeviceUserAuthoritiesOutput, type AuthResolveDeviceUserAuthoritiesProgress, buildDeviceActivationPayload, buildDeviceWaitProofInput, createDeviceActivationClient, createDeviceNatsAuthToken, deriveDeviceConfirmationCode, deriveDeviceIdentity, deriveDeviceQrMac, type DeviceActivationPayload, type DeviceActivationTransport, type DeviceActivationWaitRequest, type DeviceIdentity, encodeDeviceActivationPayload, getDeviceConnectInfo, type GetDeviceConnectInfoInput, type GetDeviceConnectInfoOutput, parseDeviceActivationPayload, signDeviceWaitRequest, startDeviceActivationRequest, verifyDeviceConfirmationCode, verifyDeviceWaitSignature, waitForDeviceActivation, type WaitForDeviceActivationResponse, } from "./device_activation.js";
|
|
11
11
|
export { type AuthConfig, bindFlow, type BrowserAuthRecoveryClassification, type BrowserAuthRecoveryKind, buildLoginUrl, classifyBrowserAuthError, clearSessionKey, completeSessionLogout, type CompleteSessionLogoutArgs, createRpcProof, fetchPortalFlowState, generateSessionKey, getOrCreateSessionKey, getPublicSessionKey, hasSessionKey, isBindSuccessResponse, isRecoverableBrowserAuthError, loadSessionKey, logoutSession, logoutSessionSig, natsConnectSigForIat, portalFlowIdFromUrl, portalProviderLoginUrl, portalRedirectLocation, type SessionKeyHandle, type SessionKeyOptions, type SessionKeyPersistenceMode, signBytes, startAuthRequest, submitPortalApproval, } from "./browser.js";
|
|
12
|
-
export { buildProofInput, createProof, type ProofParams, verifyProof, } from "./proof.js";
|
|
13
|
-
export { ApprovalRecordViewSchema, AuthCapabilitiesListResponseSchema, AuthCapabilitiesListSchema, AuthCapabilityGroupsDeleteResponseSchema, AuthCapabilityGroupsDeleteSchema, AuthCapabilityGroupsGetResponseSchema, AuthCapabilityGroupsGetSchema, AuthCapabilityGroupsListResponseSchema, AuthCapabilityGroupsListSchema, AuthCapabilityGroupsPutResponseSchema, AuthCapabilityGroupsPutSchema, AuthCatalogIssuesResolveResponseSchema, AuthCatalogIssuesResolveSchema, type AuthDeployment, type AuthDeploymentAuthorityAcceptMigrationInput, AuthDeploymentAuthorityAcceptMigrationSchema, type AuthDeploymentAuthorityAcceptResponse, AuthDeploymentAuthorityAcceptResponseSchema, type AuthDeploymentAuthorityAcceptUpdateInput, AuthDeploymentAuthorityAcceptUpdateSchema, type AuthDeploymentAuthorityGetInput, type AuthDeploymentAuthorityGetResponse, AuthDeploymentAuthorityGetResponseSchema, AuthDeploymentAuthorityGetSchema, type AuthDeploymentAuthorityGrantOverridesListInput, type AuthDeploymentAuthorityGrantOverridesListResponse, AuthDeploymentAuthorityGrantOverridesListResponseSchema, AuthDeploymentAuthorityGrantOverridesListSchema, type AuthDeploymentAuthorityGrantOverridesPutInput, AuthDeploymentAuthorityGrantOverridesPutSchema, type AuthDeploymentAuthorityGrantOverridesRemoveInput, AuthDeploymentAuthorityGrantOverridesRemoveSchema, type AuthDeploymentAuthorityGrantOverridesResponse, AuthDeploymentAuthorityGrantOverridesResponseSchema, type AuthDeploymentAuthorityListInput, type AuthDeploymentAuthorityListResponse, AuthDeploymentAuthorityListResponseSchema, AuthDeploymentAuthorityListSchema, type AuthDeploymentAuthorityPlanInput, type AuthDeploymentAuthorityPlanResponse, AuthDeploymentAuthorityPlanResponseSchema, AuthDeploymentAuthorityPlanSchema, type AuthDeploymentAuthorityPlansGetInput, type AuthDeploymentAuthorityPlansGetResponse, AuthDeploymentAuthorityPlansGetResponseSchema, AuthDeploymentAuthorityPlansGetSchema, type AuthDeploymentAuthorityPlansListInput, type AuthDeploymentAuthorityPlansListResponse, AuthDeploymentAuthorityPlansListResponseSchema, AuthDeploymentAuthorityPlansListSchema, type AuthDeploymentAuthorityReconcileInput, type AuthDeploymentAuthorityReconcileResponse, AuthDeploymentAuthorityReconcileResponseSchema, AuthDeploymentAuthorityReconcileSchema, type AuthDeploymentAuthorityRejectInput, type AuthDeploymentAuthorityRejectResponse, AuthDeploymentAuthorityRejectResponseSchema, AuthDeploymentAuthorityRejectSchema, type AuthDeploymentKind, AuthDeploymentKindSchema, AuthDeploymentSchema, AuthDeploymentsCreateResponseSchema, AuthDeploymentsCreateSchema, AuthDeploymentsDisableResponseSchema, AuthDeploymentsDisableSchema, AuthDeploymentsEnableResponseSchema, AuthDeploymentsEnableSchema, AuthDeploymentsListResponseSchema, AuthDeploymentsListSchema, AuthDeploymentsRemoveResponseSchema, AuthDeploymentsRemoveSchema, AuthDevicesConnectInfoGetResponseSchema, AuthDevicesConnectInfoGetSchema, AuthDevicesDisableResponseSchema, AuthDevicesDisableSchema, AuthDevicesEnableResponseSchema, AuthDevicesEnableSchema, AuthDevicesListResponseSchema, AuthDevicesListSchema, AuthDevicesProvisionResponseSchema, AuthDevicesProvisionSchema, AuthDevicesRemoveResponseSchema, AuthDevicesRemoveSchema, AuthDeviceUserAuthoritiesApprovedEventSchema, AuthDeviceUserAuthoritiesListResponseSchema, AuthDeviceUserAuthoritiesListSchema, AuthDeviceUserAuthoritiesRequestedEventSchema, AuthDeviceUserAuthoritiesResolvedEventSchema, AuthDeviceUserAuthoritiesReviewRequestedEventSchema, AuthDeviceUserAuthoritiesReviewsDecideResponseSchema, AuthDeviceUserAuthoritiesReviewsDecideSchema, AuthDeviceUserAuthoritiesReviewsListResponseSchema, AuthDeviceUserAuthoritiesReviewsListSchema, AuthDeviceUserAuthoritiesRevokeResponseSchema, AuthDeviceUserAuthoritiesRevokeSchema, type AuthenticatedDevice, AuthenticatedDeviceSchema, type AuthenticatedService, type AuthenticatedUser, AuthIdentitiesListResponseSchema, AuthIdentitiesListSchema, AuthIdentityGrantsListResponseSchema, AuthIdentityGrantsListSchema, AuthIdentityGrantsRevokeResponseSchema, AuthIdentityGrantsRevokeSchema, AuthPortalsGetResponseSchema, AuthPortalsGetSchema, AuthPortalsListResponseSchema, AuthPortalsListSchema, AuthPortalsLoginSettingsGetSchema, AuthPortalsLoginSettingsResponseSchema, AuthPortalsLoginSettingsUpdateSchema, AuthPortalsPutResponseSchema, AuthPortalsPutSchema, AuthPortalsRemoveResponseSchema, AuthPortalsRemoveSchema, AuthPortalsRoutesPutResponseSchema, AuthPortalsRoutesPutSchema, AuthPortalsRoutesRemoveResponseSchema, AuthPortalsRoutesRemoveSchema, AuthRequestsValidateResponseSchema, AuthRequestsValidateSchema, AuthResolveDeviceUserAuthoritiesProgressSchema, AuthResolveDeviceUserAuthoritiesResponseSchema, AuthResolveDeviceUserAuthoritiesSchema, AuthServiceInstancesDisableResponseSchema, AuthServiceInstancesDisableSchema, AuthServiceInstancesEnableResponseSchema, AuthServiceInstancesEnableSchema, AuthServiceInstancesListResponseSchema, AuthServiceInstancesListSchema, AuthServiceInstancesProvisionResponseSchema, AuthServiceInstancesProvisionSchema, AuthServiceInstancesRemoveResponseSchema, AuthServiceInstancesRemoveSchema, type AuthSessionsMeResponse, AuthSessionsMeResponseSchema, AuthSessionsMeSchema, AuthUserIdentitiesListResponseSchema, AuthUserIdentitiesListSchema, AuthUserIdentitiesUnlinkResponseSchema, AuthUserIdentitiesUnlinkSchema, AuthUsersAccountFlowCreateResponseSchema, AuthUsersCreateResponseSchema, AuthUsersCreateSchema, AuthUsersGetResponseSchema, AuthUsersGetSchema, AuthUsersIdentityLinkCreateSchema, AuthUsersListResponseSchema, AuthUsersListSchema, AuthUsersPasswordChangeResponseSchema, AuthUsersPasswordChangeSchema, AuthUsersPasswordResetCreateSchema, AuthUsersResolveResponseSchema, AuthUsersResolveSchema, AuthUsersUpdateResponseSchema, AuthUsersUpdateSchema, CallerViewSchema, ContractAnalysisSchema, ContractAnalysisSummarySchema, type DeploymentAuthority, type DeploymentAuthorityCapability, type DeploymentAuthorityCapabilityNeed, DeploymentAuthorityCapabilityNeedSchema, DeploymentAuthorityCapabilitySchema, type DeploymentAuthorityContractNeed, DeploymentAuthorityContractNeedSchema, type DeploymentAuthorityGrantOverride, DeploymentAuthorityGrantOverrideSchema, type DeploymentAuthorityKind, DeploymentAuthorityKindSchema, type DeploymentAuthorityMaterialization, DeploymentAuthorityMaterializationSchema, type DeploymentAuthorityMigration, DeploymentAuthorityMigrationSchema, type DeploymentAuthorityNeeds, DeploymentAuthorityNeedsSchema, type DeploymentAuthorityPlan, type DeploymentAuthorityPlanBreakingChange, DeploymentAuthorityPlanBreakingChangeSchema, DeploymentAuthorityPlanSchema, type DeploymentAuthorityProposal, DeploymentAuthorityProposalSchema, type DeploymentAuthorityReconciliationStatus, DeploymentAuthorityReconciliationStatusSchema, type DeploymentAuthorityResource, DeploymentAuthorityResourceKindSchema, type DeploymentAuthorityResourceNeed, DeploymentAuthorityResourceNeedSchema, DeploymentAuthorityResourceSchema, DeploymentAuthoritySchema, type DeploymentAuthoritySurface, DeploymentAuthoritySurfaceActionSchema, DeploymentAuthoritySurfaceKindSchema, type DeploymentAuthoritySurfaceNeed, DeploymentAuthoritySurfaceNeedSchema, DeploymentAuthoritySurfaceSchema, type DeploymentAuthorityUpdate, DeploymentAuthorityUpdateSchema, DeploymentPortalRouteSchema, DeploymentResourceBindingSchema, DeviceActivationActorSchema, type DeviceActivationRecord, DeviceActivationRecordSchema, DeviceActivationReviewSchema, DeviceConnectInfoSchema, DeviceDeploymentSchema, DeviceSchema, DigestSchema, type FlowRegistrationAvailability, FlowRegistrationAvailabilitySchema, IdentityGrantViewSchema, ImplementationOfferSchema, type LoginPortalRecord, LoginPortalRecordSchema, type LoginPortalRoute, LoginPortalRouteSchema, type LoginPortalSettings, LoginPortalSettingsSchema, type LoginPortalSummary, LoginPortalSummarySchema, type MaterializedAuthorityCapabilityGrant, MaterializedAuthorityCapabilityGrantSchema, type MaterializedAuthorityGrant, type MaterializedAuthorityGrants, MaterializedAuthorityGrantsSchema, type MaterializedAuthorityNatsGrant, MaterializedAuthorityNatsGrantSchema, type MaterializedAuthorityNatsGrantSource, MaterializedAuthorityNatsGrantSourceSchema, type MaterializedAuthoritySurfaceGrant, MaterializedAuthoritySurfaceGrantSchema, OpenObjectSchema, type ParticipantKind, ParticipantKindSchema, type PortalFlowApp, type PortalFlowApproval, type PortalFlowApprovalDeniedState, type PortalFlowApprovalRequiredState, type PortalFlowChooseProviderState, type PortalFlowExpiredState, type PortalFlowInsufficientCapabilitiesState, type PortalFlowProvider, type PortalFlowRedirectState, type PortalFlowState, PortalFlowStateSchema, type PortalFlowUser, ResolvedUserLabelSchema, ServiceDeploymentSchema, ServiceInstanceSchema, UserViewSchema, WaitForDeviceActivationRequestSchema, WaitForDeviceActivationResponseSchema, } from "./protocol.js";
|
|
12
|
+
export { buildEventProofInput, buildProofInput, createEventProof, createProof, type EventProofParams, type ProofParams, verifyEventProof, verifyProof, } from "./proof.js";
|
|
13
|
+
export { ApprovalRecordViewSchema, AuthCapabilitiesListResponseSchema, AuthCapabilitiesListSchema, AuthCapabilityGroupsDeleteResponseSchema, AuthCapabilityGroupsDeleteSchema, AuthCapabilityGroupsGetResponseSchema, AuthCapabilityGroupsGetSchema, AuthCapabilityGroupsListResponseSchema, AuthCapabilityGroupsListSchema, AuthCapabilityGroupsPutResponseSchema, AuthCapabilityGroupsPutSchema, AuthCatalogIssuesResolveResponseSchema, AuthCatalogIssuesResolveSchema, type AuthDeployment, type AuthDeploymentAuthorityAcceptMigrationInput, AuthDeploymentAuthorityAcceptMigrationSchema, type AuthDeploymentAuthorityAcceptResponse, AuthDeploymentAuthorityAcceptResponseSchema, type AuthDeploymentAuthorityAcceptUpdateInput, AuthDeploymentAuthorityAcceptUpdateSchema, type AuthDeploymentAuthorityGetInput, type AuthDeploymentAuthorityGetResponse, AuthDeploymentAuthorityGetResponseSchema, AuthDeploymentAuthorityGetSchema, type AuthDeploymentAuthorityGrantOverridesListInput, type AuthDeploymentAuthorityGrantOverridesListResponse, AuthDeploymentAuthorityGrantOverridesListResponseSchema, AuthDeploymentAuthorityGrantOverridesListSchema, type AuthDeploymentAuthorityGrantOverridesPutInput, AuthDeploymentAuthorityGrantOverridesPutSchema, type AuthDeploymentAuthorityGrantOverridesRemoveInput, AuthDeploymentAuthorityGrantOverridesRemoveSchema, type AuthDeploymentAuthorityGrantOverridesResponse, AuthDeploymentAuthorityGrantOverridesResponseSchema, type AuthDeploymentAuthorityListInput, type AuthDeploymentAuthorityListResponse, AuthDeploymentAuthorityListResponseSchema, AuthDeploymentAuthorityListSchema, type AuthDeploymentAuthorityPlanInput, type AuthDeploymentAuthorityPlanResponse, AuthDeploymentAuthorityPlanResponseSchema, AuthDeploymentAuthorityPlanSchema, type AuthDeploymentAuthorityPlansGetInput, type AuthDeploymentAuthorityPlansGetResponse, AuthDeploymentAuthorityPlansGetResponseSchema, AuthDeploymentAuthorityPlansGetSchema, type AuthDeploymentAuthorityPlansListInput, type AuthDeploymentAuthorityPlansListResponse, AuthDeploymentAuthorityPlansListResponseSchema, AuthDeploymentAuthorityPlansListSchema, type AuthDeploymentAuthorityReconcileInput, type AuthDeploymentAuthorityReconcileResponse, AuthDeploymentAuthorityReconcileResponseSchema, AuthDeploymentAuthorityReconcileSchema, type AuthDeploymentAuthorityRejectInput, type AuthDeploymentAuthorityRejectResponse, AuthDeploymentAuthorityRejectResponseSchema, AuthDeploymentAuthorityRejectSchema, type AuthDeploymentKind, AuthDeploymentKindSchema, AuthDeploymentSchema, AuthDeploymentsCreateResponseSchema, AuthDeploymentsCreateSchema, AuthDeploymentsDisableResponseSchema, AuthDeploymentsDisableSchema, AuthDeploymentsEnableResponseSchema, AuthDeploymentsEnableSchema, AuthDeploymentsListResponseSchema, AuthDeploymentsListSchema, AuthDeploymentsRemoveResponseSchema, AuthDeploymentsRemoveSchema, AuthDevicesConnectInfoGetResponseSchema, AuthDevicesConnectInfoGetSchema, AuthDevicesDisableResponseSchema, AuthDevicesDisableSchema, AuthDevicesEnableResponseSchema, AuthDevicesEnableSchema, AuthDevicesListResponseSchema, AuthDevicesListSchema, AuthDevicesProvisionResponseSchema, AuthDevicesProvisionSchema, AuthDevicesRemoveResponseSchema, AuthDevicesRemoveSchema, AuthDeviceUserAuthoritiesApprovedEventSchema, AuthDeviceUserAuthoritiesListResponseSchema, AuthDeviceUserAuthoritiesListSchema, AuthDeviceUserAuthoritiesRequestedEventSchema, AuthDeviceUserAuthoritiesResolvedEventSchema, AuthDeviceUserAuthoritiesReviewRequestedEventSchema, AuthDeviceUserAuthoritiesReviewsDecideResponseSchema, AuthDeviceUserAuthoritiesReviewsDecideSchema, AuthDeviceUserAuthoritiesReviewsListResponseSchema, AuthDeviceUserAuthoritiesReviewsListSchema, AuthDeviceUserAuthoritiesRevokeResponseSchema, AuthDeviceUserAuthoritiesRevokeSchema, type AuthenticatedDevice, AuthenticatedDeviceSchema, type AuthenticatedService, type AuthenticatedUser, type AuthEventConsumerBinding, AuthEventConsumerBindingSchema, type AuthEventConsumersListInput, type AuthEventConsumersListResponse, AuthEventConsumersListResponseSchema, AuthEventConsumersListSchema, AuthEventsValidateResponseSchema, AuthEventsValidateSchema, AuthIdentitiesListResponseSchema, AuthIdentitiesListSchema, AuthIdentityGrantsListResponseSchema, AuthIdentityGrantsListSchema, AuthIdentityGrantsRevokeResponseSchema, AuthIdentityGrantsRevokeSchema, AuthPortalsGetResponseSchema, AuthPortalsGetSchema, AuthPortalsListResponseSchema, AuthPortalsListSchema, AuthPortalsLoginSettingsGetSchema, AuthPortalsLoginSettingsResponseSchema, AuthPortalsLoginSettingsUpdateSchema, AuthPortalsPutResponseSchema, AuthPortalsPutSchema, AuthPortalsRemoveResponseSchema, AuthPortalsRemoveSchema, AuthPortalsRoutesPutResponseSchema, AuthPortalsRoutesPutSchema, AuthPortalsRoutesRemoveResponseSchema, AuthPortalsRoutesRemoveSchema, AuthRequestsValidateResponseSchema, AuthRequestsValidateSchema, AuthResolveDeviceUserAuthoritiesProgressSchema, AuthResolveDeviceUserAuthoritiesResponseSchema, AuthResolveDeviceUserAuthoritiesSchema, AuthServiceInstancesDisableResponseSchema, AuthServiceInstancesDisableSchema, AuthServiceInstancesEnableResponseSchema, AuthServiceInstancesEnableSchema, AuthServiceInstancesListResponseSchema, AuthServiceInstancesListSchema, AuthServiceInstancesProvisionResponseSchema, AuthServiceInstancesProvisionSchema, AuthServiceInstancesRemoveResponseSchema, AuthServiceInstancesRemoveSchema, type AuthSessionsMeResponse, AuthSessionsMeResponseSchema, AuthSessionsMeSchema, AuthUserIdentitiesListResponseSchema, AuthUserIdentitiesListSchema, AuthUserIdentitiesUnlinkResponseSchema, AuthUserIdentitiesUnlinkSchema, AuthUsersAccountFlowCreateResponseSchema, AuthUsersCreateResponseSchema, AuthUsersCreateSchema, AuthUsersGetResponseSchema, AuthUsersGetSchema, AuthUsersIdentityLinkCreateSchema, AuthUsersListResponseSchema, AuthUsersListSchema, AuthUsersPasswordChangeResponseSchema, AuthUsersPasswordChangeSchema, AuthUsersPasswordResetCreateSchema, AuthUsersResolveResponseSchema, AuthUsersResolveSchema, AuthUsersUpdateResponseSchema, AuthUsersUpdateSchema, CallerViewSchema, ContractAnalysisSchema, ContractAnalysisSummarySchema, type DeploymentAuthority, type DeploymentAuthorityCapability, type DeploymentAuthorityCapabilityNeed, DeploymentAuthorityCapabilityNeedSchema, DeploymentAuthorityCapabilitySchema, type DeploymentAuthorityContractNeed, DeploymentAuthorityContractNeedSchema, type DeploymentAuthorityGrantOverride, DeploymentAuthorityGrantOverrideSchema, type DeploymentAuthorityKind, DeploymentAuthorityKindSchema, type DeploymentAuthorityMaterialization, DeploymentAuthorityMaterializationSchema, type DeploymentAuthorityMigration, DeploymentAuthorityMigrationSchema, type DeploymentAuthorityNeeds, DeploymentAuthorityNeedsSchema, type DeploymentAuthorityPlan, type DeploymentAuthorityPlanBreakingChange, DeploymentAuthorityPlanBreakingChangeSchema, DeploymentAuthorityPlanSchema, type DeploymentAuthorityProposal, DeploymentAuthorityProposalSchema, type DeploymentAuthorityReconciliationStatus, DeploymentAuthorityReconciliationStatusSchema, type DeploymentAuthorityResource, DeploymentAuthorityResourceKindSchema, type DeploymentAuthorityResourceNeed, DeploymentAuthorityResourceNeedSchema, DeploymentAuthorityResourceSchema, DeploymentAuthoritySchema, type DeploymentAuthoritySurface, DeploymentAuthoritySurfaceActionSchema, DeploymentAuthoritySurfaceKindSchema, type DeploymentAuthoritySurfaceNeed, DeploymentAuthoritySurfaceNeedSchema, DeploymentAuthoritySurfaceSchema, type DeploymentAuthorityUpdate, DeploymentAuthorityUpdateSchema, DeploymentPortalRouteSchema, DeploymentResourceBindingSchema, DeviceActivationActorSchema, type DeviceActivationRecord, DeviceActivationRecordSchema, DeviceActivationReviewSchema, DeviceConnectInfoSchema, DeviceDeploymentSchema, DeviceSchema, DigestSchema, type FlowRegistrationAvailability, FlowRegistrationAvailabilitySchema, IdentityGrantViewSchema, ImplementationOfferSchema, type LoginPortalRecord, LoginPortalRecordSchema, type LoginPortalRoute, LoginPortalRouteSchema, type LoginPortalSettings, LoginPortalSettingsSchema, type LoginPortalSummary, LoginPortalSummarySchema, type MaterializedAuthorityCapabilityGrant, MaterializedAuthorityCapabilityGrantSchema, type MaterializedAuthorityGrant, type MaterializedAuthorityGrants, MaterializedAuthorityGrantsSchema, type MaterializedAuthorityNatsGrant, MaterializedAuthorityNatsGrantSchema, type MaterializedAuthorityNatsGrantSource, MaterializedAuthorityNatsGrantSourceSchema, type MaterializedAuthoritySurfaceGrant, MaterializedAuthoritySurfaceGrantSchema, OpenObjectSchema, type ParticipantKind, ParticipantKindSchema, type PortalFlowApp, type PortalFlowApproval, type PortalFlowApprovalDeniedState, type PortalFlowApprovalRequiredState, type PortalFlowChooseProviderState, type PortalFlowExpiredState, type PortalFlowInsufficientCapabilitiesState, type PortalFlowProvider, type PortalFlowRedirectState, type PortalFlowState, PortalFlowStateSchema, type PortalFlowUser, ResolvedUserLabelSchema, ServiceDeploymentSchema, ServiceInstanceSchema, UserViewSchema, WaitForDeviceActivationRequestSchema, WaitForDeviceActivationResponseSchema, } from "./protocol.js";
|
|
14
14
|
export { approvalCapabilityKeys, type ApprovalDecision, ApprovalDecisionSchema, type AuthLogoutRequest, AuthLogoutRequestSchema, type AuthLogoutResponse, type AuthLogoutResponseMode, AuthLogoutResponseModeSchema, AuthLogoutResponseSchema, type AuthStartFlowResponse, AuthStartFlowResponseSchema, type AuthStartRequest, AuthStartRequestSchema, type AuthStartResponse, AuthStartResponseSchema, type BindResponse, BindResponseSchema, type BindSuccessResponse, BindSuccessResponseSchema, buildLogoutSignaturePayload, type ClientTransportEndpoints, ClientTransportEndpointsSchema, type ClientTransports, ClientTransportsSchema, type ContractApproval, type ContractApprovalCapability, ContractApprovalSchema, type LogoutSignaturePayloadInput, type NatsAuthTokenV1, NatsAuthTokenV1Schema, type SentinelCreds, SentinelCredsSchema, type UserParticipantKind, UserParticipantKindSchema, } from "./schemas.js";
|
|
15
15
|
export { buildNatsConnectSignaturePayload, createAuth, type NatsConnectOptions, type TrellisAuth, } from "./session_auth.js";
|
|
16
16
|
export { correctedIatSeconds, estimateMidpointClockOffsetMs } from "./time.js";
|
package/esm/auth/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/auth/mod.ts"],"names":[],"mappings":"AAAA;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K,wBAAwB,EAC7B,8BAA8B,EAC9B,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,sBAAsB,EACtB,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,qBAAqB,EACrB,KAAK,aAAa,EAClB,mBAAmB,EACnB,KAAK,mBAAmB,EACxB,yBAAyB,GAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,gCAAgC,EAChC,UAAU,EACV,KAAK,kBAAkB,EACvB,KAAK,WAAW,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EACL,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,MAAM,EACN,aAAa,EACb,IAAI,GACL,MAAM,YAAY,CAAC"}
|
package/esm/auth/mod.js
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export { buildDeviceActivationPayload, buildDeviceWaitProofInput, createDeviceActivationClient, createDeviceNatsAuthToken, deriveDeviceConfirmationCode, deriveDeviceIdentity, deriveDeviceQrMac, encodeDeviceActivationPayload, getDeviceConnectInfo, parseDeviceActivationPayload, signDeviceWaitRequest, startDeviceActivationRequest, verifyDeviceConfirmationCode, verifyDeviceWaitSignature, waitForDeviceActivation, } from "./device_activation.js";
|
|
11
11
|
export { bindFlow, buildLoginUrl, classifyBrowserAuthError, clearSessionKey, completeSessionLogout, createRpcProof, fetchPortalFlowState, generateSessionKey, getOrCreateSessionKey, getPublicSessionKey, hasSessionKey, isBindSuccessResponse, isRecoverableBrowserAuthError, loadSessionKey, logoutSession, logoutSessionSig, natsConnectSigForIat, portalFlowIdFromUrl, portalProviderLoginUrl, portalRedirectLocation, signBytes, startAuthRequest, submitPortalApproval, } from "./browser.js";
|
|
12
|
-
export { buildProofInput, createProof, verifyProof, } from "./proof.js";
|
|
13
|
-
export { ApprovalRecordViewSchema, AuthCapabilitiesListResponseSchema, AuthCapabilitiesListSchema, AuthCapabilityGroupsDeleteResponseSchema, AuthCapabilityGroupsDeleteSchema, AuthCapabilityGroupsGetResponseSchema, AuthCapabilityGroupsGetSchema, AuthCapabilityGroupsListResponseSchema, AuthCapabilityGroupsListSchema, AuthCapabilityGroupsPutResponseSchema, AuthCapabilityGroupsPutSchema, AuthCatalogIssuesResolveResponseSchema, AuthCatalogIssuesResolveSchema, AuthDeploymentAuthorityAcceptMigrationSchema, AuthDeploymentAuthorityAcceptResponseSchema, AuthDeploymentAuthorityAcceptUpdateSchema, AuthDeploymentAuthorityGetResponseSchema, AuthDeploymentAuthorityGetSchema, AuthDeploymentAuthorityGrantOverridesListResponseSchema, AuthDeploymentAuthorityGrantOverridesListSchema, AuthDeploymentAuthorityGrantOverridesPutSchema, AuthDeploymentAuthorityGrantOverridesRemoveSchema, AuthDeploymentAuthorityGrantOverridesResponseSchema, AuthDeploymentAuthorityListResponseSchema, AuthDeploymentAuthorityListSchema, AuthDeploymentAuthorityPlanResponseSchema, AuthDeploymentAuthorityPlanSchema, AuthDeploymentAuthorityPlansGetResponseSchema, AuthDeploymentAuthorityPlansGetSchema, AuthDeploymentAuthorityPlansListResponseSchema, AuthDeploymentAuthorityPlansListSchema, AuthDeploymentAuthorityReconcileResponseSchema, AuthDeploymentAuthorityReconcileSchema, AuthDeploymentAuthorityRejectResponseSchema, AuthDeploymentAuthorityRejectSchema, AuthDeploymentKindSchema, AuthDeploymentSchema, AuthDeploymentsCreateResponseSchema, AuthDeploymentsCreateSchema, AuthDeploymentsDisableResponseSchema, AuthDeploymentsDisableSchema, AuthDeploymentsEnableResponseSchema, AuthDeploymentsEnableSchema, AuthDeploymentsListResponseSchema, AuthDeploymentsListSchema, AuthDeploymentsRemoveResponseSchema, AuthDeploymentsRemoveSchema, AuthDevicesConnectInfoGetResponseSchema, AuthDevicesConnectInfoGetSchema, AuthDevicesDisableResponseSchema, AuthDevicesDisableSchema, AuthDevicesEnableResponseSchema, AuthDevicesEnableSchema, AuthDevicesListResponseSchema, AuthDevicesListSchema, AuthDevicesProvisionResponseSchema, AuthDevicesProvisionSchema, AuthDevicesRemoveResponseSchema, AuthDevicesRemoveSchema, AuthDeviceUserAuthoritiesApprovedEventSchema, AuthDeviceUserAuthoritiesListResponseSchema, AuthDeviceUserAuthoritiesListSchema, AuthDeviceUserAuthoritiesRequestedEventSchema, AuthDeviceUserAuthoritiesResolvedEventSchema, AuthDeviceUserAuthoritiesReviewRequestedEventSchema, AuthDeviceUserAuthoritiesReviewsDecideResponseSchema, AuthDeviceUserAuthoritiesReviewsDecideSchema, AuthDeviceUserAuthoritiesReviewsListResponseSchema, AuthDeviceUserAuthoritiesReviewsListSchema, AuthDeviceUserAuthoritiesRevokeResponseSchema, AuthDeviceUserAuthoritiesRevokeSchema, AuthenticatedDeviceSchema, AuthIdentitiesListResponseSchema, AuthIdentitiesListSchema, AuthIdentityGrantsListResponseSchema, AuthIdentityGrantsListSchema, AuthIdentityGrantsRevokeResponseSchema, AuthIdentityGrantsRevokeSchema, AuthPortalsGetResponseSchema, AuthPortalsGetSchema, AuthPortalsListResponseSchema, AuthPortalsListSchema, AuthPortalsLoginSettingsGetSchema, AuthPortalsLoginSettingsResponseSchema, AuthPortalsLoginSettingsUpdateSchema, AuthPortalsPutResponseSchema, AuthPortalsPutSchema, AuthPortalsRemoveResponseSchema, AuthPortalsRemoveSchema, AuthPortalsRoutesPutResponseSchema, AuthPortalsRoutesPutSchema, AuthPortalsRoutesRemoveResponseSchema, AuthPortalsRoutesRemoveSchema, AuthRequestsValidateResponseSchema, AuthRequestsValidateSchema, AuthResolveDeviceUserAuthoritiesProgressSchema, AuthResolveDeviceUserAuthoritiesResponseSchema, AuthResolveDeviceUserAuthoritiesSchema, AuthServiceInstancesDisableResponseSchema, AuthServiceInstancesDisableSchema, AuthServiceInstancesEnableResponseSchema, AuthServiceInstancesEnableSchema, AuthServiceInstancesListResponseSchema, AuthServiceInstancesListSchema, AuthServiceInstancesProvisionResponseSchema, AuthServiceInstancesProvisionSchema, AuthServiceInstancesRemoveResponseSchema, AuthServiceInstancesRemoveSchema, AuthSessionsMeResponseSchema, AuthSessionsMeSchema, AuthUserIdentitiesListResponseSchema, AuthUserIdentitiesListSchema, AuthUserIdentitiesUnlinkResponseSchema, AuthUserIdentitiesUnlinkSchema, AuthUsersAccountFlowCreateResponseSchema, AuthUsersCreateResponseSchema, AuthUsersCreateSchema, AuthUsersGetResponseSchema, AuthUsersGetSchema, AuthUsersIdentityLinkCreateSchema, AuthUsersListResponseSchema, AuthUsersListSchema, AuthUsersPasswordChangeResponseSchema, AuthUsersPasswordChangeSchema, AuthUsersPasswordResetCreateSchema, AuthUsersResolveResponseSchema, AuthUsersResolveSchema, AuthUsersUpdateResponseSchema, AuthUsersUpdateSchema, CallerViewSchema, ContractAnalysisSchema, ContractAnalysisSummarySchema, DeploymentAuthorityCapabilityNeedSchema, DeploymentAuthorityCapabilitySchema, DeploymentAuthorityContractNeedSchema, DeploymentAuthorityGrantOverrideSchema, DeploymentAuthorityKindSchema, DeploymentAuthorityMaterializationSchema, DeploymentAuthorityMigrationSchema, DeploymentAuthorityNeedsSchema, DeploymentAuthorityPlanBreakingChangeSchema, DeploymentAuthorityPlanSchema, DeploymentAuthorityProposalSchema, DeploymentAuthorityReconciliationStatusSchema, DeploymentAuthorityResourceKindSchema, DeploymentAuthorityResourceNeedSchema, DeploymentAuthorityResourceSchema, DeploymentAuthoritySchema, DeploymentAuthoritySurfaceActionSchema, DeploymentAuthoritySurfaceKindSchema, DeploymentAuthoritySurfaceNeedSchema, DeploymentAuthoritySurfaceSchema, DeploymentAuthorityUpdateSchema, DeploymentPortalRouteSchema, DeploymentResourceBindingSchema, DeviceActivationActorSchema, DeviceActivationRecordSchema, DeviceActivationReviewSchema, DeviceConnectInfoSchema, DeviceDeploymentSchema, DeviceSchema, DigestSchema, FlowRegistrationAvailabilitySchema, IdentityGrantViewSchema, ImplementationOfferSchema, LoginPortalRecordSchema, LoginPortalRouteSchema, LoginPortalSettingsSchema, LoginPortalSummarySchema, MaterializedAuthorityCapabilityGrantSchema, MaterializedAuthorityGrantsSchema, MaterializedAuthorityNatsGrantSchema, MaterializedAuthorityNatsGrantSourceSchema, MaterializedAuthoritySurfaceGrantSchema, OpenObjectSchema, ParticipantKindSchema, PortalFlowStateSchema, ResolvedUserLabelSchema, ServiceDeploymentSchema, ServiceInstanceSchema, UserViewSchema, WaitForDeviceActivationRequestSchema, WaitForDeviceActivationResponseSchema, } from "./protocol.js";
|
|
12
|
+
export { buildEventProofInput, buildProofInput, createEventProof, createProof, verifyEventProof, verifyProof, } from "./proof.js";
|
|
13
|
+
export { ApprovalRecordViewSchema, AuthCapabilitiesListResponseSchema, AuthCapabilitiesListSchema, AuthCapabilityGroupsDeleteResponseSchema, AuthCapabilityGroupsDeleteSchema, AuthCapabilityGroupsGetResponseSchema, AuthCapabilityGroupsGetSchema, AuthCapabilityGroupsListResponseSchema, AuthCapabilityGroupsListSchema, AuthCapabilityGroupsPutResponseSchema, AuthCapabilityGroupsPutSchema, AuthCatalogIssuesResolveResponseSchema, AuthCatalogIssuesResolveSchema, AuthDeploymentAuthorityAcceptMigrationSchema, AuthDeploymentAuthorityAcceptResponseSchema, AuthDeploymentAuthorityAcceptUpdateSchema, AuthDeploymentAuthorityGetResponseSchema, AuthDeploymentAuthorityGetSchema, AuthDeploymentAuthorityGrantOverridesListResponseSchema, AuthDeploymentAuthorityGrantOverridesListSchema, AuthDeploymentAuthorityGrantOverridesPutSchema, AuthDeploymentAuthorityGrantOverridesRemoveSchema, AuthDeploymentAuthorityGrantOverridesResponseSchema, AuthDeploymentAuthorityListResponseSchema, AuthDeploymentAuthorityListSchema, AuthDeploymentAuthorityPlanResponseSchema, AuthDeploymentAuthorityPlanSchema, AuthDeploymentAuthorityPlansGetResponseSchema, AuthDeploymentAuthorityPlansGetSchema, AuthDeploymentAuthorityPlansListResponseSchema, AuthDeploymentAuthorityPlansListSchema, AuthDeploymentAuthorityReconcileResponseSchema, AuthDeploymentAuthorityReconcileSchema, AuthDeploymentAuthorityRejectResponseSchema, AuthDeploymentAuthorityRejectSchema, AuthDeploymentKindSchema, AuthDeploymentSchema, AuthDeploymentsCreateResponseSchema, AuthDeploymentsCreateSchema, AuthDeploymentsDisableResponseSchema, AuthDeploymentsDisableSchema, AuthDeploymentsEnableResponseSchema, AuthDeploymentsEnableSchema, AuthDeploymentsListResponseSchema, AuthDeploymentsListSchema, AuthDeploymentsRemoveResponseSchema, AuthDeploymentsRemoveSchema, AuthDevicesConnectInfoGetResponseSchema, AuthDevicesConnectInfoGetSchema, AuthDevicesDisableResponseSchema, AuthDevicesDisableSchema, AuthDevicesEnableResponseSchema, AuthDevicesEnableSchema, AuthDevicesListResponseSchema, AuthDevicesListSchema, AuthDevicesProvisionResponseSchema, AuthDevicesProvisionSchema, AuthDevicesRemoveResponseSchema, AuthDevicesRemoveSchema, AuthDeviceUserAuthoritiesApprovedEventSchema, AuthDeviceUserAuthoritiesListResponseSchema, AuthDeviceUserAuthoritiesListSchema, AuthDeviceUserAuthoritiesRequestedEventSchema, AuthDeviceUserAuthoritiesResolvedEventSchema, AuthDeviceUserAuthoritiesReviewRequestedEventSchema, AuthDeviceUserAuthoritiesReviewsDecideResponseSchema, AuthDeviceUserAuthoritiesReviewsDecideSchema, AuthDeviceUserAuthoritiesReviewsListResponseSchema, AuthDeviceUserAuthoritiesReviewsListSchema, AuthDeviceUserAuthoritiesRevokeResponseSchema, AuthDeviceUserAuthoritiesRevokeSchema, AuthenticatedDeviceSchema, AuthEventConsumerBindingSchema, AuthEventConsumersListResponseSchema, AuthEventConsumersListSchema, AuthEventsValidateResponseSchema, AuthEventsValidateSchema, AuthIdentitiesListResponseSchema, AuthIdentitiesListSchema, AuthIdentityGrantsListResponseSchema, AuthIdentityGrantsListSchema, AuthIdentityGrantsRevokeResponseSchema, AuthIdentityGrantsRevokeSchema, AuthPortalsGetResponseSchema, AuthPortalsGetSchema, AuthPortalsListResponseSchema, AuthPortalsListSchema, AuthPortalsLoginSettingsGetSchema, AuthPortalsLoginSettingsResponseSchema, AuthPortalsLoginSettingsUpdateSchema, AuthPortalsPutResponseSchema, AuthPortalsPutSchema, AuthPortalsRemoveResponseSchema, AuthPortalsRemoveSchema, AuthPortalsRoutesPutResponseSchema, AuthPortalsRoutesPutSchema, AuthPortalsRoutesRemoveResponseSchema, AuthPortalsRoutesRemoveSchema, AuthRequestsValidateResponseSchema, AuthRequestsValidateSchema, AuthResolveDeviceUserAuthoritiesProgressSchema, AuthResolveDeviceUserAuthoritiesResponseSchema, AuthResolveDeviceUserAuthoritiesSchema, AuthServiceInstancesDisableResponseSchema, AuthServiceInstancesDisableSchema, AuthServiceInstancesEnableResponseSchema, AuthServiceInstancesEnableSchema, AuthServiceInstancesListResponseSchema, AuthServiceInstancesListSchema, AuthServiceInstancesProvisionResponseSchema, AuthServiceInstancesProvisionSchema, AuthServiceInstancesRemoveResponseSchema, AuthServiceInstancesRemoveSchema, AuthSessionsMeResponseSchema, AuthSessionsMeSchema, AuthUserIdentitiesListResponseSchema, AuthUserIdentitiesListSchema, AuthUserIdentitiesUnlinkResponseSchema, AuthUserIdentitiesUnlinkSchema, AuthUsersAccountFlowCreateResponseSchema, AuthUsersCreateResponseSchema, AuthUsersCreateSchema, AuthUsersGetResponseSchema, AuthUsersGetSchema, AuthUsersIdentityLinkCreateSchema, AuthUsersListResponseSchema, AuthUsersListSchema, AuthUsersPasswordChangeResponseSchema, AuthUsersPasswordChangeSchema, AuthUsersPasswordResetCreateSchema, AuthUsersResolveResponseSchema, AuthUsersResolveSchema, AuthUsersUpdateResponseSchema, AuthUsersUpdateSchema, CallerViewSchema, ContractAnalysisSchema, ContractAnalysisSummarySchema, DeploymentAuthorityCapabilityNeedSchema, DeploymentAuthorityCapabilitySchema, DeploymentAuthorityContractNeedSchema, DeploymentAuthorityGrantOverrideSchema, DeploymentAuthorityKindSchema, DeploymentAuthorityMaterializationSchema, DeploymentAuthorityMigrationSchema, DeploymentAuthorityNeedsSchema, DeploymentAuthorityPlanBreakingChangeSchema, DeploymentAuthorityPlanSchema, DeploymentAuthorityProposalSchema, DeploymentAuthorityReconciliationStatusSchema, DeploymentAuthorityResourceKindSchema, DeploymentAuthorityResourceNeedSchema, DeploymentAuthorityResourceSchema, DeploymentAuthoritySchema, DeploymentAuthoritySurfaceActionSchema, DeploymentAuthoritySurfaceKindSchema, DeploymentAuthoritySurfaceNeedSchema, DeploymentAuthoritySurfaceSchema, DeploymentAuthorityUpdateSchema, DeploymentPortalRouteSchema, DeploymentResourceBindingSchema, DeviceActivationActorSchema, DeviceActivationRecordSchema, DeviceActivationReviewSchema, DeviceConnectInfoSchema, DeviceDeploymentSchema, DeviceSchema, DigestSchema, FlowRegistrationAvailabilitySchema, IdentityGrantViewSchema, ImplementationOfferSchema, LoginPortalRecordSchema, LoginPortalRouteSchema, LoginPortalSettingsSchema, LoginPortalSummarySchema, MaterializedAuthorityCapabilityGrantSchema, MaterializedAuthorityGrantsSchema, MaterializedAuthorityNatsGrantSchema, MaterializedAuthorityNatsGrantSourceSchema, MaterializedAuthoritySurfaceGrantSchema, OpenObjectSchema, ParticipantKindSchema, PortalFlowStateSchema, ResolvedUserLabelSchema, ServiceDeploymentSchema, ServiceInstanceSchema, UserViewSchema, WaitForDeviceActivationRequestSchema, WaitForDeviceActivationResponseSchema, } from "./protocol.js";
|
|
14
14
|
export { approvalCapabilityKeys, ApprovalDecisionSchema, AuthLogoutRequestSchema, AuthLogoutResponseModeSchema, AuthLogoutResponseSchema, AuthStartFlowResponseSchema, AuthStartRequestSchema, AuthStartResponseSchema, BindResponseSchema, BindSuccessResponseSchema, buildLogoutSignaturePayload, ClientTransportEndpointsSchema, ClientTransportsSchema, ContractApprovalSchema, NatsAuthTokenV1Schema, SentinelCredsSchema, UserParticipantKindSchema, } from "./schemas.js";
|
|
15
15
|
export { buildNatsConnectSignaturePayload, createAuth, } from "./session_auth.js";
|
|
16
16
|
export { correctedIatSeconds, estimateMidpointClockOffsetMs } from "./time.js";
|
package/esm/auth/proof.d.ts
CHANGED
|
@@ -5,7 +5,17 @@ export type ProofParams = {
|
|
|
5
5
|
iat: number;
|
|
6
6
|
requestId: string;
|
|
7
7
|
};
|
|
8
|
+
export type EventProofParams = {
|
|
9
|
+
sessionKey: string;
|
|
10
|
+
subject: string;
|
|
11
|
+
payloadHash: Uint8Array;
|
|
12
|
+
eventId: string;
|
|
13
|
+
eventTime: string;
|
|
14
|
+
};
|
|
8
15
|
export declare function buildProofInput(sessionKey: string, subject: string, payloadHash: Uint8Array, iat: number, requestId: string): Uint8Array;
|
|
16
|
+
export declare function buildEventProofInput(sessionKey: string, subject: string, payloadHash: Uint8Array, eventId: string, eventTime: string): Uint8Array;
|
|
9
17
|
export declare function createProof(privateKey: CryptoKey, params: ProofParams): Promise<string>;
|
|
18
|
+
export declare function createEventProof(privateKey: CryptoKey, params: EventProofParams): Promise<string>;
|
|
10
19
|
export declare function verifyProof(publicSessionKey: string, params: ProofParams, proofBase64url: string): Promise<boolean>;
|
|
20
|
+
export declare function verifyEventProof(publicSessionKey: string, params: EventProofParams, proofBase64url: string): Promise<boolean>;
|
|
11
21
|
//# sourceMappingURL=proof.d.ts.map
|
package/esm/auth/proof.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proof.d.ts","sourceRoot":"","sources":["../../src/auth/proof.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,UAAU,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;
|
|
1
|
+
{"version":3,"file":"proof.d.ts","sourceRoot":"","sources":["../../src/auth/proof.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,WA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1
|
import { base64urlDecode, base64urlEncode, sha256, toArrayBuffer, utf8, } from "./utils.js";
|
|
2
2
|
import { importEd25519PublicKeyFromBase64url } from "./keys.js";
|
|
3
3
|
import { AsyncResult } from "@qlever-llc/result";
|
|
4
|
+
const EVENT_PROOF_DOMAIN = utf8("trellis-event-proof-v1");
|
|
4
5
|
function appendLengthPrefixed(buf, view, offset, value) {
|
|
5
6
|
view.setUint32(offset, value.length);
|
|
6
|
-
offset
|
|
7
|
-
buf.set(value,
|
|
8
|
-
return
|
|
7
|
+
const valueOffset = offset + 4;
|
|
8
|
+
buf.set(value, valueOffset);
|
|
9
|
+
return valueOffset + value.length;
|
|
9
10
|
}
|
|
10
11
|
export function buildProofInput(sessionKey, subject, payloadHash, iat, requestId) {
|
|
11
12
|
const sessionKeyBytes = utf8(sessionKey);
|
|
@@ -31,12 +32,39 @@ export function buildProofInput(sessionKey, subject, payloadHash, iat, requestId
|
|
|
31
32
|
appendLengthPrefixed(buf, view, offset, requestIdBytes);
|
|
32
33
|
return buf;
|
|
33
34
|
}
|
|
35
|
+
export function buildEventProofInput(sessionKey, subject, payloadHash, eventId, eventTime) {
|
|
36
|
+
const sessionKeyBytes = utf8(sessionKey);
|
|
37
|
+
const subjectBytes = utf8(subject);
|
|
38
|
+
const eventIdBytes = utf8(eventId);
|
|
39
|
+
const eventTimeBytes = utf8(eventTime);
|
|
40
|
+
const buf = new Uint8Array(4 + EVENT_PROOF_DOMAIN.length +
|
|
41
|
+
4 + sessionKeyBytes.length +
|
|
42
|
+
4 + subjectBytes.length +
|
|
43
|
+
4 + payloadHash.length +
|
|
44
|
+
4 + eventIdBytes.length +
|
|
45
|
+
4 + eventTimeBytes.length);
|
|
46
|
+
const view = new DataView(buf.buffer);
|
|
47
|
+
let offset = 0;
|
|
48
|
+
offset = appendLengthPrefixed(buf, view, offset, EVENT_PROOF_DOMAIN);
|
|
49
|
+
offset = appendLengthPrefixed(buf, view, offset, sessionKeyBytes);
|
|
50
|
+
offset = appendLengthPrefixed(buf, view, offset, subjectBytes);
|
|
51
|
+
offset = appendLengthPrefixed(buf, view, offset, payloadHash);
|
|
52
|
+
offset = appendLengthPrefixed(buf, view, offset, eventIdBytes);
|
|
53
|
+
appendLengthPrefixed(buf, view, offset, eventTimeBytes);
|
|
54
|
+
return buf;
|
|
55
|
+
}
|
|
34
56
|
export async function createProof(privateKey, params) {
|
|
35
57
|
const input = buildProofInput(params.sessionKey, params.subject, params.payloadHash, params.iat, params.requestId);
|
|
36
58
|
const digest = await sha256(input);
|
|
37
59
|
const sig = await crypto.subtle.sign({ name: "Ed25519" }, privateKey, toArrayBuffer(digest));
|
|
38
60
|
return base64urlEncode(new Uint8Array(sig));
|
|
39
61
|
}
|
|
62
|
+
export async function createEventProof(privateKey, params) {
|
|
63
|
+
const input = buildEventProofInput(params.sessionKey, params.subject, params.payloadHash, params.eventId, params.eventTime);
|
|
64
|
+
const digest = await sha256(input);
|
|
65
|
+
const sig = await crypto.subtle.sign({ name: "Ed25519" }, privateKey, toArrayBuffer(digest));
|
|
66
|
+
return base64urlEncode(new Uint8Array(sig));
|
|
67
|
+
}
|
|
40
68
|
export async function verifyProof(publicSessionKey, params, proofBase64url) {
|
|
41
69
|
const result = await AsyncResult.try(async () => {
|
|
42
70
|
const input = buildProofInput(params.sessionKey, params.subject, params.payloadHash, params.iat, params.requestId);
|
|
@@ -47,3 +75,13 @@ export async function verifyProof(publicSessionKey, params, proofBase64url) {
|
|
|
47
75
|
});
|
|
48
76
|
return result.unwrapOr(false);
|
|
49
77
|
}
|
|
78
|
+
export async function verifyEventProof(publicSessionKey, params, proofBase64url) {
|
|
79
|
+
const result = await AsyncResult.try(async () => {
|
|
80
|
+
const input = buildEventProofInput(params.sessionKey, params.subject, params.payloadHash, params.eventId, params.eventTime);
|
|
81
|
+
const digest = await sha256(input);
|
|
82
|
+
const signature = base64urlDecode(proofBase64url);
|
|
83
|
+
const pub = await importEd25519PublicKeyFromBase64url(publicSessionKey);
|
|
84
|
+
return crypto.subtle.verify({ name: "Ed25519" }, pub, toArrayBuffer(signature), toArrayBuffer(digest));
|
|
85
|
+
});
|
|
86
|
+
return result.unwrapOr(false);
|
|
87
|
+
}
|
package/esm/auth/protocol.d.ts
CHANGED
|
@@ -41,6 +41,10 @@ export declare const ServiceInstanceSchema: Type.TObject<{
|
|
|
41
41
|
payload: Type.TObject<{
|
|
42
42
|
schema: Type.TString;
|
|
43
43
|
}>;
|
|
44
|
+
update: Type.TOptional<Type.TObject<{
|
|
45
|
+
schema: Type.TString;
|
|
46
|
+
}>>;
|
|
47
|
+
updatesPrefix: Type.TOptional<Type.TString>;
|
|
44
48
|
result: Type.TOptional<Type.TObject<{
|
|
45
49
|
schema: Type.TString;
|
|
46
50
|
}>>;
|
|
@@ -51,7 +55,6 @@ export declare const ServiceInstanceSchema: Type.TObject<{
|
|
|
51
55
|
progress: Type.TBoolean;
|
|
52
56
|
logs: Type.TBoolean;
|
|
53
57
|
dlq: Type.TBoolean;
|
|
54
|
-
concurrency: Type.TInteger;
|
|
55
58
|
keyConcurrency: Type.TOptional<Type.TObject<{
|
|
56
59
|
key: Type.TArray<Type.TString>;
|
|
57
60
|
maxActive: Type.TInteger;
|
|
@@ -70,8 +73,7 @@ export declare const ServiceInstanceSchema: Type.TObject<{
|
|
|
70
73
|
consumerName: Type.TString;
|
|
71
74
|
filterSubjects: Type.TArray<Type.TString>;
|
|
72
75
|
replay: Type.TUnion<[Type.TLiteral<"new">, Type.TLiteral<"all">]>;
|
|
73
|
-
ordering: Type.TLiteral<"strict">;
|
|
74
|
-
concurrency: Type.TInteger;
|
|
76
|
+
ordering: Type.TUnion<[Type.TLiteral<"strict">, Type.TLiteral<"parallel">]>;
|
|
75
77
|
ackWaitMs: Type.TInteger;
|
|
76
78
|
maxDeliver: Type.TInteger;
|
|
77
79
|
backoffMs: Type.TArray<Type.TInteger>;
|
|
@@ -927,6 +929,44 @@ export declare const AuthDeploymentAuthorityListResponseSchema: Type.TObject<{
|
|
|
927
929
|
nextOffset: Type.TOptional<Type.TInteger>;
|
|
928
930
|
}>;
|
|
929
931
|
export type AuthDeploymentAuthorityListResponse = StaticDecode<typeof AuthDeploymentAuthorityListResponseSchema>;
|
|
932
|
+
export declare const AuthEventConsumerBindingSchema: Type.TObject<{
|
|
933
|
+
deploymentId: Type.TString;
|
|
934
|
+
group: Type.TString;
|
|
935
|
+
stream: Type.TString;
|
|
936
|
+
consumerName: Type.TString;
|
|
937
|
+
filterSubjects: Type.TArray<Type.TString>;
|
|
938
|
+
replay: Type.TString;
|
|
939
|
+
ordering: Type.TString;
|
|
940
|
+
ackWaitMs: Type.TInteger;
|
|
941
|
+
maxDeliver: Type.TInteger;
|
|
942
|
+
backoffMs: Type.TArray<Type.TInteger>;
|
|
943
|
+
}>;
|
|
944
|
+
export type AuthEventConsumerBinding = StaticDecode<typeof AuthEventConsumerBindingSchema>;
|
|
945
|
+
export declare const AuthEventConsumersListSchema: Type.TObject<{
|
|
946
|
+
deploymentId: Type.TOptional<Type.TString>;
|
|
947
|
+
offset: Type.TOptional<Type.TInteger>;
|
|
948
|
+
limit: Type.TInteger;
|
|
949
|
+
}>;
|
|
950
|
+
export type AuthEventConsumersListInput = StaticDecode<typeof AuthEventConsumersListSchema>;
|
|
951
|
+
export declare const AuthEventConsumersListResponseSchema: Type.TObject<{
|
|
952
|
+
entries: Type.TArray<Type.TObject<{
|
|
953
|
+
deploymentId: Type.TString;
|
|
954
|
+
group: Type.TString;
|
|
955
|
+
stream: Type.TString;
|
|
956
|
+
consumerName: Type.TString;
|
|
957
|
+
filterSubjects: Type.TArray<Type.TString>;
|
|
958
|
+
replay: Type.TString;
|
|
959
|
+
ordering: Type.TString;
|
|
960
|
+
ackWaitMs: Type.TInteger;
|
|
961
|
+
maxDeliver: Type.TInteger;
|
|
962
|
+
backoffMs: Type.TArray<Type.TInteger>;
|
|
963
|
+
}>>;
|
|
964
|
+
count: Type.TInteger;
|
|
965
|
+
offset: Type.TInteger;
|
|
966
|
+
limit: Type.TInteger;
|
|
967
|
+
nextOffset: Type.TOptional<Type.TInteger>;
|
|
968
|
+
}>;
|
|
969
|
+
export type AuthEventConsumersListResponse = StaticDecode<typeof AuthEventConsumersListResponseSchema>;
|
|
930
970
|
export declare const AuthDeploymentAuthorityGetSchema: Type.TObject<{
|
|
931
971
|
deploymentId: Type.TString;
|
|
932
972
|
}>;
|
|
@@ -1952,6 +1992,10 @@ export declare const AuthServiceInstancesProvisionResponseSchema: Type.TObject<{
|
|
|
1952
1992
|
payload: Type.TObject<{
|
|
1953
1993
|
schema: Type.TString;
|
|
1954
1994
|
}>;
|
|
1995
|
+
update: Type.TOptional<Type.TObject<{
|
|
1996
|
+
schema: Type.TString;
|
|
1997
|
+
}>>;
|
|
1998
|
+
updatesPrefix: Type.TOptional<Type.TString>;
|
|
1955
1999
|
result: Type.TOptional<Type.TObject<{
|
|
1956
2000
|
schema: Type.TString;
|
|
1957
2001
|
}>>;
|
|
@@ -1962,7 +2006,6 @@ export declare const AuthServiceInstancesProvisionResponseSchema: Type.TObject<{
|
|
|
1962
2006
|
progress: Type.TBoolean;
|
|
1963
2007
|
logs: Type.TBoolean;
|
|
1964
2008
|
dlq: Type.TBoolean;
|
|
1965
|
-
concurrency: Type.TInteger;
|
|
1966
2009
|
keyConcurrency: Type.TOptional<Type.TObject<{
|
|
1967
2010
|
key: Type.TArray<Type.TString>;
|
|
1968
2011
|
maxActive: Type.TInteger;
|
|
@@ -1981,8 +2024,7 @@ export declare const AuthServiceInstancesProvisionResponseSchema: Type.TObject<{
|
|
|
1981
2024
|
consumerName: Type.TString;
|
|
1982
2025
|
filterSubjects: Type.TArray<Type.TString>;
|
|
1983
2026
|
replay: Type.TUnion<[Type.TLiteral<"new">, Type.TLiteral<"all">]>;
|
|
1984
|
-
ordering: Type.TLiteral<"strict">;
|
|
1985
|
-
concurrency: Type.TInteger;
|
|
2027
|
+
ordering: Type.TUnion<[Type.TLiteral<"strict">, Type.TLiteral<"parallel">]>;
|
|
1986
2028
|
ackWaitMs: Type.TInteger;
|
|
1987
2029
|
maxDeliver: Type.TInteger;
|
|
1988
2030
|
backoffMs: Type.TArray<Type.TInteger>;
|
|
@@ -2029,6 +2071,10 @@ export declare const AuthServiceInstancesListResponseSchema: Type.TObject<{
|
|
|
2029
2071
|
payload: Type.TObject<{
|
|
2030
2072
|
schema: Type.TString;
|
|
2031
2073
|
}>;
|
|
2074
|
+
update: Type.TOptional<Type.TObject<{
|
|
2075
|
+
schema: Type.TString;
|
|
2076
|
+
}>>;
|
|
2077
|
+
updatesPrefix: Type.TOptional<Type.TString>;
|
|
2032
2078
|
result: Type.TOptional<Type.TObject<{
|
|
2033
2079
|
schema: Type.TString;
|
|
2034
2080
|
}>>;
|
|
@@ -2039,7 +2085,6 @@ export declare const AuthServiceInstancesListResponseSchema: Type.TObject<{
|
|
|
2039
2085
|
progress: Type.TBoolean;
|
|
2040
2086
|
logs: Type.TBoolean;
|
|
2041
2087
|
dlq: Type.TBoolean;
|
|
2042
|
-
concurrency: Type.TInteger;
|
|
2043
2088
|
keyConcurrency: Type.TOptional<Type.TObject<{
|
|
2044
2089
|
key: Type.TArray<Type.TString>;
|
|
2045
2090
|
maxActive: Type.TInteger;
|
|
@@ -2058,8 +2103,7 @@ export declare const AuthServiceInstancesListResponseSchema: Type.TObject<{
|
|
|
2058
2103
|
consumerName: Type.TString;
|
|
2059
2104
|
filterSubjects: Type.TArray<Type.TString>;
|
|
2060
2105
|
replay: Type.TUnion<[Type.TLiteral<"new">, Type.TLiteral<"all">]>;
|
|
2061
|
-
ordering: Type.TLiteral<"strict">;
|
|
2062
|
-
concurrency: Type.TInteger;
|
|
2106
|
+
ordering: Type.TUnion<[Type.TLiteral<"strict">, Type.TLiteral<"parallel">]>;
|
|
2063
2107
|
ackWaitMs: Type.TInteger;
|
|
2064
2108
|
maxDeliver: Type.TInteger;
|
|
2065
2109
|
backoffMs: Type.TArray<Type.TInteger>;
|
|
@@ -2107,6 +2151,10 @@ export declare const AuthServiceInstancesDisableResponseSchema: Type.TObject<{
|
|
|
2107
2151
|
payload: Type.TObject<{
|
|
2108
2152
|
schema: Type.TString;
|
|
2109
2153
|
}>;
|
|
2154
|
+
update: Type.TOptional<Type.TObject<{
|
|
2155
|
+
schema: Type.TString;
|
|
2156
|
+
}>>;
|
|
2157
|
+
updatesPrefix: Type.TOptional<Type.TString>;
|
|
2110
2158
|
result: Type.TOptional<Type.TObject<{
|
|
2111
2159
|
schema: Type.TString;
|
|
2112
2160
|
}>>;
|
|
@@ -2117,7 +2165,6 @@ export declare const AuthServiceInstancesDisableResponseSchema: Type.TObject<{
|
|
|
2117
2165
|
progress: Type.TBoolean;
|
|
2118
2166
|
logs: Type.TBoolean;
|
|
2119
2167
|
dlq: Type.TBoolean;
|
|
2120
|
-
concurrency: Type.TInteger;
|
|
2121
2168
|
keyConcurrency: Type.TOptional<Type.TObject<{
|
|
2122
2169
|
key: Type.TArray<Type.TString>;
|
|
2123
2170
|
maxActive: Type.TInteger;
|
|
@@ -2136,8 +2183,7 @@ export declare const AuthServiceInstancesDisableResponseSchema: Type.TObject<{
|
|
|
2136
2183
|
consumerName: Type.TString;
|
|
2137
2184
|
filterSubjects: Type.TArray<Type.TString>;
|
|
2138
2185
|
replay: Type.TUnion<[Type.TLiteral<"new">, Type.TLiteral<"all">]>;
|
|
2139
|
-
ordering: Type.TLiteral<"strict">;
|
|
2140
|
-
concurrency: Type.TInteger;
|
|
2186
|
+
ordering: Type.TUnion<[Type.TLiteral<"strict">, Type.TLiteral<"parallel">]>;
|
|
2141
2187
|
ackWaitMs: Type.TInteger;
|
|
2142
2188
|
maxDeliver: Type.TInteger;
|
|
2143
2189
|
backoffMs: Type.TArray<Type.TInteger>;
|
|
@@ -2181,6 +2227,10 @@ export declare const AuthServiceInstancesEnableResponseSchema: Type.TObject<{
|
|
|
2181
2227
|
payload: Type.TObject<{
|
|
2182
2228
|
schema: Type.TString;
|
|
2183
2229
|
}>;
|
|
2230
|
+
update: Type.TOptional<Type.TObject<{
|
|
2231
|
+
schema: Type.TString;
|
|
2232
|
+
}>>;
|
|
2233
|
+
updatesPrefix: Type.TOptional<Type.TString>;
|
|
2184
2234
|
result: Type.TOptional<Type.TObject<{
|
|
2185
2235
|
schema: Type.TString;
|
|
2186
2236
|
}>>;
|
|
@@ -2191,7 +2241,6 @@ export declare const AuthServiceInstancesEnableResponseSchema: Type.TObject<{
|
|
|
2191
2241
|
progress: Type.TBoolean;
|
|
2192
2242
|
logs: Type.TBoolean;
|
|
2193
2243
|
dlq: Type.TBoolean;
|
|
2194
|
-
concurrency: Type.TInteger;
|
|
2195
2244
|
keyConcurrency: Type.TOptional<Type.TObject<{
|
|
2196
2245
|
key: Type.TArray<Type.TString>;
|
|
2197
2246
|
maxActive: Type.TInteger;
|
|
@@ -2210,8 +2259,7 @@ export declare const AuthServiceInstancesEnableResponseSchema: Type.TObject<{
|
|
|
2210
2259
|
consumerName: Type.TString;
|
|
2211
2260
|
filterSubjects: Type.TArray<Type.TString>;
|
|
2212
2261
|
replay: Type.TUnion<[Type.TLiteral<"new">, Type.TLiteral<"all">]>;
|
|
2213
|
-
ordering: Type.TLiteral<"strict">;
|
|
2214
|
-
concurrency: Type.TInteger;
|
|
2262
|
+
ordering: Type.TUnion<[Type.TLiteral<"strict">, Type.TLiteral<"parallel">]>;
|
|
2215
2263
|
ackWaitMs: Type.TInteger;
|
|
2216
2264
|
maxDeliver: Type.TInteger;
|
|
2217
2265
|
backoffMs: Type.TArray<Type.TInteger>;
|
|
@@ -2269,7 +2317,6 @@ export declare const ContractAnalysisJobsQueueSchema: Type.TObject<{
|
|
|
2269
2317
|
progress: Type.TBoolean;
|
|
2270
2318
|
logs: Type.TBoolean;
|
|
2271
2319
|
dlq: Type.TBoolean;
|
|
2272
|
-
concurrency: Type.TNumber;
|
|
2273
2320
|
}>;
|
|
2274
2321
|
export declare const ContractAnalysisRpcMethodSchema: Type.TObject<{
|
|
2275
2322
|
key: Type.TString;
|
|
@@ -2407,7 +2454,6 @@ export declare const ContractAnalysisSchema: Type.TObject<{
|
|
|
2407
2454
|
progress: Type.TBoolean;
|
|
2408
2455
|
logs: Type.TBoolean;
|
|
2409
2456
|
dlq: Type.TBoolean;
|
|
2410
|
-
concurrency: Type.TNumber;
|
|
2411
2457
|
}>>;
|
|
2412
2458
|
}>;
|
|
2413
2459
|
}>;
|
|
@@ -2436,6 +2482,14 @@ export declare const AuthRequestsValidateSchema: Type.TObject<{
|
|
|
2436
2482
|
requestId: Type.TString;
|
|
2437
2483
|
capabilities: Type.TOptional<Type.TArray<Type.TString>>;
|
|
2438
2484
|
}>;
|
|
2485
|
+
export declare const AuthEventsValidateSchema: Type.TObject<{
|
|
2486
|
+
sessionKey: Type.TString;
|
|
2487
|
+
proof: Type.TString;
|
|
2488
|
+
subject: Type.TString;
|
|
2489
|
+
payloadHash: Type.TString;
|
|
2490
|
+
eventId: Type.TString;
|
|
2491
|
+
eventTime: Type.TString;
|
|
2492
|
+
}>;
|
|
2439
2493
|
export declare const AuthenticatedServiceSchema: Type.TObject<{
|
|
2440
2494
|
type: Type.TLiteral<"service">;
|
|
2441
2495
|
id: Type.TString;
|
|
@@ -2552,6 +2606,57 @@ export declare const AuthRequestsValidateResponseSchema: Type.TObject<{
|
|
|
2552
2606
|
capabilities: Type.TArray<Type.TString>;
|
|
2553
2607
|
}>]>;
|
|
2554
2608
|
}>;
|
|
2609
|
+
export declare const AuthEventValidationStatusSchema: Type.TUnion<[Type.TLiteral<"verified">, Type.TLiteral<"missing-session">, Type.TLiteral<"invalid-signature">, Type.TLiteral<"subject-denied">, Type.TLiteral<"outside-session-window">]>;
|
|
2610
|
+
export declare const AuthEventPublisherSchema: Type.TObject<{
|
|
2611
|
+
kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"user">]>;
|
|
2612
|
+
deploymentId: Type.TOptional<Type.TString>;
|
|
2613
|
+
instanceId: Type.TOptional<Type.TString>;
|
|
2614
|
+
contractId: Type.TOptional<Type.TString>;
|
|
2615
|
+
contractDigest: Type.TOptional<Type.TString>;
|
|
2616
|
+
sessionStatus: Type.TUnion<[Type.TLiteral<"active">, Type.TLiteral<"ended">, Type.TLiteral<"revoked">, Type.TLiteral<"expired">]>;
|
|
2617
|
+
}>;
|
|
2618
|
+
export declare const AuthEventsValidateResponseSchema: Type.TObject<{
|
|
2619
|
+
allowed: Type.TBoolean;
|
|
2620
|
+
status: Type.TUnion<[Type.TLiteral<"verified">, Type.TLiteral<"missing-session">, Type.TLiteral<"invalid-signature">, Type.TLiteral<"subject-denied">, Type.TLiteral<"outside-session-window">]>;
|
|
2621
|
+
caller: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
2622
|
+
type: Type.TLiteral<"user">;
|
|
2623
|
+
participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
|
|
2624
|
+
userId: Type.TString;
|
|
2625
|
+
identity: Type.TObject<{
|
|
2626
|
+
identityId: Type.TString;
|
|
2627
|
+
provider: Type.TString;
|
|
2628
|
+
subject: Type.TString;
|
|
2629
|
+
}>;
|
|
2630
|
+
active: Type.TBoolean;
|
|
2631
|
+
name: Type.TString;
|
|
2632
|
+
email: Type.TString;
|
|
2633
|
+
image: Type.TOptional<Type.TString>;
|
|
2634
|
+
capabilities: Type.TArray<Type.TString>;
|
|
2635
|
+
lastAuth: Type.TString;
|
|
2636
|
+
}>, Type.TObject<{
|
|
2637
|
+
type: Type.TLiteral<"service">;
|
|
2638
|
+
id: Type.TString;
|
|
2639
|
+
name: Type.TString;
|
|
2640
|
+
active: Type.TBoolean;
|
|
2641
|
+
capabilities: Type.TArray<Type.TString>;
|
|
2642
|
+
}>, Type.TObject<{
|
|
2643
|
+
type: Type.TLiteral<"device">;
|
|
2644
|
+
deviceId: Type.TString;
|
|
2645
|
+
deviceType: Type.TString;
|
|
2646
|
+
runtimePublicKey: Type.TString;
|
|
2647
|
+
deploymentId: Type.TString;
|
|
2648
|
+
active: Type.TBoolean;
|
|
2649
|
+
capabilities: Type.TArray<Type.TString>;
|
|
2650
|
+
}>]>>;
|
|
2651
|
+
publisher: Type.TOptional<Type.TObject<{
|
|
2652
|
+
kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"user">]>;
|
|
2653
|
+
deploymentId: Type.TOptional<Type.TString>;
|
|
2654
|
+
instanceId: Type.TOptional<Type.TString>;
|
|
2655
|
+
contractId: Type.TOptional<Type.TString>;
|
|
2656
|
+
contractDigest: Type.TOptional<Type.TString>;
|
|
2657
|
+
sessionStatus: Type.TUnion<[Type.TLiteral<"active">, Type.TLiteral<"ended">, Type.TLiteral<"revoked">, Type.TLiteral<"expired">]>;
|
|
2658
|
+
}>>;
|
|
2659
|
+
}>;
|
|
2555
2660
|
export declare const AuthIdentitiesListSchema: Type.TObject<{
|
|
2556
2661
|
user: Type.TOptional<Type.TString>;
|
|
2557
2662
|
offset: Type.TOptional<Type.TInteger>;
|