@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
|
@@ -154,7 +154,7 @@ export const OWNED_API = {
|
|
|
154
154
|
output: schema<Types.AuthCapabilitiesListOutput>(
|
|
155
155
|
AuthCapabilitiesListResponseSchema,
|
|
156
156
|
),
|
|
157
|
-
callerCapabilities: ["admin"],
|
|
157
|
+
callerCapabilities: ["admin"] as const,
|
|
158
158
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
159
159
|
declaredErrorTypes: [
|
|
160
160
|
"AuthError",
|
|
@@ -170,7 +170,7 @@ export const OWNED_API = {
|
|
|
170
170
|
output: schema<Types.AuthCapabilityGroupsDeleteOutput>(
|
|
171
171
|
AuthCapabilityGroupsDeleteResponseSchema,
|
|
172
172
|
),
|
|
173
|
-
callerCapabilities: ["admin"],
|
|
173
|
+
callerCapabilities: ["admin"] as const,
|
|
174
174
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
175
175
|
declaredErrorTypes: [
|
|
176
176
|
"AuthError",
|
|
@@ -186,7 +186,7 @@ export const OWNED_API = {
|
|
|
186
186
|
output: schema<Types.AuthCapabilityGroupsGetOutput>(
|
|
187
187
|
AuthCapabilityGroupsGetResponseSchema,
|
|
188
188
|
),
|
|
189
|
-
callerCapabilities: ["admin"],
|
|
189
|
+
callerCapabilities: ["admin"] as const,
|
|
190
190
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
191
191
|
declaredErrorTypes: [
|
|
192
192
|
"AuthError",
|
|
@@ -202,7 +202,7 @@ export const OWNED_API = {
|
|
|
202
202
|
output: schema<Types.AuthCapabilityGroupsListOutput>(
|
|
203
203
|
AuthCapabilityGroupsListResponseSchema,
|
|
204
204
|
),
|
|
205
|
-
callerCapabilities: ["admin"],
|
|
205
|
+
callerCapabilities: ["admin"] as const,
|
|
206
206
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
207
207
|
declaredErrorTypes: [
|
|
208
208
|
"AuthError",
|
|
@@ -218,7 +218,7 @@ export const OWNED_API = {
|
|
|
218
218
|
output: schema<Types.AuthCapabilityGroupsPutOutput>(
|
|
219
219
|
AuthCapabilityGroupsPutResponseSchema,
|
|
220
220
|
),
|
|
221
|
-
callerCapabilities: ["admin"],
|
|
221
|
+
callerCapabilities: ["admin"] as const,
|
|
222
222
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
223
223
|
declaredErrorTypes: [
|
|
224
224
|
"AuthError",
|
|
@@ -234,7 +234,7 @@ export const OWNED_API = {
|
|
|
234
234
|
output: schema<Types.AuthCatalogIssuesResolveOutput>(
|
|
235
235
|
AuthCatalogIssuesResolveResponseSchema,
|
|
236
236
|
),
|
|
237
|
-
callerCapabilities: ["admin"],
|
|
237
|
+
callerCapabilities: ["admin"] as const,
|
|
238
238
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
239
239
|
declaredErrorTypes: [
|
|
240
240
|
"AuthError",
|
|
@@ -250,7 +250,7 @@ export const OWNED_API = {
|
|
|
250
250
|
output: schema<Types.AuthConnectionsKickOutput>(
|
|
251
251
|
AuthConnectionsKickResponseSchema,
|
|
252
252
|
),
|
|
253
|
-
callerCapabilities: ["admin"],
|
|
253
|
+
callerCapabilities: ["admin"] as const,
|
|
254
254
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
255
255
|
declaredErrorTypes: [
|
|
256
256
|
"AuthError",
|
|
@@ -266,7 +266,7 @@ export const OWNED_API = {
|
|
|
266
266
|
output: schema<Types.AuthConnectionsListOutput>(
|
|
267
267
|
AuthConnectionsListResponseSchema,
|
|
268
268
|
),
|
|
269
|
-
callerCapabilities: ["admin"],
|
|
269
|
+
callerCapabilities: ["admin"] as const,
|
|
270
270
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
271
271
|
declaredErrorTypes: [
|
|
272
272
|
"AuthError",
|
|
@@ -282,7 +282,7 @@ export const OWNED_API = {
|
|
|
282
282
|
output: schema<Types.AuthDeploymentAuthorityAcceptMigrationOutput>(
|
|
283
283
|
AuthDeploymentAuthorityAcceptResponseSchema,
|
|
284
284
|
),
|
|
285
|
-
callerCapabilities: ["admin"],
|
|
285
|
+
callerCapabilities: ["admin"] as const,
|
|
286
286
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
287
287
|
declaredErrorTypes: [
|
|
288
288
|
"AuthError",
|
|
@@ -298,7 +298,7 @@ export const OWNED_API = {
|
|
|
298
298
|
output: schema<Types.AuthDeploymentAuthorityAcceptUpdateOutput>(
|
|
299
299
|
AuthDeploymentAuthorityAcceptResponseSchema,
|
|
300
300
|
),
|
|
301
|
-
callerCapabilities: ["admin"],
|
|
301
|
+
callerCapabilities: ["admin"] as const,
|
|
302
302
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
303
303
|
declaredErrorTypes: [
|
|
304
304
|
"AuthError",
|
|
@@ -314,7 +314,7 @@ export const OWNED_API = {
|
|
|
314
314
|
output: schema<Types.AuthDeploymentAuthorityGetOutput>(
|
|
315
315
|
AuthDeploymentAuthorityGetResponseSchema,
|
|
316
316
|
),
|
|
317
|
-
callerCapabilities: ["admin"],
|
|
317
|
+
callerCapabilities: ["admin"] as const,
|
|
318
318
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
319
319
|
declaredErrorTypes: [
|
|
320
320
|
"AuthError",
|
|
@@ -330,7 +330,7 @@ export const OWNED_API = {
|
|
|
330
330
|
output: schema<Types.AuthDeploymentAuthorityGrantOverridesListOutput>(
|
|
331
331
|
AuthDeploymentAuthorityGrantOverridesListResponseSchema,
|
|
332
332
|
),
|
|
333
|
-
callerCapabilities: ["admin"],
|
|
333
|
+
callerCapabilities: ["admin"] as const,
|
|
334
334
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
335
335
|
declaredErrorTypes: [
|
|
336
336
|
"AuthError",
|
|
@@ -346,7 +346,7 @@ export const OWNED_API = {
|
|
|
346
346
|
output: schema<Types.AuthDeploymentAuthorityGrantOverridesPutOutput>(
|
|
347
347
|
AuthDeploymentAuthorityGrantOverridesResponseSchema,
|
|
348
348
|
),
|
|
349
|
-
callerCapabilities: ["admin"],
|
|
349
|
+
callerCapabilities: ["admin"] as const,
|
|
350
350
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
351
351
|
declaredErrorTypes: [
|
|
352
352
|
"AuthError",
|
|
@@ -362,7 +362,7 @@ export const OWNED_API = {
|
|
|
362
362
|
output: schema<Types.AuthDeploymentAuthorityGrantOverridesRemoveOutput>(
|
|
363
363
|
AuthDeploymentAuthorityGrantOverridesResponseSchema,
|
|
364
364
|
),
|
|
365
|
-
callerCapabilities: ["admin"],
|
|
365
|
+
callerCapabilities: ["admin"] as const,
|
|
366
366
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
367
367
|
declaredErrorTypes: [
|
|
368
368
|
"AuthError",
|
|
@@ -378,7 +378,7 @@ export const OWNED_API = {
|
|
|
378
378
|
output: schema<Types.AuthDeploymentAuthorityListOutput>(
|
|
379
379
|
AuthDeploymentAuthorityListResponseSchema,
|
|
380
380
|
),
|
|
381
|
-
callerCapabilities: ["admin"],
|
|
381
|
+
callerCapabilities: ["admin"] as const,
|
|
382
382
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
383
383
|
declaredErrorTypes: [
|
|
384
384
|
"AuthError",
|
|
@@ -394,7 +394,7 @@ export const OWNED_API = {
|
|
|
394
394
|
output: schema<Types.AuthDeploymentAuthorityPlanOutput>(
|
|
395
395
|
AuthDeploymentAuthorityPlanResponseSchema,
|
|
396
396
|
),
|
|
397
|
-
callerCapabilities: ["admin"],
|
|
397
|
+
callerCapabilities: ["admin"] as const,
|
|
398
398
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
399
399
|
declaredErrorTypes: [
|
|
400
400
|
"AuthError",
|
|
@@ -410,7 +410,7 @@ export const OWNED_API = {
|
|
|
410
410
|
output: schema<Types.AuthDeploymentAuthorityPlansGetOutput>(
|
|
411
411
|
AuthDeploymentAuthorityPlansGetResponseSchema,
|
|
412
412
|
),
|
|
413
|
-
callerCapabilities: ["admin"],
|
|
413
|
+
callerCapabilities: ["admin"] as const,
|
|
414
414
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
415
415
|
declaredErrorTypes: [
|
|
416
416
|
"AuthError",
|
|
@@ -426,7 +426,7 @@ export const OWNED_API = {
|
|
|
426
426
|
output: schema<Types.AuthDeploymentAuthorityPlansListOutput>(
|
|
427
427
|
AuthDeploymentAuthorityPlansListResponseSchema,
|
|
428
428
|
),
|
|
429
|
-
callerCapabilities: ["admin"],
|
|
429
|
+
callerCapabilities: ["admin"] as const,
|
|
430
430
|
errors: ["AuthError", "UnexpectedError"] as const,
|
|
431
431
|
declaredErrorTypes: ["AuthError", "UnexpectedError"] as const,
|
|
432
432
|
},
|
|
@@ -438,7 +438,7 @@ export const OWNED_API = {
|
|
|
438
438
|
output: schema<Types.AuthDeploymentAuthorityReconcileOutput>(
|
|
439
439
|
AuthDeploymentAuthorityReconcileResponseSchema,
|
|
440
440
|
),
|
|
441
|
-
callerCapabilities: ["admin"],
|
|
441
|
+
callerCapabilities: ["admin"] as const,
|
|
442
442
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
443
443
|
declaredErrorTypes: [
|
|
444
444
|
"AuthError",
|
|
@@ -454,7 +454,7 @@ export const OWNED_API = {
|
|
|
454
454
|
output: schema<Types.AuthDeploymentAuthorityRejectOutput>(
|
|
455
455
|
AuthDeploymentAuthorityRejectResponseSchema,
|
|
456
456
|
),
|
|
457
|
-
callerCapabilities: ["admin"],
|
|
457
|
+
callerCapabilities: ["admin"] as const,
|
|
458
458
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
459
459
|
declaredErrorTypes: [
|
|
460
460
|
"AuthError",
|
|
@@ -470,7 +470,7 @@ export const OWNED_API = {
|
|
|
470
470
|
output: schema<Types.AuthDeploymentsCreateOutput>(
|
|
471
471
|
AuthDeploymentsCreateResponseSchema,
|
|
472
472
|
),
|
|
473
|
-
callerCapabilities: ["admin"],
|
|
473
|
+
callerCapabilities: ["admin"] as const,
|
|
474
474
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
475
475
|
declaredErrorTypes: [
|
|
476
476
|
"AuthError",
|
|
@@ -486,7 +486,7 @@ export const OWNED_API = {
|
|
|
486
486
|
output: schema<Types.AuthDeploymentsDisableOutput>(
|
|
487
487
|
AuthDeploymentsDisableResponseSchema,
|
|
488
488
|
),
|
|
489
|
-
callerCapabilities: ["admin"],
|
|
489
|
+
callerCapabilities: ["admin"] as const,
|
|
490
490
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
491
491
|
declaredErrorTypes: [
|
|
492
492
|
"AuthError",
|
|
@@ -502,7 +502,7 @@ export const OWNED_API = {
|
|
|
502
502
|
output: schema<Types.AuthDeploymentsEnableOutput>(
|
|
503
503
|
AuthDeploymentsEnableResponseSchema,
|
|
504
504
|
),
|
|
505
|
-
callerCapabilities: ["admin"],
|
|
505
|
+
callerCapabilities: ["admin"] as const,
|
|
506
506
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
507
507
|
declaredErrorTypes: [
|
|
508
508
|
"AuthError",
|
|
@@ -518,7 +518,7 @@ export const OWNED_API = {
|
|
|
518
518
|
output: schema<Types.AuthDeploymentsListOutput>(
|
|
519
519
|
AuthDeploymentsListResponseSchema,
|
|
520
520
|
),
|
|
521
|
-
callerCapabilities: ["admin"],
|
|
521
|
+
callerCapabilities: ["admin"] as const,
|
|
522
522
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
523
523
|
declaredErrorTypes: [
|
|
524
524
|
"AuthError",
|
|
@@ -534,7 +534,7 @@ export const OWNED_API = {
|
|
|
534
534
|
output: schema<Types.AuthDeploymentsRemoveOutput>(
|
|
535
535
|
AuthDeploymentsRemoveResponseSchema,
|
|
536
536
|
),
|
|
537
|
-
callerCapabilities: ["admin"],
|
|
537
|
+
callerCapabilities: ["admin"] as const,
|
|
538
538
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
539
539
|
declaredErrorTypes: [
|
|
540
540
|
"AuthError",
|
|
@@ -550,7 +550,7 @@ export const OWNED_API = {
|
|
|
550
550
|
output: schema<Types.AuthDeviceUserAuthoritiesListOutput>(
|
|
551
551
|
AuthDeviceUserAuthoritiesListResponseSchema,
|
|
552
552
|
),
|
|
553
|
-
callerCapabilities: ["admin"],
|
|
553
|
+
callerCapabilities: ["admin"] as const,
|
|
554
554
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
555
555
|
declaredErrorTypes: [
|
|
556
556
|
"AuthError",
|
|
@@ -566,7 +566,7 @@ export const OWNED_API = {
|
|
|
566
566
|
output: schema<Types.AuthDeviceUserAuthoritiesReviewsDecideOutput>(
|
|
567
567
|
AuthDeviceUserAuthoritiesReviewsDecideResponseSchema,
|
|
568
568
|
),
|
|
569
|
-
callerCapabilities: ["trellis.auth::device.review"],
|
|
569
|
+
callerCapabilities: ["trellis.auth::device.review"] as const,
|
|
570
570
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
571
571
|
declaredErrorTypes: [
|
|
572
572
|
"AuthError",
|
|
@@ -582,7 +582,7 @@ export const OWNED_API = {
|
|
|
582
582
|
output: schema<Types.AuthDeviceUserAuthoritiesReviewsListOutput>(
|
|
583
583
|
AuthDeviceUserAuthoritiesReviewsListResponseSchema,
|
|
584
584
|
),
|
|
585
|
-
callerCapabilities: ["trellis.auth::device.review"],
|
|
585
|
+
callerCapabilities: ["trellis.auth::device.review"] as const,
|
|
586
586
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
587
587
|
declaredErrorTypes: [
|
|
588
588
|
"AuthError",
|
|
@@ -598,7 +598,7 @@ export const OWNED_API = {
|
|
|
598
598
|
output: schema<Types.AuthDeviceUserAuthoritiesRevokeOutput>(
|
|
599
599
|
AuthDeviceUserAuthoritiesRevokeResponseSchema,
|
|
600
600
|
),
|
|
601
|
-
callerCapabilities: ["admin"],
|
|
601
|
+
callerCapabilities: ["admin"] as const,
|
|
602
602
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
603
603
|
declaredErrorTypes: [
|
|
604
604
|
"AuthError",
|
|
@@ -614,7 +614,7 @@ export const OWNED_API = {
|
|
|
614
614
|
output: schema<Types.AuthDevicesConnectInfoGetOutput>(
|
|
615
615
|
AuthDevicesConnectInfoGetResponseSchema,
|
|
616
616
|
),
|
|
617
|
-
callerCapabilities: [],
|
|
617
|
+
callerCapabilities: [] as const,
|
|
618
618
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
619
619
|
declaredErrorTypes: [
|
|
620
620
|
"AuthError",
|
|
@@ -630,7 +630,7 @@ export const OWNED_API = {
|
|
|
630
630
|
output: schema<Types.AuthDevicesDisableOutput>(
|
|
631
631
|
AuthDevicesDisableResponseSchema,
|
|
632
632
|
),
|
|
633
|
-
callerCapabilities: ["admin"],
|
|
633
|
+
callerCapabilities: ["admin"] as const,
|
|
634
634
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
635
635
|
declaredErrorTypes: [
|
|
636
636
|
"AuthError",
|
|
@@ -646,7 +646,7 @@ export const OWNED_API = {
|
|
|
646
646
|
output: schema<Types.AuthDevicesEnableOutput>(
|
|
647
647
|
AuthDevicesEnableResponseSchema,
|
|
648
648
|
),
|
|
649
|
-
callerCapabilities: ["admin"],
|
|
649
|
+
callerCapabilities: ["admin"] as const,
|
|
650
650
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
651
651
|
declaredErrorTypes: [
|
|
652
652
|
"AuthError",
|
|
@@ -660,7 +660,7 @@ export const OWNED_API = {
|
|
|
660
660
|
output: schema<Types.AuthDevicesListOutput>(
|
|
661
661
|
AuthDevicesListResponseSchema,
|
|
662
662
|
),
|
|
663
|
-
callerCapabilities: ["admin"],
|
|
663
|
+
callerCapabilities: ["admin"] as const,
|
|
664
664
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
665
665
|
declaredErrorTypes: [
|
|
666
666
|
"AuthError",
|
|
@@ -676,7 +676,7 @@ export const OWNED_API = {
|
|
|
676
676
|
output: schema<Types.AuthDevicesProvisionOutput>(
|
|
677
677
|
AuthDevicesProvisionResponseSchema,
|
|
678
678
|
),
|
|
679
|
-
callerCapabilities: ["admin"],
|
|
679
|
+
callerCapabilities: ["admin"] as const,
|
|
680
680
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
681
681
|
declaredErrorTypes: [
|
|
682
682
|
"AuthError",
|
|
@@ -692,7 +692,7 @@ export const OWNED_API = {
|
|
|
692
692
|
output: schema<Types.AuthDevicesRemoveOutput>(
|
|
693
693
|
AuthDevicesRemoveResponseSchema,
|
|
694
694
|
),
|
|
695
|
-
callerCapabilities: ["admin"],
|
|
695
|
+
callerCapabilities: ["admin"] as const,
|
|
696
696
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
697
697
|
declaredErrorTypes: [
|
|
698
698
|
"AuthError",
|
|
@@ -704,7 +704,7 @@ export const OWNED_API = {
|
|
|
704
704
|
subject: "rpc.v1.Auth.Health",
|
|
705
705
|
input: schema<Types.AuthHealthInput>(HealthRequestSchema),
|
|
706
706
|
output: schema<Types.AuthHealthOutput>(HealthResponseSchema),
|
|
707
|
-
callerCapabilities: [],
|
|
707
|
+
callerCapabilities: [] as const,
|
|
708
708
|
errors: ["UnexpectedError"] as const,
|
|
709
709
|
declaredErrorTypes: ["UnexpectedError"] as const,
|
|
710
710
|
},
|
|
@@ -716,7 +716,7 @@ export const OWNED_API = {
|
|
|
716
716
|
output: schema<Types.AuthIdentitiesListOutput>(
|
|
717
717
|
AuthIdentitiesListResponseSchema,
|
|
718
718
|
),
|
|
719
|
-
callerCapabilities: [],
|
|
719
|
+
callerCapabilities: [] as const,
|
|
720
720
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
721
721
|
declaredErrorTypes: [
|
|
722
722
|
"AuthError",
|
|
@@ -732,7 +732,7 @@ export const OWNED_API = {
|
|
|
732
732
|
output: schema<Types.AuthIdentityGrantsListOutput>(
|
|
733
733
|
AuthIdentityGrantsListResponseSchema,
|
|
734
734
|
),
|
|
735
|
-
callerCapabilities: [],
|
|
735
|
+
callerCapabilities: [] as const,
|
|
736
736
|
errors: ["AuthError", "UnexpectedError"] as const,
|
|
737
737
|
declaredErrorTypes: ["AuthError", "UnexpectedError"] as const,
|
|
738
738
|
},
|
|
@@ -744,7 +744,7 @@ export const OWNED_API = {
|
|
|
744
744
|
output: schema<Types.AuthIdentityGrantsRevokeOutput>(
|
|
745
745
|
AuthIdentityGrantsRevokeResponseSchema,
|
|
746
746
|
),
|
|
747
|
-
callerCapabilities: [],
|
|
747
|
+
callerCapabilities: [] as const,
|
|
748
748
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
749
749
|
declaredErrorTypes: [
|
|
750
750
|
"AuthError",
|
|
@@ -756,7 +756,7 @@ export const OWNED_API = {
|
|
|
756
756
|
subject: "rpc.v1.Auth.Portals.Get",
|
|
757
757
|
input: schema<Types.AuthPortalsGetInput>(AuthPortalsGetRequestSchema),
|
|
758
758
|
output: schema<Types.AuthPortalsGetOutput>(AuthPortalsGetResponseSchema),
|
|
759
|
-
callerCapabilities: ["admin"],
|
|
759
|
+
callerCapabilities: ["admin"] as const,
|
|
760
760
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
761
761
|
declaredErrorTypes: [
|
|
762
762
|
"AuthError",
|
|
@@ -770,7 +770,7 @@ export const OWNED_API = {
|
|
|
770
770
|
output: schema<Types.AuthPortalsListOutput>(
|
|
771
771
|
AuthPortalsListResponseSchema,
|
|
772
772
|
),
|
|
773
|
-
callerCapabilities: ["admin"],
|
|
773
|
+
callerCapabilities: ["admin"] as const,
|
|
774
774
|
errors: ["AuthError", "UnexpectedError"] as const,
|
|
775
775
|
declaredErrorTypes: ["AuthError", "UnexpectedError"] as const,
|
|
776
776
|
},
|
|
@@ -782,7 +782,7 @@ export const OWNED_API = {
|
|
|
782
782
|
output: schema<Types.AuthPortalsLoginSettingsGetOutput>(
|
|
783
783
|
AuthPortalsLoginSettingsResponseSchema,
|
|
784
784
|
),
|
|
785
|
-
callerCapabilities: ["admin"],
|
|
785
|
+
callerCapabilities: ["admin"] as const,
|
|
786
786
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
787
787
|
declaredErrorTypes: [
|
|
788
788
|
"AuthError",
|
|
@@ -798,7 +798,7 @@ export const OWNED_API = {
|
|
|
798
798
|
output: schema<Types.AuthPortalsLoginSettingsUpdateOutput>(
|
|
799
799
|
AuthPortalsLoginSettingsResponseSchema,
|
|
800
800
|
),
|
|
801
|
-
callerCapabilities: ["admin"],
|
|
801
|
+
callerCapabilities: ["admin"] as const,
|
|
802
802
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
803
803
|
declaredErrorTypes: [
|
|
804
804
|
"AuthError",
|
|
@@ -810,7 +810,7 @@ export const OWNED_API = {
|
|
|
810
810
|
subject: "rpc.v1.Auth.Portals.Put",
|
|
811
811
|
input: schema<Types.AuthPortalsPutInput>(AuthPortalsPutRequestSchema),
|
|
812
812
|
output: schema<Types.AuthPortalsPutOutput>(AuthPortalsPutResponseSchema),
|
|
813
|
-
callerCapabilities: ["admin"],
|
|
813
|
+
callerCapabilities: ["admin"] as const,
|
|
814
814
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
815
815
|
declaredErrorTypes: [
|
|
816
816
|
"AuthError",
|
|
@@ -826,7 +826,7 @@ export const OWNED_API = {
|
|
|
826
826
|
output: schema<Types.AuthPortalsRemoveOutput>(
|
|
827
827
|
AuthPortalsRemoveResponseSchema,
|
|
828
828
|
),
|
|
829
|
-
callerCapabilities: ["admin"],
|
|
829
|
+
callerCapabilities: ["admin"] as const,
|
|
830
830
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
831
831
|
declaredErrorTypes: [
|
|
832
832
|
"AuthError",
|
|
@@ -842,7 +842,7 @@ export const OWNED_API = {
|
|
|
842
842
|
output: schema<Types.AuthPortalsRoutesPutOutput>(
|
|
843
843
|
AuthPortalsRoutesPutResponseSchema,
|
|
844
844
|
),
|
|
845
|
-
callerCapabilities: ["admin"],
|
|
845
|
+
callerCapabilities: ["admin"] as const,
|
|
846
846
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
847
847
|
declaredErrorTypes: [
|
|
848
848
|
"AuthError",
|
|
@@ -858,7 +858,7 @@ export const OWNED_API = {
|
|
|
858
858
|
output: schema<Types.AuthPortalsRoutesRemoveOutput>(
|
|
859
859
|
AuthPortalsRoutesRemoveResponseSchema,
|
|
860
860
|
),
|
|
861
|
-
callerCapabilities: ["admin"],
|
|
861
|
+
callerCapabilities: ["admin"] as const,
|
|
862
862
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
863
863
|
declaredErrorTypes: [
|
|
864
864
|
"AuthError",
|
|
@@ -874,7 +874,7 @@ export const OWNED_API = {
|
|
|
874
874
|
output: schema<Types.AuthRequestsValidateOutput>(
|
|
875
875
|
AuthRequestsValidateResponseSchema,
|
|
876
876
|
),
|
|
877
|
-
callerCapabilities: ["service"],
|
|
877
|
+
callerCapabilities: ["service"] as const,
|
|
878
878
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
879
879
|
declaredErrorTypes: [
|
|
880
880
|
"AuthError",
|
|
@@ -890,7 +890,7 @@ export const OWNED_API = {
|
|
|
890
890
|
output: schema<Types.AuthServiceInstancesDisableOutput>(
|
|
891
891
|
AuthServiceInstancesDisableResponseSchema,
|
|
892
892
|
),
|
|
893
|
-
callerCapabilities: ["admin"],
|
|
893
|
+
callerCapabilities: ["admin"] as const,
|
|
894
894
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
895
895
|
declaredErrorTypes: [
|
|
896
896
|
"AuthError",
|
|
@@ -906,7 +906,7 @@ export const OWNED_API = {
|
|
|
906
906
|
output: schema<Types.AuthServiceInstancesEnableOutput>(
|
|
907
907
|
AuthServiceInstancesEnableResponseSchema,
|
|
908
908
|
),
|
|
909
|
-
callerCapabilities: ["admin"],
|
|
909
|
+
callerCapabilities: ["admin"] as const,
|
|
910
910
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
911
911
|
declaredErrorTypes: [
|
|
912
912
|
"AuthError",
|
|
@@ -922,7 +922,7 @@ export const OWNED_API = {
|
|
|
922
922
|
output: schema<Types.AuthServiceInstancesListOutput>(
|
|
923
923
|
AuthServiceInstancesListResponseSchema,
|
|
924
924
|
),
|
|
925
|
-
callerCapabilities: ["admin"],
|
|
925
|
+
callerCapabilities: ["admin"] as const,
|
|
926
926
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
927
927
|
declaredErrorTypes: [
|
|
928
928
|
"AuthError",
|
|
@@ -938,7 +938,7 @@ export const OWNED_API = {
|
|
|
938
938
|
output: schema<Types.AuthServiceInstancesProvisionOutput>(
|
|
939
939
|
AuthServiceInstancesProvisionResponseSchema,
|
|
940
940
|
),
|
|
941
|
-
callerCapabilities: ["admin"],
|
|
941
|
+
callerCapabilities: ["admin"] as const,
|
|
942
942
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
943
943
|
declaredErrorTypes: [
|
|
944
944
|
"AuthError",
|
|
@@ -954,7 +954,7 @@ export const OWNED_API = {
|
|
|
954
954
|
output: schema<Types.AuthServiceInstancesRemoveOutput>(
|
|
955
955
|
AuthServiceInstancesRemoveResponseSchema,
|
|
956
956
|
),
|
|
957
|
-
callerCapabilities: ["admin"],
|
|
957
|
+
callerCapabilities: ["admin"] as const,
|
|
958
958
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
959
959
|
declaredErrorTypes: [
|
|
960
960
|
"AuthError",
|
|
@@ -968,7 +968,7 @@ export const OWNED_API = {
|
|
|
968
968
|
output: schema<Types.AuthSessionsListOutput>(
|
|
969
969
|
AuthSessionsListResponseSchema,
|
|
970
970
|
),
|
|
971
|
-
callerCapabilities: ["admin"],
|
|
971
|
+
callerCapabilities: ["admin"] as const,
|
|
972
972
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
973
973
|
declaredErrorTypes: [
|
|
974
974
|
"AuthError",
|
|
@@ -984,7 +984,7 @@ export const OWNED_API = {
|
|
|
984
984
|
output: schema<Types.AuthSessionsLogoutOutput>(
|
|
985
985
|
AuthSessionsLogoutResponseSchema,
|
|
986
986
|
),
|
|
987
|
-
callerCapabilities: [],
|
|
987
|
+
callerCapabilities: [] as const,
|
|
988
988
|
errors: ["AuthError", "UnexpectedError"] as const,
|
|
989
989
|
declaredErrorTypes: ["AuthError", "UnexpectedError"] as const,
|
|
990
990
|
},
|
|
@@ -992,7 +992,7 @@ export const OWNED_API = {
|
|
|
992
992
|
subject: "rpc.v1.Auth.Sessions.Me",
|
|
993
993
|
input: schema<Types.AuthSessionsMeInput>(AuthSessionsMeRequestSchema),
|
|
994
994
|
output: schema<Types.AuthSessionsMeOutput>(AuthSessionsMeResponseSchema),
|
|
995
|
-
callerCapabilities: [],
|
|
995
|
+
callerCapabilities: [] as const,
|
|
996
996
|
errors: ["AuthError", "UnexpectedError"] as const,
|
|
997
997
|
declaredErrorTypes: ["AuthError", "UnexpectedError"] as const,
|
|
998
998
|
},
|
|
@@ -1004,7 +1004,7 @@ export const OWNED_API = {
|
|
|
1004
1004
|
output: schema<Types.AuthSessionsRevokeOutput>(
|
|
1005
1005
|
AuthSessionsRevokeResponseSchema,
|
|
1006
1006
|
),
|
|
1007
|
-
callerCapabilities: ["admin"],
|
|
1007
|
+
callerCapabilities: ["admin"] as const,
|
|
1008
1008
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
1009
1009
|
declaredErrorTypes: [
|
|
1010
1010
|
"AuthError",
|
|
@@ -1020,7 +1020,7 @@ export const OWNED_API = {
|
|
|
1020
1020
|
output: schema<Types.AuthUserIdentitiesListOutput>(
|
|
1021
1021
|
AuthUserIdentitiesListResponseSchema,
|
|
1022
1022
|
),
|
|
1023
|
-
callerCapabilities: ["admin"],
|
|
1023
|
+
callerCapabilities: ["admin"] as const,
|
|
1024
1024
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
1025
1025
|
declaredErrorTypes: [
|
|
1026
1026
|
"AuthError",
|
|
@@ -1036,7 +1036,7 @@ export const OWNED_API = {
|
|
|
1036
1036
|
output: schema<Types.AuthUserIdentitiesUnlinkOutput>(
|
|
1037
1037
|
AuthUserIdentitiesUnlinkResponseSchema,
|
|
1038
1038
|
),
|
|
1039
|
-
callerCapabilities: ["admin"],
|
|
1039
|
+
callerCapabilities: ["admin"] as const,
|
|
1040
1040
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
1041
1041
|
declaredErrorTypes: [
|
|
1042
1042
|
"AuthError",
|
|
@@ -1050,7 +1050,7 @@ export const OWNED_API = {
|
|
|
1050
1050
|
output: schema<Types.AuthUsersCreateOutput>(
|
|
1051
1051
|
AuthUsersCreateResponseSchema,
|
|
1052
1052
|
),
|
|
1053
|
-
callerCapabilities: ["admin"],
|
|
1053
|
+
callerCapabilities: ["admin"] as const,
|
|
1054
1054
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
1055
1055
|
declaredErrorTypes: [
|
|
1056
1056
|
"AuthError",
|
|
@@ -1062,7 +1062,7 @@ export const OWNED_API = {
|
|
|
1062
1062
|
subject: "rpc.v1.Auth.Users.Get",
|
|
1063
1063
|
input: schema<Types.AuthUsersGetInput>(AuthUsersGetRequestSchema),
|
|
1064
1064
|
output: schema<Types.AuthUsersGetOutput>(AuthUsersGetResponseSchema),
|
|
1065
|
-
callerCapabilities: ["admin"],
|
|
1065
|
+
callerCapabilities: ["admin"] as const,
|
|
1066
1066
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
1067
1067
|
declaredErrorTypes: [
|
|
1068
1068
|
"AuthError",
|
|
@@ -1078,7 +1078,7 @@ export const OWNED_API = {
|
|
|
1078
1078
|
output: schema<Types.AuthUsersIdentityLinkCreateOutput>(
|
|
1079
1079
|
AuthUsersAccountFlowCreateResponseSchema,
|
|
1080
1080
|
),
|
|
1081
|
-
callerCapabilities: [],
|
|
1081
|
+
callerCapabilities: [] as const,
|
|
1082
1082
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
1083
1083
|
declaredErrorTypes: [
|
|
1084
1084
|
"AuthError",
|
|
@@ -1090,7 +1090,7 @@ export const OWNED_API = {
|
|
|
1090
1090
|
subject: "rpc.v1.Auth.Users.List",
|
|
1091
1091
|
input: schema<Types.AuthUsersListInput>(AuthUsersListRequestSchema),
|
|
1092
1092
|
output: schema<Types.AuthUsersListOutput>(AuthUsersListResponseSchema),
|
|
1093
|
-
callerCapabilities: ["admin"],
|
|
1093
|
+
callerCapabilities: ["admin"] as const,
|
|
1094
1094
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
1095
1095
|
declaredErrorTypes: [
|
|
1096
1096
|
"AuthError",
|
|
@@ -1106,7 +1106,7 @@ export const OWNED_API = {
|
|
|
1106
1106
|
output: schema<Types.AuthUsersPasswordChangeOutput>(
|
|
1107
1107
|
AuthUsersPasswordChangeResponseSchema,
|
|
1108
1108
|
),
|
|
1109
|
-
callerCapabilities: [],
|
|
1109
|
+
callerCapabilities: [] as const,
|
|
1110
1110
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
1111
1111
|
declaredErrorTypes: [
|
|
1112
1112
|
"AuthError",
|
|
@@ -1122,7 +1122,7 @@ export const OWNED_API = {
|
|
|
1122
1122
|
output: schema<Types.AuthUsersPasswordResetCreateOutput>(
|
|
1123
1123
|
AuthUsersAccountFlowCreateResponseSchema,
|
|
1124
1124
|
),
|
|
1125
|
-
callerCapabilities: ["admin"],
|
|
1125
|
+
callerCapabilities: ["admin"] as const,
|
|
1126
1126
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
1127
1127
|
declaredErrorTypes: [
|
|
1128
1128
|
"AuthError",
|
|
@@ -1136,7 +1136,7 @@ export const OWNED_API = {
|
|
|
1136
1136
|
output: schema<Types.AuthUsersUpdateOutput>(
|
|
1137
1137
|
AuthUsersUpdateResponseSchema,
|
|
1138
1138
|
),
|
|
1139
|
-
callerCapabilities: ["admin"],
|
|
1139
|
+
callerCapabilities: ["admin"] as const,
|
|
1140
1140
|
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
1141
1141
|
declaredErrorTypes: [
|
|
1142
1142
|
"AuthError",
|
|
@@ -1157,10 +1157,16 @@ export const OWNED_API = {
|
|
|
1157
1157
|
output: schema<Types.AuthDeviceUserAuthoritiesResolveOutput>(
|
|
1158
1158
|
AuthResolveDeviceUserAuthoritiesResponseSchema,
|
|
1159
1159
|
),
|
|
1160
|
-
callerCapabilities: [],
|
|
1161
|
-
observeCapabilities: [],
|
|
1162
|
-
cancelCapabilities: [],
|
|
1163
|
-
controlCapabilities: [],
|
|
1160
|
+
callerCapabilities: [] as const,
|
|
1161
|
+
observeCapabilities: [] as const,
|
|
1162
|
+
cancelCapabilities: [] as const,
|
|
1163
|
+
controlCapabilities: [] as const,
|
|
1164
|
+
errors: ["AuthError", "UnexpectedError", "ValidationError"] as const,
|
|
1165
|
+
declaredErrorTypes: [
|
|
1166
|
+
"AuthError",
|
|
1167
|
+
"UnexpectedError",
|
|
1168
|
+
"ValidationError",
|
|
1169
|
+
] as const,
|
|
1164
1170
|
},
|
|
1165
1171
|
},
|
|
1166
1172
|
events: {
|
|
@@ -1169,24 +1175,24 @@ export const OWNED_API = {
|
|
|
1169
1175
|
event: schema<Types.AuthConnectionsClosedEvent>(
|
|
1170
1176
|
AuthConnectionsClosedEventSchema,
|
|
1171
1177
|
),
|
|
1172
|
-
publishCapabilities: ["trellis.auth::events.auth"],
|
|
1173
|
-
subscribeCapabilities: ["trellis.auth::events.auth"],
|
|
1178
|
+
publishCapabilities: ["trellis.auth::events.auth"] as const,
|
|
1179
|
+
subscribeCapabilities: ["trellis.auth::events.auth"] as const,
|
|
1174
1180
|
},
|
|
1175
1181
|
"Auth.Connections.Kicked": {
|
|
1176
1182
|
subject: "events.v1.Auth.Connections.Kicked",
|
|
1177
1183
|
event: schema<Types.AuthConnectionsKickedEvent>(
|
|
1178
1184
|
AuthConnectionsKickedEventSchema,
|
|
1179
1185
|
),
|
|
1180
|
-
publishCapabilities: ["trellis.auth::events.auth"],
|
|
1181
|
-
subscribeCapabilities: ["trellis.auth::events.auth"],
|
|
1186
|
+
publishCapabilities: ["trellis.auth::events.auth"] as const,
|
|
1187
|
+
subscribeCapabilities: ["trellis.auth::events.auth"] as const,
|
|
1182
1188
|
},
|
|
1183
1189
|
"Auth.Connections.Opened": {
|
|
1184
1190
|
subject: "events.v1.Auth.Connections.Opened",
|
|
1185
1191
|
event: schema<Types.AuthConnectionsOpenedEvent>(
|
|
1186
1192
|
AuthConnectionsOpenedEventSchema,
|
|
1187
1193
|
),
|
|
1188
|
-
publishCapabilities: ["trellis.auth::events.auth"],
|
|
1189
|
-
subscribeCapabilities: ["trellis.auth::events.auth"],
|
|
1194
|
+
publishCapabilities: ["trellis.auth::events.auth"] as const,
|
|
1195
|
+
subscribeCapabilities: ["trellis.auth::events.auth"] as const,
|
|
1190
1196
|
},
|
|
1191
1197
|
"Auth.DeviceUserAuthorities.Approved": {
|
|
1192
1198
|
subject: "events.v1.Auth.DeviceUserAuthorities.Approved.{/deploymentId}",
|
|
@@ -1194,8 +1200,8 @@ export const OWNED_API = {
|
|
|
1194
1200
|
event: schema<Types.AuthDeviceUserAuthoritiesApprovedEvent>(
|
|
1195
1201
|
AuthDeviceUserAuthoritiesApprovedEventSchema,
|
|
1196
1202
|
),
|
|
1197
|
-
publishCapabilities: ["trellis.auth::events.auth"],
|
|
1198
|
-
subscribeCapabilities: ["trellis.auth::device.review"],
|
|
1203
|
+
publishCapabilities: ["trellis.auth::events.auth"] as const,
|
|
1204
|
+
subscribeCapabilities: ["trellis.auth::device.review"] as const,
|
|
1199
1205
|
},
|
|
1200
1206
|
"Auth.DeviceUserAuthorities.Requested": {
|
|
1201
1207
|
subject: "events.v1.Auth.DeviceUserAuthorities.Requested.{/deploymentId}",
|
|
@@ -1203,8 +1209,8 @@ export const OWNED_API = {
|
|
|
1203
1209
|
event: schema<Types.AuthDeviceUserAuthoritiesRequestedEvent>(
|
|
1204
1210
|
AuthDeviceUserAuthoritiesRequestedEventSchema,
|
|
1205
1211
|
),
|
|
1206
|
-
publishCapabilities: ["trellis.auth::events.auth"],
|
|
1207
|
-
subscribeCapabilities: ["trellis.auth::device.review"],
|
|
1212
|
+
publishCapabilities: ["trellis.auth::events.auth"] as const,
|
|
1213
|
+
subscribeCapabilities: ["trellis.auth::device.review"] as const,
|
|
1208
1214
|
},
|
|
1209
1215
|
"Auth.DeviceUserAuthorities.Resolved": {
|
|
1210
1216
|
subject: "events.v1.Auth.DeviceUserAuthorities.Resolved.{/deploymentId}",
|
|
@@ -1212,11 +1218,11 @@ export const OWNED_API = {
|
|
|
1212
1218
|
event: schema<Types.AuthDeviceUserAuthoritiesResolvedEvent>(
|
|
1213
1219
|
AuthDeviceUserAuthoritiesResolvedEventSchema,
|
|
1214
1220
|
),
|
|
1215
|
-
publishCapabilities: ["trellis.auth::events.auth"],
|
|
1221
|
+
publishCapabilities: ["trellis.auth::events.auth"] as const,
|
|
1216
1222
|
subscribeCapabilities: [
|
|
1217
1223
|
"trellis.auth::device.review",
|
|
1218
1224
|
"trellis.auth::events.auth",
|
|
1219
|
-
],
|
|
1225
|
+
] as const,
|
|
1220
1226
|
},
|
|
1221
1227
|
"Auth.DeviceUserAuthorities.ReviewRequested": {
|
|
1222
1228
|
subject:
|
|
@@ -1225,16 +1231,16 @@ export const OWNED_API = {
|
|
|
1225
1231
|
event: schema<Types.AuthDeviceUserAuthoritiesReviewRequestedEvent>(
|
|
1226
1232
|
AuthDeviceUserAuthoritiesReviewRequestedEventSchema,
|
|
1227
1233
|
),
|
|
1228
|
-
publishCapabilities: ["trellis.auth::events.auth"],
|
|
1229
|
-
subscribeCapabilities: ["trellis.auth::device.review"],
|
|
1234
|
+
publishCapabilities: ["trellis.auth::events.auth"] as const,
|
|
1235
|
+
subscribeCapabilities: ["trellis.auth::device.review"] as const,
|
|
1230
1236
|
},
|
|
1231
1237
|
"Auth.Sessions.Revoked": {
|
|
1232
1238
|
subject: "events.v1.Auth.Sessions.Revoked",
|
|
1233
1239
|
event: schema<Types.AuthSessionsRevokedEvent>(
|
|
1234
1240
|
AuthSessionsRevokedEventSchema,
|
|
1235
1241
|
),
|
|
1236
|
-
publishCapabilities: ["trellis.auth::events.auth"],
|
|
1237
|
-
subscribeCapabilities: ["trellis.auth::events.auth"],
|
|
1242
|
+
publishCapabilities: ["trellis.auth::events.auth"] as const,
|
|
1243
|
+
subscribeCapabilities: ["trellis.auth::events.auth"] as const,
|
|
1238
1244
|
},
|
|
1239
1245
|
},
|
|
1240
1246
|
feeds: {},
|