daemon/identity.bend relies on unsafe/foreign
raw source on the hub · import cswap-bend-cli@0.1.0.0/daemon/identity.bend as Identity
8 imports
import Base import ../json.bend as Json import ../act.bend as Act import ../fs.bend as Fs import ../lock.bend as Lock import ../store/base.bend as SBase import ../store/seq.bend as SSeq import ../store/io.bend as SIo
Definitions
def ActM source · line 16 · raw
@-A:Type -> Type
def ActM.pure source · line 19 · raw
@-A:Type -> @x:A -> 0x0717344745a30ebad1f19045228e8f18/act.of(A)
def ActM.bind source · line 22 · raw
@-A:Type -> @-B:Type -> @m:0x0717344745a30ebad1f19045228e8f18/act.of(A) -> @f:(@_:A -> 0x0717344745a30ebad1f19045228e8f18/act.of(B)) -> 0x0717344745a30ebad1f19045228e8f18/act.of(B)
def str_of source · line 25 · raw
@+j:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+k:String -> String
def rec_of source · line 28 · raw
@+m:Maybe<&2, 0x0717344745a30ebad1f19045228e8f18/json.Json> -> @+slot:String -> 0x0717344745a30ebad1f19045228e8f18/json.Json
def fill2 source · line 35 · raw
@+empty:Bool -> @+seq:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+slot:String -> @+uuid:String -> @+ts:String -> 0x0717344745a30ebad1f19045228e8f18/json.Json
def fill source · line 43 · raw
@+seq:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+slot:String -> @+uuid:String -> @+ts:String -> 0x0717344745a30ebad1f19045228e8f18/json.Json
Fill an empty uuid, once, under the roster lock (switcher.backfill_account_uuid).
def fill_with source · line 46 · raw
@+m:Maybe<&2, 0x0717344745a30ebad1f19045228e8f18/json.Json> -> @+root:String -> @+slot:String -> @+uuid:String -> @+ts:String -> 0x0717344745a30ebad1f19045228e8f18/act.of(Unit)
def backfill_locked source · line 53 · raw
@+root:String -> @+slot:String -> @+uuid:String -> 0x0717344745a30ebad1f19045228e8f18/act.of(Unit)
def backfill source · line 59 · raw
@+root:String -> @+slot:String -> @+uuid:String -> 0x0717344745a30ebad1f19045228e8f18/act.of(Unit)
def org_differs source · line 62 · raw
@+ta_org:String -> @+slot_org:String -> Bool
def verdict source · line 65 · raw
@+conflict:Bool -> String
def swallow source · line 72 · raw
@r:0x0717344745a30ebad1f19045228e8f18/fs.Res(Unit) -> 0x0717344745a30ebad1f19045228e8f18/act.of(Unit)
def best_effort source · line 75 · raw
@m:0x0717344745a30ebad1f19045228e8f18/act.of(Unit) -> 0x0717344745a30ebad1f19045228e8f18/act.of(Unit)
def learned source · line 78 · raw
@+root:String -> @+slot:String -> @+ta_uuid:String -> 0x0717344745a30ebad1f19045228e8f18/act.of(String)
def learn2 source · line 83 · raw
@+empty:Bool -> @+slot_uuid:String -> @+root:String -> @+slot:String -> @+ta_uuid:String -> 0x0717344745a30ebad1f19045228e8f18/act.of(String)
def learn source · line 90 · raw
@+slot_uuid:String -> @+root:String -> @+slot:String -> @+ta_uuid:String -> 0x0717344745a30ebad1f19045228e8f18/act.of(String)
def judged2 source · line 93 · raw
@+conflict:Bool -> @+root:String -> @+slot:String -> @+ta_uuid:String -> @+rec:0x0717344745a30ebad1f19045228e8f18/json.Json -> 0x0717344745a30ebad1f19045228e8f18/act.of(String)
def judged source · line 100 · raw
@+root:String -> @+slot:String -> @+ta_uuid:String -> @+ta_org:String -> @+rec:0x0717344745a30ebad1f19045228e8f18/json.Json -> 0x0717344745a30ebad1f19045228e8f18/act.of(String)
def judged_in source · line 103 · raw
@+root:String -> @+slot:String -> @+ta_uuid:String -> @+ta_org:String -> @+m:Maybe<&2, 0x0717344745a30ebad1f19045228e8f18/json.Json> -> 0x0717344745a30ebad1f19045228e8f18/act.of(String)
def known source · line 106 · raw
@+root:String -> @+slot:String -> @+ta_uuid:String -> @+ta_org:String -> 0x0717344745a30ebad1f19045228e8f18/act.of(String)
def with_uuid source · line 111 · raw
@+empty:Bool -> @+root:String -> @+slot:String -> @+ta_uuid:String -> @+ta_org:String -> 0x0717344745a30ebad1f19045228e8f18/act.of(String)
def check source · line 120 · raw
@+root:String -> @+slot:String -> @+acct:0x0717344745a30ebad1f19045228e8f18/json.Json -> 0x0717344745a30ebad1f19045228e8f18/act.of(String)
"ok" or "identity-conflict" for the account the token endpoint named (JNull when it named none).