github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/docs/diagrams/konnector-workflow.mmdc (about)

     1  sequenceDiagram
     2      %% https://mermaidjs.github.io/
     3      participant H as Home
     4      participant C as Cozy-Stack
     5      participant K as Konnector
     6      participant S as External service
     7  
     8      H -->> C: create aggregator account if needed
     9      H -->> C: add aggregator account permissions for konnector
    10      H ->> C: create the account
    11      H ->> C: create folder
    12      H ->> C: create a reference folder->konnector
    13      H ->> C: create the trigger
    14      H ->> C: launch the konnector
    15  
    16      C ->> C: Ensure the konnector can write files
    17      C ->> K: start the konnector
    18      K ->> C: fetch the account
    19      K ->> S: login
    20      K -->> C: [log] login successful
    21      C -->> H: [ws] login successful
    22      K -->> C: update aggregator account
    23      K ->> S: fetch data
    24      K ->> C: save documents and files
    25      C -->>H: [ws] success / error