@abloatai/transaction 0.57.0 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONVENTIONS.md +51 -41
- package/README.md +3 -1
- package/dist/ai-sdk/modelTools.d.ts +3 -3
- package/dist/ai-sdk/modelTools.d.ts.map +1 -1
- package/dist/ai-sdk/modelTools.js +1 -1
- package/dist/ai-sdk/modelTools.js.map +1 -1
- package/dist/ai-sdk/updateTool.d.ts +5 -7
- package/dist/ai-sdk/updateTool.d.ts.map +1 -1
- package/dist/ai-sdk/updateTool.js +3 -5
- package/dist/ai-sdk/updateTool.js.map +1 -1
- package/dist/auth/capability.d.ts +5 -0
- package/dist/auth/capability.d.ts.map +1 -1
- package/dist/auth/capability.js +5 -0
- package/dist/auth/capability.js.map +1 -1
- package/dist/auth/capabilityLifecycle.d.ts +1 -1
- package/dist/auth/capabilityLifecycle.d.ts.map +1 -1
- package/dist/auth/credentialPolicy.d.ts +1 -1
- package/dist/auth/credentialPolicy.d.ts.map +1 -1
- package/dist/auth/identity.d.ts +3 -3
- package/dist/auth/identity.d.ts.map +1 -1
- package/dist/auth/identity.js +5 -5
- package/dist/auth/identity.js.map +1 -1
- package/dist/auth/index.d.ts +4 -208
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +4 -330
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/runtime.d.ts +218 -0
- package/dist/auth/runtime.d.ts.map +1 -0
- package/dist/auth/runtime.js +336 -0
- package/dist/auth/runtime.js.map +1 -0
- package/dist/auth/sessionMint.d.ts +1 -1
- package/dist/auth/sessionMint.d.ts.map +1 -1
- package/dist/auth/sessionMint.js +2 -1
- package/dist/auth/sessionMint.js.map +1 -1
- package/dist/branches.d.ts +25 -21
- package/dist/branches.d.ts.map +1 -1
- package/dist/branches.js +3 -0
- package/dist/branches.js.map +1 -1
- package/dist/{coordination/awaitClaimGrant.d.ts → claims/awaitGrant.d.ts} +1 -1
- package/dist/claims/awaitGrant.d.ts.map +1 -0
- package/dist/{coordination/awaitClaimGrant.js → claims/awaitGrant.js} +4 -4
- package/dist/claims/awaitGrant.js.map +1 -0
- package/dist/{wire/claims.d.ts → claims/contract.d.ts} +1 -1
- package/dist/claims/contract.d.ts.map +1 -0
- package/dist/{wire/claims.js → claims/contract.js} +2 -2
- package/dist/claims/contract.js.map +1 -0
- package/dist/{wire/claimEvent.d.ts → claims/eventContract.d.ts} +1 -1
- package/dist/claims/eventContract.d.ts.map +1 -0
- package/dist/{wire/claimEvent.js → claims/eventContract.js} +1 -1
- package/dist/claims/eventContract.js.map +1 -0
- package/dist/{coordination → claims}/events.d.ts +7 -11
- package/dist/claims/events.d.ts.map +1 -0
- package/dist/claims/events.js +8 -0
- package/dist/claims/events.js.map +1 -0
- package/dist/{coordination/claimHeartbeatLoop.d.ts → claims/heartbeat.d.ts} +1 -1
- package/dist/claims/heartbeat.d.ts.map +1 -0
- package/dist/{coordination/claimHeartbeatLoop.js → claims/heartbeat.js} +1 -1
- package/dist/claims/heartbeat.js.map +1 -0
- package/dist/claims/index.d.ts +17 -0
- package/dist/claims/index.d.ts.map +1 -0
- package/dist/claims/index.js +16 -0
- package/dist/claims/index.js.map +1 -0
- package/dist/claims/lifetime.d.ts +26 -0
- package/dist/claims/lifetime.d.ts.map +1 -0
- package/dist/claims/lifetime.js +62 -0
- package/dist/claims/lifetime.js.map +1 -0
- package/dist/{coordination → claims}/locator.d.ts +1 -1
- package/dist/claims/locator.d.ts.map +1 -0
- package/dist/{coordination → claims}/locator.js +2 -2
- package/dist/claims/locator.js.map +1 -0
- package/dist/{coordination/claimMeta.d.ts → claims/meta.d.ts} +1 -1
- package/dist/claims/meta.d.ts.map +1 -0
- package/dist/{coordination/claimMeta.js → claims/meta.js} +1 -1
- package/dist/claims/meta.js.map +1 -0
- package/dist/claims/routes.d.ts +59 -0
- package/dist/claims/routes.d.ts.map +1 -0
- package/dist/claims/routes.js +69 -0
- package/dist/claims/routes.js.map +1 -0
- package/dist/claims/targetConflict.d.ts.map +1 -0
- package/dist/claims/targetConflict.js.map +1 -0
- package/dist/{coordination → claims}/trace.d.ts +2 -2
- package/dist/claims/trace.d.ts.map +1 -0
- package/dist/{coordination → claims}/trace.js +5 -5
- package/dist/claims/trace.js.map +1 -0
- package/dist/{ablo.d.ts → client/ablo.d.ts} +6 -15
- package/dist/client/ablo.d.ts.map +1 -0
- package/dist/{ablo.js → client/ablo.js} +2 -2
- package/dist/client/ablo.js.map +1 -0
- package/dist/{transactionLayer.d.ts → client/contract.d.ts} +12 -14
- package/dist/client/contract.d.ts.map +1 -0
- package/dist/{transactionLayer.js → client/contract.js} +4 -5
- package/dist/client/contract.js.map +1 -0
- package/dist/{headlessClient.d.ts → client/headless.d.ts} +4 -4
- package/dist/client/headless.d.ts.map +1 -0
- package/dist/{headlessClient.js → client/headless.js} +8 -10
- package/dist/{headlessClient.js.map → client/headless.js.map} +1 -1
- package/dist/client/index.d.ts +11 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +11 -0
- package/dist/client/index.js.map +1 -0
- package/dist/{resources → client/resources}/functionalUpdate.d.ts +4 -4
- package/dist/client/resources/functionalUpdate.d.ts.map +1 -0
- package/dist/{resources → client/resources}/functionalUpdate.js +3 -3
- package/dist/client/resources/functionalUpdate.js.map +1 -0
- package/dist/{resources → client/resources}/httpResources.d.ts +51 -57
- package/dist/client/resources/httpResources.d.ts.map +1 -0
- package/dist/{resources → client/resources}/httpResources.js +1 -1
- package/dist/client/resources/httpResources.js.map +1 -0
- package/dist/{resources → client/resources}/modelCreate.d.ts +1 -1
- package/dist/client/resources/modelCreate.d.ts.map +1 -0
- package/dist/{resources → client/resources}/modelCreate.js +1 -1
- package/dist/client/resources/modelCreate.js.map +1 -0
- package/dist/{resources → client/resources}/modelOperations.d.ts +35 -51
- package/dist/client/resources/modelOperations.d.ts.map +1 -0
- package/dist/{resources → client/resources}/modelOperations.js +1 -1
- package/dist/client/resources/modelOperations.js.map +1 -0
- package/dist/{resources → client/resources}/mutationOptions.d.ts +4 -17
- package/dist/client/resources/mutationOptions.d.ts.map +1 -0
- package/dist/client/resources/mutationOptions.js.map +1 -0
- package/dist/client/resources/where.d.ts.map +1 -0
- package/dist/{resources → client/resources}/where.js +1 -1
- package/dist/client/resources/where.js.map +1 -0
- package/dist/{resources → client/resources}/writeOptionsSchema.d.ts +2 -35
- package/dist/client/resources/writeOptionsSchema.d.ts.map +1 -0
- package/dist/{resources → client/resources}/writeOptionsSchema.js +5 -18
- package/dist/client/resources/writeOptionsSchema.js.map +1 -0
- package/dist/{transactions → commit}/confirmation/commitEnvelope.d.ts +1 -37
- package/dist/commit/confirmation/commitEnvelope.d.ts.map +1 -0
- package/dist/{transactions → commit}/confirmation/commitEnvelope.js +2 -7
- package/dist/commit/confirmation/commitEnvelope.js.map +1 -0
- package/dist/commit/confirmation/httpCommitEnvelope.d.ts.map +1 -0
- package/dist/{transactions → commit}/confirmation/httpCommitEnvelope.js +1 -1
- package/dist/commit/confirmation/httpCommitEnvelope.js.map +1 -0
- package/dist/commit/confirmation/idempotencyKey.d.ts.map +1 -0
- package/dist/commit/confirmation/idempotencyKey.js.map +1 -0
- package/dist/{transactions → commit}/confirmation/pendingWrite.d.ts +2 -33
- package/dist/commit/confirmation/pendingWrite.d.ts.map +1 -0
- package/dist/{transactions → commit}/confirmation/pendingWrite.js +1 -1
- package/dist/commit/confirmation/pendingWrite.js.map +1 -0
- package/dist/commit/contract.d.ts +1404 -0
- package/dist/commit/contract.d.ts.map +1 -0
- package/dist/{wire/commit.js → commit/contract.js} +13 -20
- package/dist/commit/contract.js.map +1 -0
- package/dist/{durableWrites.d.ts → commit/durableWrites.d.ts} +6 -6
- package/dist/commit/durableWrites.d.ts.map +1 -0
- package/dist/{durableWrites.js → commit/durableWrites.js} +5 -5
- package/dist/commit/durableWrites.js.map +1 -0
- package/dist/{transport/httpCommitRequest.d.ts → commit/httpRequest.d.ts} +6 -6
- package/dist/commit/httpRequest.d.ts.map +1 -0
- package/dist/{transport/httpCommitRequest.js → commit/httpRequest.js} +2 -3
- package/dist/commit/httpRequest.js.map +1 -0
- package/dist/commit/index.d.ts +17 -0
- package/dist/commit/index.d.ts.map +1 -0
- package/dist/commit/index.js +17 -0
- package/dist/commit/index.js.map +1 -0
- package/dist/{readSetContext.d.ts → commit/readSetContext.d.ts} +7 -15
- package/dist/commit/readSetContext.d.ts.map +1 -0
- package/dist/{readSetContext.js → commit/readSetContext.js} +10 -25
- package/dist/commit/readSetContext.js.map +1 -0
- package/dist/{commitRecordRuntime.d.ts → commit/recordRuntime.d.ts} +3 -5
- package/dist/commit/recordRuntime.d.ts.map +1 -0
- package/dist/{commitRecordRuntime.js → commit/recordRuntime.js} +13 -54
- package/dist/commit/recordRuntime.js.map +1 -0
- package/dist/coordination/index.d.ts +6 -8
- package/dist/coordination/index.d.ts.map +1 -1
- package/dist/coordination/index.js +3 -9
- package/dist/coordination/index.js.map +1 -1
- package/dist/coordination/schema.d.ts +11 -459
- package/dist/coordination/schema.d.ts.map +1 -1
- package/dist/coordination/schema.js +13 -261
- package/dist/coordination/schema.js.map +1 -1
- package/dist/errorCodes.d.ts +15 -9
- package/dist/errorCodes.d.ts.map +1 -1
- package/dist/errorCodes.js +13 -6
- package/dist/errorCodes.js.map +1 -1
- package/dist/errorObservation.d.ts +2 -2
- package/dist/errors.d.ts +3 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +27 -11
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/internal/read-set.d.ts +3 -3
- package/dist/internal/read-set.d.ts.map +1 -1
- package/dist/internal/read-set.js +2 -2
- package/dist/internal/read-set.js.map +1 -1
- package/dist/observability.d.ts +4 -4
- package/dist/observability.d.ts.map +1 -1
- package/dist/observability.js +2 -2
- package/dist/{wire/delta.d.ts → observation/contract.d.ts} +8 -8
- package/dist/observation/contract.d.ts.map +1 -0
- package/dist/{wire/delta.js → observation/contract.js} +3 -3
- package/dist/observation/contract.js.map +1 -0
- package/dist/{wire/feedCursor.d.ts → observation/cursor.d.ts} +1 -1
- package/dist/observation/cursor.d.ts.map +1 -0
- package/dist/{wire/feedCursor.js → observation/cursor.js} +1 -1
- package/dist/observation/cursor.js.map +1 -0
- package/dist/{wire/deltaDelivery.d.ts → observation/deliveryContract.d.ts} +1 -1
- package/dist/observation/deliveryContract.d.ts.map +1 -0
- package/dist/{wire/deltaDelivery.js → observation/deliveryContract.js} +1 -1
- package/dist/observation/deliveryContract.js.map +1 -0
- package/dist/{wire/feedEvent.d.ts → observation/feedContract.d.ts} +10 -10
- package/dist/observation/feedContract.d.ts.map +1 -0
- package/dist/{wire/feedEvent.js → observation/feedContract.js} +4 -4
- package/dist/observation/feedContract.js.map +1 -0
- package/dist/observation/httpFeed.d.ts +4 -0
- package/dist/observation/httpFeed.d.ts.map +1 -0
- package/dist/{transport → observation}/httpFeed.js +1 -1
- package/dist/{transport → observation}/httpFeed.js.map +1 -1
- package/dist/observation/index.d.ts +13 -0
- package/dist/observation/index.d.ts.map +1 -0
- package/dist/observation/index.js +13 -0
- package/dist/observation/index.js.map +1 -0
- package/dist/{log → observation/persistence}/syncDeltaRow.d.ts +8 -8
- package/dist/observation/persistence/syncDeltaRow.d.ts.map +1 -0
- package/dist/{log → observation/persistence}/syncDeltaRow.js +4 -4
- package/dist/observation/persistence/syncDeltaRow.js.map +1 -0
- package/dist/pricing.d.ts +20 -12
- package/dist/pricing.d.ts.map +1 -1
- package/dist/pricing.js +46 -26
- package/dist/pricing.js.map +1 -1
- package/dist/schema/index.d.ts +5 -6
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +4 -7
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/model.d.ts +0 -27
- package/dist/schema/model.d.ts.map +1 -1
- package/dist/schema/model.js +0 -2
- package/dist/schema/model.js.map +1 -1
- package/dist/schema/openapi.d.ts.map +1 -1
- package/dist/schema/openapi.js +45 -6
- package/dist/schema/openapi.js.map +1 -1
- package/dist/schema/schema.d.ts +11 -3
- package/dist/schema/schema.d.ts.map +1 -1
- package/dist/schema/schema.js +9 -2
- package/dist/schema/schema.js.map +1 -1
- package/dist/schema/serialize.d.ts +1 -4
- package/dist/schema/serialize.d.ts.map +1 -1
- package/dist/schema/serialize.js +0 -4
- package/dist/schema/serialize.js.map +1 -1
- package/dist/schema/tenancy.d.ts +1 -1
- package/dist/server/adapter.d.ts +1 -1
- package/dist/server/adapter.d.ts.map +1 -1
- package/dist/server/commit.d.ts +6 -14
- package/dist/server/commit.d.ts.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/storageMode.d.ts +1 -1
- package/dist/source/{adapter.d.ts → adapters/adapter.d.ts} +10 -4
- package/dist/source/adapters/adapter.d.ts.map +1 -0
- package/dist/source/adapters/adapter.js.map +1 -0
- package/dist/source/adapters/adapterFactory.d.ts.map +1 -0
- package/dist/source/{adapterFactory.js → adapters/adapterFactory.js} +1 -1
- package/dist/source/adapters/adapterFactory.js.map +1 -0
- package/dist/source/adapters/adapterProfile.d.ts.map +1 -0
- package/dist/source/adapters/adapterProfile.js.map +1 -0
- package/dist/source/{conformance.d.ts → adapters/conformance.d.ts} +1 -1
- package/dist/source/adapters/conformance.d.ts.map +1 -0
- package/dist/source/{conformance.js → adapters/conformance.js} +1 -1
- package/dist/source/adapters/conformance.js.map +1 -0
- package/dist/source/{contract.d.ts → adapters/contract.d.ts} +8 -77
- package/dist/source/adapters/contract.d.ts.map +1 -0
- package/dist/source/{contract.js → adapters/contract.js} +12 -57
- package/dist/source/adapters/contract.js.map +1 -0
- package/dist/source/adapters/drizzle.d.ts +1 -1
- package/dist/source/adapters/drizzle.d.ts.map +1 -1
- package/dist/source/adapters/drizzle.js +21 -23
- package/dist/source/adapters/drizzle.js.map +1 -1
- package/dist/source/adapters/idempotency.d.ts.map +1 -0
- package/dist/source/{idempotency.js → adapters/idempotency.js} +2 -2
- package/dist/source/adapters/idempotency.js.map +1 -0
- package/dist/source/adapters/index.d.ts +21 -0
- package/dist/source/adapters/index.d.ts.map +1 -0
- package/dist/source/adapters/index.js +21 -0
- package/dist/source/adapters/index.js.map +1 -0
- package/dist/source/adapters/kysely.d.ts +1 -1
- package/dist/source/adapters/kysely.d.ts.map +1 -1
- package/dist/source/adapters/kysely.js +18 -20
- package/dist/source/adapters/kysely.js.map +1 -1
- package/dist/source/adapters/kyselyMutationCore.d.ts +2 -2
- package/dist/source/adapters/kyselyMutationCore.d.ts.map +1 -1
- package/dist/source/adapters/kyselyMutationCore.js +1 -1
- package/dist/source/adapters/kyselyMutationCore.js.map +1 -1
- package/dist/source/adapters/memory.d.ts +3 -3
- package/dist/source/adapters/memory.d.ts.map +1 -1
- package/dist/source/adapters/memory.js +19 -7
- package/dist/source/adapters/memory.js.map +1 -1
- package/dist/source/adapters/migration.d.ts +8 -0
- package/dist/source/adapters/migration.d.ts.map +1 -0
- package/dist/source/adapters/migration.js +9 -0
- package/dist/source/adapters/migration.js.map +1 -0
- package/dist/source/{migrations.d.ts → adapters/migrations.d.ts} +3 -4
- package/dist/source/adapters/migrations.d.ts.map +1 -0
- package/dist/source/{migrations.js → adapters/migrations.js} +4 -52
- package/dist/source/adapters/migrations.js.map +1 -0
- package/dist/source/adapters/prisma.d.ts +1 -1
- package/dist/source/adapters/prisma.d.ts.map +1 -1
- package/dist/source/adapters/prisma.js +21 -28
- package/dist/source/adapters/prisma.js.map +1 -1
- package/dist/source/{subjectAuthorization.d.ts → adapters/subjectAuthorization.d.ts} +1 -1
- package/dist/source/adapters/subjectAuthorization.d.ts.map +1 -0
- package/dist/source/{subjectAuthorization.js → adapters/subjectAuthorization.js} +2 -2
- package/dist/source/adapters/subjectAuthorization.js.map +1 -0
- package/dist/source/{connector.d.ts → connector/client.d.ts} +6 -1
- package/dist/source/connector/client.d.ts.map +1 -0
- package/dist/source/{connector.js → connector/client.js} +28 -11
- package/dist/source/connector/client.js.map +1 -0
- package/dist/source/connector/index.d.ts +4 -0
- package/dist/source/connector/index.d.ts.map +1 -0
- package/dist/source/connector/index.js +4 -0
- package/dist/source/connector/index.js.map +1 -0
- package/dist/source/{connectorProtocol.d.ts → connector/protocol.d.ts} +8 -1
- package/dist/source/connector/protocol.d.ts.map +1 -0
- package/dist/source/{connectorProtocol.js → connector/protocol.js} +10 -3
- package/dist/source/connector/protocol.js.map +1 -0
- package/dist/source/delivery/index.d.ts +3 -0
- package/dist/source/delivery/index.d.ts.map +1 -0
- package/dist/source/delivery/index.js +3 -0
- package/dist/source/delivery/index.js.map +1 -0
- package/dist/source/{pushQueue.d.ts → delivery/pushQueue.d.ts} +1 -1
- package/dist/source/delivery/pushQueue.d.ts.map +1 -0
- package/dist/source/{pushQueue.js → delivery/pushQueue.js} +1 -1
- package/dist/source/delivery/pushQueue.js.map +1 -0
- package/dist/source/{factory.d.ts → endpoint/factory.d.ts} +3 -3
- package/dist/source/endpoint/factory.d.ts.map +1 -0
- package/dist/source/{factory.js → endpoint/factory.js} +9 -4
- package/dist/source/endpoint/factory.js.map +1 -0
- package/dist/source/endpoint/index.d.ts +5 -0
- package/dist/source/endpoint/index.d.ts.map +1 -0
- package/dist/source/endpoint/index.js +5 -0
- package/dist/source/endpoint/index.js.map +1 -0
- package/dist/source/{next.d.ts → endpoint/next.d.ts} +2 -2
- package/dist/source/endpoint/next.d.ts.map +1 -0
- package/dist/source/{next.js → endpoint/next.js} +1 -1
- package/dist/source/endpoint/next.js.map +1 -0
- package/dist/source/{signing.d.ts → endpoint/signing.d.ts} +1 -1
- package/dist/source/endpoint/signing.d.ts.map +1 -0
- package/dist/source/{signing.js → endpoint/signing.js} +1 -1
- package/dist/source/endpoint/signing.js.map +1 -0
- package/dist/source/index.d.ts +14 -12
- package/dist/source/index.d.ts.map +1 -1
- package/dist/source/index.js +13 -11
- package/dist/source/index.js.map +1 -1
- package/dist/source/outbox/contract.d.ts +50 -0
- package/dist/source/outbox/contract.d.ts.map +1 -0
- package/dist/source/outbox/contract.js +50 -0
- package/dist/source/outbox/contract.js.map +1 -0
- package/dist/source/outbox/envelope.d.ts +9 -0
- package/dist/source/outbox/envelope.d.ts.map +1 -0
- package/dist/source/outbox/envelope.js +36 -0
- package/dist/source/outbox/envelope.js.map +1 -0
- package/dist/source/outbox/index.d.ts +11 -0
- package/dist/source/outbox/index.d.ts.map +1 -0
- package/dist/source/outbox/index.js +11 -0
- package/dist/source/outbox/index.js.map +1 -0
- package/dist/source/outbox/migrations.d.ts +4 -0
- package/dist/source/outbox/migrations.d.ts.map +1 -0
- package/dist/source/outbox/migrations.js +67 -0
- package/dist/source/outbox/migrations.js.map +1 -0
- package/dist/source/outbox/retention.d.ts +3 -0
- package/dist/source/outbox/retention.d.ts.map +1 -0
- package/dist/source/outbox/retention.js +3 -0
- package/dist/source/outbox/retention.js.map +1 -0
- package/dist/source/types.d.ts +16 -17
- package/dist/source/types.d.ts.map +1 -1
- package/dist/source/types.js +1 -0
- package/dist/source/types.js.map +1 -1
- package/dist/syncLog/contract.d.ts +19 -2
- package/dist/syncLog/contract.d.ts.map +1 -1
- package/dist/syncLog/contract.js +19 -2
- package/dist/syncLog/contract.js.map +1 -1
- package/dist/transport/{credentialLifecycle.d.ts → connection/credentialLifecycle.d.ts} +3 -3
- package/dist/transport/connection/credentialLifecycle.d.ts.map +1 -0
- package/dist/transport/{credentialLifecycle.js → connection/credentialLifecycle.js} +2 -2
- package/dist/transport/connection/credentialLifecycle.js.map +1 -0
- package/dist/transport/connection/index.d.ts +5 -0
- package/dist/transport/connection/index.d.ts.map +1 -0
- package/dist/transport/connection/index.js +5 -0
- package/dist/transport/connection/index.js.map +1 -0
- package/dist/transport/{connectionManager.d.ts → connection/manager.d.ts} +13 -5
- package/dist/transport/connection/manager.d.ts.map +1 -0
- package/dist/transport/{connectionManager.js → connection/manager.js} +6 -4
- package/dist/transport/connection/manager.js.map +1 -0
- package/dist/transport/{networkProbe.d.ts → connection/networkProbe.d.ts} +2 -2
- package/dist/transport/connection/networkProbe.d.ts.map +1 -0
- package/dist/transport/{networkProbe.js → connection/networkProbe.js} +4 -4
- package/dist/transport/connection/networkProbe.js.map +1 -0
- package/dist/transport/{httpClient.d.ts → http/client.d.ts} +26 -45
- package/dist/transport/http/client.d.ts.map +1 -0
- package/dist/transport/{httpClient.js → http/client.js} +84 -124
- package/dist/transport/http/client.js.map +1 -0
- package/dist/transport/{httpTransportHelpers.d.ts → http/helpers.d.ts} +5 -5
- package/dist/transport/http/helpers.d.ts.map +1 -0
- package/dist/transport/{httpTransportHelpers.js → http/helpers.js} +5 -5
- package/dist/transport/http/helpers.js.map +1 -0
- package/dist/transport/http/index.d.ts +6 -0
- package/dist/transport/http/index.d.ts.map +1 -0
- package/dist/transport/http/index.js +6 -0
- package/dist/transport/http/index.js.map +1 -0
- package/dist/transport/{httpOptions.d.ts → http/options.d.ts} +7 -7
- package/dist/transport/{httpOptions.d.ts.map → http/options.d.ts.map} +1 -1
- package/dist/transport/{httpOptions.js → http/options.js} +1 -1
- package/dist/transport/http/options.js.map +1 -0
- package/dist/transport/http/subscription.d.ts +16 -0
- package/dist/transport/http/subscription.d.ts.map +1 -0
- package/dist/transport/http/subscription.js +146 -0
- package/dist/transport/http/subscription.js.map +1 -0
- package/dist/transport/{httpTransport.d.ts → http/transport.d.ts} +9 -6
- package/dist/transport/http/transport.d.ts.map +1 -0
- package/dist/transport/{httpTransport.js → http/transport.js} +95 -93
- package/dist/transport/http/transport.js.map +1 -0
- package/dist/transport/index.d.ts +8 -0
- package/dist/transport/index.d.ts.map +1 -0
- package/dist/transport/index.js +8 -0
- package/dist/transport/index.js.map +1 -0
- package/dist/transport/{commitFrames.d.ts → websocket/commitFrames.d.ts} +8 -20
- package/dist/transport/websocket/commitFrames.d.ts.map +1 -0
- package/dist/transport/{commitFrames.js → websocket/commitFrames.js} +6 -25
- package/dist/transport/websocket/commitFrames.js.map +1 -0
- package/dist/transport/{wsFrameHandlers.d.ts → websocket/frameHandlers.d.ts} +5 -5
- package/dist/transport/websocket/frameHandlers.d.ts.map +1 -0
- package/dist/transport/{wsFrameHandlers.js → websocket/frameHandlers.js} +10 -51
- package/dist/transport/websocket/frameHandlers.js.map +1 -0
- package/dist/transport/{heartbeat.d.ts → websocket/heartbeat.d.ts} +1 -1
- package/dist/transport/websocket/heartbeat.d.ts.map +1 -0
- package/dist/transport/{heartbeat.js → websocket/heartbeat.js} +2 -2
- package/dist/transport/websocket/heartbeat.js.map +1 -0
- package/dist/transport/websocket/index.d.ts +6 -0
- package/dist/transport/websocket/index.d.ts.map +1 -0
- package/dist/transport/websocket/index.js +6 -0
- package/dist/transport/websocket/index.js.map +1 -0
- package/dist/transport/{wsTransport.d.ts → websocket/transport.d.ts} +13 -25
- package/dist/transport/websocket/transport.d.ts.map +1 -0
- package/dist/transport/{wsTransport.js → websocket/transport.js} +14 -14
- package/dist/transport/websocket/transport.js.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/streams.d.ts +8 -48
- package/dist/types/streams.d.ts.map +1 -1
- package/dist/types/streams.js +2 -2
- package/dist/wire/accountResponses.d.ts +4 -72
- package/dist/wire/accountResponses.d.ts.map +1 -1
- package/dist/wire/accountResponses.js +2 -10
- package/dist/wire/accountResponses.js.map +1 -1
- package/dist/wire/frames.d.ts +6 -83
- package/dist/wire/frames.d.ts.map +1 -1
- package/dist/wire/frames.js +4 -11
- package/dist/wire/frames.js.map +1 -1
- package/dist/wire/inboundFrames.d.ts +6 -131
- package/dist/wire/inboundFrames.d.ts.map +1 -1
- package/dist/wire/inboundFrames.js +3 -3
- package/dist/wire/inboundFrames.js.map +1 -1
- package/dist/wire/index.d.ts +17 -15
- package/dist/wire/index.d.ts.map +1 -1
- package/dist/wire/index.js +11 -8
- package/dist/wire/index.js.map +1 -1
- package/dist/wire/modelMutations.d.ts +1 -32
- package/dist/wire/modelMutations.d.ts.map +1 -1
- package/dist/wire/modelMutations.js +1 -8
- package/dist/wire/modelMutations.js.map +1 -1
- package/package.json +130 -10
- package/src/ai-sdk/modelTools.ts +5 -5
- package/src/ai-sdk/updateTool.ts +5 -7
- package/src/auth/capability.ts +5 -0
- package/src/auth/capabilityLifecycle.ts +1 -1
- package/src/auth/credentialPolicy.ts +1 -1
- package/src/auth/identity.ts +7 -7
- package/src/auth/index.ts +4 -663
- package/src/auth/runtime.ts +669 -0
- package/src/auth/sessionMint.ts +3 -2
- package/src/branches.ts +3 -0
- package/src/{coordination/awaitClaimGrant.ts → claims/awaitGrant.ts} +4 -4
- package/src/{wire/claims.ts → claims/contract.ts} +1 -1
- package/src/{coordination → claims}/events.ts +7 -11
- package/src/claims/index.ts +21 -0
- package/src/claims/lifetime.ts +78 -0
- package/src/{coordination → claims}/locator.ts +3 -3
- package/src/claims/routes.ts +81 -0
- package/src/{coordination → claims}/trace.ts +5 -5
- package/src/{ablo.ts → client/ablo.ts} +8 -20
- package/src/{transactionLayer.ts → client/contract.ts} +11 -13
- package/src/{headlessClient.ts → client/headless.ts} +13 -15
- package/src/client/index.ts +10 -0
- package/src/{resources → client/resources}/functionalUpdate.ts +4 -4
- package/src/{resources → client/resources}/httpResources.ts +48 -68
- package/src/{resources → client/resources}/modelCreate.ts +2 -2
- package/src/{resources → client/resources}/modelOperations.ts +46 -55
- package/src/{resources → client/resources}/mutationOptions.ts +4 -17
- package/src/{resources → client/resources}/where.ts +1 -1
- package/src/{resources → client/resources}/writeOptionsSchema.ts +7 -27
- package/src/{transactions → commit}/confirmation/commitEnvelope.ts +2 -12
- package/src/{transactions → commit}/confirmation/httpCommitEnvelope.ts +1 -1
- package/src/{transactions → commit}/confirmation/pendingWrite.ts +1 -1
- package/src/{wire/commit.ts → commit/contract.ts} +11 -25
- package/src/{durableWrites.ts → commit/durableWrites.ts} +7 -7
- package/src/{transport/httpCommitRequest.ts → commit/httpRequest.ts} +6 -7
- package/src/commit/index.ts +16 -0
- package/src/{readSetContext.ts → commit/readSetContext.ts} +16 -41
- package/src/{commitRecordRuntime.ts → commit/recordRuntime.ts} +12 -67
- package/src/coordination/index.ts +4 -52
- package/src/coordination/schema.ts +15 -302
- package/src/errorCodes.ts +56 -10
- package/src/errors.ts +32 -10
- package/src/index.ts +8 -8
- package/src/internal/read-set.ts +3 -6
- package/src/observability.ts +4 -4
- package/src/{wire/delta.ts → observation/contract.ts} +2 -2
- package/src/{wire/feedEvent.ts → observation/feedContract.ts} +3 -4
- package/src/{transport → observation}/httpFeed.ts +3 -3
- package/src/observation/index.ts +12 -0
- package/src/{log → observation/persistence}/syncDeltaRow.ts +6 -7
- package/src/pricing.ts +46 -25
- package/src/schema/index.ts +4 -20
- package/src/schema/model.ts +0 -33
- package/src/schema/openapi.ts +47 -7
- package/src/schema/schema.ts +23 -3
- package/src/schema/serialize.ts +0 -8
- package/src/server/adapter.ts +1 -1
- package/src/server/commit.ts +6 -14
- package/src/server/index.ts +1 -1
- package/src/source/{adapter.ts → adapters/adapter.ts} +9 -5
- package/src/source/{adapterFactory.ts → adapters/adapterFactory.ts} +1 -1
- package/src/source/{conformance.ts → adapters/conformance.ts} +1 -1
- package/src/source/{contract.ts → adapters/contract.ts} +16 -64
- package/src/source/adapters/drizzle.ts +29 -27
- package/src/source/{idempotency.ts → adapters/idempotency.ts} +2 -2
- package/src/source/adapters/index.ts +20 -0
- package/src/source/adapters/kysely.ts +32 -25
- package/src/source/adapters/kyselyMutationCore.ts +3 -3
- package/src/source/adapters/memory.ts +25 -9
- package/src/source/adapters/migration.ts +11 -0
- package/src/source/{migrations.ts → adapters/migrations.ts} +6 -54
- package/src/source/adapters/prisma.ts +33 -32
- package/src/source/{subjectAuthorization.ts → adapters/subjectAuthorization.ts} +2 -2
- package/src/source/{connector.ts → connector/client.ts} +35 -12
- package/src/source/connector/index.ts +3 -0
- package/src/source/{connectorProtocol.ts → connector/protocol.ts} +10 -2
- package/src/source/delivery/index.ts +2 -0
- package/src/source/{pushQueue.ts → delivery/pushQueue.ts} +2 -2
- package/src/source/{factory.ts → endpoint/factory.ts} +13 -8
- package/src/source/endpoint/index.ts +4 -0
- package/src/source/{next.ts → endpoint/next.ts} +2 -2
- package/src/source/{signing.ts → endpoint/signing.ts} +1 -1
- package/src/source/index.ts +22 -19
- package/src/source/outbox/contract.ts +56 -0
- package/src/source/outbox/envelope.ts +47 -0
- package/src/source/outbox/index.ts +15 -0
- package/src/source/outbox/migrations.ts +71 -0
- package/src/source/outbox/retention.ts +2 -0
- package/src/source/types.ts +17 -17
- package/src/syncLog/contract.ts +19 -2
- package/src/transport/{credentialLifecycle.ts → connection/credentialLifecycle.ts} +3 -3
- package/src/transport/connection/index.ts +4 -0
- package/src/transport/{connectionManager.ts → connection/manager.ts} +13 -4
- package/src/transport/{networkProbe.ts → connection/networkProbe.ts} +4 -4
- package/src/transport/{httpClient.ts → http/client.ts} +128 -209
- package/src/transport/{httpTransportHelpers.ts → http/helpers.ts} +7 -7
- package/src/transport/http/index.ts +5 -0
- package/src/transport/{httpOptions.ts → http/options.ts} +6 -6
- package/src/transport/http/subscription.ts +174 -0
- package/src/transport/{httpTransport.ts → http/transport.ts} +127 -113
- package/src/transport/index.ts +7 -0
- package/src/transport/{commitFrames.ts → websocket/commitFrames.ts} +14 -46
- package/src/transport/{wsFrameHandlers.ts → websocket/frameHandlers.ts} +11 -54
- package/src/transport/{heartbeat.ts → websocket/heartbeat.ts} +2 -2
- package/src/transport/websocket/index.ts +5 -0
- package/src/transport/{wsTransport.ts → websocket/transport.ts} +16 -30
- package/src/types/index.ts +2 -6
- package/src/types/streams.ts +7 -61
- package/src/webhooks/events.ts +1 -1
- package/src/wire/accountResponses.ts +3 -12
- package/src/wire/frames.ts +5 -15
- package/src/wire/inboundFrames.ts +3 -3
- package/src/wire/index.ts +19 -15
- package/src/wire/modelMutations.ts +1 -14
- package/dist/ablo.d.ts.map +0 -1
- package/dist/ablo.js.map +0 -1
- package/dist/commitRecordRuntime.d.ts.map +0 -1
- package/dist/commitRecordRuntime.js.map +0 -1
- package/dist/coordination/awaitClaimGrant.d.ts.map +0 -1
- package/dist/coordination/awaitClaimGrant.js.map +0 -1
- package/dist/coordination/claimHeartbeatLoop.d.ts.map +0 -1
- package/dist/coordination/claimHeartbeatLoop.js.map +0 -1
- package/dist/coordination/claimMeta.d.ts.map +0 -1
- package/dist/coordination/claimMeta.js.map +0 -1
- package/dist/coordination/events.d.ts.map +0 -1
- package/dist/coordination/events.js +0 -8
- package/dist/coordination/events.js.map +0 -1
- package/dist/coordination/locator.d.ts.map +0 -1
- package/dist/coordination/locator.js.map +0 -1
- package/dist/coordination/targetConflict.d.ts.map +0 -1
- package/dist/coordination/targetConflict.js.map +0 -1
- package/dist/coordination/trace.d.ts.map +0 -1
- package/dist/coordination/trace.js.map +0 -1
- package/dist/durableWrites.d.ts.map +0 -1
- package/dist/durableWrites.js.map +0 -1
- package/dist/headlessClient.d.ts.map +0 -1
- package/dist/log/syncDeltaRow.d.ts.map +0 -1
- package/dist/log/syncDeltaRow.js.map +0 -1
- package/dist/policy/types.d.ts +0 -226
- package/dist/policy/types.d.ts.map +0 -1
- package/dist/policy/types.js +0 -127
- package/dist/policy/types.js.map +0 -1
- package/dist/readSetContext.d.ts.map +0 -1
- package/dist/readSetContext.js.map +0 -1
- package/dist/resources/functionalUpdate.d.ts.map +0 -1
- package/dist/resources/functionalUpdate.js.map +0 -1
- package/dist/resources/httpResources.d.ts.map +0 -1
- package/dist/resources/httpResources.js.map +0 -1
- package/dist/resources/modelCreate.d.ts.map +0 -1
- package/dist/resources/modelCreate.js.map +0 -1
- package/dist/resources/modelOperations.d.ts.map +0 -1
- package/dist/resources/modelOperations.js.map +0 -1
- package/dist/resources/mutationOptions.d.ts.map +0 -1
- package/dist/resources/mutationOptions.js.map +0 -1
- package/dist/resources/where.d.ts.map +0 -1
- package/dist/resources/where.js.map +0 -1
- package/dist/resources/writeOptionsSchema.d.ts.map +0 -1
- package/dist/resources/writeOptionsSchema.js.map +0 -1
- package/dist/schema/coordination.d.ts +0 -113
- package/dist/schema/coordination.d.ts.map +0 -1
- package/dist/schema/coordination.js +0 -134
- package/dist/schema/coordination.js.map +0 -1
- package/dist/source/adapter.d.ts.map +0 -1
- package/dist/source/adapter.js.map +0 -1
- package/dist/source/adapterFactory.d.ts.map +0 -1
- package/dist/source/adapterFactory.js.map +0 -1
- package/dist/source/adapterProfile.d.ts.map +0 -1
- package/dist/source/adapterProfile.js.map +0 -1
- package/dist/source/conformance.d.ts.map +0 -1
- package/dist/source/conformance.js.map +0 -1
- package/dist/source/connector.d.ts.map +0 -1
- package/dist/source/connector.js.map +0 -1
- package/dist/source/connectorProtocol.d.ts.map +0 -1
- package/dist/source/connectorProtocol.js.map +0 -1
- package/dist/source/contract.d.ts.map +0 -1
- package/dist/source/contract.js.map +0 -1
- package/dist/source/drizzle.d.ts +0 -2
- package/dist/source/drizzle.d.ts.map +0 -1
- package/dist/source/drizzle.js +0 -2
- package/dist/source/drizzle.js.map +0 -1
- package/dist/source/factory.d.ts.map +0 -1
- package/dist/source/factory.js.map +0 -1
- package/dist/source/idempotency.d.ts.map +0 -1
- package/dist/source/idempotency.js.map +0 -1
- package/dist/source/kysely.d.ts +0 -3
- package/dist/source/kysely.d.ts.map +0 -1
- package/dist/source/kysely.js +0 -3
- package/dist/source/kysely.js.map +0 -1
- package/dist/source/migrations.d.ts.map +0 -1
- package/dist/source/migrations.js.map +0 -1
- package/dist/source/next.d.ts.map +0 -1
- package/dist/source/next.js.map +0 -1
- package/dist/source/pushQueue.d.ts.map +0 -1
- package/dist/source/pushQueue.js.map +0 -1
- package/dist/source/signing.d.ts.map +0 -1
- package/dist/source/signing.js.map +0 -1
- package/dist/source/subjectAuthorization.d.ts.map +0 -1
- package/dist/source/subjectAuthorization.js.map +0 -1
- package/dist/transactionLayer.d.ts.map +0 -1
- package/dist/transactionLayer.js.map +0 -1
- package/dist/transactions/confirmation/commitEnvelope.d.ts.map +0 -1
- package/dist/transactions/confirmation/commitEnvelope.js.map +0 -1
- package/dist/transactions/confirmation/httpCommitEnvelope.d.ts.map +0 -1
- package/dist/transactions/confirmation/httpCommitEnvelope.js.map +0 -1
- package/dist/transactions/confirmation/idempotencyKey.d.ts.map +0 -1
- package/dist/transactions/confirmation/idempotencyKey.js.map +0 -1
- package/dist/transactions/confirmation/pendingWrite.d.ts.map +0 -1
- package/dist/transactions/confirmation/pendingWrite.js.map +0 -1
- package/dist/transport/commitFrames.d.ts.map +0 -1
- package/dist/transport/commitFrames.js.map +0 -1
- package/dist/transport/connectionManager.d.ts.map +0 -1
- package/dist/transport/connectionManager.js.map +0 -1
- package/dist/transport/credentialLifecycle.d.ts.map +0 -1
- package/dist/transport/credentialLifecycle.js.map +0 -1
- package/dist/transport/heartbeat.d.ts.map +0 -1
- package/dist/transport/heartbeat.js.map +0 -1
- package/dist/transport/httpClient.d.ts.map +0 -1
- package/dist/transport/httpClient.js.map +0 -1
- package/dist/transport/httpCommitRequest.d.ts.map +0 -1
- package/dist/transport/httpCommitRequest.js.map +0 -1
- package/dist/transport/httpFeed.d.ts +0 -4
- package/dist/transport/httpFeed.d.ts.map +0 -1
- package/dist/transport/httpOptions.js.map +0 -1
- package/dist/transport/httpTransport.d.ts.map +0 -1
- package/dist/transport/httpTransport.js.map +0 -1
- package/dist/transport/httpTransportHelpers.d.ts.map +0 -1
- package/dist/transport/httpTransportHelpers.js.map +0 -1
- package/dist/transport/networkProbe.d.ts.map +0 -1
- package/dist/transport/networkProbe.js.map +0 -1
- package/dist/transport/wsFrameHandlers.d.ts.map +0 -1
- package/dist/transport/wsFrameHandlers.js.map +0 -1
- package/dist/transport/wsTransport.d.ts.map +0 -1
- package/dist/transport/wsTransport.js.map +0 -1
- package/dist/wire/claimEvent.d.ts.map +0 -1
- package/dist/wire/claimEvent.js.map +0 -1
- package/dist/wire/claims.d.ts.map +0 -1
- package/dist/wire/claims.js.map +0 -1
- package/dist/wire/commit.d.ts +0 -2866
- package/dist/wire/commit.d.ts.map +0 -1
- package/dist/wire/commit.js.map +0 -1
- package/dist/wire/delta.d.ts.map +0 -1
- package/dist/wire/delta.js.map +0 -1
- package/dist/wire/deltaDelivery.d.ts.map +0 -1
- package/dist/wire/deltaDelivery.js.map +0 -1
- package/dist/wire/feedCursor.d.ts.map +0 -1
- package/dist/wire/feedCursor.js.map +0 -1
- package/dist/wire/feedEvent.d.ts.map +0 -1
- package/dist/wire/feedEvent.js.map +0 -1
- package/src/policy/types.ts +0 -300
- package/src/schema/coordination.ts +0 -161
- package/src/source/drizzle.ts +0 -1
- package/src/source/kysely.ts +0 -2
- /package/dist/{coordination → claims}/targetConflict.d.ts +0 -0
- /package/dist/{coordination → claims}/targetConflict.js +0 -0
- /package/dist/{resources → client/resources}/mutationOptions.js +0 -0
- /package/dist/{resources → client/resources}/where.d.ts +0 -0
- /package/dist/{transactions → commit}/confirmation/httpCommitEnvelope.d.ts +0 -0
- /package/dist/{transactions → commit}/confirmation/idempotencyKey.d.ts +0 -0
- /package/dist/{transactions → commit}/confirmation/idempotencyKey.js +0 -0
- /package/dist/source/{adapter.js → adapters/adapter.js} +0 -0
- /package/dist/source/{adapterFactory.d.ts → adapters/adapterFactory.d.ts} +0 -0
- /package/dist/source/{adapterProfile.d.ts → adapters/adapterProfile.d.ts} +0 -0
- /package/dist/source/{adapterProfile.js → adapters/adapterProfile.js} +0 -0
- /package/dist/source/{idempotency.d.ts → adapters/idempotency.d.ts} +0 -0
- /package/src/{wire/claimEvent.ts → claims/eventContract.ts} +0 -0
- /package/src/{coordination/claimHeartbeatLoop.ts → claims/heartbeat.ts} +0 -0
- /package/src/{coordination/claimMeta.ts → claims/meta.ts} +0 -0
- /package/src/{coordination → claims}/targetConflict.ts +0 -0
- /package/src/{transactions → commit}/confirmation/idempotencyKey.ts +0 -0
- /package/src/{wire/feedCursor.ts → observation/cursor.ts} +0 -0
- /package/src/{wire/deltaDelivery.ts → observation/deliveryContract.ts} +0 -0
- /package/src/source/{adapterProfile.ts → adapters/adapterProfile.ts} +0 -0
|
@@ -10,8 +10,8 @@ import type { ParticipantKind } from '../types/participant.js';
|
|
|
10
10
|
* 1. Presence (observation): who is working where. It reports, never blocks.
|
|
11
11
|
* 2. Claims (pessimistic leases): `claim_begin` / `claim_abandon` grant one
|
|
12
12
|
* participant exclusive intent on a target while others wait.
|
|
13
|
-
* 3. Stale-context (optimistic): a `readAt` watermark
|
|
14
|
-
*
|
|
13
|
+
* 3. Stale-context (optimistic): a `readAt` watermark that rejects a lost
|
|
14
|
+
* update when the row moved after you read it.
|
|
15
15
|
*
|
|
16
16
|
* These Zod schemas are the single definition of each shape. Both the client
|
|
17
17
|
* SDK and the server derive their TypeScript types from them with `z.infer`
|
|
@@ -137,7 +137,7 @@ export type TargetRef = z.infer<typeof targetRefSchema>;
|
|
|
137
137
|
*
|
|
138
138
|
* Declared beside {@link targetRefSchema} because the two are the same shape in
|
|
139
139
|
* two spellings, and a member added to one belongs in the other. Both are read
|
|
140
|
-
* by
|
|
140
|
+
* by the claim family below, so this has to
|
|
141
141
|
* precede them.
|
|
142
142
|
*/
|
|
143
143
|
export declare const modelTargetSchema: z.ZodReadonly<z.ZodObject<{
|
|
@@ -148,473 +148,36 @@ export declare const modelTargetSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
148
148
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
149
149
|
}, z.core.$strip>>;
|
|
150
150
|
export type ModelTarget = z.infer<typeof modelTargetSchema>;
|
|
151
|
-
/**
|
|
152
|
-
* How the server treats a write whose snapshot watermark (`readAt`) is older
|
|
153
|
-
* than the target row's latest change. There are three dispositions:
|
|
154
|
-
* • `notify` — hold the write and return a {@link StaleNotification}
|
|
155
|
-
* carrying the current value, so the actor (agent or human)
|
|
156
|
-
* can resolve it.
|
|
157
|
-
* • `reject` — throw `AbloStaleContextError`, the default when `readAt`
|
|
158
|
-
* is present.
|
|
159
|
-
* • `overwrite` — apply the write blindly, last write wins, with no signal.
|
|
160
|
-
*/
|
|
161
|
-
export declare const onStaleModeSchema: z.ZodEnum<{
|
|
162
|
-
reject: "reject";
|
|
163
|
-
overwrite: "overwrite";
|
|
164
|
-
notify: "notify";
|
|
165
|
-
}>;
|
|
166
|
-
export type OnStaleMode = z.infer<typeof onStaleModeSchema>;
|
|
167
151
|
/** Maximum decision-input entries one logical commit may ask the server to scan. */
|
|
168
152
|
export declare const MAX_READ_SET_ENTRIES = 500;
|
|
169
|
-
/** A persisted entry cannot overwrite: it observes future writes, not its own. */
|
|
170
|
-
export declare const trackOnStaleSchema: z.ZodEnum<{
|
|
171
|
-
reject: "reject";
|
|
172
|
-
notify: "notify";
|
|
173
|
-
}>;
|
|
174
|
-
export type TrackOnStale = z.infer<typeof trackOnStaleSchema>;
|
|
175
153
|
/**
|
|
176
154
|
* The optimistic guard carried on a commit operation. `readAt` is the
|
|
177
|
-
* snapshot watermark
|
|
178
|
-
* `bypass` is the explicit, recorded override of a *foreign* pessimistic
|
|
179
|
-
* claim — see the claim layer below.
|
|
155
|
+
* snapshot watermark captured by `read` (null/absent ⇒ unguarded write).
|
|
180
156
|
*/
|
|
181
157
|
export declare const writeGuardSchema: z.ZodObject<{
|
|
182
158
|
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
183
|
-
onStale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
184
|
-
reject: "reject";
|
|
185
|
-
overwrite: "overwrite";
|
|
186
|
-
notify: "notify";
|
|
187
|
-
}>>>;
|
|
188
|
-
bypass: z.ZodOptional<z.ZodBoolean>;
|
|
189
159
|
}, z.core.$strip>;
|
|
190
160
|
export type WriteGuard = z.infer<typeof writeGuardSchema>;
|
|
191
|
-
/**
|
|
192
|
-
* How a change reached the premise that fired — the three ways a record joins a
|
|
193
|
-
* sync group, which is the vocabulary `RecordGroupSpec` already routes by
|
|
194
|
-
* (`selfKind` / `parents` / `transitive`) rather than a fourth name for it.
|
|
195
|
-
*
|
|
196
|
-
* Without this a group notification can only say "something in the group you
|
|
197
|
-
* read moved", and the cheapest correct response to that is to re-read the
|
|
198
|
-
* whole group. `via` plus the notification's `target` narrows it to the row
|
|
199
|
-
* that actually moved and how it got there, which is usually a one-row re-read.
|
|
200
|
-
*
|
|
201
|
-
* • `self` — the row that moved IS the group's scope root.
|
|
202
|
-
* • `parent` — it sits one declared containment edge below the root.
|
|
203
|
-
* • `transitive` — the root is ≥2 hops up (`comment → item → project`).
|
|
204
|
-
*/
|
|
205
|
-
export declare const stalePropagationSchema: z.ZodReadonly<z.ZodObject<{
|
|
206
|
-
via: z.ZodEnum<{
|
|
207
|
-
self: "self";
|
|
208
|
-
parent: "parent";
|
|
209
|
-
transitive: "transitive";
|
|
210
|
-
}>;
|
|
211
|
-
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
212
|
-
}, z.core.$strip>>;
|
|
213
|
-
export type StalePropagation = z.infer<typeof stalePropagationSchema>;
|
|
214
|
-
/** A premise on one row: that row moved. */
|
|
215
|
-
export declare const rowStaleNotificationSchema: z.ZodObject<{
|
|
216
|
-
object: z.ZodLiteral<"stale_notification">;
|
|
217
|
-
target: z.ZodReadonly<z.ZodObject<{
|
|
218
|
-
model: z.ZodString;
|
|
219
|
-
id: z.ZodString;
|
|
220
|
-
field: z.ZodOptional<z.ZodString>;
|
|
221
|
-
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
222
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
223
|
-
}, z.core.$strip>>;
|
|
224
|
-
readAt: z.ZodNumber;
|
|
225
|
-
observedSyncId: z.ZodNumber;
|
|
226
|
-
writtenBy: z.ZodObject<{
|
|
227
|
-
kind: z.ZodEnum<{
|
|
228
|
-
user: "user";
|
|
229
|
-
agent: "agent";
|
|
230
|
-
system: "system";
|
|
231
|
-
}>;
|
|
232
|
-
id: z.ZodString;
|
|
233
|
-
}, z.core.$strip>;
|
|
234
|
-
scope: z.ZodLiteral<"row">;
|
|
235
|
-
currentValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
236
|
-
}, z.core.$strip>;
|
|
237
|
-
export type RowStaleNotification = z.infer<typeof rowStaleNotificationSchema>;
|
|
238
|
-
/** A premise on a whole sync group: something in it moved. */
|
|
239
|
-
export declare const groupStaleNotificationSchema: z.ZodObject<{
|
|
240
|
-
object: z.ZodLiteral<"stale_notification">;
|
|
241
|
-
target: z.ZodReadonly<z.ZodObject<{
|
|
242
|
-
model: z.ZodString;
|
|
243
|
-
id: z.ZodString;
|
|
244
|
-
field: z.ZodOptional<z.ZodString>;
|
|
245
|
-
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
246
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
247
|
-
}, z.core.$strip>>;
|
|
248
|
-
readAt: z.ZodNumber;
|
|
249
|
-
observedSyncId: z.ZodNumber;
|
|
250
|
-
writtenBy: z.ZodObject<{
|
|
251
|
-
kind: z.ZodEnum<{
|
|
252
|
-
user: "user";
|
|
253
|
-
agent: "agent";
|
|
254
|
-
system: "system";
|
|
255
|
-
}>;
|
|
256
|
-
id: z.ZodString;
|
|
257
|
-
}, z.core.$strip>;
|
|
258
|
-
scope: z.ZodLiteral<"group">;
|
|
259
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
260
|
-
propagation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
261
|
-
via: z.ZodEnum<{
|
|
262
|
-
self: "self";
|
|
263
|
-
parent: "parent";
|
|
264
|
-
transitive: "transitive";
|
|
265
|
-
}>;
|
|
266
|
-
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
267
|
-
}, z.core.$strip>>>;
|
|
268
|
-
changed: z.ZodOptional<z.ZodObject<{
|
|
269
|
-
count: z.ZodNumber;
|
|
270
|
-
sample: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
271
|
-
model: z.ZodString;
|
|
272
|
-
id: z.ZodString;
|
|
273
|
-
field: z.ZodOptional<z.ZodString>;
|
|
274
|
-
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
275
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
276
|
-
}, z.core.$strip>>>>;
|
|
277
|
-
truncated: z.ZodBoolean;
|
|
278
|
-
}, z.core.$strip>>;
|
|
279
|
-
}, z.core.$strip>;
|
|
280
|
-
export type GroupStaleNotification = z.infer<typeof groupStaleNotificationSchema>;
|
|
281
|
-
/**
|
|
282
|
-
* One advisory, two scopes, told apart by `scope`.
|
|
283
|
-
*
|
|
284
|
-
* A real discriminated union rather than a flat object with an optional
|
|
285
|
-
* `group`, which is what {@link readDependencySchema} already does for the
|
|
286
|
-
* premise side. While it was flat, the two scopes disagreed about what their
|
|
287
|
-
* fields meant — `model`/`id` held a row in one and the group key in the other,
|
|
288
|
-
* and `conflictingFields`/`currentValues` were empty by construction in the
|
|
289
|
-
* group case — so every consumer had to re-derive the scope from `group`'s
|
|
290
|
-
* presence and read the prose to know which fields were load-bearing.
|
|
291
|
-
*/
|
|
292
|
-
export declare const staleNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
293
|
-
object: z.ZodLiteral<"stale_notification">;
|
|
294
|
-
target: z.ZodReadonly<z.ZodObject<{
|
|
295
|
-
model: z.ZodString;
|
|
296
|
-
id: z.ZodString;
|
|
297
|
-
field: z.ZodOptional<z.ZodString>;
|
|
298
|
-
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
299
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
300
|
-
}, z.core.$strip>>;
|
|
301
|
-
readAt: z.ZodNumber;
|
|
302
|
-
observedSyncId: z.ZodNumber;
|
|
303
|
-
writtenBy: z.ZodObject<{
|
|
304
|
-
kind: z.ZodEnum<{
|
|
305
|
-
user: "user";
|
|
306
|
-
agent: "agent";
|
|
307
|
-
system: "system";
|
|
308
|
-
}>;
|
|
309
|
-
id: z.ZodString;
|
|
310
|
-
}, z.core.$strip>;
|
|
311
|
-
scope: z.ZodLiteral<"row">;
|
|
312
|
-
currentValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
313
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
314
|
-
object: z.ZodLiteral<"stale_notification">;
|
|
315
|
-
target: z.ZodReadonly<z.ZodObject<{
|
|
316
|
-
model: z.ZodString;
|
|
317
|
-
id: z.ZodString;
|
|
318
|
-
field: z.ZodOptional<z.ZodString>;
|
|
319
|
-
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
320
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
321
|
-
}, z.core.$strip>>;
|
|
322
|
-
readAt: z.ZodNumber;
|
|
323
|
-
observedSyncId: z.ZodNumber;
|
|
324
|
-
writtenBy: z.ZodObject<{
|
|
325
|
-
kind: z.ZodEnum<{
|
|
326
|
-
user: "user";
|
|
327
|
-
agent: "agent";
|
|
328
|
-
system: "system";
|
|
329
|
-
}>;
|
|
330
|
-
id: z.ZodString;
|
|
331
|
-
}, z.core.$strip>;
|
|
332
|
-
scope: z.ZodLiteral<"group">;
|
|
333
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
334
|
-
propagation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
335
|
-
via: z.ZodEnum<{
|
|
336
|
-
self: "self";
|
|
337
|
-
parent: "parent";
|
|
338
|
-
transitive: "transitive";
|
|
339
|
-
}>;
|
|
340
|
-
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
341
|
-
}, z.core.$strip>>>;
|
|
342
|
-
changed: z.ZodOptional<z.ZodObject<{
|
|
343
|
-
count: z.ZodNumber;
|
|
344
|
-
sample: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
345
|
-
model: z.ZodString;
|
|
346
|
-
id: z.ZodString;
|
|
347
|
-
field: z.ZodOptional<z.ZodString>;
|
|
348
|
-
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
349
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
350
|
-
}, z.core.$strip>>>>;
|
|
351
|
-
truncated: z.ZodBoolean;
|
|
352
|
-
}, z.core.$strip>>;
|
|
353
|
-
}, z.core.$strip>], "scope">;
|
|
354
|
-
export type StaleNotification = z.infer<typeof staleNotificationSchema>;
|
|
355
|
-
/** One row named by a commit-lifetime ReadSet entry. */
|
|
356
|
-
export declare const readSetRowTargetSchema: z.ZodObject<{
|
|
357
|
-
scope: z.ZodLiteral<"row">;
|
|
358
|
-
model: z.ZodString;
|
|
359
|
-
id: z.ZodString;
|
|
360
|
-
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
361
|
-
}, z.core.$strip>;
|
|
362
|
-
export type ReadSetRowTarget = z.infer<typeof readSetRowTargetSchema>;
|
|
363
|
-
/** One sync group named by a ReadSet entry. */
|
|
364
|
-
export declare const readSetGroupTargetSchema: z.ZodObject<{
|
|
365
|
-
scope: z.ZodLiteral<"group">;
|
|
366
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
367
|
-
}, z.core.$strip>;
|
|
368
|
-
export type ReadSetGroupTarget = z.infer<typeof readSetGroupTargetSchema>;
|
|
369
|
-
export declare const commitReadSetTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
370
|
-
scope: z.ZodLiteral<"row">;
|
|
371
|
-
model: z.ZodString;
|
|
372
|
-
id: z.ZodString;
|
|
373
|
-
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
374
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
375
|
-
scope: z.ZodLiteral<"group">;
|
|
376
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
377
|
-
}, z.core.$strip>], "scope">;
|
|
378
|
-
export type CommitReadSetTarget = z.infer<typeof commitReadSetTargetSchema>;
|
|
379
|
-
/** Persisted row tracking is row-grained; it has no field storage axis. */
|
|
380
|
-
export declare const persistedReadSetRowTargetSchema: z.ZodObject<{
|
|
381
|
-
id: z.ZodString;
|
|
382
|
-
scope: z.ZodLiteral<"row">;
|
|
383
|
-
model: z.ZodString;
|
|
384
|
-
}, z.core.$strip>;
|
|
385
|
-
export declare const persistedReadSetTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
386
|
-
id: z.ZodString;
|
|
387
|
-
scope: z.ZodLiteral<"row">;
|
|
388
|
-
model: z.ZodString;
|
|
389
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
390
|
-
scope: z.ZodLiteral<"group">;
|
|
391
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
392
|
-
}, z.core.$strip>], "scope">;
|
|
393
|
-
export type PersistedReadSetTarget = z.infer<typeof persistedReadSetTargetSchema>;
|
|
394
|
-
/** One exact input to the decision made by this commit. */
|
|
395
|
-
export declare const commitReadSetEntrySchema: z.ZodObject<{
|
|
396
|
-
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
397
|
-
scope: z.ZodLiteral<"row">;
|
|
398
|
-
model: z.ZodString;
|
|
399
|
-
id: z.ZodString;
|
|
400
|
-
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
401
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
402
|
-
scope: z.ZodLiteral<"group">;
|
|
403
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
404
|
-
}, z.core.$strip>], "scope">;
|
|
405
|
-
watermark: z.ZodNumber;
|
|
406
|
-
lifetime: z.ZodLiteral<"commit">;
|
|
407
|
-
onStale: z.ZodEnum<{
|
|
408
|
-
reject: "reject";
|
|
409
|
-
overwrite: "overwrite";
|
|
410
|
-
notify: "notify";
|
|
411
|
-
}>;
|
|
412
|
-
}, z.core.$strip>;
|
|
413
|
-
export type CommitReadSetEntry = z.infer<typeof commitReadSetEntrySchema>;
|
|
414
|
-
/** One exact input retained after the declaring commit settles. */
|
|
415
|
-
export declare const persistedReadSetEntrySchema: z.ZodObject<{
|
|
416
|
-
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
417
|
-
id: z.ZodString;
|
|
418
|
-
scope: z.ZodLiteral<"row">;
|
|
419
|
-
model: z.ZodString;
|
|
420
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
421
|
-
scope: z.ZodLiteral<"group">;
|
|
422
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
423
|
-
}, z.core.$strip>], "scope">;
|
|
424
|
-
watermark: z.ZodNumber;
|
|
425
|
-
lifetime: z.ZodLiteral<"persisted">;
|
|
426
|
-
onStale: z.ZodEnum<{
|
|
427
|
-
reject: "reject";
|
|
428
|
-
notify: "notify";
|
|
429
|
-
}>;
|
|
430
|
-
}, z.core.$strip>;
|
|
431
|
-
export type PersistedReadSetEntry = z.infer<typeof persistedReadSetEntrySchema>;
|
|
432
|
-
export declare const readSetEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
433
|
-
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
434
|
-
scope: z.ZodLiteral<"row">;
|
|
435
|
-
model: z.ZodString;
|
|
436
|
-
id: z.ZodString;
|
|
437
|
-
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
438
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
439
|
-
scope: z.ZodLiteral<"group">;
|
|
440
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
441
|
-
}, z.core.$strip>], "scope">;
|
|
442
|
-
watermark: z.ZodNumber;
|
|
443
|
-
lifetime: z.ZodLiteral<"commit">;
|
|
444
|
-
onStale: z.ZodEnum<{
|
|
445
|
-
reject: "reject";
|
|
446
|
-
overwrite: "overwrite";
|
|
447
|
-
notify: "notify";
|
|
448
|
-
}>;
|
|
449
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
450
|
-
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
451
|
-
id: z.ZodString;
|
|
452
|
-
scope: z.ZodLiteral<"row">;
|
|
453
|
-
model: z.ZodString;
|
|
454
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
455
|
-
scope: z.ZodLiteral<"group">;
|
|
456
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
457
|
-
}, z.core.$strip>], "scope">;
|
|
458
|
-
watermark: z.ZodNumber;
|
|
459
|
-
lifetime: z.ZodLiteral<"persisted">;
|
|
460
|
-
onStale: z.ZodEnum<{
|
|
461
|
-
reject: "reject";
|
|
462
|
-
notify: "notify";
|
|
463
|
-
}>;
|
|
464
|
-
}, z.core.$strip>], "lifetime">;
|
|
465
|
-
export type ReadSetEntry = z.infer<typeof readSetEntrySchema>;
|
|
466
|
-
export declare const readSetSchema: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
467
|
-
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
468
|
-
scope: z.ZodLiteral<"row">;
|
|
469
|
-
model: z.ZodString;
|
|
470
|
-
id: z.ZodString;
|
|
471
|
-
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
472
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
473
|
-
scope: z.ZodLiteral<"group">;
|
|
474
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
475
|
-
}, z.core.$strip>], "scope">;
|
|
476
|
-
watermark: z.ZodNumber;
|
|
477
|
-
lifetime: z.ZodLiteral<"commit">;
|
|
478
|
-
onStale: z.ZodEnum<{
|
|
479
|
-
reject: "reject";
|
|
480
|
-
overwrite: "overwrite";
|
|
481
|
-
notify: "notify";
|
|
482
|
-
}>;
|
|
483
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
484
|
-
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
485
|
-
id: z.ZodString;
|
|
486
|
-
scope: z.ZodLiteral<"row">;
|
|
487
|
-
model: z.ZodString;
|
|
488
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
489
|
-
scope: z.ZodLiteral<"group">;
|
|
490
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
491
|
-
}, z.core.$strip>], "scope">;
|
|
492
|
-
watermark: z.ZodNumber;
|
|
493
|
-
lifetime: z.ZodLiteral<"persisted">;
|
|
494
|
-
onStale: z.ZodEnum<{
|
|
495
|
-
reject: "reject";
|
|
496
|
-
notify: "notify";
|
|
497
|
-
}>;
|
|
498
|
-
}, z.core.$strip>], "lifetime">>>;
|
|
499
|
-
export type ReadSet = z.infer<typeof readSetSchema>;
|
|
500
161
|
export declare const readDependencySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
162
|
+
model: z.ZodString;
|
|
501
163
|
id: z.ZodString;
|
|
502
164
|
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
503
|
-
model: z.ZodString;
|
|
504
165
|
readAt: z.ZodNumber;
|
|
505
|
-
onStale: z.ZodOptional<z.ZodEnum<{
|
|
506
|
-
reject: "reject";
|
|
507
|
-
overwrite: "overwrite";
|
|
508
|
-
notify: "notify";
|
|
509
|
-
}>>;
|
|
510
166
|
}, z.core.$strip>, z.ZodObject<{
|
|
511
167
|
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
512
168
|
readAt: z.ZodNumber;
|
|
513
|
-
onStale: z.ZodOptional<z.ZodEnum<{
|
|
514
|
-
reject: "reject";
|
|
515
|
-
overwrite: "overwrite";
|
|
516
|
-
notify: "notify";
|
|
517
|
-
}>>;
|
|
518
169
|
}, z.core.$strip>]>;
|
|
519
170
|
export type ReadDependency = z.infer<typeof readDependencySchema>;
|
|
520
|
-
/**
|
|
521
|
-
* A durable ReadSet entry — what a participant is watching so that a later
|
|
522
|
-
* change to it opens a {@link StaleNotification}. Where a {@link ReadDependency}
|
|
523
|
-
* is checked once at commit and discarded, a `TrackDependency` is kept and
|
|
524
|
-
* re-checked against every future delta. The row form watches one object; the
|
|
525
|
-
* group form watches a whole sync group ("anything in `report:abc`"). See
|
|
526
|
-
* `packages/ablo/docs/groups.md` for how it drives change propagation.
|
|
527
|
-
*
|
|
528
|
-
* It is a projection of the canonical persisted entry, not a second declaration of the
|
|
529
|
-
* same reference: a track names its target exactly as a read does, and the
|
|
530
|
-
* three ways it differs are stated here as omissions the compiler holds.
|
|
531
|
-
*
|
|
532
|
-
* • `onStale` NARROWED, not dropped — `notify` (the default) reports the
|
|
533
|
-
* change on the tracker's next receipt and lets the commit through;
|
|
534
|
-
* `reject` refuses that commit while the belief is stale, so an agent
|
|
535
|
-
* cannot write on something it has been shown to be out of date about.
|
|
536
|
-
* `overwrite` is excluded because it means "apply my write anyway" and a
|
|
537
|
-
* track guards no write of its own to apply;
|
|
538
|
-
* • no `fields` — a track fires at row grain, because the server keeps one
|
|
539
|
-
* row per tracked target and reports that the target moved, not which
|
|
540
|
-
* column did (`track_dependencies` has no field axis to store one in);
|
|
541
|
-
* • `readAt` optional — it defaults to the watermark of the commit that
|
|
542
|
-
* registered the track, so a caller with nothing to say about when it last
|
|
543
|
-
* looked gets "from here on".
|
|
544
|
-
*
|
|
545
|
-
* A field added to the ReadSet target reaches both halves; a field the durable half
|
|
546
|
-
* genuinely cannot carry has to be omitted here on purpose, in one line, rather
|
|
547
|
-
* than by being quietly left out of a copy.
|
|
548
|
-
*/
|
|
549
|
-
/**
|
|
550
|
-
* What a track does when the caller says nothing — reporting, the behavior every
|
|
551
|
-
* track had before the disposition existed, so an existing registration is
|
|
552
|
-
* unchanged.
|
|
553
|
-
*
|
|
554
|
-
* Declared here because the value has to agree in three places that cannot
|
|
555
|
-
* import each other: this schema, the column DEFAULT, and the server's insert.
|
|
556
|
-
* The two SQL copies are pinned to this one by a test
|
|
557
|
-
* (`trackOnStaleDomain.test.ts`) rather than by anyone remembering.
|
|
558
|
-
*/
|
|
559
|
-
export declare const DEFAULT_TRACK_ON_STALE: TrackOnStale;
|
|
560
|
-
export declare const trackDependencySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
561
|
-
id: z.ZodString;
|
|
562
|
-
model: z.ZodString;
|
|
563
|
-
readAt: z.ZodOptional<z.ZodNumber>;
|
|
564
|
-
onStale: z.ZodOptional<z.ZodEnum<{
|
|
565
|
-
reject: "reject";
|
|
566
|
-
notify: "notify";
|
|
567
|
-
}>>;
|
|
568
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
569
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
570
|
-
readAt: z.ZodOptional<z.ZodNumber>;
|
|
571
|
-
onStale: z.ZodOptional<z.ZodEnum<{
|
|
572
|
-
reject: "reject";
|
|
573
|
-
notify: "notify";
|
|
574
|
-
}>>;
|
|
575
|
-
}, z.core.$strip>]>;
|
|
576
|
-
export type TrackDependency = z.infer<typeof trackDependencySchema>;
|
|
577
|
-
/** Bounded wire projections of the two ReadSet lifetimes. */
|
|
171
|
+
/** Bounded wire projection of one commit's reads. */
|
|
578
172
|
export declare const readDependencyListSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
173
|
+
model: z.ZodString;
|
|
579
174
|
id: z.ZodString;
|
|
580
175
|
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
581
|
-
model: z.ZodString;
|
|
582
176
|
readAt: z.ZodNumber;
|
|
583
|
-
onStale: z.ZodOptional<z.ZodEnum<{
|
|
584
|
-
reject: "reject";
|
|
585
|
-
overwrite: "overwrite";
|
|
586
|
-
notify: "notify";
|
|
587
|
-
}>>;
|
|
588
177
|
}, z.core.$strip>, z.ZodObject<{
|
|
589
178
|
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
590
179
|
readAt: z.ZodNumber;
|
|
591
|
-
onStale: z.ZodOptional<z.ZodEnum<{
|
|
592
|
-
reject: "reject";
|
|
593
|
-
overwrite: "overwrite";
|
|
594
|
-
notify: "notify";
|
|
595
|
-
}>>;
|
|
596
180
|
}, z.core.$strip>]>>;
|
|
597
|
-
export declare const trackDependencyListSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
598
|
-
id: z.ZodString;
|
|
599
|
-
model: z.ZodString;
|
|
600
|
-
readAt: z.ZodOptional<z.ZodNumber>;
|
|
601
|
-
onStale: z.ZodOptional<z.ZodEnum<{
|
|
602
|
-
reject: "reject";
|
|
603
|
-
notify: "notify";
|
|
604
|
-
}>>;
|
|
605
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
606
|
-
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
607
|
-
readAt: z.ZodOptional<z.ZodNumber>;
|
|
608
|
-
onStale: z.ZodOptional<z.ZodEnum<{
|
|
609
|
-
reject: "reject";
|
|
610
|
-
notify: "notify";
|
|
611
|
-
}>>;
|
|
612
|
-
}, z.core.$strip>]>>;
|
|
613
|
-
/** Shared combined-cardinality rule for envelopes carrying both projections. */
|
|
614
|
-
export declare function readSetProjectionEntryCount(value: {
|
|
615
|
-
readonly reads?: readonly unknown[] | null;
|
|
616
|
-
readonly track?: readonly unknown[] | null;
|
|
617
|
-
}): number;
|
|
618
181
|
/**
|
|
619
182
|
* The lifecycle of a claim. When absent on the wire it means `'active'` (an
|
|
620
183
|
* additive back-compat default). The server stamps `'active'` on `claim_begin`
|
|
@@ -716,7 +279,6 @@ export declare const claimErrorSchema: z.ZodObject<{
|
|
|
716
279
|
}>>>>;
|
|
717
280
|
capabilityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
718
281
|
}, z.core.$strip>>;
|
|
719
|
-
policyReason: z.ZodOptional<z.ZodString>;
|
|
720
282
|
}, z.core.$strip>;
|
|
721
283
|
export type ClaimError = z.infer<typeof claimErrorSchema>;
|
|
722
284
|
/**
|
|
@@ -801,7 +363,6 @@ export declare const wireClaimSchema: z.ZodObject<{
|
|
|
801
363
|
}>>>>;
|
|
802
364
|
capabilityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
803
365
|
}, z.core.$strip>>;
|
|
804
|
-
policyReason: z.ZodOptional<z.ZodString>;
|
|
805
366
|
}, z.core.$strip>>;
|
|
806
367
|
}, z.core.$strip>;
|
|
807
368
|
export type WireClaim = z.infer<typeof wireClaimSchema>;
|
|
@@ -848,7 +409,7 @@ export declare const claimRejectionSchema: z.ZodObject<{
|
|
|
848
409
|
}>>>>;
|
|
849
410
|
capabilityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
850
411
|
}, z.core.$strip>>;
|
|
851
|
-
|
|
412
|
+
message: z.ZodOptional<z.ZodString>;
|
|
852
413
|
}, z.core.$strip>;
|
|
853
414
|
export type ClaimRejection = z.infer<typeof claimRejectionSchema>;
|
|
854
415
|
/**
|
|
@@ -963,7 +524,7 @@ export declare const claimQueuedSchema: z.ZodObject<{
|
|
|
963
524
|
}>>>>;
|
|
964
525
|
capabilityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
965
526
|
}, z.core.$strip>>;
|
|
966
|
-
|
|
527
|
+
message: z.ZodOptional<z.ZodString>;
|
|
967
528
|
position: z.ZodNumber;
|
|
968
529
|
reason: z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
969
530
|
conflict: "conflict";
|
|
@@ -1073,7 +634,7 @@ export type HeldClaimStatus = z.infer<typeof heldClaimStatusSchema>;
|
|
|
1073
634
|
*
|
|
1074
635
|
* Every caller-facing surface that answers a question about a claim is a
|
|
1075
636
|
* PROJECTION of this record, never a second object: {@link modelClaimSchema} is
|
|
1076
|
-
* what a peer may see, and `claimStateSchema` (`
|
|
637
|
+
* what a peer may see, and `claimStateSchema` (`claims/contract.ts`) is what a
|
|
1077
638
|
* caller polls about a claim of its own. Each is pinned to this record, so a
|
|
1078
639
|
* field added here either reaches the people it was declared for or fails to
|
|
1079
640
|
* compile.
|
|
@@ -1364,18 +925,12 @@ export declare const commitOperationTypeSchema: z.ZodEnum<{
|
|
|
1364
925
|
export type CommitOperationType = z.infer<typeof commitOperationTypeSchema>;
|
|
1365
926
|
/**
|
|
1366
927
|
* A single mutation in a commit batch, as it arrives on the wire. Extends the
|
|
1367
|
-
* optimistic `writeGuard` (`readAt
|
|
928
|
+
* optimistic `writeGuard` (`readAt`) — the structural link
|
|
1368
929
|
* that makes "every write is stale-guarded" legible in the type, not just in
|
|
1369
930
|
* prose.
|
|
1370
931
|
*/
|
|
1371
932
|
export declare const commitOperationSchema: z.ZodObject<{
|
|
1372
933
|
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1373
|
-
onStale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1374
|
-
reject: "reject";
|
|
1375
|
-
overwrite: "overwrite";
|
|
1376
|
-
notify: "notify";
|
|
1377
|
-
}>>>;
|
|
1378
|
-
bypass: z.ZodOptional<z.ZodBoolean>;
|
|
1379
934
|
type: z.ZodEnum<{
|
|
1380
935
|
CREATE: "CREATE";
|
|
1381
936
|
UPDATE: "UPDATE";
|
|
@@ -1516,7 +1071,6 @@ export declare const presenceUpdateSchema: z.ZodObject<{
|
|
|
1516
1071
|
}>>>>;
|
|
1517
1072
|
capabilityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1518
1073
|
}, z.core.$strip>>;
|
|
1519
|
-
policyReason: z.ZodOptional<z.ZodString>;
|
|
1520
1074
|
}, z.core.$strip>>;
|
|
1521
1075
|
}, z.core.$strip>>>;
|
|
1522
1076
|
delegatedFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1608,7 +1162,6 @@ export declare const presenceUpdateFrameSchema: z.ZodObject<{
|
|
|
1608
1162
|
}>>>>;
|
|
1609
1163
|
capabilityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1610
1164
|
}, z.core.$strip>>;
|
|
1611
|
-
policyReason: z.ZodOptional<z.ZodString>;
|
|
1612
1165
|
}, z.core.$strip>>;
|
|
1613
1166
|
}, z.core.$strip>>>;
|
|
1614
1167
|
delegatedFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1704,7 +1257,6 @@ export declare const presenceUpdatePayloadSchema: z.ZodObject<{
|
|
|
1704
1257
|
}>>>>;
|
|
1705
1258
|
capabilityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1706
1259
|
}, z.core.$strip>>;
|
|
1707
|
-
policyReason: z.ZodOptional<z.ZodString>;
|
|
1708
1260
|
}, z.core.$strip>>;
|
|
1709
1261
|
}, z.core.$strip>>>;
|
|
1710
1262
|
timezone: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/coordination/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG/D;;;;;;;;;;;;;;;GAeG;AAMH;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAE5C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAGrE;AAsBD,eAAO,MAAM,qBAAqB;;;;EAAsC,CAAC;AAIzE,YAAY,EAAE,eAAe,EA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