@abloatai/transaction 0.56.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 +54 -10
- 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 +92 -77
- package/dist/client/resources/httpResources.d.ts.map +1 -0
- package/dist/client/resources/httpResources.js +94 -0
- package/dist/client/resources/httpResources.js.map +1 -0
- package/dist/client/resources/modelCreate.d.ts +21 -0
- package/dist/client/resources/modelCreate.d.ts.map +1 -0
- package/dist/client/resources/modelCreate.js +49 -0
- package/dist/client/resources/modelCreate.js.map +1 -0
- package/dist/{resources → client/resources}/modelOperations.d.ts +57 -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 +16 -35
- package/dist/client/resources/writeOptionsSchema.d.ts.map +1 -0
- package/dist/{resources → client/resources}/writeOptionsSchema.js +25 -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} +26 -21
- 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/commit/httpRequest.d.ts +45 -0
- package/dist/commit/httpRequest.d.ts.map +1 -0
- package/dist/commit/httpRequest.js +66 -0
- 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} +18 -28
- 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 -466
- package/dist/coordination/schema.d.ts.map +1 -1
- package/dist/coordination/schema.js +13 -265
- package/dist/coordination/schema.js.map +1 -1
- package/dist/errorCodes.d.ts +16 -9
- package/dist/errorCodes.d.ts.map +1 -1
- package/dist/errorCodes.js +14 -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/audit.d.ts +15 -0
- package/dist/schema/audit.d.ts.map +1 -0
- package/dist/schema/audit.js +90 -0
- package/dist/schema/audit.js.map +1 -0
- package/dist/schema/ddl.d.ts.map +1 -1
- package/dist/schema/ddl.js +68 -1
- package/dist/schema/ddl.js.map +1 -1
- package/dist/schema/index.d.ts +7 -6
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +6 -7
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/model.d.ts +14 -27
- package/dist/schema/model.d.ts.map +1 -1
- package/dist/schema/model.js +2 -2
- package/dist/schema/model.js.map +1 -1
- package/dist/schema/openapi.d.ts.map +1 -1
- package/dist/schema/openapi.js +149 -8
- package/dist/schema/openapi.js.map +1 -1
- package/dist/schema/roles.d.ts +27 -0
- package/dist/schema/roles.d.ts.map +1 -1
- package/dist/schema/roles.js +40 -0
- package/dist/schema/roles.js.map +1 -1
- package/dist/schema/schema.d.ts +34 -7
- package/dist/schema/schema.d.ts.map +1 -1
- package/dist/schema/schema.js +39 -3
- package/dist/schema/schema.js.map +1 -1
- package/dist/schema/serialize.d.ts +5 -5
- package/dist/schema/serialize.d.ts.map +1 -1
- package/dist/schema/serialize.js +5 -5
- package/dist/schema/serialize.js.map +1 -1
- package/dist/schema/subject.d.ts +18 -0
- package/dist/schema/subject.d.ts.map +1 -0
- package/dist/schema/subject.js +27 -0
- package/dist/schema/subject.js.map +1 -0
- package/dist/schema/tenancy.d.ts +1 -1
- package/dist/server/adapter.d.ts +3 -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/readConfig.d.ts +3 -0
- package/dist/server/readConfig.d.ts.map +1 -1
- package/dist/server/readConfig.js +0 -21
- package/dist/server/readConfig.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} +20 -75
- package/dist/source/adapters/contract.d.ts.map +1 -0
- package/dist/source/{contract.js → adapters/contract.js} +20 -55
- 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 +54 -25
- 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 +3 -1
- package/dist/source/adapters/kysely.d.ts.map +1 -1
- package/dist/source/adapters/kysely.js +49 -23
- package/dist/source/adapters/kysely.js.map +1 -1
- package/dist/source/adapters/kyselyMutationCore.d.ts +6 -3
- package/dist/source/adapters/kyselyMutationCore.d.ts.map +1 -1
- package/dist/source/adapters/kyselyMutationCore.js +17 -8
- 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 +20 -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 -31
- 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 +75 -30
- package/dist/source/adapters/prisma.js.map +1 -1
- package/dist/source/adapters/subjectAuthorization.d.ts +16 -0
- package/dist/source/adapters/subjectAuthorization.d.ts.map +1 -0
- package/dist/source/adapters/subjectAuthorization.js +126 -0
- 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} +9 -3
- package/dist/source/endpoint/factory.d.ts.map +1 -0
- package/dist/source/{factory.js → endpoint/factory.js} +122 -6
- 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 +15 -12
- package/dist/source/index.d.ts.map +1 -1
- package/dist/source/index.js +13 -10
- 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 +59 -10
- package/dist/source/types.d.ts.map +1 -1
- package/dist/source/types.js +2 -0
- package/dist/source/types.js.map +1 -1
- package/dist/syncLog/contract.d.ts +19 -8
- package/dist/syncLog/contract.d.ts.map +1 -1
- package/dist/syncLog/contract.js +19 -6
- package/dist/syncLog/contract.js.map +1 -1
- package/dist/testing/fixtures/httpResponses.d.ts +6 -0
- package/dist/testing/fixtures/httpResponses.d.ts.map +1 -1
- package/dist/testing/fixtures/httpResponses.js +1 -0
- package/dist/testing/fixtures/httpResponses.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} +32 -44
- package/dist/transport/http/client.d.ts.map +1 -0
- package/dist/transport/{httpClient.js → http/client.js} +96 -105
- package/dist/transport/http/client.js.map +1 -0
- package/dist/transport/http/helpers.d.ts +10 -0
- package/dist/transport/http/helpers.d.ts.map +1 -0
- package/dist/transport/http/helpers.js +46 -0
- 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} +153 -188
- 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/apiLifecycle.d.ts +63 -0
- package/dist/wire/apiLifecycle.d.ts.map +1 -0
- package/dist/wire/apiLifecycle.js +89 -0
- package/dist/wire/apiLifecycle.js.map +1 -0
- 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 +20 -15
- package/dist/wire/index.d.ts.map +1 -1
- package/dist/wire/index.js +22 -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/dist/wire/rateLimit.d.ts +82 -0
- package/dist/wire/rateLimit.d.ts.map +1 -0
- package/dist/wire/rateLimit.js +142 -0
- package/dist/wire/rateLimit.js.map +1 -0
- 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 +163 -92
- package/src/client/resources/modelCreate.ts +73 -0
- package/src/{resources → client/resources}/modelOperations.ts +73 -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 +35 -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} +27 -26
- package/src/{durableWrites.ts → commit/durableWrites.ts} +7 -7
- package/src/commit/httpRequest.ts +103 -0
- package/src/commit/index.ts +16 -0
- package/src/{readSetContext.ts → commit/readSetContext.ts} +24 -43
- package/src/{commitRecordRuntime.ts → commit/recordRuntime.ts} +12 -67
- package/src/coordination/index.ts +4 -54
- package/src/coordination/schema.ts +15 -309
- package/src/errorCodes.ts +62 -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/audit.ts +121 -0
- package/src/schema/ddl.ts +71 -1
- package/src/schema/index.ts +20 -20
- package/src/schema/model.ts +17 -33
- package/src/schema/openapi.ts +170 -9
- package/src/schema/roles.ts +53 -0
- package/src/schema/schema.ts +91 -6
- package/src/schema/serialize.ts +8 -9
- package/src/schema/subject.ts +43 -0
- package/src/server/adapter.ts +3 -1
- package/src/server/commit.ts +6 -14
- package/src/server/index.ts +1 -1
- package/src/server/readConfig.ts +4 -0
- 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} +24 -61
- package/src/source/adapters/drizzle.ts +75 -29
- package/src/source/{idempotency.ts → adapters/idempotency.ts} +2 -2
- package/src/source/adapters/index.ts +20 -0
- package/src/source/adapters/kysely.ts +77 -27
- package/src/source/adapters/kyselyMutationCore.ts +23 -11
- package/src/source/adapters/memory.ts +26 -9
- package/src/source/adapters/migration.ts +11 -0
- package/src/source/{migrations.ts → adapters/migrations.ts} +6 -33
- package/src/source/adapters/prisma.ts +98 -34
- package/src/source/adapters/subjectAuthorization.ts +182 -0
- 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} +150 -9
- 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 +27 -18
- 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 +64 -10
- package/src/syncLog/contract.ts +19 -9
- package/src/testing/fixtures/httpResponses.ts +7 -0
- 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} +165 -184
- package/src/transport/http/helpers.ts +63 -0
- 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} +210 -246
- 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/apiLifecycle.ts +94 -0
- package/src/wire/frames.ts +5 -15
- package/src/wire/inboundFrames.ts +3 -3
- package/src/wire/index.ts +50 -15
- package/src/wire/modelMutations.ts +1 -14
- package/src/wire/rateLimit.ts +155 -0
- 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 +0 -17
- package/dist/resources/httpResources.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/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/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/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 -2801
- 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
|
@@ -0,0 +1,1404 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical runtime contracts for commit status.
|
|
3
|
+
*
|
|
4
|
+
* A commit crosses several boundaries during its lifetime: the server's
|
|
5
|
+
* execution cache, the HTTP/WS receipt, and the client's acknowledgement
|
|
6
|
+
* tracker. Those boundaries intentionally have different envelopes, but they
|
|
7
|
+
* all compose the same lifecycle vocabulary from this module:
|
|
8
|
+
*
|
|
9
|
+
* - `confirmed` — the authoritative change is visible through `lastSyncId`.
|
|
10
|
+
* - `queued` — a connected source durably accepted the write and only its
|
|
11
|
+
* correlated authoritative source delta (WAL for direct, endpoint event
|
|
12
|
+
* for endpoint-only), identified by `correlationId`, may promote it.
|
|
13
|
+
*
|
|
14
|
+
* Keeping the variants discriminated here makes an impossible receipt (most
|
|
15
|
+
* importantly, `queued` without a correlation) unrepresentable at every
|
|
16
|
+
* untrusted boundary without collapsing the distinct lifecycle envelopes into
|
|
17
|
+
* one giant object.
|
|
18
|
+
*/
|
|
19
|
+
import { z } from 'zod';
|
|
20
|
+
/** Matches the permanent source/idempotency-key ceiling. */
|
|
21
|
+
export declare const COMMIT_CORRELATION_ID_MAX_LENGTH = 255;
|
|
22
|
+
/** Opaque server-authored identity shared by a queued receipt and its authoritative source delta. */
|
|
23
|
+
export declare const correlationIdSchema: z.ZodString;
|
|
24
|
+
export type CorrelationId = z.infer<typeof correlationIdSchema>;
|
|
25
|
+
/** Public, server-authored commit timestamps. */
|
|
26
|
+
export declare const commitTimestampSchema: z.ZodISODateTime;
|
|
27
|
+
export declare const queuedStatusSchema: z.ZodLiteral<"queued">;
|
|
28
|
+
export declare const confirmedStatusSchema: z.ZodLiteral<"confirmed">;
|
|
29
|
+
export declare const rejectedStatusSchema: z.ZodLiteral<"rejected">;
|
|
30
|
+
export declare const queuedCommitStatusSchema: z.ZodObject<{
|
|
31
|
+
status: z.ZodLiteral<"queued">;
|
|
32
|
+
statusAt: z.ZodISODateTime;
|
|
33
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
34
|
+
correlationId: z.ZodString;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
export declare const confirmedCommitStatusSchema: z.ZodObject<{
|
|
37
|
+
status: z.ZodLiteral<"confirmed">;
|
|
38
|
+
statusAt: z.ZodISODateTime;
|
|
39
|
+
lastSyncId: z.ZodNumber;
|
|
40
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
export declare const rejectedCommitStatusSchema: z.ZodObject<{
|
|
43
|
+
status: z.ZodLiteral<"rejected">;
|
|
44
|
+
statusAt: z.ZodISODateTime;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
/** The single semantic owner of the complete commit lifecycle fact. */
|
|
47
|
+
export declare const commitStatusSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
48
|
+
status: z.ZodLiteral<"queued">;
|
|
49
|
+
statusAt: z.ZodISODateTime;
|
|
50
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
51
|
+
correlationId: z.ZodString;
|
|
52
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
53
|
+
status: z.ZodLiteral<"confirmed">;
|
|
54
|
+
statusAt: z.ZodISODateTime;
|
|
55
|
+
lastSyncId: z.ZodNumber;
|
|
56
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
58
|
+
status: z.ZodLiteral<"rejected">;
|
|
59
|
+
statusAt: z.ZodISODateTime;
|
|
60
|
+
}, z.core.$strict>], "status">;
|
|
61
|
+
export type CommitStatusValue = z.infer<typeof commitStatusSchema>;
|
|
62
|
+
export type CommitStatus = CommitStatusValue['status'];
|
|
63
|
+
/**
|
|
64
|
+
* The lifecycle states a write may block on — extracted from the reported
|
|
65
|
+
* vocabulary above, never restated beside it. `commitStatusSchema` is every
|
|
66
|
+
* state a server can report; this is the subset a caller can usefully wait for,
|
|
67
|
+
* and the two are not the same question: one describes an outcome, the other a
|
|
68
|
+
* request.
|
|
69
|
+
*
|
|
70
|
+
* `.extract` keeps the relationship mechanical in both directions. Renaming a
|
|
71
|
+
* lifecycle state breaks this line at build time, and adding one that nobody
|
|
72
|
+
* can block on — a commit parked for a human, say — does not become a legal
|
|
73
|
+
* `wait` merely by being added above. Both the `wait` option's runtime
|
|
74
|
+
* validator and its interface derive from here, so they cannot disagree.
|
|
75
|
+
*/
|
|
76
|
+
export declare const commitWaitSchema: z.ZodUnion<readonly [z.ZodLiteral<"queued">, z.ZodLiteral<"confirmed">]>;
|
|
77
|
+
export type CommitWait = z.infer<typeof commitWaitSchema>;
|
|
78
|
+
export declare const commitOperationOutcomeSchema: z.ZodEnum<{
|
|
79
|
+
deleted: "deleted";
|
|
80
|
+
created: "created";
|
|
81
|
+
updated: "updated";
|
|
82
|
+
archived: "archived";
|
|
83
|
+
unarchived: "unarchived";
|
|
84
|
+
}>;
|
|
85
|
+
export declare const commitOperationResultSchema: z.ZodObject<{
|
|
86
|
+
transactionId: z.ZodString;
|
|
87
|
+
outcome: z.ZodEnum<{
|
|
88
|
+
deleted: "deleted";
|
|
89
|
+
created: "created";
|
|
90
|
+
updated: "updated";
|
|
91
|
+
archived: "archived";
|
|
92
|
+
unarchived: "unarchived";
|
|
93
|
+
}>;
|
|
94
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
export type CommitOperationResult<Row extends Record<string, unknown> = Record<string, unknown>> = Omit<z.infer<typeof commitOperationResultSchema>, 'row'> & {
|
|
97
|
+
readonly row: Row;
|
|
98
|
+
};
|
|
99
|
+
export declare const commitActorSchema: z.ZodObject<{
|
|
100
|
+
kind: z.ZodEnum<{
|
|
101
|
+
user: "user";
|
|
102
|
+
agent: "agent";
|
|
103
|
+
system: "system";
|
|
104
|
+
}>;
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
export type CommitActor = z.infer<typeof commitActorSchema>;
|
|
108
|
+
export declare const commitAttemptSchema: z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
observedAt: z.ZodISODateTime;
|
|
111
|
+
transport: z.ZodEnum<{
|
|
112
|
+
internal: "internal";
|
|
113
|
+
http: "http";
|
|
114
|
+
websocket: "websocket";
|
|
115
|
+
}>;
|
|
116
|
+
kind: z.ZodEnum<{
|
|
117
|
+
execution: "execution";
|
|
118
|
+
replay: "replay";
|
|
119
|
+
}>;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
export type CommitAttempt = z.infer<typeof commitAttemptSchema>;
|
|
122
|
+
export declare const commitClaimReferenceSchema: z.ZodObject<{
|
|
123
|
+
id: z.ZodString;
|
|
124
|
+
target: z.ZodObject<{
|
|
125
|
+
scope: z.ZodLiteral<"row">;
|
|
126
|
+
model: z.ZodString;
|
|
127
|
+
id: z.ZodString;
|
|
128
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
fenceToken: z.ZodNumber;
|
|
131
|
+
}, z.core.$strict>;
|
|
132
|
+
export type CommitClaimReference = z.infer<typeof commitClaimReferenceSchema>;
|
|
133
|
+
/**
|
|
134
|
+
* Successful HTTP/WS receipt. This schema is deliberately strict about the
|
|
135
|
+
* lifecycle discriminant. Zod's default object behavior strips additive
|
|
136
|
+
* fields, which is forward compatible without allowing server-internal
|
|
137
|
+
* recovery evidence to leak through a parsed wire receipt.
|
|
138
|
+
*/
|
|
139
|
+
export declare const commitReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
140
|
+
status: z.ZodLiteral<"queued">;
|
|
141
|
+
statusAt: z.ZodISODateTime;
|
|
142
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
143
|
+
correlationId: z.ZodString;
|
|
144
|
+
object: z.ZodLiteral<"commit_receipt">;
|
|
145
|
+
id: z.ZodOptional<z.ZodString>;
|
|
146
|
+
clientTxId: z.ZodString;
|
|
147
|
+
serverTxId: z.ZodString;
|
|
148
|
+
createdAt: z.ZodISODateTime;
|
|
149
|
+
success: z.ZodLiteral<true>;
|
|
150
|
+
ops: z.ZodNumber;
|
|
151
|
+
authority: z.ZodObject<{
|
|
152
|
+
organizationId: z.ZodString;
|
|
153
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
154
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
155
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
156
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
157
|
+
participantKind: z.ZodEnum<{
|
|
158
|
+
user: "user";
|
|
159
|
+
agent: "agent";
|
|
160
|
+
system: "system";
|
|
161
|
+
}>;
|
|
162
|
+
participantId: z.ZodString;
|
|
163
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
164
|
+
index: z.ZodNumber;
|
|
165
|
+
count: z.ZodNumber;
|
|
166
|
+
}, z.core.$strip>>>;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
169
|
+
operationResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
170
|
+
transactionId: z.ZodString;
|
|
171
|
+
outcome: z.ZodEnum<{
|
|
172
|
+
deleted: "deleted";
|
|
173
|
+
created: "created";
|
|
174
|
+
updated: "updated";
|
|
175
|
+
archived: "archived";
|
|
176
|
+
unarchived: "unarchived";
|
|
177
|
+
}>;
|
|
178
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
179
|
+
}, z.core.$strict>>>;
|
|
180
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
181
|
+
status: z.ZodLiteral<"confirmed">;
|
|
182
|
+
statusAt: z.ZodISODateTime;
|
|
183
|
+
lastSyncId: z.ZodNumber;
|
|
184
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
185
|
+
object: z.ZodLiteral<"commit_receipt">;
|
|
186
|
+
id: z.ZodOptional<z.ZodString>;
|
|
187
|
+
clientTxId: z.ZodString;
|
|
188
|
+
serverTxId: z.ZodString;
|
|
189
|
+
createdAt: z.ZodISODateTime;
|
|
190
|
+
success: z.ZodLiteral<true>;
|
|
191
|
+
ops: z.ZodNumber;
|
|
192
|
+
authority: z.ZodObject<{
|
|
193
|
+
organizationId: z.ZodString;
|
|
194
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
195
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
196
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
197
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
198
|
+
participantKind: z.ZodEnum<{
|
|
199
|
+
user: "user";
|
|
200
|
+
agent: "agent";
|
|
201
|
+
system: "system";
|
|
202
|
+
}>;
|
|
203
|
+
participantId: z.ZodString;
|
|
204
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
205
|
+
index: z.ZodNumber;
|
|
206
|
+
count: z.ZodNumber;
|
|
207
|
+
}, z.core.$strip>>>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
|
+
operationResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
211
|
+
transactionId: z.ZodString;
|
|
212
|
+
outcome: z.ZodEnum<{
|
|
213
|
+
deleted: "deleted";
|
|
214
|
+
created: "created";
|
|
215
|
+
updated: "updated";
|
|
216
|
+
archived: "archived";
|
|
217
|
+
unarchived: "unarchived";
|
|
218
|
+
}>;
|
|
219
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
220
|
+
}, z.core.$strict>>>;
|
|
221
|
+
}, z.core.$strict>], "status">;
|
|
222
|
+
export type CommitReceiptWire = z.infer<typeof commitReceiptSchema>;
|
|
223
|
+
/** The failure arm is separate: queued/confirmed always imply `success:true`. */
|
|
224
|
+
export declare const rejectedCommitReceiptSchema: z.ZodObject<{
|
|
225
|
+
status: z.ZodLiteral<"rejected">;
|
|
226
|
+
statusAt: z.ZodISODateTime;
|
|
227
|
+
object: z.ZodLiteral<"commit_receipt">;
|
|
228
|
+
clientTxId: z.ZodString;
|
|
229
|
+
serverTxId: z.ZodString;
|
|
230
|
+
createdAt: z.ZodISODateTime;
|
|
231
|
+
success: z.ZodLiteral<false>;
|
|
232
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
authority: z.ZodObject<{
|
|
234
|
+
organizationId: z.ZodString;
|
|
235
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
236
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
237
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
238
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
239
|
+
participantKind: z.ZodEnum<{
|
|
240
|
+
user: "user";
|
|
241
|
+
agent: "agent";
|
|
242
|
+
system: "system";
|
|
243
|
+
}>;
|
|
244
|
+
participantId: z.ZodString;
|
|
245
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
246
|
+
index: z.ZodNumber;
|
|
247
|
+
count: z.ZodNumber;
|
|
248
|
+
}, z.core.$strip>>>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
error: z.ZodObject<{
|
|
251
|
+
code: z.ZodType<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown, z.core.$ZodTypeInternals<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown>>;
|
|
252
|
+
message: z.ZodString;
|
|
253
|
+
field: z.ZodOptional<z.ZodString>;
|
|
254
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
255
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
256
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
scope: z.ZodString;
|
|
258
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
259
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
260
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
261
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
262
|
+
}, z.core.$loose>>;
|
|
263
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
}, z.core.$strict>;
|
|
266
|
+
export type RejectedCommitReceiptWire = z.infer<typeof rejectedCommitReceiptSchema>;
|
|
267
|
+
export declare const mutationResultPayloadSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
268
|
+
status: z.ZodLiteral<"queued">;
|
|
269
|
+
statusAt: z.ZodISODateTime;
|
|
270
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
271
|
+
correlationId: z.ZodString;
|
|
272
|
+
object: z.ZodLiteral<"commit_receipt">;
|
|
273
|
+
id: z.ZodOptional<z.ZodString>;
|
|
274
|
+
clientTxId: z.ZodString;
|
|
275
|
+
serverTxId: z.ZodString;
|
|
276
|
+
createdAt: z.ZodISODateTime;
|
|
277
|
+
success: z.ZodLiteral<true>;
|
|
278
|
+
ops: z.ZodNumber;
|
|
279
|
+
authority: z.ZodObject<{
|
|
280
|
+
organizationId: z.ZodString;
|
|
281
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
282
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
283
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
284
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
285
|
+
participantKind: z.ZodEnum<{
|
|
286
|
+
user: "user";
|
|
287
|
+
agent: "agent";
|
|
288
|
+
system: "system";
|
|
289
|
+
}>;
|
|
290
|
+
participantId: z.ZodString;
|
|
291
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
292
|
+
index: z.ZodNumber;
|
|
293
|
+
count: z.ZodNumber;
|
|
294
|
+
}, z.core.$strip>>>;
|
|
295
|
+
}, z.core.$strip>;
|
|
296
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
297
|
+
operationResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
298
|
+
transactionId: z.ZodString;
|
|
299
|
+
outcome: z.ZodEnum<{
|
|
300
|
+
deleted: "deleted";
|
|
301
|
+
created: "created";
|
|
302
|
+
updated: "updated";
|
|
303
|
+
archived: "archived";
|
|
304
|
+
unarchived: "unarchived";
|
|
305
|
+
}>;
|
|
306
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
307
|
+
}, z.core.$strict>>>;
|
|
308
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
309
|
+
status: z.ZodLiteral<"confirmed">;
|
|
310
|
+
statusAt: z.ZodISODateTime;
|
|
311
|
+
lastSyncId: z.ZodNumber;
|
|
312
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
313
|
+
object: z.ZodLiteral<"commit_receipt">;
|
|
314
|
+
id: z.ZodOptional<z.ZodString>;
|
|
315
|
+
clientTxId: z.ZodString;
|
|
316
|
+
serverTxId: z.ZodString;
|
|
317
|
+
createdAt: z.ZodISODateTime;
|
|
318
|
+
success: z.ZodLiteral<true>;
|
|
319
|
+
ops: z.ZodNumber;
|
|
320
|
+
authority: z.ZodObject<{
|
|
321
|
+
organizationId: z.ZodString;
|
|
322
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
323
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
324
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
325
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
326
|
+
participantKind: z.ZodEnum<{
|
|
327
|
+
user: "user";
|
|
328
|
+
agent: "agent";
|
|
329
|
+
system: "system";
|
|
330
|
+
}>;
|
|
331
|
+
participantId: z.ZodString;
|
|
332
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
333
|
+
index: z.ZodNumber;
|
|
334
|
+
count: z.ZodNumber;
|
|
335
|
+
}, z.core.$strip>>>;
|
|
336
|
+
}, z.core.$strip>;
|
|
337
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
338
|
+
operationResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
339
|
+
transactionId: z.ZodString;
|
|
340
|
+
outcome: z.ZodEnum<{
|
|
341
|
+
deleted: "deleted";
|
|
342
|
+
created: "created";
|
|
343
|
+
updated: "updated";
|
|
344
|
+
archived: "archived";
|
|
345
|
+
unarchived: "unarchived";
|
|
346
|
+
}>;
|
|
347
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
348
|
+
}, z.core.$strict>>>;
|
|
349
|
+
}, z.core.$strict>], "status">, z.ZodObject<{
|
|
350
|
+
status: z.ZodLiteral<"rejected">;
|
|
351
|
+
statusAt: z.ZodISODateTime;
|
|
352
|
+
object: z.ZodLiteral<"commit_receipt">;
|
|
353
|
+
clientTxId: z.ZodString;
|
|
354
|
+
serverTxId: z.ZodString;
|
|
355
|
+
createdAt: z.ZodISODateTime;
|
|
356
|
+
success: z.ZodLiteral<false>;
|
|
357
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
358
|
+
authority: z.ZodObject<{
|
|
359
|
+
organizationId: z.ZodString;
|
|
360
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
361
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
362
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
363
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
364
|
+
participantKind: z.ZodEnum<{
|
|
365
|
+
user: "user";
|
|
366
|
+
agent: "agent";
|
|
367
|
+
system: "system";
|
|
368
|
+
}>;
|
|
369
|
+
participantId: z.ZodString;
|
|
370
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
371
|
+
index: z.ZodNumber;
|
|
372
|
+
count: z.ZodNumber;
|
|
373
|
+
}, z.core.$strip>>>;
|
|
374
|
+
}, z.core.$strip>;
|
|
375
|
+
error: z.ZodObject<{
|
|
376
|
+
code: z.ZodType<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown, z.core.$ZodTypeInternals<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown>>;
|
|
377
|
+
message: z.ZodString;
|
|
378
|
+
field: z.ZodOptional<z.ZodString>;
|
|
379
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
380
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
381
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
382
|
+
scope: z.ZodString;
|
|
383
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
384
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
385
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
386
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
387
|
+
}, z.core.$loose>>;
|
|
388
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
389
|
+
}, z.core.$strip>;
|
|
390
|
+
}, z.core.$strict>]>;
|
|
391
|
+
export type MutationResultPayload = z.infer<typeof mutationResultPayloadSchema>;
|
|
392
|
+
export declare const mutationResultMessageSchema: z.ZodObject<{
|
|
393
|
+
type: z.ZodLiteral<"mutation_result">;
|
|
394
|
+
payload: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
395
|
+
status: z.ZodLiteral<"queued">;
|
|
396
|
+
statusAt: z.ZodISODateTime;
|
|
397
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
398
|
+
correlationId: z.ZodString;
|
|
399
|
+
object: z.ZodLiteral<"commit_receipt">;
|
|
400
|
+
id: z.ZodOptional<z.ZodString>;
|
|
401
|
+
clientTxId: z.ZodString;
|
|
402
|
+
serverTxId: z.ZodString;
|
|
403
|
+
createdAt: z.ZodISODateTime;
|
|
404
|
+
success: z.ZodLiteral<true>;
|
|
405
|
+
ops: z.ZodNumber;
|
|
406
|
+
authority: z.ZodObject<{
|
|
407
|
+
organizationId: z.ZodString;
|
|
408
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
409
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
410
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
411
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
412
|
+
participantKind: z.ZodEnum<{
|
|
413
|
+
user: "user";
|
|
414
|
+
agent: "agent";
|
|
415
|
+
system: "system";
|
|
416
|
+
}>;
|
|
417
|
+
participantId: z.ZodString;
|
|
418
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
419
|
+
index: z.ZodNumber;
|
|
420
|
+
count: z.ZodNumber;
|
|
421
|
+
}, z.core.$strip>>>;
|
|
422
|
+
}, z.core.$strip>;
|
|
423
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
424
|
+
operationResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
425
|
+
transactionId: z.ZodString;
|
|
426
|
+
outcome: z.ZodEnum<{
|
|
427
|
+
deleted: "deleted";
|
|
428
|
+
created: "created";
|
|
429
|
+
updated: "updated";
|
|
430
|
+
archived: "archived";
|
|
431
|
+
unarchived: "unarchived";
|
|
432
|
+
}>;
|
|
433
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
434
|
+
}, z.core.$strict>>>;
|
|
435
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
436
|
+
status: z.ZodLiteral<"confirmed">;
|
|
437
|
+
statusAt: z.ZodISODateTime;
|
|
438
|
+
lastSyncId: z.ZodNumber;
|
|
439
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
440
|
+
object: z.ZodLiteral<"commit_receipt">;
|
|
441
|
+
id: z.ZodOptional<z.ZodString>;
|
|
442
|
+
clientTxId: z.ZodString;
|
|
443
|
+
serverTxId: z.ZodString;
|
|
444
|
+
createdAt: z.ZodISODateTime;
|
|
445
|
+
success: z.ZodLiteral<true>;
|
|
446
|
+
ops: z.ZodNumber;
|
|
447
|
+
authority: z.ZodObject<{
|
|
448
|
+
organizationId: z.ZodString;
|
|
449
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
450
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
451
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
452
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
453
|
+
participantKind: z.ZodEnum<{
|
|
454
|
+
user: "user";
|
|
455
|
+
agent: "agent";
|
|
456
|
+
system: "system";
|
|
457
|
+
}>;
|
|
458
|
+
participantId: z.ZodString;
|
|
459
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
460
|
+
index: z.ZodNumber;
|
|
461
|
+
count: z.ZodNumber;
|
|
462
|
+
}, z.core.$strip>>>;
|
|
463
|
+
}, z.core.$strip>;
|
|
464
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
465
|
+
operationResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
466
|
+
transactionId: z.ZodString;
|
|
467
|
+
outcome: z.ZodEnum<{
|
|
468
|
+
deleted: "deleted";
|
|
469
|
+
created: "created";
|
|
470
|
+
updated: "updated";
|
|
471
|
+
archived: "archived";
|
|
472
|
+
unarchived: "unarchived";
|
|
473
|
+
}>;
|
|
474
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
475
|
+
}, z.core.$strict>>>;
|
|
476
|
+
}, z.core.$strict>], "status">, z.ZodObject<{
|
|
477
|
+
status: z.ZodLiteral<"rejected">;
|
|
478
|
+
statusAt: z.ZodISODateTime;
|
|
479
|
+
object: z.ZodLiteral<"commit_receipt">;
|
|
480
|
+
clientTxId: z.ZodString;
|
|
481
|
+
serverTxId: z.ZodString;
|
|
482
|
+
createdAt: z.ZodISODateTime;
|
|
483
|
+
success: z.ZodLiteral<false>;
|
|
484
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
485
|
+
authority: z.ZodObject<{
|
|
486
|
+
organizationId: z.ZodString;
|
|
487
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
488
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
489
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
490
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
491
|
+
participantKind: z.ZodEnum<{
|
|
492
|
+
user: "user";
|
|
493
|
+
agent: "agent";
|
|
494
|
+
system: "system";
|
|
495
|
+
}>;
|
|
496
|
+
participantId: z.ZodString;
|
|
497
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
498
|
+
index: z.ZodNumber;
|
|
499
|
+
count: z.ZodNumber;
|
|
500
|
+
}, z.core.$strip>>>;
|
|
501
|
+
}, z.core.$strip>;
|
|
502
|
+
error: z.ZodObject<{
|
|
503
|
+
code: z.ZodType<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown, z.core.$ZodTypeInternals<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown>>;
|
|
504
|
+
message: z.ZodString;
|
|
505
|
+
field: z.ZodOptional<z.ZodString>;
|
|
506
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
507
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
508
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
509
|
+
scope: z.ZodString;
|
|
510
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
511
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
512
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
513
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
514
|
+
}, z.core.$loose>>;
|
|
515
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
}, z.core.$strict>]>;
|
|
518
|
+
}, z.core.$strip>;
|
|
519
|
+
export type MutationResultMessageWire = z.infer<typeof mutationResultMessageSchema>;
|
|
520
|
+
/** Canonical storage contract. Status is never optional or reconstructed. */
|
|
521
|
+
export declare const commitExecutionResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
522
|
+
status: z.ZodLiteral<"queued">;
|
|
523
|
+
statusAt: z.ZodISODateTime;
|
|
524
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
525
|
+
correlationId: z.ZodString;
|
|
526
|
+
firstSyncId: z.ZodNumber;
|
|
527
|
+
createdAt: z.ZodISODateTime;
|
|
528
|
+
confirmationTransactionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
529
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
530
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
531
|
+
status: z.ZodLiteral<"confirmed">;
|
|
532
|
+
statusAt: z.ZodISODateTime;
|
|
533
|
+
lastSyncId: z.ZodNumber;
|
|
534
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
535
|
+
firstSyncId: z.ZodNumber;
|
|
536
|
+
createdAt: z.ZodISODateTime;
|
|
537
|
+
confirmationTransactionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
538
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
539
|
+
}, z.core.$strict>], "status">;
|
|
540
|
+
export type CommitExecutionResultInput = z.input<typeof commitExecutionResultSchema>;
|
|
541
|
+
export type CommitExecutionResult = z.infer<typeof commitExecutionResultSchema>;
|
|
542
|
+
/** Normalized acknowledgement handed from a mutation transport to the queue. */
|
|
543
|
+
export declare const commitAckSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
544
|
+
status: z.ZodLiteral<"queued">;
|
|
545
|
+
statusAt: z.ZodISODateTime;
|
|
546
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
547
|
+
correlationId: z.ZodString;
|
|
548
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
549
|
+
operationResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
550
|
+
transactionId: z.ZodString;
|
|
551
|
+
outcome: z.ZodEnum<{
|
|
552
|
+
deleted: "deleted";
|
|
553
|
+
created: "created";
|
|
554
|
+
updated: "updated";
|
|
555
|
+
archived: "archived";
|
|
556
|
+
unarchived: "unarchived";
|
|
557
|
+
}>;
|
|
558
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
559
|
+
}, z.core.$strict>>>;
|
|
560
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
561
|
+
status: z.ZodLiteral<"confirmed">;
|
|
562
|
+
statusAt: z.ZodISODateTime;
|
|
563
|
+
lastSyncId: z.ZodNumber;
|
|
564
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
565
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
566
|
+
operationResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
567
|
+
transactionId: z.ZodString;
|
|
568
|
+
outcome: z.ZodEnum<{
|
|
569
|
+
deleted: "deleted";
|
|
570
|
+
created: "created";
|
|
571
|
+
updated: "updated";
|
|
572
|
+
archived: "archived";
|
|
573
|
+
unarchived: "unarchived";
|
|
574
|
+
}>;
|
|
575
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
576
|
+
}, z.core.$strict>>>;
|
|
577
|
+
}, z.core.$strict>], "status">;
|
|
578
|
+
export type CommitAck = z.infer<typeof commitAckSchema>;
|
|
579
|
+
/**
|
|
580
|
+
* The boundary an injected mutation executor returns through. It is the
|
|
581
|
+
* acknowledgement schema itself: status is declared, never inferred from
|
|
582
|
+
* an omission, so a transport cannot report a write as landed by staying
|
|
583
|
+
* silent about how it landed.
|
|
584
|
+
*/
|
|
585
|
+
export declare const mutationCommitResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
586
|
+
status: z.ZodLiteral<"queued">;
|
|
587
|
+
statusAt: z.ZodISODateTime;
|
|
588
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
589
|
+
correlationId: z.ZodString;
|
|
590
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
591
|
+
operationResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
592
|
+
transactionId: z.ZodString;
|
|
593
|
+
outcome: z.ZodEnum<{
|
|
594
|
+
deleted: "deleted";
|
|
595
|
+
created: "created";
|
|
596
|
+
updated: "updated";
|
|
597
|
+
archived: "archived";
|
|
598
|
+
unarchived: "unarchived";
|
|
599
|
+
}>;
|
|
600
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
601
|
+
}, z.core.$strict>>>;
|
|
602
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
603
|
+
status: z.ZodLiteral<"confirmed">;
|
|
604
|
+
statusAt: z.ZodISODateTime;
|
|
605
|
+
lastSyncId: z.ZodNumber;
|
|
606
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
607
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
608
|
+
operationResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
609
|
+
transactionId: z.ZodString;
|
|
610
|
+
outcome: z.ZodEnum<{
|
|
611
|
+
deleted: "deleted";
|
|
612
|
+
created: "created";
|
|
613
|
+
updated: "updated";
|
|
614
|
+
archived: "archived";
|
|
615
|
+
unarchived: "unarchived";
|
|
616
|
+
}>;
|
|
617
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
618
|
+
}, z.core.$strict>>>;
|
|
619
|
+
}, z.core.$strict>], "status">;
|
|
620
|
+
export type MutationCommitResultInput = z.input<typeof mutationCommitResultSchema>;
|
|
621
|
+
export type MutationCommitResult = z.infer<typeof mutationCommitResultSchema>;
|
|
622
|
+
/**
|
|
623
|
+
* Public SDK projection returned by `ablo.commits` and model mutations.
|
|
624
|
+
*
|
|
625
|
+
* This intentionally carries only the status name: on the WS
|
|
626
|
+
* facade, `wait:'queued'` currently means locally sealed/enqueued, before a
|
|
627
|
+
* server has necessarily accepted the write. Renaming that public state to
|
|
628
|
+
* `enqueued` is a separate protocol change; the authoritative status
|
|
629
|
+
* union above is reserved for server acknowledgements.
|
|
630
|
+
*/
|
|
631
|
+
export declare const clientCommitReceiptSchema: z.ZodObject<{
|
|
632
|
+
id: z.ZodString;
|
|
633
|
+
status: z.ZodUnion<readonly [z.ZodLiteral<"queued">, z.ZodLiteral<"confirmed">]>;
|
|
634
|
+
lastSyncId: z.ZodOptional<z.ZodNumber>;
|
|
635
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
636
|
+
operationResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
637
|
+
transactionId: z.ZodString;
|
|
638
|
+
outcome: z.ZodEnum<{
|
|
639
|
+
deleted: "deleted";
|
|
640
|
+
created: "created";
|
|
641
|
+
updated: "updated";
|
|
642
|
+
archived: "archived";
|
|
643
|
+
unarchived: "unarchived";
|
|
644
|
+
}>;
|
|
645
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
646
|
+
}, z.core.$strict>>>;
|
|
647
|
+
}, z.core.$strict>;
|
|
648
|
+
export type ClientCommitReceipt = z.infer<typeof clientCommitReceiptSchema>;
|
|
649
|
+
/** Control fields any operation in a commit may carry. */
|
|
650
|
+
export declare const commitOperationControlShape: {
|
|
651
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
652
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
653
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
654
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
655
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
656
|
+
};
|
|
657
|
+
/** Canonical public spelling of a model operation. */
|
|
658
|
+
export declare const modelOperationActionSchema: z.ZodEnum<{
|
|
659
|
+
update: "update";
|
|
660
|
+
create: "create";
|
|
661
|
+
delete: "delete";
|
|
662
|
+
archive: "archive";
|
|
663
|
+
unarchive: "unarchive";
|
|
664
|
+
}>;
|
|
665
|
+
export type ModelOperationAction = z.infer<typeof modelOperationActionSchema>;
|
|
666
|
+
/** Convert a storage operation verb into the canonical lowercase commit action. */
|
|
667
|
+
export declare function normalizeStorageOperationAction(value: string): ModelOperationAction;
|
|
668
|
+
/** One write inside a commit, in the canonical spelling. */
|
|
669
|
+
export declare const commitOperationBodySchema: z.ZodObject<{
|
|
670
|
+
action: z.ZodEnum<{
|
|
671
|
+
update: "update";
|
|
672
|
+
create: "create";
|
|
673
|
+
delete: "delete";
|
|
674
|
+
archive: "archive";
|
|
675
|
+
unarchive: "unarchive";
|
|
676
|
+
}>;
|
|
677
|
+
model: z.ZodString;
|
|
678
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
679
|
+
where: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
680
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
681
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
682
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
683
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
684
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
685
|
+
}, z.core.$strip>;
|
|
686
|
+
export type CommitOperationBody = z.infer<typeof commitOperationBodySchema>;
|
|
687
|
+
/** Commit records retain intent metadata but never copy customer mutation data. */
|
|
688
|
+
export declare const COMMIT_OPERATION_DATA_RETENTION: "redacted";
|
|
689
|
+
export declare const commitRecordOperationSchema: z.ZodObject<{
|
|
690
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
691
|
+
model: z.ZodString;
|
|
692
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
693
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
694
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
695
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
696
|
+
action: z.ZodEnum<{
|
|
697
|
+
update: "update";
|
|
698
|
+
create: "create";
|
|
699
|
+
delete: "delete";
|
|
700
|
+
archive: "archive";
|
|
701
|
+
unarchive: "unarchive";
|
|
702
|
+
}>;
|
|
703
|
+
data: z.ZodObject<{
|
|
704
|
+
retention: z.ZodLiteral<"redacted">;
|
|
705
|
+
}, z.core.$strict>;
|
|
706
|
+
}, z.core.$strip>;
|
|
707
|
+
export type CommitRecordOperation = z.infer<typeof commitRecordOperationSchema>;
|
|
708
|
+
/** Transport/result evidence nested beneath the canonical record status. */
|
|
709
|
+
export declare const commitReceiptEvidenceSchema: z.ZodObject<{
|
|
710
|
+
clientTxId: z.ZodString;
|
|
711
|
+
serverTxId: z.ZodString;
|
|
712
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
713
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
714
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
715
|
+
code: z.ZodType<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown, z.core.$ZodTypeInternals<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown>>;
|
|
716
|
+
message: z.ZodString;
|
|
717
|
+
field: z.ZodOptional<z.ZodString>;
|
|
718
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
719
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
720
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
721
|
+
scope: z.ZodString;
|
|
722
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
723
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
724
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
725
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
726
|
+
}, z.core.$loose>>;
|
|
727
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
728
|
+
}, z.core.$strip>>;
|
|
729
|
+
}, z.core.$strict>;
|
|
730
|
+
export type CommitReceiptEvidence = z.infer<typeof commitReceiptEvidenceSchema>;
|
|
731
|
+
/**
|
|
732
|
+
* The `POST /v1/commits` request body.
|
|
733
|
+
*
|
|
734
|
+
* `operations` carries the writes and `reads` carries the compact row evidence
|
|
735
|
+
* those writes were based on. Request identity travels in the
|
|
736
|
+
* `Idempotency-Key` header.
|
|
737
|
+
*/
|
|
738
|
+
export declare const commitRequestSchema: z.ZodObject<{
|
|
739
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
740
|
+
action: z.ZodEnum<{
|
|
741
|
+
update: "update";
|
|
742
|
+
create: "create";
|
|
743
|
+
delete: "delete";
|
|
744
|
+
archive: "archive";
|
|
745
|
+
unarchive: "unarchive";
|
|
746
|
+
}>;
|
|
747
|
+
model: z.ZodString;
|
|
748
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
749
|
+
where: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
750
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
751
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
752
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
753
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
754
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
755
|
+
}, z.core.$strip>>;
|
|
756
|
+
reads: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
757
|
+
model: z.ZodString;
|
|
758
|
+
id: z.ZodString;
|
|
759
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
760
|
+
readAt: z.ZodNumber;
|
|
761
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
762
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
763
|
+
readAt: z.ZodNumber;
|
|
764
|
+
}, z.core.$strip>]>>>>;
|
|
765
|
+
}, z.core.$strict>;
|
|
766
|
+
export type CommitRequest = z.infer<typeof commitRequestSchema>;
|
|
767
|
+
export declare const commitRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
768
|
+
status: z.ZodLiteral<"queued">;
|
|
769
|
+
statusAt: z.ZodISODateTime;
|
|
770
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
771
|
+
correlationId: z.ZodString;
|
|
772
|
+
createdAt: z.ZodISODateTime;
|
|
773
|
+
reads: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
774
|
+
model: z.ZodString;
|
|
775
|
+
id: z.ZodString;
|
|
776
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
777
|
+
readAt: z.ZodNumber;
|
|
778
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
779
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
780
|
+
readAt: z.ZodNumber;
|
|
781
|
+
}, z.core.$strip>]>>>;
|
|
782
|
+
operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
783
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
784
|
+
model: z.ZodString;
|
|
785
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
786
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
787
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
788
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
789
|
+
action: z.ZodEnum<{
|
|
790
|
+
update: "update";
|
|
791
|
+
create: "create";
|
|
792
|
+
delete: "delete";
|
|
793
|
+
archive: "archive";
|
|
794
|
+
unarchive: "unarchive";
|
|
795
|
+
}>;
|
|
796
|
+
data: z.ZodObject<{
|
|
797
|
+
retention: z.ZodLiteral<"redacted">;
|
|
798
|
+
}, z.core.$strict>;
|
|
799
|
+
}, z.core.$strip>>>;
|
|
800
|
+
receipt: z.ZodObject<{
|
|
801
|
+
clientTxId: z.ZodString;
|
|
802
|
+
serverTxId: z.ZodString;
|
|
803
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
804
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
805
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
806
|
+
code: z.ZodType<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown, z.core.$ZodTypeInternals<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown>>;
|
|
807
|
+
message: z.ZodString;
|
|
808
|
+
field: z.ZodOptional<z.ZodString>;
|
|
809
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
810
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
811
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
812
|
+
scope: z.ZodString;
|
|
813
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
814
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
815
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
816
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
817
|
+
}, z.core.$loose>>;
|
|
818
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
819
|
+
}, z.core.$strip>>;
|
|
820
|
+
}, z.core.$strict>;
|
|
821
|
+
attempts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
822
|
+
id: z.ZodString;
|
|
823
|
+
observedAt: z.ZodISODateTime;
|
|
824
|
+
transport: z.ZodEnum<{
|
|
825
|
+
internal: "internal";
|
|
826
|
+
http: "http";
|
|
827
|
+
websocket: "websocket";
|
|
828
|
+
}>;
|
|
829
|
+
kind: z.ZodEnum<{
|
|
830
|
+
execution: "execution";
|
|
831
|
+
replay: "replay";
|
|
832
|
+
}>;
|
|
833
|
+
}, z.core.$strict>>>;
|
|
834
|
+
actor: z.ZodObject<{
|
|
835
|
+
kind: z.ZodEnum<{
|
|
836
|
+
user: "user";
|
|
837
|
+
agent: "agent";
|
|
838
|
+
system: "system";
|
|
839
|
+
}>;
|
|
840
|
+
id: z.ZodString;
|
|
841
|
+
}, z.core.$strict>;
|
|
842
|
+
authority: z.ZodObject<{
|
|
843
|
+
organizationId: z.ZodString;
|
|
844
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
845
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
846
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
847
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
848
|
+
participantKind: z.ZodEnum<{
|
|
849
|
+
user: "user";
|
|
850
|
+
agent: "agent";
|
|
851
|
+
system: "system";
|
|
852
|
+
}>;
|
|
853
|
+
participantId: z.ZodString;
|
|
854
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
855
|
+
index: z.ZodNumber;
|
|
856
|
+
count: z.ZodNumber;
|
|
857
|
+
}, z.core.$strip>>>;
|
|
858
|
+
}, z.core.$strip>;
|
|
859
|
+
claims: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
860
|
+
id: z.ZodString;
|
|
861
|
+
target: z.ZodObject<{
|
|
862
|
+
scope: z.ZodLiteral<"row">;
|
|
863
|
+
model: z.ZodString;
|
|
864
|
+
id: z.ZodString;
|
|
865
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
866
|
+
}, z.core.$strict>;
|
|
867
|
+
fenceToken: z.ZodNumber;
|
|
868
|
+
}, z.core.$strict>>>;
|
|
869
|
+
id: z.ZodString;
|
|
870
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
871
|
+
status: z.ZodLiteral<"confirmed">;
|
|
872
|
+
statusAt: z.ZodISODateTime;
|
|
873
|
+
lastSyncId: z.ZodNumber;
|
|
874
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
875
|
+
createdAt: z.ZodISODateTime;
|
|
876
|
+
reads: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
877
|
+
model: z.ZodString;
|
|
878
|
+
id: z.ZodString;
|
|
879
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
880
|
+
readAt: z.ZodNumber;
|
|
881
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
882
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
883
|
+
readAt: z.ZodNumber;
|
|
884
|
+
}, z.core.$strip>]>>>;
|
|
885
|
+
operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
886
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
887
|
+
model: z.ZodString;
|
|
888
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
889
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
890
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
891
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
892
|
+
action: z.ZodEnum<{
|
|
893
|
+
update: "update";
|
|
894
|
+
create: "create";
|
|
895
|
+
delete: "delete";
|
|
896
|
+
archive: "archive";
|
|
897
|
+
unarchive: "unarchive";
|
|
898
|
+
}>;
|
|
899
|
+
data: z.ZodObject<{
|
|
900
|
+
retention: z.ZodLiteral<"redacted">;
|
|
901
|
+
}, z.core.$strict>;
|
|
902
|
+
}, z.core.$strip>>>;
|
|
903
|
+
receipt: z.ZodObject<{
|
|
904
|
+
clientTxId: z.ZodString;
|
|
905
|
+
serverTxId: z.ZodString;
|
|
906
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
907
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
908
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
909
|
+
code: z.ZodType<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown, z.core.$ZodTypeInternals<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown>>;
|
|
910
|
+
message: z.ZodString;
|
|
911
|
+
field: z.ZodOptional<z.ZodString>;
|
|
912
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
913
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
914
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
915
|
+
scope: z.ZodString;
|
|
916
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
917
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
918
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
919
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
920
|
+
}, z.core.$loose>>;
|
|
921
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
922
|
+
}, z.core.$strip>>;
|
|
923
|
+
}, z.core.$strict>;
|
|
924
|
+
attempts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
925
|
+
id: z.ZodString;
|
|
926
|
+
observedAt: z.ZodISODateTime;
|
|
927
|
+
transport: z.ZodEnum<{
|
|
928
|
+
internal: "internal";
|
|
929
|
+
http: "http";
|
|
930
|
+
websocket: "websocket";
|
|
931
|
+
}>;
|
|
932
|
+
kind: z.ZodEnum<{
|
|
933
|
+
execution: "execution";
|
|
934
|
+
replay: "replay";
|
|
935
|
+
}>;
|
|
936
|
+
}, z.core.$strict>>>;
|
|
937
|
+
actor: z.ZodObject<{
|
|
938
|
+
kind: z.ZodEnum<{
|
|
939
|
+
user: "user";
|
|
940
|
+
agent: "agent";
|
|
941
|
+
system: "system";
|
|
942
|
+
}>;
|
|
943
|
+
id: z.ZodString;
|
|
944
|
+
}, z.core.$strict>;
|
|
945
|
+
authority: z.ZodObject<{
|
|
946
|
+
organizationId: z.ZodString;
|
|
947
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
948
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
949
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
950
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
951
|
+
participantKind: z.ZodEnum<{
|
|
952
|
+
user: "user";
|
|
953
|
+
agent: "agent";
|
|
954
|
+
system: "system";
|
|
955
|
+
}>;
|
|
956
|
+
participantId: z.ZodString;
|
|
957
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
958
|
+
index: z.ZodNumber;
|
|
959
|
+
count: z.ZodNumber;
|
|
960
|
+
}, z.core.$strip>>>;
|
|
961
|
+
}, z.core.$strip>;
|
|
962
|
+
claims: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
963
|
+
id: z.ZodString;
|
|
964
|
+
target: z.ZodObject<{
|
|
965
|
+
scope: z.ZodLiteral<"row">;
|
|
966
|
+
model: z.ZodString;
|
|
967
|
+
id: z.ZodString;
|
|
968
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
969
|
+
}, z.core.$strict>;
|
|
970
|
+
fenceToken: z.ZodNumber;
|
|
971
|
+
}, z.core.$strict>>>;
|
|
972
|
+
id: z.ZodString;
|
|
973
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
974
|
+
status: z.ZodLiteral<"rejected">;
|
|
975
|
+
statusAt: z.ZodISODateTime;
|
|
976
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
977
|
+
createdAt: z.ZodISODateTime;
|
|
978
|
+
reads: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
979
|
+
model: z.ZodString;
|
|
980
|
+
id: z.ZodString;
|
|
981
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
982
|
+
readAt: z.ZodNumber;
|
|
983
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
984
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
985
|
+
readAt: z.ZodNumber;
|
|
986
|
+
}, z.core.$strip>]>>>;
|
|
987
|
+
operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
988
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
989
|
+
model: z.ZodString;
|
|
990
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
991
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
992
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
993
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
994
|
+
action: z.ZodEnum<{
|
|
995
|
+
update: "update";
|
|
996
|
+
create: "create";
|
|
997
|
+
delete: "delete";
|
|
998
|
+
archive: "archive";
|
|
999
|
+
unarchive: "unarchive";
|
|
1000
|
+
}>;
|
|
1001
|
+
data: z.ZodObject<{
|
|
1002
|
+
retention: z.ZodLiteral<"redacted">;
|
|
1003
|
+
}, z.core.$strict>;
|
|
1004
|
+
}, z.core.$strip>>>;
|
|
1005
|
+
receipt: z.ZodObject<{
|
|
1006
|
+
clientTxId: z.ZodString;
|
|
1007
|
+
serverTxId: z.ZodString;
|
|
1008
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
1009
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1010
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
1011
|
+
code: z.ZodType<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown, z.core.$ZodTypeInternals<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown>>;
|
|
1012
|
+
message: z.ZodString;
|
|
1013
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1014
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
1015
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
1016
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
1017
|
+
scope: z.ZodString;
|
|
1018
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
1019
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1020
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
1021
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1022
|
+
}, z.core.$loose>>;
|
|
1023
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1024
|
+
}, z.core.$strip>>;
|
|
1025
|
+
}, z.core.$strict>;
|
|
1026
|
+
attempts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1027
|
+
id: z.ZodString;
|
|
1028
|
+
observedAt: z.ZodISODateTime;
|
|
1029
|
+
transport: z.ZodEnum<{
|
|
1030
|
+
internal: "internal";
|
|
1031
|
+
http: "http";
|
|
1032
|
+
websocket: "websocket";
|
|
1033
|
+
}>;
|
|
1034
|
+
kind: z.ZodEnum<{
|
|
1035
|
+
execution: "execution";
|
|
1036
|
+
replay: "replay";
|
|
1037
|
+
}>;
|
|
1038
|
+
}, z.core.$strict>>>;
|
|
1039
|
+
actor: z.ZodObject<{
|
|
1040
|
+
kind: z.ZodEnum<{
|
|
1041
|
+
user: "user";
|
|
1042
|
+
agent: "agent";
|
|
1043
|
+
system: "system";
|
|
1044
|
+
}>;
|
|
1045
|
+
id: z.ZodString;
|
|
1046
|
+
}, z.core.$strict>;
|
|
1047
|
+
authority: z.ZodObject<{
|
|
1048
|
+
organizationId: z.ZodString;
|
|
1049
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1050
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1051
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
1052
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
1053
|
+
participantKind: z.ZodEnum<{
|
|
1054
|
+
user: "user";
|
|
1055
|
+
agent: "agent";
|
|
1056
|
+
system: "system";
|
|
1057
|
+
}>;
|
|
1058
|
+
participantId: z.ZodString;
|
|
1059
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1060
|
+
index: z.ZodNumber;
|
|
1061
|
+
count: z.ZodNumber;
|
|
1062
|
+
}, z.core.$strip>>>;
|
|
1063
|
+
}, z.core.$strip>;
|
|
1064
|
+
claims: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1065
|
+
id: z.ZodString;
|
|
1066
|
+
target: z.ZodObject<{
|
|
1067
|
+
scope: z.ZodLiteral<"row">;
|
|
1068
|
+
model: z.ZodString;
|
|
1069
|
+
id: z.ZodString;
|
|
1070
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1071
|
+
}, z.core.$strict>;
|
|
1072
|
+
fenceToken: z.ZodNumber;
|
|
1073
|
+
}, z.core.$strict>>>;
|
|
1074
|
+
id: z.ZodString;
|
|
1075
|
+
}, z.core.$strict>], "status">;
|
|
1076
|
+
export type CommitRecord = z.infer<typeof commitRecordSchema>;
|
|
1077
|
+
export declare const commitRecordWhereSchema: z.ZodObject<{
|
|
1078
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
1079
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"queued">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">]>>;
|
|
1080
|
+
}, z.core.$strict>;
|
|
1081
|
+
export type CommitRecordWhere = z.infer<typeof commitRecordWhereSchema>;
|
|
1082
|
+
export declare const commitRecordListOptionsSchema: z.ZodObject<{
|
|
1083
|
+
where: z.ZodOptional<z.ZodObject<{
|
|
1084
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
1085
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"queued">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">]>>;
|
|
1086
|
+
}, z.core.$strict>>;
|
|
1087
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1088
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1089
|
+
}, z.core.$strict>;
|
|
1090
|
+
export type CommitRecordListOptions = z.infer<typeof commitRecordListOptionsSchema>;
|
|
1091
|
+
export declare const commitRecordListSchema: z.ZodObject<{
|
|
1092
|
+
data: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1093
|
+
status: z.ZodLiteral<"queued">;
|
|
1094
|
+
statusAt: z.ZodISODateTime;
|
|
1095
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
1096
|
+
correlationId: z.ZodString;
|
|
1097
|
+
createdAt: z.ZodISODateTime;
|
|
1098
|
+
reads: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1099
|
+
model: z.ZodString;
|
|
1100
|
+
id: z.ZodString;
|
|
1101
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1102
|
+
readAt: z.ZodNumber;
|
|
1103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1104
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1105
|
+
readAt: z.ZodNumber;
|
|
1106
|
+
}, z.core.$strip>]>>>;
|
|
1107
|
+
operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1108
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1109
|
+
model: z.ZodString;
|
|
1110
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1111
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1112
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1113
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1114
|
+
action: z.ZodEnum<{
|
|
1115
|
+
update: "update";
|
|
1116
|
+
create: "create";
|
|
1117
|
+
delete: "delete";
|
|
1118
|
+
archive: "archive";
|
|
1119
|
+
unarchive: "unarchive";
|
|
1120
|
+
}>;
|
|
1121
|
+
data: z.ZodObject<{
|
|
1122
|
+
retention: z.ZodLiteral<"redacted">;
|
|
1123
|
+
}, z.core.$strict>;
|
|
1124
|
+
}, z.core.$strip>>>;
|
|
1125
|
+
receipt: z.ZodObject<{
|
|
1126
|
+
clientTxId: z.ZodString;
|
|
1127
|
+
serverTxId: z.ZodString;
|
|
1128
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
1129
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1130
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
1131
|
+
code: z.ZodType<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown, z.core.$ZodTypeInternals<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown>>;
|
|
1132
|
+
message: z.ZodString;
|
|
1133
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1134
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
1135
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
1136
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
1137
|
+
scope: z.ZodString;
|
|
1138
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
1139
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1140
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
1141
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1142
|
+
}, z.core.$loose>>;
|
|
1143
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1144
|
+
}, z.core.$strip>>;
|
|
1145
|
+
}, z.core.$strict>;
|
|
1146
|
+
attempts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1147
|
+
id: z.ZodString;
|
|
1148
|
+
observedAt: z.ZodISODateTime;
|
|
1149
|
+
transport: z.ZodEnum<{
|
|
1150
|
+
internal: "internal";
|
|
1151
|
+
http: "http";
|
|
1152
|
+
websocket: "websocket";
|
|
1153
|
+
}>;
|
|
1154
|
+
kind: z.ZodEnum<{
|
|
1155
|
+
execution: "execution";
|
|
1156
|
+
replay: "replay";
|
|
1157
|
+
}>;
|
|
1158
|
+
}, z.core.$strict>>>;
|
|
1159
|
+
actor: z.ZodObject<{
|
|
1160
|
+
kind: z.ZodEnum<{
|
|
1161
|
+
user: "user";
|
|
1162
|
+
agent: "agent";
|
|
1163
|
+
system: "system";
|
|
1164
|
+
}>;
|
|
1165
|
+
id: z.ZodString;
|
|
1166
|
+
}, z.core.$strict>;
|
|
1167
|
+
authority: z.ZodObject<{
|
|
1168
|
+
organizationId: z.ZodString;
|
|
1169
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1170
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1171
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
1172
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
1173
|
+
participantKind: z.ZodEnum<{
|
|
1174
|
+
user: "user";
|
|
1175
|
+
agent: "agent";
|
|
1176
|
+
system: "system";
|
|
1177
|
+
}>;
|
|
1178
|
+
participantId: z.ZodString;
|
|
1179
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1180
|
+
index: z.ZodNumber;
|
|
1181
|
+
count: z.ZodNumber;
|
|
1182
|
+
}, z.core.$strip>>>;
|
|
1183
|
+
}, z.core.$strip>;
|
|
1184
|
+
claims: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1185
|
+
id: z.ZodString;
|
|
1186
|
+
target: z.ZodObject<{
|
|
1187
|
+
scope: z.ZodLiteral<"row">;
|
|
1188
|
+
model: z.ZodString;
|
|
1189
|
+
id: z.ZodString;
|
|
1190
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1191
|
+
}, z.core.$strict>;
|
|
1192
|
+
fenceToken: z.ZodNumber;
|
|
1193
|
+
}, z.core.$strict>>>;
|
|
1194
|
+
id: z.ZodString;
|
|
1195
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1196
|
+
status: z.ZodLiteral<"confirmed">;
|
|
1197
|
+
statusAt: z.ZodISODateTime;
|
|
1198
|
+
lastSyncId: z.ZodNumber;
|
|
1199
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
1200
|
+
createdAt: z.ZodISODateTime;
|
|
1201
|
+
reads: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1202
|
+
model: z.ZodString;
|
|
1203
|
+
id: z.ZodString;
|
|
1204
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1205
|
+
readAt: z.ZodNumber;
|
|
1206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1207
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1208
|
+
readAt: z.ZodNumber;
|
|
1209
|
+
}, z.core.$strip>]>>>;
|
|
1210
|
+
operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1211
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1212
|
+
model: z.ZodString;
|
|
1213
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1214
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1215
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1216
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1217
|
+
action: z.ZodEnum<{
|
|
1218
|
+
update: "update";
|
|
1219
|
+
create: "create";
|
|
1220
|
+
delete: "delete";
|
|
1221
|
+
archive: "archive";
|
|
1222
|
+
unarchive: "unarchive";
|
|
1223
|
+
}>;
|
|
1224
|
+
data: z.ZodObject<{
|
|
1225
|
+
retention: z.ZodLiteral<"redacted">;
|
|
1226
|
+
}, z.core.$strict>;
|
|
1227
|
+
}, z.core.$strip>>>;
|
|
1228
|
+
receipt: z.ZodObject<{
|
|
1229
|
+
clientTxId: z.ZodString;
|
|
1230
|
+
serverTxId: z.ZodString;
|
|
1231
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
1232
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1233
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
1234
|
+
code: z.ZodType<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown, z.core.$ZodTypeInternals<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown>>;
|
|
1235
|
+
message: z.ZodString;
|
|
1236
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1237
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
1238
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
1239
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
1240
|
+
scope: z.ZodString;
|
|
1241
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
1242
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1243
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
1244
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1245
|
+
}, z.core.$loose>>;
|
|
1246
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1247
|
+
}, z.core.$strip>>;
|
|
1248
|
+
}, z.core.$strict>;
|
|
1249
|
+
attempts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1250
|
+
id: z.ZodString;
|
|
1251
|
+
observedAt: z.ZodISODateTime;
|
|
1252
|
+
transport: z.ZodEnum<{
|
|
1253
|
+
internal: "internal";
|
|
1254
|
+
http: "http";
|
|
1255
|
+
websocket: "websocket";
|
|
1256
|
+
}>;
|
|
1257
|
+
kind: z.ZodEnum<{
|
|
1258
|
+
execution: "execution";
|
|
1259
|
+
replay: "replay";
|
|
1260
|
+
}>;
|
|
1261
|
+
}, z.core.$strict>>>;
|
|
1262
|
+
actor: z.ZodObject<{
|
|
1263
|
+
kind: z.ZodEnum<{
|
|
1264
|
+
user: "user";
|
|
1265
|
+
agent: "agent";
|
|
1266
|
+
system: "system";
|
|
1267
|
+
}>;
|
|
1268
|
+
id: z.ZodString;
|
|
1269
|
+
}, z.core.$strict>;
|
|
1270
|
+
authority: z.ZodObject<{
|
|
1271
|
+
organizationId: z.ZodString;
|
|
1272
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1273
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1274
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
1275
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
1276
|
+
participantKind: z.ZodEnum<{
|
|
1277
|
+
user: "user";
|
|
1278
|
+
agent: "agent";
|
|
1279
|
+
system: "system";
|
|
1280
|
+
}>;
|
|
1281
|
+
participantId: z.ZodString;
|
|
1282
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1283
|
+
index: z.ZodNumber;
|
|
1284
|
+
count: z.ZodNumber;
|
|
1285
|
+
}, z.core.$strip>>>;
|
|
1286
|
+
}, z.core.$strip>;
|
|
1287
|
+
claims: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1288
|
+
id: z.ZodString;
|
|
1289
|
+
target: z.ZodObject<{
|
|
1290
|
+
scope: z.ZodLiteral<"row">;
|
|
1291
|
+
model: z.ZodString;
|
|
1292
|
+
id: z.ZodString;
|
|
1293
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1294
|
+
}, z.core.$strict>;
|
|
1295
|
+
fenceToken: z.ZodNumber;
|
|
1296
|
+
}, z.core.$strict>>>;
|
|
1297
|
+
id: z.ZodString;
|
|
1298
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1299
|
+
status: z.ZodLiteral<"rejected">;
|
|
1300
|
+
statusAt: z.ZodISODateTime;
|
|
1301
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
1302
|
+
createdAt: z.ZodISODateTime;
|
|
1303
|
+
reads: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1304
|
+
model: z.ZodString;
|
|
1305
|
+
id: z.ZodString;
|
|
1306
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1307
|
+
readAt: z.ZodNumber;
|
|
1308
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1309
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1310
|
+
readAt: z.ZodNumber;
|
|
1311
|
+
}, z.core.$strip>]>>>;
|
|
1312
|
+
operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1313
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1314
|
+
model: z.ZodString;
|
|
1315
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1316
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1317
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1318
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1319
|
+
action: z.ZodEnum<{
|
|
1320
|
+
update: "update";
|
|
1321
|
+
create: "create";
|
|
1322
|
+
delete: "delete";
|
|
1323
|
+
archive: "archive";
|
|
1324
|
+
unarchive: "unarchive";
|
|
1325
|
+
}>;
|
|
1326
|
+
data: z.ZodObject<{
|
|
1327
|
+
retention: z.ZodLiteral<"redacted">;
|
|
1328
|
+
}, z.core.$strict>;
|
|
1329
|
+
}, z.core.$strip>>>;
|
|
1330
|
+
receipt: z.ZodObject<{
|
|
1331
|
+
clientTxId: z.ZodString;
|
|
1332
|
+
serverTxId: z.ZodString;
|
|
1333
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
1334
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1335
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
1336
|
+
code: z.ZodType<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown, z.core.$ZodTypeInternals<"apikey_invalid" | "apikey_revoked" | "apikey_expired" | "apikey_missing" | "api_key_required" | "capability_id_missing" | "exchange_failed" | "identity_resolve_failed" | "auth_no_credentials" | "identity_missing_organization" | "session_expired" | "better_auth_request_failed" | "better_auth_upstream_failed" | "jwt_invalid" | "jwt_malformed" | "jwt_missing_issuer" | "jwt_issuer_untrusted" | "jwt_signature_invalid" | "jwt_audience_mismatch" | "jwt_missing_subject" | "jwt_missing_organization" | "jwt_expired" | "jwt_org_membership_denied" | "file_upload_auth_required" | "browser_apikey_blocked" | "datasource_connection_unsupported" | "source_connector_localhost_required" | "source_connector_unauthenticated" | "capability_scope_denied" | "issuer_register_forbidden" | "capability_invalid" | "tenant_routing_failed" | "database_role_cannot_enforce_rls" | "database_role_unreadable" | "database_tables_unforced_rls" | "database_host_not_allowed" | "database_loopback_requires_connector" | "connected_database_unreachable" | "byo_role_cannot_enforce_rls" | "byo_role_unreadable" | "byo_tenant_tables_unforced_rls" | "byo_host_not_allowed" | "claim_conflict" | "claim_lost" | "fence_token_stale" | "entity_claimed" | "malformed_claim" | "malformed_subscription" | "malformed_response" | "model_claimed" | "model_claimed_timeout" | "model_claim_not_configured" | "model_join_not_configured" | "stale_context" | "contention_exhausted" | "update_aborted" | "idempotency_conflict" | "idempotency_key_expired" | "source_transport_pinned" | "precondition_failed" | "idempotency_key_too_long" | "write_options_invalid" | "write_payload_invalid" | "source_operation_id_required" | "source_adapter_misconfigured" | "source_event_invalid" | "duration_invalid" | "schema_definition_invalid" | "cli_invalid_arguments" | "cli_api_key_missing" | "cli_database_url_missing" | "cli_database_unreachable" | "commit_operation_required" | "commit_operation_invalid" | "commit_operation_model_required" | "commit_operations_ambiguous" | "commit_too_many_operations" | "model_required_field_missing" | "model_identifier_missing" | "snapshot_reserved_key" | "mesh_message_invalid_input" | "mesh_message_from_id_spoof" | "mesh_message_from_kind_mismatch" | "agent_perception_missing_context" | "invalid_input" | "validation_failed" | "invalid_mutator" | "permission_denied" | "source_connector_requires_secret_key" | "source_connector_production_not_enabled" | "entity_not_found" | "model_not_found" | "mutate_update_entity_not_found" | "no_data_source_registered" | "source_connector_no_source_registered" | "item_id_missing" | "not_null_violation" | "foreign_key_violation" | "entity_already_exists" | "unique_violation" | "check_violation" | "constraint_violation" | "column_type_mismatch" | "column_value_out_of_range" | "server_execute_unknown_model" | "mutate_create_unknown_model" | "tenant_model_columns_unknown" | "tenant_model_missing_organization_id" | "schema_mutable_missing_meta" | "schema_scope_kind_invalid" | "schema_field_not_camelcase" | "schema_field_consecutive_caps" | "schema_reserved_field" | "schema_grants_shape_invalid" | "schema_grants_identifier_unsafe" | "schema_grants_relation_kind" | "schema_grants_relation_missing" | "schema_grants_target_not_scope_root" | "drop_field" | "drop_model" | "lossy_recreate" | "made_required" | "required_field_added" | "enum_value_removed" | "risky_cast" | "claim_lease_unavailable" | "claim_not_wired" | "claim_queued" | "claim_wait_aborted" | "grant_timeout" | "bootstrap_fetch_timeout" | "bootstrap_cancelled" | "bootstrap_offline" | "bootstrap_offline_no_cache" | "bootstrap_response_invalid" | "bootstrap_response_schema_invalid" | "exchange_malformed_response" | "exchange_network_error" | "source_network_error" | "source_request_failed" | "source_id_missing" | "source_api_key_missing" | "source_timestamp_missing" | "source_timestamp_invalid" | "source_timestamp_expired" | "source_signature_missing" | "source_signature_invalid" | "source_forbidden" | "source_connector_not_attached" | "source_connector_timeout" | "source_connector_send_failed" | "source_connector_disconnected" | "source_connector_superseded" | "source_connector_shutdown" | "source_connector_protocol_error" | "source_unreachable" | "data_source_blocked" | "source_connector_handler_error" | "source_connector_internal_error" | "identity_network_error" | "commit_no_result" | "commit_failed" | "replication_lag_timeout" | "commit_offline_grace_expired" | "queue_too_deep" | "flush_timeout" | "wait_for_timeout" | "instance_at_capacity" | "delivery_partition_mismatch" | "fetch_unavailable" | "api_unreachable" | "response_unrecognized" | "base_url_missing" | "sync_not_ready" | "ws_not_ready" | "quota_exceeded" | "connection_limit_exceeded" | "rate_limit_exceeded" | "session_check_failed" | "mint_failed" | "server_side_only" | "unknown_auth_host" | "no_active_organization" | "data_session_unsupported" | "internal_error" | "quota_lookup_failed" | "rate_limiter_unavailable" | "invalid_options" | "no_ablo_provider" | "no_sync_group_provider" | "sync_context_missing_provider" | "db_not_opened" | "db_secure_hash_unavailable" | "db_identity_mismatch" | "db_cleanup_failed" | "db_store_not_found" | "db_unknown_action_type" | "idb_unavailable" | "meta_db_not_initialized" | "sync_client_db_missing" | "lazy_ref_db_missing" | "lazy_ref_pool_missing" | "model_class_not_registered" | "model_not_registered" | "model_not_in_schema" | "model_disposed" | "pool_model_class_not_registered" | "pool_registry_missing" | "pool_subscribe_unregistered" | "registry_invalid_constructor" | "registry_not_initialized" | "registry_property_conflict" | "registry_reference_unknown_target" | "registry_reference_unresolved" | "registry_unknown_model" | "query_returns_unknown_model" | "store_create_schema_missing" | "store_manager_unknown_model" | "store_query_schema_missing" | "store_query_unknown_model" | "transaction_mutate_unknown_model" | "transaction_read_unknown_model" | "mutator_registry_duplicate" | "mutator_registry_unnamed_def" | "mutators_schema_missing" | "undo_scope_schema_missing" | "undo_entry_invalid" | "mock_mutation_failed" | "mock_unsupported_operation" | "invalid_body" | "invalid_json" | "capability_id_required" | "organization_mismatch" | "project_scope_denied" | "branch_scope_denied" | "project_slug_taken" | "forbidden" | "source_api_key_unresolved" | "capability_auth_disabled" | "capability_rotation_unavailable" | "provisioner_unavailable" | "invalid_model" | "invalid_id" | "unknown_model" | "model_not_tenant_scoped" | "source_tenancy_not_enforced" | "user_scope_not_enforced" | "model_not_provisioned" | "schema_table_invalid" | "schema_scope_invalid" | "entity_fetch_failed" | "events_required" | "ingest_failed" | "migration_failed" | "schema_provisioning_forbidden" | "model_query_failed" | "queries_required" | "query_unsupported_operator" | "query_invalid_like_pattern" | "query_invalid_boolean" | "protocol_version_unsupported" | "database_unreachable" | "database_not_replication_ready" | "database_already_connected" | "replication_publication_drift" | "query_unknown_relation" | "query_relation_target_unknown" | "query_invalid_identifier" | "query_relation_expansion_too_large" | "organization_disabled" | "org_id_required" | "presence_identity_required" | "upload_fields_required" | "upload_items_required" | "presigned_url_failed" | "upload_not_configured" | "item_id_required" | "claim_id_required" | "commit_operation_action_required" | "commit_operation_unsupported" | "usage_invalid" | "invalid_request" | "capability_not_found" | "claim_not_found" | "invalid_participant_kind" | "invalid_sync_group" | "narrow_scope_required" | "wide_scope_forbidden" | "capability_required" | "position_missing_parent" | "position_unknown_sibling" | "schema_too_large" | "request_too_large" | "invalid_schema" | "operational_warning" | "incompatible_change" | "replication_reset_required", unknown>>;
|
|
1337
|
+
message: z.ZodString;
|
|
1338
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1339
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
1340
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
1341
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
1342
|
+
scope: z.ZodString;
|
|
1343
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
1344
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1345
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
1346
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1347
|
+
}, z.core.$loose>>;
|
|
1348
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1349
|
+
}, z.core.$strip>>;
|
|
1350
|
+
}, z.core.$strict>;
|
|
1351
|
+
attempts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1352
|
+
id: z.ZodString;
|
|
1353
|
+
observedAt: z.ZodISODateTime;
|
|
1354
|
+
transport: z.ZodEnum<{
|
|
1355
|
+
internal: "internal";
|
|
1356
|
+
http: "http";
|
|
1357
|
+
websocket: "websocket";
|
|
1358
|
+
}>;
|
|
1359
|
+
kind: z.ZodEnum<{
|
|
1360
|
+
execution: "execution";
|
|
1361
|
+
replay: "replay";
|
|
1362
|
+
}>;
|
|
1363
|
+
}, z.core.$strict>>>;
|
|
1364
|
+
actor: z.ZodObject<{
|
|
1365
|
+
kind: z.ZodEnum<{
|
|
1366
|
+
user: "user";
|
|
1367
|
+
agent: "agent";
|
|
1368
|
+
system: "system";
|
|
1369
|
+
}>;
|
|
1370
|
+
id: z.ZodString;
|
|
1371
|
+
}, z.core.$strict>;
|
|
1372
|
+
authority: z.ZodObject<{
|
|
1373
|
+
organizationId: z.ZodString;
|
|
1374
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1375
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1376
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
1377
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
1378
|
+
participantKind: z.ZodEnum<{
|
|
1379
|
+
user: "user";
|
|
1380
|
+
agent: "agent";
|
|
1381
|
+
system: "system";
|
|
1382
|
+
}>;
|
|
1383
|
+
participantId: z.ZodString;
|
|
1384
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1385
|
+
index: z.ZodNumber;
|
|
1386
|
+
count: z.ZodNumber;
|
|
1387
|
+
}, z.core.$strip>>>;
|
|
1388
|
+
}, z.core.$strip>;
|
|
1389
|
+
claims: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1390
|
+
id: z.ZodString;
|
|
1391
|
+
target: z.ZodObject<{
|
|
1392
|
+
scope: z.ZodLiteral<"row">;
|
|
1393
|
+
model: z.ZodString;
|
|
1394
|
+
id: z.ZodString;
|
|
1395
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1396
|
+
}, z.core.$strict>;
|
|
1397
|
+
fenceToken: z.ZodNumber;
|
|
1398
|
+
}, z.core.$strict>>>;
|
|
1399
|
+
id: z.ZodString;
|
|
1400
|
+
}, z.core.$strict>], "status">>>;
|
|
1401
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1402
|
+
}, z.core.$strict>;
|
|
1403
|
+
export type CommitRecordList = z.infer<typeof commitRecordListSchema>;
|
|
1404
|
+
//# sourceMappingURL=contract.d.ts.map
|