@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
|
@@ -15,13 +15,11 @@ import type {
|
|
|
15
15
|
OperationRef,
|
|
16
16
|
OperationRefData,
|
|
17
17
|
OperationRuntimeHandle,
|
|
18
|
-
OperationTransferHandle,
|
|
19
18
|
PreparedTrellisEvent,
|
|
20
19
|
ReceiveTransferGrant,
|
|
21
20
|
ReceiveTransferHandle,
|
|
22
21
|
RequestOpts,
|
|
23
22
|
Result,
|
|
24
|
-
RpcHandlerContext,
|
|
25
23
|
SendTransferGrant,
|
|
26
24
|
SendTransferHandle,
|
|
27
25
|
TerminalOperation,
|
|
@@ -33,8 +31,7 @@ import type {
|
|
|
33
31
|
} from "../../../index.js";
|
|
34
32
|
import type { API, Api } from "./api.js";
|
|
35
33
|
import type * as Types from "./types.js";
|
|
36
|
-
|
|
37
|
-
type WithDeps<TDeps> = [TDeps] extends [undefined] ? {} : { deps: TDeps };
|
|
34
|
+
import type * as HealthSdk from "../health/mod.js";
|
|
38
35
|
|
|
39
36
|
type EventCallback<TMessage> = {
|
|
40
37
|
bivarianceHack(
|
|
@@ -43,46 +40,10 @@ type EventCallback<TMessage> = {
|
|
|
43
40
|
): MaybeAsync<void, BaseError>;
|
|
44
41
|
}["bivarianceHack"];
|
|
45
42
|
|
|
46
|
-
type
|
|
47
|
-
args:
|
|
48
|
-
& { event: TEvent; context: EventListenerContext; client: HandlerClient }
|
|
49
|
-
& WithDeps<TDeps>,
|
|
43
|
+
type DependencyServiceEventHandler<TEvent> = (
|
|
44
|
+
args: { event: TEvent; context: EventListenerContext; client: HandlerClient },
|
|
50
45
|
) => MaybeAsync<void, BaseError>;
|
|
51
46
|
|
|
52
|
-
type RpcHandler<TInput, TOutput, TDeps = undefined> = (
|
|
53
|
-
args:
|
|
54
|
-
& { input: TInput; context: RpcHandlerContext; client: HandlerClient }
|
|
55
|
-
& WithDeps<TDeps>,
|
|
56
|
-
) => MaybeAsync<TOutput, BaseError>;
|
|
57
|
-
|
|
58
|
-
type FeedHandler<TInput, TEvent, TDeps = undefined> = (
|
|
59
|
-
context: {
|
|
60
|
-
input: TInput;
|
|
61
|
-
caller: unknown;
|
|
62
|
-
signal: AbortSignal;
|
|
63
|
-
emit(event: TEvent): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
64
|
-
client: HandlerClient;
|
|
65
|
-
} & WithDeps<TDeps>,
|
|
66
|
-
) => unknown | Promise<unknown>;
|
|
67
|
-
|
|
68
|
-
type OperationHandler<
|
|
69
|
-
TInput,
|
|
70
|
-
TProgress,
|
|
71
|
-
TOutput,
|
|
72
|
-
TTransfer,
|
|
73
|
-
TDeps = undefined,
|
|
74
|
-
> = (
|
|
75
|
-
context:
|
|
76
|
-
& {
|
|
77
|
-
input: TInput;
|
|
78
|
-
op: OperationRuntimeHandle<TProgress, TOutput>;
|
|
79
|
-
caller: unknown;
|
|
80
|
-
client: HandlerClient;
|
|
81
|
-
}
|
|
82
|
-
& TTransfer
|
|
83
|
-
& WithDeps<TDeps>,
|
|
84
|
-
) => unknown | Promise<unknown>;
|
|
85
|
-
|
|
86
47
|
export type TrellisAuthState = {};
|
|
87
48
|
|
|
88
49
|
type AuthDeviceUserAuthoritiesResolveOperationDesc =
|
|
@@ -416,14 +377,12 @@ export interface TrellisAuthClient {
|
|
|
416
377
|
readonly auth: {
|
|
417
378
|
connectionsClosed: {
|
|
418
379
|
publish(
|
|
419
|
-
event:
|
|
380
|
+
event: Types.AuthConnectionsClosedEvent,
|
|
420
381
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
421
382
|
prepare(
|
|
422
|
-
event:
|
|
383
|
+
event: Types.AuthConnectionsClosedEvent,
|
|
423
384
|
): Result<
|
|
424
|
-
PreparedTrellisEvent<
|
|
425
|
-
Omit<Types.AuthConnectionsClosedEvent, "header">
|
|
426
|
-
>,
|
|
385
|
+
PreparedTrellisEvent<Types.AuthConnectionsClosedEvent>,
|
|
427
386
|
ValidationError | UnexpectedError
|
|
428
387
|
>;
|
|
429
388
|
listen(
|
|
@@ -434,14 +393,12 @@ export interface TrellisAuthClient {
|
|
|
434
393
|
};
|
|
435
394
|
connectionsKicked: {
|
|
436
395
|
publish(
|
|
437
|
-
event:
|
|
396
|
+
event: Types.AuthConnectionsKickedEvent,
|
|
438
397
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
439
398
|
prepare(
|
|
440
|
-
event:
|
|
399
|
+
event: Types.AuthConnectionsKickedEvent,
|
|
441
400
|
): Result<
|
|
442
|
-
PreparedTrellisEvent<
|
|
443
|
-
Omit<Types.AuthConnectionsKickedEvent, "header">
|
|
444
|
-
>,
|
|
401
|
+
PreparedTrellisEvent<Types.AuthConnectionsKickedEvent>,
|
|
445
402
|
ValidationError | UnexpectedError
|
|
446
403
|
>;
|
|
447
404
|
listen(
|
|
@@ -452,14 +409,12 @@ export interface TrellisAuthClient {
|
|
|
452
409
|
};
|
|
453
410
|
connectionsOpened: {
|
|
454
411
|
publish(
|
|
455
|
-
event:
|
|
412
|
+
event: Types.AuthConnectionsOpenedEvent,
|
|
456
413
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
457
414
|
prepare(
|
|
458
|
-
event:
|
|
415
|
+
event: Types.AuthConnectionsOpenedEvent,
|
|
459
416
|
): Result<
|
|
460
|
-
PreparedTrellisEvent<
|
|
461
|
-
Omit<Types.AuthConnectionsOpenedEvent, "header">
|
|
462
|
-
>,
|
|
417
|
+
PreparedTrellisEvent<Types.AuthConnectionsOpenedEvent>,
|
|
463
418
|
ValidationError | UnexpectedError
|
|
464
419
|
>;
|
|
465
420
|
listen(
|
|
@@ -470,14 +425,12 @@ export interface TrellisAuthClient {
|
|
|
470
425
|
};
|
|
471
426
|
deviceUserAuthoritiesApproved: {
|
|
472
427
|
publish(
|
|
473
|
-
event:
|
|
428
|
+
event: Types.AuthDeviceUserAuthoritiesApprovedEvent,
|
|
474
429
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
475
430
|
prepare(
|
|
476
|
-
event:
|
|
431
|
+
event: Types.AuthDeviceUserAuthoritiesApprovedEvent,
|
|
477
432
|
): Result<
|
|
478
|
-
PreparedTrellisEvent<
|
|
479
|
-
Omit<Types.AuthDeviceUserAuthoritiesApprovedEvent, "header">
|
|
480
|
-
>,
|
|
433
|
+
PreparedTrellisEvent<Types.AuthDeviceUserAuthoritiesApprovedEvent>,
|
|
481
434
|
ValidationError | UnexpectedError
|
|
482
435
|
>;
|
|
483
436
|
listen(
|
|
@@ -488,14 +441,12 @@ export interface TrellisAuthClient {
|
|
|
488
441
|
};
|
|
489
442
|
deviceUserAuthoritiesRequested: {
|
|
490
443
|
publish(
|
|
491
|
-
event:
|
|
444
|
+
event: Types.AuthDeviceUserAuthoritiesRequestedEvent,
|
|
492
445
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
493
446
|
prepare(
|
|
494
|
-
event:
|
|
447
|
+
event: Types.AuthDeviceUserAuthoritiesRequestedEvent,
|
|
495
448
|
): Result<
|
|
496
|
-
PreparedTrellisEvent<
|
|
497
|
-
Omit<Types.AuthDeviceUserAuthoritiesRequestedEvent, "header">
|
|
498
|
-
>,
|
|
449
|
+
PreparedTrellisEvent<Types.AuthDeviceUserAuthoritiesRequestedEvent>,
|
|
499
450
|
ValidationError | UnexpectedError
|
|
500
451
|
>;
|
|
501
452
|
listen(
|
|
@@ -506,14 +457,12 @@ export interface TrellisAuthClient {
|
|
|
506
457
|
};
|
|
507
458
|
deviceUserAuthoritiesResolved: {
|
|
508
459
|
publish(
|
|
509
|
-
event:
|
|
460
|
+
event: Types.AuthDeviceUserAuthoritiesResolvedEvent,
|
|
510
461
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
511
462
|
prepare(
|
|
512
|
-
event:
|
|
463
|
+
event: Types.AuthDeviceUserAuthoritiesResolvedEvent,
|
|
513
464
|
): Result<
|
|
514
|
-
PreparedTrellisEvent<
|
|
515
|
-
Omit<Types.AuthDeviceUserAuthoritiesResolvedEvent, "header">
|
|
516
|
-
>,
|
|
465
|
+
PreparedTrellisEvent<Types.AuthDeviceUserAuthoritiesResolvedEvent>,
|
|
517
466
|
ValidationError | UnexpectedError
|
|
518
467
|
>;
|
|
519
468
|
listen(
|
|
@@ -524,19 +473,13 @@ export interface TrellisAuthClient {
|
|
|
524
473
|
};
|
|
525
474
|
deviceUserAuthoritiesReviewRequested: {
|
|
526
475
|
publish(
|
|
527
|
-
event:
|
|
528
|
-
Types.AuthDeviceUserAuthoritiesReviewRequestedEvent,
|
|
529
|
-
"header"
|
|
530
|
-
>,
|
|
476
|
+
event: Types.AuthDeviceUserAuthoritiesReviewRequestedEvent,
|
|
531
477
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
532
478
|
prepare(
|
|
533
|
-
event:
|
|
534
|
-
Types.AuthDeviceUserAuthoritiesReviewRequestedEvent,
|
|
535
|
-
"header"
|
|
536
|
-
>,
|
|
479
|
+
event: Types.AuthDeviceUserAuthoritiesReviewRequestedEvent,
|
|
537
480
|
): Result<
|
|
538
481
|
PreparedTrellisEvent<
|
|
539
|
-
|
|
482
|
+
Types.AuthDeviceUserAuthoritiesReviewRequestedEvent
|
|
540
483
|
>,
|
|
541
484
|
ValidationError | UnexpectedError
|
|
542
485
|
>;
|
|
@@ -550,12 +493,12 @@ export interface TrellisAuthClient {
|
|
|
550
493
|
};
|
|
551
494
|
sessionsRevoked: {
|
|
552
495
|
publish(
|
|
553
|
-
event:
|
|
496
|
+
event: Types.AuthSessionsRevokedEvent,
|
|
554
497
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
555
498
|
prepare(
|
|
556
|
-
event:
|
|
499
|
+
event: Types.AuthSessionsRevokedEvent,
|
|
557
500
|
): Result<
|
|
558
|
-
PreparedTrellisEvent<
|
|
501
|
+
PreparedTrellisEvent<Types.AuthSessionsRevokedEvent>,
|
|
559
502
|
ValidationError | UnexpectedError
|
|
560
503
|
>;
|
|
561
504
|
listen(
|
|
@@ -565,6 +508,24 @@ export interface TrellisAuthClient {
|
|
|
565
508
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
566
509
|
};
|
|
567
510
|
};
|
|
511
|
+
readonly health: {
|
|
512
|
+
heartbeat: {
|
|
513
|
+
publish(
|
|
514
|
+
event: HealthSdk.HealthHeartbeatEvent,
|
|
515
|
+
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
516
|
+
prepare(
|
|
517
|
+
event: HealthSdk.HealthHeartbeatEvent,
|
|
518
|
+
): Result<
|
|
519
|
+
PreparedTrellisEvent<HealthSdk.HealthHeartbeatEvent>,
|
|
520
|
+
ValidationError | UnexpectedError
|
|
521
|
+
>;
|
|
522
|
+
listen(
|
|
523
|
+
handler: EventCallback<HealthSdk.HealthHeartbeatEvent>,
|
|
524
|
+
subjectData?: Record<string, unknown>,
|
|
525
|
+
opts?: EventOpts,
|
|
526
|
+
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
527
|
+
};
|
|
528
|
+
};
|
|
568
529
|
};
|
|
569
530
|
readonly feed: {};
|
|
570
531
|
readonly operation: {
|
|
@@ -577,167 +538,154 @@ export interface TrellisAuthClient {
|
|
|
577
538
|
|
|
578
539
|
export interface Service extends TrellisAuthClient {
|
|
579
540
|
readonly handle: ServiceHandle;
|
|
580
|
-
with<TDeps>(deps: TDeps): ServiceWithDeps<TDeps>;
|
|
581
541
|
}
|
|
582
542
|
|
|
583
|
-
export
|
|
584
|
-
readonly event: ServiceEventSurface<TDeps>;
|
|
585
|
-
readonly handle: ServiceHandle<TDeps>;
|
|
586
|
-
with<TNextDeps>(deps: TNextDeps): ServiceWithDeps<TNextDeps>;
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
export interface ServiceEventSurface<TDeps> {
|
|
543
|
+
export interface ServiceEventSurface {
|
|
590
544
|
readonly auth: {
|
|
591
545
|
connectionsClosed: {
|
|
592
546
|
publish(
|
|
593
|
-
event:
|
|
547
|
+
event: Types.AuthConnectionsClosedEvent,
|
|
594
548
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
595
549
|
prepare(
|
|
596
|
-
event:
|
|
550
|
+
event: Types.AuthConnectionsClosedEvent,
|
|
597
551
|
): Result<
|
|
598
|
-
PreparedTrellisEvent<
|
|
552
|
+
PreparedTrellisEvent<Types.AuthConnectionsClosedEvent>,
|
|
599
553
|
ValidationError | UnexpectedError
|
|
600
554
|
>;
|
|
601
555
|
listen(
|
|
602
|
-
handler:
|
|
556
|
+
handler: Types.AuthConnectionsClosedEventHandler,
|
|
603
557
|
subjectData?: Record<string, unknown>,
|
|
604
558
|
opts?: EventOpts,
|
|
605
559
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
606
560
|
};
|
|
607
561
|
connectionsKicked: {
|
|
608
562
|
publish(
|
|
609
|
-
event:
|
|
563
|
+
event: Types.AuthConnectionsKickedEvent,
|
|
610
564
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
611
565
|
prepare(
|
|
612
|
-
event:
|
|
566
|
+
event: Types.AuthConnectionsKickedEvent,
|
|
613
567
|
): Result<
|
|
614
|
-
PreparedTrellisEvent<
|
|
568
|
+
PreparedTrellisEvent<Types.AuthConnectionsKickedEvent>,
|
|
615
569
|
ValidationError | UnexpectedError
|
|
616
570
|
>;
|
|
617
571
|
listen(
|
|
618
|
-
handler:
|
|
572
|
+
handler: Types.AuthConnectionsKickedEventHandler,
|
|
619
573
|
subjectData?: Record<string, unknown>,
|
|
620
574
|
opts?: EventOpts,
|
|
621
575
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
622
576
|
};
|
|
623
577
|
connectionsOpened: {
|
|
624
578
|
publish(
|
|
625
|
-
event:
|
|
579
|
+
event: Types.AuthConnectionsOpenedEvent,
|
|
626
580
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
627
581
|
prepare(
|
|
628
|
-
event:
|
|
582
|
+
event: Types.AuthConnectionsOpenedEvent,
|
|
629
583
|
): Result<
|
|
630
|
-
PreparedTrellisEvent<
|
|
584
|
+
PreparedTrellisEvent<Types.AuthConnectionsOpenedEvent>,
|
|
631
585
|
ValidationError | UnexpectedError
|
|
632
586
|
>;
|
|
633
587
|
listen(
|
|
634
|
-
handler:
|
|
588
|
+
handler: Types.AuthConnectionsOpenedEventHandler,
|
|
635
589
|
subjectData?: Record<string, unknown>,
|
|
636
590
|
opts?: EventOpts,
|
|
637
591
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
638
592
|
};
|
|
639
593
|
deviceUserAuthoritiesApproved: {
|
|
640
594
|
publish(
|
|
641
|
-
event:
|
|
595
|
+
event: Types.AuthDeviceUserAuthoritiesApprovedEvent,
|
|
642
596
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
643
597
|
prepare(
|
|
644
|
-
event:
|
|
598
|
+
event: Types.AuthDeviceUserAuthoritiesApprovedEvent,
|
|
645
599
|
): Result<
|
|
646
|
-
PreparedTrellisEvent<
|
|
647
|
-
Omit<Types.AuthDeviceUserAuthoritiesApprovedEvent, "header">
|
|
648
|
-
>,
|
|
600
|
+
PreparedTrellisEvent<Types.AuthDeviceUserAuthoritiesApprovedEvent>,
|
|
649
601
|
ValidationError | UnexpectedError
|
|
650
602
|
>;
|
|
651
603
|
listen(
|
|
652
|
-
handler:
|
|
653
|
-
Types.AuthDeviceUserAuthoritiesApprovedEvent,
|
|
654
|
-
TDeps
|
|
655
|
-
>,
|
|
604
|
+
handler: Types.AuthDeviceUserAuthoritiesApprovedEventHandler,
|
|
656
605
|
subjectData?: Record<string, unknown>,
|
|
657
606
|
opts?: EventOpts,
|
|
658
607
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
659
608
|
};
|
|
660
609
|
deviceUserAuthoritiesRequested: {
|
|
661
610
|
publish(
|
|
662
|
-
event:
|
|
611
|
+
event: Types.AuthDeviceUserAuthoritiesRequestedEvent,
|
|
663
612
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
664
613
|
prepare(
|
|
665
|
-
event:
|
|
614
|
+
event: Types.AuthDeviceUserAuthoritiesRequestedEvent,
|
|
666
615
|
): Result<
|
|
667
|
-
PreparedTrellisEvent<
|
|
668
|
-
Omit<Types.AuthDeviceUserAuthoritiesRequestedEvent, "header">
|
|
669
|
-
>,
|
|
616
|
+
PreparedTrellisEvent<Types.AuthDeviceUserAuthoritiesRequestedEvent>,
|
|
670
617
|
ValidationError | UnexpectedError
|
|
671
618
|
>;
|
|
672
619
|
listen(
|
|
673
|
-
handler:
|
|
674
|
-
Types.AuthDeviceUserAuthoritiesRequestedEvent,
|
|
675
|
-
TDeps
|
|
676
|
-
>,
|
|
620
|
+
handler: Types.AuthDeviceUserAuthoritiesRequestedEventHandler,
|
|
677
621
|
subjectData?: Record<string, unknown>,
|
|
678
622
|
opts?: EventOpts,
|
|
679
623
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
680
624
|
};
|
|
681
625
|
deviceUserAuthoritiesResolved: {
|
|
682
626
|
publish(
|
|
683
|
-
event:
|
|
627
|
+
event: Types.AuthDeviceUserAuthoritiesResolvedEvent,
|
|
684
628
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
685
629
|
prepare(
|
|
686
|
-
event:
|
|
630
|
+
event: Types.AuthDeviceUserAuthoritiesResolvedEvent,
|
|
687
631
|
): Result<
|
|
688
|
-
PreparedTrellisEvent<
|
|
689
|
-
Omit<Types.AuthDeviceUserAuthoritiesResolvedEvent, "header">
|
|
690
|
-
>,
|
|
632
|
+
PreparedTrellisEvent<Types.AuthDeviceUserAuthoritiesResolvedEvent>,
|
|
691
633
|
ValidationError | UnexpectedError
|
|
692
634
|
>;
|
|
693
635
|
listen(
|
|
694
|
-
handler:
|
|
695
|
-
Types.AuthDeviceUserAuthoritiesResolvedEvent,
|
|
696
|
-
TDeps
|
|
697
|
-
>,
|
|
636
|
+
handler: Types.AuthDeviceUserAuthoritiesResolvedEventHandler,
|
|
698
637
|
subjectData?: Record<string, unknown>,
|
|
699
638
|
opts?: EventOpts,
|
|
700
639
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
701
640
|
};
|
|
702
641
|
deviceUserAuthoritiesReviewRequested: {
|
|
703
642
|
publish(
|
|
704
|
-
event:
|
|
705
|
-
Types.AuthDeviceUserAuthoritiesReviewRequestedEvent,
|
|
706
|
-
"header"
|
|
707
|
-
>,
|
|
643
|
+
event: Types.AuthDeviceUserAuthoritiesReviewRequestedEvent,
|
|
708
644
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
709
645
|
prepare(
|
|
710
|
-
event:
|
|
711
|
-
Types.AuthDeviceUserAuthoritiesReviewRequestedEvent,
|
|
712
|
-
"header"
|
|
713
|
-
>,
|
|
646
|
+
event: Types.AuthDeviceUserAuthoritiesReviewRequestedEvent,
|
|
714
647
|
): Result<
|
|
715
648
|
PreparedTrellisEvent<
|
|
716
|
-
|
|
649
|
+
Types.AuthDeviceUserAuthoritiesReviewRequestedEvent
|
|
717
650
|
>,
|
|
718
651
|
ValidationError | UnexpectedError
|
|
719
652
|
>;
|
|
720
653
|
listen(
|
|
721
|
-
handler:
|
|
722
|
-
Types.AuthDeviceUserAuthoritiesReviewRequestedEvent,
|
|
723
|
-
TDeps
|
|
724
|
-
>,
|
|
654
|
+
handler: Types.AuthDeviceUserAuthoritiesReviewRequestedEventHandler,
|
|
725
655
|
subjectData?: Record<string, unknown>,
|
|
726
656
|
opts?: EventOpts,
|
|
727
657
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
728
658
|
};
|
|
729
659
|
sessionsRevoked: {
|
|
730
660
|
publish(
|
|
731
|
-
event:
|
|
661
|
+
event: Types.AuthSessionsRevokedEvent,
|
|
732
662
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
733
663
|
prepare(
|
|
734
|
-
event:
|
|
664
|
+
event: Types.AuthSessionsRevokedEvent,
|
|
735
665
|
): Result<
|
|
736
|
-
PreparedTrellisEvent<
|
|
666
|
+
PreparedTrellisEvent<Types.AuthSessionsRevokedEvent>,
|
|
737
667
|
ValidationError | UnexpectedError
|
|
738
668
|
>;
|
|
739
669
|
listen(
|
|
740
|
-
handler:
|
|
670
|
+
handler: Types.AuthSessionsRevokedEventHandler,
|
|
671
|
+
subjectData?: Record<string, unknown>,
|
|
672
|
+
opts?: EventOpts,
|
|
673
|
+
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
readonly health: {
|
|
677
|
+
heartbeat: {
|
|
678
|
+
publish(
|
|
679
|
+
event: HealthSdk.HealthHeartbeatEvent,
|
|
680
|
+
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
681
|
+
prepare(
|
|
682
|
+
event: HealthSdk.HealthHeartbeatEvent,
|
|
683
|
+
): Result<
|
|
684
|
+
PreparedTrellisEvent<HealthSdk.HealthHeartbeatEvent>,
|
|
685
|
+
ValidationError | UnexpectedError
|
|
686
|
+
>;
|
|
687
|
+
listen(
|
|
688
|
+
handler: DependencyServiceEventHandler<HealthSdk.HealthHeartbeatEvent>,
|
|
741
689
|
subjectData?: Record<string, unknown>,
|
|
742
690
|
opts?: EventOpts,
|
|
743
691
|
): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
@@ -745,471 +693,165 @@ export interface ServiceEventSurface<TDeps> {
|
|
|
745
693
|
};
|
|
746
694
|
}
|
|
747
695
|
|
|
748
|
-
export interface ServiceHandle
|
|
696
|
+
export interface ServiceHandle {
|
|
749
697
|
readonly rpc: {
|
|
750
698
|
readonly auth: {
|
|
751
699
|
capabilitiesList(
|
|
752
|
-
handler:
|
|
753
|
-
Types.AuthCapabilitiesListInput,
|
|
754
|
-
Types.AuthCapabilitiesListOutput,
|
|
755
|
-
TDeps
|
|
756
|
-
>,
|
|
700
|
+
handler: Types.AuthCapabilitiesListHandler,
|
|
757
701
|
): Promise<void>;
|
|
758
702
|
capabilityGroupsDelete(
|
|
759
|
-
handler:
|
|
760
|
-
Types.AuthCapabilityGroupsDeleteInput,
|
|
761
|
-
Types.AuthCapabilityGroupsDeleteOutput,
|
|
762
|
-
TDeps
|
|
763
|
-
>,
|
|
703
|
+
handler: Types.AuthCapabilityGroupsDeleteHandler,
|
|
764
704
|
): Promise<void>;
|
|
765
705
|
capabilityGroupsGet(
|
|
766
|
-
handler:
|
|
767
|
-
Types.AuthCapabilityGroupsGetInput,
|
|
768
|
-
Types.AuthCapabilityGroupsGetOutput,
|
|
769
|
-
TDeps
|
|
770
|
-
>,
|
|
706
|
+
handler: Types.AuthCapabilityGroupsGetHandler,
|
|
771
707
|
): Promise<void>;
|
|
772
708
|
capabilityGroupsList(
|
|
773
|
-
handler:
|
|
774
|
-
Types.AuthCapabilityGroupsListInput,
|
|
775
|
-
Types.AuthCapabilityGroupsListOutput,
|
|
776
|
-
TDeps
|
|
777
|
-
>,
|
|
709
|
+
handler: Types.AuthCapabilityGroupsListHandler,
|
|
778
710
|
): Promise<void>;
|
|
779
711
|
capabilityGroupsPut(
|
|
780
|
-
handler:
|
|
781
|
-
Types.AuthCapabilityGroupsPutInput,
|
|
782
|
-
Types.AuthCapabilityGroupsPutOutput,
|
|
783
|
-
TDeps
|
|
784
|
-
>,
|
|
712
|
+
handler: Types.AuthCapabilityGroupsPutHandler,
|
|
785
713
|
): Promise<void>;
|
|
786
714
|
catalogIssuesResolve(
|
|
787
|
-
handler:
|
|
788
|
-
Types.AuthCatalogIssuesResolveInput,
|
|
789
|
-
Types.AuthCatalogIssuesResolveOutput,
|
|
790
|
-
TDeps
|
|
791
|
-
>,
|
|
792
|
-
): Promise<void>;
|
|
793
|
-
connectionsKick(
|
|
794
|
-
handler: RpcHandler<
|
|
795
|
-
Types.AuthConnectionsKickInput,
|
|
796
|
-
Types.AuthConnectionsKickOutput,
|
|
797
|
-
TDeps
|
|
798
|
-
>,
|
|
799
|
-
): Promise<void>;
|
|
800
|
-
connectionsList(
|
|
801
|
-
handler: RpcHandler<
|
|
802
|
-
Types.AuthConnectionsListInput,
|
|
803
|
-
Types.AuthConnectionsListOutput,
|
|
804
|
-
TDeps
|
|
805
|
-
>,
|
|
715
|
+
handler: Types.AuthCatalogIssuesResolveHandler,
|
|
806
716
|
): Promise<void>;
|
|
717
|
+
connectionsKick(handler: Types.AuthConnectionsKickHandler): Promise<void>;
|
|
718
|
+
connectionsList(handler: Types.AuthConnectionsListHandler): Promise<void>;
|
|
807
719
|
deploymentAuthorityAcceptMigration(
|
|
808
|
-
handler:
|
|
809
|
-
Types.AuthDeploymentAuthorityAcceptMigrationInput,
|
|
810
|
-
Types.AuthDeploymentAuthorityAcceptMigrationOutput,
|
|
811
|
-
TDeps
|
|
812
|
-
>,
|
|
720
|
+
handler: Types.AuthDeploymentAuthorityAcceptMigrationHandler,
|
|
813
721
|
): Promise<void>;
|
|
814
722
|
deploymentAuthorityAcceptUpdate(
|
|
815
|
-
handler:
|
|
816
|
-
Types.AuthDeploymentAuthorityAcceptUpdateInput,
|
|
817
|
-
Types.AuthDeploymentAuthorityAcceptUpdateOutput,
|
|
818
|
-
TDeps
|
|
819
|
-
>,
|
|
723
|
+
handler: Types.AuthDeploymentAuthorityAcceptUpdateHandler,
|
|
820
724
|
): Promise<void>;
|
|
821
725
|
deploymentAuthorityGet(
|
|
822
|
-
handler:
|
|
823
|
-
Types.AuthDeploymentAuthorityGetInput,
|
|
824
|
-
Types.AuthDeploymentAuthorityGetOutput,
|
|
825
|
-
TDeps
|
|
826
|
-
>,
|
|
726
|
+
handler: Types.AuthDeploymentAuthorityGetHandler,
|
|
827
727
|
): Promise<void>;
|
|
828
728
|
deploymentAuthorityGrantOverridesList(
|
|
829
|
-
handler:
|
|
830
|
-
Types.AuthDeploymentAuthorityGrantOverridesListInput,
|
|
831
|
-
Types.AuthDeploymentAuthorityGrantOverridesListOutput,
|
|
832
|
-
TDeps
|
|
833
|
-
>,
|
|
729
|
+
handler: Types.AuthDeploymentAuthorityGrantOverridesListHandler,
|
|
834
730
|
): Promise<void>;
|
|
835
731
|
deploymentAuthorityGrantOverridesPut(
|
|
836
|
-
handler:
|
|
837
|
-
Types.AuthDeploymentAuthorityGrantOverridesPutInput,
|
|
838
|
-
Types.AuthDeploymentAuthorityGrantOverridesPutOutput,
|
|
839
|
-
TDeps
|
|
840
|
-
>,
|
|
732
|
+
handler: Types.AuthDeploymentAuthorityGrantOverridesPutHandler,
|
|
841
733
|
): Promise<void>;
|
|
842
734
|
deploymentAuthorityGrantOverridesRemove(
|
|
843
|
-
handler:
|
|
844
|
-
Types.AuthDeploymentAuthorityGrantOverridesRemoveInput,
|
|
845
|
-
Types.AuthDeploymentAuthorityGrantOverridesRemoveOutput,
|
|
846
|
-
TDeps
|
|
847
|
-
>,
|
|
735
|
+
handler: Types.AuthDeploymentAuthorityGrantOverridesRemoveHandler,
|
|
848
736
|
): Promise<void>;
|
|
849
737
|
deploymentAuthorityList(
|
|
850
|
-
handler:
|
|
851
|
-
Types.AuthDeploymentAuthorityListInput,
|
|
852
|
-
Types.AuthDeploymentAuthorityListOutput,
|
|
853
|
-
TDeps
|
|
854
|
-
>,
|
|
738
|
+
handler: Types.AuthDeploymentAuthorityListHandler,
|
|
855
739
|
): Promise<void>;
|
|
856
740
|
deploymentAuthorityPlan(
|
|
857
|
-
handler:
|
|
858
|
-
Types.AuthDeploymentAuthorityPlanInput,
|
|
859
|
-
Types.AuthDeploymentAuthorityPlanOutput,
|
|
860
|
-
TDeps
|
|
861
|
-
>,
|
|
741
|
+
handler: Types.AuthDeploymentAuthorityPlanHandler,
|
|
862
742
|
): Promise<void>;
|
|
863
743
|
deploymentAuthorityPlansGet(
|
|
864
|
-
handler:
|
|
865
|
-
Types.AuthDeploymentAuthorityPlansGetInput,
|
|
866
|
-
Types.AuthDeploymentAuthorityPlansGetOutput,
|
|
867
|
-
TDeps
|
|
868
|
-
>,
|
|
744
|
+
handler: Types.AuthDeploymentAuthorityPlansGetHandler,
|
|
869
745
|
): Promise<void>;
|
|
870
746
|
deploymentAuthorityPlansList(
|
|
871
|
-
handler:
|
|
872
|
-
Types.AuthDeploymentAuthorityPlansListInput,
|
|
873
|
-
Types.AuthDeploymentAuthorityPlansListOutput,
|
|
874
|
-
TDeps
|
|
875
|
-
>,
|
|
747
|
+
handler: Types.AuthDeploymentAuthorityPlansListHandler,
|
|
876
748
|
): Promise<void>;
|
|
877
749
|
deploymentAuthorityReconcile(
|
|
878
|
-
handler:
|
|
879
|
-
Types.AuthDeploymentAuthorityReconcileInput,
|
|
880
|
-
Types.AuthDeploymentAuthorityReconcileOutput,
|
|
881
|
-
TDeps
|
|
882
|
-
>,
|
|
750
|
+
handler: Types.AuthDeploymentAuthorityReconcileHandler,
|
|
883
751
|
): Promise<void>;
|
|
884
752
|
deploymentAuthorityReject(
|
|
885
|
-
handler:
|
|
886
|
-
Types.AuthDeploymentAuthorityRejectInput,
|
|
887
|
-
Types.AuthDeploymentAuthorityRejectOutput,
|
|
888
|
-
TDeps
|
|
889
|
-
>,
|
|
753
|
+
handler: Types.AuthDeploymentAuthorityRejectHandler,
|
|
890
754
|
): Promise<void>;
|
|
891
755
|
deploymentsCreate(
|
|
892
|
-
handler:
|
|
893
|
-
Types.AuthDeploymentsCreateInput,
|
|
894
|
-
Types.AuthDeploymentsCreateOutput,
|
|
895
|
-
TDeps
|
|
896
|
-
>,
|
|
756
|
+
handler: Types.AuthDeploymentsCreateHandler,
|
|
897
757
|
): Promise<void>;
|
|
898
758
|
deploymentsDisable(
|
|
899
|
-
handler:
|
|
900
|
-
Types.AuthDeploymentsDisableInput,
|
|
901
|
-
Types.AuthDeploymentsDisableOutput,
|
|
902
|
-
TDeps
|
|
903
|
-
>,
|
|
759
|
+
handler: Types.AuthDeploymentsDisableHandler,
|
|
904
760
|
): Promise<void>;
|
|
905
761
|
deploymentsEnable(
|
|
906
|
-
handler:
|
|
907
|
-
Types.AuthDeploymentsEnableInput,
|
|
908
|
-
Types.AuthDeploymentsEnableOutput,
|
|
909
|
-
TDeps
|
|
910
|
-
>,
|
|
911
|
-
): Promise<void>;
|
|
912
|
-
deploymentsList(
|
|
913
|
-
handler: RpcHandler<
|
|
914
|
-
Types.AuthDeploymentsListInput,
|
|
915
|
-
Types.AuthDeploymentsListOutput,
|
|
916
|
-
TDeps
|
|
917
|
-
>,
|
|
762
|
+
handler: Types.AuthDeploymentsEnableHandler,
|
|
918
763
|
): Promise<void>;
|
|
764
|
+
deploymentsList(handler: Types.AuthDeploymentsListHandler): Promise<void>;
|
|
919
765
|
deploymentsRemove(
|
|
920
|
-
handler:
|
|
921
|
-
Types.AuthDeploymentsRemoveInput,
|
|
922
|
-
Types.AuthDeploymentsRemoveOutput,
|
|
923
|
-
TDeps
|
|
924
|
-
>,
|
|
766
|
+
handler: Types.AuthDeploymentsRemoveHandler,
|
|
925
767
|
): Promise<void>;
|
|
926
768
|
deviceUserAuthoritiesList(
|
|
927
|
-
handler:
|
|
928
|
-
Types.AuthDeviceUserAuthoritiesListInput,
|
|
929
|
-
Types.AuthDeviceUserAuthoritiesListOutput,
|
|
930
|
-
TDeps
|
|
931
|
-
>,
|
|
769
|
+
handler: Types.AuthDeviceUserAuthoritiesListHandler,
|
|
932
770
|
): Promise<void>;
|
|
933
771
|
deviceUserAuthoritiesReviewsDecide(
|
|
934
|
-
handler:
|
|
935
|
-
Types.AuthDeviceUserAuthoritiesReviewsDecideInput,
|
|
936
|
-
Types.AuthDeviceUserAuthoritiesReviewsDecideOutput,
|
|
937
|
-
TDeps
|
|
938
|
-
>,
|
|
772
|
+
handler: Types.AuthDeviceUserAuthoritiesReviewsDecideHandler,
|
|
939
773
|
): Promise<void>;
|
|
940
774
|
deviceUserAuthoritiesReviewsList(
|
|
941
|
-
handler:
|
|
942
|
-
Types.AuthDeviceUserAuthoritiesReviewsListInput,
|
|
943
|
-
Types.AuthDeviceUserAuthoritiesReviewsListOutput,
|
|
944
|
-
TDeps
|
|
945
|
-
>,
|
|
775
|
+
handler: Types.AuthDeviceUserAuthoritiesReviewsListHandler,
|
|
946
776
|
): Promise<void>;
|
|
947
777
|
deviceUserAuthoritiesRevoke(
|
|
948
|
-
handler:
|
|
949
|
-
Types.AuthDeviceUserAuthoritiesRevokeInput,
|
|
950
|
-
Types.AuthDeviceUserAuthoritiesRevokeOutput,
|
|
951
|
-
TDeps
|
|
952
|
-
>,
|
|
778
|
+
handler: Types.AuthDeviceUserAuthoritiesRevokeHandler,
|
|
953
779
|
): Promise<void>;
|
|
954
780
|
devicesConnectInfoGet(
|
|
955
|
-
handler:
|
|
956
|
-
Types.AuthDevicesConnectInfoGetInput,
|
|
957
|
-
Types.AuthDevicesConnectInfoGetOutput,
|
|
958
|
-
TDeps
|
|
959
|
-
>,
|
|
960
|
-
): Promise<void>;
|
|
961
|
-
devicesDisable(
|
|
962
|
-
handler: RpcHandler<
|
|
963
|
-
Types.AuthDevicesDisableInput,
|
|
964
|
-
Types.AuthDevicesDisableOutput,
|
|
965
|
-
TDeps
|
|
966
|
-
>,
|
|
967
|
-
): Promise<void>;
|
|
968
|
-
devicesEnable(
|
|
969
|
-
handler: RpcHandler<
|
|
970
|
-
Types.AuthDevicesEnableInput,
|
|
971
|
-
Types.AuthDevicesEnableOutput,
|
|
972
|
-
TDeps
|
|
973
|
-
>,
|
|
974
|
-
): Promise<void>;
|
|
975
|
-
devicesList(
|
|
976
|
-
handler: RpcHandler<
|
|
977
|
-
Types.AuthDevicesListInput,
|
|
978
|
-
Types.AuthDevicesListOutput,
|
|
979
|
-
TDeps
|
|
980
|
-
>,
|
|
781
|
+
handler: Types.AuthDevicesConnectInfoGetHandler,
|
|
981
782
|
): Promise<void>;
|
|
783
|
+
devicesDisable(handler: Types.AuthDevicesDisableHandler): Promise<void>;
|
|
784
|
+
devicesEnable(handler: Types.AuthDevicesEnableHandler): Promise<void>;
|
|
785
|
+
devicesList(handler: Types.AuthDevicesListHandler): Promise<void>;
|
|
982
786
|
devicesProvision(
|
|
983
|
-
handler:
|
|
984
|
-
Types.AuthDevicesProvisionInput,
|
|
985
|
-
Types.AuthDevicesProvisionOutput,
|
|
986
|
-
TDeps
|
|
987
|
-
>,
|
|
988
|
-
): Promise<void>;
|
|
989
|
-
devicesRemove(
|
|
990
|
-
handler: RpcHandler<
|
|
991
|
-
Types.AuthDevicesRemoveInput,
|
|
992
|
-
Types.AuthDevicesRemoveOutput,
|
|
993
|
-
TDeps
|
|
994
|
-
>,
|
|
995
|
-
): Promise<void>;
|
|
996
|
-
health(
|
|
997
|
-
handler: RpcHandler<
|
|
998
|
-
Types.AuthHealthInput,
|
|
999
|
-
Types.AuthHealthOutput,
|
|
1000
|
-
TDeps
|
|
1001
|
-
>,
|
|
1002
|
-
): Promise<void>;
|
|
1003
|
-
identitiesList(
|
|
1004
|
-
handler: RpcHandler<
|
|
1005
|
-
Types.AuthIdentitiesListInput,
|
|
1006
|
-
Types.AuthIdentitiesListOutput,
|
|
1007
|
-
TDeps
|
|
1008
|
-
>,
|
|
787
|
+
handler: Types.AuthDevicesProvisionHandler,
|
|
1009
788
|
): Promise<void>;
|
|
789
|
+
devicesRemove(handler: Types.AuthDevicesRemoveHandler): Promise<void>;
|
|
790
|
+
health(handler: Types.AuthHealthHandler): Promise<void>;
|
|
791
|
+
identitiesList(handler: Types.AuthIdentitiesListHandler): Promise<void>;
|
|
1010
792
|
identityGrantsList(
|
|
1011
|
-
handler:
|
|
1012
|
-
Types.AuthIdentityGrantsListInput,
|
|
1013
|
-
Types.AuthIdentityGrantsListOutput,
|
|
1014
|
-
TDeps
|
|
1015
|
-
>,
|
|
793
|
+
handler: Types.AuthIdentityGrantsListHandler,
|
|
1016
794
|
): Promise<void>;
|
|
1017
795
|
identityGrantsRevoke(
|
|
1018
|
-
handler:
|
|
1019
|
-
Types.AuthIdentityGrantsRevokeInput,
|
|
1020
|
-
Types.AuthIdentityGrantsRevokeOutput,
|
|
1021
|
-
TDeps
|
|
1022
|
-
>,
|
|
1023
|
-
): Promise<void>;
|
|
1024
|
-
portalsGet(
|
|
1025
|
-
handler: RpcHandler<
|
|
1026
|
-
Types.AuthPortalsGetInput,
|
|
1027
|
-
Types.AuthPortalsGetOutput,
|
|
1028
|
-
TDeps
|
|
1029
|
-
>,
|
|
1030
|
-
): Promise<void>;
|
|
1031
|
-
portalsList(
|
|
1032
|
-
handler: RpcHandler<
|
|
1033
|
-
Types.AuthPortalsListInput,
|
|
1034
|
-
Types.AuthPortalsListOutput,
|
|
1035
|
-
TDeps
|
|
1036
|
-
>,
|
|
796
|
+
handler: Types.AuthIdentityGrantsRevokeHandler,
|
|
1037
797
|
): Promise<void>;
|
|
798
|
+
portalsGet(handler: Types.AuthPortalsGetHandler): Promise<void>;
|
|
799
|
+
portalsList(handler: Types.AuthPortalsListHandler): Promise<void>;
|
|
1038
800
|
portalsLoginSettingsGet(
|
|
1039
|
-
handler:
|
|
1040
|
-
Types.AuthPortalsLoginSettingsGetInput,
|
|
1041
|
-
Types.AuthPortalsLoginSettingsGetOutput,
|
|
1042
|
-
TDeps
|
|
1043
|
-
>,
|
|
801
|
+
handler: Types.AuthPortalsLoginSettingsGetHandler,
|
|
1044
802
|
): Promise<void>;
|
|
1045
803
|
portalsLoginSettingsUpdate(
|
|
1046
|
-
handler:
|
|
1047
|
-
Types.AuthPortalsLoginSettingsUpdateInput,
|
|
1048
|
-
Types.AuthPortalsLoginSettingsUpdateOutput,
|
|
1049
|
-
TDeps
|
|
1050
|
-
>,
|
|
1051
|
-
): Promise<void>;
|
|
1052
|
-
portalsPut(
|
|
1053
|
-
handler: RpcHandler<
|
|
1054
|
-
Types.AuthPortalsPutInput,
|
|
1055
|
-
Types.AuthPortalsPutOutput,
|
|
1056
|
-
TDeps
|
|
1057
|
-
>,
|
|
1058
|
-
): Promise<void>;
|
|
1059
|
-
portalsRemove(
|
|
1060
|
-
handler: RpcHandler<
|
|
1061
|
-
Types.AuthPortalsRemoveInput,
|
|
1062
|
-
Types.AuthPortalsRemoveOutput,
|
|
1063
|
-
TDeps
|
|
1064
|
-
>,
|
|
804
|
+
handler: Types.AuthPortalsLoginSettingsUpdateHandler,
|
|
1065
805
|
): Promise<void>;
|
|
806
|
+
portalsPut(handler: Types.AuthPortalsPutHandler): Promise<void>;
|
|
807
|
+
portalsRemove(handler: Types.AuthPortalsRemoveHandler): Promise<void>;
|
|
1066
808
|
portalsRoutesPut(
|
|
1067
|
-
handler:
|
|
1068
|
-
Types.AuthPortalsRoutesPutInput,
|
|
1069
|
-
Types.AuthPortalsRoutesPutOutput,
|
|
1070
|
-
TDeps
|
|
1071
|
-
>,
|
|
809
|
+
handler: Types.AuthPortalsRoutesPutHandler,
|
|
1072
810
|
): Promise<void>;
|
|
1073
811
|
portalsRoutesRemove(
|
|
1074
|
-
handler:
|
|
1075
|
-
Types.AuthPortalsRoutesRemoveInput,
|
|
1076
|
-
Types.AuthPortalsRoutesRemoveOutput,
|
|
1077
|
-
TDeps
|
|
1078
|
-
>,
|
|
812
|
+
handler: Types.AuthPortalsRoutesRemoveHandler,
|
|
1079
813
|
): Promise<void>;
|
|
1080
814
|
requestsValidate(
|
|
1081
|
-
handler:
|
|
1082
|
-
Types.AuthRequestsValidateInput,
|
|
1083
|
-
Types.AuthRequestsValidateOutput,
|
|
1084
|
-
TDeps
|
|
1085
|
-
>,
|
|
815
|
+
handler: Types.AuthRequestsValidateHandler,
|
|
1086
816
|
): Promise<void>;
|
|
1087
817
|
serviceInstancesDisable(
|
|
1088
|
-
handler:
|
|
1089
|
-
Types.AuthServiceInstancesDisableInput,
|
|
1090
|
-
Types.AuthServiceInstancesDisableOutput,
|
|
1091
|
-
TDeps
|
|
1092
|
-
>,
|
|
818
|
+
handler: Types.AuthServiceInstancesDisableHandler,
|
|
1093
819
|
): Promise<void>;
|
|
1094
820
|
serviceInstancesEnable(
|
|
1095
|
-
handler:
|
|
1096
|
-
Types.AuthServiceInstancesEnableInput,
|
|
1097
|
-
Types.AuthServiceInstancesEnableOutput,
|
|
1098
|
-
TDeps
|
|
1099
|
-
>,
|
|
821
|
+
handler: Types.AuthServiceInstancesEnableHandler,
|
|
1100
822
|
): Promise<void>;
|
|
1101
823
|
serviceInstancesList(
|
|
1102
|
-
handler:
|
|
1103
|
-
Types.AuthServiceInstancesListInput,
|
|
1104
|
-
Types.AuthServiceInstancesListOutput,
|
|
1105
|
-
TDeps
|
|
1106
|
-
>,
|
|
824
|
+
handler: Types.AuthServiceInstancesListHandler,
|
|
1107
825
|
): Promise<void>;
|
|
1108
826
|
serviceInstancesProvision(
|
|
1109
|
-
handler:
|
|
1110
|
-
Types.AuthServiceInstancesProvisionInput,
|
|
1111
|
-
Types.AuthServiceInstancesProvisionOutput,
|
|
1112
|
-
TDeps
|
|
1113
|
-
>,
|
|
827
|
+
handler: Types.AuthServiceInstancesProvisionHandler,
|
|
1114
828
|
): Promise<void>;
|
|
1115
829
|
serviceInstancesRemove(
|
|
1116
|
-
handler:
|
|
1117
|
-
Types.AuthServiceInstancesRemoveInput,
|
|
1118
|
-
Types.AuthServiceInstancesRemoveOutput,
|
|
1119
|
-
TDeps
|
|
1120
|
-
>,
|
|
1121
|
-
): Promise<void>;
|
|
1122
|
-
sessionsList(
|
|
1123
|
-
handler: RpcHandler<
|
|
1124
|
-
Types.AuthSessionsListInput,
|
|
1125
|
-
Types.AuthSessionsListOutput,
|
|
1126
|
-
TDeps
|
|
1127
|
-
>,
|
|
1128
|
-
): Promise<void>;
|
|
1129
|
-
sessionsLogout(
|
|
1130
|
-
handler: RpcHandler<
|
|
1131
|
-
Types.AuthSessionsLogoutInput,
|
|
1132
|
-
Types.AuthSessionsLogoutOutput,
|
|
1133
|
-
TDeps
|
|
1134
|
-
>,
|
|
1135
|
-
): Promise<void>;
|
|
1136
|
-
sessionsMe(
|
|
1137
|
-
handler: RpcHandler<
|
|
1138
|
-
Types.AuthSessionsMeInput,
|
|
1139
|
-
Types.AuthSessionsMeOutput,
|
|
1140
|
-
TDeps
|
|
1141
|
-
>,
|
|
1142
|
-
): Promise<void>;
|
|
1143
|
-
sessionsRevoke(
|
|
1144
|
-
handler: RpcHandler<
|
|
1145
|
-
Types.AuthSessionsRevokeInput,
|
|
1146
|
-
Types.AuthSessionsRevokeOutput,
|
|
1147
|
-
TDeps
|
|
1148
|
-
>,
|
|
830
|
+
handler: Types.AuthServiceInstancesRemoveHandler,
|
|
1149
831
|
): Promise<void>;
|
|
832
|
+
sessionsList(handler: Types.AuthSessionsListHandler): Promise<void>;
|
|
833
|
+
sessionsLogout(handler: Types.AuthSessionsLogoutHandler): Promise<void>;
|
|
834
|
+
sessionsMe(handler: Types.AuthSessionsMeHandler): Promise<void>;
|
|
835
|
+
sessionsRevoke(handler: Types.AuthSessionsRevokeHandler): Promise<void>;
|
|
1150
836
|
userIdentitiesList(
|
|
1151
|
-
handler:
|
|
1152
|
-
Types.AuthUserIdentitiesListInput,
|
|
1153
|
-
Types.AuthUserIdentitiesListOutput,
|
|
1154
|
-
TDeps
|
|
1155
|
-
>,
|
|
837
|
+
handler: Types.AuthUserIdentitiesListHandler,
|
|
1156
838
|
): Promise<void>;
|
|
1157
839
|
userIdentitiesUnlink(
|
|
1158
|
-
handler:
|
|
1159
|
-
Types.AuthUserIdentitiesUnlinkInput,
|
|
1160
|
-
Types.AuthUserIdentitiesUnlinkOutput,
|
|
1161
|
-
TDeps
|
|
1162
|
-
>,
|
|
1163
|
-
): Promise<void>;
|
|
1164
|
-
usersCreate(
|
|
1165
|
-
handler: RpcHandler<
|
|
1166
|
-
Types.AuthUsersCreateInput,
|
|
1167
|
-
Types.AuthUsersCreateOutput,
|
|
1168
|
-
TDeps
|
|
1169
|
-
>,
|
|
1170
|
-
): Promise<void>;
|
|
1171
|
-
usersGet(
|
|
1172
|
-
handler: RpcHandler<
|
|
1173
|
-
Types.AuthUsersGetInput,
|
|
1174
|
-
Types.AuthUsersGetOutput,
|
|
1175
|
-
TDeps
|
|
1176
|
-
>,
|
|
840
|
+
handler: Types.AuthUserIdentitiesUnlinkHandler,
|
|
1177
841
|
): Promise<void>;
|
|
842
|
+
usersCreate(handler: Types.AuthUsersCreateHandler): Promise<void>;
|
|
843
|
+
usersGet(handler: Types.AuthUsersGetHandler): Promise<void>;
|
|
1178
844
|
usersIdentityLinkCreate(
|
|
1179
|
-
handler:
|
|
1180
|
-
Types.AuthUsersIdentityLinkCreateInput,
|
|
1181
|
-
Types.AuthUsersIdentityLinkCreateOutput,
|
|
1182
|
-
TDeps
|
|
1183
|
-
>,
|
|
1184
|
-
): Promise<void>;
|
|
1185
|
-
usersList(
|
|
1186
|
-
handler: RpcHandler<
|
|
1187
|
-
Types.AuthUsersListInput,
|
|
1188
|
-
Types.AuthUsersListOutput,
|
|
1189
|
-
TDeps
|
|
1190
|
-
>,
|
|
845
|
+
handler: Types.AuthUsersIdentityLinkCreateHandler,
|
|
1191
846
|
): Promise<void>;
|
|
847
|
+
usersList(handler: Types.AuthUsersListHandler): Promise<void>;
|
|
1192
848
|
usersPasswordChange(
|
|
1193
|
-
handler:
|
|
1194
|
-
Types.AuthUsersPasswordChangeInput,
|
|
1195
|
-
Types.AuthUsersPasswordChangeOutput,
|
|
1196
|
-
TDeps
|
|
1197
|
-
>,
|
|
849
|
+
handler: Types.AuthUsersPasswordChangeHandler,
|
|
1198
850
|
): Promise<void>;
|
|
1199
851
|
usersPasswordResetCreate(
|
|
1200
|
-
handler:
|
|
1201
|
-
Types.AuthUsersPasswordResetCreateInput,
|
|
1202
|
-
Types.AuthUsersPasswordResetCreateOutput,
|
|
1203
|
-
TDeps
|
|
1204
|
-
>,
|
|
1205
|
-
): Promise<void>;
|
|
1206
|
-
usersUpdate(
|
|
1207
|
-
handler: RpcHandler<
|
|
1208
|
-
Types.AuthUsersUpdateInput,
|
|
1209
|
-
Types.AuthUsersUpdateOutput,
|
|
1210
|
-
TDeps
|
|
1211
|
-
>,
|
|
852
|
+
handler: Types.AuthUsersPasswordResetCreateHandler,
|
|
1212
853
|
): Promise<void>;
|
|
854
|
+
usersUpdate(handler: Types.AuthUsersUpdateHandler): Promise<void>;
|
|
1213
855
|
};
|
|
1214
856
|
};
|
|
1215
857
|
readonly feed: {};
|
|
@@ -1217,13 +859,7 @@ export interface ServiceHandle<TDeps = undefined> {
|
|
|
1217
859
|
readonly auth: {
|
|
1218
860
|
deviceUserAuthoritiesResolve:
|
|
1219
861
|
& ((
|
|
1220
|
-
handler:
|
|
1221
|
-
Types.AuthDeviceUserAuthoritiesResolveInput,
|
|
1222
|
-
Types.AuthDeviceUserAuthoritiesResolveProgress,
|
|
1223
|
-
Types.AuthDeviceUserAuthoritiesResolveOutput,
|
|
1224
|
-
{},
|
|
1225
|
-
TDeps
|
|
1226
|
-
>,
|
|
862
|
+
handler: Types.AuthDeviceUserAuthoritiesResolveOperationHandler,
|
|
1227
863
|
) => Promise<void>)
|
|
1228
864
|
& {
|
|
1229
865
|
accept(
|
|
@@ -1231,7 +867,8 @@ export interface ServiceHandle<TDeps = undefined> {
|
|
|
1231
867
|
): AsyncResult<
|
|
1232
868
|
AcceptedOperation<
|
|
1233
869
|
Types.AuthDeviceUserAuthoritiesResolveProgress,
|
|
1234
|
-
Types.AuthDeviceUserAuthoritiesResolveOutput
|
|
870
|
+
Types.AuthDeviceUserAuthoritiesResolveOutput,
|
|
871
|
+
Types.AuthDeviceUserAuthoritiesResolveOperationHandlerError
|
|
1235
872
|
>,
|
|
1236
873
|
UnexpectedError
|
|
1237
874
|
>;
|
|
@@ -1240,7 +877,8 @@ export interface ServiceHandle<TDeps = undefined> {
|
|
|
1240
877
|
): AsyncResult<
|
|
1241
878
|
OperationRuntimeHandle<
|
|
1242
879
|
Types.AuthDeviceUserAuthoritiesResolveProgress,
|
|
1243
|
-
Types.AuthDeviceUserAuthoritiesResolveOutput
|
|
880
|
+
Types.AuthDeviceUserAuthoritiesResolveOutput,
|
|
881
|
+
Types.AuthDeviceUserAuthoritiesResolveOperationHandlerError
|
|
1244
882
|
>,
|
|
1245
883
|
BaseError
|
|
1246
884
|
>;
|