{"openapi":"3.1.0","info":{"title":"HiFeed Internal HR API","version":"v1","description":"Di-generate dari definisi router Express dan skema Zod (`npm run docs:openapi`).\nJangan edit `docs/api/openapi.json` dengan tangan — ubah route/skemanya, lalu generate ulang.\n\nKonvensi: field request dan response memakai `snake_case`. Error selalu berbentuk\n`{ status: \"fail\" | \"error\", message, code? }`; error validasi Zod berbentuk `{ status: \"fail\", errors }`."},"servers":[{"url":"/","description":"Origin yang sama (nginx mem-proxy /api ke backend)"}],"tags":[{"name":"System"},{"name":"Auth"},{"name":"Profile"},{"name":"Admin - Employees"},{"name":"Attendance"},{"name":"Leave"},{"name":"Resign & Clearance"},{"name":"Admin - Role & Izin"},{"name":"Admin - Dokumen Karyawan"},{"name":"Organization"},{"name":"Admin"},{"name":"BD Visit"},{"name":"BD Admin"},{"name":"Shift"},{"name":"Notifications"},{"name":"Approval Delegation"},{"name":"Payroll (HR)"},{"name":"Payroll (Karyawan)"},{"name":"Lembur (SPL)"},{"name":"Dokumen Saya"},{"name":"Reimbursement"},{"name":"Perjalanan Dinas"},{"name":"Ulang Tahun"},{"name":"Kalender Libur"},{"name":"On Call"}],"paths":{"/health":{"get":{"tags":["System"],"operationId":"getHealth","summary":"Health check","responses":{"200":{"description":"Service hidup","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"ok"}}}}}}}}},"/api/v1/auth/options":{"get":{"tags":["Auth"],"operationId":"getAuthOptions","summary":"Get auth options","description":"**Akses:** publik (tanpa token).","responses":{"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[]}},"/api/v1/auth/login":{"post":{"tags":["Auth"],"operationId":"login","summary":"Login","description":"**Akses:** publik (tanpa token).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"password":{"type":"string","minLength":1}},"required":["email","password"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[]}},"/api/v1/auth/refresh":{"post":{"tags":["Auth"],"operationId":"refresh","summary":"Refresh","description":"**Akses:** publik (tanpa token).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refresh_token":{"type":"string","minLength":1}},"required":["refresh_token"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[]}},"/api/v1/auth/forgot-password":{"post":{"tags":["Auth"],"operationId":"forgotPassword","summary":"Forgot password","description":"**Akses:** publik (tanpa token).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[]}},"/api/v1/auth/password-token/{token}":{"get":{"tags":["Auth"],"operationId":"getPasswordToken","summary":"Get password token","description":"**Akses:** publik (tanpa token).","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[]}},"/api/v1/auth/reset-password":{"post":{"tags":["Auth"],"operationId":"resetPassword","summary":"Reset password","description":"**Akses:** publik (tanpa token).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"maxLength":128}},"required":["token","password"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[]}},"/api/v1/auth/google":{"get":{"tags":["Auth"],"operationId":"googleLogin","summary":"Google login","description":"**Akses:** publik (tanpa token).","responses":{"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[]}},"/api/v1/auth/google/callback":{"get":{"tags":["Auth"],"operationId":"googleCallback","summary":"Google callback","description":"**Akses:** publik (tanpa token).","responses":{"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[]}},"/api/v1/auth/logout":{"post":{"tags":["Auth"],"operationId":"logout","summary":"Logout","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/auth/me":{"get":{"tags":["Auth"],"operationId":"getMe","summary":"Get me","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/auth/change-password":{"post":{"tags":["Auth"],"operationId":"changePassword","summary":"Change password","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"current_password":{"type":"string","maxLength":128},"new_password":{"type":"string","minLength":1,"maxLength":128}},"required":["new_password"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/profile/avatar":{"post":{"tags":["Profile"],"operationId":"uploadAvatar","summary":"Upload avatar","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Profile"],"operationId":"deleteAvatar","summary":"Delete avatar","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/profile/me":{"get":{"tags":["Profile"],"operationId":"getProfile","summary":"Get profile","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/profile/personal-data":{"get":{"tags":["Profile"],"operationId":"getMyPersonalData","summary":"Get my personal data","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Profile"],"operationId":"submitMyPersonalData","summary":"Submit my personal data","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":100},"gender":{"type":"string","enum":["MALE","FEMALE"]},"national_id":{"type":"string"},"place_of_birth":{"type":"string","minLength":2,"maxLength":100},"date_of_birth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"religion":{"type":"string","enum":["ISLAM","PROTESTANT","CATHOLIC","HINDU","BUDDHIST","CONFUCIAN","OTHER"]},"id_card_address":{"type":"string","minLength":5,"maxLength":500},"domicile_address":{"type":"string","minLength":5,"maxLength":500},"phone_number":{"type":"string"},"emergency_contact_name":{"type":"string","minLength":2,"maxLength":100},"emergency_contact_relation":{"type":"string","minLength":2,"maxLength":50},"emergency_contact_phone":{"type":"string"},"medical_history":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"bpjs_tk_number":{"type":["string","null"]},"bpjs_kes_number":{"type":["string","null"]}},"required":["name","gender","national_id","place_of_birth","date_of_birth","religion","id_card_address","domicile_address","phone_number","emergency_contact_name","emergency_contact_relation","emergency_contact_phone"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/profile/personal-data/supplement-status":{"get":{"tags":["Profile"],"operationId":"getMySupplementStatus","summary":"Get my supplement status","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/profile/personal-data/supplement":{"put":{"tags":["Profile"],"operationId":"submitMySupplement","summary":"Submit my supplement","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id_card_postal_code":{"type":"string"},"domicile_postal_code":{"type":"string"},"family_card_number":{"type":"string"},"npwp_number":{"type":["string","null"]},"marital_status":{"type":"string","enum":["SINGLE","MARRIED","DIVORCED","WIDOWED"]},"marriage_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"bank_name":{"type":"string","minLength":2,"maxLength":100},"bank_branch":{"type":"string","minLength":2,"maxLength":100},"bank_account_number":{"type":"string"},"bank_account_name":{"type":"string","minLength":3,"maxLength":100},"family_members":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"relation":{"type":"string","enum":["FATHER","MOTHER","SIBLING","SPOUSE","CHILD"]},"name":{"type":"string","minLength":2,"maxLength":100},"date_of_birth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"education":{"anyOf":[{"type":"string","enum":["NONE","SD","SMP","SMA","D1","D2","D3","D4","S1","S2","S3"]},{"type":"null"}]},"national_id":{"type":["string","null"]}},"required":["relation","name"]}}},"required":["id_card_postal_code","domicile_postal_code","family_card_number","marital_status","bank_name","bank_branch","bank_account_number","bank_account_name","family_members"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/profile/personal-data/change-requests":{"get":{"tags":["Profile"],"operationId":"listMyChangeRequests","summary":"List my change requests","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Profile"],"operationId":"submitChangeRequest","summary":"Submit change request","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":100},"gender":{"type":"string","enum":["MALE","FEMALE"]},"national_id":{"type":"string"},"place_of_birth":{"type":"string","minLength":2,"maxLength":100},"date_of_birth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"religion":{"type":"string","enum":["ISLAM","PROTESTANT","CATHOLIC","HINDU","BUDDHIST","CONFUCIAN","OTHER"]},"id_card_address":{"type":"string","minLength":5,"maxLength":500},"domicile_address":{"type":"string","minLength":5,"maxLength":500},"phone_number":{"type":"string"},"emergency_contact_name":{"type":"string","minLength":2,"maxLength":100},"emergency_contact_relation":{"type":"string","minLength":2,"maxLength":50},"emergency_contact_phone":{"type":"string"},"medical_history":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"bpjs_tk_number":{"type":["string","null"]},"bpjs_kes_number":{"type":["string","null"]},"id_card_postal_code":{"type":"string"},"domicile_postal_code":{"type":"string"},"family_card_number":{"type":"string"},"npwp_number":{"type":["string","null"]},"marital_status":{"type":"string","enum":["SINGLE","MARRIED","DIVORCED","WIDOWED"]},"marriage_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"bank_name":{"type":"string","minLength":2,"maxLength":100},"bank_branch":{"type":"string","minLength":2,"maxLength":100},"bank_account_number":{"type":"string"},"bank_account_name":{"type":"string","minLength":3,"maxLength":100},"family_members":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"relation":{"type":"string","enum":["FATHER","MOTHER","SIBLING","SPOUSE","CHILD"]},"name":{"type":"string","minLength":2,"maxLength":100},"date_of_birth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"education":{"anyOf":[{"type":"string","enum":["NONE","SD","SMP","SMA","D1","D2","D3","D4","S1","S2","S3"]},{"type":"null"}]},"national_id":{"type":["string","null"]}},"required":["relation","name"]}}},"additionalProperties":false},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"required":["changes"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/profile/personal-data/change-requests/{requestId}/cancel":{"post":{"tags":["Profile"],"operationId":"cancelMyChangeRequest","summary":"Cancel my change request","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/import":{"post":{"tags":["Admin - Employees"],"operationId":"importEmployees","summary":"Import employees","description":"**Izin:** `employees:import`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"headers":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","maxLength":200}},"rows":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"row_number":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"values":{"maxItems":100,"type":"array","items":{"anyOf":[{"type":"string","maxLength":5000},{"type":"number"},{"type":"boolean"},{"type":"null"}]}}},"required":["row_number","values"]}},"company_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"dry_run":{"default":true,"type":"boolean"},"request_incomplete_personal_data":{"default":false,"type":"boolean"}},"required":["headers","rows"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/import-template":{"get":{"tags":["Admin - Employees"],"operationId":"downloadImportTemplate","summary":"Download import template","description":"**Izin:** `employees:import`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/send-activation":{"post":{"tags":["Admin - Employees"],"operationId":"postSendActivationBulk","summary":"Post send activation bulk","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}":{"get":{"tags":["Admin - Employees"],"operationId":"getEmployeeProfile","summary":"Get employee profile","description":"**Izin:** `employees:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/attendance":{"get":{"tags":["Admin - Employees"],"operationId":"getEmployeeAttendance","summary":"Get employee attendance","description":"**Izin:** `employees:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/attendance/stats":{"get":{"tags":["Admin - Employees"],"operationId":"getEmployeeAttendanceStats","summary":"Get employee attendance stats","description":"**Izin:** `employees:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/balances":{"get":{"tags":["Admin - Employees"],"operationId":"getEmployeeBalances","summary":"Get employee balances","description":"**Izin:** `employees:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/leaves":{"get":{"tags":["Admin - Employees"],"operationId":"getEmployeeLeaves","summary":"Get employee leaves","description":"**Izin:** `employees:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/personal-data":{"get":{"tags":["Admin - Employees"],"operationId":"getEmployeePersonalData","summary":"Get employee personal data","description":"**Izin:** `employees:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/employee-number":{"post":{"tags":["Admin - Employees"],"operationId":"assignEmployeeNumber","summary":"Assign employee number","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/send-activation":{"post":{"tags":["Admin - Employees"],"operationId":"postSendActivation","summary":"Post send activation","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/send-password-reset":{"post":{"tags":["Admin - Employees"],"operationId":"postSendPasswordReset","summary":"Post send password reset","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/resend-initial-password":{"post":{"tags":["Admin - Employees"],"operationId":"postResendInitialPassword","summary":"Post resend initial password","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/disciplinary-records":{"get":{"tags":["Admin - Employees"],"operationId":"listDisciplinaryRecords","summary":"List disciplinary records","description":"**Izin:** `employees:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Admin - Employees"],"operationId":"createDisciplinaryRecord","summary":"Create disciplinary record","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["SP1","SP2","SP3","PIP"]},"issued_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"valid_until":{"anyOf":[{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},{"type":"string","const":""}]},"reason":{"type":"string","minLength":3,"maxLength":2000},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"notify_employee":{"type":"boolean"}},"required":["type","issued_date","reason"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/disciplinary-records/{recordId}":{"put":{"tags":["Admin - Employees"],"operationId":"updateDisciplinaryRecord","summary":"Update disciplinary record","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"recordId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["SP1","SP2","SP3","PIP"]},"issued_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"valid_until":{"anyOf":[{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},{"type":"string","const":""}]},"reason":{"type":"string","minLength":3,"maxLength":2000},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Admin - Employees"],"operationId":"deleteDisciplinaryRecord","summary":"Delete disciplinary record","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"recordId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/disciplinary-records/{recordId}/revoke":{"post":{"tags":["Admin - Employees"],"operationId":"revokeDisciplinaryRecord","summary":"Revoke disciplinary record","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"recordId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":3,"maxLength":2000}},"required":["reason"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/position-changes":{"get":{"tags":["Admin - Employees"],"operationId":"getPositionChanges","summary":"Get position changes","description":"**Izin:** `employees:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Admin - Employees"],"operationId":"postPositionChange","summary":"Post position change","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"change_type":{"type":"string","enum":["PROMOTION","DEMOTION","TRANSFER"]},"effective_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to_job_title":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"to_level":{"anyOf":[{"anyOf":[{"type":"string","enum":["INTERN","STAFF","SENIOR_STAFF","SUPERVISOR","MANAGER","HEAD","C_LEVEL"]},{"type":"null"}]},{"type":"string","const":""}]},"to_department_id":{"anyOf":[{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},{"type":"string","const":""}]},"to_placement":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"reason":{"type":"string","minLength":3,"maxLength":2000},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["change_type","effective_date","reason"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/position-changes/{changeId}":{"delete":{"tags":["Admin - Employees"],"operationId":"deletePositionChange","summary":"Delete position change","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"changeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/assets":{"get":{"tags":["Admin - Employees"],"operationId":"getEmployeeAssets","summary":"Get employee assets","description":"**Izin:** `employees:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Admin - Employees"],"operationId":"postEmployeeAsset","summary":"Post employee asset","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["DEVICE","ACCESS","EQUIPMENT","VEHICLE","DOCUMENT","OTHER"]},"name":{"type":"string","minLength":2,"maxLength":200},"identifier":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}]},"section":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}]},"assigned_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["category","name","assigned_at"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/assets/{assetId}":{"put":{"tags":["Admin - Employees"],"operationId":"putEmployeeAsset","summary":"Put employee asset","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["DEVICE","ACCESS","EQUIPMENT","VEHICLE","DOCUMENT","OTHER"]},"name":{"type":"string","minLength":2,"maxLength":200},"identifier":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}]},"section":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}]},"assigned_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Admin - Employees"],"operationId":"deleteEmployeeAsset","summary":"Delete employee asset","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/assets/{assetId}/close":{"post":{"tags":["Admin - Employees"],"operationId":"postCloseEmployeeAsset","summary":"Post close employee asset","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"default":"RETURNED","type":"string","enum":["RETURNED","LOST"]},"returned_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"condition_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["returned_at"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{employeeId}/terminate":{"post":{"tags":["Admin - Employees"],"operationId":"postTermination","summary":"Post termination","description":"**Izin:** `employees:terminate`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"termination_reason":{"type":"string","enum":["RESIGNATION","CONTRACT_ENDED","DISMISSAL","PROBATION_FAILED","RETIREMENT","DECEASED","OTHER"]},"end_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"notes":{"type":"string","minLength":3,"maxLength":2000}},"required":["termination_reason","end_date","notes"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/attendance/today":{"get":{"tags":["Attendance"],"operationId":"getToday","summary":"Get today","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/attendance/liveness-challenge":{"post":{"tags":["Attendance"],"operationId":"createLivenessChallenge","summary":"Create liveness challenge","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purpose":{"type":"string","enum":["CLOCK_IN","CLOCK_OUT"]}},"required":["purpose"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/attendance/clock-in":{"post":{"tags":["Attendance"],"operationId":"clockIn","summary":"Clock in","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"idempotency_key":{"type":"string"},"photo":{"type":"string","minLength":1},"latitude":{"type":"number"},"longitude":{"type":"number"},"location_name":{"type":"string"},"accuracy":{"type":"number"},"device_id":{"type":"string"},"liveness_challenge_id":{"type":"string","format":"uuid"}},"required":["photo"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/attendance/clock-out":{"post":{"tags":["Attendance"],"operationId":"clockOut","summary":"Clock out","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"idempotency_key":{"type":"string"},"photo":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"location_name":{"type":"string"},"notes":{"type":"string"},"liveness_challenge_id":{"type":"string","format":"uuid"}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/attendance/history":{"get":{"tags":["Attendance"],"operationId":"getHistory","summary":"Get history","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/attendance/stats/personal":{"get":{"tags":["Attendance"],"operationId":"getPersonalStats","summary":"Get personal stats","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/attendance/stats":{"get":{"tags":["Attendance"],"operationId":"getAttendanceStats","summary":"Get personal stats","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/attendance/stats/admin":{"get":{"tags":["Attendance"],"operationId":"getAdminStats","summary":"Get admin stats","description":"**Izin:** `attendance:read`.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/attendance/admin/all":{"get":{"tags":["Attendance"],"operationId":"getAdminAttendanceHistory","summary":"Get admin attendance history","description":"**Izin:** `attendance:read`.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/leave/types":{"get":{"tags":["Leave"],"operationId":"listLeaveTypes","summary":"List leave types","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Leave"],"operationId":"createLeaveType","summary":"Create leave type","description":"**Izin:** `leave:manage_types`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type_name":{"type":"string","minLength":1},"type_code":{"type":"string","minLength":1,"maxLength":5},"default_quota":{"default":12,"type":"integer","minimum":0,"maximum":9007199254740991},"quota_unit":{"default":"DAYS","type":"string","enum":["DAYS","HOURS"]},"carry_over_enabled":{"default":false,"type":"boolean"},"carry_over_max":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"requires_attachment":{"default":false,"type":"boolean"},"min_notice_days":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"allow_backdate":{"default":false,"type":"boolean"},"max_backdate_days":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"prorate_on_join":{"default":true,"type":"boolean"},"deducts_collective_leave":{"default":false,"type":"boolean"},"draws_on_call_balance":{"default":false,"type":"boolean"},"is_paid":{"default":true,"type":"boolean"},"approval_level":{"default":"DOUBLE","type":"string","enum":["SINGLE","DOUBLE","MANAGEMENT"]},"is_active":{"default":true,"type":"boolean"},"color_code":{"default":"#3B82F6","type":"string"},"description":{"type":["string","null"]}},"required":["type_name","type_code"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/leave/types/{typeId}":{"put":{"tags":["Leave"],"operationId":"updateLeaveType","summary":"Update leave type","description":"**Izin:** `leave:manage_types`.","parameters":[{"name":"typeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type_name":{"type":"string","minLength":1},"type_code":{"type":"string","minLength":1,"maxLength":5},"default_quota":{"type":"integer","minimum":0,"maximum":9007199254740991},"quota_unit":{"type":"string","enum":["DAYS","HOURS"]},"carry_over_enabled":{"type":"boolean"},"carry_over_max":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"requires_attachment":{"type":"boolean"},"min_notice_days":{"type":"integer","minimum":0,"maximum":9007199254740991},"allow_backdate":{"type":"boolean"},"max_backdate_days":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"prorate_on_join":{"type":"boolean"},"deducts_collective_leave":{"type":"boolean"},"draws_on_call_balance":{"type":"boolean"},"is_paid":{"type":"boolean"},"approval_level":{"type":"string","enum":["SINGLE","DOUBLE","MANAGEMENT"]},"is_active":{"type":"boolean"},"color_code":{"type":"string"},"description":{"type":["string","null"]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Leave"],"operationId":"deleteLeaveType","summary":"Delete leave type","description":"**Izin:** `leave:manage_types`.","parameters":[{"name":"typeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/leave/balance":{"get":{"tags":["Leave"],"operationId":"getMyBalance","summary":"Get my balance","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/leave/duration":{"get":{"tags":["Leave"],"operationId":"previewLeaveDuration","summary":"Preview leave duration","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/leave/request":{"post":{"tags":["Leave"],"operationId":"submitLeaveRequest","summary":"Submit leave request","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leave_type_id":{"type":"string","format":"uuid"},"start_date":{"type":"string","format":"date"},"end_date":{"type":"string","format":"date"},"reason":{"type":"string","minLength":1},"attachment_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"half_day":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]},"half_day_type":{"type":["string","null"]},"idempotency_key":{"type":"string"}},"required":["leave_type_id","start_date","end_date","reason"]}},"multipart/form-data":{"schema":{"type":"object","required":["leave_type_id","start_date","end_date","reason"],"properties":{"attachment":{"type":"string","format":"binary"},"leave_type_id":{"type":"string","format":"uuid"},"start_date":{"type":"string","format":"date"},"end_date":{"type":"string","format":"date"},"reason":{"type":"string","minLength":1},"attachment_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"half_day":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]},"half_day_type":{"type":["string","null"]},"idempotency_key":{"type":"string"}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/leave/my-requests":{"get":{"tags":["Leave"],"operationId":"getMyRequests","summary":"Get my requests","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/leave/{requestId}/attachment":{"get":{"tags":["Leave"],"operationId":"downloadLeaveAttachment","summary":"Download leave attachment","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/leave/{requestId}/cancel":{"post":{"tags":["Leave"],"operationId":"cancelRequest","summary":"Cancel request","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/leave/pending":{"get":{"tags":["Leave"],"operationId":"getPendingRequests","summary":"Get pending requests","description":"**Akses:** Approver: Lead departemen, delegasi aktif Lead, anggota departemen CEO, atau pemegang izin approve (cuti/lembur/reimbursement/resign). Wewenang per tingkat diperiksa di service.","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/leave/all":{"get":{"tags":["Leave"],"operationId":"getAllRequests","summary":"Get all requests","description":"**Izin:** `leave:approve`.","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/leave/{requestId}/approve":{"post":{"tags":["Leave"],"operationId":"approveRequest","summary":"Approve request","description":"**Akses:** Approver: Lead departemen, delegasi aktif Lead, anggota departemen CEO, atau pemegang izin approve (cuti/lembur/reimbursement/resign). Wewenang per tingkat diperiksa di service.","parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"number"},"notes":{"type":["string","null"]}},"required":["version"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/leave/{requestId}/reject":{"post":{"tags":["Leave"],"operationId":"rejectRequest","summary":"Reject request","description":"**Akses:** Approver: Lead departemen, delegasi aktif Lead, anggota departemen CEO, atau pemegang izin approve (cuti/lembur/reimbursement/resign). Wewenang per tingkat diperiksa di service.","parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"number"},"notes":{"type":["string","null"]}},"required":["version"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/stats":{"get":{"tags":["Resign & Clearance"],"operationId":"getStats","summary":"Get stats","description":"**Izin:** `resignation:manage` atau `resignation:approve`.","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/config":{"get":{"tags":["Resign & Clearance"],"operationId":"listConfigItems","summary":"List config items","description":"**Izin:** `resignation:manage`.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Resign & Clearance"],"operationId":"createConfigItem","summary":"Create config item","description":"**Izin:** `resignation:manage`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"]},"category":{"default":"OTHER","type":"string","enum":["IT_EQUIPMENT","DOCUMENTS","FINANCE","FACILITIES","HR_ADMIN","SUPERVISOR","OTHER"]},"section":{"default":"Umum","type":"string","minLength":1,"maxLength":150},"input_type":{"default":"NONE","type":"string","enum":["DECLARE","HANDOVER","NONE"]},"department_codes":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"requires_proof":{"default":false,"type":"boolean"},"order_index":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["item_name"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/config/{itemId}":{"put":{"tags":["Resign & Clearance"],"operationId":"updateConfigItem","summary":"Update config item","description":"**Izin:** `resignation:manage`.","parameters":[{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"]},"category":{"type":"string","enum":["IT_EQUIPMENT","DOCUMENTS","FINANCE","FACILITIES","HR_ADMIN","SUPERVISOR","OTHER"]},"section":{"type":"string","minLength":1,"maxLength":150},"input_type":{"type":"string","enum":["DECLARE","HANDOVER","NONE"]},"department_codes":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"requires_proof":{"type":"boolean"},"order_index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"is_active":{"type":"boolean"}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Resign & Clearance"],"operationId":"deleteConfigItem","summary":"Delete config item","description":"**Izin:** `resignation:manage`.","parameters":[{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/config/reorder":{"post":{"tags":["Resign & Clearance"],"operationId":"reorderConfigItems","summary":"Reorder config items","description":"**Izin:** `resignation:manage`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"order_index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","order_index"]}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/config/apply-template":{"post":{"tags":["Resign & Clearance"],"operationId":"applyClearanceTemplate","summary":"Apply clearance template","description":"**Izin:** `resignation:manage`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"replace":{"default":false,"type":"boolean"}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/resignations":{"get":{"tags":["Resign & Clearance"],"operationId":"listResignations","summary":"List resignations","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Resign & Clearance"],"operationId":"initiateResignation","summary":"Initiate resignation","description":"**Izin:** `resignation:manage`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employee_id":{"type":"string","format":"uuid"},"resignation_date":{"type":"string"},"last_work_date":{"type":"string"},"reason":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"separation_type":{"default":"RESIGNATION","type":"string","enum":["RESIGNATION","TERMINATION","RETIREMENT","LEAVE_OF_ABSENCE"]}},"required":["employee_id","resignation_date","last_work_date"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/my":{"get":{"tags":["Resign & Clearance"],"operationId":"getMyResignation","summary":"Get my resignation","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Resign & Clearance"],"operationId":"submitMyResignation","summary":"Submit my resignation","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"last_work_date":{"type":"string"},"reason":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"items":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"declared":{"type":["boolean","null"]},"handover_note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"handover_to_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"config_item_id":{"type":"string","format":"uuid"}},"required":["config_item_id"]}}},"required":["last_work_date"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/my/form":{"get":{"tags":["Resign & Clearance"],"operationId":"getMyClearanceForm","summary":"Get my clearance form","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/my/cancel":{"post":{"tags":["Resign & Clearance"],"operationId":"cancelMyResignation","summary":"Cancel my resignation","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/my/items/{itemId}":{"put":{"tags":["Resign & Clearance"],"operationId":"updateMyClearanceItem","summary":"Update my clearance item","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"declared":{"type":["boolean","null"]},"handover_note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"handover_to_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/handovers/incoming":{"get":{"tags":["Resign & Clearance"],"operationId":"listIncomingHandovers","summary":"List incoming handovers","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/handovers/{itemId}/confirm":{"post":{"tags":["Resign & Clearance"],"operationId":"confirmHandover","summary":"Confirm handover","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/resignations/pending-approval":{"get":{"tags":["Resign & Clearance"],"operationId":"listResignationsPendingApproval","summary":"List resignations pending approval","description":"**Akses:** Approver: Lead departemen, delegasi aktif Lead, anggota departemen CEO, atau pemegang izin approve (cuti/lembur/reimbursement/resign). Wewenang per tingkat diperiksa di service.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/resignations/{resignationId}":{"get":{"tags":["Resign & Clearance"],"operationId":"getResignation","summary":"Get resignation","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/resignations/{resignationId}/approve":{"post":{"tags":["Resign & Clearance"],"operationId":"approveResignation","summary":"Approve resignation","description":"**Akses:** Approver: Lead departemen, delegasi aktif Lead, anggota departemen CEO, atau pemegang izin approve (cuti/lembur/reimbursement/resign). Wewenang per tingkat diperiksa di service.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"type":["string","null"]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/resignations/{resignationId}/reject":{"post":{"tags":["Resign & Clearance"],"operationId":"rejectResignation","summary":"Reject resignation","description":"**Akses:** Approver: Lead departemen, delegasi aktif Lead, anggota departemen CEO, atau pemegang izin approve (cuti/lembur/reimbursement/resign). Wewenang per tingkat diperiksa di service.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"type":["string","null"]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/resignations/{resignationId}/complete":{"post":{"tags":["Resign & Clearance"],"operationId":"completeResignation","summary":"Complete resignation","description":"**Izin:** `resignation:manage`.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/resignations/{resignationId}/cancel":{"post":{"tags":["Resign & Clearance"],"operationId":"cancelResignation","summary":"Cancel resignation","description":"**Izin:** `resignation:manage`.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"type":["string","null"]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/exit-questions":{"get":{"tags":["Resign & Clearance"],"operationId":"listQuestions","summary":"List questions","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Resign & Clearance"],"operationId":"createQuestion","summary":"Create question","description":"**Izin:** `resignation:manage`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":1},"type":{"default":"TEXT","type":"string","enum":["TEXT","RATING","SINGLE_CHOICE","MULTI_CHOICE"]},"options":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}]},"is_required":{"default":false,"type":"boolean"},"order_index":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["question"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/exit-questions/{questionId}":{"put":{"tags":["Resign & Clearance"],"operationId":"updateQuestion","summary":"Update question","description":"**Izin:** `resignation:manage`.","parameters":[{"name":"questionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":1},"type":{"type":"string","enum":["TEXT","RATING","SINGLE_CHOICE","MULTI_CHOICE"]},"options":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}]},"is_required":{"type":"boolean"},"order_index":{"type":"integer","minimum":0,"maximum":9007199254740991},"is_active":{"type":"boolean"}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Resign & Clearance"],"operationId":"deleteQuestion","summary":"Delete question","description":"**Izin:** `resignation:manage`.","parameters":[{"name":"questionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/exit-interviews":{"get":{"tags":["Resign & Clearance"],"operationId":"listExitInterviews","summary":"List exit interviews","description":"**Izin:** `resignation:manage`.","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/exit-interviews/my":{"get":{"tags":["Resign & Clearance"],"operationId":"getMyExitInterview","summary":"Get my exit interview","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/resignations/{resignationId}/exit-form":{"post":{"tags":["Resign & Clearance"],"operationId":"openExitInterview","summary":"Open exit interview","description":"**Izin:** `resignation:manage`.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"get":{"tags":["Resign & Clearance"],"operationId":"getExitInterview","summary":"Get exit interview","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/resignations/{resignationId}/exit-form/submit":{"post":{"tags":["Resign & Clearance"],"operationId":"submitExitInterview","summary":"Submit exit interview","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"answers":{"type":"array","items":{"type":"object","properties":{"question_id":{"type":"string","format":"uuid"},"answer":{"type":"string"}},"required":["question_id","answer"]}}},"required":["answers"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/resignations/{resignationId}/exit-form/review":{"post":{"tags":["Resign & Clearance"],"operationId":"reviewExitInterview","summary":"Review exit interview","description":"**Izin:** `resignation:manage`.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"review_notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/resignations/{resignationId}/items":{"get":{"tags":["Resign & Clearance"],"operationId":"listClearanceItems","summary":"List clearance items","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Resign & Clearance"],"operationId":"addClearanceItem","summary":"Add clearance item","description":"**Izin:** `resignation:manage`.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_name":{"type":"string","minLength":2,"maxLength":200},"section":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}]},"category":{"default":"OTHER","type":"string","enum":["IT_EQUIPMENT","DOCUMENTS","FINANCE","FACILITIES","HR_ADMIN","SUPERVISOR","OTHER"]},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["item_name"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/clearance/resignations/{resignationId}/items/{itemId}":{"put":{"tags":["Resign & Clearance"],"operationId":"updateClearanceItem","summary":"Update clearance item","description":"**Izin:** `resignation:manage`.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"waive":{"default":false,"type":"boolean"},"notes":{"type":["string","null"]},"proof_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Resign & Clearance"],"operationId":"removeClearanceItem","summary":"Remove clearance item","description":"**Izin:** `resignation:manage`.","parameters":[{"name":"resignationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/access/catalog":{"get":{"tags":["Admin - Role & Izin"],"operationId":"getCatalog","summary":"Get catalog","description":"**Izin:** `permissions:manage` atau `access:read`.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/access/users":{"get":{"tags":["Admin - Role & Izin"],"operationId":"listAccessUsers","summary":"List access users","description":"**Izin:** `permissions:manage` atau `access:read`.","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/access/users/{userId}":{"put":{"tags":["Admin - Role & Izin"],"operationId":"updateAccess","summary":"Update access","description":"**Izin:** `permissions:manage`.","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["SUPER_ADMIN","HR_ADMIN","FINANCE_ADMIN","EMPLOYEE"]},"granted":{"maxItems":30,"type":"array","items":{"type":"string","enum":["employees:read","employees:write","employees:import","employees:terminate","personal_data:approve","documents:manage","attendance:read","attendance:manage","shifts:manage","leave:manage_types","leave:approve","overtime:read","overtime:approve","reimbursement:read","reimbursement:approve","reimbursement:manage","resignation:approve","resignation:manage","travel:read","travel:approve","travel:allowance","contracts:manage","org:manage","payroll:read","payroll:manage","salary:read","salary:manage","reports:read","reports:export","audit:read"]}},"revoked":{"maxItems":33,"type":"array","items":{"type":"string","enum":["employees:read","employees:write","employees:import","employees:terminate","personal_data:approve","documents:manage","attendance:read","attendance:manage","shifts:manage","leave:manage_types","leave:approve","overtime:read","overtime:approve","reimbursement:read","reimbursement:approve","reimbursement:manage","resignation:approve","resignation:manage","travel:read","travel:approve","travel:allowance","contracts:manage","org:manage","payroll:read","payroll:manage","salary:read","salary:manage","reports:read","reports:export","audit:read","access:read","system:manage","permissions:manage"]}}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/access/system-accounts":{"post":{"tags":["Admin - Role & Izin"],"operationId":"createSystemAccount","summary":"Create system account","description":"**Izin:** `permissions:manage`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100},"email":{"type":"string","format":"email"}},"required":["name","email"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/access/system-accounts/{userId}":{"patch":{"tags":["Admin - Role & Izin"],"operationId":"updateSystemAccount","summary":"Update system account","description":"**Izin:** `permissions:manage`.","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"is_active":{"type":"boolean"}},"required":["is_active"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employee-documents":{"get":{"tags":["Admin - Dokumen Karyawan"],"operationId":"listForEmployee","summary":"List for employee","description":"**Izin:** `employees:read` atau `documents:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employee_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"department_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Admin - Dokumen Karyawan"],"operationId":"uploadForEmployee","summary":"Upload for employee","description":"**Izin:** `documents:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["KTP","NPWP","KK","PHOTO","IJAZAH","TRANSCRIPT","CV","CONTRACT","CERTIFICATE","BPJS","BANK_BOOK","MEDICAL","OTHER"]},"title":{"type":"string","minLength":2,"maxLength":150},"document_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"issued_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"visible_to_employee":{"type":"boolean"},"employee_id":{"type":"string","format":"uuid"}},"required":["category","title","employee_id"]}},"multipart/form-data":{"schema":{"type":"object","required":["file","category","title","employee_id"],"properties":{"file":{"type":"string","format":"binary"},"category":{"type":"string","enum":["KTP","NPWP","KK","PHOTO","IJAZAH","TRANSCRIPT","CV","CONTRACT","CERTIFICATE","BPJS","BANK_BOOK","MEDICAL","OTHER"]},"title":{"type":"string","minLength":2,"maxLength":150},"document_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"issued_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"visible_to_employee":{"type":"boolean"},"employee_id":{"type":"string","format":"uuid"}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employee-documents/completeness":{"get":{"tags":["Admin - Dokumen Karyawan"],"operationId":"completeness","summary":"Completeness","description":"**Izin:** `employees:read` atau `documents:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employee_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"department_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employee-documents/required-categories":{"get":{"tags":["Admin - Dokumen Karyawan"],"operationId":"getRequired","summary":"Get required","description":"**Izin:** `employees:read` atau `documents:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Admin - Dokumen Karyawan"],"operationId":"setRequired","summary":"Set required","description":"**Izin:** `documents:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"maxItems":13,"type":"array","items":{"type":"string","enum":["KTP","NPWP","KK","PHOTO","IJAZAH","TRANSCRIPT","CV","CONTRACT","CERTIFICATE","BPJS","BANK_BOOK","MEDICAL","OTHER"]}}},"required":["categories"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employee-documents/{id}":{"put":{"tags":["Admin - Dokumen Karyawan"],"operationId":"update","summary":"Update","description":"**Izin:** `documents:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["KTP","NPWP","KK","PHOTO","IJAZAH","TRANSCRIPT","CV","CONTRACT","CERTIFICATE","BPJS","BANK_BOOK","MEDICAL","OTHER"]},"title":{"type":"string","minLength":2,"maxLength":150},"document_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"issued_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"visible_to_employee":{"type":"boolean"},"verified":{"type":"boolean"}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Admin - Dokumen Karyawan"],"operationId":"remove","summary":"Remove","description":"**Izin:** `documents:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employee-documents/{id}/download":{"get":{"tags":["Admin - Dokumen Karyawan"],"operationId":"download","summary":"Download","description":"**Izin:** `employees:read` atau `documents:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/organization/chart":{"get":{"tags":["Organization"],"operationId":"getOrganizationChart","summary":"Get organization chart","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/dashboard/workforce":{"get":{"tags":["Admin"],"operationId":"getWorkforceDashboard","summary":"Get workforce dashboard","description":"**Izin:** `reports:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/reports/attendance":{"get":{"tags":["Admin"],"operationId":"getAttendanceReport","summary":"Get attendance report","description":"**Izin:** `reports:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"departmentId","in":"query","required":false,"schema":{"type":"string"}},{"name":"employeeId","in":"query","required":false,"schema":{"type":"string"}},{"name":"flag","in":"query","required":false,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["xlsx"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/reports/attendance-recap":{"get":{"tags":["Admin"],"operationId":"getAttendanceRecap","summary":"Get attendance recap","description":"**Izin:** `reports:read` atau `attendance:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string"}},{"name":"company_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"department_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"employee_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"cutoff_day","in":"query","required":false,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["xlsx"]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/reports/attendance-dashboard":{"get":{"tags":["Admin"],"operationId":"getAttendanceDashboard","summary":"Get attendance dashboard","description":"**Izin:** `reports:read` atau `attendance:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"period_from","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"period_to","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}},{"name":"department_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"cutoff_day","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/reports/leaves":{"get":{"tags":["Admin"],"operationId":"getLeaveReport","summary":"Get leave report","description":"**Izin:** `reports:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}},{"name":"year","in":"query","required":false,"schema":{"type":"string"}},{"name":"departmentId","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"leaveTypeId","in":"query","required":false,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["xlsx"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/reports/late-analysis":{"get":{"tags":["Admin"],"operationId":"getLateAnalysisReport","summary":"Get late analysis report","description":"**Izin:** `reports:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"departmentId","in":"query","required":false,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["xlsx"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/reports/employees":{"get":{"tags":["Admin"],"operationId":"getEmployeeReport","summary":"Get employee report","description":"**Izin:** `reports:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"departmentId","in":"query","required":false,"schema":{"type":"string"}},{"name":"role","in":"query","required":false,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["xlsx"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/reports/bd-visits":{"get":{"tags":["Admin"],"operationId":"getBDVisitReport","summary":"Get bdvisit report","description":"**Izin:** `reports:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"bdUserId","in":"query","required":false,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["xlsx"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees":{"get":{"tags":["Admin"],"operationId":"listEmployees","summary":"List employees","description":"**Izin:** `employees:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Admin"],"operationId":"createEmployee","summary":"Create employee","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"email":{"type":"string","format":"email"},"role":{"default":"EMPLOYEE","type":"string","enum":["SUPER_ADMIN","HR_ADMIN","FINANCE_ADMIN","EMPLOYEE"]},"department_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"is_bd_admin":{"default":false,"type":"boolean"},"join_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"string","format":"date-time"}]},"company_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"employment_type":{"anyOf":[{"type":"string","enum":["PERMANENT","CONTRACT","INTERN","PART_TIME","DAILY_FREELANCE"]},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["MALE","FEMALE"]},{"type":"null"}]},"base_salary":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"salary_period":{"type":"string","enum":["MONTHLY","DAILY"]},"income_bracket":{"anyOf":[{"type":"string","enum":["LOW_INCOME","PROPER_INCOME"]},{"type":"null"}]},"income_bracket_override":{"type":"boolean"},"contract_start":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"contract_end":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"personal_data_required":{"type":"boolean"},"employee_number":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"placement":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"job_title":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"level":{"anyOf":[{"type":"string","enum":["INTERN","STAFF","SENIOR_STAFF","SUPERVISOR","MANAGER","HEAD","C_LEVEL"]},{"type":"null"}]},"designation_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"end_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"termination_reason":{"anyOf":[{"type":"string","enum":["RESIGNATION","CONTRACT_ENDED","DISMISSAL","PROBATION_FAILED","RETIREMENT","DECEASED","OTHER"]},{"type":"null"}]},"bpjs_tk_status":{"anyOf":[{"type":"string","enum":["NOT_REGISTERED","ACTIVE","INACTIVE"]},{"type":"null"}]},"bpjs_tk_number":{"type":["string","null"]},"bpjs_tk_registered_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"bpjs_kes_status":{"anyOf":[{"type":"string","enum":["NOT_REGISTERED","ACTIVE","INACTIVE"]},{"type":"null"}]},"bpjs_kes_number":{"type":["string","null"]},"bpjs_kes_registered_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"hr_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["name","email"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/employees/{userId}":{"put":{"tags":["Admin"],"operationId":"updateEmployee","summary":"Update employee","description":"**Izin:** `employees:write`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"email":{"type":"string","format":"email"},"role":{"type":"string","enum":["SUPER_ADMIN","HR_ADMIN","FINANCE_ADMIN","EMPLOYEE"]},"department_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"is_bd_admin":{"type":"boolean"},"join_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"string","format":"date-time"}]},"company_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"employment_type":{"anyOf":[{"type":"string","enum":["PERMANENT","CONTRACT","INTERN","PART_TIME","DAILY_FREELANCE"]},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["MALE","FEMALE"]},{"type":"null"}]},"base_salary":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"salary_period":{"type":"string","enum":["MONTHLY","DAILY"]},"income_bracket":{"anyOf":[{"type":"string","enum":["LOW_INCOME","PROPER_INCOME"]},{"type":"null"}]},"income_bracket_override":{"type":"boolean"},"contract_start":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"contract_end":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"personal_data_required":{"type":"boolean"},"employee_number":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"placement":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"job_title":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"level":{"anyOf":[{"type":"string","enum":["INTERN","STAFF","SENIOR_STAFF","SUPERVISOR","MANAGER","HEAD","C_LEVEL"]},{"type":"null"}]},"designation_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"end_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"termination_reason":{"anyOf":[{"type":"string","enum":["RESIGNATION","CONTRACT_ENDED","DISMISSAL","PROBATION_FAILED","RETIREMENT","DECEASED","OTHER"]},{"type":"null"}]},"bpjs_tk_status":{"anyOf":[{"type":"string","enum":["NOT_REGISTERED","ACTIVE","INACTIVE"]},{"type":"null"}]},"bpjs_tk_number":{"type":["string","null"]},"bpjs_tk_registered_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"bpjs_kes_status":{"anyOf":[{"type":"string","enum":["NOT_REGISTERED","ACTIVE","INACTIVE"]},{"type":"null"}]},"bpjs_kes_number":{"type":["string","null"]},"bpjs_kes_registered_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"hr_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Admin"],"operationId":"deactivateEmployee","summary":"Deactivate employee","description":"**Izin:** `employees:terminate`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/personal-data-changes":{"get":{"tags":["Admin"],"operationId":"listChangeRequests","summary":"List change requests","description":"**Izin:** `personal_data:approve`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/personal-data-changes/{requestId}/approve":{"post":{"tags":["Admin"],"operationId":"approveChangeRequest","summary":"Approve change request","description":"**Izin:** `personal_data:approve`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"type":"string","maxLength":1000}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/personal-data-changes/{requestId}/reject":{"post":{"tags":["Admin"],"operationId":"rejectChangeRequest","summary":"Reject change request","description":"**Izin:** `personal_data:approve`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"type":"string","minLength":3,"maxLength":1000}},"required":["notes"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/audit-logs":{"get":{"tags":["Admin"],"operationId":"listAuditLogs","summary":"List audit logs","description":"**Izin:** `audit:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/geo-zones":{"get":{"tags":["Admin"],"operationId":"listGeoZones","summary":"List geo zones","description":"**Izin:** `attendance:read` atau `attendance:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Admin"],"operationId":"createGeoZone","summary":"Create geo zone","description":"**Izin:** `attendance:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"zone_name":{"type":"string","minLength":1},"zone_type":{"default":"OFFICE","type":"string","enum":["OFFICE","BRANCH","REMOTE"]},"latitude":{"type":"number"},"longitude":{"type":"number"},"radius_meters":{"type":"integer","minimum":1,"maximum":9007199254740991},"address":{"type":["string","null"]}},"required":["zone_name","latitude","longitude","radius_meters"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/geo-zones/{zoneId}":{"put":{"tags":["Admin"],"operationId":"updateGeoZone","summary":"Update geo zone","description":"**Izin:** `attendance:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"zoneId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"zone_name":{"type":"string","minLength":1},"zone_type":{"default":"OFFICE","type":"string","enum":["OFFICE","BRANCH","REMOTE"]},"latitude":{"type":"number"},"longitude":{"type":"number"},"radius_meters":{"type":"integer","minimum":1,"maximum":9007199254740991},"address":{"type":["string","null"]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Admin"],"operationId":"deleteGeoZone","summary":"Delete geo zone","description":"**Izin:** `attendance:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"zoneId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/holidays":{"get":{"tags":["Admin"],"operationId":"getHolidays","summary":"Get holidays","description":"**Izin:** `attendance:read` atau `attendance:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Admin"],"operationId":"createHoliday","summary":"Create holiday","description":"**Izin:** `attendance:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/holidays/national-presets":{"get":{"tags":["Admin"],"operationId":"getNationalPresets","summary":"Get national presets","description":"**Izin:** `attendance:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/holidays/import-national":{"post":{"tags":["Admin"],"operationId":"importNational","summary":"Import national","description":"**Izin:** `attendance:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer","minimum":2000,"maximum":2100}},"required":["year"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/holidays/{id}":{"delete":{"tags":["Admin"],"operationId":"deleteHoliday","summary":"Delete holiday","description":"**Izin:** `attendance:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/contracts/expiring":{"get":{"tags":["Admin"],"operationId":"listExpiringContracts","summary":"List expiring contracts","description":"**Izin:** `contracts:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/contracts/renewals":{"get":{"tags":["Admin"],"operationId":"listContractRenewals","summary":"List contract renewals","description":"**Izin:** `contracts:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/contracts/{employeeId}/decision":{"post":{"tags":["Admin"],"operationId":"decideContractRenewal","summary":"Decide contract renewal","description":"**Izin:** `contracts:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","enum":["RENEW","NOT_RENEW"]},"new_start":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"new_end":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"new_base_salary":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"new_salary_period":{"anyOf":[{"type":"string","enum":["MONTHLY","DAILY"]},{"type":"null"}]},"benefits":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["decision"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/contracts/renewals/{renewalId}/document":{"get":{"tags":["Admin"],"operationId":"generateContractDocument","summary":"Generate contract document","description":"**Izin:** `contracts:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"renewalId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/contracts/history/{employeeId}":{"get":{"tags":["Admin"],"operationId":"getContractHistory","summary":"Get contract history","description":"**Izin:** `contracts:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Admin"],"operationId":"recordContract","summary":"Record contract","description":"**Izin:** `contracts:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_type":{"type":"string","enum":["PERMANENT","CONTRACT","INTERN","PART_TIME","DAILY_FREELANCE"]},"start_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"end_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"contract_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"base_salary":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"salary_period":{"anyOf":[{"type":"string","enum":["MONTHLY","DAILY"]},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"required":["contract_type","start_date"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/companies":{"get":{"tags":["Admin"],"operationId":"listCompanies","summary":"List companies","description":"**Izin:** `employees:read` atau `org:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Admin"],"operationId":"createCompany","summary":"Create company","description":"**Izin:** `org:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":150},"legal_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"code":{"type":"string","minLength":1,"maxLength":20,"pattern":"^[A-Z0-9_]+$"},"jp_enabled":{"type":"boolean"}},"required":["name","code"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/companies/{companyId}":{"put":{"tags":["Admin"],"operationId":"updateCompany","summary":"Update company","description":"**Izin:** `org:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":150},"legal_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"code":{"type":"string","minLength":1,"maxLength":20,"pattern":"^[A-Z0-9_]+$"},"jp_enabled":{"type":"boolean"},"is_active":{"type":"boolean"}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Admin"],"operationId":"deleteCompany","summary":"Delete company","description":"**Izin:** `org:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/departments":{"get":{"tags":["Admin"],"operationId":"listDepartments","summary":"List departments","description":"**Izin:** `employees:read` atau `org:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Admin"],"operationId":"createDepartment","summary":"Create department","description":"**Izin:** `org:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"code":{"type":"string","minLength":1,"maxLength":20,"pattern":"^[A-Z0-9_]+$"},"company_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"department_type":{"type":"string","enum":["GENERAL","HR","CEO"]},"lead_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]}},"required":["name","code"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/departments/{departmentId}":{"put":{"tags":["Admin"],"operationId":"updateDepartment","summary":"Update department","description":"**Izin:** `org:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"departmentId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"code":{"type":"string","minLength":1,"maxLength":20,"pattern":"^[A-Z0-9_]+$"},"company_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"department_type":{"type":"string","enum":["GENERAL","HR","CEO"]},"lead_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Admin"],"operationId":"deleteDepartment","summary":"Delete department","description":"**Izin:** `org:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"departmentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/departments/{departmentId}/lead":{"put":{"tags":["Admin"],"operationId":"setDepartmentLead","summary":"Set department lead","description":"**Izin:** `org:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"departmentId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lead_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]}},"required":["lead_id"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/leave/rollover":{"post":{"tags":["Admin"],"operationId":"postAdminLeaveRollover","summary":"POST /api/v1/admin/leave/rollover","description":"**Izin:** `leave:manage_types`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/assets":{"get":{"tags":["Admin"],"operationId":"getAssetRegister","summary":"Get asset register","description":"**Izin:** `employees:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["ASSIGNED","RETURNED","LOST"]}},{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["DEVICE","ACCESS","EQUIPMENT","VEHICLE","DOCUMENT","OTHER"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/leave/balances/{employeeId}/entries":{"get":{"tags":["Admin"],"operationId":"getBalanceEntries","summary":"Get balance entries","description":"**Izin:** `employees:read` atau `leave:manage_types`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/leave/balances/{employeeId}/adjust":{"post":{"tags":["Admin"],"operationId":"postBalanceAdjustment","summary":"Post balance adjustment","description":"**Izin:** `leave:manage_types`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leave_type_id":{"type":"string","format":"uuid"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"days":{"type":"number"},"reason":{"type":"string","minLength":3,"maxLength":1000}},"required":["leave_type_id","year","days","reason"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/leave/cash-out":{"get":{"tags":["Admin"],"operationId":"getCashOutCandidates","summary":"Get cash out candidates","description":"**Izin:** `leave:manage_types`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"name":"leave_type_id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Admin"],"operationId":"postCashOut","summary":"Post cash out","description":"**Izin:** `leave:manage_types`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leave_type_id":{"type":"string","format":"uuid"},"reason":{"type":"string","minLength":3,"maxLength":1000},"items":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"employee_id":{"type":"string","format":"uuid"},"days":{"type":"number","exclusiveMinimum":0},"amount":{"anyOf":[{"type":"number","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["employee_id","days"]}}},"required":["year","leave_type_id","reason","items"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/backup/trigger":{"post":{"tags":["Admin"],"operationId":"postAdminBackupTrigger","summary":"POST /api/v1/admin/backup/trigger","description":"**Izin:** `system:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/bd/visits":{"post":{"tags":["BD Visit"],"operationId":"submitVisit","summary":"Submit visit","description":"**Akses:** Karyawan (role EMPLOYEE) di departemen BD.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_name":{"type":"string","minLength":1,"maxLength":255},"business_address":{"type":"string"},"contact_name":{"type":"string"},"contact_phone":{"type":"string"},"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"location_name":{"type":"string"},"selfie_photo":{"type":"string","minLength":1},"additional_photos":{"type":"string"},"notes":{"type":"string"},"visit_date":{"type":"string","minLength":1}},"required":["business_name","latitude","longitude","selfie_photo","visit_date"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"get":{"tags":["BD Visit"],"operationId":"getMyVisits","summary":"Get my visits","description":"**Akses:** Karyawan (role EMPLOYEE) di departemen BD.","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"start_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","VERIFIED","FLAGGED"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/bd/visits/{id}":{"get":{"tags":["BD Visit"],"operationId":"getMyVisitById","summary":"Get my visit by id","description":"**Akses:** Karyawan (role EMPLOYEE) di departemen BD.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/bd/stats":{"get":{"tags":["BD Visit"],"operationId":"getMyStats","summary":"Get my stats","description":"**Akses:** Karyawan (role EMPLOYEE) di departemen BD.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/bd/admin/visits":{"get":{"tags":["BD Admin"],"operationId":"getAdminVisits","summary":"Get admin visits","description":"**Akses:** Super Admin, HR Admin, atau BD Admin di departemen BD.","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"start_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","VERIFIED","FLAGGED"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/bd/admin/visits/{id}":{"get":{"tags":["BD Admin"],"operationId":"getAdminVisitById","summary":"Get admin visit by id","description":"**Akses:** Super Admin, HR Admin, atau BD Admin di departemen BD.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/bd/admin/visits/{id}/status":{"patch":{"tags":["BD Admin"],"operationId":"updateVisitStatus","summary":"Update visit status","description":"**Akses:** Super Admin, HR Admin, atau BD Admin di departemen BD.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/bd/admin/visits/{bdUserId}/user":{"get":{"tags":["BD Admin"],"operationId":"getVisitsByBdUserHandler","summary":"Get visits by bd user handler","description":"**Akses:** Super Admin, HR Admin, atau BD Admin di departemen BD.","parameters":[{"name":"bdUserId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"start_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/bd/admin/bd-list":{"get":{"tags":["BD Admin"],"operationId":"getBdStaffListHandler","summary":"Get bd staff list handler","description":"**Akses:** Super Admin, HR Admin, atau BD Admin di departemen BD.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/bd/admin/stats":{"get":{"tags":["BD Admin"],"operationId":"getBdAdminStats","summary":"Get admin stats","description":"**Akses:** Super Admin, HR Admin, atau BD Admin di departemen BD.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/my-schedule":{"get":{"tags":["Shift"],"operationId":"getMyScheduleHandler","summary":"Get my schedule handler","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/my-shift":{"get":{"tags":["Shift"],"operationId":"getMyShiftInfo","summary":"Get my shift info","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/my-swap-requests":{"get":{"tags":["Shift"],"operationId":"getMySwapRequests","summary":"Get my swap requests","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/swap-requests":{"post":{"tags":["Shift"],"operationId":"createSwap","summary":"Create swap","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"get":{"tags":["Shift"],"operationId":"getSwapRequestsHandler","summary":"Get swap requests handler","description":"**Izin:** `shifts:manage`.","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/swap-requests/{id}/approve":{"put":{"tags":["Shift"],"operationId":"approveSwap","summary":"Approve swap","description":"**Izin:** `shifts:manage`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/swap-requests/{id}/reject":{"put":{"tags":["Shift"],"operationId":"rejectSwap","summary":"Reject swap","description":"**Izin:** `shifts:manage`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/groups":{"get":{"tags":["Shift"],"operationId":"getGroups","summary":"Get groups","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Shift"],"operationId":"createGroup","summary":"Create group","description":"**Izin:** `shifts:manage`.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/groups/{id}":{"get":{"tags":["Shift"],"operationId":"getGroupById","summary":"Get group by id","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Shift"],"operationId":"updateGroup","summary":"Update group","description":"**Izin:** `shifts:manage`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/groups/{id}/schedule":{"put":{"tags":["Shift"],"operationId":"updateSchedule","summary":"Update schedule","description":"**Izin:** `shifts:manage`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/groups/{id}/employees":{"get":{"tags":["Shift"],"operationId":"getGroupEmployees","summary":"Get group employees","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/assignments":{"get":{"tags":["Shift"],"operationId":"getAssignments","summary":"Get assignments","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Shift"],"operationId":"assignEmployee","summary":"Assign employee","description":"**Izin:** `shifts:manage`.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/assignments/{employeeId}":{"get":{"tags":["Shift"],"operationId":"getEmployeeShiftAssignment","summary":"Get employee shift assignment","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/shifts/stats":{"get":{"tags":["Shift"],"operationId":"getShiftsStats","summary":"Get stats","description":"**Izin:** `shifts:manage`.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/notifications":{"get":{"tags":["Notifications"],"operationId":"listNotifications","summary":"List notifications","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/notifications/unread-count":{"get":{"tags":["Notifications"],"operationId":"getUnreadCount","summary":"Get unread count","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/notifications/read-all":{"post":{"tags":["Notifications"],"operationId":"markAllRead","summary":"Mark all read","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/notifications/{id}/read":{"post":{"tags":["Notifications"],"operationId":"markRead","summary":"Mark read","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/notifications/push/public-key":{"get":{"tags":["Notifications"],"operationId":"getPushPublicKey","summary":"Get push public key","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/notifications/push/subscribe":{"post":{"tags":["Notifications"],"operationId":"subscribePush","summary":"Subscribe push","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"type":"string","maxLength":2000,"format":"uri"},"keys":{"type":"object","properties":{"p256dh":{"type":"string","minLength":1,"maxLength":255},"auth":{"type":"string","minLength":1,"maxLength":255}},"required":["p256dh","auth"]}},"required":["endpoint","keys"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/notifications/push/unsubscribe":{"post":{"tags":["Notifications"],"operationId":"unsubscribePush","summary":"Unsubscribe push","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"type":"string","minLength":1,"maxLength":2000}},"required":["endpoint"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/approval-delegations":{"get":{"tags":["Approval Delegation"],"operationId":"list","summary":"List","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"scope","in":"query","required":false,"schema":{"type":"string","enum":["mine","all"]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Approval Delegation"],"operationId":"create","summary":"Create","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"delegate_id":{"type":"string","format":"uuid"},"delegator_id":{"type":"string","format":"uuid"},"start_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"end_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"required":["delegate_id","start_date","end_date"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/approval-delegations/{id}/revoke":{"post":{"tags":["Approval Delegation"],"operationId":"revoke","summary":"Revoke","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/work-hours":{"get":{"tags":["Payroll (HR)"],"operationId":"getWorkHours","summary":"Get work hours","description":"**Izin:** `payroll:read` atau `attendance:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},{"name":"start","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"end","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"employee_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"department_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/periods":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollPeriods","summary":"List","description":"**Izin:** `payroll:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Payroll (HR)"],"operationId":"postPayrollPeriods","summary":"Create","description":"**Izin:** `payroll:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"pay_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"required":["code"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/periods/{id}/recaps":{"get":{"tags":["Payroll (HR)"],"operationId":"recaps","summary":"Recaps","description":"**Izin:** `payroll:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/periods/{id}/lock":{"post":{"tags":["Payroll (HR)"],"operationId":"lock","summary":"Lock","description":"**Izin:** `payroll:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/periods/{id}/unlock":{"post":{"tags":["Payroll (HR)"],"operationId":"unlock","summary":"Unlock","description":"**Izin:** `payroll:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/periods/{id}/notes":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollPeriodsByidNotes","summary":"GET /api/v1/payroll/periods/:id/notes","description":"**Izin:** `payroll:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Payroll (HR)"],"operationId":"postPayrollPeriodsByidNotes","summary":"POST /api/v1/payroll/periods/:id/notes","description":"**Izin:** `payroll:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employee_id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["HOLD_SALARY","RESIGNATION","OTHER"]},"body":{"type":"string","minLength":1,"maxLength":2000},"effective_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["employee_id","type","body"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/notes/{id}/resolve":{"post":{"tags":["Payroll (HR)"],"operationId":"postPayrollNotesByidResolve","summary":"POST /api/v1/payroll/notes/:id/resolve","description":"**Izin:** `payroll:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"resolution":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/deduction-rules":{"get":{"tags":["Payroll (HR)"],"operationId":"listDeductionRules","summary":"List deduction rules","description":"**Izin:** `payroll:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/deduction-rules/{trigger}":{"put":{"tags":["Payroll (HR)"],"operationId":"updateDeductionRule","summary":"Update deduction rule","description":"**Izin:** `payroll:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"trigger","in":"path","required":true,"schema":{"type":"string","enum":["LATE","VERY_LATE","ABSENT_FLAG","ALPHA"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount_type":{"type":"string","enum":["FIXED","DAILY_WAGE_PERCENT"]},"amount":{"type":"number","minimum":0,"maximum":100000000},"free_occurrences":{"type":"integer","minimum":0,"maximum":31},"is_active":{"type":"boolean"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/rates":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollRates","summary":"List","description":"**Izin:** `payroll:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Payroll (HR)"],"operationId":"postPayrollRates","summary":"Create","description":"**Izin:** `payroll:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["PPH21","BPJS"]},"name":{"type":"string","minLength":3,"maxLength":150},"effective_from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"required":["kind","name","effective_from","config"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/rates/{id}":{"delete":{"tags":["Payroll (HR)"],"operationId":"deletePayrollRatesByid","summary":"Remove","description":"**Izin:** `payroll:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/components":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollComponents","summary":"GET /api/v1/payroll/components","description":"**Izin:** `salary:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Payroll (HR)"],"operationId":"postPayrollComponents","summary":"POST /api/v1/payroll/components","description":"**Izin:** `salary:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^[A-Za-z0-9_]{2,30}$"},"name":{"type":"string","minLength":2,"maxLength":100},"type":{"type":"string","enum":["EARNING","DEDUCTION"]},"taxable":{"type":"boolean"},"is_fixed":{"type":"boolean"},"is_active":{"type":"boolean"},"order_index":{"type":"integer","minimum":0,"maximum":1000},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"required":["code","name","type"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/components/{id}":{"put":{"tags":["Payroll (HR)"],"operationId":"putPayrollComponentsByid","summary":"PUT /api/v1/payroll/components/:id","description":"**Izin:** `salary:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100},"taxable":{"type":"boolean"},"is_fixed":{"type":"boolean"},"is_active":{"type":"boolean"},"order_index":{"type":"integer","minimum":0,"maximum":1000},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/salaries/overview":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollSalariesOverview","summary":"GET /api/v1/payroll/salaries/overview","description":"**Izin:** `salary:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/salaries":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollSalaries","summary":"GET /api/v1/payroll/salaries","description":"**Izin:** `salary:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employee_id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Payroll (HR)"],"operationId":"postPayrollSalaries","summary":"POST /api/v1/payroll/salaries","description":"**Izin:** `salary:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employee_id":{"type":"string","format":"uuid"},"effective_from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pay_basis":{"type":"string","enum":["MONTHLY","DAILY"]},"base_salary":{"type":"number","minimum":0,"maximum":10000000000},"ptkp_status":{"type":"string","enum":["TK0","TK1","TK2","TK3","K0","K1","K2","K3"]},"bpjs_kes_enrolled":{"type":"boolean"},"bpjs_tk_enrolled":{"type":"boolean"},"jp_enrolled":{"type":"boolean"},"bank_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"bank_account_number":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"bank_account_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"items":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"component_id":{"type":"string","format":"uuid"},"amount":{"type":"number","minimum":0,"maximum":10000000000}},"required":["component_id","amount"]}}},"required":["employee_id","effective_from","pay_basis","base_salary","ptkp_status"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/salaries/declared":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollSalariesDeclared","summary":"GET /api/v1/payroll/salaries/declared","description":"**Izin:** `salary:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"employee_id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/salaries/initialize":{"post":{"tags":["Payroll (HR)"],"operationId":"postPayrollSalariesInitialize","summary":"POST /api/v1/payroll/salaries/initialize","description":"**Izin:** `salary:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/periods/{id}/runs":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollPeriodsByidRuns","summary":"GET /api/v1/payroll/periods/:id/runs","description":"**Izin:** `payroll:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Payroll (HR)"],"operationId":"postPayrollPeriodsByidRuns","summary":"POST /api/v1/payroll/periods/:id/runs","description":"**Izin:** `payroll:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"company_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"required":["company_id"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/periods/{id}/companies":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollPeriodsByidCompanies","summary":"GET /api/v1/payroll/periods/:id/companies","description":"**Izin:** `payroll:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/runs/{id}":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollRunsByid","summary":"GET /api/v1/payroll/runs/:id","description":"**Izin:** `payroll:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/runs/{id}/export":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollRunsByidExport","summary":"GET /api/v1/payroll/runs/:id/export","description":"**Izin:** `payroll:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/runs/{id}/finalize":{"post":{"tags":["Payroll (HR)"],"operationId":"postPayrollRunsByidFinalize","summary":"POST /api/v1/payroll/runs/:id/finalize","description":"**Izin:** `payroll:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/runs/{id}/email":{"post":{"tags":["Payroll (HR)"],"operationId":"postPayrollRunsByidEmail","summary":"POST /api/v1/payroll/runs/:id/email","description":"**Izin:** `payroll:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/payslips/{id}":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollPayslipsByid","summary":"GET /api/v1/payroll/payslips/:id","description":"**Izin:** `payroll:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/payslips/{id}/pdf":{"get":{"tags":["Payroll (HR)"],"operationId":"getPayrollPayslipsByidPdf","summary":"GET /api/v1/payroll/payslips/:id/pdf","description":"**Izin:** `payroll:read`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/payroll/payslips/{id}/email":{"post":{"tags":["Payroll (HR)"],"operationId":"postPayrollPayslipsByidEmail","summary":"POST /api/v1/payroll/payslips/:id/email","description":"**Izin:** `payroll:manage`.\n\n**Akses:** Pemegang izin admin (HR, Finance, Super Admin, atau izin tambahan).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/my-payroll/work-hours":{"get":{"tags":["Payroll (Karyawan)"],"operationId":"getMyWorkHours","summary":"Get my work hours","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},{"name":"start","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"end","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"employee_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"department_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/my-payroll/payslips":{"get":{"tags":["Payroll (Karyawan)"],"operationId":"getMyPayrollPayslips","summary":"GET /api/v1/my-payroll/payslips","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/my-payroll/payslips/{id}":{"get":{"tags":["Payroll (Karyawan)"],"operationId":"getMyPayrollPayslipsByid","summary":"GET /api/v1/my-payroll/payslips/:id","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/my-payroll/payslips/{id}/pdf":{"get":{"tags":["Payroll (Karyawan)"],"operationId":"getMyPayrollPayslipsByidPdf","summary":"GET /api/v1/my-payroll/payslips/:id/pdf","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/overtime":{"post":{"tags":["Lembur (SPL)"],"operationId":"postOvertime","summary":"Create","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"planned_start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"planned_end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"reason":{"type":"string","minLength":5,"maxLength":1000}},"required":["date","planned_start","planned_end","reason"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"get":{"tags":["Lembur (SPL)"],"operationId":"listAll","summary":"List all","description":"**Izin:** `overtime:read`.","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","APPROVED","REJECTED","CANCELLED"]}},{"name":"start","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"end","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"employee_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/overtime/my":{"get":{"tags":["Lembur (SPL)"],"operationId":"listMine","summary":"List mine","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/overtime/{id}/cancel":{"post":{"tags":["Lembur (SPL)"],"operationId":"cancel","summary":"Cancel","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/overtime/pending":{"get":{"tags":["Lembur (SPL)"],"operationId":"listPending","summary":"List pending","description":"**Akses:** Approver: Lead departemen, delegasi aktif Lead, anggota departemen CEO, atau pemegang izin approve (cuti/lembur/reimbursement/resign). Wewenang per tingkat diperiksa di service.","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/overtime/{id}/approve":{"post":{"tags":["Lembur (SPL)"],"operationId":"approve","summary":"Approve","description":"**Akses:** Approver: Lead departemen, delegasi aktif Lead, anggota departemen CEO, atau pemegang izin approve (cuti/lembur/reimbursement/resign). Wewenang per tingkat diperiksa di service.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/overtime/{id}/reject":{"post":{"tags":["Lembur (SPL)"],"operationId":"reject","summary":"Reject","description":"**Akses:** Approver: Lead departemen, delegasi aktif Lead, anggota departemen CEO, atau pemegang izin approve (cuti/lembur/reimbursement/resign). Wewenang per tingkat diperiksa di service.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/documents":{"get":{"tags":["Dokumen Saya"],"operationId":"getDocuments","summary":"List mine","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Dokumen Saya"],"operationId":"uploadMine","summary":"Upload mine","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["KTP","NPWP","KK","PHOTO","IJAZAH","TRANSCRIPT","CV","CONTRACT","CERTIFICATE","BPJS","BANK_BOOK","MEDICAL","OTHER"]},"title":{"type":"string","minLength":2,"maxLength":150},"document_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"issued_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"visible_to_employee":{"type":"boolean"}},"required":["category","title"]}},"multipart/form-data":{"schema":{"type":"object","required":["file","category","title"],"properties":{"file":{"type":"string","format":"binary"},"category":{"type":"string","enum":["KTP","NPWP","KK","PHOTO","IJAZAH","TRANSCRIPT","CV","CONTRACT","CERTIFICATE","BPJS","BANK_BOOK","MEDICAL","OTHER"]},"title":{"type":"string","minLength":2,"maxLength":150},"document_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"issued_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"visible_to_employee":{"type":"boolean"}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/documents/{id}/download":{"get":{"tags":["Dokumen Saya"],"operationId":"getDocumentsByidDownload","summary":"Download","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/documents/{id}":{"delete":{"tags":["Dokumen Saya"],"operationId":"deleteDocumentsByid","summary":"Remove","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/categories":{"get":{"tags":["Reimbursement"],"operationId":"categories","summary":"Categories","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"all","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Reimbursement"],"operationId":"addCategory","summary":"Add category","description":"**Izin:** `reimbursement:manage`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100},"account_code":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"is_active":{"type":"boolean"},"order_index":{"type":"integer","minimum":0,"maximum":999}},"required":["name"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/categories/{categoryId}":{"put":{"tags":["Reimbursement"],"operationId":"editCategory","summary":"Edit category","description":"**Izin:** `reimbursement:manage`.","parameters":[{"name":"categoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100},"account_code":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"is_active":{"type":"boolean"},"order_index":{"type":"integer","minimum":0,"maximum":999}},"required":["name"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/settings":{"get":{"tags":["Reimbursement"],"operationId":"settings","summary":"Settings","description":"**Izin:** `reimbursement:manage`.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Reimbursement"],"operationId":"updateSettings","summary":"Update settings","description":"**Izin:** `reimbursement:manage`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pay_day":{"type":"integer","minimum":1,"maximum":28},"ai_threshold":{"type":"number","minimum":0.5,"maximum":0.99}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/batches":{"get":{"tags":["Reimbursement"],"operationId":"getReimbursementsBatches","summary":"List","description":"**Izin:** `reimbursement:read` atau `reimbursement:approve`.","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/batches/next":{"get":{"tags":["Reimbursement"],"operationId":"nextBatch","summary":"Next batch","description":"**Izin:** `reimbursement:approve`.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/batches/{batchId}":{"get":{"tags":["Reimbursement"],"operationId":"detail","summary":"Detail","description":"**Izin:** `reimbursement:read` atau `reimbursement:approve`.","parameters":[{"name":"batchId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/batches/{batchId}/export":{"get":{"tags":["Reimbursement"],"operationId":"exportXlsx","summary":"Export xlsx","description":"**Izin:** `reimbursement:read` atau `reimbursement:approve`.","parameters":[{"name":"batchId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/batches/{batchId}/payments":{"post":{"tags":["Reimbursement"],"operationId":"pay","summary":"Pay","description":"**Izin:** `reimbursement:approve`.","parameters":[{"name":"batchId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employee_ids":{"type":"string"},"all":{"type":"string","enum":["true","false"]}}}},"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"file":{"type":"string","format":"binary"},"employee_ids":{"type":"string"},"all":{"type":"string","enum":["true","false"]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/batches/{batchId}/payments/{employeeId}/proof":{"get":{"tags":["Reimbursement"],"operationId":"proof","summary":"Proof","description":"**Izin:** `reimbursement:read` atau `reimbursement:approve`.","parameters":[{"name":"batchId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"employeeId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements":{"post":{"tags":["Reimbursement"],"operationId":"postReimbursements","summary":"Create","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":200},"items":{"type":"string"},"resubmitted_from_id":{"type":"string","format":"uuid"}},"required":["title","items"]}},"multipart/form-data":{"schema":{"type":"object","required":["files","title","items"],"properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}},"title":{"type":"string","minLength":3,"maxLength":200},"items":{"type":"string"},"resubmitted_from_id":{"type":"string","format":"uuid"}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"get":{"tags":["Reimbursement"],"operationId":"getReimbursements","summary":"List all","description":"**Izin:** `reimbursement:read`.","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","APPROVED","REJECTED","CANCELLED","PAID"]}},{"name":"employee_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/my":{"get":{"tags":["Reimbursement"],"operationId":"getReimbursementsMy","summary":"List mine","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/{id}/cancel":{"post":{"tags":["Reimbursement"],"operationId":"postReimbursementsByidCancel","summary":"Cancel","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/{id}/items/{itemId}/attachments/{attachmentId}":{"get":{"tags":["Reimbursement"],"operationId":"itemAttachment","summary":"Item attachment","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"attachmentId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/{id}/transfer-proof":{"get":{"tags":["Reimbursement"],"operationId":"transferProof","summary":"Transfer proof","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/{id}/pdf":{"get":{"tags":["Reimbursement"],"operationId":"pdf","summary":"Pdf","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/pending":{"get":{"tags":["Reimbursement"],"operationId":"getReimbursementsPending","summary":"List pending","description":"**Izin:** `reimbursement:approve`.","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/{id}/decide":{"post":{"tags":["Reimbursement"],"operationId":"decide","summary":"Decide","description":"**Izin:** `reimbursement:approve`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"items":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"item_id":{"type":"string","format":"uuid"},"decision":{"type":"string","enum":["APPROVED","REJECTED"]},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"required":["item_id","decision"]}},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"required":["version","items"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/{id}/finance-email":{"post":{"tags":["Reimbursement"],"operationId":"resendFinanceEmail","summary":"Resend finance email","description":"**Izin:** `reimbursement:approve`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/reimbursements/{id}/drive-upload":{"post":{"tags":["Reimbursement"],"operationId":"reuploadToDrive","summary":"Reupload to drive","description":"**Izin:** `reimbursement:approve`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/business-trips/settings":{"get":{"tags":["Perjalanan Dinas"],"operationId":"getBusinessTripsSettings","summary":"GET /api/v1/business-trips/settings","description":"**Izin:** `travel:read` atau `travel:allowance`.","responses":{"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Perjalanan Dinas"],"operationId":"putBusinessTripsSettings","summary":"PUT /api/v1/business-trips/settings","description":"**Izin:** `travel:allowance`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"daily_allowance":{"type":"number","minimum":0,"maximum":100000000}},"required":["daily_allowance"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/business-trips/my":{"get":{"tags":["Perjalanan Dinas"],"operationId":"getBusinessTripsMy","summary":"GET /api/v1/business-trips/my","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/business-trips/pending":{"get":{"tags":["Perjalanan Dinas"],"operationId":"getBusinessTripsPending","summary":"GET /api/v1/business-trips/pending","description":"**Akses:** Approver perjalanan dinas: Lead departemen, delegasi aktif Lead, atau pemegang travel:approve / travel:allowance. Wewenang per tingkat diperiksa di service.","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/business-trips":{"post":{"tags":["Perjalanan Dinas"],"operationId":"postBusinessTrips","summary":"POST /api/v1/business-trips","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"origin":{"type":"string","minLength":2,"maxLength":200},"destination":{"type":"string","minLength":2,"maxLength":200},"distance_km":{"type":"integer","minimum":0,"maximum":20000},"purpose":{"type":"string","minLength":5,"maxLength":2000},"transport":{"type":"string","minLength":2,"maxLength":100},"start_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"end_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"kinds":{"type":"string"}},"required":["origin","destination","purpose","transport","start_date","end_date","kinds"]}},"multipart/form-data":{"schema":{"type":"object","required":["files","origin","destination","purpose","transport","start_date","end_date","kinds"],"properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}},"origin":{"type":"string","minLength":2,"maxLength":200},"destination":{"type":"string","minLength":2,"maxLength":200},"distance_km":{"type":"integer","minimum":0,"maximum":20000},"purpose":{"type":"string","minLength":5,"maxLength":2000},"transport":{"type":"string","minLength":2,"maxLength":100},"start_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"end_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"kinds":{"type":"string"}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"get":{"tags":["Perjalanan Dinas"],"operationId":"getBusinessTrips","summary":"GET /api/v1/business-trips","description":"**Izin:** `travel:read`.","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","APPROVED_L1","APPROVED","REJECTED","CANCELLED"]}},{"name":"employee_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/business-trips/{id}/cancel":{"post":{"tags":["Perjalanan Dinas"],"operationId":"postBusinessTripsByidCancel","summary":"POST /api/v1/business-trips/:id/cancel","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/business-trips/{id}/attachments/{attachmentId}":{"get":{"tags":["Perjalanan Dinas"],"operationId":"getBusinessTripsByidAttachmentsByattachmentId","summary":"GET /api/v1/business-trips/:id/attachments/:attachmentId","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"attachmentId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/business-trips/{id}/decide":{"post":{"tags":["Perjalanan Dinas"],"operationId":"postBusinessTripsByidDecide","summary":"POST /api/v1/business-trips/:id/decide","description":"**Akses:** Approver perjalanan dinas: Lead departemen, delegasi aktif Lead, atau pemegang travel:approve / travel:allowance. Wewenang per tingkat diperiksa di service.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","enum":["APPROVED","REJECTED"]},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"allowance_eligible":{"type":"boolean"},"allowance_amount":{"anyOf":[{"type":"number","minimum":0,"maximum":100000000},{"type":"null"}]}},"required":["decision"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/business-trips/{id}/allowance-paid":{"post":{"tags":["Perjalanan Dinas"],"operationId":"postBusinessTripsByidAllowancePaid","summary":"POST /api/v1/business-trips/:id/allowance-paid","description":"**Izin:** `travel:allowance`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/birthdays":{"get":{"tags":["Ulang Tahun"],"operationId":"getBirthdays","summary":"Get birthdays","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"month","in":"query","required":false,"schema":{"type":"string","pattern":"^(0?[1-9]|1[0-2])$"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/holidays":{"get":{"tags":["Kalender Libur"],"operationId":"getCalendarHolidays","summary":"Get calendar holidays","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":2000,"maximum":2100}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/on-call":{"post":{"tags":["On Call"],"operationId":"postOnCall","summary":"Create","description":"**Akses:** semua karyawan yang login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"work_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"half_day":{"default":false,"type":"boolean"},"reason":{"type":"string","minLength":5,"maxLength":1000}},"required":["work_date","reason"]}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"get":{"tags":["On Call"],"operationId":"getOnCall","summary":"List all","description":"**Izin:** `leave:approve`.","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","APPROVED_L1","APPROVED","REJECTED","CANCELLED"]}},{"name":"start","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"end","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"employee_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/on-call/my":{"get":{"tags":["On Call"],"operationId":"getOnCallMy","summary":"List mine","description":"**Akses:** semua karyawan yang login.","responses":{"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/on-call/{id}/cancel":{"post":{"tags":["On Call"],"operationId":"postOnCallByidCancel","summary":"Cancel","description":"**Akses:** semua karyawan yang login.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/on-call/pending":{"get":{"tags":["On Call"],"operationId":"getOnCallPending","summary":"List pending","description":"**Akses:** Approver: Lead departemen, delegasi aktif Lead, anggota departemen CEO, atau pemegang izin approve (cuti/lembur/reimbursement/resign). Wewenang per tingkat diperiksa di service.","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"none"}]}}],"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/on-call/{id}/approve":{"post":{"tags":["On Call"],"operationId":"postOnCallByidApprove","summary":"Approve","description":"**Akses:** Approver: Lead departemen, delegasi aktif Lead, anggota departemen CEO, atau pemegang izin approve (cuti/lembur/reimbursement/resign). Wewenang per tingkat diperiksa di service.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/api/v1/on-call/{id}/reject":{"post":{"tags":["On Call"],"operationId":"postOnCallByidReject","summary":"Reject","description":"**Akses:** Approver: Lead departemen, delegasi aktif Lead, anggota departemen CEO, atau pemegang izin approve (cuti/lembur/reimbursement/resign). Wewenang per tingkat diperiksa di service.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"2XX":{"description":"Berhasil. Bentuk payload mengikuti controller terkait."},"default":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Access token dari POST /api/v1/auth/login atau callback Google OAuth."}},"schemas":{"Error":{"type":"object","required":["status","message"],"properties":{"status":{"type":"string","enum":["fail","error"],"description":"fail = 4xx, error = 5xx"},"message":{"type":"string"},"code":{"type":"string","description":"Kode mesin opsional, mis. PERSONAL_DATA_REQUIRED"}}},"ValidationError":{"type":"object","required":["status","errors"],"properties":{"status":{"type":"string","const":"fail"},"errors":{"description":"Daftar issue Zod atau pesan error"}}}},"responses":{"Error":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ValidationError":{"description":"Request tidak lolos validasi Zod","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}}}}}