@qlever-llc/trellis 0.10.22 → 0.11.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/auth/mod.d.ts +1 -1
- package/esm/auth/mod.d.ts.map +1 -1
- package/esm/auth/mod.js +1 -1
- package/esm/auth/protocol.d.ts +55 -0
- package/esm/auth/protocol.d.ts.map +1 -1
- package/esm/browser.d.ts +3 -3
- package/esm/browser.d.ts.map +1 -1
- package/esm/browser.js +1 -1
- package/esm/client_connect.d.ts +12 -3
- package/esm/client_connect.d.ts.map +1 -1
- package/esm/client_connect.js +112 -7
- package/esm/codec.d.ts +7 -6
- package/esm/codec.d.ts.map +1 -1
- package/esm/codec.js +125 -6
- package/esm/contract_support/canonical.d.ts +3 -0
- package/esm/contract_support/canonical.d.ts.map +1 -1
- package/esm/contract_support/canonical.js +3 -0
- package/esm/contract_support/mod.d.ts +125 -10
- package/esm/contract_support/mod.d.ts.map +1 -1
- package/esm/contract_support/mod.js +159 -5
- package/esm/contract_support/protocol.d.ts +92 -7
- package/esm/contract_support/protocol.d.ts.map +1 -1
- package/esm/contract_support/protocol.js +41 -7
- package/esm/contract_support/runtime.d.ts +4 -1
- package/esm/contract_support/runtime.d.ts.map +1 -1
- package/esm/errors/SchemaValidationError.d.ts +49 -0
- package/esm/errors/SchemaValidationError.d.ts.map +1 -0
- package/esm/errors/SchemaValidationError.js +67 -0
- package/esm/errors/index.d.ts +38 -9
- package/esm/errors/index.d.ts.map +1 -1
- package/esm/errors/index.js +16 -0
- package/esm/generated-sdk/auth/api.d.ts +33 -605
- package/esm/generated-sdk/auth/api.d.ts.map +1 -1
- package/esm/generated-sdk/auth/api.js +6 -1
- package/esm/generated-sdk/auth/client.d.ts +129 -134
- package/esm/generated-sdk/auth/client.d.ts.map +1 -1
- package/esm/generated-sdk/auth/contract.d.ts +2 -601
- package/esm/generated-sdk/auth/contract.d.ts.map +1 -1
- package/esm/generated-sdk/auth/contract.js +310 -93
- package/esm/generated-sdk/auth/mod.d.ts +1 -1
- package/esm/generated-sdk/auth/mod.d.ts.map +1 -1
- package/esm/generated-sdk/auth/owned_api.d.ts +88 -86
- package/esm/generated-sdk/auth/owned_api.d.ts.map +1 -1
- package/esm/generated-sdk/auth/owned_api.js +6 -0
- package/esm/generated-sdk/auth/schemas.d.ts +284 -136
- package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/auth/schemas.js +231 -92
- package/esm/generated-sdk/auth/types.d.ts +565 -89
- package/esm/generated-sdk/auth/types.d.ts.map +1 -1
- package/esm/generated-sdk/auth/types.js +1 -1
- package/esm/generated-sdk/health/api.d.ts +29 -18
- package/esm/generated-sdk/health/api.d.ts.map +1 -1
- package/esm/generated-sdk/health/client.d.ts +7 -21
- package/esm/generated-sdk/health/client.d.ts.map +1 -1
- package/esm/generated-sdk/health/contract.d.ts +2 -15
- package/esm/generated-sdk/health/contract.d.ts.map +1 -1
- package/esm/generated-sdk/health/contract.js +2 -10
- package/esm/generated-sdk/health/mod.d.ts +1 -1
- package/esm/generated-sdk/health/mod.d.ts.map +1 -1
- package/esm/generated-sdk/health/owned_api.d.ts +2 -2
- package/esm/generated-sdk/health/schemas.d.ts +1 -14
- package/esm/generated-sdk/health/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/health/schemas.js +1 -9
- package/esm/generated-sdk/health/types.d.ts +10 -5
- package/esm/generated-sdk/health/types.d.ts.map +1 -1
- package/esm/generated-sdk/health/types.js +1 -2
- package/esm/generated-sdk/jobs/api.d.ts +29 -109
- package/esm/generated-sdk/jobs/api.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/client.d.ts +21 -33
- package/esm/generated-sdk/jobs/client.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/contract.d.ts +2 -106
- package/esm/generated-sdk/jobs/contract.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/contract.js +268 -1
- package/esm/generated-sdk/jobs/mod.d.ts +1 -1
- package/esm/generated-sdk/jobs/mod.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/owned_api.d.ts +22 -9
- package/esm/generated-sdk/jobs/owned_api.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/owned_api.js +20 -1
- package/esm/generated-sdk/jobs/schemas.d.ts +437 -0
- package/esm/generated-sdk/jobs/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/schemas.js +211 -0
- package/esm/generated-sdk/jobs/types.d.ts +195 -12
- package/esm/generated-sdk/jobs/types.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/types.js +1 -1
- package/esm/generated-sdk/state/api.d.ts +29 -68
- package/esm/generated-sdk/state/api.d.ts.map +1 -1
- package/esm/generated-sdk/state/client.d.ts +17 -31
- package/esm/generated-sdk/state/client.d.ts.map +1 -1
- package/esm/generated-sdk/state/contract.d.ts +1 -64
- package/esm/generated-sdk/state/contract.d.ts.map +1 -1
- package/esm/generated-sdk/state/mod.d.ts +1 -1
- package/esm/generated-sdk/state/mod.d.ts.map +1 -1
- package/esm/generated-sdk/state/owned_api.d.ts +7 -7
- package/esm/generated-sdk/state/types.d.ts +52 -9
- package/esm/generated-sdk/state/types.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/api.d.ts +33 -45
- package/esm/generated-sdk/trellis-core/api.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/api.js +6 -1
- package/esm/generated-sdk/trellis-core/client.d.ts +31 -20
- package/esm/generated-sdk/trellis-core/client.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/contract.d.ts +2 -41
- package/esm/generated-sdk/trellis-core/contract.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/contract.js +91 -1
- package/esm/generated-sdk/trellis-core/mod.d.ts +1 -1
- package/esm/generated-sdk/trellis-core/mod.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/owned_api.d.ts +4 -4
- package/esm/generated-sdk/trellis-core/schemas.d.ts +113 -0
- package/esm/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/schemas.js +81 -0
- package/esm/generated-sdk/trellis-core/types.d.ts +54 -7
- package/esm/generated-sdk/trellis-core/types.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/types.js +1 -1
- package/esm/health.d.ts +1 -1
- package/esm/health.d.ts.map +1 -1
- package/esm/health.js +1 -1
- package/esm/index.d.ts +4 -4
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/esm/jobs.d.ts +69 -3
- package/esm/jobs.d.ts.map +1 -1
- package/esm/jobs.js +92 -3
- package/esm/server/health.d.ts +2 -6
- package/esm/server/health.d.ts.map +1 -1
- package/esm/server/health_schemas.d.ts +0 -8
- package/esm/server/health_schemas.d.ts.map +1 -1
- package/esm/server/health_schemas.js +0 -5
- package/esm/server/internal_jobs/bindings.d.ts +11 -0
- package/esm/server/internal_jobs/bindings.d.ts.map +1 -1
- package/esm/server/internal_jobs/job-manager.d.ts +58 -2
- package/esm/server/internal_jobs/job-manager.d.ts.map +1 -1
- package/esm/server/internal_jobs/job-manager.js +429 -55
- package/esm/server/internal_jobs/key-coordinator.d.ts +269 -0
- package/esm/server/internal_jobs/key-coordinator.d.ts.map +1 -0
- package/esm/server/internal_jobs/key-coordinator.js +677 -0
- package/esm/server/internal_jobs/projection.d.ts.map +1 -1
- package/esm/server/internal_jobs/projection.js +2 -0
- package/esm/server/internal_jobs/runtime-worker.d.ts +5 -1
- package/esm/server/internal_jobs/runtime-worker.d.ts.map +1 -1
- package/esm/server/internal_jobs/runtime-worker.js +14 -2
- package/esm/server/internal_jobs/types.d.ts +5 -5
- package/esm/server/internal_jobs/types.d.ts.map +1 -1
- package/esm/server/internal_jobs/types.js +6 -0
- package/esm/server/runtime.d.ts.map +1 -1
- package/esm/server/service.d.ts +81 -112
- package/esm/server/service.d.ts.map +1 -1
- package/esm/server/service.js +372 -130
- package/esm/server.d.ts +3 -3
- package/esm/server.d.ts.map +1 -1
- package/esm/service/deno.d.ts +1 -1
- package/esm/service/deno.d.ts.map +1 -1
- package/esm/service/drizzle.d.ts +52 -0
- package/esm/service/drizzle.d.ts.map +1 -0
- package/esm/service/drizzle.js +108 -0
- package/esm/service/mod.d.ts +3 -3
- package/esm/service/mod.d.ts.map +1 -1
- package/esm/service/mod.js +2 -2
- package/esm/service/node.d.ts +1 -1
- package/esm/service/node.d.ts.map +1 -1
- package/esm/service/outbox_inbox.d.ts +76 -22
- package/esm/service/outbox_inbox.d.ts.map +1 -1
- package/esm/service/outbox_inbox.js +231 -70
- package/esm/telemetry/metrics.d.ts +55 -0
- package/esm/telemetry/metrics.d.ts.map +1 -1
- package/esm/telemetry/metrics.js +86 -0
- package/esm/telemetry/mod.d.ts +2 -1
- package/esm/telemetry/mod.d.ts.map +1 -1
- package/esm/telemetry/mod.js +1 -1
- package/esm/trellis.d.ts +62 -30
- package/esm/trellis.d.ts.map +1 -1
- package/esm/trellis.js +125 -42
- package/package.json +14 -2
- package/script/auth/mod.d.ts +1 -1
- package/script/auth/mod.d.ts.map +1 -1
- package/script/auth/mod.js +11 -4
- package/script/auth/protocol.d.ts +55 -0
- package/script/auth/protocol.d.ts.map +1 -1
- package/script/browser.d.ts +3 -3
- package/script/browser.d.ts.map +1 -1
- package/script/browser.js +3 -2
- package/script/client_connect.d.ts +12 -3
- package/script/client_connect.d.ts.map +1 -1
- package/script/client_connect.js +111 -6
- package/script/codec.d.ts +7 -6
- package/script/codec.d.ts.map +1 -1
- package/script/codec.js +124 -5
- package/script/contract_support/canonical.d.ts +3 -0
- package/script/contract_support/canonical.d.ts.map +1 -1
- package/script/contract_support/canonical.js +3 -0
- package/script/contract_support/mod.d.ts +125 -10
- package/script/contract_support/mod.d.ts.map +1 -1
- package/script/contract_support/mod.js +165 -5
- package/script/contract_support/protocol.d.ts +92 -7
- package/script/contract_support/protocol.d.ts.map +1 -1
- package/script/contract_support/protocol.js +42 -8
- package/script/contract_support/runtime.d.ts +4 -1
- package/script/contract_support/runtime.d.ts.map +1 -1
- package/script/errors/SchemaValidationError.d.ts +49 -0
- package/script/errors/SchemaValidationError.d.ts.map +1 -0
- package/script/errors/SchemaValidationError.js +74 -0
- package/script/errors/index.d.ts +38 -9
- package/script/errors/index.d.ts.map +1 -1
- package/script/errors/index.js +20 -1
- package/script/generated-sdk/auth/api.d.ts +33 -605
- package/script/generated-sdk/auth/api.d.ts.map +1 -1
- package/script/generated-sdk/auth/api.js +6 -1
- package/script/generated-sdk/auth/client.d.ts +129 -134
- package/script/generated-sdk/auth/client.d.ts.map +1 -1
- package/script/generated-sdk/auth/contract.d.ts +2 -601
- package/script/generated-sdk/auth/contract.d.ts.map +1 -1
- package/script/generated-sdk/auth/contract.js +310 -93
- package/script/generated-sdk/auth/mod.d.ts +1 -1
- package/script/generated-sdk/auth/mod.d.ts.map +1 -1
- package/script/generated-sdk/auth/owned_api.d.ts +88 -86
- package/script/generated-sdk/auth/owned_api.d.ts.map +1 -1
- package/script/generated-sdk/auth/owned_api.js +6 -0
- package/script/generated-sdk/auth/schemas.d.ts +284 -136
- package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
- package/script/generated-sdk/auth/schemas.js +231 -92
- package/script/generated-sdk/auth/types.d.ts +565 -89
- package/script/generated-sdk/auth/types.d.ts.map +1 -1
- package/script/generated-sdk/auth/types.js +1 -1
- package/script/generated-sdk/health/api.d.ts +29 -18
- package/script/generated-sdk/health/api.d.ts.map +1 -1
- package/script/generated-sdk/health/client.d.ts +7 -21
- package/script/generated-sdk/health/client.d.ts.map +1 -1
- package/script/generated-sdk/health/contract.d.ts +2 -15
- package/script/generated-sdk/health/contract.d.ts.map +1 -1
- package/script/generated-sdk/health/contract.js +2 -10
- package/script/generated-sdk/health/mod.d.ts +1 -1
- package/script/generated-sdk/health/mod.d.ts.map +1 -1
- package/script/generated-sdk/health/owned_api.d.ts +2 -2
- package/script/generated-sdk/health/schemas.d.ts +1 -14
- package/script/generated-sdk/health/schemas.d.ts.map +1 -1
- package/script/generated-sdk/health/schemas.js +1 -9
- package/script/generated-sdk/health/types.d.ts +10 -5
- package/script/generated-sdk/health/types.d.ts.map +1 -1
- package/script/generated-sdk/health/types.js +1 -2
- package/script/generated-sdk/jobs/api.d.ts +29 -109
- package/script/generated-sdk/jobs/api.d.ts.map +1 -1
- package/script/generated-sdk/jobs/client.d.ts +21 -33
- package/script/generated-sdk/jobs/client.d.ts.map +1 -1
- package/script/generated-sdk/jobs/contract.d.ts +2 -106
- package/script/generated-sdk/jobs/contract.d.ts.map +1 -1
- package/script/generated-sdk/jobs/contract.js +268 -1
- package/script/generated-sdk/jobs/mod.d.ts +1 -1
- package/script/generated-sdk/jobs/mod.d.ts.map +1 -1
- package/script/generated-sdk/jobs/owned_api.d.ts +22 -9
- package/script/generated-sdk/jobs/owned_api.d.ts.map +1 -1
- package/script/generated-sdk/jobs/owned_api.js +19 -0
- package/script/generated-sdk/jobs/schemas.d.ts +437 -0
- package/script/generated-sdk/jobs/schemas.d.ts.map +1 -1
- package/script/generated-sdk/jobs/schemas.js +212 -1
- package/script/generated-sdk/jobs/types.d.ts +195 -12
- package/script/generated-sdk/jobs/types.d.ts.map +1 -1
- package/script/generated-sdk/jobs/types.js +1 -1
- package/script/generated-sdk/state/api.d.ts +29 -68
- package/script/generated-sdk/state/api.d.ts.map +1 -1
- package/script/generated-sdk/state/client.d.ts +17 -31
- package/script/generated-sdk/state/client.d.ts.map +1 -1
- package/script/generated-sdk/state/contract.d.ts +1 -64
- package/script/generated-sdk/state/contract.d.ts.map +1 -1
- package/script/generated-sdk/state/mod.d.ts +1 -1
- package/script/generated-sdk/state/mod.d.ts.map +1 -1
- package/script/generated-sdk/state/owned_api.d.ts +7 -7
- package/script/generated-sdk/state/types.d.ts +52 -9
- package/script/generated-sdk/state/types.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/api.d.ts +33 -45
- package/script/generated-sdk/trellis-core/api.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/api.js +6 -1
- package/script/generated-sdk/trellis-core/client.d.ts +31 -20
- package/script/generated-sdk/trellis-core/client.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/contract.d.ts +2 -41
- package/script/generated-sdk/trellis-core/contract.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/contract.js +91 -1
- package/script/generated-sdk/trellis-core/mod.d.ts +1 -1
- package/script/generated-sdk/trellis-core/mod.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/owned_api.d.ts +4 -4
- package/script/generated-sdk/trellis-core/schemas.d.ts +113 -0
- package/script/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/schemas.js +81 -0
- package/script/generated-sdk/trellis-core/types.d.ts +54 -7
- package/script/generated-sdk/trellis-core/types.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/types.js +1 -1
- package/script/health.d.ts +1 -1
- package/script/health.d.ts.map +1 -1
- package/script/health.js +1 -2
- package/script/index.d.ts +4 -4
- package/script/index.d.ts.map +1 -1
- package/script/index.js +2 -2
- package/script/jobs.d.ts +69 -3
- package/script/jobs.d.ts.map +1 -1
- package/script/jobs.js +93 -3
- package/script/server/health.d.ts +2 -6
- package/script/server/health.d.ts.map +1 -1
- package/script/server/health_schemas.d.ts +0 -8
- package/script/server/health_schemas.d.ts.map +1 -1
- package/script/server/health_schemas.js +1 -6
- package/script/server/internal_jobs/bindings.d.ts +11 -0
- package/script/server/internal_jobs/bindings.d.ts.map +1 -1
- package/script/server/internal_jobs/job-manager.d.ts +58 -2
- package/script/server/internal_jobs/job-manager.d.ts.map +1 -1
- package/script/server/internal_jobs/job-manager.js +429 -54
- package/script/server/internal_jobs/key-coordinator.d.ts +269 -0
- package/script/server/internal_jobs/key-coordinator.d.ts.map +1 -0
- package/script/server/internal_jobs/key-coordinator.js +690 -0
- package/script/server/internal_jobs/projection.d.ts.map +1 -1
- package/script/server/internal_jobs/projection.js +2 -0
- package/script/server/internal_jobs/runtime-worker.d.ts +5 -1
- package/script/server/internal_jobs/runtime-worker.d.ts.map +1 -1
- package/script/server/internal_jobs/runtime-worker.js +14 -2
- package/script/server/internal_jobs/types.d.ts +5 -5
- package/script/server/internal_jobs/types.d.ts.map +1 -1
- package/script/server/internal_jobs/types.js +6 -0
- package/script/server/runtime.d.ts.map +1 -1
- package/script/server/service.d.ts +81 -112
- package/script/server/service.d.ts.map +1 -1
- package/script/server/service.js +369 -127
- package/script/server.d.ts +3 -3
- package/script/server.d.ts.map +1 -1
- package/script/service/deno.d.ts +1 -1
- package/script/service/deno.d.ts.map +1 -1
- package/script/service/drizzle.d.ts +52 -0
- package/script/service/drizzle.d.ts.map +1 -0
- package/script/service/drizzle.js +113 -0
- package/script/service/mod.d.ts +3 -3
- package/script/service/mod.d.ts.map +1 -1
- package/script/service/mod.js +4 -3
- package/script/service/node.d.ts +1 -1
- package/script/service/node.d.ts.map +1 -1
- package/script/service/outbox_inbox.d.ts +76 -22
- package/script/service/outbox_inbox.d.ts.map +1 -1
- package/script/service/outbox_inbox.js +233 -70
- package/script/telemetry/metrics.d.ts +55 -0
- package/script/telemetry/metrics.d.ts.map +1 -1
- package/script/telemetry/metrics.js +88 -0
- package/script/telemetry/mod.d.ts +2 -1
- package/script/telemetry/mod.d.ts.map +1 -1
- package/script/telemetry/mod.js +3 -1
- package/script/trellis.d.ts +62 -30
- package/script/trellis.d.ts.map +1 -1
- package/script/trellis.js +124 -41
- package/src/auth/mod.ts +7 -0
- package/src/browser.ts +5 -7
- package/src/client_connect.ts +200 -12
- package/src/codec.ts +186 -11
- package/src/contract_support/canonical.ts +3 -0
- package/src/contract_support/mod.ts +380 -9
- package/src/contract_support/protocol.ts +57 -10
- package/src/contract_support/runtime.ts +7 -0
- package/src/errors/SchemaValidationError.ts +67 -0
- package/src/errors/index.ts +28 -0
- package/src/health.ts +0 -1
- package/src/index.ts +7 -8
- package/src/jobs.ts +138 -1
- package/src/sdk/_generated/auth/api.ts +38 -7
- package/src/sdk/_generated/auth/client.ts +168 -530
- package/src/sdk/_generated/auth/contract.ts +310 -93
- package/src/sdk/_generated/auth/mod.ts +0 -1
- package/src/sdk/_generated/auth/owned_api.ts +92 -86
- package/src/sdk/_generated/auth/schemas.ts +231 -92
- package/src/sdk/_generated/auth/types.ts +1069 -273
- package/src/sdk/_generated/core/api.ts +38 -7
- package/src/sdk/_generated/core/client.ts +47 -73
- package/src/sdk/_generated/core/contract.ts +91 -1
- package/src/sdk/_generated/core/mod.ts +0 -1
- package/src/sdk/_generated/core/owned_api.ts +4 -4
- package/src/sdk/_generated/core/schemas.ts +81 -0
- package/src/sdk/_generated/core/types.ts +79 -15
- package/src/sdk/_generated/health/api.ts +29 -5
- package/src/sdk/_generated/health/client.ts +11 -58
- package/src/sdk/_generated/health/contract.ts +2 -10
- package/src/sdk/_generated/health/mod.ts +0 -1
- package/src/sdk/_generated/health/owned_api.ts +2 -2
- package/src/sdk/_generated/health/schemas.ts +1 -9
- package/src/sdk/_generated/health/types.ts +23 -2
- package/src/sdk/_generated/jobs/api.ts +29 -5
- package/src/sdk/_generated/jobs/client.ts +25 -109
- package/src/sdk/_generated/jobs/contract.ts +269 -1
- package/src/sdk/_generated/jobs/mod.ts +0 -1
- package/src/sdk/_generated/jobs/owned_api.ts +30 -9
- package/src/sdk/_generated/jobs/schemas.ts +213 -0
- package/src/sdk/_generated/jobs/types.ts +252 -18
- package/src/sdk/_generated/state/api.ts +29 -5
- package/src/sdk/_generated/state/client.ts +18 -95
- package/src/sdk/_generated/state/mod.ts +0 -1
- package/src/sdk/_generated/state/owned_api.ts +7 -7
- package/src/sdk/_generated/state/types.ts +91 -15
- package/src/server/health.ts +2 -6
- package/src/server/health_schemas.ts +0 -6
- package/src/server/internal_jobs/bindings.ts +11 -0
- package/src/server/internal_jobs/job-manager.ts +553 -24
- package/src/server/internal_jobs/key-coordinator.ts +1080 -0
- package/src/server/internal_jobs/projection.ts +2 -0
- package/src/server/internal_jobs/runtime-worker.ts +17 -1
- package/src/server/internal_jobs/types.ts +6 -0
- package/src/server/runtime.ts +4 -0
- package/src/server/service.ts +645 -625
- package/src/server.ts +14 -7
- package/src/service/deno.ts +0 -5
- package/src/service/drizzle.ts +184 -0
- package/src/service/mod.ts +17 -7
- package/src/service/node.ts +0 -5
- package/src/service/outbox_inbox.ts +354 -88
- package/src/telemetry/metrics.ts +198 -1
- package/src/telemetry/mod.ts +6 -0
- package/src/trellis.ts +286 -105
|
@@ -4,7 +4,7 @@ exports.use = exports.sdk = exports.CONTRACT = exports.CONTRACT_DIGEST = exports
|
|
|
4
4
|
const api_js_1 = require("./api.js");
|
|
5
5
|
const CONTRACT_MODULE_METADATA = Symbol.for("@qlever-llc/trellis/contracts/contract-module");
|
|
6
6
|
exports.CONTRACT_ID = "trellis.health@v1";
|
|
7
|
-
exports.CONTRACT_DIGEST = "
|
|
7
|
+
exports.CONTRACT_DIGEST = "z9RdJVXAI4q-hSkpvUX_xMYEJaKslMsayevlW4UlSeQ";
|
|
8
8
|
exports.CONTRACT = {
|
|
9
9
|
"description": "Expose shared Trellis heartbeat events for service observability.",
|
|
10
10
|
"displayName": "Trellis Health",
|
|
@@ -49,14 +49,6 @@ exports.CONTRACT = {
|
|
|
49
49
|
},
|
|
50
50
|
"type": "array",
|
|
51
51
|
},
|
|
52
|
-
"header": {
|
|
53
|
-
"properties": {
|
|
54
|
-
"id": { "type": "string" },
|
|
55
|
-
"time": { "format": "date-time", "type": "string" },
|
|
56
|
-
},
|
|
57
|
-
"required": ["id", "time"],
|
|
58
|
-
"type": "object",
|
|
59
|
-
},
|
|
60
52
|
"service": {
|
|
61
53
|
"properties": {
|
|
62
54
|
"contractDigest": { "type": "string" },
|
|
@@ -103,7 +95,7 @@ exports.CONTRACT = {
|
|
|
103
95
|
},
|
|
104
96
|
"summary": { "type": "string" },
|
|
105
97
|
},
|
|
106
|
-
"required": ["
|
|
98
|
+
"required": ["service", "status", "checks"],
|
|
107
99
|
"type": "object",
|
|
108
100
|
},
|
|
109
101
|
},
|
|
@@ -2,6 +2,6 @@ export { API, OWNED_API } from "./api.js";
|
|
|
2
2
|
export type { Api, ApiViews, OwnedApi } from "./api.js";
|
|
3
3
|
export * from "./types.js";
|
|
4
4
|
export * from "./schemas.js";
|
|
5
|
-
export type { Client, HandlerClient, Service, ServiceEventSurface, ServiceHandle,
|
|
5
|
+
export type { Client, HandlerClient, Service, ServiceEventSurface, ServiceHandle, TrellisHealthClient, TrellisHealthState, } from "./client.js";
|
|
6
6
|
export { CONTRACT, CONTRACT_DIGEST, CONTRACT_ID, sdk, use, } from "./contract.js";
|
|
7
7
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/health/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACxD,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,YAAY,EACV,MAAM,EACN,aAAa,EACb,OAAO,EACP,mBAAmB,EACnB,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/health/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACxD,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,YAAY,EACV,MAAM,EACN,aAAa,EACb,OAAO,EACP,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,QAAQ,EACR,eAAe,EACf,WAAW,EACX,GAAG,EACH,GAAG,GACJ,MAAM,eAAe,CAAC"}
|
|
@@ -6,8 +6,8 @@ export declare const OWNED_API: {
|
|
|
6
6
|
"Health.Heartbeat": {
|
|
7
7
|
subject: string;
|
|
8
8
|
event: import("@qlever-llc/trellis/contracts").Schema<Types.HealthHeartbeatEvent>;
|
|
9
|
-
publishCapabilities:
|
|
10
|
-
subscribeCapabilities:
|
|
9
|
+
publishCapabilities: readonly [];
|
|
10
|
+
subscribeCapabilities: readonly [];
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
feeds: {};
|
|
@@ -36,19 +36,6 @@ export declare const HealthHeartbeatSchema: {
|
|
|
36
36
|
};
|
|
37
37
|
readonly type: "array";
|
|
38
38
|
};
|
|
39
|
-
readonly header: {
|
|
40
|
-
readonly properties: {
|
|
41
|
-
readonly id: {
|
|
42
|
-
readonly type: "string";
|
|
43
|
-
};
|
|
44
|
-
readonly time: {
|
|
45
|
-
readonly format: "date-time";
|
|
46
|
-
readonly type: "string";
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
readonly required: readonly ["id", "time"];
|
|
50
|
-
readonly type: "object";
|
|
51
|
-
};
|
|
52
39
|
readonly service: {
|
|
53
40
|
readonly properties: {
|
|
54
41
|
readonly contractDigest: {
|
|
@@ -127,7 +114,7 @@ export declare const HealthHeartbeatSchema: {
|
|
|
127
114
|
readonly type: "string";
|
|
128
115
|
};
|
|
129
116
|
};
|
|
130
|
-
readonly required: readonly ["
|
|
117
|
+
readonly required: readonly ["service", "status", "checks"];
|
|
131
118
|
readonly type: "object";
|
|
132
119
|
};
|
|
133
120
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/health/schemas.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/health/schemas.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsExB,CAAC"}
|
|
@@ -24,14 +24,6 @@ exports.HealthHeartbeatSchema = {
|
|
|
24
24
|
},
|
|
25
25
|
"type": "array",
|
|
26
26
|
},
|
|
27
|
-
"header": {
|
|
28
|
-
"properties": {
|
|
29
|
-
"id": { "type": "string" },
|
|
30
|
-
"time": { "format": "date-time", "type": "string" },
|
|
31
|
-
},
|
|
32
|
-
"required": ["id", "time"],
|
|
33
|
-
"type": "object",
|
|
34
|
-
},
|
|
35
27
|
"service": {
|
|
36
28
|
"properties": {
|
|
37
29
|
"contractDigest": { "type": "string" },
|
|
@@ -78,6 +70,6 @@ exports.HealthHeartbeatSchema = {
|
|
|
78
70
|
},
|
|
79
71
|
"summary": { "type": "string" },
|
|
80
72
|
},
|
|
81
|
-
"required": ["
|
|
73
|
+
"required": ["service", "status", "checks"],
|
|
82
74
|
"type": "object",
|
|
83
75
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import type { BaseError, EventListenerContext, HandlerTrellis, MaybeAsync, TrellisEventMessage } from "@qlever-llc/trellis";
|
|
2
|
+
import type { Api } from "./api.js";
|
|
3
|
+
export type HandlerClient = HandlerTrellis<Api>;
|
|
1
4
|
export declare const CONTRACT_ID: "trellis.health@v1";
|
|
2
|
-
export declare const CONTRACT_DIGEST: "
|
|
5
|
+
export declare const CONTRACT_DIGEST: "z9RdJVXAI4q-hSkpvUX_xMYEJaKslMsayevlW4UlSeQ";
|
|
3
6
|
export type HealthHeartbeatEvent = {
|
|
4
7
|
checks: Array<{
|
|
5
8
|
error?: string;
|
|
@@ -11,10 +14,6 @@ export type HealthHeartbeatEvent = {
|
|
|
11
14
|
status: "ok" | "failed";
|
|
12
15
|
summary?: string;
|
|
13
16
|
}>;
|
|
14
|
-
header: {
|
|
15
|
-
id: string;
|
|
16
|
-
time: string;
|
|
17
|
-
};
|
|
18
17
|
service: {
|
|
19
18
|
contractDigest: string;
|
|
20
19
|
contractId: string;
|
|
@@ -33,6 +32,12 @@ export type HealthHeartbeatEvent = {
|
|
|
33
32
|
status: "healthy" | "unhealthy" | "degraded";
|
|
34
33
|
summary?: string;
|
|
35
34
|
};
|
|
35
|
+
export type HealthHeartbeatEventMessage = TrellisEventMessage<HealthHeartbeatEvent>;
|
|
36
|
+
export type HealthHeartbeatEventHandler = (args: {
|
|
37
|
+
event: HealthHeartbeatEvent;
|
|
38
|
+
context: EventListenerContext;
|
|
39
|
+
client: HandlerClient;
|
|
40
|
+
}) => MaybeAsync<void, BaseError>;
|
|
36
41
|
export interface RpcMap {
|
|
37
42
|
}
|
|
38
43
|
export interface EventMap {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/health/types.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,EAAG,mBAA4B,CAAC;AACxD,eAAO,MAAM,eAAe,EAC1B,6CAAsD,CAAC;AAEzD,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,KAAK,CACX;QACE,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAChC,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,IAAI,GAAG,QAAQ,CAAC;QACxB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CACF,CAAC;IACF,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/health/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,K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,KAAK,EAAE,oBAAoB,CAAC;IAC5B,OAAO,EAAE,oBAAoB,CAAC;IAC9B,MAAM,EAAE,aAAa,CAAC;CACvB,KACE,UAAU,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAEjC,MAAM,WAAW,MAAM;CACtB;AAED,MAAM,WAAW,QAAQ;IACvB,kBAAkB,EAAE;QAAE,KAAK,EAAE,oBAAoB,CAAA;KAAE,CAAC;CACrD;AAED,MAAM,WAAW,OAAO;CACvB;AAED,MAAM,WAAW,UAAU;CAC1B"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CONTRACT_DIGEST = exports.CONTRACT_ID = void 0;
|
|
4
|
-
// Generated from ./generated/contracts/manifests/trellis.health@v1.json
|
|
5
4
|
exports.CONTRACT_ID = "trellis.health@v1";
|
|
6
|
-
exports.CONTRACT_DIGEST = "
|
|
5
|
+
exports.CONTRACT_DIGEST = "z9RdJVXAI4q-hSkpvUX_xMYEJaKslMsayevlW4UlSeQ";
|
|
@@ -3,6 +3,28 @@ import { OWNED_API as AuthApi } from "@qlever-llc/trellis/sdk/auth";
|
|
|
3
3
|
import { OWNED_API as CoreApi } from "@qlever-llc/trellis/sdk/core";
|
|
4
4
|
import { OWNED_API as HealthApi } from "@qlever-llc/trellis/sdk/health";
|
|
5
5
|
export { OWNED_API };
|
|
6
|
+
type __TrellisGeneratedOptionalOperationProgress<TDesc> = TDesc extends {
|
|
7
|
+
progress: infer TProgress;
|
|
8
|
+
} ? {
|
|
9
|
+
progress?: TProgress;
|
|
10
|
+
} : {
|
|
11
|
+
progress?: undefined;
|
|
12
|
+
};
|
|
13
|
+
type __TrellisGeneratedOptionalOperationOutput<TDesc> = TDesc extends {
|
|
14
|
+
output: infer TOutput;
|
|
15
|
+
} ? {
|
|
16
|
+
output?: TOutput;
|
|
17
|
+
} : {
|
|
18
|
+
output?: undefined;
|
|
19
|
+
};
|
|
20
|
+
type __TrellisGeneratedOptionalOperationIO<TDesc> = TDesc extends {
|
|
21
|
+
input: infer TInput;
|
|
22
|
+
} ? Omit<TDesc, "input" | "progress" | "output"> & {
|
|
23
|
+
input: TInput;
|
|
24
|
+
} & __TrellisGeneratedOptionalOperationProgress<TDesc> & __TrellisGeneratedOptionalOperationOutput<TDesc> : TDesc;
|
|
25
|
+
type __TrellisGeneratedOperationApi<TApi> = {
|
|
26
|
+
readonly [K in keyof TApi]: __TrellisGeneratedOptionalOperationIO<TApi[K]>;
|
|
27
|
+
};
|
|
6
28
|
export type UsedApi = {
|
|
7
29
|
rpc: {
|
|
8
30
|
readonly "Auth.Requests.Validate": typeof AuthApi.rpc["Auth.Requests.Validate"];
|
|
@@ -17,7 +39,9 @@ export type UsedApi = {
|
|
|
17
39
|
subjects: {};
|
|
18
40
|
};
|
|
19
41
|
export declare const USED_API: UsedApi;
|
|
20
|
-
export type OwnedApi = typeof OWNED_API
|
|
42
|
+
export type OwnedApi = Omit<typeof OWNED_API, "operations"> & {
|
|
43
|
+
operations: __TrellisGeneratedOperationApi<typeof OWNED_API["operations"]>;
|
|
44
|
+
};
|
|
21
45
|
export type Api = {
|
|
22
46
|
rpc: OwnedApi["rpc"] & UsedApi["rpc"];
|
|
23
47
|
operations: OwnedApi["operations"] & UsedApi["operations"];
|
|
@@ -25,113 +49,9 @@ export type Api = {
|
|
|
25
49
|
feeds: OwnedApi["feeds"] & UsedApi["feeds"];
|
|
26
50
|
subjects: OwnedApi["subjects"] & UsedApi["subjects"];
|
|
27
51
|
};
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"Jobs.Cancel": {
|
|
32
|
-
subject: string;
|
|
33
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsCancelInput>;
|
|
34
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsCancelOutput>;
|
|
35
|
-
callerCapabilities: string[];
|
|
36
|
-
errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
37
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
38
|
-
runtimeErrors: readonly [{
|
|
39
|
-
readonly type: "NotFoundError";
|
|
40
|
-
readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
|
|
41
|
-
readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
|
|
42
|
-
}];
|
|
43
|
-
};
|
|
44
|
-
"Jobs.DismissDLQ": {
|
|
45
|
-
subject: string;
|
|
46
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsDismissDLQInput>;
|
|
47
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsDismissDLQOutput>;
|
|
48
|
-
callerCapabilities: string[];
|
|
49
|
-
errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
50
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
51
|
-
runtimeErrors: readonly [{
|
|
52
|
-
readonly type: "NotFoundError";
|
|
53
|
-
readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
|
|
54
|
-
readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
|
|
55
|
-
}];
|
|
56
|
-
};
|
|
57
|
-
"Jobs.Get": {
|
|
58
|
-
subject: string;
|
|
59
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsGetInput>;
|
|
60
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsGetOutput>;
|
|
61
|
-
callerCapabilities: string[];
|
|
62
|
-
errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
63
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
64
|
-
runtimeErrors: readonly [{
|
|
65
|
-
readonly type: "NotFoundError";
|
|
66
|
-
readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
|
|
67
|
-
readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
|
|
68
|
-
}];
|
|
69
|
-
};
|
|
70
|
-
"Jobs.Health": {
|
|
71
|
-
subject: string;
|
|
72
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsHealthInput>;
|
|
73
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsHealthOutput>;
|
|
74
|
-
callerCapabilities: string[];
|
|
75
|
-
errors: readonly ["UnexpectedError"];
|
|
76
|
-
declaredErrorTypes: readonly ["UnexpectedError"];
|
|
77
|
-
};
|
|
78
|
-
"Jobs.List": {
|
|
79
|
-
subject: string;
|
|
80
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListInput>;
|
|
81
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListOutput>;
|
|
82
|
-
callerCapabilities: string[];
|
|
83
|
-
errors: readonly ["UnexpectedError", "ValidationError"];
|
|
84
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
|
|
85
|
-
};
|
|
86
|
-
"Jobs.ListDLQ": {
|
|
87
|
-
subject: string;
|
|
88
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListDLQInput>;
|
|
89
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListDLQOutput>;
|
|
90
|
-
callerCapabilities: string[];
|
|
91
|
-
errors: readonly ["UnexpectedError", "ValidationError"];
|
|
92
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
|
|
93
|
-
};
|
|
94
|
-
"Jobs.ListServices": {
|
|
95
|
-
subject: string;
|
|
96
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListServicesInput>;
|
|
97
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListServicesOutput>;
|
|
98
|
-
callerCapabilities: string[];
|
|
99
|
-
errors: readonly ["UnexpectedError", "ValidationError"];
|
|
100
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
|
|
101
|
-
};
|
|
102
|
-
"Jobs.ReplayDLQ": {
|
|
103
|
-
subject: string;
|
|
104
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsReplayDLQInput>;
|
|
105
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsReplayDLQOutput>;
|
|
106
|
-
callerCapabilities: string[];
|
|
107
|
-
errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
108
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
109
|
-
runtimeErrors: readonly [{
|
|
110
|
-
readonly type: "NotFoundError";
|
|
111
|
-
readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
|
|
112
|
-
readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
|
|
113
|
-
}];
|
|
114
|
-
};
|
|
115
|
-
"Jobs.Retry": {
|
|
116
|
-
subject: string;
|
|
117
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsRetryInput>;
|
|
118
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsRetryOutput>;
|
|
119
|
-
callerCapabilities: string[];
|
|
120
|
-
errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
121
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
122
|
-
runtimeErrors: readonly [{
|
|
123
|
-
readonly type: "NotFoundError";
|
|
124
|
-
readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
|
|
125
|
-
readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
|
|
126
|
-
}];
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
operations: {};
|
|
130
|
-
events: {};
|
|
131
|
-
feeds: {};
|
|
132
|
-
subjects: {};
|
|
133
|
-
};
|
|
134
|
-
readonly used: UsedApi;
|
|
52
|
+
export type ApiViews = {
|
|
53
|
+
owned: OwnedApi;
|
|
54
|
+
used: UsedApi;
|
|
135
55
|
};
|
|
136
|
-
export
|
|
56
|
+
export declare const API: ApiViews;
|
|
137
57
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE;QACH,QAAQ,CAAC,wBAAwB,EAC/B,OAAO,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QAC/C,QAAQ,CAAC,sBAAsB,EAAE,OAAO,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;QAC5E,QAAQ,CAAC,iBAAiB,EAAE,OAAO,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;KACnE,CAAC;IACF,UAAU,EAAE,EAAE,CAAC;IACf,MAAM,EAAE;QACN,QAAQ,CAAC,kBAAkB,EAAE,OAAO,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;KAC1E,CAAC;IACF,KAAK,EAAE,EAAE,CAAC;IACV,QAAQ,EAAE,EAAE,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,OAoBtB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC;
|
|
1
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;CACf,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,QAGjB,CAAC"}
|
|
@@ -1,25 +1,17 @@
|
|
|
1
|
-
import type { AsyncResult, BaseError, EventListenerContext, EventOpts, HandlerTrellis, MaybeAsync, PreparedTrellisEvent, ReceiveTransferGrant, ReceiveTransferHandle, RequestOpts, Result,
|
|
1
|
+
import type { AsyncResult, BaseError, EventListenerContext, EventOpts, HandlerTrellis, MaybeAsync, PreparedTrellisEvent, ReceiveTransferGrant, ReceiveTransferHandle, RequestOpts, Result, SendTransferGrant, SendTransferHandle, TrellisConnection, UnexpectedError, ValidationError } from "@qlever-llc/trellis";
|
|
2
2
|
import type { Api } from "./api.js";
|
|
3
3
|
import type * as Types from "./types.js";
|
|
4
4
|
import type * as AuthSdk from "@qlever-llc/trellis/sdk/auth";
|
|
5
5
|
import type * as CoreSdk from "@qlever-llc/trellis/sdk/core";
|
|
6
6
|
import type * as HealthSdk from "@qlever-llc/trellis/sdk/health";
|
|
7
|
-
type WithDeps<TDeps> = [TDeps] extends [undefined] ? {} : {
|
|
8
|
-
deps: TDeps;
|
|
9
|
-
};
|
|
10
7
|
type EventCallback<TMessage> = {
|
|
11
8
|
bivarianceHack(message: TMessage, context: EventListenerContext): MaybeAsync<void, BaseError>;
|
|
12
9
|
}["bivarianceHack"];
|
|
13
|
-
type
|
|
10
|
+
type DependencyServiceEventHandler<TEvent> = (args: {
|
|
14
11
|
event: TEvent;
|
|
15
12
|
context: EventListenerContext;
|
|
16
13
|
client: HandlerClient;
|
|
17
|
-
}
|
|
18
|
-
type RpcHandler<TInput, TOutput, TDeps = undefined> = (args: {
|
|
19
|
-
input: TInput;
|
|
20
|
-
context: RpcHandlerContext;
|
|
21
|
-
client: HandlerClient;
|
|
22
|
-
} & WithDeps<TDeps>) => MaybeAsync<TOutput, BaseError>;
|
|
14
|
+
}) => MaybeAsync<void, BaseError>;
|
|
23
15
|
export type TrellisJobsState = {};
|
|
24
16
|
export interface TrellisJobsClient {
|
|
25
17
|
readonly name: string;
|
|
@@ -38,6 +30,7 @@ export interface TrellisJobsClient {
|
|
|
38
30
|
cancel(input: Types.JobsCancelInput, opts?: RequestOpts): AsyncResult<Types.JobsCancelOutput, BaseError>;
|
|
39
31
|
dismissDLQ(input: Types.JobsDismissDLQInput, opts?: RequestOpts): AsyncResult<Types.JobsDismissDLQOutput, BaseError>;
|
|
40
32
|
get(input: Types.JobsGetInput, opts?: RequestOpts): AsyncResult<Types.JobsGetOutput, BaseError>;
|
|
33
|
+
getKey(input: Types.JobsGetKeyInput, opts?: RequestOpts): AsyncResult<Types.JobsGetKeyOutput, BaseError>;
|
|
41
34
|
health(input: Types.JobsHealthInput, opts?: RequestOpts): AsyncResult<Types.JobsHealthOutput, BaseError>;
|
|
42
35
|
list(input: Types.JobsListInput, opts?: RequestOpts): AsyncResult<Types.JobsListOutput, BaseError>;
|
|
43
36
|
listDLQ(input: Types.JobsListDLQInput, opts?: RequestOpts): AsyncResult<Types.JobsListDLQOutput, BaseError>;
|
|
@@ -52,8 +45,8 @@ export interface TrellisJobsClient {
|
|
|
52
45
|
readonly event: {
|
|
53
46
|
readonly health: {
|
|
54
47
|
heartbeat: {
|
|
55
|
-
publish(event:
|
|
56
|
-
prepare(event:
|
|
48
|
+
publish(event: HealthSdk.HealthHeartbeatEvent): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
49
|
+
prepare(event: HealthSdk.HealthHeartbeatEvent): Result<PreparedTrellisEvent<HealthSdk.HealthHeartbeatEvent>, ValidationError | UnexpectedError>;
|
|
57
50
|
listen(handler: EventCallback<HealthSdk.HealthHeartbeatEvent>, subjectData?: Record<string, unknown>, opts?: EventOpts): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
58
51
|
};
|
|
59
52
|
};
|
|
@@ -64,34 +57,29 @@ export interface TrellisJobsClient {
|
|
|
64
57
|
}
|
|
65
58
|
export interface Service extends TrellisJobsClient {
|
|
66
59
|
readonly handle: ServiceHandle;
|
|
67
|
-
with<TDeps>(deps: TDeps): ServiceWithDeps<TDeps>;
|
|
68
60
|
}
|
|
69
|
-
export
|
|
70
|
-
readonly event: ServiceEventSurface<TDeps>;
|
|
71
|
-
readonly handle: ServiceHandle<TDeps>;
|
|
72
|
-
with<TNextDeps>(deps: TNextDeps): ServiceWithDeps<TNextDeps>;
|
|
73
|
-
};
|
|
74
|
-
export interface ServiceEventSurface<TDeps> {
|
|
61
|
+
export interface ServiceEventSurface {
|
|
75
62
|
readonly health: {
|
|
76
63
|
heartbeat: {
|
|
77
|
-
publish(event:
|
|
78
|
-
prepare(event:
|
|
79
|
-
listen(handler:
|
|
64
|
+
publish(event: HealthSdk.HealthHeartbeatEvent): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
65
|
+
prepare(event: HealthSdk.HealthHeartbeatEvent): Result<PreparedTrellisEvent<HealthSdk.HealthHeartbeatEvent>, ValidationError | UnexpectedError>;
|
|
66
|
+
listen(handler: DependencyServiceEventHandler<HealthSdk.HealthHeartbeatEvent>, subjectData?: Record<string, unknown>, opts?: EventOpts): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
80
67
|
};
|
|
81
68
|
};
|
|
82
69
|
}
|
|
83
|
-
export interface ServiceHandle
|
|
70
|
+
export interface ServiceHandle {
|
|
84
71
|
readonly rpc: {
|
|
85
72
|
readonly jobs: {
|
|
86
|
-
cancel(handler:
|
|
87
|
-
dismissDLQ(handler:
|
|
88
|
-
get(handler:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
73
|
+
cancel(handler: Types.JobsCancelHandler): Promise<void>;
|
|
74
|
+
dismissDLQ(handler: Types.JobsDismissDLQHandler): Promise<void>;
|
|
75
|
+
get(handler: Types.JobsGetHandler): Promise<void>;
|
|
76
|
+
getKey(handler: Types.JobsGetKeyHandler): Promise<void>;
|
|
77
|
+
health(handler: Types.JobsHealthHandler): Promise<void>;
|
|
78
|
+
list(handler: Types.JobsListHandler): Promise<void>;
|
|
79
|
+
listDLQ(handler: Types.JobsListDLQHandler): Promise<void>;
|
|
80
|
+
listServices(handler: Types.JobsListServicesHandler): Promise<void>;
|
|
81
|
+
replayDLQ(handler: Types.JobsReplayDLQHandler): Promise<void>;
|
|
82
|
+
retry(handler: Types.JobsRetryHandler): Promise<void>;
|
|
95
83
|
};
|
|
96
84
|
};
|
|
97
85
|
readonly feed: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,SAAS,EAGT,cAAc,EAEd,UAAU,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,SAAS,EAGT,cAAc,EAEd,UAAU,EAMV,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,EACX,MAAM,EACN,iBAAiB,EACjB,kBAAkB,EAGlB,iBAAiB,EACjB,eAAe,EACf,eAAe,EAEhB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAO,GAAG,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAEnD,KAAK,aAAa,CAAC,QAAQ,IAAI;IAC7B,cAAc,CACZ,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,oBAAoB,GAC5B,UAAU,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;CAChC,CAAC,gBAAgB,CAAC,CAAC;AAEpB,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AAC;IAClB,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAChD,MAAM,MAAM,MAAM,GAAG,iBAAiB,CAAC"}
|
|
@@ -1,112 +1,8 @@
|
|
|
1
1
|
import type { SdkContractModule, TrellisContractV1 } from "@qlever-llc/trellis";
|
|
2
2
|
import { API } from "./api.js";
|
|
3
3
|
export declare const CONTRACT_ID: "trellis.jobs@v1";
|
|
4
|
-
export declare const CONTRACT_DIGEST: "
|
|
4
|
+
export declare const CONTRACT_DIGEST: "xDigtrlrF3n3ZNgHVdwDJFcwi0PEJBiDyBG6FnzFzM8";
|
|
5
5
|
export declare const CONTRACT: TrellisContractV1;
|
|
6
6
|
export declare const sdk: SdkContractModule<typeof CONTRACT_ID, typeof API.owned>;
|
|
7
|
-
export declare const use: import("@qlever-llc/trellis").ContractUseFn<"trellis.jobs@v1",
|
|
8
|
-
rpc: {
|
|
9
|
-
"Jobs.Cancel": {
|
|
10
|
-
subject: string;
|
|
11
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsCancelInput>;
|
|
12
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsCancelOutput>;
|
|
13
|
-
callerCapabilities: string[];
|
|
14
|
-
errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
15
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
16
|
-
runtimeErrors: readonly [{
|
|
17
|
-
readonly type: "NotFoundError";
|
|
18
|
-
readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
|
|
19
|
-
readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
|
|
20
|
-
}];
|
|
21
|
-
};
|
|
22
|
-
"Jobs.DismissDLQ": {
|
|
23
|
-
subject: string;
|
|
24
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsDismissDLQInput>;
|
|
25
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsDismissDLQOutput>;
|
|
26
|
-
callerCapabilities: string[];
|
|
27
|
-
errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
28
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
29
|
-
runtimeErrors: readonly [{
|
|
30
|
-
readonly type: "NotFoundError";
|
|
31
|
-
readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
|
|
32
|
-
readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
|
|
33
|
-
}];
|
|
34
|
-
};
|
|
35
|
-
"Jobs.Get": {
|
|
36
|
-
subject: string;
|
|
37
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsGetInput>;
|
|
38
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsGetOutput>;
|
|
39
|
-
callerCapabilities: string[];
|
|
40
|
-
errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
41
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
42
|
-
runtimeErrors: readonly [{
|
|
43
|
-
readonly type: "NotFoundError";
|
|
44
|
-
readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
|
|
45
|
-
readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
|
|
46
|
-
}];
|
|
47
|
-
};
|
|
48
|
-
"Jobs.Health": {
|
|
49
|
-
subject: string;
|
|
50
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsHealthInput>;
|
|
51
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsHealthOutput>;
|
|
52
|
-
callerCapabilities: string[];
|
|
53
|
-
errors: readonly ["UnexpectedError"];
|
|
54
|
-
declaredErrorTypes: readonly ["UnexpectedError"];
|
|
55
|
-
};
|
|
56
|
-
"Jobs.List": {
|
|
57
|
-
subject: string;
|
|
58
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListInput>;
|
|
59
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListOutput>;
|
|
60
|
-
callerCapabilities: string[];
|
|
61
|
-
errors: readonly ["UnexpectedError", "ValidationError"];
|
|
62
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
|
|
63
|
-
};
|
|
64
|
-
"Jobs.ListDLQ": {
|
|
65
|
-
subject: string;
|
|
66
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListDLQInput>;
|
|
67
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListDLQOutput>;
|
|
68
|
-
callerCapabilities: string[];
|
|
69
|
-
errors: readonly ["UnexpectedError", "ValidationError"];
|
|
70
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
|
|
71
|
-
};
|
|
72
|
-
"Jobs.ListServices": {
|
|
73
|
-
subject: string;
|
|
74
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListServicesInput>;
|
|
75
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListServicesOutput>;
|
|
76
|
-
callerCapabilities: string[];
|
|
77
|
-
errors: readonly ["UnexpectedError", "ValidationError"];
|
|
78
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
|
|
79
|
-
};
|
|
80
|
-
"Jobs.ReplayDLQ": {
|
|
81
|
-
subject: string;
|
|
82
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsReplayDLQInput>;
|
|
83
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsReplayDLQOutput>;
|
|
84
|
-
callerCapabilities: string[];
|
|
85
|
-
errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
86
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
87
|
-
runtimeErrors: readonly [{
|
|
88
|
-
readonly type: "NotFoundError";
|
|
89
|
-
readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
|
|
90
|
-
readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
|
|
91
|
-
}];
|
|
92
|
-
};
|
|
93
|
-
"Jobs.Retry": {
|
|
94
|
-
subject: string;
|
|
95
|
-
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsRetryInput>;
|
|
96
|
-
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsRetryOutput>;
|
|
97
|
-
callerCapabilities: string[];
|
|
98
|
-
errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
99
|
-
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
100
|
-
runtimeErrors: readonly [{
|
|
101
|
-
readonly type: "NotFoundError";
|
|
102
|
-
readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
|
|
103
|
-
readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
|
|
104
|
-
}];
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
operations: {};
|
|
108
|
-
events: {};
|
|
109
|
-
feeds: {};
|
|
110
|
-
subjects: {};
|
|
111
|
-
}>;
|
|
7
|
+
export declare const use: import("@qlever-llc/trellis").ContractUseFn<"trellis.jobs@v1", import("./api.js").OwnedApi>;
|
|
112
8
|
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,iBAAiB,EACjB,iBAAiB,EAElB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAM/B,eAAO,MAAM,WAAW,EAAG,iBAA0B,CAAC;AACtD,eAAO,MAAM,eAAe,EAC1B,6CAAsD,CAAC;AACzD,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,iBAAiB,EACjB,iBAAiB,EAElB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAM/B,eAAO,MAAM,WAAW,EAAG,iBAA0B,CAAC;AACtD,eAAO,MAAM,eAAe,EAC1B,6CAAsD,CAAC;AACzD,eAAO,MAAM,QAAQ,EAo0ChB,iBAAiB,CAAC;AAgCvB,eAAO,MAAM,GAAG,EAAE,iBAAiB,CAAC,OAAO,WAAW,EAAE,OAAO,GAAG,CAAC,KAAK,CA0CvE,CAAC;AAEF,eAAO,MAAM,GAAG,2FAAU,CAAC"}
|