{"openapi":"3.1.0","info":{"title":"Soft Finn API","version":"1.6.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/version":{"get":{"summary":"Version","operationId":"version_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/profile":{"patch":{"summary":"Update Profile","operationId":"update_profile_auth_profile_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/login":{"post":{"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/me":{"get":{"summary":"Me","operationId":"me_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/change-password":{"post":{"summary":"Change Password","operationId":"change_password_auth_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/recovery-code":{"post":{"summary":"Rotate Recovery","operationId":"rotate_recovery_auth_recovery_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryCodeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/recover":{"post":{"summary":"Recover","operationId":"recover_auth_recover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users":{"get":{"summary":"List Users","operationId":"list_users_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserResponse"},"type":"array","title":"Response List Users Users Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create User","operationId":"create_user_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/{user_id}":{"patch":{"summary":"Update User","operationId":"update_user_users__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Deactivate User","operationId":"deactivate_user_users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/funds":{"put":{"summary":"Set User Funds","operationId":"set_user_funds_users__user_id__funds_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserFundAccessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/funds":{"get":{"summary":"All Funds","operationId":"all_funds_admin_funds_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FundResponse"},"type":"array","title":"Response All Funds Admin Funds Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/funds":{"get":{"summary":"Funds","operationId":"funds_funds_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FundResponse"},"type":"array","title":"Response Funds Funds Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Fund","operationId":"create_fund_funds_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/funds/order":{"put":{"summary":"Order Funds","description":"One atomic, global order. Never change an unseen/added fund silently.","operationId":"order_funds_funds_order_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundOrderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FundResponse"},"type":"array","title":"Response Order Funds Funds Order Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/funds/{fund_id}":{"patch":{"summary":"Update Fund","operationId":"update_fund_funds__fund_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Fund Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funds/{fund_id}/archive":{"post":{"summary":"Archive Fund","operationId":"archive_fund_funds__fund_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Fund Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funds/{fund_id}/restore":{"post":{"summary":"Restore Fund","operationId":"restore_fund_funds__fund_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Fund Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funds/{fund_id}/category-groups":{"get":{"summary":"Groups","operationId":"groups_funds__fund_id__category_groups_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Fund Id"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CategoryGroupResponse"},"title":"Response Groups Funds  Fund Id  Category Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funds/{fund_id}/categories":{"get":{"summary":"Categories","operationId":"categories_funds__fund_id__categories_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"fund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Fund Id"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CategoryResponse"},"title":"Response Categories Funds  Fund Id  Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transactions":{"get":{"tags":["transactions"],"summary":"Get All","operationId":"get_all_transactions_get","security":[{"HTTPBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TransactionResponse"},"title":"Response Get All Transactions Get"}}}}}},"post":{"tags":["transactions"],"summary":"Create","operationId":"create_transactions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transactions/{id}":{"patch":{"tags":["transactions"],"summary":"Update","operationId":"update_transactions__id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transactions/{id}/cancel":{"post":{"tags":["transactions"],"summary":"Cancel","operationId":"cancel_transactions__id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transfers":{"get":{"tags":["transfers"],"summary":"Get All","operationId":"get_all_transfers_get","security":[{"HTTPBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TransferResponse"},"title":"Response Get All Transfers Get"}}}}}},"post":{"tags":["transfers"],"summary":"Create","operationId":"create_transfers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transfers/{id}":{"patch":{"tags":["transfers"],"summary":"Update","operationId":"update_transfers__id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transfers/{id}/cancel":{"post":{"tags":["transfers"],"summary":"Cancel","operationId":"cancel_transfers__id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/investments":{"get":{"tags":["investments"],"summary":"Get All","operationId":"get_all_investments_get","security":[{"HTTPBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvestmentResponse"},"title":"Response Get All Investments Get"}}}}}},"post":{"tags":["investments"],"summary":"Create","operationId":"create_investments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/investments/{id}":{"patch":{"tags":["investments"],"summary":"Update","operationId":"update_investments__id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/investments/events":{"get":{"tags":["investments"],"summary":"Get Events","operationId":"get_events_investments_events_get","security":[{"HTTPBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvestmentEventResponse"},"title":"Response Get Events Investments Events Get"}}}}}},"post":{"tags":["investments"],"summary":"Create Ev","operationId":"create_ev_investments_events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentEventCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/investments/events/{id}/confirm":{"post":{"tags":["investments"],"summary":"Confirm","operationId":"confirm_investments_events__id__confirm_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentEventConfirm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/investments/events/{id}":{"patch":{"tags":["investments"],"summary":"Update Ev","operationId":"update_ev_investments_events__id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentEventUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/conversions":{"get":{"tags":["conversions"],"summary":"Get All","operationId":"get_all_conversions_get","security":[{"HTTPBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CurrencyConversionResponse"},"title":"Response Get All Conversions Get"}}}}}},"post":{"tags":["conversions"],"summary":"Create","operationId":"create_conversions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrencyConversionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrencyConversionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/conversions/{conversion_id}":{"patch":{"tags":["conversions"],"summary":"Update","operationId":"update_conversions__conversion_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversion Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrencyConversionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrencyConversionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sync/snapshot":{"get":{"tags":["sync"],"summary":"Snapshot","operationId":"snapshot_sync_snapshot_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/sync/pull":{"get":{"tags":["sync"],"summary":"Pull","operationId":"pull_sync_pull_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":500,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/registry":{"get":{"tags":["registry"],"summary":"Registry","operationId":"registry_registry_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before Id"}},{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trash":{"get":{"tags":["trash"],"summary":"List Trash","operationId":"list_trash_trash_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TrashEntryResponse"},"type":"array","title":"Response List Trash Trash Get"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["trash"],"summary":"Purge All","operationId":"purge_all_trash_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/trash/{entity_type}/{entity_id}":{"delete":{"tags":["trash"],"summary":"Purge One","operationId":"purge_one_trash__entity_type___entity_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","title":"Entity Type"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trash/{entity_type}/{entity_id}/restore":{"post":{"tags":["trash"],"summary":"Restore From Trash","operationId":"restore_from_trash_trash__entity_type___entity_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","title":"Entity Type"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sync/push":{"post":{"tags":["sync"],"summary":"Push","operationId":"push_sync_push_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncPushRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncPushResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/exports/transactions.xlsx":{"get":{"tags":["exports"],"summary":"Export Transactions Xlsx","operationId":"export_transactions_xlsx_exports_transactions_xlsx_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"fund_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Fund Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Deleted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/category-groups":{"post":{"tags":["categories"],"summary":"Create Group Route","operationId":"create_group_route_category_groups_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryGroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/category-groups/{identifier}":{"patch":{"tags":["categories"],"summary":"Update Group Route","operationId":"update_group_route_category_groups__identifier__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Identifier"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryGroupUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/categories":{"post":{"tags":["categories"],"summary":"Create Category Route","operationId":"create_category_route_categories_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/categories/{identifier}":{"patch":{"tags":["categories"],"summary":"Update Category Route","operationId":"update_category_route_categories__identifier__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Identifier"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"CancelRequest":{"properties":{"expected_version":{"type":"integer","minimum":1.0,"title":"Expected Version"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":false,"type":"object","required":["expected_version","reason"],"title":"CancelRequest"},"CategoryCreate":{"properties":{"family_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Family Id"},"id":{"type":"string","format":"uuid","title":"Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"},"name":{"type":"string","title":"Name"},"direction":{"type":"string","enum":["income","expense"],"title":"Direction"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_archived":{"type":"boolean","title":"Is Archived","default":false}},"additionalProperties":false,"type":"object","required":["id","fund_id","name","direction"],"title":"CategoryCreate"},"CategoryGroupCreate":{"properties":{"family_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Family Id"},"color_index":{"type":"integer","maximum":7.0,"minimum":0.0,"title":"Color Index","default":0},"sort_order":{"type":"integer","maximum":9999.0,"minimum":0.0,"title":"Sort Order","default":0},"id":{"type":"string","format":"uuid","title":"Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"name":{"type":"string","title":"Name"}},"additionalProperties":false,"type":"object","required":["id","fund_id","name"],"title":"CategoryGroupCreate"},"CategoryGroupResponse":{"properties":{"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"family_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Family Id"},"color_index":{"type":"integer","title":"Color Index","default":0},"sort_order":{"type":"integer","title":"Sort Order","default":0},"id":{"type":"string","format":"uuid","title":"Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version","default":1},"is_archived":{"type":"boolean","title":"Is Archived","default":false}},"type":"object","required":["id","fund_id","name"],"title":"CategoryGroupResponse"},"CategoryGroupUpdate":{"properties":{"color_index":{"anyOf":[{"type":"integer","maximum":7.0,"minimum":0.0},{"type":"null"}],"title":"Color Index"},"sort_order":{"anyOf":[{"type":"integer","maximum":9999.0,"minimum":0.0},{"type":"null"}],"title":"Sort Order"},"expected_version":{"type":"integer","minimum":1.0,"title":"Expected Version"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"is_archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Archived"}},"additionalProperties":false,"type":"object","required":["expected_version"],"title":"CategoryGroupUpdate"},"CategoryResponse":{"properties":{"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"family_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Family Id"},"id":{"type":"string","format":"uuid","title":"Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"},"name":{"type":"string","title":"Name"},"direction":{"type":"string","title":"Direction"},"sort_order":{"type":"integer","title":"Sort Order"},"is_archived":{"type":"boolean","title":"Is Archived"},"version":{"type":"integer","title":"Version","default":1}},"type":"object","required":["id","fund_id","group_id","name","direction","sort_order","is_archived"],"title":"CategoryResponse"},"CategoryUpdate":{"properties":{"expected_version":{"type":"integer","minimum":1.0,"title":"Expected Version"},"group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"direction":{"anyOf":[{"type":"string","enum":["income","expense"]},{"type":"null"}],"title":"Direction"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Archived"}},"additionalProperties":false,"type":"object","required":["expected_version"],"title":"CategoryUpdate"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","title":"New Password"}},"additionalProperties":false,"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"CurrencyConversionCreate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"out_transaction_id":{"type":"string","format":"uuid","title":"Out Transaction Id"},"in_transaction_id":{"type":"string","format":"uuid","title":"In Transaction Id"},"from_currency":{"type":"string","maxLength":3,"minLength":3,"title":"From Currency"},"to_currency":{"type":"string","maxLength":3,"minLength":3,"title":"To Currency"},"from_amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"}],"title":"From Amount"},"rate":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"}],"title":"Rate"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Responsible User Id"},"operation_date":{"type":"string","format":"date-time","title":"Operation Date"}},"additionalProperties":false,"type":"object","required":["id","fund_id","out_transaction_id","in_transaction_id","from_currency","to_currency","from_amount","rate","operation_date"],"title":"CurrencyConversionCreate"},"CurrencyConversionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"from_currency":{"type":"string","title":"From Currency"},"to_currency":{"type":"string","title":"To Currency"},"from_amount":{"type":"string","title":"From Amount"},"to_amount":{"type":"string","title":"To Amount"},"rate":{"type":"string","title":"Rate"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"type":"string","format":"uuid","title":"Responsible User Id"},"operation_date":{"type":"string","format":"date-time","title":"Operation Date"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By User Id"},"version":{"type":"integer","title":"Version"},"is_deleted":{"type":"boolean","title":"Is Deleted"}},"type":"object","required":["id","fund_id","from_currency","to_currency","from_amount","to_amount","rate","comment","responsible_user_id","operation_date","created_at","created_by_user_id","updated_at","updated_by_user_id","version","is_deleted"],"title":"CurrencyConversionResponse"},"CurrencyConversionUpdate":{"properties":{"expected_version":{"type":"integer","minimum":1.0,"title":"Expected Version"},"from_currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3},{"type":"null"}],"title":"From Currency"},"to_currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3},{"type":"null"}],"title":"To Currency"},"from_amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"},{"type":"null"}],"title":"From Amount"},"rate":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"},{"type":"null"}],"title":"Rate"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Responsible User Id"},"operation_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Operation Date"}},"additionalProperties":false,"type":"object","required":["expected_version"],"title":"CurrencyConversionUpdate"},"FundCreateRequest":{"properties":{"sort_order":{"type":"integer","maximum":9999.0,"minimum":0.0,"title":"Sort Order","default":0},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"short_name":{"type":"string","title":"Short Name"},"type":{"type":"string","enum":["standard","investment"],"title":"Type"}},"additionalProperties":false,"type":"object","required":["id","name","short_name","type"],"title":"FundCreateRequest"},"FundOrderRequest":{"properties":{"fund_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10000,"minItems":1,"title":"Fund Ids"}},"additionalProperties":false,"type":"object","required":["fund_ids"],"title":"FundOrderRequest"},"FundResponse":{"properties":{"sort_order":{"type":"integer","title":"Sort Order","default":0},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"short_name":{"type":"string","title":"Short Name"},"type":{"type":"string","title":"Type"},"is_archived":{"type":"boolean","title":"Is Archived"}},"type":"object","required":["id","name","short_name","type","is_archived"],"title":"FundResponse"},"FundUpdateRequest":{"properties":{"sort_order":{"anyOf":[{"type":"integer","maximum":9999.0,"minimum":0.0},{"type":"null"}],"title":"Sort Order"},"name":{"type":"string","title":"Name"},"short_name":{"type":"string","title":"Short Name"},"type":{"type":"string","enum":["standard","investment"],"title":"Type"}},"additionalProperties":false,"type":"object","required":["name","short_name","type"],"title":"FundUpdateRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InvestmentCreate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"funding_event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Funding Event Id"},"funding_transaction_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Funding Transaction Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","const":"loan","title":"Type"},"principal_amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"}],"title":"Principal Amount"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency"},"return_type":{"type":"string","enum":["percentage","fixed"],"title":"Return Type"},"expected_return_value":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"}],"title":"Expected Return Value"},"start_date":{"type":"string","format":"date","title":"Start Date"},"expected_return_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expected Return Date"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Responsible User Id"}},"additionalProperties":false,"type":"object","required":["id","fund_id","name","type","principal_amount","currency","return_type","expected_return_value","start_date"],"title":"InvestmentCreate"},"InvestmentEventConfirm":{"properties":{"expected_version":{"type":"integer","minimum":1.0,"title":"Expected Version"},"transaction_id":{"type":"string","format":"uuid","title":"Transaction Id"},"confirmed_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Confirmed Date"}},"additionalProperties":false,"type":"object","required":["expected_version","transaction_id"],"title":"InvestmentEventConfirm"},"InvestmentEventCreate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"investment_id":{"type":"string","format":"uuid","title":"Investment Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"type":{"type":"string","enum":["funding","repayment","income","write_off"],"title":"Type"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"}],"title":"Amount"},"currency":{"type":"string","title":"Currency"},"planned_date":{"type":"string","format":"date","title":"Planned Date"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Responsible User Id"}},"additionalProperties":false,"type":"object","required":["id","investment_id","fund_id","type","amount","currency","planned_date"],"title":"InvestmentEventCreate"},"InvestmentEventResponse":{"properties":{"closes_loan":{"type":"boolean","title":"Closes Loan","default":false},"principal_component":{"type":"string","title":"Principal Component","default":"0"},"income_component":{"type":"string","title":"Income Component","default":"0"},"writeoff_component":{"type":"string","title":"Writeoff Component","default":"0"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By User Id"},"responsible_user_id":{"type":"string","format":"uuid","title":"Responsible User Id"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"id":{"type":"string","format":"uuid","title":"Id"},"investment_id":{"type":"string","format":"uuid","title":"Investment Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"type":{"type":"string","title":"Type"},"amount":{"type":"string","title":"Amount"},"currency":{"type":"string","title":"Currency"},"planned_date":{"type":"string","format":"date","title":"Planned Date"},"confirmed_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Confirmed Date"},"status":{"type":"string","title":"Status"},"version":{"type":"integer","title":"Version"},"is_deleted":{"type":"boolean","title":"Is Deleted"}},"type":"object","required":["created_at","created_by_user_id","updated_at","updated_by_user_id","responsible_user_id","id","investment_id","fund_id","type","amount","currency","planned_date","confirmed_date","status","version","is_deleted"],"title":"InvestmentEventResponse"},"InvestmentEventUpdate":{"properties":{"expected_version":{"type":"integer","minimum":1.0,"title":"Expected Version"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"},{"type":"null"}],"title":"Amount"},"currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3},{"type":"null"}],"title":"Currency"},"planned_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Date"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Responsible User Id"}},"additionalProperties":false,"type":"object","required":["expected_version"],"title":"InvestmentEventUpdate"},"InvestmentResponse":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By User Id"},"id":{"type":"string","format":"uuid","title":"Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"principal_amount":{"type":"string","title":"Principal Amount"},"outstanding_principal":{"type":"string","title":"Outstanding Principal"},"currency":{"type":"string","title":"Currency"},"return_type":{"type":"string","title":"Return Type"},"expected_return_value":{"type":"string","title":"Expected Return Value"},"start_date":{"type":"string","format":"date","title":"Start Date"},"expected_return_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expected Return Date"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"type":"string","format":"uuid","title":"Responsible User Id"},"status":{"type":"string","title":"Status"},"version":{"type":"integer","title":"Version"},"is_deleted":{"type":"boolean","title":"Is Deleted"}},"type":"object","required":["created_at","created_by_user_id","updated_at","updated_by_user_id","id","fund_id","name","type","principal_amount","outstanding_principal","currency","return_type","expected_return_value","start_date","expected_return_date","comment","responsible_user_id","status","version","is_deleted"],"title":"InvestmentResponse"},"InvestmentUpdate":{"properties":{"expected_version":{"type":"integer","minimum":1.0,"title":"Expected Version"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"type":"string","const":"loan"},{"type":"null"}],"title":"Type"},"principal_amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"},{"type":"null"}],"title":"Principal Amount"},"currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3},{"type":"null"}],"title":"Currency"},"return_type":{"anyOf":[{"type":"string","enum":["percentage","fixed"]},{"type":"null"}],"title":"Return Type"},"expected_return_value":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Expected Return Value"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"expected_return_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expected Return Date"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Responsible User Id"}},"additionalProperties":false,"type":"object","required":["expected_version"],"title":"InvestmentUpdate"},"LoginRequest":{"properties":{"login":{"type":"string","title":"Login"},"password":{"type":"string","title":"Password"}},"additionalProperties":false,"type":"object","required":["login","password"],"title":"LoginRequest"},"MessageResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"MessageResponse"},"ProfileUpdateRequest":{"properties":{"name":{"type":"string","title":"Name"}},"additionalProperties":false,"type":"object","required":["name"],"title":"ProfileUpdateRequest"},"RecoveryCodeRequest":{"properties":{"current_password":{"type":"string","title":"Current Password"}},"additionalProperties":false,"type":"object","required":["current_password"],"title":"RecoveryCodeRequest"},"RecoveryCodeResponse":{"properties":{"recovery_code":{"type":"string","title":"Recovery Code"}},"type":"object","required":["recovery_code"],"title":"RecoveryCodeResponse"},"RecoveryRequest":{"properties":{"login":{"type":"string","title":"Login"},"recovery_code":{"type":"string","title":"Recovery Code"},"new_password":{"type":"string","title":"New Password"},"new_recovery_code":{"type":"string","title":"New Recovery Code"}},"additionalProperties":false,"type":"object","required":["login","recovery_code","new_password","new_recovery_code"],"title":"RecoveryRequest"},"SnapshotResponse":{"properties":{"user":{"$ref":"#/components/schemas/UserResponse"},"users":{"items":{"$ref":"#/components/schemas/UserResponse"},"type":"array","title":"Users"},"funds":{"items":{"$ref":"#/components/schemas/FundResponse"},"type":"array","title":"Funds"},"fund_references":{"items":{"$ref":"#/components/schemas/FundResponse"},"type":"array","title":"Fund References"},"category_groups":{"items":{"$ref":"#/components/schemas/CategoryGroupResponse"},"type":"array","title":"Category Groups"},"categories":{"items":{"$ref":"#/components/schemas/CategoryResponse"},"type":"array","title":"Categories"},"transactions":{"items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array","title":"Transactions"},"transfers":{"items":{"$ref":"#/components/schemas/TransferResponse"},"type":"array","title":"Transfers"},"currency_conversions":{"items":{"$ref":"#/components/schemas/CurrencyConversionResponse"},"type":"array","title":"Currency Conversions"},"investments":{"items":{"$ref":"#/components/schemas/InvestmentResponse"},"type":"array","title":"Investments"},"investment_events":{"items":{"$ref":"#/components/schemas/InvestmentEventResponse"},"type":"array","title":"Investment Events"},"cursor":{"type":"integer","title":"Cursor"}},"type":"object","required":["user","users","funds","fund_references","category_groups","categories","transactions","transfers","currency_conversions","investments","investment_events","cursor"],"title":"SnapshotResponse"},"SyncPushOperation":{"properties":{"operation_id":{"type":"string","format":"uuid","title":"Operation Id"},"type":{"type":"string","title":"Type"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"additionalProperties":false,"type":"object","required":["operation_id","type","payload"],"title":"SyncPushOperation"},"SyncPushRequest":{"properties":{"operations":{"items":{"$ref":"#/components/schemas/SyncPushOperation"},"type":"array","maxItems":500,"title":"Operations"}},"additionalProperties":false,"type":"object","required":["operations"],"title":"SyncPushRequest"},"SyncPushResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/SyncPushResult"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"SyncPushResponse"},"SyncPushResult":{"properties":{"resources":{"anyOf":[{"items":{"$ref":"#/components/schemas/SyncResourceVersion"},"type":"array"},{"type":"null"}],"title":"Resources"},"operation_id":{"type":"string","format":"uuid","title":"Operation Id"},"status":{"type":"string","title":"Status"},"resource_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resource Id"},"server_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Version"},"detail":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["operation_id","status"],"title":"SyncPushResult"},"SyncResourceVersion":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"entity_type":{"type":"string","title":"Entity Type"},"server_version":{"type":"integer","title":"Server Version"}},"type":"object","required":["id","entity_type","server_version"],"title":"SyncResourceVersion"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"user":{"$ref":"#/components/schemas/UserResponse"}},"type":"object","required":["access_token","user"],"title":"TokenResponse"},"TransactionCreate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"direction":{"type":"string","enum":["income","expense"],"title":"Direction"},"kind":{"type":"string","const":"ordinary","title":"Kind","default":"ordinary"},"amount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Amount"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Responsible User Id"},"operation_date":{"type":"string","format":"date-time","title":"Operation Date"}},"additionalProperties":false,"type":"object","required":["id","fund_id","direction","amount","currency","operation_date"],"title":"TransactionCreate"},"TransactionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"direction":{"type":"string","title":"Direction"},"kind":{"type":"string","title":"Kind"},"amount":{"type":"string","title":"Amount"},"currency":{"type":"string","title":"Currency"},"sender_fund_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sender Fund Id"},"recipient_fund_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Recipient Fund Id"},"transfer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transfer Id"},"investment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Investment Id"},"investment_event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Investment Event Id"},"conversion_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversion Id"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"type":"string","format":"uuid","title":"Responsible User Id"},"operation_date":{"type":"string","format":"date-time","title":"Operation Date"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By User Id"},"version":{"type":"integer","title":"Version"},"is_deleted":{"type":"boolean","title":"Is Deleted"}},"type":"object","required":["id","fund_id","category_id","direction","kind","amount","currency","sender_fund_id","recipient_fund_id","transfer_id","investment_id","investment_event_id","conversion_id","comment","responsible_user_id","operation_date","status","created_at","created_by_user_id","updated_at","updated_by_user_id","version","is_deleted"],"title":"TransactionResponse"},"TransactionUpdate":{"properties":{"expected_version":{"type":"integer","minimum":1.0,"title":"Expected Version"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"direction":{"anyOf":[{"type":"string","enum":["income","expense"]},{"type":"null"}],"title":"Direction"},"amount":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Amount"},"currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3},{"type":"null"}],"title":"Currency"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Responsible User Id"},"operation_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Operation Date"}},"additionalProperties":false,"type":"object","required":["expected_version"],"title":"TransactionUpdate"},"TransferCreate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_fund_id":{"type":"string","format":"uuid","title":"Source Fund Id"},"destination_fund_id":{"type":"string","format":"uuid","title":"Destination Fund Id"},"out_transaction_id":{"type":"string","format":"uuid","title":"Out Transaction Id"},"in_transaction_id":{"type":"string","format":"uuid","title":"In Transaction Id"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"}],"title":"Amount"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Responsible User Id"},"operation_date":{"type":"string","format":"date-time","title":"Operation Date"}},"additionalProperties":false,"type":"object","required":["id","source_fund_id","destination_fund_id","out_transaction_id","in_transaction_id","amount","currency","operation_date"],"title":"TransferCreate"},"TransferResponse":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By User Id"},"id":{"type":"string","format":"uuid","title":"Id"},"source_fund_id":{"type":"string","format":"uuid","title":"Source Fund Id"},"destination_fund_id":{"type":"string","format":"uuid","title":"Destination Fund Id"},"amount":{"type":"string","title":"Amount"},"currency":{"type":"string","title":"Currency"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"responsible_user_id":{"type":"string","format":"uuid","title":"Responsible User Id"},"operation_date":{"type":"string","format":"date-time","title":"Operation Date"},"status":{"type":"string","title":"Status"},"version":{"type":"integer","title":"Version"},"is_deleted":{"type":"boolean","title":"Is Deleted"}},"type":"object","required":["created_at","created_by_user_id","updated_at","updated_by_user_id","id","source_fund_id","destination_fund_id","amount","currency","comment","responsible_user_id","operation_date","status","version","is_deleted"],"title":"TransferResponse"},"TransferUpdate":{"properties":{"expected_version":{"type":"integer","minimum":1.0,"title":"Expected Version"},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Responsible User Id"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"},{"type":"null"}],"title":"Amount"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"operation_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Operation Date"}},"additionalProperties":false,"type":"object","required":["expected_version"],"title":"TransferUpdate"},"TrashEntryResponse":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"entity_id":{"type":"string","format":"uuid","title":"Entity Id"},"fund_id":{"type":"string","format":"uuid","title":"Fund Id"},"title":{"type":"string","title":"Title"},"subtype":{"type":"string","title":"Subtype"},"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount"},"secondary_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secondary Amount"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"secondary_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secondary Currency"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"operation_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"title":"Operation Date"},"created_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By User Id"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["entity_type","entity_id","fund_id","title","subtype","version"],"title":"TrashEntryResponse"},"UserCreateRequest":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"login":{"type":"string","title":"Login"},"password":{"type":"string","title":"Password"},"role":{"type":"string","enum":["admin","user","observer"],"title":"Role","default":"user"},"is_active":{"type":"boolean","title":"Is Active","default":true},"can_cancel_own_transactions":{"type":"boolean","title":"Can Cancel Own Transactions","default":true},"accessible_fund_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Accessible Fund Ids"}},"additionalProperties":false,"type":"object","required":["id","name","login","password"],"title":"UserCreateRequest"},"UserFundAccessRequest":{"properties":{"fund_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Fund Ids"}},"additionalProperties":false,"type":"object","title":"UserFundAccessRequest"},"UserResponse":{"properties":{"recovery_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recovery Code"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"login":{"type":"string","title":"Login"},"role":{"type":"string","title":"Role"},"is_active":{"type":"boolean","title":"Is Active"},"can_cancel_own_transactions":{"type":"boolean","title":"Can Cancel Own Transactions","default":true},"accessible_fund_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Accessible Fund Ids"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"last_login":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login"}},"type":"object","required":["id","name","login","role","is_active"],"title":"UserResponse"},"UserUpdateRequest":{"properties":{"name":{"type":"string","title":"Name"},"login":{"type":"string","title":"Login"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"role":{"type":"string","enum":["admin","user","observer"],"title":"Role"},"is_active":{"type":"boolean","title":"Is Active"},"can_cancel_own_transactions":{"type":"boolean","title":"Can Cancel Own Transactions","default":true},"accessible_fund_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Accessible Fund Ids"}},"additionalProperties":false,"type":"object","required":["name","login","role","is_active"],"title":"UserUpdateRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}