MCPcopy Create free account
hub / github.com/Noumena-Network/code / parseLeaseState

Function parseLeaseState

src/utils/sessionIngressAuth.ts:55–60  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

53 ])
54
55function parseLeaseState(value: string | undefined): LeaseState | null {
56 if (!value || !SESSION_INGRESS_LEASE_STATE_VALUES.has(value as LeaseState)) {
57 return null
58 }
59 return value as LeaseState
60}
61
62function parseLeaseExecutionTarget(
63 value: string | undefined,

Callers 1

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected