@qlever-llc/trellis 0.8.4 → 0.9.0-rc.10
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/README.md +1 -1
- package/bin/trellis-generate.js +0 -0
- package/esm/auth/browser/login.d.ts.map +1 -1
- package/esm/auth/browser/login.js +46 -3
- package/esm/auth/browser/portal.d.ts.map +1 -1
- package/esm/auth/browser/portal.js +5 -1
- package/esm/auth/browser/session.d.ts +18 -7
- package/esm/auth/browser/session.d.ts.map +1 -1
- package/esm/auth/browser/session.js +47 -11
- package/esm/auth/browser/storage.d.ts +6 -1
- package/esm/auth/browser/storage.d.ts.map +1 -1
- package/esm/auth/browser/storage.js +15 -3
- package/esm/auth/browser.d.ts +2 -2
- package/esm/auth/browser.d.ts.map +1 -1
- package/esm/auth/browser.js +1 -1
- package/esm/auth/device_activation.d.ts +36 -33
- package/esm/auth/device_activation.d.ts.map +1 -1
- package/esm/auth/device_activation.js +26 -22
- package/esm/auth/mod.d.ts +4 -4
- package/esm/auth/mod.d.ts.map +1 -1
- package/esm/auth/mod.js +2 -2
- package/esm/auth/proof.d.ts +3 -1
- package/esm/auth/proof.d.ts.map +1 -1
- package/esm/auth/proof.js +21 -15
- package/esm/auth/protocol.d.ts +2457 -941
- package/esm/auth/protocol.d.ts.map +1 -1
- package/esm/auth/protocol.js +747 -375
- package/esm/auth/schemas.d.ts +25 -4
- package/esm/auth/schemas.d.ts.map +1 -1
- package/esm/auth/schemas.js +14 -4
- package/esm/auth/session_auth.d.ts +1 -1
- package/esm/auth/session_auth.d.ts.map +1 -1
- package/esm/auth/session_auth.js +7 -1
- package/esm/client_connect.d.ts +2 -0
- package/esm/client_connect.d.ts.map +1 -1
- package/esm/client_connect.js +76 -15
- package/esm/contract.d.ts +3 -0
- package/esm/contract.d.ts.map +1 -1
- package/esm/contract_support/mod.d.ts +422 -43
- package/esm/contract_support/mod.d.ts.map +1 -1
- package/esm/contract_support/mod.js +734 -33
- package/esm/contract_support/protocol.d.ts +20 -5
- package/esm/contract_support/protocol.d.ts.map +1 -1
- package/esm/contract_support/protocol.js +18 -10
- package/esm/contract_support/runtime.d.ts +11 -0
- package/esm/contract_support/runtime.d.ts.map +1 -1
- package/esm/contract_support/schema_pointers.d.ts.map +1 -1
- package/esm/contract_support/schema_pointers.js +32 -14
- package/esm/device.d.ts +2 -0
- package/esm/device.d.ts.map +1 -1
- package/esm/device.js +3 -0
- package/esm/errors/AuthError.d.ts +2 -1
- package/esm/errors/AuthError.d.ts.map +1 -1
- package/esm/errors/AuthError.js +8 -3
- package/esm/errors/index.d.ts +4 -4
- package/esm/errors/index.d.ts.map +1 -1
- package/esm/errors/index.js +1 -0
- package/esm/generated-sdk/auth/api.d.ts +27 -9
- package/esm/generated-sdk/auth/api.d.ts.map +1 -1
- package/esm/generated-sdk/auth/api.js +16 -590
- package/esm/generated-sdk/auth/client.d.ts +91 -85
- package/esm/generated-sdk/auth/client.d.ts.map +1 -1
- package/esm/generated-sdk/auth/contract.d.ts +1 -1
- package/esm/generated-sdk/auth/contract.d.ts.map +1 -1
- package/esm/generated-sdk/auth/contract.js +4 -2
- package/esm/generated-sdk/auth/mod.d.ts +1 -0
- package/esm/generated-sdk/auth/mod.d.ts.map +1 -1
- package/esm/generated-sdk/auth/owned_api.d.ts +3 -0
- package/esm/generated-sdk/auth/owned_api.d.ts.map +1 -0
- package/esm/generated-sdk/auth/owned_api.js +594 -0
- package/esm/generated-sdk/auth/schemas.d.ts +9959 -5160
- package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/auth/schemas.js +136 -137
- package/esm/generated-sdk/auth/types.d.ts +2418 -1557
- 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 +24 -9
- package/esm/generated-sdk/health/api.d.ts.map +1 -1
- package/esm/generated-sdk/health/api.js +12 -20
- package/esm/generated-sdk/health/client.d.ts +2 -1
- package/esm/generated-sdk/health/client.d.ts.map +1 -1
- package/esm/generated-sdk/health/contract.d.ts.map +1 -1
- package/esm/generated-sdk/health/contract.js +2 -0
- package/esm/generated-sdk/health/owned_api.d.ts +3 -0
- package/esm/generated-sdk/health/owned_api.d.ts.map +1 -0
- package/esm/generated-sdk/health/owned_api.js +16 -0
- package/esm/generated-sdk/health/types.d.ts +2 -0
- package/esm/generated-sdk/health/types.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/api.d.ts +33 -9
- package/esm/generated-sdk/jobs/api.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/api.js +22 -87
- package/esm/generated-sdk/jobs/client.d.ts +9 -2
- package/esm/generated-sdk/jobs/client.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/contract.d.ts +1 -1
- package/esm/generated-sdk/jobs/contract.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/contract.js +4 -2
- package/esm/generated-sdk/jobs/owned_api.d.ts +3 -0
- package/esm/generated-sdk/jobs/owned_api.d.ts.map +1 -0
- package/esm/generated-sdk/jobs/owned_api.js +118 -0
- package/esm/generated-sdk/jobs/schemas.d.ts +336 -123
- package/esm/generated-sdk/jobs/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/schemas.js +17 -15
- package/esm/generated-sdk/jobs/types.d.ts +144 -34
- package/esm/generated-sdk/jobs/types.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/types.js +36 -1
- package/esm/generated-sdk/state/api.d.ts +27 -9
- package/esm/generated-sdk/state/api.d.ts.map +1 -1
- package/esm/generated-sdk/state/api.js +16 -71
- package/esm/generated-sdk/state/client.d.ts +4 -2
- package/esm/generated-sdk/state/client.d.ts.map +1 -1
- package/esm/generated-sdk/state/contract.d.ts +1 -1
- package/esm/generated-sdk/state/contract.d.ts.map +1 -1
- package/esm/generated-sdk/state/contract.js +4 -2
- package/esm/generated-sdk/state/owned_api.d.ts +3 -0
- package/esm/generated-sdk/state/owned_api.d.ts.map +1 -0
- package/esm/generated-sdk/state/owned_api.js +66 -0
- package/esm/generated-sdk/state/schemas.d.ts +264 -284
- package/esm/generated-sdk/state/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/state/schemas.js +6 -6
- package/esm/generated-sdk/state/types.d.ts +24 -23
- package/esm/generated-sdk/state/types.d.ts.map +1 -1
- package/esm/generated-sdk/state/types.js +1 -1
- package/esm/generated-sdk/trellis-core/api.d.ts +27 -9
- package/esm/generated-sdk/trellis-core/api.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/api.js +16 -39
- package/esm/generated-sdk/trellis-core/client.d.ts +5 -2
- package/esm/generated-sdk/trellis-core/client.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/contract.d.ts +1 -1
- package/esm/generated-sdk/trellis-core/contract.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/contract.js +4 -2
- package/esm/generated-sdk/trellis-core/owned_api.d.ts +3 -0
- package/esm/generated-sdk/trellis-core/owned_api.d.ts.map +1 -0
- package/esm/generated-sdk/trellis-core/owned_api.js +42 -0
- package/esm/generated-sdk/trellis-core/schemas.d.ts +259 -11
- package/esm/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/schemas.js +5 -3
- package/esm/generated-sdk/trellis-core/types.d.ts +56 -1
- package/esm/generated-sdk/trellis-core/types.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/types.js +1 -1
- package/esm/helpers.d.ts.map +1 -1
- package/esm/index.d.ts +4 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/jobs.d.ts +10 -1
- package/esm/jobs.d.ts.map +1 -1
- package/esm/jobs.js +16 -1
- package/esm/kv.d.ts.map +1 -1
- package/esm/kv.js +10 -4
- package/esm/models/auth/rpc/Logout.d.ts +4 -4
- package/esm/models/auth/rpc/Logout.d.ts.map +1 -1
- package/esm/models/auth/rpc/Logout.js +2 -2
- package/esm/models/trellis/Page.d.ts +2 -0
- package/esm/models/trellis/Page.d.ts.map +1 -0
- package/esm/models/trellis/Page.js +1 -0
- package/esm/models/trellis/State.d.ts +1 -0
- package/esm/models/trellis/State.d.ts.map +1 -1
- package/esm/models/trellis/State.js +1 -0
- package/esm/models/trellis/rpc/StateList.d.ts +9 -12
- package/esm/models/trellis/rpc/StateList.d.ts.map +1 -1
- package/esm/models/trellis/rpc/StateList.js +16 -18
- package/esm/npm/src/auth/browser/login.d.ts.map +1 -1
- package/esm/npm/src/auth/browser/login.js +46 -3
- package/esm/npm/src/auth/browser/portal.d.ts.map +1 -1
- package/esm/npm/src/auth/browser/portal.js +5 -1
- package/esm/npm/src/auth/browser/session.d.ts +18 -7
- package/esm/npm/src/auth/browser/session.d.ts.map +1 -1
- package/esm/npm/src/auth/browser/session.js +47 -11
- package/esm/npm/src/auth/browser/storage.d.ts +6 -1
- package/esm/npm/src/auth/browser/storage.d.ts.map +1 -1
- package/esm/npm/src/auth/browser/storage.js +15 -3
- package/esm/npm/src/auth/browser.d.ts +2 -2
- package/esm/npm/src/auth/browser.d.ts.map +1 -1
- package/esm/npm/src/auth/browser.js +1 -1
- package/esm/npm/src/auth/device_activation.d.ts +36 -33
- package/esm/npm/src/auth/device_activation.d.ts.map +1 -1
- package/esm/npm/src/auth/device_activation.js +26 -22
- package/esm/npm/src/auth/mod.d.ts +4 -4
- package/esm/npm/src/auth/mod.d.ts.map +1 -1
- package/esm/npm/src/auth/mod.js +2 -2
- package/esm/npm/src/auth/proof.d.ts +3 -1
- package/esm/npm/src/auth/proof.d.ts.map +1 -1
- package/esm/npm/src/auth/proof.js +21 -15
- package/esm/npm/src/auth/protocol.d.ts +2457 -941
- package/esm/npm/src/auth/protocol.d.ts.map +1 -1
- package/esm/npm/src/auth/protocol.js +747 -375
- package/esm/npm/src/auth/schemas.d.ts +25 -4
- package/esm/npm/src/auth/schemas.d.ts.map +1 -1
- package/esm/npm/src/auth/schemas.js +14 -4
- package/esm/npm/src/auth/session_auth.d.ts +1 -1
- package/esm/npm/src/auth/session_auth.d.ts.map +1 -1
- package/esm/npm/src/auth/session_auth.js +7 -1
- package/esm/npm/src/client_connect.d.ts +2 -0
- package/esm/npm/src/client_connect.d.ts.map +1 -1
- package/esm/npm/src/client_connect.js +76 -15
- package/esm/npm/src/contract.d.ts +3 -0
- package/esm/npm/src/contract.d.ts.map +1 -1
- package/esm/npm/src/contract_support/mod.d.ts +422 -43
- package/esm/npm/src/contract_support/mod.d.ts.map +1 -1
- package/esm/npm/src/contract_support/mod.js +734 -33
- package/esm/npm/src/contract_support/protocol.d.ts +20 -5
- package/esm/npm/src/contract_support/protocol.d.ts.map +1 -1
- package/esm/npm/src/contract_support/protocol.js +18 -10
- package/esm/npm/src/contract_support/runtime.d.ts +11 -0
- package/esm/npm/src/contract_support/runtime.d.ts.map +1 -1
- package/esm/npm/src/contract_support/schema_pointers.d.ts.map +1 -1
- package/esm/npm/src/contract_support/schema_pointers.js +32 -14
- package/esm/npm/src/device/deno.d.ts.map +1 -1
- package/esm/npm/src/device/deno.js +6 -0
- package/esm/npm/src/device.d.ts +2 -0
- package/esm/npm/src/device.d.ts.map +1 -1
- package/esm/npm/src/device.js +3 -0
- package/esm/npm/src/errors/AuthError.d.ts +2 -1
- package/esm/npm/src/errors/AuthError.d.ts.map +1 -1
- package/esm/npm/src/errors/AuthError.js +8 -3
- package/esm/npm/src/errors/index.d.ts +4 -4
- package/esm/npm/src/errors/index.d.ts.map +1 -1
- package/esm/npm/src/errors/index.js +1 -0
- package/esm/npm/src/generate.js +39 -26
- package/esm/npm/src/helpers.d.ts.map +1 -1
- package/esm/npm/src/index.d.ts +4 -3
- package/esm/npm/src/index.d.ts.map +1 -1
- package/esm/npm/src/index.js +1 -0
- package/esm/npm/src/jobs.d.ts +10 -1
- package/esm/npm/src/jobs.d.ts.map +1 -1
- package/esm/npm/src/jobs.js +16 -1
- package/esm/npm/src/kv.d.ts.map +1 -1
- package/esm/npm/src/kv.js +10 -4
- package/esm/npm/src/models/auth/rpc/Logout.d.ts +4 -4
- package/esm/npm/src/models/auth/rpc/Logout.d.ts.map +1 -1
- package/esm/npm/src/models/auth/rpc/Logout.js +2 -2
- package/esm/npm/src/models/trellis/Page.d.ts +2 -0
- package/esm/npm/src/models/trellis/Page.d.ts.map +1 -0
- package/esm/npm/src/models/trellis/Page.js +1 -0
- package/esm/npm/src/models/trellis/State.d.ts +1 -0
- package/esm/npm/src/models/trellis/State.d.ts.map +1 -1
- package/esm/npm/src/models/trellis/State.js +1 -0
- package/esm/npm/src/models/trellis/rpc/StateList.d.ts +9 -12
- package/esm/npm/src/models/trellis/rpc/StateList.d.ts.map +1 -1
- package/esm/npm/src/models/trellis/rpc/StateList.js +16 -18
- package/esm/npm/src/operations.d.ts +16 -7
- package/esm/npm/src/operations.d.ts.map +1 -1
- package/esm/npm/src/operations.js +84 -19
- package/esm/npm/src/runtime_transport.d.ts +2 -0
- package/esm/npm/src/runtime_transport.d.ts.map +1 -1
- package/esm/npm/src/runtime_transport.js +1 -0
- package/esm/npm/src/server/internal_jobs/active-job.d.ts +2 -1
- package/esm/npm/src/server/internal_jobs/active-job.d.ts.map +1 -1
- package/esm/npm/src/server/internal_jobs/active-job.js +3 -0
- package/esm/npm/src/server/internal_jobs/job-manager.d.ts +4 -1
- package/esm/npm/src/server/internal_jobs/job-manager.d.ts.map +1 -1
- package/esm/npm/src/server/internal_jobs/job-manager.js +61 -1
- package/esm/npm/src/server/internal_jobs/projection.js +1 -0
- package/esm/npm/src/server/internal_jobs/runtime-worker.d.ts +13 -1
- package/esm/npm/src/server/internal_jobs/runtime-worker.d.ts.map +1 -1
- package/esm/npm/src/server/internal_jobs/runtime-worker.js +73 -13
- package/esm/npm/src/server/internal_jobs/types.d.ts +19 -0
- package/esm/npm/src/server/internal_jobs/types.d.ts.map +1 -1
- package/esm/npm/src/server/internal_jobs/types.js +10 -0
- package/esm/npm/src/server/runtime.d.ts +1 -0
- package/esm/npm/src/server/runtime.d.ts.map +1 -1
- package/esm/npm/src/server/service.d.ts +10 -1
- package/esm/npm/src/server/service.d.ts.map +1 -1
- package/esm/npm/src/server/service.js +210 -64
- package/esm/npm/src/server/transfer.d.ts.map +1 -1
- package/esm/npm/src/server/transfer.js +4 -0
- package/esm/npm/src/server.d.ts.map +1 -1
- package/esm/npm/src/server.js +337 -34
- package/esm/npm/src/store.d.ts +8 -1
- package/esm/npm/src/store.d.ts.map +1 -1
- package/esm/npm/src/store.js +46 -8
- package/esm/npm/src/transfer.d.ts +3 -0
- package/esm/npm/src/transfer.d.ts.map +1 -1
- package/esm/npm/src/transfer.js +20 -30
- package/esm/npm/src/trellis.d.ts +85 -22
- package/esm/npm/src/trellis.d.ts.map +1 -1
- package/esm/npm/src/trellis.js +525 -61
- package/esm/operations.d.ts +16 -7
- package/esm/operations.d.ts.map +1 -1
- package/esm/operations.js +84 -19
- package/esm/runtime_transport.d.ts +2 -0
- package/esm/runtime_transport.d.ts.map +1 -1
- package/esm/runtime_transport.js +1 -0
- package/esm/store.d.ts +8 -1
- package/esm/store.d.ts.map +1 -1
- package/esm/store.js +46 -8
- package/esm/transfer.d.ts +3 -0
- package/esm/transfer.d.ts.map +1 -1
- package/esm/transfer.js +20 -30
- package/esm/trellis.d.ts +85 -22
- package/esm/trellis.d.ts.map +1 -1
- package/esm/trellis.js +525 -61
- package/package.json +6 -3
- package/script/auth/browser/login.d.ts.map +1 -1
- package/script/auth/browser/login.js +46 -3
- package/script/auth/browser/portal.d.ts.map +1 -1
- package/script/auth/browser/portal.js +5 -1
- package/script/auth/browser/session.d.ts +18 -7
- package/script/auth/browser/session.d.ts.map +1 -1
- package/script/auth/browser/session.js +47 -11
- package/script/auth/browser/storage.d.ts +6 -1
- package/script/auth/browser/storage.d.ts.map +1 -1
- package/script/auth/browser/storage.js +15 -3
- package/script/auth/browser.d.ts +2 -2
- package/script/auth/browser.d.ts.map +1 -1
- package/script/auth/browser.js +2 -1
- package/script/auth/device_activation.d.ts +36 -33
- package/script/auth/device_activation.d.ts.map +1 -1
- package/script/auth/device_activation.js +25 -21
- package/script/auth/mod.d.ts +4 -4
- package/script/auth/mod.d.ts.map +1 -1
- package/script/auth/mod.js +132 -137
- package/script/auth/proof.d.ts +3 -1
- package/script/auth/proof.d.ts.map +1 -1
- package/script/auth/proof.js +21 -15
- package/script/auth/protocol.d.ts +2457 -941
- package/script/auth/protocol.d.ts.map +1 -1
- package/script/auth/protocol.js +749 -377
- package/script/auth/schemas.d.ts +25 -4
- package/script/auth/schemas.d.ts.map +1 -1
- package/script/auth/schemas.js +16 -5
- package/script/auth/session_auth.d.ts +1 -1
- package/script/auth/session_auth.d.ts.map +1 -1
- package/script/auth/session_auth.js +7 -1
- package/script/client_connect.d.ts +2 -0
- package/script/client_connect.d.ts.map +1 -1
- package/script/client_connect.js +76 -15
- package/script/contract.d.ts +3 -0
- package/script/contract.d.ts.map +1 -1
- package/script/contract_support/mod.d.ts +422 -43
- package/script/contract_support/mod.d.ts.map +1 -1
- package/script/contract_support/mod.js +757 -51
- package/script/contract_support/protocol.d.ts +20 -5
- package/script/contract_support/protocol.d.ts.map +1 -1
- package/script/contract_support/protocol.js +20 -11
- package/script/contract_support/runtime.d.ts +11 -0
- package/script/contract_support/runtime.d.ts.map +1 -1
- package/script/contract_support/schema_pointers.d.ts.map +1 -1
- package/script/contract_support/schema_pointers.js +32 -14
- package/script/device.d.ts +2 -0
- package/script/device.d.ts.map +1 -1
- package/script/device.js +3 -0
- package/script/errors/AuthError.d.ts +2 -1
- package/script/errors/AuthError.d.ts.map +1 -1
- package/script/errors/AuthError.js +8 -3
- package/script/errors/index.d.ts +4 -4
- package/script/errors/index.d.ts.map +1 -1
- package/script/errors/index.js +1 -0
- package/script/generated-sdk/auth/api.d.ts +27 -9
- package/script/generated-sdk/auth/api.d.ts.map +1 -1
- package/script/generated-sdk/auth/api.js +17 -591
- package/script/generated-sdk/auth/client.d.ts +91 -85
- package/script/generated-sdk/auth/client.d.ts.map +1 -1
- package/script/generated-sdk/auth/contract.d.ts +1 -1
- package/script/generated-sdk/auth/contract.d.ts.map +1 -1
- package/script/generated-sdk/auth/contract.js +4 -2
- package/script/generated-sdk/auth/mod.d.ts +1 -0
- package/script/generated-sdk/auth/mod.d.ts.map +1 -1
- package/script/generated-sdk/auth/owned_api.d.ts +3 -0
- package/script/generated-sdk/auth/owned_api.d.ts.map +1 -0
- package/script/generated-sdk/auth/owned_api.js +597 -0
- package/script/generated-sdk/auth/schemas.d.ts +9959 -5160
- package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
- package/script/generated-sdk/auth/schemas.js +139 -140
- package/script/generated-sdk/auth/types.d.ts +2418 -1557
- 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 +24 -9
- package/script/generated-sdk/health/api.d.ts.map +1 -1
- package/script/generated-sdk/health/api.js +13 -21
- package/script/generated-sdk/health/client.d.ts +2 -1
- package/script/generated-sdk/health/client.d.ts.map +1 -1
- package/script/generated-sdk/health/contract.d.ts.map +1 -1
- package/script/generated-sdk/health/contract.js +2 -0
- package/script/generated-sdk/health/owned_api.d.ts +3 -0
- package/script/generated-sdk/health/owned_api.d.ts.map +1 -0
- package/script/generated-sdk/health/owned_api.js +19 -0
- package/script/generated-sdk/health/types.d.ts +2 -0
- package/script/generated-sdk/health/types.d.ts.map +1 -1
- package/script/generated-sdk/jobs/api.d.ts +33 -9
- package/script/generated-sdk/jobs/api.d.ts.map +1 -1
- package/script/generated-sdk/jobs/api.js +23 -88
- package/script/generated-sdk/jobs/client.d.ts +9 -2
- package/script/generated-sdk/jobs/client.d.ts.map +1 -1
- package/script/generated-sdk/jobs/contract.d.ts +1 -1
- package/script/generated-sdk/jobs/contract.d.ts.map +1 -1
- package/script/generated-sdk/jobs/contract.js +4 -2
- package/script/generated-sdk/jobs/owned_api.d.ts +3 -0
- package/script/generated-sdk/jobs/owned_api.d.ts.map +1 -0
- package/script/generated-sdk/jobs/owned_api.js +154 -0
- package/script/generated-sdk/jobs/schemas.d.ts +336 -123
- package/script/generated-sdk/jobs/schemas.d.ts.map +1 -1
- package/script/generated-sdk/jobs/schemas.js +18 -16
- package/script/generated-sdk/jobs/types.d.ts +144 -34
- package/script/generated-sdk/jobs/types.d.ts.map +1 -1
- package/script/generated-sdk/jobs/types.js +38 -2
- package/script/generated-sdk/state/api.d.ts +27 -9
- package/script/generated-sdk/state/api.d.ts.map +1 -1
- package/script/generated-sdk/state/api.js +17 -72
- package/script/generated-sdk/state/client.d.ts +4 -2
- package/script/generated-sdk/state/client.d.ts.map +1 -1
- package/script/generated-sdk/state/contract.d.ts +1 -1
- package/script/generated-sdk/state/contract.d.ts.map +1 -1
- package/script/generated-sdk/state/contract.js +4 -2
- package/script/generated-sdk/state/owned_api.d.ts +3 -0
- package/script/generated-sdk/state/owned_api.d.ts.map +1 -0
- package/script/generated-sdk/state/owned_api.js +69 -0
- package/script/generated-sdk/state/schemas.d.ts +264 -284
- package/script/generated-sdk/state/schemas.d.ts.map +1 -1
- package/script/generated-sdk/state/schemas.js +6 -6
- package/script/generated-sdk/state/types.d.ts +24 -23
- package/script/generated-sdk/state/types.d.ts.map +1 -1
- package/script/generated-sdk/state/types.js +1 -1
- package/script/generated-sdk/trellis-core/api.d.ts +27 -9
- package/script/generated-sdk/trellis-core/api.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/api.js +17 -40
- package/script/generated-sdk/trellis-core/client.d.ts +5 -2
- package/script/generated-sdk/trellis-core/client.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/contract.d.ts +1 -1
- package/script/generated-sdk/trellis-core/contract.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/contract.js +4 -2
- package/script/generated-sdk/trellis-core/owned_api.d.ts +3 -0
- package/script/generated-sdk/trellis-core/owned_api.d.ts.map +1 -0
- package/script/generated-sdk/trellis-core/owned_api.js +45 -0
- package/script/generated-sdk/trellis-core/schemas.d.ts +259 -11
- package/script/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/schemas.js +6 -4
- package/script/generated-sdk/trellis-core/types.d.ts +56 -1
- package/script/generated-sdk/trellis-core/types.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/types.js +1 -1
- package/script/helpers.d.ts.map +1 -1
- package/script/index.d.ts +4 -3
- package/script/index.d.ts.map +1 -1
- package/script/index.js +5 -2
- package/script/jobs.d.ts +10 -1
- package/script/jobs.d.ts.map +1 -1
- package/script/jobs.js +17 -2
- package/script/kv.d.ts.map +1 -1
- package/script/kv.js +10 -4
- package/script/models/auth/rpc/Logout.d.ts +4 -4
- package/script/models/auth/rpc/Logout.d.ts.map +1 -1
- package/script/models/auth/rpc/Logout.js +3 -3
- package/script/models/trellis/Page.d.ts +2 -0
- package/script/models/trellis/Page.d.ts.map +1 -0
- package/script/models/trellis/Page.js +6 -0
- package/script/models/trellis/State.d.ts +1 -0
- package/script/models/trellis/State.d.ts.map +1 -1
- package/script/models/trellis/State.js +1 -0
- package/script/models/trellis/rpc/StateList.d.ts +9 -12
- package/script/models/trellis/rpc/StateList.d.ts.map +1 -1
- package/script/models/trellis/rpc/StateList.js +16 -18
- package/script/npm/src/auth/browser/login.d.ts.map +1 -1
- package/script/npm/src/auth/browser/login.js +46 -3
- package/script/npm/src/auth/browser/portal.d.ts.map +1 -1
- package/script/npm/src/auth/browser/portal.js +5 -1
- package/script/npm/src/auth/browser/session.d.ts +18 -7
- package/script/npm/src/auth/browser/session.d.ts.map +1 -1
- package/script/npm/src/auth/browser/session.js +47 -11
- package/script/npm/src/auth/browser/storage.d.ts +6 -1
- package/script/npm/src/auth/browser/storage.d.ts.map +1 -1
- package/script/npm/src/auth/browser/storage.js +15 -3
- package/script/npm/src/auth/browser.d.ts +2 -2
- package/script/npm/src/auth/browser.d.ts.map +1 -1
- package/script/npm/src/auth/browser.js +2 -1
- package/script/npm/src/auth/device_activation.d.ts +36 -33
- package/script/npm/src/auth/device_activation.d.ts.map +1 -1
- package/script/npm/src/auth/device_activation.js +25 -21
- package/script/npm/src/auth/mod.d.ts +4 -4
- package/script/npm/src/auth/mod.d.ts.map +1 -1
- package/script/npm/src/auth/mod.js +132 -137
- package/script/npm/src/auth/proof.d.ts +3 -1
- package/script/npm/src/auth/proof.d.ts.map +1 -1
- package/script/npm/src/auth/proof.js +21 -15
- package/script/npm/src/auth/protocol.d.ts +2457 -941
- package/script/npm/src/auth/protocol.d.ts.map +1 -1
- package/script/npm/src/auth/protocol.js +749 -377
- package/script/npm/src/auth/schemas.d.ts +25 -4
- package/script/npm/src/auth/schemas.d.ts.map +1 -1
- package/script/npm/src/auth/schemas.js +16 -5
- package/script/npm/src/auth/session_auth.d.ts +1 -1
- package/script/npm/src/auth/session_auth.d.ts.map +1 -1
- package/script/npm/src/auth/session_auth.js +7 -1
- package/script/npm/src/client_connect.d.ts +2 -0
- package/script/npm/src/client_connect.d.ts.map +1 -1
- package/script/npm/src/client_connect.js +76 -15
- package/script/npm/src/contract.d.ts +3 -0
- package/script/npm/src/contract.d.ts.map +1 -1
- package/script/npm/src/contract_support/mod.d.ts +422 -43
- package/script/npm/src/contract_support/mod.d.ts.map +1 -1
- package/script/npm/src/contract_support/mod.js +757 -51
- package/script/npm/src/contract_support/protocol.d.ts +20 -5
- package/script/npm/src/contract_support/protocol.d.ts.map +1 -1
- package/script/npm/src/contract_support/protocol.js +20 -11
- package/script/npm/src/contract_support/runtime.d.ts +11 -0
- package/script/npm/src/contract_support/runtime.d.ts.map +1 -1
- package/script/npm/src/contract_support/schema_pointers.d.ts.map +1 -1
- package/script/npm/src/contract_support/schema_pointers.js +32 -14
- package/script/npm/src/device/deno.d.ts.map +1 -1
- package/script/npm/src/device/deno.js +6 -0
- package/script/npm/src/device.d.ts +2 -0
- package/script/npm/src/device.d.ts.map +1 -1
- package/script/npm/src/device.js +3 -0
- package/script/npm/src/errors/AuthError.d.ts +2 -1
- package/script/npm/src/errors/AuthError.d.ts.map +1 -1
- package/script/npm/src/errors/AuthError.js +8 -3
- package/script/npm/src/errors/index.d.ts +4 -4
- package/script/npm/src/errors/index.d.ts.map +1 -1
- package/script/npm/src/errors/index.js +1 -0
- package/script/npm/src/generate.js +39 -59
- package/script/npm/src/helpers.d.ts.map +1 -1
- package/script/npm/src/index.d.ts +4 -3
- package/script/npm/src/index.d.ts.map +1 -1
- package/script/npm/src/index.js +5 -2
- package/script/npm/src/jobs.d.ts +10 -1
- package/script/npm/src/jobs.d.ts.map +1 -1
- package/script/npm/src/jobs.js +17 -2
- package/script/npm/src/kv.d.ts.map +1 -1
- package/script/npm/src/kv.js +10 -4
- package/script/npm/src/models/auth/rpc/Logout.d.ts +4 -4
- package/script/npm/src/models/auth/rpc/Logout.d.ts.map +1 -1
- package/script/npm/src/models/auth/rpc/Logout.js +3 -3
- package/script/npm/src/models/trellis/Page.d.ts +2 -0
- package/script/npm/src/models/trellis/Page.d.ts.map +1 -0
- package/script/npm/src/models/trellis/Page.js +6 -0
- package/script/npm/src/models/trellis/State.d.ts +1 -0
- package/script/npm/src/models/trellis/State.d.ts.map +1 -1
- package/script/npm/src/models/trellis/State.js +1 -0
- package/script/npm/src/models/trellis/rpc/StateList.d.ts +9 -12
- package/script/npm/src/models/trellis/rpc/StateList.d.ts.map +1 -1
- package/script/npm/src/models/trellis/rpc/StateList.js +16 -18
- package/script/npm/src/operations.d.ts +16 -7
- package/script/npm/src/operations.d.ts.map +1 -1
- package/script/npm/src/operations.js +84 -19
- package/script/npm/src/runtime_transport.d.ts +2 -0
- package/script/npm/src/runtime_transport.d.ts.map +1 -1
- package/script/npm/src/runtime_transport.js +2 -1
- package/script/npm/src/server/internal_jobs/active-job.d.ts +2 -1
- package/script/npm/src/server/internal_jobs/active-job.d.ts.map +1 -1
- package/script/npm/src/server/internal_jobs/active-job.js +3 -0
- package/script/npm/src/server/internal_jobs/job-manager.d.ts +4 -1
- package/script/npm/src/server/internal_jobs/job-manager.d.ts.map +1 -1
- package/script/npm/src/server/internal_jobs/job-manager.js +61 -1
- package/script/npm/src/server/internal_jobs/projection.js +1 -0
- package/script/npm/src/server/internal_jobs/runtime-worker.d.ts +13 -1
- package/script/npm/src/server/internal_jobs/runtime-worker.d.ts.map +1 -1
- package/script/npm/src/server/internal_jobs/runtime-worker.js +74 -13
- package/script/npm/src/server/internal_jobs/types.d.ts +19 -0
- package/script/npm/src/server/internal_jobs/types.d.ts.map +1 -1
- package/script/npm/src/server/internal_jobs/types.js +11 -1
- package/script/npm/src/server/runtime.d.ts +1 -0
- package/script/npm/src/server/runtime.d.ts.map +1 -1
- package/script/npm/src/server/service.d.ts +10 -1
- package/script/npm/src/server/service.d.ts.map +1 -1
- package/script/npm/src/server/service.js +208 -62
- package/script/npm/src/server/transfer.d.ts.map +1 -1
- package/script/npm/src/server/transfer.js +4 -0
- package/script/npm/src/server.d.ts.map +1 -1
- package/script/npm/src/server.js +336 -33
- package/script/npm/src/store.d.ts +8 -1
- package/script/npm/src/store.d.ts.map +1 -1
- package/script/npm/src/store.js +46 -8
- package/script/npm/src/transfer.d.ts +3 -0
- package/script/npm/src/transfer.d.ts.map +1 -1
- package/script/npm/src/transfer.js +19 -29
- package/script/npm/src/trellis.d.ts +85 -22
- package/script/npm/src/trellis.d.ts.map +1 -1
- package/script/npm/src/trellis.js +525 -61
- package/script/operations.d.ts +16 -7
- package/script/operations.d.ts.map +1 -1
- package/script/operations.js +84 -19
- package/script/runtime_transport.d.ts +2 -0
- package/script/runtime_transport.d.ts.map +1 -1
- package/script/runtime_transport.js +2 -1
- package/script/store.d.ts +8 -1
- package/script/store.d.ts.map +1 -1
- package/script/store.js +46 -8
- package/script/transfer.d.ts +3 -0
- package/script/transfer.d.ts.map +1 -1
- package/script/transfer.js +19 -29
- package/script/trellis.d.ts +85 -22
- package/script/trellis.d.ts.map +1 -1
- package/script/trellis.js +525 -61
- package/src/_dnt.polyfills.ts +274 -0
- package/src/_dnt.shims.ts +64 -0
- package/src/auth/browser/login.ts +295 -0
- package/src/auth/browser/portal.ts +75 -0
- package/src/auth/browser/session.ts +197 -0
- package/src/auth/browser/storage.ts +105 -0
- package/src/auth/browser.ts +82 -0
- package/src/auth/device_activation.ts +715 -0
- package/src/auth/keys.ts +116 -0
- package/src/auth/mod.ts +298 -0
- package/src/auth/proof.ts +111 -0
- package/src/auth/protocol.ts +1629 -0
- package/src/auth/schemas.ts +145 -0
- package/src/auth/session_auth.ts +167 -0
- package/src/auth/time.ts +15 -0
- package/src/auth/trellis_id.ts +9 -0
- package/src/auth/types.ts +4 -0
- package/src/auth/utils.ts +87 -0
- package/src/auth.ts +2 -0
- package/src/browser.ts +8 -0
- package/src/client.ts +164 -0
- package/src/client_connect.ts +1328 -0
- package/src/codec.ts +107 -0
- package/src/connection.ts +466 -0
- package/src/contract.ts +84 -0
- package/src/contract_support/canonical.ts +217 -0
- package/src/contract_support/mod.ts +5079 -0
- package/src/contract_support/protocol.ts +213 -0
- package/src/contract_support/runtime.ts +129 -0
- package/src/contract_support/schema_pointers.ts +161 -0
- package/src/contracts.ts +9 -0
- package/src/device/deno.ts +941 -0
- package/src/device.ts +989 -0
- package/src/env.ts +1 -0
- package/src/errors/AuthError.ts +82 -0
- package/src/errors/KVError.ts +47 -0
- package/src/errors/RemoteError.ts +111 -0
- package/src/errors/StoreError.ts +43 -0
- package/src/errors/TransferError.ts +43 -0
- package/src/errors/TransportError.ts +48 -0
- package/src/errors/TrellisError.ts +20 -0
- package/src/errors/ValidationError.ts +80 -0
- package/src/errors/index.ts +195 -0
- package/src/generate.ts +329 -0
- package/src/globals.ts +26 -0
- package/src/health.ts +28 -0
- package/src/helpers.ts +63 -0
- package/src/host/mod.ts +9 -0
- package/src/host/node.ts +9 -0
- package/src/index.ts +233 -0
- package/src/jobs.ts +344 -0
- package/src/kv.ts +564 -0
- package/src/models/auth/rpc/Logout.ts +15 -0
- package/src/models/trellis/Page.ts +6 -0
- package/src/models/trellis/State.ts +55 -0
- package/src/models/trellis/TrellisError.ts +21 -0
- package/src/models/trellis/rpc/StateDelete.ts +13 -0
- package/src/models/trellis/rpc/StateGet.ts +25 -0
- package/src/models/trellis/rpc/StateList.ts +26 -0
- package/src/models/trellis/rpc/StatePut.ts +42 -0
- package/src/operations.ts +1508 -0
- package/src/runtime_transport.ts +132 -0
- package/src/sdk/auth.ts +2 -0
- package/src/sdk/core.ts +2 -0
- package/src/sdk/health.ts +2 -0
- package/src/sdk/jobs.ts +2 -0
- package/src/sdk/state.ts +2 -0
- package/src/server/health.ts +379 -0
- package/src/server/health_rpc.ts +51 -0
- package/src/server/health_schemas.ts +61 -0
- package/src/server/internal_jobs/active-job.ts +115 -0
- package/src/server/internal_jobs/bindings.ts +26 -0
- package/src/server/internal_jobs/cancellation-registry.ts +71 -0
- package/src/server/internal_jobs/heartbeat.ts +120 -0
- package/src/server/internal_jobs/job-manager.ts +456 -0
- package/src/server/internal_jobs/projection.ts +48 -0
- package/src/server/internal_jobs/runtime-worker.ts +741 -0
- package/src/server/internal_jobs/types.ts +124 -0
- package/src/server/runtime.ts +27 -0
- package/src/server/service.ts +2377 -0
- package/src/server/subscription.ts +143 -0
- package/src/server/transfer.ts +962 -0
- package/src/server.ts +1725 -0
- package/src/server_logger.ts +10 -0
- package/src/service/deno.ts +18 -0
- package/src/service/mod.ts +68 -0
- package/src/service/node.ts +18 -0
- package/src/store.ts +658 -0
- package/src/tasks.ts +34 -0
- package/src/telemetry/carrier.ts +35 -0
- package/src/telemetry/core.ts +31 -0
- package/src/telemetry/env.ts +23 -0
- package/src/telemetry/mod.ts +26 -0
- package/src/telemetry/nats.ts +15 -0
- package/src/telemetry/result.ts +20 -0
- package/src/telemetry/trace.ts +39 -0
- package/src/telemetry/trellis.ts +1 -0
- package/src/tracing.ts +28 -0
- package/src/transfer.ts +602 -0
- package/src/trellis.ts +3650 -0
- package/esm/models/trellis/Paginate.d.ts +0 -7
- package/esm/models/trellis/Paginate.d.ts.map +0 -1
- package/esm/models/trellis/Paginate.js +0 -5
- package/esm/npm/src/models/trellis/Paginate.d.ts +0 -7
- package/esm/npm/src/models/trellis/Paginate.d.ts.map +0 -1
- package/esm/npm/src/models/trellis/Paginate.js +0 -5
- package/script/models/trellis/Paginate.d.ts +0 -7
- package/script/models/trellis/Paginate.d.ts.map +0 -1
- package/script/models/trellis/Paginate.js +0 -11
- package/script/npm/src/models/trellis/Paginate.d.ts +0 -7
- package/script/npm/src/models/trellis/Paginate.d.ts.map +0 -1
- package/script/npm/src/models/trellis/Paginate.js +0 -11
package/esm/auth/protocol.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ContractResourceBindingsSchema
|
|
1
|
+
import { ContractResourceBindingsSchema } from "@qlever-llc/trellis/contracts";
|
|
2
2
|
import { Type } from "typebox";
|
|
3
|
-
import {
|
|
3
|
+
import { PageResponseSchema } from "../contract_support/protocol.js";
|
|
4
|
+
import { ClientTransportsSchema, ContractApprovalCapabilitySchema, SentinelCredsSchema, UserParticipantKindSchema, } from "./schemas.js";
|
|
4
5
|
const IsoDateStringSchema = Type.String({ format: "date-time" });
|
|
5
6
|
export const ParticipantKindSchema = Type.Union([
|
|
6
7
|
UserParticipantKindSchema,
|
|
@@ -11,21 +12,11 @@ export const DigestSchema = Type.String({ pattern: "^[A-Za-z0-9_-]+$" });
|
|
|
11
12
|
export const OpenObjectSchema = Type.Unsafe({
|
|
12
13
|
type: "object",
|
|
13
14
|
});
|
|
14
|
-
export const
|
|
15
|
-
contractId: Type.String({ minLength: 1 }),
|
|
16
|
-
allowedDigests: Type.Array(DigestSchema),
|
|
17
|
-
resourceBindingsByDigest: Type.Optional(Type.Record(DigestSchema, ContractResourceBindingsSchema)),
|
|
18
|
-
});
|
|
19
|
-
export const DeviceAppliedDeploymentContractSchema = Type.Object({
|
|
20
|
-
contractId: Type.String({ minLength: 1 }),
|
|
21
|
-
allowedDigests: Type.Array(DigestSchema),
|
|
22
|
-
}, { additionalProperties: false });
|
|
23
|
-
export const ServiceDeploymentSchema = Type.Object({
|
|
15
|
+
export const ServiceDeploymentSchema = Type.Unsafe(Type.Object({
|
|
24
16
|
deploymentId: Type.String({ minLength: 1 }),
|
|
25
17
|
namespaces: Type.Array(Type.String({ minLength: 1 })),
|
|
26
18
|
disabled: Type.Boolean(),
|
|
27
|
-
|
|
28
|
-
});
|
|
19
|
+
}));
|
|
29
20
|
export const ServiceInstanceSchema = Type.Object({
|
|
30
21
|
instanceId: Type.String({ minLength: 1 }),
|
|
31
22
|
deploymentId: Type.String({ minLength: 1 }),
|
|
@@ -41,147 +32,377 @@ export const ApprovalDecisionSchema = Type.Union([
|
|
|
41
32
|
Type.Literal("approved"),
|
|
42
33
|
Type.Literal("denied"),
|
|
43
34
|
]);
|
|
44
|
-
export const
|
|
35
|
+
export const IdentityAnchorViewSchema = Type.Union([
|
|
36
|
+
Type.Object({
|
|
37
|
+
kind: Type.Literal("web"),
|
|
38
|
+
contractId: Type.String({ minLength: 1 }),
|
|
39
|
+
origin: Type.String({ minLength: 1 }),
|
|
40
|
+
}),
|
|
41
|
+
Type.Object({
|
|
42
|
+
kind: Type.Literal("cli"),
|
|
43
|
+
contractId: Type.String({ minLength: 1 }),
|
|
44
|
+
sessionPublicKey: Type.String({ minLength: 1 }),
|
|
45
|
+
}),
|
|
46
|
+
Type.Object({
|
|
47
|
+
kind: Type.Literal("native"),
|
|
48
|
+
contractId: Type.String({ minLength: 1 }),
|
|
49
|
+
sessionPublicKey: Type.String({ minLength: 1 }),
|
|
50
|
+
}),
|
|
51
|
+
Type.Object({
|
|
52
|
+
kind: Type.Literal("device-user"),
|
|
53
|
+
contractId: Type.String({ minLength: 1 }),
|
|
54
|
+
devicePublicKey: Type.String({ minLength: 1 }),
|
|
55
|
+
}),
|
|
56
|
+
]);
|
|
57
|
+
export const ContractEvidenceViewSchema = Type.Object({
|
|
58
|
+
contractDigest: DigestSchema,
|
|
59
|
+
contractId: Type.String({ minLength: 1 }),
|
|
60
|
+
});
|
|
61
|
+
export const ApprovalEvidenceViewSchema = Type.Object({
|
|
45
62
|
contractDigest: DigestSchema,
|
|
46
63
|
contractId: Type.String({ minLength: 1 }),
|
|
47
64
|
displayName: Type.String({ minLength: 1 }),
|
|
48
65
|
description: Type.String({ minLength: 1 }),
|
|
49
|
-
capabilities: Type.
|
|
66
|
+
capabilities: Type.Record(Type.String(), ContractApprovalCapabilitySchema),
|
|
67
|
+
});
|
|
68
|
+
export const IdentityEnvelopeApprovalViewSchema = Type.Object({
|
|
69
|
+
identityEnvelopeId: Type.String({ minLength: 1 }),
|
|
70
|
+
identityAnchor: IdentityAnchorViewSchema,
|
|
71
|
+
contractEvidence: ContractEvidenceViewSchema,
|
|
72
|
+
displayName: Type.String({ minLength: 1 }),
|
|
73
|
+
description: Type.String({ minLength: 1 }),
|
|
74
|
+
capabilities: Type.Record(Type.String(), ContractApprovalCapabilitySchema),
|
|
50
75
|
});
|
|
51
76
|
export const ApprovalRecordViewSchema = Type.Object({
|
|
52
77
|
user: Type.String({ minLength: 1 }),
|
|
53
78
|
answer: ApprovalDecisionSchema,
|
|
54
79
|
answeredAt: IsoDateStringSchema,
|
|
55
80
|
updatedAt: IsoDateStringSchema,
|
|
56
|
-
|
|
81
|
+
identityEnvelopeId: Type.String({ minLength: 1 }),
|
|
82
|
+
identityAnchor: IdentityAnchorViewSchema,
|
|
83
|
+
contractEvidence: ContractEvidenceViewSchema,
|
|
84
|
+
displayName: Type.String({ minLength: 1 }),
|
|
85
|
+
description: Type.String({ minLength: 1 }),
|
|
86
|
+
capabilities: Type.Record(Type.String(), ContractApprovalCapabilitySchema),
|
|
57
87
|
participantKind: UserParticipantKindSchema,
|
|
58
88
|
});
|
|
59
|
-
export const
|
|
60
|
-
|
|
61
|
-
|
|
89
|
+
export const DeploymentEnvelopeKindSchema = Type.Union([
|
|
90
|
+
Type.Literal("service"),
|
|
91
|
+
Type.Literal("device"),
|
|
92
|
+
Type.Literal("app"),
|
|
93
|
+
Type.Literal("cli"),
|
|
94
|
+
Type.Literal("native"),
|
|
95
|
+
Type.Literal("device-user"),
|
|
96
|
+
]);
|
|
97
|
+
export const EnvelopeSurfaceKindSchema = Type.Union([
|
|
98
|
+
Type.Literal("rpc"),
|
|
99
|
+
Type.Literal("operation"),
|
|
100
|
+
Type.Literal("event"),
|
|
101
|
+
Type.Literal("feed"),
|
|
102
|
+
]);
|
|
103
|
+
export const EnvelopeSurfaceActionSchema = Type.Union([
|
|
104
|
+
Type.Literal("call"),
|
|
105
|
+
Type.Literal("publish"),
|
|
106
|
+
Type.Literal("subscribe"),
|
|
107
|
+
Type.Literal("read"),
|
|
108
|
+
Type.Literal("cancel"),
|
|
109
|
+
]);
|
|
110
|
+
export const EnvelopeResourceKindSchema = Type.Union([
|
|
111
|
+
Type.Literal("kv"),
|
|
112
|
+
Type.Literal("store"),
|
|
113
|
+
Type.Literal("jobs"),
|
|
114
|
+
Type.Literal("transfer"),
|
|
115
|
+
]);
|
|
116
|
+
export const EnvelopeBoundaryContractSchema = Type.Object({
|
|
117
|
+
contractId: Type.String({ minLength: 1 }),
|
|
118
|
+
required: Type.Boolean(),
|
|
62
119
|
});
|
|
63
|
-
export const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
120
|
+
export const EnvelopeBoundarySurfaceSchema = Type.Object({
|
|
121
|
+
contractId: Type.String({ minLength: 1 }),
|
|
122
|
+
kind: EnvelopeSurfaceKindSchema,
|
|
123
|
+
name: Type.String({ minLength: 1 }),
|
|
124
|
+
action: EnvelopeSurfaceActionSchema,
|
|
125
|
+
required: Type.Boolean(),
|
|
126
|
+
});
|
|
127
|
+
export const EnvelopeBoundaryResourceSchema = Type.Object({
|
|
128
|
+
kind: EnvelopeResourceKindSchema,
|
|
129
|
+
alias: Type.String({ minLength: 1 }),
|
|
130
|
+
required: Type.Boolean(),
|
|
67
131
|
});
|
|
68
|
-
export const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
132
|
+
export const EnvelopeBoundarySchema = Type.Object({
|
|
133
|
+
contracts: Type.Array(EnvelopeBoundaryContractSchema),
|
|
134
|
+
surfaces: Type.Array(EnvelopeBoundarySurfaceSchema),
|
|
135
|
+
capabilities: Type.Array(Type.String({ minLength: 1 })),
|
|
136
|
+
resources: Type.Array(EnvelopeBoundaryResourceSchema),
|
|
72
137
|
});
|
|
73
|
-
export const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
impliedCapabilities: Type.Array(Type.String()),
|
|
138
|
+
export const DeploymentEnvelopeSchema = Type.Object({
|
|
139
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
140
|
+
kind: DeploymentEnvelopeKindSchema,
|
|
77
141
|
disabled: Type.Boolean(),
|
|
78
142
|
createdAt: IsoDateStringSchema,
|
|
79
143
|
updatedAt: IsoDateStringSchema,
|
|
80
|
-
|
|
144
|
+
boundary: EnvelopeBoundarySchema,
|
|
81
145
|
});
|
|
82
|
-
export const
|
|
83
|
-
|
|
84
|
-
|
|
146
|
+
export const DeploymentResourceBindingSchema = Type.Object({
|
|
147
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
148
|
+
kind: EnvelopeResourceKindSchema,
|
|
149
|
+
alias: Type.String({ minLength: 1 }),
|
|
150
|
+
binding: Type.Record(Type.String(), Type.Unknown()),
|
|
151
|
+
limits: Type.Union([Type.Record(Type.String(), Type.Unknown()), Type.Null()]),
|
|
152
|
+
createdAt: IsoDateStringSchema,
|
|
153
|
+
updatedAt: IsoDateStringSchema,
|
|
85
154
|
});
|
|
86
|
-
export const
|
|
155
|
+
export const DeploymentContractEvidenceSchema = Type.Object({
|
|
156
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
87
157
|
contractId: Type.String({ minLength: 1 }),
|
|
88
|
-
|
|
89
|
-
|
|
158
|
+
contractDigest: DigestSchema,
|
|
159
|
+
contract: OpenObjectSchema,
|
|
160
|
+
firstSeenAt: IsoDateStringSchema,
|
|
161
|
+
lastSeenAt: IsoDateStringSchema,
|
|
162
|
+
ignoredAt: Type.Optional(Type.Union([IsoDateStringSchema, Type.Null()])),
|
|
163
|
+
ignoredBy: Type.Optional(Type.Union([Type.Record(Type.String(), Type.Unknown()), Type.Null()])),
|
|
164
|
+
ignoreReason: Type.Optional(Type.Union([Type.String({ minLength: 1 }), Type.Null()])),
|
|
90
165
|
});
|
|
91
|
-
export const
|
|
92
|
-
|
|
166
|
+
export const DeploymentPortalRouteSchema = Type.Object({
|
|
167
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
168
|
+
portalId: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
169
|
+
entryUrl: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
170
|
+
disabled: Type.Boolean(),
|
|
171
|
+
updatedAt: IsoDateStringSchema,
|
|
93
172
|
});
|
|
94
|
-
export const
|
|
173
|
+
export const DeploymentGrantOverrideSchema = Type.Union([
|
|
174
|
+
Type.Object({
|
|
175
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
176
|
+
identityKind: Type.Literal("web"),
|
|
177
|
+
grantKind: Type.Literal("capability"),
|
|
178
|
+
contractId: Type.String({ minLength: 1 }),
|
|
179
|
+
origin: Type.String({ minLength: 1 }),
|
|
180
|
+
sessionPublicKey: Type.Null(),
|
|
181
|
+
capability: Type.String({ minLength: 1 }),
|
|
182
|
+
capabilityGroupKey: Type.Null(),
|
|
183
|
+
}),
|
|
184
|
+
Type.Object({
|
|
185
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
186
|
+
identityKind: Type.Literal("web"),
|
|
187
|
+
grantKind: Type.Literal("capability-group"),
|
|
188
|
+
contractId: Type.String({ minLength: 1 }),
|
|
189
|
+
origin: Type.String({ minLength: 1 }),
|
|
190
|
+
sessionPublicKey: Type.Null(),
|
|
191
|
+
capability: Type.Null(),
|
|
192
|
+
capabilityGroupKey: Type.String({ minLength: 1 }),
|
|
193
|
+
}),
|
|
194
|
+
Type.Object({
|
|
195
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
196
|
+
identityKind: Type.Literal("session"),
|
|
197
|
+
grantKind: Type.Literal("capability"),
|
|
198
|
+
contractId: Type.String({ minLength: 1 }),
|
|
199
|
+
origin: Type.Null(),
|
|
200
|
+
sessionPublicKey: Type.String({ minLength: 1 }),
|
|
201
|
+
capability: Type.String({ minLength: 1 }),
|
|
202
|
+
capabilityGroupKey: Type.Null(),
|
|
203
|
+
}),
|
|
204
|
+
Type.Object({
|
|
205
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
206
|
+
identityKind: Type.Literal("session"),
|
|
207
|
+
grantKind: Type.Literal("capability-group"),
|
|
208
|
+
contractId: Type.String({ minLength: 1 }),
|
|
209
|
+
origin: Type.Null(),
|
|
210
|
+
sessionPublicKey: Type.String({ minLength: 1 }),
|
|
211
|
+
capability: Type.Null(),
|
|
212
|
+
capabilityGroupKey: Type.String({ minLength: 1 }),
|
|
213
|
+
}),
|
|
214
|
+
]);
|
|
215
|
+
export const EnvelopeExpansionRequestSchema = Type.Object({
|
|
216
|
+
requestId: Type.String({ minLength: 1 }),
|
|
217
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
218
|
+
requestedByKind: Type.Union([
|
|
219
|
+
Type.Literal("service"),
|
|
220
|
+
Type.Literal("device"),
|
|
221
|
+
Type.Literal("user"),
|
|
222
|
+
Type.Literal("admin"),
|
|
223
|
+
Type.Literal("automation"),
|
|
224
|
+
]),
|
|
225
|
+
requestedBy: Type.Record(Type.String(), Type.Unknown()),
|
|
95
226
|
contractId: Type.String({ minLength: 1 }),
|
|
227
|
+
contractDigest: DigestSchema,
|
|
228
|
+
contract: OpenObjectSchema,
|
|
229
|
+
state: Type.Union([
|
|
230
|
+
Type.Literal("pending"),
|
|
231
|
+
Type.Literal("approved"),
|
|
232
|
+
Type.Literal("rejected"),
|
|
233
|
+
]),
|
|
234
|
+
createdAt: IsoDateStringSchema,
|
|
235
|
+
decidedAt: Type.Union([IsoDateStringSchema, Type.Null()]),
|
|
236
|
+
decidedBy: Type.Union([
|
|
237
|
+
Type.Record(Type.String(), Type.Unknown()),
|
|
238
|
+
Type.Null(),
|
|
239
|
+
]),
|
|
240
|
+
decisionReason: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
241
|
+
delta: EnvelopeBoundarySchema,
|
|
96
242
|
});
|
|
97
|
-
export const
|
|
98
|
-
|
|
243
|
+
export const AuthEnvelopesListSchema = Type.Object({
|
|
244
|
+
kind: Type.Optional(DeploymentEnvelopeKindSchema),
|
|
245
|
+
disabled: Type.Optional(Type.Boolean()),
|
|
246
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
247
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
99
248
|
});
|
|
100
|
-
export const
|
|
249
|
+
export const AuthEnvelopesListResponseSchema = Type.Object({
|
|
250
|
+
...PageResponseSchema(DeploymentEnvelopeSchema).properties,
|
|
251
|
+
});
|
|
252
|
+
export const AuthEnvelopesGetSchema = Type.Object({
|
|
101
253
|
deploymentId: Type.String({ minLength: 1 }),
|
|
102
|
-
namespaces: Type.Array(Type.String({ minLength: 1 })),
|
|
103
254
|
});
|
|
104
|
-
export const
|
|
105
|
-
|
|
255
|
+
export const AuthEnvelopesGetResponseSchema = Type.Object({
|
|
256
|
+
envelope: DeploymentEnvelopeSchema,
|
|
257
|
+
resourceBindings: Type.Array(DeploymentResourceBindingSchema),
|
|
258
|
+
contractEvidence: Type.Array(DeploymentContractEvidenceSchema),
|
|
259
|
+
expansionRequests: Type.Array(EnvelopeExpansionRequestSchema),
|
|
260
|
+
portalRoute: Type.Union([DeploymentPortalRouteSchema, Type.Null()]),
|
|
261
|
+
grantOverrides: Type.Array(DeploymentGrantOverrideSchema),
|
|
106
262
|
});
|
|
107
|
-
export const
|
|
108
|
-
|
|
263
|
+
export const AuthEnvelopesGrantOverridesPutSchema = Type.Object({
|
|
264
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
265
|
+
overrides: Type.Array(DeploymentGrantOverrideSchema),
|
|
266
|
+
});
|
|
267
|
+
export const AuthEnvelopesGrantOverridesListSchema = Type.Object({
|
|
268
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
269
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
270
|
+
});
|
|
271
|
+
export const AuthEnvelopesGrantOverridesListResponseSchema = Type.Object({
|
|
272
|
+
...PageResponseSchema(DeploymentGrantOverrideSchema).properties,
|
|
273
|
+
});
|
|
274
|
+
export const AuthEnvelopesGrantOverridesResponseSchema = Type.Object({
|
|
275
|
+
grantOverrides: Type.Array(DeploymentGrantOverrideSchema),
|
|
109
276
|
});
|
|
110
|
-
export const
|
|
111
|
-
|
|
277
|
+
export const AuthEnvelopesGrantOverridesRemoveSchema = Type.Object({
|
|
278
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
279
|
+
overrides: Type.Array(DeploymentGrantOverrideSchema),
|
|
112
280
|
});
|
|
113
|
-
export const
|
|
281
|
+
export const AuthEnvelopesExpandSchema = Type.Object({
|
|
114
282
|
deploymentId: Type.String({ minLength: 1 }),
|
|
115
283
|
contract: OpenObjectSchema,
|
|
116
284
|
expectedDigest: DigestSchema,
|
|
117
|
-
replaceExisting: Type.Optional(Type.Boolean()),
|
|
118
285
|
});
|
|
119
|
-
export const
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
displayName: Type.String({ minLength: 1 }),
|
|
125
|
-
description: Type.String({ minLength: 1 }),
|
|
126
|
-
installedAt: IsoDateStringSchema,
|
|
127
|
-
}),
|
|
286
|
+
export const AuthEnvelopesExpandResponseSchema = Type.Object({
|
|
287
|
+
envelope: DeploymentEnvelopeSchema,
|
|
288
|
+
delta: EnvelopeBoundarySchema,
|
|
289
|
+
contractEvidence: DeploymentContractEvidenceSchema,
|
|
290
|
+
resourceBindings: Type.Array(DeploymentResourceBindingSchema),
|
|
128
291
|
});
|
|
129
|
-
export const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
digests: Type.Optional(Type.Array(DigestSchema)),
|
|
292
|
+
export const AuthEnvelopesApproveRequestSchema = Type.Object({
|
|
293
|
+
requestId: Type.String({ minLength: 1 }),
|
|
294
|
+
reason: Type.Optional(Type.String({ minLength: 1 })),
|
|
133
295
|
});
|
|
134
|
-
export const
|
|
135
|
-
|
|
296
|
+
export const AuthEnvelopesApproveRequestResponseSchema = Type.Object({
|
|
297
|
+
request: EnvelopeExpansionRequestSchema,
|
|
298
|
+
envelope: DeploymentEnvelopeSchema,
|
|
299
|
+
delta: EnvelopeBoundarySchema,
|
|
300
|
+
contractEvidence: DeploymentContractEvidenceSchema,
|
|
301
|
+
resourceBindings: Type.Array(DeploymentResourceBindingSchema),
|
|
136
302
|
});
|
|
137
|
-
export const
|
|
138
|
-
deploymentId: Type.String({ minLength: 1 }),
|
|
303
|
+
export const AuthEnvelopeExpansionsListSchema = Type.Object({
|
|
304
|
+
deploymentId: Type.Optional(Type.String({ minLength: 1 })),
|
|
305
|
+
state: Type.Optional(Type.Union([
|
|
306
|
+
Type.Literal("pending"),
|
|
307
|
+
Type.Literal("approved"),
|
|
308
|
+
Type.Literal("rejected"),
|
|
309
|
+
])),
|
|
310
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
311
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
312
|
+
});
|
|
313
|
+
export const AuthEnvelopeExpansionsListResponseSchema = Type.Object({
|
|
314
|
+
...PageResponseSchema(EnvelopeExpansionRequestSchema).properties,
|
|
315
|
+
});
|
|
316
|
+
export const AuthEnvelopeExpansionsRejectSchema = Type.Object({
|
|
317
|
+
requestId: Type.String({ minLength: 1 }),
|
|
318
|
+
reason: Type.Optional(Type.String({ minLength: 1 })),
|
|
319
|
+
});
|
|
320
|
+
export const AuthEnvelopeExpansionsRejectResponseSchema = Type.Object({
|
|
321
|
+
request: EnvelopeExpansionRequestSchema,
|
|
139
322
|
});
|
|
140
|
-
export const
|
|
141
|
-
|
|
323
|
+
export const AuthEnvelopeShrinkResourceSchema = Type.Object({
|
|
324
|
+
kind: EnvelopeResourceKindSchema,
|
|
325
|
+
alias: Type.String({ minLength: 1 }),
|
|
142
326
|
});
|
|
143
|
-
export const
|
|
327
|
+
export const AuthEnvelopeShrinkMissingBoundarySchema = Type.Object({
|
|
328
|
+
missing: EnvelopeBoundarySchema,
|
|
329
|
+
});
|
|
330
|
+
export const AuthEnvelopeShrinkImpactedSessionSchema = Type.Object({
|
|
331
|
+
sessionKey: Type.String({ minLength: 1 }),
|
|
332
|
+
type: ParticipantKindSchema,
|
|
333
|
+
contractId: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
334
|
+
contractDigest: Type.Union([DigestSchema, Type.Null()]),
|
|
335
|
+
missing: EnvelopeBoundarySchema,
|
|
336
|
+
});
|
|
337
|
+
export const AuthEnvelopeShrinkImpactedIdentityEnvelopeSchema = Type.Object({
|
|
338
|
+
identityEnvelopeId: Type.String({ minLength: 1 }),
|
|
339
|
+
identityAnchor: IdentityAnchorViewSchema,
|
|
340
|
+
missing: EnvelopeBoundarySchema,
|
|
341
|
+
});
|
|
342
|
+
export const AuthEnvelopeShrinkImpactedRequestSchema = Type.Object({
|
|
343
|
+
requestId: Type.String({ minLength: 1 }),
|
|
344
|
+
missing: EnvelopeBoundarySchema,
|
|
345
|
+
});
|
|
346
|
+
export const AuthEnvelopeChangeImpactSchema = Type.Object({
|
|
347
|
+
removed: EnvelopeBoundarySchema,
|
|
348
|
+
impactedSessions: Type.Array(AuthEnvelopeShrinkImpactedSessionSchema),
|
|
349
|
+
impactedServiceInstances: Type.Array(AuthEnvelopeShrinkMissingBoundarySchema),
|
|
350
|
+
impactedDeviceSessions: Type.Array(AuthEnvelopeShrinkImpactedSessionSchema),
|
|
351
|
+
impactedIdentityEnvelopes: Type.Array(AuthEnvelopeShrinkImpactedIdentityEnvelopeSchema),
|
|
352
|
+
impactedPendingRequests: Type.Array(AuthEnvelopeShrinkImpactedRequestSchema),
|
|
353
|
+
orphanedResources: Type.Array(AuthEnvelopeShrinkResourceSchema),
|
|
354
|
+
});
|
|
355
|
+
export const AuthEnvelopesChangesPreviewSchema = Type.Object({
|
|
144
356
|
deploymentId: Type.String({ minLength: 1 }),
|
|
357
|
+
proposedBoundary: EnvelopeBoundarySchema,
|
|
145
358
|
});
|
|
146
|
-
export const
|
|
147
|
-
|
|
359
|
+
export const AuthEnvelopesChangesPreviewResponseSchema = Type.Object({
|
|
360
|
+
current: DeploymentEnvelopeSchema,
|
|
361
|
+
proposed: DeploymentEnvelopeSchema,
|
|
362
|
+
impact: AuthEnvelopeChangeImpactSchema,
|
|
148
363
|
});
|
|
149
|
-
export const
|
|
364
|
+
export const AuthEnvelopesShrinkSchema = Type.Object({
|
|
150
365
|
deploymentId: Type.String({ minLength: 1 }),
|
|
366
|
+
proposedBoundary: EnvelopeBoundarySchema,
|
|
367
|
+
confirm: Type.Boolean(),
|
|
151
368
|
});
|
|
152
|
-
export const
|
|
153
|
-
|
|
369
|
+
export const AuthEnvelopesShrinkResponseSchema = Type.Object({
|
|
370
|
+
envelope: DeploymentEnvelopeSchema,
|
|
371
|
+
impact: AuthEnvelopeChangeImpactSchema,
|
|
372
|
+
retainedResources: Type.Array(AuthEnvelopeShrinkResourceSchema),
|
|
154
373
|
});
|
|
155
|
-
export const
|
|
374
|
+
export const AuthServiceInstancesProvisionSchema = Type.Object({
|
|
156
375
|
deploymentId: Type.String({ minLength: 1 }),
|
|
157
376
|
instanceKey: Type.String({ minLength: 1 }),
|
|
158
377
|
});
|
|
159
|
-
export const
|
|
378
|
+
export const AuthServiceInstancesProvisionResponseSchema = Type.Object({
|
|
160
379
|
instance: ServiceInstanceSchema,
|
|
161
380
|
});
|
|
162
|
-
export const
|
|
381
|
+
export const AuthServiceInstancesListSchema = Type.Object({
|
|
163
382
|
deploymentId: Type.Optional(Type.String({ minLength: 1 })),
|
|
164
383
|
disabled: Type.Optional(Type.Boolean()),
|
|
384
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
385
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
165
386
|
});
|
|
166
|
-
export const
|
|
167
|
-
|
|
387
|
+
export const AuthServiceInstancesListResponseSchema = Type.Object({
|
|
388
|
+
...PageResponseSchema(ServiceInstanceSchema).properties,
|
|
168
389
|
});
|
|
169
|
-
export const
|
|
390
|
+
export const AuthServiceInstancesDisableSchema = Type.Object({
|
|
170
391
|
instanceId: Type.String({ minLength: 1 }),
|
|
171
392
|
});
|
|
172
|
-
export const
|
|
393
|
+
export const AuthServiceInstancesDisableResponseSchema = Type.Object({
|
|
173
394
|
instance: ServiceInstanceSchema,
|
|
174
395
|
});
|
|
175
|
-
export const
|
|
396
|
+
export const AuthServiceInstancesEnableSchema = Type.Object({
|
|
176
397
|
instanceId: Type.String({ minLength: 1 }),
|
|
177
398
|
});
|
|
178
|
-
export const
|
|
399
|
+
export const AuthServiceInstancesEnableResponseSchema = Type.Object({
|
|
179
400
|
instance: ServiceInstanceSchema,
|
|
180
401
|
});
|
|
181
|
-
export const
|
|
402
|
+
export const AuthServiceInstancesRemoveSchema = Type.Object({
|
|
182
403
|
instanceId: Type.String({ minLength: 1 }),
|
|
183
404
|
});
|
|
184
|
-
export const
|
|
405
|
+
export const AuthServiceInstancesRemoveResponseSchema = Type.Object({
|
|
185
406
|
success: Type.Boolean(),
|
|
186
407
|
});
|
|
187
408
|
export const ContractAnalysisSummarySchema = Type.Object({
|
|
@@ -292,53 +513,30 @@ export const ContractAnalysisSchema = Type.Object({
|
|
|
292
513
|
jobs: Type.Array(ContractAnalysisJobsQueueSchema),
|
|
293
514
|
}),
|
|
294
515
|
});
|
|
295
|
-
export const InstalledContractSchema = Type.Object({
|
|
296
|
-
digest: DigestSchema,
|
|
297
|
-
id: Type.String({ minLength: 1 }),
|
|
298
|
-
displayName: Type.String({ minLength: 1 }),
|
|
299
|
-
description: Type.String({ minLength: 1 }),
|
|
300
|
-
installedAt: IsoDateStringSchema,
|
|
301
|
-
analysisSummary: Type.Optional(ContractAnalysisSummarySchema),
|
|
302
|
-
});
|
|
303
|
-
export const InstalledContractDetailSchema = Type.Object({
|
|
304
|
-
digest: DigestSchema,
|
|
305
|
-
id: Type.String({ minLength: 1 }),
|
|
306
|
-
displayName: Type.String({ minLength: 1 }),
|
|
307
|
-
description: Type.String({ minLength: 1 }),
|
|
308
|
-
installedAt: IsoDateStringSchema,
|
|
309
|
-
analysisSummary: Type.Optional(ContractAnalysisSummarySchema),
|
|
310
|
-
analysis: Type.Optional(ContractAnalysisSchema),
|
|
311
|
-
resources: Type.Optional(ContractResourcesSchema),
|
|
312
|
-
contract: OpenObjectSchema,
|
|
313
|
-
});
|
|
314
|
-
export const AuthListInstalledContractsSchema = Type.Object({});
|
|
315
|
-
export const AuthListInstalledContractsResponseSchema = Type.Object({
|
|
316
|
-
contracts: Type.Array(InstalledContractSchema),
|
|
317
|
-
});
|
|
318
|
-
export const AuthGetInstalledContractSchema = Type.Object({
|
|
319
|
-
digest: DigestSchema,
|
|
320
|
-
});
|
|
321
|
-
export const AuthGetInstalledContractResponseSchema = Type.Object({
|
|
322
|
-
contract: InstalledContractDetailSchema,
|
|
323
|
-
});
|
|
324
516
|
export const AuthenticatedUserSchema = Type.Object({
|
|
325
|
-
|
|
326
|
-
origin: Type.String(),
|
|
517
|
+
userId: Type.String({ minLength: 1 }),
|
|
327
518
|
active: Type.Boolean(),
|
|
328
519
|
name: Type.String(),
|
|
329
520
|
email: Type.String(),
|
|
330
521
|
image: Type.Optional(Type.String()),
|
|
331
522
|
capabilities: Type.Array(Type.String()),
|
|
523
|
+
identity: Type.Object({
|
|
524
|
+
identityId: Type.String({ minLength: 1 }),
|
|
525
|
+
provider: Type.String({ minLength: 1 }),
|
|
526
|
+
subject: Type.String({ minLength: 1 }),
|
|
527
|
+
}),
|
|
332
528
|
lastLogin: Type.Optional(IsoDateStringSchema),
|
|
333
529
|
});
|
|
334
|
-
export const
|
|
335
|
-
export const
|
|
336
|
-
sessionKey: Type.String(),
|
|
337
|
-
proof: Type.String(),
|
|
338
|
-
subject: Type.String(),
|
|
339
|
-
payloadHash: Type.String(),
|
|
340
|
-
|
|
341
|
-
|
|
530
|
+
export const AuthSessionsMeSchema = Type.Object({});
|
|
531
|
+
export const AuthRequestsValidateSchema = Type.Object({
|
|
532
|
+
sessionKey: Type.String({ minLength: 1 }),
|
|
533
|
+
proof: Type.String({ minLength: 1 }),
|
|
534
|
+
subject: Type.String({ minLength: 1 }),
|
|
535
|
+
payloadHash: Type.String({ minLength: 1 }),
|
|
536
|
+
iat: Type.Integer(),
|
|
537
|
+
requestId: Type.String({ minLength: 1 }),
|
|
538
|
+
capabilities: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
|
|
539
|
+
});
|
|
342
540
|
export const AuthenticatedServiceSchema = Type.Object({
|
|
343
541
|
type: Type.Literal("service"),
|
|
344
542
|
id: Type.String(),
|
|
@@ -367,7 +565,7 @@ const NullableAuthenticatedServiceSchema = Type.Union([
|
|
|
367
565
|
AuthenticatedServiceSchema,
|
|
368
566
|
Type.Null(),
|
|
369
567
|
]);
|
|
370
|
-
export const
|
|
568
|
+
export const AuthSessionsMeResponseSchema = Type.Object({
|
|
371
569
|
participantKind: ParticipantKindSchema,
|
|
372
570
|
user: NullableAuthenticatedUserSchema,
|
|
373
571
|
device: NullableAuthenticatedDeviceSchema,
|
|
@@ -377,40 +575,46 @@ export const CallerViewSchema = Type.Union([
|
|
|
377
575
|
Type.Object({
|
|
378
576
|
type: Type.Literal("user"),
|
|
379
577
|
participantKind: UserParticipantKindSchema,
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
578
|
+
userId: Type.String({ minLength: 1 }),
|
|
579
|
+
identity: Type.Object({
|
|
580
|
+
identityId: Type.String({ minLength: 1 }),
|
|
581
|
+
provider: Type.String({ minLength: 1 }),
|
|
582
|
+
subject: Type.String({ minLength: 1 }),
|
|
583
|
+
}),
|
|
383
584
|
active: Type.Boolean(),
|
|
384
585
|
name: Type.String(),
|
|
385
586
|
email: Type.String(),
|
|
386
587
|
image: Type.Optional(Type.String()),
|
|
387
588
|
capabilities: Type.Array(Type.String()),
|
|
589
|
+
lastAuth: IsoDateStringSchema,
|
|
388
590
|
}),
|
|
389
591
|
AuthenticatedServiceSchema,
|
|
390
592
|
AuthenticatedDeviceSchema,
|
|
391
593
|
]);
|
|
392
|
-
export const
|
|
594
|
+
export const AuthRequestsValidateResponseSchema = Type.Object({
|
|
393
595
|
allowed: Type.Boolean(),
|
|
394
596
|
inboxPrefix: Type.String(),
|
|
395
597
|
caller: CallerViewSchema,
|
|
396
598
|
});
|
|
397
|
-
export const
|
|
599
|
+
export const AuthIdentitiesListSchema = Type.Object({
|
|
398
600
|
user: Type.Optional(Type.String({ minLength: 1 })),
|
|
399
|
-
|
|
601
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
602
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
400
603
|
});
|
|
401
|
-
export const
|
|
402
|
-
|
|
604
|
+
export const AuthIdentitiesListResponseSchema = Type.Object({
|
|
605
|
+
...PageResponseSchema(ApprovalRecordViewSchema).properties,
|
|
403
606
|
});
|
|
404
|
-
export const
|
|
405
|
-
|
|
607
|
+
export const AuthIdentityEnvelopesRevokeSchema = Type.Object({
|
|
608
|
+
identityEnvelopeId: Type.String({ minLength: 1 }),
|
|
406
609
|
user: Type.Optional(Type.String({ minLength: 1 })),
|
|
407
610
|
});
|
|
408
|
-
export const
|
|
611
|
+
export const AuthIdentityEnvelopesRevokeResponseSchema = Type.Object({
|
|
409
612
|
success: Type.Boolean(),
|
|
410
613
|
});
|
|
411
614
|
export const UserGrantViewSchema = Type.Object({
|
|
412
|
-
|
|
413
|
-
|
|
615
|
+
identityEnvelopeId: Type.String({ minLength: 1 }),
|
|
616
|
+
identityAnchor: IdentityAnchorViewSchema,
|
|
617
|
+
contractEvidence: ContractEvidenceViewSchema,
|
|
414
618
|
displayName: Type.String({ minLength: 1 }),
|
|
415
619
|
description: Type.String({ minLength: 1 }),
|
|
416
620
|
participantKind: UserParticipantKindSchema,
|
|
@@ -418,48 +622,140 @@ export const UserGrantViewSchema = Type.Object({
|
|
|
418
622
|
grantedAt: IsoDateStringSchema,
|
|
419
623
|
updatedAt: IsoDateStringSchema,
|
|
420
624
|
});
|
|
421
|
-
export const
|
|
422
|
-
|
|
423
|
-
|
|
625
|
+
export const AuthIdentitiesGrantsListSchema = Type.Object({
|
|
626
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
627
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
424
628
|
});
|
|
425
|
-
export const
|
|
426
|
-
|
|
629
|
+
export const AuthIdentitiesGrantsListResponseSchema = Type.Object({
|
|
630
|
+
...PageResponseSchema(UserGrantViewSchema).properties,
|
|
427
631
|
});
|
|
428
|
-
export const
|
|
429
|
-
success: Type.Boolean(),
|
|
430
|
-
});
|
|
431
|
-
export const PortalSchema = Type.Object({
|
|
632
|
+
export const LoginPortalRecordSchema = Type.Object({
|
|
432
633
|
portalId: Type.String({ minLength: 1 }),
|
|
433
|
-
|
|
634
|
+
displayName: Type.String({ minLength: 1 }),
|
|
635
|
+
entryUrl: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
636
|
+
builtIn: Type.Boolean(),
|
|
434
637
|
disabled: Type.Boolean(),
|
|
638
|
+
createdAt: IsoDateStringSchema,
|
|
639
|
+
updatedAt: IsoDateStringSchema,
|
|
435
640
|
});
|
|
436
|
-
export const
|
|
641
|
+
export const LoginPortalSettingsSchema = Type.Object({
|
|
437
642
|
portalId: Type.String({ minLength: 1 }),
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
643
|
+
localRegistrationEnabled: Type.Boolean(),
|
|
644
|
+
federatedRegistrationEnabled: Type.Boolean(),
|
|
645
|
+
allowedFederatedProviders: Type.Union([
|
|
646
|
+
Type.Array(Type.String({ minLength: 1 })),
|
|
647
|
+
Type.Null(),
|
|
648
|
+
]),
|
|
649
|
+
selfRegisteredAccountActive: Type.Boolean(),
|
|
650
|
+
updatedAt: IsoDateStringSchema,
|
|
651
|
+
});
|
|
652
|
+
export const LoginPortalFederatedProviderSchema = Type.Object({
|
|
653
|
+
id: Type.String({ minLength: 1 }),
|
|
654
|
+
displayName: Type.String({ minLength: 1 }),
|
|
655
|
+
type: Type.String({ minLength: 1 }),
|
|
656
|
+
});
|
|
657
|
+
export const LoginPortalRouteSchema = Type.Object({
|
|
658
|
+
routeKey: Type.String({ minLength: 1 }),
|
|
659
|
+
portalId: Type.String({ minLength: 1 }),
|
|
660
|
+
contractId: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
661
|
+
origin: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
442
662
|
disabled: Type.Boolean(),
|
|
443
|
-
createdAt: IsoDateStringSchema,
|
|
444
663
|
updatedAt: IsoDateStringSchema,
|
|
445
664
|
});
|
|
446
|
-
const
|
|
447
|
-
|
|
448
|
-
Type.
|
|
449
|
-
|
|
450
|
-
export const LoginPortalDefaultSchema = Type.Object({
|
|
451
|
-
portalId: NullablePortalIdSchema,
|
|
665
|
+
export const LoginPortalSummarySchema = Type.Object({
|
|
666
|
+
...LoginPortalRecordSchema.properties,
|
|
667
|
+
routeCount: Type.Integer({ minimum: 0 }),
|
|
668
|
+
activeRouteCount: Type.Integer({ minimum: 0 }),
|
|
452
669
|
});
|
|
453
|
-
export const
|
|
454
|
-
|
|
670
|
+
export const AuthPortalsListSchema = Type.Object({
|
|
671
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
672
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
455
673
|
});
|
|
456
|
-
export const
|
|
457
|
-
|
|
458
|
-
portalId: NullablePortalIdSchema,
|
|
674
|
+
export const AuthPortalsListResponseSchema = Type.Object({
|
|
675
|
+
...PageResponseSchema(LoginPortalSummarySchema).properties,
|
|
459
676
|
});
|
|
460
|
-
export const
|
|
461
|
-
|
|
462
|
-
|
|
677
|
+
export const AuthPortalsGetSchema = Type.Object({
|
|
678
|
+
portalId: Type.String({ minLength: 1 }),
|
|
679
|
+
});
|
|
680
|
+
export const AuthPortalsGetResponseSchema = Type.Object({
|
|
681
|
+
portal: LoginPortalRecordSchema,
|
|
682
|
+
settings: LoginPortalSettingsSchema,
|
|
683
|
+
routes: Type.Array(LoginPortalRouteSchema),
|
|
684
|
+
defaultCapabilities: Type.Array(Type.String({ minLength: 1 })),
|
|
685
|
+
defaultCapabilityGroups: Type.Array(Type.String({ minLength: 1 })),
|
|
686
|
+
federatedProviders: Type.Array(LoginPortalFederatedProviderSchema),
|
|
687
|
+
});
|
|
688
|
+
export const AuthPortalsPutSchema = Type.Object({
|
|
689
|
+
portalId: Type.String({ minLength: 1 }),
|
|
690
|
+
displayName: Type.String({ minLength: 1 }),
|
|
691
|
+
entryUrl: Type.String({ minLength: 1 }),
|
|
692
|
+
disabled: Type.Optional(Type.Boolean()),
|
|
693
|
+
});
|
|
694
|
+
export const AuthPortalsPutResponseSchema = Type.Object({
|
|
695
|
+
portal: LoginPortalRecordSchema,
|
|
696
|
+
});
|
|
697
|
+
export const AuthPortalsRemoveSchema = Type.Object({
|
|
698
|
+
portalId: Type.String({ minLength: 1 }),
|
|
699
|
+
});
|
|
700
|
+
export const AuthPortalsRemoveResponseSchema = Type.Object({
|
|
701
|
+
success: Type.Boolean(),
|
|
702
|
+
});
|
|
703
|
+
export const AuthPortalsLoginSettingsGetSchema = Type.Object({
|
|
704
|
+
portalId: Type.String({ minLength: 1 }),
|
|
705
|
+
});
|
|
706
|
+
export const AuthPortalsLoginSettingsResponseSchema = Type.Object({
|
|
707
|
+
portal: LoginPortalRecordSchema,
|
|
708
|
+
settings: LoginPortalSettingsSchema,
|
|
709
|
+
defaultCapabilities: Type.Array(Type.String({ minLength: 1 })),
|
|
710
|
+
defaultCapabilityGroups: Type.Array(Type.String({ minLength: 1 })),
|
|
711
|
+
federatedProviders: Type.Array(LoginPortalFederatedProviderSchema),
|
|
712
|
+
});
|
|
713
|
+
export const AuthPortalsLoginSettingsUpdateSchema = Type.Object({
|
|
714
|
+
portalId: Type.String({ minLength: 1 }),
|
|
715
|
+
localRegistrationEnabled: Type.Boolean(),
|
|
716
|
+
federatedRegistrationEnabled: Type.Boolean(),
|
|
717
|
+
allowedFederatedProviders: Type.Union([
|
|
718
|
+
Type.Array(Type.String({ minLength: 1 })),
|
|
719
|
+
Type.Null(),
|
|
720
|
+
]),
|
|
721
|
+
selfRegisteredAccountActive: Type.Boolean(),
|
|
722
|
+
defaultCapabilities: Type.Array(Type.String({ minLength: 1 })),
|
|
723
|
+
defaultCapabilityGroups: Type.Array(Type.String({ minLength: 1 })),
|
|
724
|
+
});
|
|
725
|
+
export const AuthPortalsRoutesPutSchema = Type.Object({
|
|
726
|
+
portalId: Type.String({ minLength: 1 }),
|
|
727
|
+
contractId: Type.Optional(Type.Union([
|
|
728
|
+
Type.String({ minLength: 1 }),
|
|
729
|
+
Type.Null(),
|
|
730
|
+
])),
|
|
731
|
+
origin: Type.Optional(Type.Union([Type.String({ minLength: 1 }), Type.Null()])),
|
|
732
|
+
disabled: Type.Optional(Type.Boolean()),
|
|
733
|
+
});
|
|
734
|
+
export const AuthPortalsRoutesPutResponseSchema = Type.Object({
|
|
735
|
+
route: LoginPortalRouteSchema,
|
|
736
|
+
});
|
|
737
|
+
export const AuthPortalsRoutesRemoveSchema = Type.Object({
|
|
738
|
+
portalId: Type.String({ minLength: 1 }),
|
|
739
|
+
contractId: Type.Optional(Type.Union([
|
|
740
|
+
Type.String({ minLength: 1 }),
|
|
741
|
+
Type.Null(),
|
|
742
|
+
])),
|
|
743
|
+
origin: Type.Optional(Type.Union([Type.String({ minLength: 1 }), Type.Null()])),
|
|
744
|
+
});
|
|
745
|
+
export const AuthPortalsRoutesRemoveResponseSchema = Type.Object({
|
|
746
|
+
success: Type.Boolean(),
|
|
747
|
+
});
|
|
748
|
+
export const FlowRegistrationAvailabilitySchema = Type.Object({
|
|
749
|
+
localIdentity: Type.Object({
|
|
750
|
+
available: Type.Boolean(),
|
|
751
|
+
}),
|
|
752
|
+
federatedIdentity: Type.Object({
|
|
753
|
+
available: Type.Boolean(),
|
|
754
|
+
providers: Type.Array(Type.Object({
|
|
755
|
+
id: Type.String({ minLength: 1 }),
|
|
756
|
+
displayName: Type.String({ minLength: 1 }),
|
|
757
|
+
})),
|
|
758
|
+
}),
|
|
463
759
|
});
|
|
464
760
|
export const PortalFlowStateSchema = Type.Union([
|
|
465
761
|
Type.Object({
|
|
@@ -476,6 +772,8 @@ export const PortalFlowStateSchema = Type.Union([
|
|
|
476
772
|
description: Type.String({ minLength: 1 }),
|
|
477
773
|
context: Type.Optional(OpenObjectSchema),
|
|
478
774
|
}),
|
|
775
|
+
portal: Type.Optional(LoginPortalRecordSchema),
|
|
776
|
+
registration: Type.Optional(FlowRegistrationAvailabilitySchema),
|
|
479
777
|
}),
|
|
480
778
|
Type.Object({
|
|
481
779
|
status: Type.Literal("approval_required"),
|
|
@@ -487,12 +785,12 @@ export const PortalFlowStateSchema = Type.Union([
|
|
|
487
785
|
email: Type.Optional(Type.String({ minLength: 1 })),
|
|
488
786
|
image: Type.Optional(Type.String({ minLength: 1 })),
|
|
489
787
|
}),
|
|
490
|
-
approval:
|
|
788
|
+
approval: ApprovalEvidenceViewSchema,
|
|
491
789
|
}),
|
|
492
790
|
Type.Object({
|
|
493
791
|
status: Type.Literal("approval_denied"),
|
|
494
792
|
flowId: Type.String({ minLength: 1 }),
|
|
495
|
-
approval:
|
|
793
|
+
approval: ApprovalEvidenceViewSchema,
|
|
496
794
|
returnLocation: Type.Optional(Type.String({ minLength: 1 })),
|
|
497
795
|
}),
|
|
498
796
|
Type.Object({
|
|
@@ -503,7 +801,7 @@ export const PortalFlowStateSchema = Type.Union([
|
|
|
503
801
|
id: Type.String({ minLength: 1 }),
|
|
504
802
|
name: Type.Optional(Type.String({ minLength: 1 })),
|
|
505
803
|
})),
|
|
506
|
-
approval:
|
|
804
|
+
approval: ApprovalEvidenceViewSchema,
|
|
507
805
|
missingCapabilities: Type.Array(Type.String()),
|
|
508
806
|
userCapabilities: Type.Array(Type.String()),
|
|
509
807
|
returnLocation: Type.Optional(Type.String({ minLength: 1 })),
|
|
@@ -516,11 +814,91 @@ export const PortalFlowStateSchema = Type.Union([
|
|
|
516
814
|
status: Type.Literal("expired"),
|
|
517
815
|
}),
|
|
518
816
|
]);
|
|
519
|
-
export const DeviceDeploymentSchema = Type.Object({
|
|
817
|
+
export const DeviceDeploymentSchema = Type.Unsafe(Type.Object({
|
|
520
818
|
deploymentId: Type.String({ minLength: 1 }),
|
|
521
819
|
reviewMode: Type.Optional(Type.Union([Type.Literal("none"), Type.Literal("required")])),
|
|
522
820
|
disabled: Type.Boolean(),
|
|
523
|
-
|
|
821
|
+
}));
|
|
822
|
+
export const AuthDeploymentKindSchema = Type.Union([
|
|
823
|
+
Type.Literal("service"),
|
|
824
|
+
Type.Literal("device"),
|
|
825
|
+
]);
|
|
826
|
+
export const AuthDeploymentSchema = Type.Union([
|
|
827
|
+
Type.Object({
|
|
828
|
+
kind: Type.Literal("service"),
|
|
829
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
830
|
+
namespaces: Type.Array(Type.String({ minLength: 1 })),
|
|
831
|
+
disabled: Type.Boolean(),
|
|
832
|
+
}),
|
|
833
|
+
Type.Object({
|
|
834
|
+
kind: Type.Literal("device"),
|
|
835
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
836
|
+
reviewMode: Type.Optional(Type.Union([Type.Literal("none"), Type.Literal("required")])),
|
|
837
|
+
disabled: Type.Boolean(),
|
|
838
|
+
}),
|
|
839
|
+
]);
|
|
840
|
+
export const AuthDeploymentsCreateSchema = Type.Union([
|
|
841
|
+
Type.Object({
|
|
842
|
+
kind: Type.Literal("service"),
|
|
843
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
844
|
+
namespaces: Type.Array(Type.String({ minLength: 1 })),
|
|
845
|
+
}),
|
|
846
|
+
Type.Object({
|
|
847
|
+
kind: Type.Literal("device"),
|
|
848
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
849
|
+
reviewMode: Type.Optional(Type.Union([Type.Literal("none"), Type.Literal("required")])),
|
|
850
|
+
}),
|
|
851
|
+
]);
|
|
852
|
+
export const AuthDeploymentsCreateResponseSchema = Type.Object({
|
|
853
|
+
deployment: AuthDeploymentSchema,
|
|
854
|
+
});
|
|
855
|
+
export const AuthDeploymentsListSchema = Type.Object({
|
|
856
|
+
kind: Type.Optional(AuthDeploymentKindSchema),
|
|
857
|
+
disabled: Type.Optional(Type.Boolean()),
|
|
858
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
859
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
860
|
+
});
|
|
861
|
+
export const AuthDeploymentsListResponseSchema = Type.Object({
|
|
862
|
+
...PageResponseSchema(AuthDeploymentSchema).properties,
|
|
863
|
+
});
|
|
864
|
+
export const AuthDeploymentsDisableSchema = Type.Object({
|
|
865
|
+
kind: AuthDeploymentKindSchema,
|
|
866
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
867
|
+
});
|
|
868
|
+
export const AuthDeploymentsDisableResponseSchema = Type.Object({
|
|
869
|
+
deployment: AuthDeploymentSchema,
|
|
870
|
+
});
|
|
871
|
+
export const AuthCatalogIssuesResolveSchema = Type.Object({
|
|
872
|
+
issueId: Type.String({ minLength: 1 }),
|
|
873
|
+
action: Type.Union([
|
|
874
|
+
Type.Literal("keep-current"),
|
|
875
|
+
Type.Literal("force-replace"),
|
|
876
|
+
]),
|
|
877
|
+
});
|
|
878
|
+
export const AuthCatalogIssuesResolveResponseSchema = Type.Object({
|
|
879
|
+
success: Type.Literal(true),
|
|
880
|
+
issueId: Type.String({ minLength: 1 }),
|
|
881
|
+
action: Type.Union([
|
|
882
|
+
Type.Literal("keep-current"),
|
|
883
|
+
Type.Literal("force-replace"),
|
|
884
|
+
]),
|
|
885
|
+
deletedEvidence: Type.Array(DeploymentContractEvidenceSchema),
|
|
886
|
+
});
|
|
887
|
+
export const AuthDeploymentsEnableSchema = Type.Object({
|
|
888
|
+
kind: AuthDeploymentKindSchema,
|
|
889
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
890
|
+
});
|
|
891
|
+
export const AuthDeploymentsEnableResponseSchema = Type.Object({
|
|
892
|
+
deployment: AuthDeploymentSchema,
|
|
893
|
+
});
|
|
894
|
+
export const AuthDeploymentsRemoveSchema = Type.Object({
|
|
895
|
+
kind: AuthDeploymentKindSchema,
|
|
896
|
+
deploymentId: Type.String({ minLength: 1 }),
|
|
897
|
+
cascade: Type.Optional(Type.Boolean()),
|
|
898
|
+
purgeUnusedContracts: Type.Optional(Type.Boolean()),
|
|
899
|
+
});
|
|
900
|
+
export const AuthDeploymentsRemoveResponseSchema = Type.Object({
|
|
901
|
+
success: Type.Boolean(),
|
|
524
902
|
});
|
|
525
903
|
export const DeviceMetadataSchema = Type.Record(Type.String({ minLength: 1 }), Type.String({ minLength: 1 }));
|
|
526
904
|
export const DeviceSchema = Type.Object({
|
|
@@ -541,8 +919,13 @@ export const DeviceSchema = Type.Object({
|
|
|
541
919
|
revokedAt: Type.Union([IsoDateStringSchema, Type.Null()]),
|
|
542
920
|
});
|
|
543
921
|
export const DeviceActivationActorSchema = Type.Object({
|
|
544
|
-
|
|
545
|
-
|
|
922
|
+
participantKind: UserParticipantKindSchema,
|
|
923
|
+
userId: Type.String({ minLength: 1 }),
|
|
924
|
+
identity: Type.Object({
|
|
925
|
+
identityId: Type.String({ minLength: 1 }),
|
|
926
|
+
provider: Type.String({ minLength: 1 }),
|
|
927
|
+
subject: Type.String({ minLength: 1 }),
|
|
928
|
+
}),
|
|
546
929
|
});
|
|
547
930
|
export const DeviceActivationRecordSchema = Type.Object({
|
|
548
931
|
instanceId: Type.String({ minLength: 1 }),
|
|
@@ -567,19 +950,16 @@ export const DeviceActivationReviewSchema = Type.Object({
|
|
|
567
950
|
decidedAt: Type.Union([IsoDateStringSchema, Type.Null()]),
|
|
568
951
|
reason: Type.Optional(Type.String({ minLength: 1 })),
|
|
569
952
|
});
|
|
570
|
-
export const
|
|
953
|
+
export const AuthDeviceUserAuthoritiesReviewRequestedEventSchema = Type.Object({
|
|
571
954
|
reviewId: Type.String({ minLength: 1 }),
|
|
572
955
|
flowId: Type.String({ minLength: 1 }),
|
|
573
956
|
instanceId: Type.String({ minLength: 1 }),
|
|
574
957
|
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
575
958
|
deploymentId: Type.String({ minLength: 1 }),
|
|
576
959
|
requestedAt: IsoDateStringSchema,
|
|
577
|
-
requestedBy:
|
|
578
|
-
origin: Type.String({ minLength: 1 }),
|
|
579
|
-
id: Type.String({ minLength: 1 }),
|
|
580
|
-
}),
|
|
960
|
+
requestedBy: DeviceActivationActorSchema,
|
|
581
961
|
});
|
|
582
|
-
export const
|
|
962
|
+
export const AuthDeviceUserAuthoritiesRequestedEventSchema = Type.Object({
|
|
583
963
|
flowId: Type.String({ minLength: 1 }),
|
|
584
964
|
instanceId: Type.String({ minLength: 1 }),
|
|
585
965
|
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
@@ -587,7 +967,7 @@ export const AuthDeviceActivationRequestedEventSchema = Type.Object({
|
|
|
587
967
|
requestedAt: IsoDateStringSchema,
|
|
588
968
|
requestedBy: DeviceActivationActorSchema,
|
|
589
969
|
});
|
|
590
|
-
export const
|
|
970
|
+
export const AuthDeviceUserAuthoritiesApprovedEventSchema = Type.Object({
|
|
591
971
|
reviewId: Type.String({ minLength: 1 }),
|
|
592
972
|
flowId: Type.String({ minLength: 1 }),
|
|
593
973
|
instanceId: Type.String({ minLength: 1 }),
|
|
@@ -596,17 +976,14 @@ export const AuthDeviceActivationApprovedEventSchema = Type.Object({
|
|
|
596
976
|
requestedAt: IsoDateStringSchema,
|
|
597
977
|
approvedAt: IsoDateStringSchema,
|
|
598
978
|
requestedBy: DeviceActivationActorSchema,
|
|
599
|
-
approvedBy:
|
|
600
|
-
id: Type.String({ minLength: 1 }),
|
|
601
|
-
origin: Type.Optional(Type.String({ minLength: 1 })),
|
|
602
|
-
}),
|
|
979
|
+
approvedBy: DeviceActivationActorSchema,
|
|
603
980
|
});
|
|
604
|
-
export const
|
|
981
|
+
export const AuthDeviceUserAuthoritiesResolvedEventSchema = Type.Object({
|
|
605
982
|
instanceId: Type.String({ minLength: 1 }),
|
|
606
983
|
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
607
984
|
deploymentId: Type.String({ minLength: 1 }),
|
|
608
|
-
|
|
609
|
-
|
|
985
|
+
resolvedAt: IsoDateStringSchema,
|
|
986
|
+
resolvedBy: DeviceActivationActorSchema,
|
|
610
987
|
flowId: Type.Optional(Type.String({ minLength: 1 })),
|
|
611
988
|
reviewId: Type.Optional(Type.String({ minLength: 1 })),
|
|
612
989
|
});
|
|
@@ -621,164 +998,23 @@ export const DeviceConnectInfoSchema = Type.Object({
|
|
|
621
998
|
}),
|
|
622
999
|
auth: Type.Object({
|
|
623
1000
|
mode: Type.Literal("device_identity"),
|
|
1001
|
+
authority: Type.Union([
|
|
1002
|
+
Type.Literal("admin_reviewed"),
|
|
1003
|
+
Type.Literal("user_delegated"),
|
|
1004
|
+
]),
|
|
624
1005
|
iatSkewSeconds: Type.Number(),
|
|
625
1006
|
}),
|
|
626
1007
|
});
|
|
627
|
-
export const
|
|
628
|
-
portalId: Type.String({ minLength: 1 }),
|
|
629
|
-
entryUrl: Type.String({ minLength: 1 }),
|
|
630
|
-
});
|
|
631
|
-
export const AuthCreatePortalResponseSchema = Type.Object({
|
|
632
|
-
portal: PortalSchema,
|
|
633
|
-
});
|
|
634
|
-
export const AuthListPortalsSchema = Type.Object({});
|
|
635
|
-
export const AuthListPortalsResponseSchema = Type.Object({
|
|
636
|
-
portals: Type.Array(PortalSchema),
|
|
637
|
-
});
|
|
638
|
-
export const AuthDisablePortalSchema = Type.Object({
|
|
639
|
-
portalId: Type.String({ minLength: 1 }),
|
|
640
|
-
});
|
|
641
|
-
export const AuthDisablePortalResponseSchema = Type.Object({
|
|
642
|
-
success: Type.Boolean(),
|
|
643
|
-
});
|
|
644
|
-
export const AuthListPortalProfilesSchema = Type.Object({});
|
|
645
|
-
export const AuthListPortalProfilesResponseSchema = Type.Object({
|
|
646
|
-
profiles: Type.Array(PortalProfileSchema),
|
|
647
|
-
});
|
|
648
|
-
export const AuthSetPortalProfileSchema = Type.Object({
|
|
649
|
-
portalId: Type.String({ minLength: 1 }),
|
|
650
|
-
entryUrl: Type.String({ minLength: 1 }),
|
|
651
|
-
contractId: Type.String({ minLength: 1 }),
|
|
652
|
-
allowedOrigins: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
|
|
653
|
-
});
|
|
654
|
-
export const AuthSetPortalProfileResponseSchema = Type.Object({
|
|
655
|
-
profile: PortalProfileSchema,
|
|
656
|
-
});
|
|
657
|
-
export const AuthDisablePortalProfileSchema = Type.Object({
|
|
658
|
-
portalId: Type.String({ minLength: 1 }),
|
|
659
|
-
});
|
|
660
|
-
export const AuthDisablePortalProfileResponseSchema = Type.Object({
|
|
661
|
-
profile: PortalProfileSchema,
|
|
662
|
-
});
|
|
663
|
-
export const AuthGetLoginPortalDefaultSchema = Type.Object({});
|
|
664
|
-
export const AuthGetLoginPortalDefaultResponseSchema = Type.Object({
|
|
665
|
-
defaultPortal: LoginPortalDefaultSchema,
|
|
666
|
-
});
|
|
667
|
-
export const AuthSetLoginPortalDefaultSchema = Type.Object({
|
|
668
|
-
portalId: NullablePortalIdSchema,
|
|
669
|
-
});
|
|
670
|
-
export const AuthSetLoginPortalDefaultResponseSchema = Type.Object({
|
|
671
|
-
defaultPortal: LoginPortalDefaultSchema,
|
|
672
|
-
});
|
|
673
|
-
export const AuthListLoginPortalSelectionsSchema = Type.Object({});
|
|
674
|
-
export const AuthListLoginPortalSelectionsResponseSchema = Type.Object({
|
|
675
|
-
selections: Type.Array(LoginPortalSelectionSchema),
|
|
676
|
-
});
|
|
677
|
-
export const AuthSetLoginPortalSelectionSchema = Type.Object({
|
|
678
|
-
contractId: Type.String({ minLength: 1 }),
|
|
679
|
-
portalId: NullablePortalIdSchema,
|
|
680
|
-
});
|
|
681
|
-
export const AuthSetLoginPortalSelectionResponseSchema = Type.Object({
|
|
682
|
-
selection: LoginPortalSelectionSchema,
|
|
683
|
-
});
|
|
684
|
-
export const AuthClearLoginPortalSelectionSchema = Type.Object({
|
|
685
|
-
contractId: Type.String({ minLength: 1 }),
|
|
686
|
-
});
|
|
687
|
-
export const AuthClearLoginPortalSelectionResponseSchema = Type.Object({
|
|
688
|
-
success: Type.Boolean(),
|
|
689
|
-
});
|
|
690
|
-
export const AuthGetDevicePortalDefaultSchema = Type.Object({});
|
|
691
|
-
export const AuthGetDevicePortalDefaultResponseSchema = Type.Object({
|
|
692
|
-
defaultPortal: DevicePortalDefaultSchema,
|
|
693
|
-
});
|
|
694
|
-
export const AuthSetDevicePortalDefaultSchema = Type.Object({
|
|
695
|
-
portalId: NullablePortalIdSchema,
|
|
696
|
-
});
|
|
697
|
-
export const AuthSetDevicePortalDefaultResponseSchema = Type.Object({
|
|
698
|
-
defaultPortal: DevicePortalDefaultSchema,
|
|
699
|
-
});
|
|
700
|
-
export const AuthListDevicePortalSelectionsSchema = Type.Object({});
|
|
701
|
-
export const AuthListDevicePortalSelectionsResponseSchema = Type.Object({
|
|
702
|
-
selections: Type.Array(DevicePortalSelectionSchema),
|
|
703
|
-
});
|
|
704
|
-
export const AuthSetDevicePortalSelectionSchema = Type.Object({
|
|
705
|
-
deploymentId: Type.String({ minLength: 1 }),
|
|
706
|
-
portalId: NullablePortalIdSchema,
|
|
707
|
-
});
|
|
708
|
-
export const AuthSetDevicePortalSelectionResponseSchema = Type.Object({
|
|
709
|
-
selection: DevicePortalSelectionSchema,
|
|
710
|
-
});
|
|
711
|
-
export const AuthClearDevicePortalSelectionSchema = Type.Object({
|
|
712
|
-
deploymentId: Type.String({ minLength: 1 }),
|
|
713
|
-
});
|
|
714
|
-
export const AuthClearDevicePortalSelectionResponseSchema = Type.Object({
|
|
715
|
-
success: Type.Boolean(),
|
|
716
|
-
});
|
|
717
|
-
export const AuthCreateDeviceDeploymentSchema = Type.Object({
|
|
718
|
-
deploymentId: Type.String({ minLength: 1 }),
|
|
719
|
-
reviewMode: Type.Optional(Type.Union([Type.Literal("none"), Type.Literal("required")])),
|
|
720
|
-
});
|
|
721
|
-
export const AuthCreateDeviceDeploymentResponseSchema = Type.Object({
|
|
722
|
-
deployment: DeviceDeploymentSchema,
|
|
723
|
-
});
|
|
724
|
-
export const AuthListDeviceDeploymentsSchema = Type.Object({
|
|
725
|
-
disabled: Type.Optional(Type.Boolean()),
|
|
726
|
-
});
|
|
727
|
-
export const AuthListDeviceDeploymentsResponseSchema = Type.Object({
|
|
728
|
-
deployments: Type.Array(DeviceDeploymentSchema),
|
|
729
|
-
});
|
|
730
|
-
export const AuthApplyDeviceDeploymentContractSchema = Type.Object({
|
|
731
|
-
deploymentId: Type.String({ minLength: 1 }),
|
|
732
|
-
contract: OpenObjectSchema,
|
|
733
|
-
expectedDigest: DigestSchema,
|
|
734
|
-
replaceExisting: Type.Optional(Type.Boolean()),
|
|
735
|
-
});
|
|
736
|
-
export const AuthApplyDeviceDeploymentContractResponseSchema = Type.Object({
|
|
737
|
-
deployment: DeviceDeploymentSchema,
|
|
738
|
-
contract: Type.Object({
|
|
739
|
-
digest: DigestSchema,
|
|
740
|
-
id: Type.String({ minLength: 1 }),
|
|
741
|
-
displayName: Type.String({ minLength: 1 }),
|
|
742
|
-
description: Type.String({ minLength: 1 }),
|
|
743
|
-
installedAt: IsoDateStringSchema,
|
|
744
|
-
}),
|
|
745
|
-
});
|
|
746
|
-
export const AuthUnapplyDeviceDeploymentContractSchema = Type.Object({
|
|
747
|
-
deploymentId: Type.String({ minLength: 1 }),
|
|
748
|
-
contractId: Type.String({ minLength: 1 }),
|
|
749
|
-
digests: Type.Optional(Type.Array(DigestSchema)),
|
|
750
|
-
});
|
|
751
|
-
export const AuthUnapplyDeviceDeploymentContractResponseSchema = Type.Object({
|
|
752
|
-
deployment: DeviceDeploymentSchema,
|
|
753
|
-
});
|
|
754
|
-
export const AuthDisableDeviceDeploymentSchema = Type.Object({
|
|
755
|
-
deploymentId: Type.String({ minLength: 1 }),
|
|
756
|
-
});
|
|
757
|
-
export const AuthDisableDeviceDeploymentResponseSchema = Type.Object({
|
|
758
|
-
deployment: DeviceDeploymentSchema,
|
|
759
|
-
});
|
|
760
|
-
export const AuthEnableDeviceDeploymentSchema = Type.Object({
|
|
761
|
-
deploymentId: Type.String({ minLength: 1 }),
|
|
762
|
-
});
|
|
763
|
-
export const AuthEnableDeviceDeploymentResponseSchema = Type.Object({
|
|
764
|
-
deployment: DeviceDeploymentSchema,
|
|
765
|
-
});
|
|
766
|
-
export const AuthRemoveDeviceDeploymentSchema = Type.Object({
|
|
767
|
-
deploymentId: Type.String({ minLength: 1 }),
|
|
768
|
-
});
|
|
769
|
-
export const AuthRemoveDeviceDeploymentResponseSchema = Type.Object({
|
|
770
|
-
success: Type.Boolean(),
|
|
771
|
-
});
|
|
772
|
-
export const AuthProvisionDeviceInstanceSchema = Type.Object({
|
|
1008
|
+
export const AuthDevicesProvisionSchema = Type.Object({
|
|
773
1009
|
deploymentId: Type.String({ minLength: 1 }),
|
|
774
1010
|
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
775
1011
|
activationKey: Type.String({ minLength: 1 }),
|
|
776
1012
|
metadata: Type.Optional(DeviceMetadataSchema),
|
|
777
1013
|
});
|
|
778
|
-
export const
|
|
1014
|
+
export const AuthDevicesProvisionResponseSchema = Type.Object({
|
|
779
1015
|
instance: DeviceSchema,
|
|
780
1016
|
});
|
|
781
|
-
export const
|
|
1017
|
+
export const AuthDevicesListSchema = Type.Object({
|
|
782
1018
|
deploymentId: Type.Optional(Type.String({ minLength: 1 })),
|
|
783
1019
|
state: Type.Optional(Type.Union([
|
|
784
1020
|
Type.Literal("registered"),
|
|
@@ -786,39 +1022,41 @@ export const AuthListDeviceInstancesSchema = Type.Object({
|
|
|
786
1022
|
Type.Literal("revoked"),
|
|
787
1023
|
Type.Literal("disabled"),
|
|
788
1024
|
])),
|
|
1025
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1026
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
789
1027
|
});
|
|
790
|
-
export const
|
|
791
|
-
|
|
1028
|
+
export const AuthDevicesListResponseSchema = Type.Object({
|
|
1029
|
+
...PageResponseSchema(DeviceSchema).properties,
|
|
792
1030
|
});
|
|
793
|
-
export const
|
|
1031
|
+
export const AuthDevicesDisableSchema = Type.Object({
|
|
794
1032
|
instanceId: Type.String({ minLength: 1 }),
|
|
795
1033
|
});
|
|
796
|
-
export const
|
|
1034
|
+
export const AuthDevicesDisableResponseSchema = Type.Object({
|
|
797
1035
|
instance: DeviceSchema,
|
|
798
1036
|
});
|
|
799
|
-
export const
|
|
1037
|
+
export const AuthDevicesEnableSchema = Type.Object({
|
|
800
1038
|
instanceId: Type.String({ minLength: 1 }),
|
|
801
1039
|
});
|
|
802
|
-
export const
|
|
1040
|
+
export const AuthDevicesEnableResponseSchema = Type.Object({
|
|
803
1041
|
instance: DeviceSchema,
|
|
804
1042
|
});
|
|
805
|
-
export const
|
|
1043
|
+
export const AuthDevicesRemoveSchema = Type.Object({
|
|
806
1044
|
instanceId: Type.String({ minLength: 1 }),
|
|
807
1045
|
});
|
|
808
|
-
export const
|
|
1046
|
+
export const AuthDevicesRemoveResponseSchema = Type.Object({
|
|
809
1047
|
success: Type.Boolean(),
|
|
810
1048
|
});
|
|
811
|
-
export const
|
|
1049
|
+
export const AuthResolveDeviceUserAuthoritiesSchema = Type.Object({
|
|
812
1050
|
flowId: Type.String({ minLength: 1 }),
|
|
813
1051
|
});
|
|
814
|
-
export const
|
|
1052
|
+
export const AuthResolveDeviceUserAuthoritiesProgressSchema = Type.Object({
|
|
815
1053
|
status: Type.Literal("pending_review"),
|
|
816
1054
|
reviewId: Type.String({ minLength: 1 }),
|
|
817
1055
|
instanceId: Type.String({ minLength: 1 }),
|
|
818
1056
|
deploymentId: Type.String({ minLength: 1 }),
|
|
819
1057
|
requestedAt: IsoDateStringSchema,
|
|
820
1058
|
});
|
|
821
|
-
export const
|
|
1059
|
+
export const AuthResolveDeviceUserAuthoritiesResponseSchema = Type.Union([
|
|
822
1060
|
Type.Object({
|
|
823
1061
|
status: Type.Literal("activated"),
|
|
824
1062
|
instanceId: Type.String({ minLength: 1 }),
|
|
@@ -844,31 +1082,41 @@ export const WaitForDeviceActivationResponseSchema = Type.Union([
|
|
|
844
1082
|
reason: Type.Optional(Type.String({ minLength: 1 })),
|
|
845
1083
|
}),
|
|
846
1084
|
]);
|
|
847
|
-
export const
|
|
1085
|
+
export const WaitForDeviceActivationRequestSchema = Type.Object({
|
|
1086
|
+
flowId: Type.String({ minLength: 1 }),
|
|
1087
|
+
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
1088
|
+
nonce: Type.String({ minLength: 1 }),
|
|
1089
|
+
contractDigest: DigestSchema,
|
|
1090
|
+
iat: Type.Number(),
|
|
1091
|
+
sig: Type.String({ minLength: 1 }),
|
|
1092
|
+
});
|
|
1093
|
+
export const AuthDevicesConnectInfoGetSchema = Type.Object({
|
|
848
1094
|
publicIdentityKey: Type.String({ minLength: 1 }),
|
|
849
1095
|
contractDigest: DigestSchema,
|
|
850
1096
|
iat: Type.Number(),
|
|
851
1097
|
sig: Type.String({ minLength: 1 }),
|
|
852
|
-
}
|
|
853
|
-
export const
|
|
1098
|
+
});
|
|
1099
|
+
export const AuthDevicesConnectInfoGetResponseSchema = Type.Object({
|
|
854
1100
|
status: Type.Literal("ready"),
|
|
855
1101
|
connectInfo: DeviceConnectInfoSchema,
|
|
856
1102
|
});
|
|
857
|
-
export const
|
|
1103
|
+
export const AuthDeviceUserAuthoritiesListSchema = Type.Object({
|
|
858
1104
|
instanceId: Type.Optional(Type.String({ minLength: 1 })),
|
|
859
1105
|
deploymentId: Type.Optional(Type.String({ minLength: 1 })),
|
|
860
1106
|
state: Type.Optional(Type.Union([Type.Literal("activated"), Type.Literal("revoked")])),
|
|
1107
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1108
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
861
1109
|
});
|
|
862
|
-
export const
|
|
863
|
-
|
|
1110
|
+
export const AuthDeviceUserAuthoritiesListResponseSchema = Type.Object({
|
|
1111
|
+
...PageResponseSchema(DeviceActivationRecordSchema).properties,
|
|
864
1112
|
});
|
|
865
|
-
export const
|
|
1113
|
+
export const AuthDeviceUserAuthoritiesRevokeSchema = Type.Object({
|
|
866
1114
|
instanceId: Type.String({ minLength: 1 }),
|
|
867
1115
|
});
|
|
868
|
-
export const
|
|
1116
|
+
export const AuthDeviceUserAuthoritiesRevokeResponseSchema = Type.Object({
|
|
869
1117
|
success: Type.Boolean(),
|
|
870
1118
|
});
|
|
871
|
-
export const
|
|
1119
|
+
export const AuthDeviceUserAuthoritiesReviewsListSchema = Type.Object({
|
|
872
1120
|
instanceId: Type.Optional(Type.String({ minLength: 1 })),
|
|
873
1121
|
deploymentId: Type.Optional(Type.String({ minLength: 1 })),
|
|
874
1122
|
state: Type.Optional(Type.Union([
|
|
@@ -876,38 +1124,162 @@ export const AuthListDeviceActivationReviewsSchema = Type.Object({
|
|
|
876
1124
|
Type.Literal("approved"),
|
|
877
1125
|
Type.Literal("rejected"),
|
|
878
1126
|
])),
|
|
1127
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1128
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
879
1129
|
});
|
|
880
|
-
export const
|
|
881
|
-
|
|
1130
|
+
export const AuthDeviceUserAuthoritiesReviewsListResponseSchema = Type.Object({
|
|
1131
|
+
...PageResponseSchema(DeviceActivationReviewSchema).properties,
|
|
882
1132
|
});
|
|
883
|
-
export const
|
|
1133
|
+
export const AuthDeviceUserAuthoritiesReviewsDecideSchema = Type.Object({
|
|
884
1134
|
reviewId: Type.String({ minLength: 1 }),
|
|
885
1135
|
decision: Type.Union([Type.Literal("approve"), Type.Literal("reject")]),
|
|
886
1136
|
reason: Type.Optional(Type.String({ minLength: 1 })),
|
|
887
1137
|
});
|
|
888
|
-
export const
|
|
1138
|
+
export const AuthDeviceUserAuthoritiesReviewsDecideResponseSchema = Type.Object({
|
|
889
1139
|
review: DeviceActivationReviewSchema,
|
|
890
1140
|
activation: Type.Optional(DeviceActivationRecordSchema),
|
|
891
1141
|
confirmationCode: Type.Optional(Type.String({ minLength: 1 })),
|
|
892
1142
|
});
|
|
1143
|
+
export const UserIdentityViewSchema = Type.Object({
|
|
1144
|
+
identityId: Type.String({ minLength: 1 }),
|
|
1145
|
+
provider: Type.String({ minLength: 1 }),
|
|
1146
|
+
subject: Type.String({ minLength: 1 }),
|
|
1147
|
+
displayName: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
1148
|
+
email: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
1149
|
+
emailVerified: Type.Boolean(),
|
|
1150
|
+
linkedAt: IsoDateStringSchema,
|
|
1151
|
+
lastLoginAt: Type.Union([IsoDateStringSchema, Type.Null()]),
|
|
1152
|
+
});
|
|
893
1153
|
export const UserViewSchema = Type.Object({
|
|
894
|
-
|
|
895
|
-
id: Type.String(),
|
|
1154
|
+
userId: Type.String({ minLength: 1 }),
|
|
896
1155
|
name: Type.Optional(Type.String()),
|
|
897
1156
|
email: Type.Optional(Type.String()),
|
|
898
1157
|
active: Type.Boolean(),
|
|
899
1158
|
capabilities: Type.Array(Type.String()),
|
|
1159
|
+
capabilityGroups: Type.Array(Type.String()),
|
|
1160
|
+
identities: Type.Array(UserIdentityViewSchema),
|
|
900
1161
|
});
|
|
901
|
-
export const
|
|
902
|
-
|
|
903
|
-
|
|
1162
|
+
export const AuthUsersListSchema = Type.Object({
|
|
1163
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1164
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
904
1165
|
});
|
|
905
|
-
export const
|
|
906
|
-
|
|
907
|
-
|
|
1166
|
+
export const AuthUsersListResponseSchema = Type.Object({
|
|
1167
|
+
...PageResponseSchema(UserViewSchema).properties,
|
|
1168
|
+
});
|
|
1169
|
+
export const AuthUsersGetSchema = Type.Object({
|
|
1170
|
+
userId: Type.String({ minLength: 1 }),
|
|
1171
|
+
});
|
|
1172
|
+
export const AuthUsersGetResponseSchema = Type.Object({
|
|
1173
|
+
user: UserViewSchema,
|
|
1174
|
+
});
|
|
1175
|
+
export const AuthUsersCreateSchema = Type.Object({
|
|
1176
|
+
name: Type.Optional(Type.String({ minLength: 1 })),
|
|
1177
|
+
email: Type.Optional(Type.String({ minLength: 1 })),
|
|
1178
|
+
username: Type.Optional(Type.String({ minLength: 1 })),
|
|
1179
|
+
active: Type.Optional(Type.Boolean()),
|
|
1180
|
+
capabilities: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
|
|
1181
|
+
capabilityGroups: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
|
|
1182
|
+
});
|
|
1183
|
+
export const AuthUsersCreateResponseSchema = Type.Object({
|
|
1184
|
+
user: UserViewSchema,
|
|
1185
|
+
});
|
|
1186
|
+
export const AuthUsersIdentityLinkCreateSchema = Type.Object({
|
|
1187
|
+
returnTo: Type.Optional(Type.String({ minLength: 1 })),
|
|
1188
|
+
});
|
|
1189
|
+
export const AuthUsersPasswordChangeSchema = Type.Object({
|
|
1190
|
+
currentPassword: Type.String({ minLength: 1 }),
|
|
1191
|
+
newPassword: Type.String({ minLength: 1 }),
|
|
1192
|
+
});
|
|
1193
|
+
export const AuthUsersPasswordChangeResponseSchema = Type.Object({
|
|
1194
|
+
success: Type.Boolean(),
|
|
1195
|
+
});
|
|
1196
|
+
export const AuthUsersPasswordResetCreateSchema = Type.Object({
|
|
1197
|
+
userId: Type.String({ minLength: 1 }),
|
|
1198
|
+
expiresInSeconds: Type.Optional(Type.Integer({ minimum: 60, maximum: 2592000 })),
|
|
1199
|
+
});
|
|
1200
|
+
export const AuthUsersAccountFlowCreateResponseSchema = Type.Object({
|
|
1201
|
+
flowId: Type.String({ minLength: 1 }),
|
|
1202
|
+
url: Type.String({ minLength: 1 }),
|
|
1203
|
+
expiresAt: IsoDateStringSchema,
|
|
1204
|
+
});
|
|
1205
|
+
export const CapabilityDefinitionSchema = Type.Object({
|
|
1206
|
+
key: Type.String({ minLength: 1 }),
|
|
1207
|
+
displayName: Type.String({ minLength: 1 }),
|
|
1208
|
+
description: Type.String({ minLength: 1 }),
|
|
1209
|
+
consequence: Type.Optional(Type.String({ minLength: 1 })),
|
|
1210
|
+
source: Type.Union([Type.Literal("contract"), Type.Literal("platform")]),
|
|
1211
|
+
contractId: Type.Optional(Type.String({ minLength: 1 })),
|
|
1212
|
+
contractDigest: Type.Optional(DigestSchema),
|
|
1213
|
+
contractDisplayName: Type.Optional(Type.String({ minLength: 1 })),
|
|
1214
|
+
});
|
|
1215
|
+
export const AuthCapabilitiesListSchema = Type.Object({
|
|
1216
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1217
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
1218
|
+
});
|
|
1219
|
+
export const AuthCapabilitiesListResponseSchema = Type.Object({
|
|
1220
|
+
...PageResponseSchema(CapabilityDefinitionSchema).properties,
|
|
1221
|
+
});
|
|
1222
|
+
export const CapabilityGroupSchema = Type.Object({
|
|
1223
|
+
groupKey: Type.String({ minLength: 1 }),
|
|
1224
|
+
displayName: Type.String({ minLength: 1 }),
|
|
1225
|
+
description: Type.String({ minLength: 1 }),
|
|
1226
|
+
capabilities: Type.Array(Type.String({ minLength: 1 })),
|
|
1227
|
+
includedGroups: Type.Array(Type.String({ minLength: 1 })),
|
|
1228
|
+
createdAt: IsoDateStringSchema,
|
|
1229
|
+
updatedAt: IsoDateStringSchema,
|
|
1230
|
+
});
|
|
1231
|
+
export const AuthCapabilityGroupsListSchema = Type.Object({
|
|
1232
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1233
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
1234
|
+
});
|
|
1235
|
+
export const AuthCapabilityGroupsListResponseSchema = Type.Object({
|
|
1236
|
+
...PageResponseSchema(CapabilityGroupSchema).properties,
|
|
1237
|
+
});
|
|
1238
|
+
export const AuthCapabilityGroupsGetSchema = Type.Object({
|
|
1239
|
+
groupKey: Type.String({ minLength: 1 }),
|
|
1240
|
+
});
|
|
1241
|
+
export const AuthCapabilityGroupsGetResponseSchema = Type.Object({
|
|
1242
|
+
group: CapabilityGroupSchema,
|
|
1243
|
+
});
|
|
1244
|
+
export const AuthCapabilityGroupsPutSchema = Type.Object({
|
|
1245
|
+
groupKey: Type.String({ minLength: 1 }),
|
|
1246
|
+
displayName: Type.String({ minLength: 1 }),
|
|
1247
|
+
description: Type.String({ minLength: 1 }),
|
|
1248
|
+
capabilities: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
|
|
1249
|
+
includedGroups: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
|
|
1250
|
+
});
|
|
1251
|
+
export const AuthCapabilityGroupsPutResponseSchema = Type.Object({
|
|
1252
|
+
group: CapabilityGroupSchema,
|
|
1253
|
+
});
|
|
1254
|
+
export const AuthCapabilityGroupsDeleteSchema = Type.Object({
|
|
1255
|
+
groupKey: Type.String({ minLength: 1 }),
|
|
1256
|
+
});
|
|
1257
|
+
export const AuthCapabilityGroupsDeleteResponseSchema = Type.Object({
|
|
1258
|
+
success: Type.Boolean(),
|
|
1259
|
+
});
|
|
1260
|
+
export const AuthUsersUpdateSchema = Type.Object({
|
|
1261
|
+
userId: Type.String({ minLength: 1 }),
|
|
908
1262
|
active: Type.Optional(Type.Boolean()),
|
|
909
1263
|
capabilities: Type.Optional(Type.Array(Type.String())),
|
|
1264
|
+
capabilityGroups: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
|
|
1265
|
+
name: Type.Optional(Type.String()),
|
|
1266
|
+
email: Type.Optional(Type.String()),
|
|
1267
|
+
});
|
|
1268
|
+
export const AuthUsersUpdateResponseSchema = Type.Object({
|
|
1269
|
+
success: Type.Boolean(),
|
|
1270
|
+
});
|
|
1271
|
+
export const AuthUserIdentitiesListSchema = Type.Object({
|
|
1272
|
+
userId: Type.String({ minLength: 1 }),
|
|
1273
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
1274
|
+
limit: Type.Integer({ minimum: 0, maximum: 500 }),
|
|
1275
|
+
});
|
|
1276
|
+
export const AuthUserIdentitiesListResponseSchema = Type.Object({
|
|
1277
|
+
...PageResponseSchema(UserIdentityViewSchema).properties,
|
|
1278
|
+
});
|
|
1279
|
+
export const AuthUserIdentitiesUnlinkSchema = Type.Object({
|
|
1280
|
+
userId: Type.String({ minLength: 1 }),
|
|
1281
|
+
identityId: Type.String({ minLength: 1 }),
|
|
910
1282
|
});
|
|
911
|
-
export const
|
|
1283
|
+
export const AuthUserIdentitiesUnlinkResponseSchema = Type.Object({
|
|
912
1284
|
success: Type.Boolean(),
|
|
913
1285
|
});
|