@abloatai/transaction 0.37.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 +83 -0
- package/README.md +48 -0
- package/dist/ablo.d.ts +90 -0
- package/dist/ablo.d.ts.map +1 -0
- package/dist/ablo.js +34 -0
- package/dist/ablo.js.map +1 -0
- package/dist/ai-sdk/coordinatedTool.d.ts +123 -0
- package/dist/ai-sdk/coordinatedTool.d.ts.map +1 -0
- package/dist/ai-sdk/coordinatedTool.js +135 -0
- package/dist/ai-sdk/coordinatedTool.js.map +1 -0
- package/dist/ai-sdk/index.d.ts +2 -0
- package/dist/ai-sdk/index.d.ts.map +1 -0
- package/dist/ai-sdk/index.js +2 -0
- package/dist/ai-sdk/index.js.map +1 -0
- package/dist/auth/apiKey.d.ts +154 -0
- package/dist/auth/apiKey.d.ts.map +1 -0
- package/dist/auth/apiKey.js +408 -0
- package/dist/auth/apiKey.js.map +1 -0
- package/dist/auth/bootstrapScope.d.ts +16 -0
- package/dist/auth/bootstrapScope.d.ts.map +1 -0
- package/dist/auth/bootstrapScope.js +2 -0
- package/dist/auth/bootstrapScope.js.map +1 -0
- package/dist/auth/browserCredentialSafety.d.ts +7 -0
- package/dist/auth/browserCredentialSafety.d.ts.map +1 -0
- package/dist/auth/browserCredentialSafety.js +29 -0
- package/dist/auth/browserCredentialSafety.js.map +1 -0
- package/dist/auth/capability.d.ts +241 -0
- package/dist/auth/capability.d.ts.map +1 -0
- package/dist/auth/capability.js +253 -0
- package/dist/auth/capability.js.map +1 -0
- package/dist/auth/capabilityLifecycle.d.ts +47 -0
- package/dist/auth/capabilityLifecycle.d.ts.map +1 -0
- package/dist/auth/capabilityLifecycle.js +108 -0
- package/dist/auth/capabilityLifecycle.js.map +1 -0
- package/dist/auth/credentialEndpoint.d.ts +10 -0
- package/dist/auth/credentialEndpoint.d.ts.map +1 -0
- package/dist/auth/credentialEndpoint.js +58 -0
- package/dist/auth/credentialEndpoint.js.map +1 -0
- package/dist/auth/credentialEndpointProtocol.d.ts +24 -0
- package/dist/auth/credentialEndpointProtocol.d.ts.map +1 -0
- package/dist/auth/credentialEndpointProtocol.js +34 -0
- package/dist/auth/credentialEndpointProtocol.js.map +1 -0
- package/dist/auth/credentialKind.d.ts +4 -0
- package/dist/auth/credentialKind.d.ts.map +1 -0
- package/dist/auth/credentialKind.js +15 -0
- package/dist/auth/credentialKind.js.map +1 -0
- package/dist/auth/credentialPolicy.d.ts +141 -0
- package/dist/auth/credentialPolicy.d.ts.map +1 -0
- package/dist/auth/credentialPolicy.js +113 -0
- package/dist/auth/credentialPolicy.js.map +1 -0
- package/dist/auth/credentialResult.d.ts +7 -0
- package/dist/auth/credentialResult.d.ts.map +1 -0
- package/dist/auth/credentialResult.js +9 -0
- package/dist/auth/credentialResult.js.map +1 -0
- package/dist/auth/credentialSource.d.ts +31 -0
- package/dist/auth/credentialSource.d.ts.map +1 -0
- package/dist/auth/credentialSource.js +56 -0
- package/dist/auth/credentialSource.js.map +1 -0
- package/dist/auth/hostedEndpoints.d.ts +22 -0
- package/dist/auth/hostedEndpoints.d.ts.map +1 -0
- package/dist/auth/hostedEndpoints.js +22 -0
- package/dist/auth/hostedEndpoints.js.map +1 -0
- package/dist/auth/identity.d.ts +62 -0
- package/dist/auth/identity.d.ts.map +1 -0
- package/dist/auth/identity.js +224 -0
- package/dist/auth/identity.js.map +1 -0
- package/dist/auth/index.d.ts +189 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +312 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/schemas.d.ts +41 -0
- package/dist/auth/schemas.d.ts.map +1 -0
- package/dist/auth/schemas.js +69 -0
- package/dist/auth/schemas.js.map +1 -0
- package/dist/auth/sessionMint.d.ts +29 -0
- package/dist/auth/sessionMint.d.ts.map +1 -0
- package/dist/auth/sessionMint.js +92 -0
- package/dist/auth/sessionMint.js.map +1 -0
- package/dist/auth/token.d.ts +4 -0
- package/dist/auth/token.d.ts.map +1 -0
- package/dist/auth/token.js +4 -0
- package/dist/auth/token.js.map +1 -0
- package/dist/batching/index.d.ts +56 -0
- package/dist/batching/index.d.ts.map +1 -0
- package/dist/batching/index.js +148 -0
- package/dist/batching/index.js.map +1 -0
- package/dist/coordination/awaitClaimGrant.d.ts +57 -0
- package/dist/coordination/awaitClaimGrant.d.ts.map +1 -0
- package/dist/coordination/awaitClaimGrant.js +138 -0
- package/dist/coordination/awaitClaimGrant.js.map +1 -0
- package/dist/coordination/claimHeartbeatLoop.d.ts +85 -0
- package/dist/coordination/claimHeartbeatLoop.d.ts.map +1 -0
- package/dist/coordination/claimHeartbeatLoop.js +109 -0
- package/dist/coordination/claimHeartbeatLoop.js.map +1 -0
- package/dist/coordination/claimMeta.d.ts +50 -0
- package/dist/coordination/claimMeta.d.ts.map +1 -0
- package/dist/coordination/claimMeta.js +53 -0
- package/dist/coordination/claimMeta.js.map +1 -0
- package/dist/coordination/events.d.ts +75 -0
- package/dist/coordination/events.d.ts.map +1 -0
- package/dist/coordination/events.js +8 -0
- package/dist/coordination/events.js.map +1 -0
- package/dist/coordination/index.d.ts +20 -0
- package/dist/coordination/index.d.ts.map +1 -0
- package/dist/coordination/index.js +46 -0
- package/dist/coordination/index.js.map +1 -0
- package/dist/coordination/locator.d.ts +106 -0
- package/dist/coordination/locator.d.ts.map +1 -0
- package/dist/coordination/locator.js +110 -0
- package/dist/coordination/locator.js.map +1 -0
- package/dist/coordination/schema.d.ts +1332 -0
- package/dist/coordination/schema.d.ts.map +1 -0
- package/dist/coordination/schema.js +1137 -0
- package/dist/coordination/schema.js.map +1 -0
- package/dist/coordination/targetConflict.d.ts +3 -0
- package/dist/coordination/targetConflict.d.ts.map +1 -0
- package/dist/coordination/targetConflict.js +74 -0
- package/dist/coordination/targetConflict.js.map +1 -0
- package/dist/coordination/trace.d.ts +79 -0
- package/dist/coordination/trace.d.ts.map +1 -0
- package/dist/coordination/trace.js +139 -0
- package/dist/coordination/trace.js.map +1 -0
- package/dist/docs/catalog.d.ts +73 -0
- package/dist/docs/catalog.d.ts.map +1 -0
- package/dist/docs/catalog.js +231 -0
- package/dist/docs/catalog.js.map +1 -0
- package/dist/docs/index.d.ts +11 -0
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +11 -0
- package/dist/docs/index.js.map +1 -0
- package/dist/durableWrites.d.ts +63 -0
- package/dist/durableWrites.d.ts.map +1 -0
- package/dist/durableWrites.js +72 -0
- package/dist/durableWrites.js.map +1 -0
- package/dist/environment.d.ts +106 -0
- package/dist/environment.d.ts.map +1 -0
- package/dist/environment.js +109 -0
- package/dist/environment.js.map +1 -0
- package/dist/errorCodes.d.ts +411 -0
- package/dist/errorCodes.d.ts.map +1 -0
- package/dist/errorCodes.js +500 -0
- package/dist/errorCodes.js.map +1 -0
- package/dist/errors.d.ts +429 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +687 -0
- package/dist/errors.js.map +1 -0
- package/dist/footprint.d.ts +112 -0
- package/dist/footprint.d.ts.map +1 -0
- package/dist/footprint.js +0 -0
- package/dist/footprint.js.map +1 -0
- package/dist/headlessClient.d.ts +10 -0
- package/dist/headlessClient.d.ts.map +1 -0
- package/dist/headlessClient.js +114 -0
- package/dist/headlessClient.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/keys/index.d.ts +88 -0
- package/dist/keys/index.d.ts.map +1 -0
- package/dist/keys/index.js +208 -0
- package/dist/keys/index.js.map +1 -0
- package/dist/log/syncDeltaRow.d.ts +159 -0
- package/dist/log/syncDeltaRow.d.ts.map +1 -0
- package/dist/log/syncDeltaRow.js +96 -0
- package/dist/log/syncDeltaRow.js.map +1 -0
- package/dist/logger.d.ts +17 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +8 -0
- package/dist/logger.js.map +1 -0
- package/dist/observability.d.ts +54 -0
- package/dist/observability.d.ts.map +1 -0
- package/dist/observability.js +20 -0
- package/dist/observability.js.map +1 -0
- package/dist/policy/types.d.ts +218 -0
- package/dist/policy/types.d.ts.map +1 -0
- package/dist/policy/types.js +127 -0
- package/dist/policy/types.js.map +1 -0
- package/dist/resources/functionalUpdate.d.ts +80 -0
- package/dist/resources/functionalUpdate.d.ts.map +1 -0
- package/dist/resources/functionalUpdate.js +88 -0
- package/dist/resources/functionalUpdate.js.map +1 -0
- package/dist/resources/httpResources.d.ts +449 -0
- package/dist/resources/httpResources.d.ts.map +1 -0
- package/dist/resources/httpResources.js +8 -0
- package/dist/resources/httpResources.js.map +1 -0
- package/dist/resources/modelOperations.d.ts +380 -0
- package/dist/resources/modelOperations.d.ts.map +1 -0
- package/dist/resources/modelOperations.js +13 -0
- package/dist/resources/modelOperations.js.map +1 -0
- package/dist/resources/mutationOptions.d.ts +67 -0
- package/dist/resources/mutationOptions.d.ts.map +1 -0
- package/dist/resources/mutationOptions.js +10 -0
- package/dist/resources/mutationOptions.js.map +1 -0
- package/dist/resources/where.d.ts +102 -0
- package/dist/resources/where.d.ts.map +1 -0
- package/dist/resources/where.js +116 -0
- package/dist/resources/where.js.map +1 -0
- package/dist/resources/writeOptionsSchema.d.ts +48 -0
- package/dist/resources/writeOptionsSchema.d.ts.map +1 -0
- package/dist/resources/writeOptionsSchema.js +74 -0
- package/dist/resources/writeOptionsSchema.js.map +1 -0
- package/dist/schema/coordination.d.ts +113 -0
- package/dist/schema/coordination.d.ts.map +1 -0
- package/dist/schema/coordination.js +134 -0
- package/dist/schema/coordination.js.map +1 -0
- package/dist/schema/ddl.d.ts +98 -0
- package/dist/schema/ddl.d.ts.map +1 -0
- package/dist/schema/ddl.js +492 -0
- package/dist/schema/ddl.js.map +1 -0
- package/dist/schema/ddlLock.d.ts +36 -0
- package/dist/schema/ddlLock.d.ts.map +1 -0
- package/dist/schema/ddlLock.js +47 -0
- package/dist/schema/ddlLock.js.map +1 -0
- package/dist/schema/diff.d.ts +226 -0
- package/dist/schema/diff.d.ts.map +1 -0
- package/dist/schema/diff.js +290 -0
- package/dist/schema/diff.js.map +1 -0
- package/dist/schema/field.d.ts +121 -0
- package/dist/schema/field.d.ts.map +1 -0
- package/dist/schema/field.js +266 -0
- package/dist/schema/field.js.map +1 -0
- package/dist/schema/fieldRef.d.ts +58 -0
- package/dist/schema/fieldRef.d.ts.map +1 -0
- package/dist/schema/fieldRef.js +26 -0
- package/dist/schema/fieldRef.js.map +1 -0
- package/dist/schema/generate.d.ts +20 -0
- package/dist/schema/generate.d.ts.map +1 -0
- package/dist/schema/generate.js +87 -0
- package/dist/schema/generate.js.map +1 -0
- package/dist/schema/index.d.ts +43 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +81 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/loadStrategy.d.ts +46 -0
- package/dist/schema/loadStrategy.d.ts.map +1 -0
- package/dist/schema/loadStrategy.js +47 -0
- package/dist/schema/loadStrategy.js.map +1 -0
- package/dist/schema/model.d.ts +380 -0
- package/dist/schema/model.d.ts.map +1 -0
- package/dist/schema/model.js +124 -0
- package/dist/schema/model.js.map +1 -0
- package/dist/schema/openapi.d.ts +59 -0
- package/dist/schema/openapi.d.ts.map +1 -0
- package/dist/schema/openapi.js +508 -0
- package/dist/schema/openapi.js.map +1 -0
- package/dist/schema/queries.d.ts +202 -0
- package/dist/schema/queries.d.ts.map +1 -0
- package/dist/schema/queries.js +144 -0
- package/dist/schema/queries.js.map +1 -0
- package/dist/schema/relation.d.ts +205 -0
- package/dist/schema/relation.d.ts.map +1 -0
- package/dist/schema/relation.js +105 -0
- package/dist/schema/relation.js.map +1 -0
- package/dist/schema/residency.d.ts +30 -0
- package/dist/schema/residency.d.ts.map +1 -0
- package/dist/schema/residency.js +26 -0
- package/dist/schema/residency.js.map +1 -0
- package/dist/schema/roles.d.ts +250 -0
- package/dist/schema/roles.d.ts.map +1 -0
- package/dist/schema/roles.js +231 -0
- package/dist/schema/roles.js.map +1 -0
- package/dist/schema/schema.d.ts +352 -0
- package/dist/schema/schema.d.ts.map +1 -0
- package/dist/schema/schema.js +326 -0
- package/dist/schema/schema.js.map +1 -0
- package/dist/schema/select.d.ts +41 -0
- package/dist/schema/select.d.ts.map +1 -0
- package/dist/schema/select.js +91 -0
- package/dist/schema/select.js.map +1 -0
- package/dist/schema/serialize.d.ts +116 -0
- package/dist/schema/serialize.d.ts.map +1 -0
- package/dist/schema/serialize.js +278 -0
- package/dist/schema/serialize.js.map +1 -0
- package/dist/schema/sugar.d.ts +110 -0
- package/dist/schema/sugar.d.ts.map +1 -0
- package/dist/schema/sugar.js +84 -0
- package/dist/schema/sugar.js.map +1 -0
- package/dist/schema/tenancy.d.ts +140 -0
- package/dist/schema/tenancy.d.ts.map +1 -0
- package/dist/schema/tenancy.js +191 -0
- package/dist/schema/tenancy.js.map +1 -0
- package/dist/server/adapter.d.ts +174 -0
- package/dist/server/adapter.d.ts.map +1 -0
- package/dist/server/adapter.js +19 -0
- package/dist/server/adapter.js.map +1 -0
- package/dist/server/commit.d.ts +108 -0
- package/dist/server/commit.d.ts.map +1 -0
- package/dist/server/commit.js +2 -0
- package/dist/server/commit.js.map +1 -0
- package/dist/server/index.d.ts +15 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +3 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/readConfig.d.ts +81 -0
- package/dist/server/readConfig.d.ts.map +1 -0
- package/dist/server/readConfig.js +9 -0
- package/dist/server/readConfig.js.map +1 -0
- package/dist/server/storageMode.d.ts +24 -0
- package/dist/server/storageMode.d.ts.map +1 -0
- package/dist/server/storageMode.js +18 -0
- package/dist/server/storageMode.js.map +1 -0
- package/dist/source/adapter.d.ts +84 -0
- package/dist/source/adapter.d.ts.map +1 -0
- package/dist/source/adapter.js +25 -0
- package/dist/source/adapter.js.map +1 -0
- package/dist/source/adapters/drizzle.d.ts +49 -0
- package/dist/source/adapters/drizzle.d.ts.map +1 -0
- package/dist/source/adapters/drizzle.js +220 -0
- package/dist/source/adapters/drizzle.js.map +1 -0
- package/dist/source/adapters/kysely.d.ts +43 -0
- package/dist/source/adapters/kysely.d.ts.map +1 -0
- package/dist/source/adapters/kysely.js +206 -0
- package/dist/source/adapters/kysely.js.map +1 -0
- package/dist/source/adapters/kyselyMutationCore.d.ts +77 -0
- package/dist/source/adapters/kyselyMutationCore.d.ts.map +1 -0
- package/dist/source/adapters/kyselyMutationCore.js +126 -0
- package/dist/source/adapters/kyselyMutationCore.js.map +1 -0
- package/dist/source/adapters/memory.d.ts +14 -0
- package/dist/source/adapters/memory.d.ts.map +1 -0
- package/dist/source/adapters/memory.js +131 -0
- package/dist/source/adapters/memory.js.map +1 -0
- package/dist/source/adapters/prisma.d.ts +64 -0
- package/dist/source/adapters/prisma.d.ts.map +1 -0
- package/dist/source/adapters/prisma.js +203 -0
- package/dist/source/adapters/prisma.js.map +1 -0
- package/dist/source/conformance.d.ts +38 -0
- package/dist/source/conformance.d.ts.map +1 -0
- package/dist/source/conformance.js +216 -0
- package/dist/source/conformance.js.map +1 -0
- package/dist/source/connector.d.ts +96 -0
- package/dist/source/connector.d.ts.map +1 -0
- package/dist/source/connector.js +267 -0
- package/dist/source/connector.js.map +1 -0
- package/dist/source/connectorProtocol.d.ts +155 -0
- package/dist/source/connectorProtocol.d.ts.map +1 -0
- package/dist/source/connectorProtocol.js +164 -0
- package/dist/source/connectorProtocol.js.map +1 -0
- package/dist/source/contract.d.ts +196 -0
- package/dist/source/contract.d.ts.map +1 -0
- package/dist/source/contract.js +165 -0
- package/dist/source/contract.js.map +1 -0
- package/dist/source/drizzle.d.ts +2 -0
- package/dist/source/drizzle.d.ts.map +1 -0
- package/dist/source/drizzle.js +2 -0
- package/dist/source/drizzle.js.map +1 -0
- package/dist/source/factory.d.ts +93 -0
- package/dist/source/factory.d.ts.map +1 -0
- package/dist/source/factory.js +287 -0
- package/dist/source/factory.js.map +1 -0
- package/dist/source/idempotency.d.ts +62 -0
- package/dist/source/idempotency.d.ts.map +1 -0
- package/dist/source/idempotency.js +145 -0
- package/dist/source/idempotency.js.map +1 -0
- package/dist/source/index.d.ts +24 -0
- package/dist/source/index.d.ts.map +1 -0
- package/dist/source/index.js +29 -0
- package/dist/source/index.js.map +1 -0
- package/dist/source/kysely.d.ts +3 -0
- package/dist/source/kysely.d.ts.map +1 -0
- package/dist/source/kysely.js +3 -0
- package/dist/source/kysely.js.map +1 -0
- package/dist/source/migrations.d.ts +22 -0
- package/dist/source/migrations.d.ts.map +1 -0
- package/dist/source/migrations.js +104 -0
- package/dist/source/migrations.js.map +1 -0
- package/dist/source/next.d.ts +33 -0
- package/dist/source/next.d.ts.map +1 -0
- package/dist/source/next.js +26 -0
- package/dist/source/next.js.map +1 -0
- package/dist/source/pushQueue.d.ts +135 -0
- package/dist/source/pushQueue.d.ts.map +1 -0
- package/dist/source/pushQueue.js +257 -0
- package/dist/source/pushQueue.js.map +1 -0
- package/dist/source/signing.d.ts +93 -0
- package/dist/source/signing.d.ts.map +1 -0
- package/dist/source/signing.js +163 -0
- package/dist/source/signing.js.map +1 -0
- package/dist/source/types.d.ts +402 -0
- package/dist/source/types.d.ts.map +1 -0
- package/dist/source/types.js +60 -0
- package/dist/source/types.js.map +1 -0
- package/dist/syncLog/contract.d.ts +21 -0
- package/dist/syncLog/contract.d.ts.map +1 -0
- package/dist/syncLog/contract.js +20 -0
- package/dist/syncLog/contract.js.map +1 -0
- package/dist/syncLog/index.d.ts +2 -0
- package/dist/syncLog/index.d.ts.map +1 -0
- package/dist/syncLog/index.js +2 -0
- package/dist/syncLog/index.js.map +1 -0
- package/dist/testing/fixtures/httpResponses.d.ts +74 -0
- package/dist/testing/fixtures/httpResponses.d.ts.map +1 -0
- package/dist/testing/fixtures/httpResponses.js +102 -0
- package/dist/testing/fixtures/httpResponses.js.map +1 -0
- package/dist/transactionLayer.d.ts +110 -0
- package/dist/transactionLayer.d.ts.map +1 -0
- package/dist/transactionLayer.js +25 -0
- package/dist/transactionLayer.js.map +1 -0
- package/dist/transactions/settlement/commitEnvelope.d.ts +144 -0
- package/dist/transactions/settlement/commitEnvelope.d.ts.map +1 -0
- package/dist/transactions/settlement/commitEnvelope.js +162 -0
- package/dist/transactions/settlement/commitEnvelope.js.map +1 -0
- package/dist/transactions/settlement/httpCommitEnvelope.d.ts +54 -0
- package/dist/transactions/settlement/httpCommitEnvelope.d.ts.map +1 -0
- package/dist/transactions/settlement/httpCommitEnvelope.js +208 -0
- package/dist/transactions/settlement/httpCommitEnvelope.js.map +1 -0
- package/dist/transactions/settlement/idempotencyKey.d.ts +11 -0
- package/dist/transactions/settlement/idempotencyKey.d.ts.map +1 -0
- package/dist/transactions/settlement/idempotencyKey.js +10 -0
- package/dist/transactions/settlement/idempotencyKey.js.map +1 -0
- package/dist/transactions/settlement/pendingWrite.d.ts +113 -0
- package/dist/transactions/settlement/pendingWrite.d.ts.map +1 -0
- package/dist/transactions/settlement/pendingWrite.js +21 -0
- package/dist/transactions/settlement/pendingWrite.js.map +1 -0
- package/dist/transport/commitFrames.d.ts +91 -0
- package/dist/transport/commitFrames.d.ts.map +1 -0
- package/dist/transport/commitFrames.js +135 -0
- package/dist/transport/commitFrames.js.map +1 -0
- package/dist/transport/connectionManager.d.ts +216 -0
- package/dist/transport/connectionManager.d.ts.map +1 -0
- package/dist/transport/connectionManager.js +674 -0
- package/dist/transport/connectionManager.js.map +1 -0
- package/dist/transport/credentialLifecycle.d.ts +178 -0
- package/dist/transport/credentialLifecycle.d.ts.map +1 -0
- package/dist/transport/credentialLifecycle.js +324 -0
- package/dist/transport/credentialLifecycle.js.map +1 -0
- package/dist/transport/heartbeat.d.ts +66 -0
- package/dist/transport/heartbeat.d.ts.map +1 -0
- package/dist/transport/heartbeat.js +94 -0
- package/dist/transport/heartbeat.js.map +1 -0
- package/dist/transport/httpClient.d.ts +143 -0
- package/dist/transport/httpClient.d.ts.map +1 -0
- package/dist/transport/httpClient.js +150 -0
- package/dist/transport/httpClient.js.map +1 -0
- package/dist/transport/httpFeed.d.ts +4 -0
- package/dist/transport/httpFeed.d.ts.map +1 -0
- package/dist/transport/httpFeed.js +94 -0
- package/dist/transport/httpFeed.js.map +1 -0
- package/dist/transport/httpOptions.d.ts +34 -0
- package/dist/transport/httpOptions.d.ts.map +1 -0
- package/dist/transport/httpOptions.js +13 -0
- package/dist/transport/httpOptions.js.map +1 -0
- package/dist/transport/httpTransport.d.ts +68 -0
- package/dist/transport/httpTransport.d.ts.map +1 -0
- package/dist/transport/httpTransport.js +1433 -0
- package/dist/transport/httpTransport.js.map +1 -0
- package/dist/transport/networkProbe.d.ts +85 -0
- package/dist/transport/networkProbe.d.ts.map +1 -0
- package/dist/transport/networkProbe.js +208 -0
- package/dist/transport/networkProbe.js.map +1 -0
- package/dist/transport/wsFrameHandlers.d.ts +129 -0
- package/dist/transport/wsFrameHandlers.d.ts.map +1 -0
- package/dist/transport/wsFrameHandlers.js +429 -0
- package/dist/transport/wsFrameHandlers.js.map +1 -0
- package/dist/transport/wsTransport.d.ts +575 -0
- package/dist/transport/wsTransport.d.ts.map +1 -0
- package/dist/transport/wsTransport.js +1024 -0
- package/dist/transport/wsTransport.js.map +1 -0
- package/dist/types/assertExact.d.ts +18 -0
- package/dist/types/assertExact.d.ts.map +1 -0
- package/dist/types/assertExact.js +2 -0
- package/dist/types/assertExact.js.map +1 -0
- package/dist/types/global.d.ts +108 -0
- package/dist/types/global.d.ts.map +1 -0
- package/dist/types/global.js +41 -0
- package/dist/types/global.js.map +1 -0
- package/dist/types/index.d.ts +206 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +57 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/modelData.d.ts +11 -0
- package/dist/types/modelData.d.ts.map +1 -0
- package/dist/types/modelData.js +10 -0
- package/dist/types/modelData.js.map +1 -0
- package/dist/types/participant.d.ts +21 -0
- package/dist/types/participant.d.ts.map +1 -0
- package/dist/types/participant.js +11 -0
- package/dist/types/participant.js.map +1 -0
- package/dist/types/streams.d.ts +545 -0
- package/dist/types/streams.d.ts.map +1 -0
- package/dist/types/streams.js +12 -0
- package/dist/types/streams.js.map +1 -0
- package/dist/utils/asyncIterator.d.ts +35 -0
- package/dist/utils/asyncIterator.d.ts.map +1 -0
- package/dist/utils/asyncIterator.js +136 -0
- package/dist/utils/asyncIterator.js.map +1 -0
- package/dist/utils/duration.d.ts +51 -0
- package/dist/utils/duration.d.ts.map +1 -0
- package/dist/utils/duration.js +78 -0
- package/dist/utils/duration.js.map +1 -0
- package/dist/utils/json.d.ts +58 -0
- package/dist/utils/json.d.ts.map +1 -0
- package/dist/utils/json.js +277 -0
- package/dist/utils/json.js.map +1 -0
- package/dist/webhooks/events.d.ts +44 -0
- package/dist/webhooks/events.d.ts.map +1 -0
- package/dist/webhooks/events.js +43 -0
- package/dist/webhooks/events.js.map +1 -0
- package/dist/webhooks/index.d.ts +9 -0
- package/dist/webhooks/index.d.ts.map +1 -0
- package/dist/webhooks/index.js +9 -0
- package/dist/webhooks/index.js.map +1 -0
- package/dist/wire/accountResponses.d.ts +463 -0
- package/dist/wire/accountResponses.d.ts.map +1 -0
- package/dist/wire/accountResponses.js +294 -0
- package/dist/wire/accountResponses.js.map +1 -0
- package/dist/wire/auth.d.ts +57 -0
- package/dist/wire/auth.d.ts.map +1 -0
- package/dist/wire/auth.js +71 -0
- package/dist/wire/auth.js.map +1 -0
- package/dist/wire/bootstrapReason.d.ts +10 -0
- package/dist/wire/bootstrapReason.d.ts.map +1 -0
- package/dist/wire/bootstrapReason.js +9 -0
- package/dist/wire/bootstrapReason.js.map +1 -0
- package/dist/wire/claimEvent.d.ts +70 -0
- package/dist/wire/claimEvent.d.ts.map +1 -0
- package/dist/wire/claimEvent.js +74 -0
- package/dist/wire/claimEvent.js.map +1 -0
- package/dist/wire/claims.d.ts +475 -0
- package/dist/wire/claims.d.ts.map +1 -0
- package/dist/wire/claims.js +326 -0
- package/dist/wire/claims.js.map +1 -0
- package/dist/wire/commit.d.ts +604 -0
- package/dist/wire/commit.d.ts.map +1 -0
- package/dist/wire/commit.js +322 -0
- package/dist/wire/commit.js.map +1 -0
- package/dist/wire/delta.d.ts +251 -0
- package/dist/wire/delta.d.ts.map +1 -0
- package/dist/wire/delta.js +148 -0
- package/dist/wire/delta.js.map +1 -0
- package/dist/wire/errorEnvelope.d.ts +73 -0
- package/dist/wire/errorEnvelope.d.ts.map +1 -0
- package/dist/wire/errorEnvelope.js +124 -0
- package/dist/wire/errorEnvelope.js.map +1 -0
- package/dist/wire/feedCursor.d.ts +61 -0
- package/dist/wire/feedCursor.d.ts.map +1 -0
- package/dist/wire/feedCursor.js +83 -0
- package/dist/wire/feedCursor.js.map +1 -0
- package/dist/wire/feedEvent.d.ts +264 -0
- package/dist/wire/feedEvent.d.ts.map +1 -0
- package/dist/wire/feedEvent.js +66 -0
- package/dist/wire/feedEvent.js.map +1 -0
- package/dist/wire/frames.d.ts +195 -0
- package/dist/wire/frames.d.ts.map +1 -0
- package/dist/wire/frames.js +51 -0
- package/dist/wire/frames.js.map +1 -0
- package/dist/wire/inboundFrames.d.ts +490 -0
- package/dist/wire/inboundFrames.d.ts.map +1 -0
- package/dist/wire/inboundFrames.js +117 -0
- package/dist/wire/inboundFrames.js.map +1 -0
- package/dist/wire/index.d.ts +55 -0
- package/dist/wire/index.d.ts.map +1 -0
- package/dist/wire/index.js +84 -0
- package/dist/wire/index.js.map +1 -0
- package/dist/wire/listEnvelope.d.ts +38 -0
- package/dist/wire/listEnvelope.d.ts.map +1 -0
- package/dist/wire/listEnvelope.js +43 -0
- package/dist/wire/listEnvelope.js.map +1 -0
- package/dist/wire/modelMutations.d.ts +32 -0
- package/dist/wire/modelMutations.d.ts.map +1 -0
- package/dist/wire/modelMutations.js +53 -0
- package/dist/wire/modelMutations.js.map +1 -0
- package/dist/wire/modelResponses.d.ts +79 -0
- package/dist/wire/modelResponses.d.ts.map +1 -0
- package/dist/wire/modelResponses.js +44 -0
- package/dist/wire/modelResponses.js.map +1 -0
- package/dist/wire/modelShape.d.ts +79 -0
- package/dist/wire/modelShape.d.ts.map +1 -0
- package/dist/wire/modelShape.js +75 -0
- package/dist/wire/modelShape.js.map +1 -0
- package/dist/wire/protocol.d.ts +39 -0
- package/dist/wire/protocol.d.ts.map +1 -0
- package/dist/wire/protocol.js +39 -0
- package/dist/wire/protocol.js.map +1 -0
- package/dist/wire/protocolVersion.d.ts +74 -0
- package/dist/wire/protocolVersion.d.ts.map +1 -0
- package/dist/wire/protocolVersion.js +84 -0
- package/dist/wire/protocolVersion.js.map +1 -0
- package/package.json +187 -0
- package/src/ablo.ts +139 -0
- package/src/ai-sdk/coordinatedTool.ts +214 -0
- package/src/ai-sdk/index.ts +7 -0
- package/src/auth/apiKey.ts +540 -0
- package/src/auth/bootstrapScope.ts +15 -0
- package/src/auth/browserCredentialSafety.ts +48 -0
- package/src/auth/capability.ts +326 -0
- package/src/auth/capabilityLifecycle.ts +174 -0
- package/src/auth/credentialEndpoint.ts +79 -0
- package/src/auth/credentialEndpointProtocol.ts +51 -0
- package/src/auth/credentialKind.ts +20 -0
- package/src/auth/credentialPolicy.ts +244 -0
- package/src/auth/credentialResult.ts +23 -0
- package/src/auth/credentialSource.ts +99 -0
- package/src/auth/hostedEndpoints.ts +24 -0
- package/src/auth/identity.ts +330 -0
- package/src/auth/index.ts +592 -0
- package/src/auth/schemas.ts +94 -0
- package/src/auth/sessionMint.ts +126 -0
- package/src/auth/token.ts +4 -0
- package/src/batching/index.ts +200 -0
- package/src/coordination/awaitClaimGrant.ts +243 -0
- package/src/coordination/claimHeartbeatLoop.ts +165 -0
- package/src/coordination/claimMeta.ts +56 -0
- package/src/coordination/events.ts +86 -0
- package/src/coordination/index.ts +181 -0
- package/src/coordination/locator.ts +200 -0
- package/src/coordination/schema.ts +1346 -0
- package/src/coordination/targetConflict.ts +85 -0
- package/src/coordination/trace.ts +173 -0
- package/src/docs/catalog.ts +274 -0
- package/src/docs/index.ts +18 -0
- package/src/durableWrites.ts +134 -0
- package/src/environment.ts +132 -0
- package/src/errorCodes.ts +1591 -0
- package/src/errors.ts +918 -0
- package/src/footprint.ts +0 -0
- package/src/headlessClient.ts +161 -0
- package/src/index.ts +52 -0
- package/src/keys/index.ts +254 -0
- package/src/log/syncDeltaRow.ts +119 -0
- package/src/logger.ts +22 -0
- package/src/observability.ts +85 -0
- package/src/policy/types.ts +292 -0
- package/src/resources/functionalUpdate.ts +151 -0
- package/src/resources/httpResources.ts +520 -0
- package/src/resources/modelOperations.ts +444 -0
- package/src/resources/mutationOptions.ts +66 -0
- package/src/resources/where.ts +160 -0
- package/src/resources/writeOptionsSchema.ts +91 -0
- package/src/schema/coordination.ts +161 -0
- package/src/schema/ddl.ts +593 -0
- package/src/schema/ddlLock.ts +53 -0
- package/src/schema/diff.ts +489 -0
- package/src/schema/field.ts +321 -0
- package/src/schema/fieldRef.ts +88 -0
- package/src/schema/generate.ts +95 -0
- package/src/schema/index.ts +278 -0
- package/src/schema/loadStrategy.ts +52 -0
- package/src/schema/model.ts +476 -0
- package/src/schema/openapi.ts +658 -0
- package/src/schema/queries.ts +273 -0
- package/src/schema/relation.ts +291 -0
- package/src/schema/residency.ts +30 -0
- package/src/schema/roles.ts +325 -0
- package/src/schema/schema.ts +825 -0
- package/src/schema/select.ts +115 -0
- package/src/schema/serialize.ts +373 -0
- package/src/schema/sugar.ts +194 -0
- package/src/schema/tenancy.ts +221 -0
- package/src/server/adapter.ts +203 -0
- package/src/server/commit.ts +109 -0
- package/src/server/index.ts +26 -0
- package/src/server/readConfig.ts +82 -0
- package/src/server/storageMode.ts +20 -0
- package/src/source/adapter.ts +85 -0
- package/src/source/adapters/drizzle.ts +291 -0
- package/src/source/adapters/kysely.ts +346 -0
- package/src/source/adapters/kyselyMutationCore.ts +220 -0
- package/src/source/adapters/memory.ts +154 -0
- package/src/source/adapters/prisma.ts +282 -0
- package/src/source/conformance.ts +287 -0
- package/src/source/connector.ts +394 -0
- package/src/source/connectorProtocol.ts +189 -0
- package/src/source/contract.ts +221 -0
- package/src/source/drizzle.ts +1 -0
- package/src/source/factory.ts +444 -0
- package/src/source/idempotency.ts +189 -0
- package/src/source/index.ts +182 -0
- package/src/source/kysely.ts +2 -0
- package/src/source/migrations.ts +109 -0
- package/src/source/next.ts +38 -0
- package/src/source/pushQueue.ts +368 -0
- package/src/source/signing.ts +279 -0
- package/src/source/types.ts +502 -0
- package/src/syncLog/contract.ts +32 -0
- package/src/syncLog/index.ts +1 -0
- package/src/testing/fixtures/httpResponses.ts +155 -0
- package/src/transactionLayer.ts +122 -0
- package/src/transactions/settlement/commitEnvelope.ts +192 -0
- package/src/transactions/settlement/httpCommitEnvelope.ts +250 -0
- package/src/transactions/settlement/idempotencyKey.ts +11 -0
- package/src/transactions/settlement/pendingWrite.ts +24 -0
- package/src/transport/commitFrames.ts +225 -0
- package/src/transport/connectionManager.ts +856 -0
- package/src/transport/credentialLifecycle.ts +389 -0
- package/src/transport/heartbeat.ts +118 -0
- package/src/transport/httpClient.ts +354 -0
- package/src/transport/httpFeed.ts +111 -0
- package/src/transport/httpOptions.ts +41 -0
- package/src/transport/httpTransport.ts +1976 -0
- package/src/transport/networkProbe.ts +249 -0
- package/src/transport/wsFrameHandlers.ts +619 -0
- package/src/transport/wsTransport.ts +1491 -0
- package/src/types/assertExact.ts +17 -0
- package/src/types/global.ts +123 -0
- package/src/types/index.ts +270 -0
- package/src/types/modelData.ts +11 -0
- package/src/types/participant.ts +22 -0
- package/src/types/streams.ts +702 -0
- package/src/utils/asyncIterator.ts +141 -0
- package/src/utils/duration.ts +88 -0
- package/src/utils/json.ts +281 -0
- package/src/webhooks/events.ts +96 -0
- package/src/webhooks/index.ts +12 -0
- package/src/wire/accountResponses.ts +328 -0
- package/src/wire/auth.ts +86 -0
- package/src/wire/bootstrapReason.ts +10 -0
- package/src/wire/claimEvent.ts +85 -0
- package/src/wire/claims.ts +370 -0
- package/src/wire/commit.ts +379 -0
- package/src/wire/delta.ts +173 -0
- package/src/wire/errorEnvelope.ts +133 -0
- package/src/wire/feedCursor.ts +91 -0
- package/src/wire/feedEvent.ts +74 -0
- package/src/wire/frames.ts +77 -0
- package/src/wire/inboundFrames.ts +182 -0
- package/src/wire/index.ts +328 -0
- package/src/wire/listEnvelope.ts +51 -0
- package/src/wire/modelMutations.ts +55 -0
- package/src/wire/modelResponses.ts +48 -0
- package/src/wire/modelShape.ts +83 -0
- package/src/wire/protocol.ts +39 -0
- package/src/wire/protocolVersion.ts +97 -0
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared resource types for the typed clients and private HTTP transport.
|
|
3
|
+
* the commit and claim shapes, the session-mint params and resource, and the
|
|
4
|
+
* {@link HttpClaimApi} derivation. This module holds only types and has no runtime
|
|
5
|
+
* imports.
|
|
6
|
+
*/
|
|
7
|
+
import type { ClaimHeartbeatAckPayload, OnStaleMode, ReadDependency, TrackDependency } from '../coordination/schema.js';
|
|
8
|
+
import type { ClaimHeartbeatReply, ClaimState } from '../wire/claims.js';
|
|
9
|
+
import type { ClientCommitReceipt, CommitWait } from '../wire/commit.js';
|
|
10
|
+
import type { LogListResponse, LogQuery } from '../wire/feedEvent.js';
|
|
11
|
+
export type { CommitWait };
|
|
12
|
+
import type { ModelTarget, ModelClaim } from '../coordination/schema.js';
|
|
13
|
+
export type { ModelTarget, ModelClaim };
|
|
14
|
+
import type { ResolveClaimMeta } from '../types/global.js';
|
|
15
|
+
import type { SchemaRecord } from '../schema/schema.js';
|
|
16
|
+
import type { SyncGroupInput } from '../schema/roles.js';
|
|
17
|
+
import type { CapabilityCan, CapabilityOperation, CapabilityScope } from '../auth/capability.js';
|
|
18
|
+
import type { Claim, ClaimStream, ClaimWaitOptions, Duration, HeldClaim } from '../types/streams.js';
|
|
19
|
+
import type { ModelUpdater, ContentionOptions } from './functionalUpdate.js';
|
|
20
|
+
import type { ClaimOptions, ClaimParams, ClaimReadApi, AwaitedClaimMethod, ModelTrackParams, ModelTrackResult, ServerReadOptions } from './modelOperations.js';
|
|
21
|
+
/**
|
|
22
|
+
* The operations available on each model in the sync engine:
|
|
23
|
+
* `get({ id })` — an async single-row server read
|
|
24
|
+
* `list({ where })` — an async collection server read
|
|
25
|
+
* `local.get(id)` / `local.list(...)` / `local.count(...)` — synchronous local reads
|
|
26
|
+
* `create({ data })` / `update({ id, data })` / `delete({ id })` — writes
|
|
27
|
+
* `claim({ id })` — a durable claim handle for coordinated writes
|
|
28
|
+
*/
|
|
29
|
+
export type ModelOperationAction = 'create' | 'update' | 'delete' | 'archive' | 'unarchive';
|
|
30
|
+
/** @internal Transport envelope; the public typed client returns the row. */
|
|
31
|
+
export interface HttpTransportRead<T = Record<string, unknown>> {
|
|
32
|
+
/**
|
|
33
|
+
* The row, or `undefined` when no row matched the id (or it's outside the
|
|
34
|
+
* caller's scope). A miss is data-absence, not an error — `get` never
|
|
35
|
+
* throws "not found". This envelope stays inside the HTTP transport; the
|
|
36
|
+
* public typed client unwraps it to the WebSocket client's `T | undefined`.
|
|
37
|
+
*/
|
|
38
|
+
readonly data: T | undefined;
|
|
39
|
+
readonly stamp: number;
|
|
40
|
+
readonly claims: readonly ModelClaim[];
|
|
41
|
+
}
|
|
42
|
+
export type IfClaimedPolicy = 'return' | 'fail';
|
|
43
|
+
export interface ClaimedOptions {
|
|
44
|
+
/**
|
|
45
|
+
* What to do when another participant has claimed the target: `return` lets
|
|
46
|
+
* the read proceed; `fail` throws `AbloClaimedError`. Inspect claim state via
|
|
47
|
+
* `ablo.<model>.claim.state({ id })`. Waiting is a claim-side concern — take
|
|
48
|
+
* `ablo.<model>.claim({ id })` (it queues fairly); reads never block.
|
|
49
|
+
*/
|
|
50
|
+
readonly ifClaimed?: IfClaimedPolicy;
|
|
51
|
+
}
|
|
52
|
+
export type { ClaimWaitOptions } from '../types/streams.js';
|
|
53
|
+
export interface ModelReadOptions extends ClaimedOptions {
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The target a caller names when creating a claim: {@link ModelTarget} with its
|
|
57
|
+
* one caller-authored member typed — `meta` is the shape declared on
|
|
58
|
+
* `Register`'s `ClaimMeta` slot, the same declaration every reader of the claim
|
|
59
|
+
* is given back.
|
|
60
|
+
*
|
|
61
|
+
* Derived rather than restated, and narrowed only here: `modelTargetSchema`
|
|
62
|
+
* keeps parsing `meta` as an open record, because a peer on a newer build must
|
|
63
|
+
* still be understood. The wire stays permissive; the DTO the caller writes
|
|
64
|
+
* does not.
|
|
65
|
+
*/
|
|
66
|
+
export type ModelTargetInput = Omit<ModelTarget, 'meta'> & {
|
|
67
|
+
readonly meta?: ResolveClaimMeta;
|
|
68
|
+
};
|
|
69
|
+
export interface ClaimCreateOptions {
|
|
70
|
+
readonly target: ModelTargetInput;
|
|
71
|
+
/** Peer-visible description of the work — the same field on every claim
|
|
72
|
+
* surface. Defaults to `'editing'` when omitted. */
|
|
73
|
+
readonly description?: string;
|
|
74
|
+
readonly ttl?: Duration;
|
|
75
|
+
/**
|
|
76
|
+
* Join the server's fair FIFO queue when the target is already claimed,
|
|
77
|
+
* rather than failing immediately. `create` then resolves only once the
|
|
78
|
+
* lease is actually ours (the server pushes `claim_acquired` if the target
|
|
79
|
+
* was free, or `claim_granted` when we reach the head of the line). Without
|
|
80
|
+
* this, a contended claim throws. Used by `ablo.<model>.claim` so writers
|
|
81
|
+
* serialize instead of racing.
|
|
82
|
+
*/
|
|
83
|
+
readonly queue?: boolean;
|
|
84
|
+
/** Cap on how long to wait for a queued grant before rejecting. */
|
|
85
|
+
readonly waitTimeoutMs?: number;
|
|
86
|
+
/** Abort a pending wait from outside — rejects with `claim_wait_aborted`.
|
|
87
|
+
* Ignored once the grant has arrived. */
|
|
88
|
+
readonly signal?: AbortSignal;
|
|
89
|
+
/**
|
|
90
|
+
* Backpressure: reject with `AbloClaimedError('queue_too_deep')` instead of
|
|
91
|
+
* waiting if the queue is already `>= maxQueueDepth` when we join.
|
|
92
|
+
*/
|
|
93
|
+
readonly maxQueueDepth?: number;
|
|
94
|
+
}
|
|
95
|
+
export interface CommitOperationInput {
|
|
96
|
+
readonly action: ModelOperationAction;
|
|
97
|
+
/** The model name — matches `ablo.<model>` and the schema's `model()`. */
|
|
98
|
+
readonly model: string;
|
|
99
|
+
readonly id?: string | null;
|
|
100
|
+
readonly data?: Record<string, unknown> | null;
|
|
101
|
+
readonly transactionId?: string | null;
|
|
102
|
+
readonly readAt?: number | null;
|
|
103
|
+
readonly onStale?: OnStaleMode | null;
|
|
104
|
+
/** Fencing token (Option B) from the batch's claim handle; server-validated. */
|
|
105
|
+
readonly fenceToken?: number | null;
|
|
106
|
+
}
|
|
107
|
+
export interface CommitCreateOptions {
|
|
108
|
+
readonly idempotencyKey?: string | null;
|
|
109
|
+
readonly readAt?: number | null;
|
|
110
|
+
readonly onStale?: OnStaleMode | null;
|
|
111
|
+
/**
|
|
112
|
+
* A claim handle from `ablo.<model>.claim({ id })` (or the HTTP claim
|
|
113
|
+
* surface). Same vocabulary as the per-model writes: the handle's
|
|
114
|
+
* snapshot watermark becomes the batch `readAt` default and `onStale`
|
|
115
|
+
* defaults to `'reject'`, so a commit that follows a claim is guarded
|
|
116
|
+
* against concurrent edits without re-stating the watermark by hand.
|
|
117
|
+
* Explicit `readAt`/`onStale` on the options win.
|
|
118
|
+
*/
|
|
119
|
+
readonly claim?: Claim | null;
|
|
120
|
+
/** One atomic batch. Use a one-element array for a single operation. */
|
|
121
|
+
readonly operations: readonly CommitOperationInput[];
|
|
122
|
+
readonly wait?: CommitWait;
|
|
123
|
+
/**
|
|
124
|
+
* The batch premise — the "did anything I looked at change?" guard.
|
|
125
|
+
* Declare the rows (`{ model, id, readAt, fields? }`) or sync groups
|
|
126
|
+
* (`{ group, readAt }`, for example `report:abc`) this batch was premised on; the
|
|
127
|
+
* server checks that none moved since `readAt` and fires the entry's `onStale`
|
|
128
|
+
* over the batch. This is distinct from the write-target `readAt`: it guards what
|
|
129
|
+
* you read, not what you write.
|
|
130
|
+
*/
|
|
131
|
+
readonly reads?: readonly ReadDependency[] | null;
|
|
132
|
+
/**
|
|
133
|
+
* Durable premises to register as part of this batch — the persisted
|
|
134
|
+
* sibling of `reads`. Where `reads` guards only this commit, a `track` entry
|
|
135
|
+
* (`{ model, id, readAt? }` for a row or `{ group, readAt? }` for a sync group)
|
|
136
|
+
* lives on past it: a later matching change rides back on a future receipt's
|
|
137
|
+
* `notifications`. A track-only batch (just `track`, an empty `operations`) is
|
|
138
|
+
* the batch form of `ablo.<model>.track()`.
|
|
139
|
+
*/
|
|
140
|
+
readonly track?: readonly TrackDependency[] | null;
|
|
141
|
+
}
|
|
142
|
+
/** Public projection inferred from the canonical runtime schema. */
|
|
143
|
+
export type CommitReceipt = ClientCommitReceipt;
|
|
144
|
+
export interface CommitResource {
|
|
145
|
+
create(options: CommitCreateOptions): Promise<CommitReceipt>;
|
|
146
|
+
}
|
|
147
|
+
export interface HttpLogListOptions extends Omit<LogQuery, 'limit'> {
|
|
148
|
+
readonly limit?: number;
|
|
149
|
+
readonly signal?: AbortSignal;
|
|
150
|
+
}
|
|
151
|
+
export interface HttpLogsResource {
|
|
152
|
+
list(options?: HttpLogListOptions): Promise<LogListResponse>;
|
|
153
|
+
}
|
|
154
|
+
export interface ClaimResource extends ClaimStream {
|
|
155
|
+
create(options: ClaimCreateOptions): Promise<Claim>;
|
|
156
|
+
list(target?: Partial<ModelTarget>): readonly ModelClaim[];
|
|
157
|
+
waitFor(target: Partial<ModelTarget>, options?: ClaimWaitOptions): Promise<void>;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* The claim-ticket surface of the stateless HTTP client — the operations a
|
|
161
|
+
* caller performs holding only a `claimId`, which is what a queued acquire
|
|
162
|
+
* leaves in its hand (`AbloClaimedError('claim_queued')` carries it on
|
|
163
|
+
* `error.claims`). The WebSocket client never needs these: it awaits the grant
|
|
164
|
+
* on its socket.
|
|
165
|
+
*
|
|
166
|
+
* All three shapes are the wire's own — `claimStateSchema`,
|
|
167
|
+
* `claimHeartbeatReplySchema`, and the batch ack — so this surface cannot
|
|
168
|
+
* describe a response the server does not send.
|
|
169
|
+
*/
|
|
170
|
+
export interface HttpClaimsResource {
|
|
171
|
+
/**
|
|
172
|
+
* The claim's current state, by its id — `GET /v1/claims/{claimId}`. The
|
|
173
|
+
* poll half of the queued-grant handover: a queued caller polls until
|
|
174
|
+
* `status` is `'active'`, at which point `fenceToken` is present and the
|
|
175
|
+
* work can begin. `position` is advisory (a privileged caller can reorder
|
|
176
|
+
* the line, so it may go up); only `status` is authoritative.
|
|
177
|
+
*/
|
|
178
|
+
retrieve(params: {
|
|
179
|
+
readonly claimId: string;
|
|
180
|
+
}): Promise<ClaimState>;
|
|
181
|
+
/**
|
|
182
|
+
* One beat on the named lease — `POST /v1/claims/{claimId}/heartbeat`. On a
|
|
183
|
+
* held lease it extends the TTL; on a queued ticket it refreshes the
|
|
184
|
+
* waiter's slot in the line and reports `{ status: 'queued', position }`.
|
|
185
|
+
*/
|
|
186
|
+
heartbeat(params: {
|
|
187
|
+
readonly claimId: string;
|
|
188
|
+
readonly ttl?: string | number;
|
|
189
|
+
}): Promise<ClaimHeartbeatReply>;
|
|
190
|
+
/**
|
|
191
|
+
* One beat for every lease this identity holds — `POST /v1/claims/heartbeat`,
|
|
192
|
+
* one ack per extended lease. The socketless twin of the realtime
|
|
193
|
+
* keepalive, for a stateless worker holding many rows.
|
|
194
|
+
*/
|
|
195
|
+
heartbeatAll(options?: {
|
|
196
|
+
readonly ttl?: string | number;
|
|
197
|
+
}): Promise<readonly ClaimHeartbeatAckPayload[]>;
|
|
198
|
+
/**
|
|
199
|
+
* Give the ticket back — `DELETE /v1/claims/{claimId}`. On a held lease this
|
|
200
|
+
* releases it and promotes the head of the queue; on a queued ticket it
|
|
201
|
+
* leaves the line, so the waiters behind move up instead of waiting out
|
|
202
|
+
* your slot's TTL. Idempotent: releasing an already-ended claim is a no-op.
|
|
203
|
+
*/
|
|
204
|
+
release(params: {
|
|
205
|
+
readonly claimId: string;
|
|
206
|
+
}): Promise<void>;
|
|
207
|
+
}
|
|
208
|
+
export interface ModelMutationOptions extends ClaimedOptions {
|
|
209
|
+
readonly claimRef?: string | {
|
|
210
|
+
readonly id: string;
|
|
211
|
+
} | null;
|
|
212
|
+
readonly idempotencyKey?: string | null;
|
|
213
|
+
readonly readAt?: number | null;
|
|
214
|
+
readonly onStale?: OnStaleMode | null;
|
|
215
|
+
readonly wait?: CommitWait;
|
|
216
|
+
readonly claim?: Claim | ClaimOptions | null;
|
|
217
|
+
/** Fencing token (Option B) from the claim; server-validated at commit. */
|
|
218
|
+
readonly fenceToken?: number | null;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* The stateless HTTP claim surface. Most code puts a `claim` directly on the write
|
|
222
|
+
* (`update({ id, data, claim })`) and lets the SDK release it; reach for this
|
|
223
|
+
* namespace for multi-step handles and coordination screens.
|
|
224
|
+
*
|
|
225
|
+
* It is the same surface as the reactive claim API, but because every read is a
|
|
226
|
+
* server round-trip, `state`, `queue`, and `reorder` are awaited here. The
|
|
227
|
+
* WebSocket client resolves those synchronously from its local cache, which is what
|
|
228
|
+
* lets it read a claim's state inside a React render; a stateless client has no
|
|
229
|
+
* cache to read, so the promise is unavoidable.
|
|
230
|
+
*
|
|
231
|
+
* It is derived from `ClaimReadApi` through {@link AwaitedClaimMethod} so the two
|
|
232
|
+
* transports cannot drift: the only difference is the promise wrapper that
|
|
233
|
+
* statelessness forces. `claim({ id })` is identical on both (already async);
|
|
234
|
+
* `state`, `queue`, `reorder`, and `release` are the awaited form.
|
|
235
|
+
*/
|
|
236
|
+
export type HttpClaimApi<T = Record<string, unknown>, Fields = T> = ((params: ClaimParams<Fields> & {
|
|
237
|
+
queue: false;
|
|
238
|
+
}) => Promise<HeldClaim<T> | null>) & ((params: ClaimParams<Fields>) => Promise<HeldClaim<T>>) & {
|
|
239
|
+
[K in keyof ClaimReadApi<T>]: AwaitedClaimMethod<ClaimReadApi<T>[K]>;
|
|
240
|
+
};
|
|
241
|
+
/** @internal String-keyed model routing owned by the private HTTP transport. */
|
|
242
|
+
export interface HttpTransportModel<T = Record<string, unknown>, Fields = T> {
|
|
243
|
+
/**
|
|
244
|
+
* Single-row read over HTTP. **Returns an envelope, not the bare row** — the
|
|
245
|
+
* row is on `.data`, alongside the `.stamp` watermark (for stale-context
|
|
246
|
+
* guards on the following write) and any active `.claims`. This is the
|
|
247
|
+
* schema-agnostic protocol surface; the typed HTTP facade unwraps it to the
|
|
248
|
+
* same `T | undefined` shape as the WebSocket client.
|
|
249
|
+
*
|
|
250
|
+
* Public callers never see this shape; `createAbloHttpClient` unwraps it.
|
|
251
|
+
*/
|
|
252
|
+
/** Canonical point lookup for the schema-agnostic transport. */
|
|
253
|
+
get(params: ModelReadOptions & {
|
|
254
|
+
readonly id: string;
|
|
255
|
+
}): Promise<HttpTransportRead<T>>;
|
|
256
|
+
/** @deprecated Use `get({ id })`; retained for the private transport compatibility seam. */
|
|
257
|
+
retrieve(params: ModelReadOptions & {
|
|
258
|
+
readonly id: string;
|
|
259
|
+
}): Promise<HttpTransportRead<T>>;
|
|
260
|
+
/**
|
|
261
|
+
* Collection read over HTTP (server round-trip). Equality `where`, `orderBy`,
|
|
262
|
+
* and `limit`. The typed public client always exposes `ablo.<model>.list`;
|
|
263
|
+
* this protocol shape is private transport machinery.
|
|
264
|
+
*/
|
|
265
|
+
list(options?: ServerReadOptions<T>): Promise<T[]>;
|
|
266
|
+
/**
|
|
267
|
+
* Creates a row and returns the confirmed server row, including framework
|
|
268
|
+
* defaults such as `createdAt` and `createdBy`. Matches the stateful client's
|
|
269
|
+
* `create`. Passing an id that already exists is idempotent: the existing row is
|
|
270
|
+
* returned, not the input.
|
|
271
|
+
*/
|
|
272
|
+
create(params: ModelMutationOptions & {
|
|
273
|
+
readonly data: Record<string, unknown>;
|
|
274
|
+
readonly id?: string | null;
|
|
275
|
+
}): Promise<T>;
|
|
276
|
+
update(params: ModelMutationOptions & {
|
|
277
|
+
readonly id: string;
|
|
278
|
+
readonly data: Record<string, unknown>;
|
|
279
|
+
}): Promise<CommitReceipt>;
|
|
280
|
+
/**
|
|
281
|
+
* Update under contention with a function of the latest state —
|
|
282
|
+
* `update(id, current => next)`, the `setState(prev => next)` of the data
|
|
283
|
+
* layer. The SDK reads the freshest row, runs your updater, writes it as a
|
|
284
|
+
* compare-and-swap against the row's watermark, and re-reads + re-runs on any
|
|
285
|
+
* concurrent write. No claim, no identity, no conflict codes surface: the
|
|
286
|
+
* write either lands or throws {@link AbloContentionError} once its reconcile
|
|
287
|
+
* budget is spent. Return `null`/`undefined` from the updater to skip the
|
|
288
|
+
* write (resolves to `undefined`).
|
|
289
|
+
*/
|
|
290
|
+
update(id: string, updater: ModelUpdater<T>, options?: ContentionOptions): Promise<CommitReceipt | undefined>;
|
|
291
|
+
delete(params: ModelMutationOptions & {
|
|
292
|
+
readonly id: string;
|
|
293
|
+
}): Promise<CommitReceipt>;
|
|
294
|
+
/**
|
|
295
|
+
* Durable lease + FIFO wait-line over HTTP — coordination without a socket.
|
|
296
|
+
* The typed public clients expose this through `ablo.<model>.claim`. This
|
|
297
|
+
* schema-agnostic shape stays inside the HTTP transport.
|
|
298
|
+
*/
|
|
299
|
+
claim: HttpClaimApi<T, Fields>;
|
|
300
|
+
/**
|
|
301
|
+
* Registers a durable premise on a row — request/response, no socket. A track
|
|
302
|
+
* declares what a caller is watching; it keeps no local copy of the row, so it
|
|
303
|
+
* belongs to every transport rather than to the reactive client (ADR 0013 §4).
|
|
304
|
+
* The typed public clients expose it as `ablo.<model>.track`.
|
|
305
|
+
*/
|
|
306
|
+
track(params: ModelTrackParams): Promise<ModelTrackResult>;
|
|
307
|
+
}
|
|
308
|
+
/** A single data operation a scoped **agent** session may perform on a model.
|
|
309
|
+
* The SDK-facing name for {@link CapabilityOperation}; the vocabulary itself is
|
|
310
|
+
* declared once, as a schema, in `auth/capability.ts`. */
|
|
311
|
+
export type SessionOperation = CapabilityOperation;
|
|
312
|
+
/** Parameters for minting an end-user session. Mints an `ek_` token.
|
|
313
|
+
* `user.id` is your end user's id from your
|
|
314
|
+
* own identity provider and becomes the session's `participantId`; Ablo does not
|
|
315
|
+
* model your users, so it is treated as an opaque string at the trust boundary. */
|
|
316
|
+
export interface CreateUserSessionParams<S extends SchemaRecord> {
|
|
317
|
+
/** Your end user. `id` becomes the token's `participantId`. */
|
|
318
|
+
user: {
|
|
319
|
+
id: string;
|
|
320
|
+
};
|
|
321
|
+
/** Mint the session into this organization instead of the key's own — for a
|
|
322
|
+
* platform that serves many tenants from one backend. Requires the `sk_` key to
|
|
323
|
+
* carry the `ephemeral:mint-any-org` scope; omit it for the normal
|
|
324
|
+
* single-tenant case. */
|
|
325
|
+
organizationId?: string;
|
|
326
|
+
/** Sync groups this session may subscribe to — typed (`'default'` or
|
|
327
|
+
* `<namespace>:<id>`; build with `syncGroup(kind, id)` from
|
|
328
|
+
* `@abloatai/transaction/schema`). Omit for the server default:
|
|
329
|
+
* `[org:<your org>, user:<user.id>]`. */
|
|
330
|
+
syncGroups?: readonly SyncGroupInput[];
|
|
331
|
+
/** Required least-privilege grant. */
|
|
332
|
+
can: CapabilityCan<S>;
|
|
333
|
+
/** Token lifetime in seconds. Defaults to 900 (15 minutes). */
|
|
334
|
+
ttlSeconds?: number;
|
|
335
|
+
/** Opaque identity blob echoed back to the client as `ablo.user`. */
|
|
336
|
+
userMeta?: Record<string, unknown>;
|
|
337
|
+
agent?: never;
|
|
338
|
+
}
|
|
339
|
+
/** Mint params for a scoped **agent** session — mints a restricted `rk_` token
|
|
340
|
+
* gated to exactly the operations named in `can`. `can` is typed off your
|
|
341
|
+
* schema (no magic `'task.update'` strings): `{ Task: ['update'], Report: ['read'] }`
|
|
342
|
+
* — the SDK serializes each entry to the wire allowlist (`task.update`). */
|
|
343
|
+
export interface CreateAgentSessionParams<S extends SchemaRecord> {
|
|
344
|
+
/** Your agent. `id` becomes the token's `participantId`. */
|
|
345
|
+
agent: {
|
|
346
|
+
id: string;
|
|
347
|
+
};
|
|
348
|
+
/** Per-model operation allowlist, typed against the schema's model names. */
|
|
349
|
+
can: CapabilityCan<S>;
|
|
350
|
+
/** Sync groups this session may subscribe to — typed (`'default'` or
|
|
351
|
+
* `<namespace>:<id>`; build with `syncGroup(kind, id)` from
|
|
352
|
+
* `@abloatai/transaction/schema`). Omit for the server default: the org
|
|
353
|
+
* anchor (`org:<your org>`) + the agent's own anchor. */
|
|
354
|
+
syncGroups?: readonly SyncGroupInput[];
|
|
355
|
+
/** Token lifetime in seconds. Defaults to 900 (15 minutes). */
|
|
356
|
+
ttlSeconds?: number;
|
|
357
|
+
/** Opaque identity blob echoed back to the client as `ablo.agent`. */
|
|
358
|
+
userMeta?: Record<string, unknown>;
|
|
359
|
+
user?: never;
|
|
360
|
+
}
|
|
361
|
+
/** Params for {@link Ablo.sessions}.create — a discriminated union: pass
|
|
362
|
+
* `{ user, can }` for an end-user session (`ek_`) or `{ agent, can }`
|
|
363
|
+
* for a scoped agent session (`rk_`). */
|
|
364
|
+
export type CreateSessionParams<S extends SchemaRecord> = CreateUserSessionParams<S> | CreateAgentSessionParams<S>;
|
|
365
|
+
/** Params for {@link Ablo.agents}.create — a flattened agent descriptor (no
|
|
366
|
+
* `{ agent }` discriminator: `agents.create` only ever mints an agent). Unlike
|
|
367
|
+
* {@link CreateSessionParams} it resolves to a connected, scoped {@link Ablo}
|
|
368
|
+
* client rather than a raw token. */
|
|
369
|
+
export interface CreateAgentClientParams<S extends SchemaRecord> {
|
|
370
|
+
/** The wire participant identity (`agent:<id>`) that claim exclusion and the
|
|
371
|
+
* FIFO queue gate on. Omit it to get a fresh random id — a distinct, independent
|
|
372
|
+
* participant, which is the default and what you want for concurrent agents.
|
|
373
|
+
* Pass a stable string only when one logical agent must re-attach to its own
|
|
374
|
+
* held claims across reconnects or restarts. */
|
|
375
|
+
id?: string;
|
|
376
|
+
/** A human-readable label for logs and attribution (carried in `userMeta.name`).
|
|
377
|
+
* It is independent of `id`: two agents that share a `name` still receive
|
|
378
|
+
* distinct ids and coordinate as separate participants — `name` never derives or
|
|
379
|
+
* collapses identity. */
|
|
380
|
+
name?: string;
|
|
381
|
+
/** Per-model operation allowlist, typed against the schema's model names. */
|
|
382
|
+
can: CapabilityCan<S>;
|
|
383
|
+
/** Sync groups this agent may subscribe to — typed (`'default'` or
|
|
384
|
+
* `<namespace>:<id>`). Omit for the server default (org anchor + the
|
|
385
|
+
* agent's own anchor). */
|
|
386
|
+
syncGroups?: readonly SyncGroupInput[];
|
|
387
|
+
/** Token lifetime in seconds. Defaults to 900 (15 minutes); the returned client
|
|
388
|
+
* re-mints before expiry, so a long-running agent never handles rotation
|
|
389
|
+
* itself. */
|
|
390
|
+
ttlSeconds?: number;
|
|
391
|
+
/** Extra opaque identity blob echoed on the session scope. Merged with
|
|
392
|
+
* `name` (the `name` param wins if you also set `userMeta.name`). */
|
|
393
|
+
userMeta?: Record<string, unknown>;
|
|
394
|
+
}
|
|
395
|
+
/** A minted session. `token` is the secret the holder presents as its bearer. */
|
|
396
|
+
export interface AbloSession {
|
|
397
|
+
object: 'session';
|
|
398
|
+
/** Stable id of the minted credential (for revocation). */
|
|
399
|
+
id: string;
|
|
400
|
+
/** The short-lived session token — `ek_` for a `{ user }` session, `rk_`
|
|
401
|
+
* for an `{ agent }` session. Hand this to the participant's runtime. */
|
|
402
|
+
token: string;
|
|
403
|
+
/** ISO-8601 expiry. */
|
|
404
|
+
expiresAt: string;
|
|
405
|
+
organizationId: string;
|
|
406
|
+
/** The grant this token carries, on both axes — the same shape the key row
|
|
407
|
+
* stores and the gates enforce. */
|
|
408
|
+
scope: CapabilityScope;
|
|
409
|
+
userMeta: Record<string, unknown>;
|
|
410
|
+
}
|
|
411
|
+
/** Result of revoking a user or agent session. */
|
|
412
|
+
export interface SessionRevocation {
|
|
413
|
+
id: string;
|
|
414
|
+
deleted: true;
|
|
415
|
+
activeSessionsClosed: number;
|
|
416
|
+
}
|
|
417
|
+
/** Rotation-with-overlap result for an agent session. */
|
|
418
|
+
export interface SessionRotation {
|
|
419
|
+
id: string;
|
|
420
|
+
token: string;
|
|
421
|
+
expiresAt: string | null;
|
|
422
|
+
organizationId: string;
|
|
423
|
+
scope: CapabilityScope;
|
|
424
|
+
rotatedFrom: {
|
|
425
|
+
id: string;
|
|
426
|
+
expiresAt: string;
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
export interface RevokeSessionParams {
|
|
430
|
+
id: string;
|
|
431
|
+
}
|
|
432
|
+
export interface RotateSessionParams {
|
|
433
|
+
id: string;
|
|
434
|
+
/** How long the previous token remains valid. Defaults to 24 hours. */
|
|
435
|
+
graceSeconds?: number;
|
|
436
|
+
/** Optional lifetime for the replacement token. */
|
|
437
|
+
ttlSeconds?: number;
|
|
438
|
+
}
|
|
439
|
+
export interface SessionResource<S extends SchemaRecord> {
|
|
440
|
+
create(params: CreateSessionParams<S>): Promise<AbloSession>;
|
|
441
|
+
/** Immediately revoke an `ek_` or `rk_` session and close live connections. */
|
|
442
|
+
revoke(params: RevokeSessionParams): Promise<SessionRevocation>;
|
|
443
|
+
/**
|
|
444
|
+
* Rotate an agent `rk_` session with an overlap window. Browser `ek_`
|
|
445
|
+
* sessions rotate through their `authEndpoint` instead.
|
|
446
|
+
*/
|
|
447
|
+
rotate(params: RotateSessionParams): Promise<SessionRotation>;
|
|
448
|
+
}
|
|
449
|
+
//# sourceMappingURL=httpResources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpResources.d.ts","sourceRoot":"","sources":["../../src/resources/httpResources.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,wBAAwB,EACxB,WAAW,EACX,cAAc,EACd,eAAe,EAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,KAAK,EACV,mBAAmB,EACnB,UAAU,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,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IACrD,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAC7D,+EAA+E;IAC/E,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChE;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAC/D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared resource types for the typed clients and private HTTP transport.
|
|
3
|
+
* the commit and claim shapes, the session-mint params and resource, and the
|
|
4
|
+
* {@link HttpClaimApi} derivation. This module holds only types and has no runtime
|
|
5
|
+
* imports.
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=httpResources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpResources.js","sourceRoot":"","sources":["../../src/resources/httpResources.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|