{"openapi":"3.1.0","info":{"title":"Billing CRUD API","description":"CRUD API for billing data management","version":"1.0.0"},"paths":{"/api/rate-card/upload":{"post":{"tags":["Rate Card"],"summary":"Upload rate card CSV","description":"Upload a rate card CSV file and bulk create rate cards.\n\nExpected CSV format:\n- RATE ID: Rate card identifier (e.g., RCFY252601)\n- LINE ITEM CODE: Service code (e.g., ACTIVE_EDITORS)\n- Line Item Text: Human readable service name\n- Unit: Unit of measurement (e.g., count, GB, hours)\n- Unit Rate: Rate per unit\n- Min Units: Minimum units required\n- Min Amount: Minimum amount required","operationId":"upload_rate_card_csv_api_rate_card_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_rate_card_csv_api_rate_card_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCardBulkUpload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rate-card/":{"post":{"tags":["Rate Card"],"summary":"Create a new rate card","description":"Create a single rate card.","operationId":"create_rate_card_api_rate_card__post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCardCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Rate Card"],"summary":"List all rate cards","description":"List all rate cards with optional filters.","operationId":"list_rate_cards_api_rate_card__get","parameters":[{"name":"rate_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by rate ID","title":"Rate Id"},"description":"Filter by rate ID"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status (ACTIVE/DELETED)","title":"Status"},"description":"Filter by status (ACTIVE/DELETED)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCardList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rate-card/{doc_id}":{"get":{"tags":["Rate Card"],"summary":"Get rate card by ID","description":"Get a rate card by its document ID.","operationId":"get_rate_card_api_rate_card__doc_id__get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Rate Card"],"summary":"Update a rate card","description":"Update an existing rate card.","operationId":"update_rate_card_api_rate_card__doc_id__put","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCardUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Rate Card"],"summary":"Delete a rate card","description":"Delete a rate card.","operationId":"delete_rate_card_api_rate_card__doc_id__delete","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rate-card/lookup/{rate_id}/{service_code}":{"get":{"tags":["Rate Card"],"summary":"Get rate card by rate ID and service code","description":"Get a rate card by rate ID and service code combination.","operationId":"get_rate_card_by_rate_and_service_api_rate_card_lookup__rate_id___service_code__get","parameters":[{"name":"rate_id","in":"path","required":true,"schema":{"type":"string","title":"Rate Id"}},{"name":"service_code","in":"path","required":true,"schema":{"type":"string","title":"Service Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rate-card/rate-ids/list":{"get":{"tags":["Rate Card"],"summary":"Get all rate IDs","description":"Get all unique rate IDs.","operationId":"get_rate_ids_api_rate_card_rate_ids_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Get Rate Ids Api Rate Card Rate Ids List Get"}}}}}}},"/api/actual-cost/upload":{"post":{"tags":["Actual Cost"],"summary":"Upload actual cost CSV","description":"Upload an actual cost CSV file and bulk create actual cost records.\n\nExpected CSV format:\n- yyyymm: Year and month in YYYYMM format (e.g., 202504)\n- actual_cost: Actual vendor cost for that month\n\nExample:\nyyyymm,actual_cost\n202501,123456.78\n202502,117890.22","operationId":"upload_actual_cost_csv_api_actual_cost_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_actual_cost_csv_api_actual_cost_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActualCostBulkUpload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/actual-cost/":{"post":{"tags":["Actual Cost"],"summary":"Create a new actual cost record","description":"Create a single actual cost record.","operationId":"create_actual_cost_api_actual_cost__post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActualCostCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActualCostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Actual Cost"],"summary":"List all actual costs","description":"List all actual costs with optional date range filter.","operationId":"list_actual_costs_api_actual_cost__get","parameters":[{"name":"start_month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start month in YYYYMM format","title":"Start Month"},"description":"Start month in YYYYMM format"},{"name":"end_month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End month in YYYYMM format","title":"End Month"},"description":"End month in YYYYMM format"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActualCostList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/actual-cost/{yyyymm}":{"get":{"tags":["Actual Cost"],"summary":"Get actual cost by month","description":"Get actual cost for a specific month.","operationId":"get_actual_cost_api_actual_cost__yyyymm__get","parameters":[{"name":"yyyymm","in":"path","required":true,"schema":{"type":"string","title":"Yyyymm"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActualCostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Actual Cost"],"summary":"Update an actual cost record","description":"Update an existing actual cost record.","operationId":"update_actual_cost_api_actual_cost__yyyymm__put","parameters":[{"name":"yyyymm","in":"path","required":true,"schema":{"type":"string","title":"Yyyymm"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActualCostUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActualCostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Actual Cost"],"summary":"Delete an actual cost record","description":"Delete an actual cost record.","operationId":"delete_actual_cost_api_actual_cost__yyyymm__delete","parameters":[{"name":"yyyymm","in":"path","required":true,"schema":{"type":"string","title":"Yyyymm"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/actual-cost/summary/stats":{"get":{"tags":["Actual Cost"],"summary":"Get summary statistics","description":"Get summary statistics for actual costs.","operationId":"get_summary_stats_api_actual_cost_summary_stats_get","parameters":[{"name":"start_month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start month in YYYYMM format","title":"Start Month"},"description":"Start month in YYYYMM format"},{"name":"end_month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End month in YYYYMM format","title":"End Month"},"description":"End month in YYYYMM format"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActualCostSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-mapping/upload":{"post":{"tags":["Business Mapping"],"summary":"Upload business mapping CSV","description":"Upload a business mapping CSV file and bulk create business mappings.\n\nExpected CSV format:\n- business_unit: Business code (e.g., PRIME, TIL, ET)\n- Bonus: 1 if eligible for profit sharing, 0 if not\n\nExample:\nbusiness_unit,Bonus\nPRIME,1\nTIL,0\nET,1","operationId":"upload_business_mapping_csv_api_business_mapping_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_business_mapping_csv_api_business_mapping_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessMappingBulkUpload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-mapping/":{"post":{"tags":["Business Mapping"],"summary":"Create a new business mapping","description":"Create a single business mapping.","operationId":"create_business_mapping_api_business_mapping__post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessMappingCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessMappingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Business Mapping"],"summary":"List all business mappings","description":"List all business mappings with optional filter.","operationId":"list_business_mappings_api_business_mapping__get","parameters":[{"name":"profit_eligible","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by profit eligibility status","title":"Profit Eligible"},"description":"Filter by profit eligibility status"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessMappingList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-mapping/{business}":{"get":{"tags":["Business Mapping"],"summary":"Get business mapping by business name","description":"Get business mapping for a specific business.","operationId":"get_business_mapping_api_business_mapping__business__get","parameters":[{"name":"business","in":"path","required":true,"schema":{"type":"string","title":"Business"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessMappingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Business Mapping"],"summary":"Update a business mapping","description":"Update an existing business mapping.","operationId":"update_business_mapping_api_business_mapping__business__put","parameters":[{"name":"business","in":"path","required":true,"schema":{"type":"string","title":"Business"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessMappingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessMappingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Business Mapping"],"summary":"Delete a business mapping","description":"Delete a business mapping.","operationId":"delete_business_mapping_api_business_mapping__business__delete","parameters":[{"name":"business","in":"path","required":true,"schema":{"type":"string","title":"Business"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business-mapping/summary/stats":{"get":{"tags":["Business Mapping"],"summary":"Get summary statistics","description":"Get summary statistics for business mappings.","operationId":"get_summary_stats_api_business_mapping_summary_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessMappingSummary"}}}}}}},"/api/business-mapping/eligible/businesses":{"get":{"tags":["Business Mapping"],"summary":"Get list of eligible businesses","description":"Get list of business names that are eligible for profit sharing.","operationId":"get_eligible_businesses_api_business_mapping_eligible_businesses_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Get Eligible Businesses Api Business Mapping Eligible Businesses Get"}}}}}}},"/api/business-mapping/not-eligible/businesses":{"get":{"tags":["Business Mapping"],"summary":"Get list of not eligible businesses","description":"Get list of business names that are not eligible for profit sharing.","operationId":"get_not_eligible_businesses_api_business_mapping_not_eligible_businesses_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Get Not Eligible Businesses Api Business Mapping Not Eligible Businesses Get"}}}}}}},"/api/invoice/business/{business}":{"get":{"tags":["Invoice"],"summary":"Get detailed invoice for specific business","description":"Get detailed invoice data for a specific business from monthly billing CSV.\n\nReturns detailed line items, totals, and business information.","operationId":"get_business_eligibility_api_invoice_business__business__get","parameters":[{"name":"business","in":"path","required":true,"schema":{"type":"string","title":"Business"}},{"name":"year","in":"query","required":true,"schema":{"type":"integer","description":"Year (e.g., 2025)","title":"Year"},"description":"Year (e.g., 2025)"},{"name":"month","in":"query","required":true,"schema":{"type":"integer","description":"Month (1-12)","title":"Month"},"description":"Month (1-12)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Business Eligibility Api Invoice Business  Business  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/invoice/monthly/{year}/{month}":{"get":{"tags":["Invoice"],"summary":"Get monthly summary for all businesses","description":"Get monthly summary for all businesses from monthly billing CSV.\n\nReturns business totals and overall summary without detailed line items.","operationId":"get_monthly_summary_api_invoice_monthly__year___month__get","parameters":[{"name":"year","in":"path","required":true,"schema":{"type":"integer","title":"Year"}},{"name":"month","in":"path","required":true,"schema":{"type":"integer","title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Monthly Summary Api Invoice Monthly  Year   Month  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/invoice/available-months":{"get":{"tags":["Invoice"],"summary":"List available monthly billing files","description":"List all available monthly billing CSV files.\n\nReturns list of years and months with billing data available.","operationId":"list_available_months_api_invoice_available_months_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"object"},"type":"array","title":"Response List Available Months Api Invoice Available Months Get"}}}}}}},"/billing/recompute/{yyyymm}":{"post":{"tags":["Billing"],"summary":"Trigger recompute for a month","description":"Start a background recompute for the given yyyymm.","operationId":"trigger_recompute_billing_recompute__yyyymm__post","parameters":[{"name":"yyyymm","in":"path","required":true,"schema":{"type":"string","title":"Yyyymm"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Trigger Recompute Billing Recompute  Yyyymm  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/recompute/{job_id}":{"get":{"tags":["Billing"],"summary":"Get recompute job status","description":"Fetch status for a recompute job.","operationId":"get_recompute_status_billing_recompute__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Recompute Status Billing Recompute  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/history/{yyyymm}":{"get":{"tags":["Billing"],"summary":"List history versions for a month","description":"List saved history versions for a month.","operationId":"list_history_billing_history__yyyymm__get","parameters":[{"name":"yyyymm","in":"path","required":true,"schema":{"type":"string","title":"Yyyymm"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List History Billing History  Yyyymm  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/history/{yyyymm}/{version_id}":{"get":{"tags":["Billing"],"summary":"Get history version details for a month","description":"Fetch a specific history version (snapshots + delta) for a month.","operationId":"get_history_version_billing_history__yyyymm___version_id__get","parameters":[{"name":"yyyymm","in":"path","required":true,"schema":{"type":"string","title":"Yyyymm"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get History Version Billing History  Yyyymm   Version Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Billing"],"summary":"Delete a history version","description":"Delete a specific history version for a month.","operationId":"delete_history_version_billing_history__yyyymm___version_id__delete","parameters":[{"name":"yyyymm","in":"path","required":true,"schema":{"type":"string","title":"Yyyymm"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete History Version Billing History  Yyyymm   Version Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/rate-ids":{"get":{"tags":["Billing"],"summary":"Get all rate IDs","description":"Get all unique rate IDs from the cost_card index.","operationId":"get_rate_ids_billing_rate_ids_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Get Rate Ids Billing Rate Ids Get"}}}}}}},"/billing/rate-card":{"get":{"tags":["Billing"],"summary":"Get rate card by rate ID","description":"Get rate card data for a specific rate ID.","operationId":"get_rate_card_billing_rate_card_get","parameters":[{"name":"rate_id","in":"query","required":true,"schema":{"type":"string","description":"Rate card ID","title":"Rate Id"},"description":"Rate card ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Rate Card Billing Rate Card Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/units":{"get":{"tags":["Billing"],"summary":"Get all business units","description":"Get all business units from business_eligibility index.","operationId":"get_business_units_billing_units_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Get Business Units Billing Units Get"}}}}}}},"/billing/months":{"get":{"tags":["Billing"],"summary":"Get available months","description":"Get all available months from monthly_snapshots index.","operationId":"get_available_months_billing_months_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Get Available Months Billing Months Get"}}}}}}},"/billing/actual/all":{"get":{"tags":["Billing"],"summary":"Get all actual costs","description":"Get all actual costs from actual_cost index.","operationId":"get_all_actual_costs_billing_actual_all_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get All Actual Costs Billing Actual All Get"}}}}}}},"/billing/monthly/{yyyymm}":{"get":{"tags":["Billing"],"summary":"Get monthly data","description":"Get monthly data for a specific month.","operationId":"get_monthly_data_billing_monthly__yyyymm__get","parameters":[{"name":"yyyymm","in":"path","required":true,"schema":{"type":"string","title":"Yyyymm"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Monthly Data Billing Monthly  Yyyymm  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/monthly/{yyyymm}/summary":{"get":{"tags":["Billing"],"summary":"Get monthly summary","description":"Get monthly summary data.","operationId":"get_monthly_summary_billing_monthly__yyyymm__summary_get","parameters":[{"name":"yyyymm","in":"path","required":true,"schema":{"type":"string","title":"Yyyymm"}},{"name":"unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by business unit","title":"Unit"},"description":"Filter by business unit"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Monthly Summary Billing Monthly  Yyyymm  Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/annual/{year}/summary":{"get":{"tags":["Billing"],"summary":"Get annual summary","description":"Get annual summary data.","operationId":"get_annual_summary_billing_annual__year__summary_get","parameters":[{"name":"year","in":"path","required":true,"schema":{"type":"string","title":"Year"}},{"name":"unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by business unit","title":"Unit"},"description":"Filter by business unit"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Annual Summary Billing Annual  Year  Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/quarterly/{year}/{quarter}/summary":{"get":{"tags":["Billing"],"summary":"Get quarterly summary","description":"Get quarterly summary data.","operationId":"get_quarterly_summary_billing_quarterly__year___quarter__summary_get","parameters":[{"name":"year","in":"path","required":true,"schema":{"type":"string","title":"Year"}},{"name":"quarter","in":"path","required":true,"schema":{"type":"string","title":"Quarter"}},{"name":"unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by business unit","title":"Unit"},"description":"Filter by business unit"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Quarterly Summary Billing Quarterly  Year   Quarter  Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/all/summary":{"get":{"tags":["Billing"],"summary":"Get all time summary","description":"Get all time summary data.","operationId":"get_all_summary_billing_all_summary_get","parameters":[{"name":"unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by business unit","title":"Unit"},"description":"Filter by business unit"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get All Summary Billing All Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/daily-analytics/test":{"get":{"tags":["Daily Analytics"],"summary":"Test endpoint","description":"Test endpoint to verify basic functionality.","operationId":"test_endpoint_api_daily_analytics_test_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Test Endpoint Api Daily Analytics Test Get"}}}}}}},"/api/daily-analytics/test-es":{"get":{"tags":["Daily Analytics"],"summary":"Test Elasticsearch connection","description":"Test Elasticsearch connection and basic query.","operationId":"test_es_connection_api_daily_analytics_test_es_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Test Es Connection Api Daily Analytics Test Es Get"}}}}}}},"/api/daily-analytics/daily-snapshots":{"get":{"tags":["Daily Analytics"],"summary":"Get daily snapshots data","description":"Get daily snapshots data from the dailysnapshots index.","operationId":"get_daily_snapshots_api_daily_analytics_daily_snapshots_get","parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","description":"Year (e.g., 2025)","title":"Year"},"description":"Year (e.g., 2025)"},{"name":"month","in":"query","required":true,"schema":{"type":"integer","description":"Month (1-12)","title":"Month"},"description":"Month (1-12)"},{"name":"business_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by business unit","title":"Business Unit"},"description":"Filter by business unit"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Daily Snapshots Api Daily Analytics Daily Snapshots Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/daily-analytics/daily-snapshots/business-units":{"get":{"tags":["Daily Analytics"],"summary":"Get available business units from daily snapshots","description":"Get list of available business units from daily snapshots.","operationId":"get_available_business_units_api_daily_analytics_daily_snapshots_business_units_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Get Available Business Units Api Daily Analytics Daily Snapshots Business Units Get"}}}}}}},"/api/daily-analytics/daily-snapshots/available-months":{"get":{"tags":["Daily Analytics"],"summary":"Get available months from daily snapshots","description":"Get list of available months from daily snapshots with proper day counts.","operationId":"get_available_months_api_daily_analytics_daily_snapshots_available_months_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"object"},"type":"array","title":"Response Get Available Months Api Daily Analytics Daily Snapshots Available Months Get"}}}}}}},"/api/daily-analytics/daily-snapshots/chart-data":{"get":{"tags":["Daily Analytics"],"summary":"Get chart data organized by business unit","description":"Get chart data organized by business unit for multi-line chart.","operationId":"get_chart_data_api_daily_analytics_daily_snapshots_chart_data_get","parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","description":"Year (e.g., 2025)","title":"Year"},"description":"Year (e.g., 2025)"},{"name":"month","in":"query","required":true,"schema":{"type":"integer","description":"Month (1-12)","title":"Month"},"description":"Month (1-12)"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date (YYYY-MM-DD)","title":"Start Date"},"description":"Start date (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date (YYYY-MM-DD)","title":"End Date"},"description":"End date (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Chart Data Api Daily Analytics Daily Snapshots Chart Data Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/daily-analytics/monthly-summary":{"get":{"tags":["Daily Analytics"],"summary":"Get monthly analytics summary","description":"Get monthly analytics summary for all channels or specific channels.","operationId":"get_monthly_summary_api_daily_analytics_monthly_summary_get","parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","description":"Year (e.g., 2025)","title":"Year"},"description":"Year (e.g., 2025)"},{"name":"month","in":"query","required":true,"schema":{"type":"integer","description":"Month (1-12)","title":"Month"},"description":"Month (1-12)"},{"name":"channels","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of channels","title":"Channels"},"description":"Comma-separated list of channels"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Monthly Summary Api Daily Analytics Monthly Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/daily-analytics/daily-trends":{"get":{"tags":["Daily Analytics"],"summary":"Get daily trends for a month","description":"Get daily trends for a specific month.","operationId":"get_daily_trends_api_daily_analytics_daily_trends_get","parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","description":"Year (e.g., 2025)","title":"Year"},"description":"Year (e.g., 2025)"},{"name":"month","in":"query","required":true,"schema":{"type":"integer","description":"Month (1-12)","title":"Month"},"description":"Month (1-12)"},{"name":"channels","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of channels","title":"Channels"},"description":"Comma-separated list of channels"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Daily Trends Api Daily Analytics Daily Trends Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/daily-analytics/channels":{"get":{"tags":["Daily Analytics"],"summary":"Get available channels","description":"Get list of available channels for analytics.","operationId":"get_available_channels_api_daily_analytics_channels_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Get Available Channels Api Daily Analytics Channels Get"}}}}}}},"/api/export/monthly/{yyyymm}":{"get":{"tags":["Export"],"summary":"Export single month data as CSV","description":"Export monthly snapshot data for a single month in CSV format","operationId":"export_single_month_api_export_monthly__yyyymm__get","parameters":[{"name":"yyyymm","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{6}$","description":"Month in YYYYMM format (e.g., 202504)","title":"Yyyymm"},"description":"Month in YYYYMM format (e.g., 202504)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/monthly":{"get":{"tags":["Export"],"summary":"Export multiple months or date range as CSV","description":"Export monthly snapshot data for multiple months or a date range in CSV format","operationId":"export_multiple_months_api_export_monthly_get","parameters":[{"name":"months","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of months in YYYYMM format (e.g., '202504,202505,202506')","title":"Months"},"description":"Comma-separated list of months in YYYYMM format (e.g., '202504,202505,202506')"},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9]{6}$"},{"type":"null"}],"description":"Start month in YYYYMM format (e.g., '202504')","title":"Start"},"description":"Start month in YYYYMM format (e.g., '202504')"},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9]{6}$"},{"type":"null"}],"description":"End month in YYYYMM format (e.g., '202512')","title":"End"},"description":"End month in YYYYMM format (e.g., '202512')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/check":{"get":{"tags":["Authentication"],"summary":"Check Authentication","operationId":"check_authentication_auth_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Check Authentication Auth Check Get"}}}}}}},"/health":{"get":{"summary":"Health check","description":"Health check endpoint.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}}},"components":{"schemas":{"ActualCostBulkUpload":{"properties":{"total_records":{"type":"integer","title":"Total Records"},"successful_records":{"type":"integer","title":"Successful Records"},"failed_records":{"type":"integer","title":"Failed Records"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors"}},"type":"object","required":["total_records","successful_records","failed_records"],"title":"ActualCostBulkUpload","description":"Model for bulk upload response."},"ActualCostCreate":{"properties":{"yyyymm":{"type":"string","maxLength":6,"minLength":6,"title":"Yyyymm","description":"Year and month in YYYYMM format"},"actual_cost":{"type":"number","title":"Actual Cost","description":"Actual vendor cost for the month"}},"type":"object","required":["yyyymm","actual_cost"],"title":"ActualCostCreate","description":"Model for creating a new actual cost record."},"ActualCostList":{"properties":{"total":{"type":"integer","title":"Total"},"actual_costs":{"items":{"$ref":"#/components/schemas/ActualCostResponse"},"type":"array","title":"Actual Costs"}},"type":"object","required":["total","actual_costs"],"title":"ActualCostList","description":"Model for list response."},"ActualCostResponse":{"properties":{"yyyymm":{"type":"string","maxLength":6,"minLength":6,"title":"Yyyymm","description":"Year and month in YYYYMM format"},"actual_cost":{"type":"number","title":"Actual Cost","description":"Actual vendor cost for the month"},"id":{"type":"string","title":"Id","description":"Document ID (same as yyyymm)"}},"type":"object","required":["yyyymm","actual_cost","id"],"title":"ActualCostResponse","description":"Model for actual cost response."},"ActualCostSummary":{"properties":{"total_cost":{"type":"number","title":"Total Cost"},"average_cost":{"type":"number","title":"Average Cost"},"min_cost":{"type":"number","title":"Min Cost"},"max_cost":{"type":"number","title":"Max Cost"},"month_count":{"type":"integer","title":"Month Count"},"date_range":{"additionalProperties":{"type":"string"},"type":"object","title":"Date Range"}},"type":"object","required":["total_cost","average_cost","min_cost","max_cost","month_count","date_range"],"title":"ActualCostSummary","description":"Model for cost summary statistics."},"ActualCostUpdate":{"properties":{"actual_cost":{"type":"number","title":"Actual Cost","description":"Updated actual vendor cost"}},"type":"object","required":["actual_cost"],"title":"ActualCostUpdate","description":"Model for updating an existing actual cost record."},"Body_upload_actual_cost_csv_api_actual_cost_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_actual_cost_csv_api_actual_cost_upload_post"},"Body_upload_business_mapping_csv_api_business_mapping_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_business_mapping_csv_api_business_mapping_upload_post"},"Body_upload_rate_card_csv_api_rate_card_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_rate_card_csv_api_rate_card_upload_post"},"BusinessMappingBulkUpload":{"properties":{"total_records":{"type":"integer","title":"Total Records"},"eligible_count":{"type":"integer","title":"Eligible Count"},"not_eligible_count":{"type":"integer","title":"Not Eligible Count"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors"}},"type":"object","required":["total_records","eligible_count","not_eligible_count"],"title":"BusinessMappingBulkUpload","description":"Model for bulk upload response."},"BusinessMappingCreate":{"properties":{"business":{"type":"string","minLength":1,"title":"Business","description":"Business code"},"profit_eligible":{"type":"boolean","title":"Profit Eligible","description":"Whether business is eligible for profit sharing"},"rate_card":{"type":"string","minLength":1,"title":"Rate Card","description":"Rate card ID for this business"},"doc_type":{"type":"string","title":"Doc Type","description":"Document type","default":"eligibility"}},"type":"object","required":["business","profit_eligible","rate_card"],"title":"BusinessMappingCreate","description":"Model for creating a new business mapping."},"BusinessMappingList":{"properties":{"total":{"type":"integer","title":"Total"},"business_mappings":{"items":{"$ref":"#/components/schemas/BusinessMappingResponse"},"type":"array","title":"Business Mappings"}},"type":"object","required":["total","business_mappings"],"title":"BusinessMappingList","description":"Model for list response."},"BusinessMappingResponse":{"properties":{"business":{"type":"string","minLength":1,"title":"Business","description":"Business code"},"profit_eligible":{"type":"boolean","title":"Profit Eligible","description":"Whether business is eligible for profit sharing"},"rate_card":{"type":"string","minLength":1,"title":"Rate Card","description":"Rate card ID for this business"},"doc_type":{"type":"string","title":"Doc Type","description":"Document type","default":"eligibility"},"id":{"type":"string","title":"Id","description":"Document ID (business|doc_type)"}},"type":"object","required":["business","profit_eligible","rate_card","id"],"title":"BusinessMappingResponse","description":"Model for business mapping response."},"BusinessMappingSummary":{"properties":{"total_businesses":{"type":"integer","title":"Total Businesses"},"eligible_businesses":{"type":"integer","title":"Eligible Businesses"},"not_eligible_businesses":{"type":"integer","title":"Not Eligible Businesses"},"eligibility_percentage":{"type":"number","title":"Eligibility Percentage"}},"type":"object","required":["total_businesses","eligible_businesses","not_eligible_businesses","eligibility_percentage"],"title":"BusinessMappingSummary","description":"Model for summary statistics."},"BusinessMappingUpdate":{"properties":{"profit_eligible":{"type":"boolean","title":"Profit Eligible","description":"Updated profit eligibility status"}},"type":"object","required":["profit_eligible"],"title":"BusinessMappingUpdate","description":"Model for updating an existing business mapping."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status","description":"Health status"},"message":{"type":"string","title":"Message","description":"Status message"},"version":{"type":"string","title":"Version","description":"API version"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"Response timestamp"}},"type":"object","required":["status","message","version"],"title":"HealthResponse","description":"Health check response model."},"LineItem":{"properties":{"service_code":{"allOf":[{"$ref":"#/components/schemas/ServiceCodeType"}],"description":"Service code from predefined enum"},"line_item_text":{"type":"string","title":"Line Item Text","description":"Human readable service name"},"unit":{"allOf":[{"$ref":"#/components/schemas/UnitType"}],"description":"Unit of measurement from predefined enum"},"unit_rate":{"type":"number","minimum":0.0,"title":"Unit Rate","description":"Rate per unit"},"min_units":{"type":"number","minimum":0.0,"title":"Min Units","description":"Minimum units required"},"min_amount":{"type":"number","minimum":0.0,"title":"Min Amount","description":"Minimum amount required"},"status":{"allOf":[{"$ref":"#/components/schemas/StatusType"}],"description":"Status from predefined enum"}},"type":"object","required":["service_code","line_item_text","unit","unit_rate","min_units","min_amount","status"],"title":"LineItem","description":"Model for individual line item within a rate card."},"RateCardBulkUpload":{"properties":{"total_records":{"type":"integer","minimum":0.0,"title":"Total Records","description":"Total number of records processed"},"active_records":{"type":"integer","minimum":0.0,"title":"Active Records","description":"Number of active records"},"deleted_records":{"type":"integer","minimum":0.0,"title":"Deleted Records","description":"Number of deleted records"},"rate_ids":{"items":{"type":"string"},"type":"array","title":"Rate Ids","description":"List of processed rate card IDs"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors","description":"List of error messages if any"}},"type":"object","required":["total_records","active_records","deleted_records","rate_ids"],"title":"RateCardBulkUpload","description":"Model for bulk upload response."},"RateCardCreate":{"properties":{"rate_id":{"type":"string","minLength":1,"title":"Rate Id","description":"Rate card ID"},"line_items":{"items":{"$ref":"#/components/schemas/LineItem"},"type":"array","minItems":1,"title":"Line Items","description":"List of line items for this rate card"},"total_line_items":{"type":"integer","minimum":0.0,"title":"Total Line Items","description":"Total number of line items"},"active_line_items":{"type":"integer","minimum":0.0,"title":"Active Line Items","description":"Number of active line items"},"created_at":{"type":"integer","exclusiveMinimum":0.0,"title":"Created At","description":"Creation timestamp (Unix epoch)"},"updated_at":{"type":"integer","exclusiveMinimum":0.0,"title":"Updated At","description":"Last update timestamp (Unix epoch)"}},"type":"object","required":["rate_id","line_items","total_line_items","active_line_items","created_at","updated_at"],"title":"RateCardCreate","description":"Model for creating a new rate card."},"RateCardList":{"properties":{"total":{"type":"integer","minimum":0.0,"title":"Total","description":"Total number of rate cards"},"rate_cards":{"items":{"$ref":"#/components/schemas/RateCardResponse"},"type":"array","title":"Rate Cards","description":"List of rate card responses"}},"type":"object","required":["total","rate_cards"],"title":"RateCardList","description":"Model for list response."},"RateCardResponse":{"properties":{"rate_id":{"type":"string","minLength":1,"title":"Rate Id","description":"Rate card ID"},"line_items":{"items":{"$ref":"#/components/schemas/LineItem"},"type":"array","minItems":1,"title":"Line Items","description":"List of line items for this rate card"},"total_line_items":{"type":"integer","minimum":0.0,"title":"Total Line Items","description":"Total number of line items"},"active_line_items":{"type":"integer","minimum":0.0,"title":"Active Line Items","description":"Number of active line items"},"created_at":{"type":"integer","exclusiveMinimum":0.0,"title":"Created At","description":"Creation timestamp (Unix epoch)"},"updated_at":{"type":"integer","exclusiveMinimum":0.0,"title":"Updated At","description":"Last update timestamp (Unix epoch)"},"id":{"type":"string","title":"Id","description":"Document ID (same as rate_id)"}},"type":"object","required":["rate_id","line_items","total_line_items","active_line_items","created_at","updated_at","id"],"title":"RateCardResponse","description":"Model for rate card response."},"RateCardUpdate":{"properties":{"line_items":{"anyOf":[{"items":{"$ref":"#/components/schemas/LineItem"},"type":"array"},{"type":"null"}],"title":"Line Items","description":"Updated list of line items"},"total_line_items":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total Line Items","description":"Updated total number of line items"},"active_line_items":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Active Line Items","description":"Updated number of active line items"},"updated_at":{"type":"integer","exclusiveMinimum":0.0,"title":"Updated At","description":"Update timestamp (Unix epoch)"}},"type":"object","required":["updated_at"],"title":"RateCardUpdate","description":"Model for updating an existing rate card."},"ServiceCodeType":{"type":"string","enum":["ACTIVE_EDITORS","CONTENT_COUNT_NEW","TRANSCODING_SIZE","CONTENT_COUNT_TOTAL","CDN_STORAGE_TOTAL","LOCAL_STORAGE","MEDIA_PLAY_COUNT","MEDIA_PLAY_DURATION","RECOMMENDATION","LIVE_PLAY_DURATION","LIVE_STUDIO_RTMP","SOCIAL_PUBLISHING","LIVE_CHANNEL_RECORDER","AI_MEDIA_DURATION","MEDIA_TRANSLATION_DURATION"],"title":"ServiceCodeType","description":"Service code type enum for strong typing."},"StatusType":{"type":"string","enum":["ACTIVE","DELETED"],"title":"StatusType","description":"Status type enum for strong typing."},"UnitType":{"type":"string","enum":["count","GB","hours","minute"],"title":"UnitType","description":"Unit type enum for strong typing."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}