{"components":{"schemas":{"Account":{"properties":{"createdAt":{"format":"int64","type":"integer"},"id":{"type":"string"},"quotaBytes":{"format":"int64","type":"integer"},"revision":{"format":"int64","type":"integer"},"usedBytes":{"format":"int64","type":"integer"},"wrappedMasterKey":{"type":"string"}},"required":["createdAt","id","quotaBytes","revision","usedBytes","wrappedMasterKey"],"type":"object"},"Approve":{"properties":{"sealed":{"type":"string"}},"required":["sealed"],"type":"object"},"Challenge":{"properties":{"challenge":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"format":{"type":"string"}},"required":["challenge","expiresAt","format"],"type":"object"},"Changes":{"properties":{"hasMore":{"type":"boolean"},"items":{"items":{"$ref":"#/components/schemas/VaultItem"},"type":["array","null"]},"latest":{"format":"int64","type":"integer"}},"required":["hasMore","items","latest"],"type":"object"},"Companies":{"properties":{"companies":{"items":{"$ref":"#/components/schemas/Membership"},"type":["array","null"]}},"required":["companies"],"type":"object"},"Confirm":{"properties":{"challenge":{"type":"string"},"signature":{"type":"string"}},"required":["challenge","signature"],"type":"object"},"Created":{"properties":{"id":{"type":"string"}},"required":["id"],"type":"object"},"Device":{"properties":{"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"lastUsedAt":{"format":"date-time","type":"string"},"name":{"type":"string"}},"required":["createdAt","id","lastUsedAt","name"],"type":"object"},"Done":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"},"Error":{"properties":{"message":{"type":"string"}},"required":["message"],"type":"object"},"Exchange":{"properties":{"code":{"type":"string"},"verifier":{"type":"string"}},"required":["code","verifier"],"type":"object"},"Info":{"properties":{"accounts":{"type":"boolean"},"apiVersion":{"format":"int64","type":"integer"},"maxFileBytes":{"format":"int64","type":"integer"},"name":{"type":"string"},"product":{"type":"string"},"publicUrl":{"type":"string"},"quotaBytes":{"format":"int64","type":"integer"},"registration":{"type":"string"},"stats":{"anyOf":[{"$ref":"#/components/schemas/Stats"},{"type":"null"}]},"version":{"type":"string"}},"required":["accounts","apiVersion","maxFileBytes","name","product","publicUrl","quotaBytes","registration","version"],"type":"object"},"Invitation":{"properties":{"company":{"type":"string"},"employee":{"type":"string"}},"required":["company","employee"],"type":"object"},"Item":{"properties":{"company":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"size":{"format":"int64","type":"integer"}},"required":["company","createdAt","id","size"],"type":"object"},"ItemDone":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"},"Items":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Item"},"type":["array","null"]}},"required":["items"],"type":"object"},"Join":{"properties":{"inboxKey":{"type":"string"},"token":{"type":"string"}},"required":["inboxKey","token"],"type":"object"},"Me":{"properties":{"devices":{"items":{"$ref":"#/components/schemas/Device"},"type":["array","null"]},"email":{"type":"string"},"name":{"type":"string"},"vaultId":{"type":"string"},"verified":{"type":"boolean"}},"required":["devices","email","name","verified"],"type":"object"},"Membership":{"properties":{"company":{"type":"string"},"id":{"type":"string"},"inboxToken":{"type":"string"},"joinedAt":{"format":"date-time","type":"string"}},"required":["company","id","joinedAt"],"type":"object"},"MetaUpdate":{"properties":{"baseRevision":{"format":"int64","type":"integer"},"meta":{"type":"string"}},"required":["baseRevision","meta"],"type":"object"},"NewAccount":{"properties":{"id":{"type":"string"},"invite":{"type":"string"},"publicKey":{"type":"string"},"wrappedMasterKey":{"type":"string"}},"required":["id","publicKey","wrappedMasterKey"],"type":"object"},"OneDone":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"},"Pairing":{"properties":{"createdAt":{"format":"date-time","type":"string"},"device":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"publicKey":{"type":"string"},"sealed":{"type":"string"}},"required":["createdAt","device","expiresAt","id","publicKey"],"type":"object"},"Request":{"properties":{"accountId":{"type":"string"}},"required":["accountId"],"type":"object"},"Rotation":{"properties":{"challenge":{"type":"string"},"publicKey":{"type":"string"},"signature":{"type":"string"},"wrappedMasterKey":{"type":"string"}},"required":["challenge","publicKey","signature","wrappedMasterKey"],"type":"object"},"Session":{"properties":{"createdAt":{"format":"date-time","type":"string"},"current":{"type":"boolean"},"deviceName":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"lastUsedAt":{"format":"date-time","type":"string"}},"required":["createdAt","current","deviceName","expiresAt","id","lastUsedAt"],"type":"object"},"SignIn":{"properties":{"accountId":{"type":"string"},"challenge":{"type":"string"},"deviceName":{"type":"string"},"signature":{"type":"string"}},"required":["accountId","challenge","deviceName","signature"],"type":"object"},"SignedIn":{"properties":{"session":{"$ref":"#/components/schemas/Session"},"token":{"type":"string"}},"required":["session","token"],"type":"object"},"Start":{"properties":{"device":{"type":"string"},"publicKey":{"type":"string"}},"required":["device","publicKey"],"type":"object"},"Stats":{"properties":{"accounts":{"format":"int64","type":"integer"},"availability":{"type":"number"},"documents":{"format":"int64","type":"integer"},"onlineSince":{"format":"date-time","type":"string"},"usedBytes":{"format":"int64","type":"integer"}},"required":["accounts","availability","documents","onlineSince","usedBytes"],"type":"object"},"Token":{"properties":{"token":{"type":"string"}},"required":["token"],"type":"object"},"VaultItem":{"properties":{"blobHash":{"type":"string"},"blobSize":{"format":"int64","type":"integer"},"deleted":{"type":"boolean"},"id":{"type":"string"},"meta":{"type":"string"},"revision":{"format":"int64","type":"integer"},"updatedAt":{"format":"int64","type":"integer"}},"required":["blobSize","deleted","id","revision","updatedAt"],"type":"object"},"Waiting":{"properties":{"pairings":{"items":{"$ref":"#/components/schemas/Pairing"},"type":["array","null"]}},"required":["pairings"],"type":"object"}}},"info":{"title":"Ordo API","version":"0.1.0"},"openapi":"3.1.0","paths":{"/api/v1/account":{"get":{"operationId":"getApiV1Account","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/account/delete":{"post":{"operationId":"postApiV1AccountDelete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Confirm"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/account/key":{"put":{"operationId":"putApiV1AccountKey","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rotation"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/account/sessions":{"get":{"operationId":"getApiV1AccountSessions","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Session"},"type":["array","null"]}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/account/sessions/{id}":{"delete":{"operationId":"deleteApiV1AccountSessionsId","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/accounts":{"post":{"operationId":"postApiV1Accounts","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewAccount"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Created"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/auth/challenge":{"post":{"operationId":"postApiV1AuthChallenge","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Challenge"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/auth/session":{"delete":{"operationId":"deleteApiV1AuthSession","responses":{"200":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}},"post":{"operationId":"postApiV1AuthSession","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignIn"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedIn"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/connect/token":{"post":{"operationId":"postApiV1ConnectToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Exchange"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/employer":{"get":{"operationId":"getApiV1Employer","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Companies"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/employer/invite":{"get":{"operationId":"getApiV1EmployerInvite","parameters":[{"in":"query","name":"token","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invitation"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/employer/join":{"post":{"operationId":"postApiV1EmployerJoin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Join"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Membership"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/employer/{id}":{"delete":{"operationId":"deleteApiV1EmployerId","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Done"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/inbox":{"get":{"operationId":"getApiV1Inbox","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Items"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/inbox/{id}":{"delete":{"operationId":"deleteApiV1InboxId","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemDone"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/items":{"get":{"operationId":"getApiV1Items","parameters":[{"in":"query","name":"since","schema":{"format":"int64","type":"integer"}},{"in":"query","name":"limit","schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Changes"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/items/{id}":{"delete":{"operationId":"deleteApiV1ItemsId","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultItem"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}},"put":{"operationId":"putApiV1ItemsId","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultItem"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/me":{"get":{"operationId":"getApiV1Me","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/pairing":{"get":{"operationId":"getApiV1Pairing","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Waiting"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}},"post":{"operationId":"postApiV1Pairing","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Start"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pairing"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/pairing/{id}":{"delete":{"operationId":"deleteApiV1PairingId","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OneDone"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}},"get":{"operationId":"getApiV1PairingId","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pairing"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}},"put":{"operationId":"putApiV1PairingId","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Approve"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OneDone"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}},"/api/v1/server":{"get":{"operationId":"getApiV1Server","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Info"}}},"description":"OK"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}}}}}}
