{"openapi":"3.1.0","info":{"title":"DIMS API","description":"API for DIMS (Dimensional Scan) Web application","contact":{"name":"DIMS Team","email":"support@example.com"},"version":"0.1.0"},"paths":{"/api/manifests/columns":{"get":{"tags":["manifests","manifests"],"summary":"Get Manifest Columns","description":"Return the org's manifest CSV column mapping.\n\nRole: any user whose org has the manifest feature (or super_admin).\nPUT remains super_admin only.","operationId":"get_manifest_columns_api_manifests_columns_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgManifestColumns"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["manifests","manifests"],"summary":"Upsert Manifest Columns","description":"Create or update the org's manifest CSV column mapping. Role: super_admin.","operationId":"upsert_manifest_columns_api_manifests_columns_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgManifestColumnsUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgManifestColumns"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/manifests/import/preview":{"post":{"tags":["manifests","manifests"],"summary":"Preview Manifest Csv","description":"Return normalised headers from a CSV/Excel file. Role: admin or higher.","operationId":"preview_manifest_csv_api_manifests_import_preview_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_preview_manifest_csv_api_manifests_import_preview_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/manifests/import/csv":{"post":{"tags":["manifests","manifests"],"summary":"Import Manifest Csv","description":"Upload a CSV or Excel manifest using the org's saved column mapping.\nOptional height/width/length columns are converted to inches from\ndimension_unit, defaulting to the org's configured unit.\nRole: super_admin (always), or admin/higher when the org has the manifest feature.","operationId":"import_manifest_csv_api_manifests_import_csv_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_manifest_csv_api_manifests_import_csv_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/manifests/import/with-columns":{"post":{"tags":["manifests","manifests"],"summary":"Import Manifest Csv With Columns","description":"Save the org's column mapping, then upload a CSV or Excel manifest.\ndimension_unit, when given, is saved as the org's default unit;\notherwise the existing unit (meters for a new mapping) is kept.\nRole: super_admin (same as PUT /api/manifests/columns).","operationId":"import_manifest_csv_with_columns_api_manifests_import_with_columns_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_manifest_csv_with_columns_api_manifests_import_with_columns_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/manifests":{"get":{"tags":["manifests","manifests"],"summary":"List Manifests","description":"Return all manifests for the org, newest first. Role: any user with the manifest feature.","operationId":"list_manifests_api_manifests_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ManifestListItem"},"title":"Response List Manifests Api Manifests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/manifests/{manifest_id}":{"get":{"tags":["manifests","manifests"],"summary":"Get Manifest Detail","description":"Return manifest metadata + overall counts + per-shipment summaries.\nRole: any user with the manifest feature.\nSuper-admin only: from/to filter scans by mission_result_labels.inserted_at.\nSuper-admin only: organization_id targets another org.","operationId":"get_manifest_detail_api_manifests__manifest_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"manifest_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Manifest Id"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManifestDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["manifests","manifests"],"summary":"Patch Manifest Name","description":"Update the manifest's custom display name. Role: admin or higher.","operationId":"patch_manifest_name_api_manifests__manifest_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"manifest_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Manifest Id"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManifestNameUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManifestDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["manifests","manifests"],"summary":"Delete Manifest","description":"Delete a manifest and all its items (via ON DELETE CASCADE).\nRole: admin or higher.","operationId":"delete_manifest_api_manifests__manifest_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"manifest_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Manifest Id"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/manifests/{manifest_id}/shipments/{shipment_value}":{"get":{"tags":["manifests","manifests"],"summary":"Get Shipment Detail","description":"Return all handling units and their label rows for one shipment.\nEach label row includes its scanned status derived from mission_result_labels.\nRole: any user with the manifest feature.\nSuper-admin only: from/to filter scans by mission_result_labels.inserted_at.\nSuper-admin only: organization_id targets another org.","operationId":"get_shipment_detail_api_manifests__manifest_id__shipments__shipment_value__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"manifest_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Manifest Id"}},{"name":"shipment_value","in":"path","required":true,"schema":{"type":"string","title":"Shipment Value"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/manifest-items/overview":{"get":{"tags":["manifests","manifests"],"summary":"Get Manifest Items Overview","description":"Return a time-windowed rollup of manifest items across ALL manifests\n(CSVs) for the org, grouped by shipment. Drives the customer-facing\ntime-based Manifests page. Role: any user with the manifest feature.\nSuper-admin only: organization_id targets another org.","operationId":"get_manifest_items_overview_api_manifest_items_overview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManifestItemsOverview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/manifest-items/page":{"get":{"tags":["manifests","manifests"],"summary":"Get Manifest Items Page","description":"Paginated shipments in the time window. No scan matching.","operationId":"get_manifest_items_page_api_manifest_items_page_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManifestItemsPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/manifest-items/totals":{"get":{"tags":["manifests","manifests"],"summary":"Get Manifest Items Totals","description":"Window-wide shipment / HU / label counts. No scan matching.","operationId":"get_manifest_items_totals_api_manifest_items_totals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManifestItemsTotals"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/manifest-items/captures":{"get":{"tags":["manifests","manifests"],"summary":"Get Manifest Items Captures","description":"Scan rollups for the shipments currently on the list page.","operationId":"get_manifest_items_captures_api_manifest_items_captures_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}},{"name":"shipment_value","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Shipment Value"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManifestItemsCaptures"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/manifest-items/label-status":{"get":{"tags":["manifests","manifests"],"summary":"Get Manifest Items Label Status","description":"Return every in-window manifest label with scan check-off status.\n\nFlat list for dashboards that need a label→shipment map and unscanned\nrows without issuing one shipment-detail request per shipment.","operationId":"get_manifest_items_label_status_api_manifest_items_label_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManifestItemsLabelStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/manifest-items/shipments/{shipment_value}":{"get":{"tags":["manifests","manifests"],"summary":"Get Manifest Items Shipment Detail","description":"Return all handling units and label rows for one shipment, aggregated\nacross ALL manifests (CSVs) for the org within the time window. Role: any\nuser with the manifest feature. Super-admin only: organization_id targets\nanother org.","operationId":"get_manifest_items_shipment_detail_api_manifest_items_shipments__shipment_value__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_value","in":"path","required":true,"schema":{"type":"string","title":"Shipment Value"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipments":{"get":{"tags":["shipments","shipments"],"summary":"Get Shipments","description":"Return shipments visible to a user with optional pagination, sorting, and filtering.\n\nSupports cursor-based pagination for optimal performance with large datasets.\n\n**Enhanced Features:**\n- Sort by title, created_at, updated_at, width, height, depth, or weight in ascending or descending order\n- Search by title (fuzzy/partial match)\n- Filter by date ranges (updated_at)\n- Filter by creator (admin only)\n- Estimated total count in pagination metadata\n\n**Backward Compatibility:**\nAll new parameters are optional. If not specified, the endpoint behaves as before.\nFiltering and sorting apply only to owned shipments; shared shipments remain unfiltered.","operationId":"get_shipments_api_shipments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":200,"minimum":1},{"type":"null"}],"description":"Number of items per page (1-200). When not specified, returns all items (backward compatible).","title":"Page Size"},"description":"Number of items per page (1-200). When not specified, returns all items (backward compatible)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pagination cursor for retrieving the next page of results","title":"Cursor"},"description":"Pagination cursor for retrieving the next page of results"},{"name":"shared_cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pagination cursor for retrieving the next page of shared results","title":"Shared Cursor"},"description":"Pagination cursor for retrieving the next page of shared results"},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ShipmentSortField","description":"Field to sort by (title, created_at, updated_at, width, height, depth, weight)","default":"updated_at"},"description":"Field to sort by (title, created_at, updated_at, width, height, depth, weight)"},{"name":"sort_order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortOrder","description":"Sort order (asc, desc)","default":"desc"},"description":"Sort order (asc, desc)"},{"name":"title_search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Fuzzy search on shipment title (case-insensitive)","title":"Title Search"},"description":"Fuzzy search on shipment title (case-insensitive)"},{"name":"updated_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter shipments updated after this datetime","title":"Updated After"},"description":"Filter shipments updated after this datetime"},{"name":"updated_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter shipments updated before this datetime","title":"Updated Before"},"description":"Filter shipments updated before this datetime"},{"name":"filter_created_by_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by creator user ID (admin only)","title":"Filter Created By Id"},"description":"Filter by creator user ID (admin only)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentWithSharingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["shipments","shipments"],"summary":"Internal Create Shipment","description":"Create a shipment. Accepts either JWT or API key (Bearer token).\norganization_id and created_by_id are taken from the authenticated identity.","operationId":"internal_create_shipment_api_shipments_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipments/export/csv":{"get":{"tags":["shipments","shipments"],"summary":"Export Shipments Csv","description":"Export shipments visible to a user as a CSV file.\n\nThe filename will be dynamically generated as: {org_name}_{user_name}_shipments_{YYYY-MM-DD}.csv","operationId":"export_shipments_csv_api_shipments_export_csv_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000,"minimum":1},{"type":"null"}],"description":"Number of items to export (1-1000). When not specified, exports all items.","title":"Page Size"},"description":"Number of items to export (1-1000). When not specified, exports all items."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pagination cursor for retrieving the next page of results","title":"Cursor"},"description":"Pagination cursor for retrieving the next page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipments/import/csv":{"post":{"tags":["shipments","shipments"],"summary":"Import Shipments Csv","description":"Import shipments from a CSV or Excel file.\n\nHD Expected columns: camera, trailer, full_lpn\n- full_lpn is used as the shipment title and barcode value\n- camera and trailer are stored in metadata\n\nABF Expected columns (Individual Pieces Doc): pronumber, pro weight, pro length, pro height, pro width,\n    pieces, piece number, piece weight, piece length, piece height, piece width\n- pro number is used as the shipment title, and both pro number and piece number are stored as barcodes (with zero observations)\n- piece weight, piece length, piece height, and piece width are stored in metadata\n- pro weight, pro length, pro width and pro height are recorded as dimensions and weight in the according columns\n\nSupported formats: .csv, .xlsx","operationId":"import_shipments_csv_api_shipments_import_csv_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_shipments_csv_api_shipments_import_csv_post"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/shipments/{shipment_id}":{"get":{"tags":["shipments","shipments"],"summary":"Get Shipment","description":"Fetch a single shipment by its ID. Accepts JWT or API key.","operationId":"get_shipment_api_shipments__shipment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["shipments","shipments"],"summary":"Update Shipment","description":"Update metadata, priority, label, and/or title for a shipment. Accepts JWT or API key.","operationId":"update_shipment_api_shipments__shipment_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signup/new_org_owner":{"post":{"tags":["account_info","account_info"],"summary":"Signup New User And Organization","description":"Create a new user and organization, making the user the owner of the organization.\nWill be called after creating a user in Supabase Auth directly from the front end.","operationId":"signup_new_user_and_organization_api_signup_new_org_owner_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_signup_new_user_and_organization_api_signup_new_org_owner_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserWithOrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signup/verify_organization":{"post":{"tags":["account_info","account_info"],"summary":"Verify Organization","description":"Verify an organization using the signed token sent in the verification email.\n\nIntentionally unauthenticated — the signed token is the proof of authorization.","operationId":"verify_organization_api_signup_verify_organization_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOrganizationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signup/resend_verification":{"post":{"tags":["account_info","account_info"],"summary":"Resend Organization Verification","description":"Resend the verification email to the organization owner.\n\nUses the raw JWT (bypassing the org-verified gate in get_current_user) so\nan unverified org owner can still trigger a resend after logging in.\nOnly the org owner or an admin may call this endpoint.","operationId":"resend_organization_verification_api_signup_resend_verification_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendVerificationResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/signup/new_user_accepts_invite":{"post":{"tags":["account_info","account_info"],"summary":"New User Accepts Invitation","description":"A user accepts an invitation to an existing organization.","operationId":"new_user_accepts_invitation_api_signup_new_user_accepts_invite_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","format":"email","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInvitationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signup/invite_user_to_organization":{"post":{"tags":["account_info","account_info"],"summary":"Invite User To Organization","description":"Create a User Profile row and send an email invitation to specified user.\nUpdate relationship between user_profiles and auth.user tables.","operationId":"invite_user_to_organization_api_signup_invite_user_to_organization_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"new_user_email","in":"query","required":true,"schema":{"type":"string","format":"email","title":"New User Email"}},{"name":"first_name","in":"query","required":true,"schema":{"type":"string","title":"First Name"}},{"name":"last_name","in":"query","required":true,"schema":{"type":"string","title":"Last Name"}},{"name":"role","in":"query","required":false,"schema":{"type":"string","default":"user","title":"Role"}},{"name":"enterprise_seat","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Enterprise Seat"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInvitationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/enterprise_seats/enable":{"post":{"tags":["account_info","account_info"],"summary":"Enable Enterprise Seats","description":"Enable enterprise seats for a list of user profiles.\nRequires admin privileges.","operationId":"enable_enterprise_seats_api_enterprise_seats_enable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUserIdsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/enterprise_seats/disable":{"post":{"tags":["account_info","account_info"],"summary":"Disable Enterprise Seats","description":"Disable enterprise seats for a list of user profiles.\nRequires admin privileges.","operationId":"disable_enterprise_seats_api_enterprise_seats_disable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUserIdsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/admin_update":{"post":{"tags":["account_info","account_info"],"summary":"Admin Update User","description":"Update a user profile by an admin user.\n\nThis endpoint allows organization admins to update information for users in their organization.\nThe admin's role is verified to ensure they have admin privileges.","operationId":"admin_update_user_api_users_admin_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/{user_id}":{"patch":{"tags":["account_info","account_info"],"summary":"Update User","description":"Update the authenticated user's profile fields.","operationId":"update_user_api_users__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/profile":{"get":{"tags":["account_info","account_info"],"summary":"Get User Profile","description":"Get user profile of the logged in user (authentication identity)\n\nReturns:\n    User profile data of the logged in user","operationId":"get_user_profile_api_users_profile_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"auth_user_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","description":"[DEPRECATED] Auth user ID","title":"Auth User Id"},"description":"[DEPRECATED] Auth user ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/bulk":{"post":{"tags":["account_info","account_info"],"summary":"Get User Profiles Bulk","description":"Retrieve multiple user profiles by their IDs","operationId":"get_user_profiles_bulk_api_users_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkGetUserProfilesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserProfileResponse"},"type":"array","title":"Response Get User Profiles Bulk Api Users Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/get_all":{"get":{"tags":["account_info","account_info"],"summary":"Get All User Profiles","description":"Retrieve all user profiles in the system. Super Admin access required.","operationId":"get_all_user_profiles_api_users_get_all_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserProfileResponse"},"type":"array","title":"Response Get All User Profiles Api Users Get All Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/delete_profile/{user_id}":{"delete":{"tags":["account_info","account_info"],"summary":"Delete User Profile","description":"Delete a user profile by ID","operationId":"delete_user_profile_api_users_delete_profile__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"requesting_user_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"ID of the user making the request","title":"Requesting User Id"},"description":"ID of the user making the request"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean","title":"Response Delete User Profile Api Users Delete Profile  User Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/scan_limit":{"get":{"tags":["account_info","account_info"],"summary":"Get Scan Limit","description":"Return the current user's scan quota and whether they can create more scans.","operationId":"get_scan_limit_api_account_scan_limit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanLimitResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/version":{"get":{"tags":["account_info","account_info"],"summary":"Get Version","description":"Get the version information for the application.","operationId":"get_version_api_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Version Api Version Get"}}}}}}},"/api/signup/request_invitation":{"get":{"tags":["request_invitation","request_invitation"],"summary":"Request Organization Invitation","description":"Request an invitation to join an organization","operationId":"request_organization_invitation_api_signup_request_invitation_get","parameters":[{"name":"requester_email","in":"query","required":true,"schema":{"type":"string","format":"email","title":"Requester Email"}},{"name":"requester_first_name","in":"query","required":true,"schema":{"type":"string","title":"Requester First Name"}},{"name":"requester_last_name","in":"query","required":true,"schema":{"type":"string","title":"Requester Last Name"}},{"name":"existing_user_email","in":"query","required":true,"schema":{"type":"string","format":"email","title":"Existing User Email"}},{"name":"magic_link","in":"query","required":false,"schema":{"type":"string","description":"Magic link for the user to join the organization","title":"Magic Link"},"description":"Magic link for the user to join the organization"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sharing/self":{"get":{"tags":["sharing","sharing"],"summary":"Get Shipment Sharing Links Shared With Me","description":"Get all shipment sharing links where the user is the recipient.","operationId":"get_shipment_sharing_links_shared_with_me_api_sharing_self_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SharingLinkReceivedResponse"},"type":"array","title":"Response Get Shipment Sharing Links Shared With Me Api Sharing Self Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/sharing/sharing_links_created/{user_profile_id}":{"get":{"tags":["sharing","sharing"],"summary":"Get Shipment Sharing Links Created By Me Depreciated","description":"Get all shipment sharing links created by the auth identity user. Depreciated in\nfavor of /sharing/sharing_links_created, which does not require a user profile ID.","operationId":"get_shipment_sharing_links_created_by_me_depreciated_api_sharing_sharing_links_created__user_profile_id__get","deprecated":true,"security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_profile_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SharingLinkCreatedResponse"},"title":"Response Get Shipment Sharing Links Created By Me Depreciated Api Sharing Sharing Links Created  User Profile Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sharing/sharing_links_created":{"get":{"tags":["sharing","sharing"],"summary":"Get Shipment Sharing Links Created By Me","description":"Get all shipment sharing links created by a auth identity user.","operationId":"get_shipment_sharing_links_created_by_me_api_sharing_sharing_links_created_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SharingLinkCreatedResponse"},"type":"array","title":"Response Get Shipment Sharing Links Created By Me Api Sharing Sharing Links Created Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/sharing/share_link_with_email":{"post":{"tags":["sharing","sharing"],"summary":"Share Shipment By Email","description":"Create a shipment sharing link to be shared with a user identified by their email.","operationId":"share_shipment_by_email_api_sharing_share_link_with_email_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Id"}},{"name":"recipient_email","in":"query","required":true,"schema":{"type":"string","format":"email","title":"Recipient Email"}},{"name":"expiration","in":"query","required":true,"schema":{"type":"string","description":"Expiration date for the sharing link in ISO format","title":"Expiration"},"description":"Expiration date for the sharing link in ISO format"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharingLinkCreatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipment_entries":{"post":{"tags":["shipment_entries","shipment_entries"],"summary":"Create Shipment Entry","description":"Create a new shipment entry.","operationId":"create_shipment_entry_api_shipment_entries_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentEntryInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["shipment_entries","shipment_entries"],"summary":"Get Shipment Entries","description":"Fetch shipment entries for a given scan.","operationId":"get_shipment_entries_api_shipment_entries_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_scan_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Scan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ShipmentEntryResponse"},"title":"Response Get Shipment Entries Api Shipment Entries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipment_entries/{entry_id}":{"delete":{"tags":["shipment_entries","shipment_entries"],"summary":"Delete Shipment Entry","description":"Delete a shipment entry. Only entries that were manually uploaded can be deleted.","operationId":"delete_shipment_entry_api_shipment_entries__entry_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Shipment Entry Api Shipment Entries  Entry Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipment_entries/most_recent":{"get":{"tags":["shipment_entries","shipment_entries"],"summary":"Get Most Recent Shipment Entries","description":"Get the most recent images and point-cloud files.","operationId":"get_most_recent_shipment_entries_api_shipment_entries_most_recent_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Id"}},{"name":"entry_type","in":"query","required":true,"schema":{"title":"Entry Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ShipmentEntryResponse"},{"type":"null"}],"title":"Response Get Most Recent Shipment Entries Api Shipment Entries Most Recent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipment_entries/most_recent/bulk":{"get":{"tags":["shipment_entries","shipment_entries"],"summary":"Get Most Recent Shipment Entries Bulk","description":"Get the most recent images and point-cloud files for multiple shipment IDs.","operationId":"get_most_recent_shipment_entries_bulk_api_shipment_entries_most_recent_bulk_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_type","in":"query","required":true,"schema":{"type":"string","title":"Entry Type"}},{"name":"shipment_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Shipment Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/ShipmentEntryResponse"},{"type":"null"}]},"propertyNames":{"format":"uuid"},"title":"Response Get Most Recent Shipment Entries Bulk Api Shipment Entries Most Recent Bulk Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipment_entries/recent/snapshots/bulk":{"get":{"tags":["shipment_entries","shipment_entries"],"summary":"Get Recent Shipment Entries Bulk Snapshots","description":"Get the recent image files for multiple shipment IDs. Excludes pick-ticket images.","operationId":"get_recent_shipment_entries_bulk_snapshots_api_shipment_entries_recent_snapshots_bulk_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Shipment Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/ShipmentEntryResponse"}},"propertyNames":{"format":"uuid"},"title":"Response Get Recent Shipment Entries Bulk Snapshots Api Shipment Entries Recent Snapshots Bulk Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipment_scans":{"post":{"tags":["shipment_scans","shipment_scans"],"summary":"Internal Create Shipment Scan","operationId":"internal_create_shipment_scan_api_shipment_scans_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentScanInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentScanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["shipment_scans","shipment_scans"],"summary":"Get Shipment Scans","description":"Fetch scans for a given shipment.","operationId":"get_shipment_scans_api_shipment_scans_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ShipmentScanResponse"},"title":"Response Get Shipment Scans Api Shipment Scans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipment_scans/bulk":{"get":{"tags":["shipment_scans","shipment_scans"],"summary":"Get Shipment Scans Bulk","description":"Fetch scans for multiple shipments ordered by most recent update.","operationId":"get_shipment_scans_bulk_api_shipment_scans_bulk_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Shipment Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipment_scans/{scan_id}":{"get":{"tags":["shipment_scans","shipment_scans"],"summary":"Get Shipment Scan","description":"Fetch a single shipment scan by id.","operationId":"get_shipment_scan_api_shipment_scans__scan_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentScanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["shipment_scans","shipment_scans"],"summary":"Update Shipment Scan","description":"Update metadata or other fields for a shipment scan.","operationId":"update_shipment_scan_api_shipment_scans__scan_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scan Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentScanUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentScanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations":{"post":{"tags":["organizations","organizations"],"summary":"Create Organization","description":"Create a new organization.","operationId":"create_organization_api_organizations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_name","in":"query","required":true,"schema":{"type":"string","title":"Organization Name"}},{"name":"owner_id","in":"query","required":true,"schema":{"type":"string","title":"Owner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/bulk":{"get":{"tags":["organizations","organizations"],"summary":"Get Organizations Bulk","description":"Fetch multiple organizations by their IDs.","operationId":"get_organizations_bulk_api_organizations_bulk_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Organization Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationResponse"},"title":"Response Get Organizations Bulk Api Organizations Bulk Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/get_all_org_names":{"get":{"tags":["organizations","organizations"],"summary":"Get All Organization Names","description":"Fetch all organization names.","operationId":"get_all_organization_names_api_organizations_get_all_org_names_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array","title":"Response Get All Organization Names Api Organizations Get All Org Names Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/organizations/get_all_org_options":{"get":{"tags":["organizations","organizations"],"summary":"Get All Organization Options","description":"Fetch all organization options.","operationId":"get_all_organization_options_api_organizations_get_all_org_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OrganizationOption"},"type":"array","title":"Response Get All Organization Options Api Organizations Get All Org Options Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/organizations/members":{"get":{"tags":["organizations","organizations"],"summary":"Get Organization Members","description":"Return all user profiles for an organization if requester is admin","operationId":"get_organization_members_api_organizations_members_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"requesting_user_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Requesting User Id"}},{"name":"org_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfileResponse"},"title":"Response Get Organization Members Api Organizations Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/members/{user_id}":{"delete":{"tags":["organizations","organizations"],"summary":"Remove Organization Member","description":"Remove a user from their organization by setting organization_id to null.\n\nOnly admins can remove users, and only from their own organization.\nOrganization owners cannot be removed (ownership must be transferred first).","operationId":"remove_organization_member_api_organizations_members__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/{org_id}":{"get":{"tags":["organizations","organizations"],"summary":"Get Organization","description":"Fetch details for a single organization.","operationId":"get_organization_api_organizations__org_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["organizations","organizations"],"summary":"Update Organization","description":"Update an organization's details.","operationId":"update_organization_api_organizations__org_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/mycarrier/api_key":{"post":{"tags":["organizations","organizations"],"summary":"Create Mycarrier Api Key","description":"Create or update MyCarrier API key and/or origin location ID.\n\nAt least one of mycarrier_key or origin_location_id must be provided.","operationId":"create_mycarrier_api_key_api_organizations_mycarrier_api_key_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyCarrierAPIKeyCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Mycarrier Api Key Api Organizations Mycarrier Api Key Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dashboard/shipments/count":{"get":{"tags":["dashboard","dashboard"],"summary":"Get Shipments Count","description":"Return total shipments count for an organization.","operationId":"get_shipments_count_api_dashboard_shipments_count_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentsCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/shipment_entries/daily_last_week":{"get":{"tags":["dashboard","dashboard"],"summary":"Get Daily Shipment Entries Last Week","description":"Return daily shipment entry counts for the last week for an organization.","operationId":"get_daily_shipment_entries_last_week_api_dashboard_shipment_entries_daily_last_week_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DailyEntryCount"},"title":"Response Get Daily Shipment Entries Last Week Api Dashboard Shipment Entries Daily Last Week Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/shipments/daily_counts":{"get":{"tags":["dashboard","dashboard"],"summary":"Get Daily Shipments Last Week","description":"Return daily shipment counts for the past week.","operationId":"get_daily_shipments_last_week_api_dashboard_shipments_daily_counts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DailyCount"},"title":"Response Get Daily Shipments Last Week Api Dashboard Shipments Daily Counts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/shipments/average_per_day":{"get":{"tags":["dashboard","dashboard"],"summary":"Get Average Shipments Per Day","description":"Return average shipments per day for an organization.","operationId":"get_average_shipments_per_day_api_dashboard_shipments_average_per_day_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AverageShipmentsPerDayResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/shipment_entries/type_counts":{"get":{"tags":["dashboard","dashboard"],"summary":"Get Shipment Entry Type Counts","description":"Return counts of shipment entries grouped by type for an organization.","operationId":"get_shipment_entry_type_counts_api_dashboard_shipment_entries_type_counts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntryTypeCount"},"title":"Response Get Shipment Entry Type Counts Api Dashboard Shipment Entries Type Counts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/users/summaries":{"get":{"tags":["dashboard","dashboard"],"summary":"Get All User Summaries","description":"Return paginated summary information for all users with partial string search support (super admin only).","operationId":"get_all_user_summaries_api_dashboard_users_summaries_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search_query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search across user name, email, and organization name","title":"Search Query"},"description":"Search across user name, email, and organization name"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Number of items per page (1-200), default behavior is to return all","title":"Page Size"},"description":"Number of items per page (1-200), default behavior is to return all"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pagination cursor for retrieving the next page of results","title":"Cursor"},"description":"Pagination cursor for retrieving the next page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSummariesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/scans/details":{"get":{"tags":["dashboard","dashboard"],"summary":"Get All Shipment Scans Details","description":"Return all shipment scans details for super admin users with partial string search support.","operationId":"get_all_shipment_scans_details_api_dashboard_scans_details_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created After"}},{"name":"created_by_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By Id"}},{"name":"org_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by one or more organization IDs","title":"Org Ids"},"description":"Filter by one or more organization IDs"},{"name":"search_query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search across scan ID, shipment title, organization name, and creator name/email","title":"Search Query"},"description":"Search across scan ID, shipment title, organization name, and creator name/email"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Number of items per page (1-200)","default":50,"title":"Page Size"},"description":"Number of items per page (1-200)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pagination cursor for retrieving the next page of results","title":"Cursor"},"description":"Pagination cursor for retrieving the next page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/user_details/aggregate":{"get":{"tags":["dashboard","dashboard"],"summary":"Get User Details In Aggregate","description":"Return total counts of users by role and aggregate","operationId":"get_user_details_in_aggregate_api_dashboard_user_details_aggregate_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dashboard/trailers":{"get":{"tags":["dashboard","dashboard"],"summary":"Get Trailers Dashboard","description":"Return trailers dashboard data grouped by date and trailer number.","operationId":"get_trailers_dashboard_api_dashboard_trailers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter for shipment close times","title":"Start Date"},"description":"Start date filter for shipment close times"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter for shipment close times","title":"End Date"},"description":"End date filter for shipment close times"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrailersByDateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/trailer/details":{"get":{"tags":["dashboard","dashboard"],"summary":"Get Trailer Details","description":"Return detailed information about a specific trailer on a given date.","operationId":"get_trailer_details_api_dashboard_trailer_details_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"trailer_number","in":"query","required":true,"schema":{"type":"string","title":"Trailer Number"}},{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":{"$ref":"#/components/schemas/TrailerDetails"}},{"type":"null"}],"title":"Response Get Trailer Details Api Dashboard Trailer Details Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/storage/images":{"post":{"tags":["storage","storage"],"summary":"Internal Upload Image","operationId":"internal_upload_image_api_storage_images_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_scan_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Scan Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_internal_upload_image_api_storage_images_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/storage/zips":{"post":{"tags":["storage","storage"],"summary":"Internal Upload Zip","operationId":"internal_upload_zip_api_storage_zips_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Id"}},{"name":"shipment_scan_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Scan Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_internal_upload_zip_api_storage_zips_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/storage/queue-cloud-processing":{"post":{"tags":["storage","storage"],"summary":"Internal Trigger Cloud Processing","operationId":"internal_trigger_cloud_processing_api_storage_queue_cloud_processing_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_scan_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Scan Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_internal_trigger_cloud_processing_api_storage_queue_cloud_processing_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/storage/pointclouds":{"post":{"tags":["storage","storage"],"summary":"Internal Upload Pointcloud","operationId":"internal_upload_pointcloud_api_storage_pointclouds_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_scan_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Scan Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_internal_upload_pointcloud_api_storage_pointclouds_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PointCloudUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/storage/images/{key}":{"get":{"tags":["storage","storage"],"summary":"Get Image","description":"Retrieve a JPEG image from Supabase storage.\n\nThe `key` should be structured as the path to the image in storage,\nit can be found in the `ImageUploadResponse` after uploading an image\nor by querying the database for the `storage_path` of a shipment entry.\nIt can also be constructed using the organization ID, shipment scan ID,\nand timestamp used during upload: as follows: f\"{organization_id}/jpg/raw/{shipment_scan_id}/{timestamp}{ext}\"","operationId":"get_image_api_storage_images__key__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/storage/pointclouds/{key}":{"get":{"tags":["storage","storage"],"summary":"Get Pointcloud","description":"Retrieve a point cloud (.ply) file from Supabase storage.","operationId":"get_pointcloud_api_storage_pointclouds__key__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/storage/get-bulk-images":{"get":{"tags":["storage","storage"],"summary":"Get Bulk Images","description":"Return pre-signed URLs for the latest image of each shipment.","operationId":"get_bulk_images_api_storage_get_bulk_images_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Shipment Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jpg/presigned-urls-by-shipment/":{"get":{"tags":["storage","storage"],"summary":"Get Image Urls For Shipment Details","operationId":"get_image_urls_for_shipment_details_api_jpg_presigned_urls_by_shipment__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Id"}}],"responses":{"200":{"description":"List of presigned image URLs","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response Get Image Urls For Shipment Details Api Jpg Presigned Urls By Shipment  Get"},"example":["https://example-bucket.s3.amazonaws.com/path/scan1.jpg?X-Amz-Expires=3600&Signature=...","https://example-bucket.s3.amazonaws.com/path/scan2.jpg?X-Amz-Expires=3600&Signature=..."]}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/api_key":{"post":{"tags":["auth","auth"],"summary":"Create Or Update Api Key","description":"Create or update an API key for the user's organization.","operationId":"create_or_update_api_key_api_auth_api_key_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerApiKeyInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mobile_apps/versions":{"get":{"tags":["mobile_apps","mobile_apps"],"summary":"Get Mobile App Versions","operationId":"get_mobile_app_versions_api_mobile_apps_versions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAppVersions"}}}}}}},"/api/mobile_apps/logs/batch":{"post":{"tags":["mobile_apps","mobile_apps"],"summary":"Submit Mobile App Logs Batch","operationId":"submit_mobile_app_logs_batch_api_mobile_apps_logs_batch_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/LogEntry"},"type":"array","title":"Log Entries"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jobs/{job_id}":{"get":{"tags":["background_jobs","background_jobs"],"summary":"Get Job","description":"Get a specific background job by ID.\n\nUsers can view their own jobs.\nAdmins can view all jobs in their organization.","operationId":"get_job_api_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackgroundJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jobs":{"get":{"tags":["background_jobs","background_jobs"],"summary":"Get Jobs","description":"Get background jobs for the current user or organization.\n\nRegular users see their own jobs.\nAdmins see all jobs for their organization.","operationId":"get_jobs_api_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status (pending, processing, completed, failed, cancelled)","title":"Status"},"description":"Filter by status (pending, processing, completed, failed, cancelled)"},{"name":"job_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by job type (csv_import, csv_export, etc.)","title":"Job Type"},"description":"Filter by job type (csv_import, csv_export, etc.)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Number of jobs to return (1-200)","default":50,"title":"Limit"},"description":"Number of jobs to return (1-200)"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of jobs to skip","default":0,"title":"Offset"},"description":"Number of jobs to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BackgroundJobResponse"},"title":"Response Get Jobs Api Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jobs/{job_id}/cancel":{"post":{"tags":["background_jobs","background_jobs"],"summary":"Cancel Job","description":"Cancel a background job (if still pending or processing).\n\nNote: This marks the job as cancelled in the database,\nbut the background task may continue processing if already started.\nThe task should check the job status and stop gracefully.","operationId":"cancel_job_api_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Job Api Jobs  Job Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/documents":{"post":{"tags":["documents","documents"],"summary":"Internal Create Document","description":"Create a new document record.","operationId":"internal_create_document_api_documents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/documents/{document_id}":{"get":{"tags":["documents","documents"],"summary":"Get Document","description":"Get a single document by ID.","operationId":"get_document_api_documents__document_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["documents","documents"],"summary":"Internal Update Document","description":"Update a document with the provided fields.","operationId":"internal_update_document_api_documents__document_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["documents","documents"],"summary":"Internal Delete Document","description":"Soft delete a document.","operationId":"internal_delete_document_api_documents__document_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/documents/shipment/{shipment_id}":{"get":{"tags":["documents","documents"],"summary":"Internal Get Documents By Shipment","description":"Get all documents for a shipment.","operationId":"internal_get_documents_by_shipment_api_documents_shipment__shipment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shipment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Shipment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DocumentResponse"},"title":"Response Internal Get Documents By Shipment Api Documents Shipment  Shipment Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mycarrier/status":{"get":{"tags":["mycarrier","mycarrier"],"summary":"Check Mycarrier Status","description":"Check if MyCarrier integration is active for the user's organization.\n\nReturns the MyCarrier status based on whether the organization has an API key configured.","operationId":"check_mycarrier_status_api_mycarrier_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyCarrierStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mycarrier/shipping-locations":{"get":{"tags":["mycarrier","mycarrier"],"summary":"Get Shipping Locations","description":"Get shipping locations from MyCarrier TMS.\n\nRetrieves a paginated list of shipping locations for the organization.","operationId":"get_shipping_locations_api_mycarrier_shipping_locations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"take","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Number of records to return","default":50,"title":"Take"},"description":"Number of records to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyCarrierLocationsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mycarrier/order":{"post":{"tags":["mycarrier","mycarrier"],"summary":"Create Mycarrier Order","description":"Create orders in MyCarrier TMS.\n\nUsers can create orders for their organization.\nTODO: Add and remove limits to fields based on MyCarrier TMS requirements (not in API documentation, response)","operationId":"create_mycarrier_order_api_mycarrier_order_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyCarrierOrderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Create Mycarrier Order Api Mycarrier Order Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mycarrier/pick-ticket/upload":{"post":{"tags":["mycarrier","mycarrier"],"summary":"Upload Pick Ticket","description":"Deprecated. Use POST /api/llm/pick-ticket/upload instead.","operationId":"upload_pick_ticket_api_mycarrier_pick_ticket_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_pick_ticket_api_mycarrier_pick_ticket_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"deprecated":true,"security":[{"HTTPBearer":[]}]}},"/api/llm/pick-ticket/upload":{"post":{"tags":["llm","llm"],"summary":"Upload Pick Ticket","description":"Upload a pick ticket file to S3. Kick off processing via SQS. Record new Job in database.\n\nAccepts both JWT and API key authentication. When scan_id is omitted, publishes a plain-string\nSQS body (the S3 key) to preserve backward compatibility with the existing consumer. When\nscan_id is provided, publishes a JSON body containing filename, scan_id, organization_id, and\ncreated_by_id so the consumer can correlate the job with a shipment scan.\nQueue selection: LLM_SQS_URL if set, else PICK_TICKET_SQS_URL.","operationId":"upload_pick_ticket_api_llm_pick_ticket_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_pick_ticket_api_llm_pick_ticket_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/llm":{"post":{"tags":["llm","llm"],"summary":"Upload With Prompt","description":"General LLM-processing upload. Accepts multiple files and a required prompt.\n\nAccepts both JWT and API key authentication. Uploads all files to S3 under\n{job_type}/{job_id}/{filename} and publishes a single JSON message to LLM_SQS_URL.","operationId":"upload_with_prompt_api_llm_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_with_prompt_api_llm_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/llm/damage":{"post":{"tags":["llm","llm"],"summary":"Upload Damage","description":"Damage-analysis upload. Accepts multiple files and an optional prompt.\n\nAccepts both JWT and API key authentication. Uploads all files to S3 under\n{job_type}/{job_id}/{filename} and publishes a single JSON message to LLM_SQS_URL.","operationId":"upload_damage_api_llm_damage_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_damage_api_llm_damage_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/llm/label/{label_type}":{"post":{"tags":["llm","llm"],"summary":"Upload Label","description":"Label-reading route. Accepts a dynamic label_type path parameter.\n\nDoes not accept file uploads. Requires an existing s3_key pointing to the file to process.\nOptionally accepts s3_bucket to override LLM_BUCKET_NAME. Publishes a JSON message to\nLLM_SQS_URL with job_type=llm_label_processing and the provided label_type.","operationId":"upload_label_api_llm_label__label_type__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"label_type","in":"path","required":true,"schema":{"type":"string","title":"Label Type"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_upload_label_api_llm_label__label_type__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/llm/damage/{damage_type}":{"post":{"tags":["llm","llm"],"summary":"Upload Damage Detection","description":"Damage detection route. Accepts a dynamic damage_type path parameter.\n\nDoes not accept file uploads. Requires an existing s3_key pointing to the shipment image to process.\nOptionally accepts s3_bucket to override LLM_BUCKET_NAME. Publishes a JSON message to\nLLM_SQS_URL with job_type=llm_damage_processing.","operationId":"upload_damage_detection_api_llm_damage__damage_type__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"damage_type","in":"path","required":true,"schema":{"type":"string","title":"Damage Type"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_upload_damage_detection_api_llm_damage__damage_type__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mission_results/upload":{"post":{"tags":["mission_results"],"summary":"Upload Mission Results","description":"Endpoint for vision systems to upload mission results.","operationId":"upload_mission_results_api_mission_results_upload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionResultInput"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mission_results/labels":{"get":{"tags":["mission_results"],"summary":"Get Mission Result Labels Bulk","description":"Mission result labels with optional org filtering.\n\nEach label item includes last_updated: latest pivot row inserted_at for that label_value\namong missions matching the filters (MAX over mission_result_labels for the group).\n\nAuthorization:\n- Non-super-admins are scoped to their own organization.\n- Super admins may pass org_ids to filter by specific organizations, or omit org_ids to\n  query across all organizations.","operationId":"get_mission_result_labels_bulk_api_mission_results_labels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"label_value","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by label_value (case-insensitive partial match)","title":"Label Value"},"description":"Filter by label_value (case-insensitive partial match)"},{"name":"server_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by mission server_name (case-insensitive partial match)","title":"Server Name"},"description":"Filter by mission server_name (case-insensitive partial match)"},{"name":"facility_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by mission facility / warehouse_name (case-insensitive partial match)","title":"Facility Name"},"description":"Filter by mission facility / warehouse_name (case-insensitive partial match)"},{"name":"vision_system_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by mission vision_system_id (case-insensitive partial match)","title":"Vision System Id"},"description":"Filter by mission vision_system_id (case-insensitive partial match)"},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"Lower bound on mission_start_time (ISO datetime or date). Same semantics as GET /mission_results.","title":"Start Time"},"description":"Lower bound on mission_start_time (ISO datetime or date). Same semantics as GET /mission_results."},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"Upper bound on mission_start_time (ISO datetime or date; date uses end of day). Same semantics as GET /mission_results.","title":"End Time"},"description":"Upper bound on mission_start_time (ISO datetime or date; date uses end of day). Same semantics as GET /mission_results."},{"name":"mission_end_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"Lower bound on mission_end_time (ISO datetime or date). Missions with NULL mission_end_time are excluded when this is set.","title":"Mission End After"},"description":"Lower bound on mission_end_time (ISO datetime or date). Missions with NULL mission_end_time are excluded when this is set."},{"name":"mission_end_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"Upper bound on mission_end_time (ISO datetime or date; date uses end of day). Missions with NULL mission_end_time are excluded when this is set.","title":"Mission End Before"},"description":"Upper bound on mission_end_time (ISO datetime or date; date uses end of day). Missions with NULL mission_end_time are excluded when this is set."},{"name":"org_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by one or more organization IDs. Super admins only; ignored for non-super-admins (results remain scoped to caller's org).","title":"Org Ids"},"description":"Filter by one or more organization IDs. Super admins only; ignored for non-super-admins (results remain scoped to caller's org)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionResultLabelsBulkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mission_results/label-thumbnails":{"post":{"tags":["mission_results"],"summary":"Get Label Thumbnails","description":"Resolve the matched-cluster zoom image URL for a batch of labels -- used\nfor manifest row thumbnails. Each label carries a list of candidate\nmissions (most-recent-first); the first candidate with an actual zoom\nimage wins, so a label whose newest capture lacks one still gets a\nthumbnail from an older capture.\n\nMuch cheaper than GET /mission_results/{mission_id}: fetches only\nlabel_data/s3_data per unique mission (skipping shipment images, barcode\nlists, point cloud, and the rest of s3_data), and presigns only the\nmatched cluster's zoom key per unique (mission_id, cluster_index),\ndeduping across requested items that share a cluster.\n\nAuthorization: results are scoped to the authenticated organization.\nCandidate missions that aren't found, or belong to another organization\nand the caller isn't super_admin, are skipped rather than failing the\nwhole batch. Items are returned in the same order as requested.","operationId":"get_label_thumbnails_api_mission_results_label_thumbnails_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelThumbnailsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelThumbnailsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mission_results/handling-units":{"get":{"tags":["mission_results"],"summary":"List Handling Units","description":"Newest success mission per label, optional manifest match and unscanned rows.","operationId":"list_handling_units_api_mission_results_handling_units_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"Lower bound on mission_start_time (required)","title":"Start Time"},"description":"Lower bound on mission_start_time (required)"},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"Upper bound on mission_start_time (required)","title":"End Time"},"description":"Upper bound on mission_start_time (required)"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive match on label_value or manifest shipment_value","title":"Search"},"description":"Case-insensitive match on label_value or manifest shipment_value"},{"name":"damage","in":"query","required":false,"schema":{"$ref":"#/components/schemas/HandlingUnitDamageFilter","default":"all"}},{"name":"has_dimensions","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"If true, only rows with width/height/depth; if false, only missing dims","title":"Has Dimensions"},"description":"If true, only rows with width/height/depth; if false, only missing dims"},{"name":"manifest_match","in":"query","required":false,"schema":{"$ref":"#/components/schemas/HandlingUnitManifestMatchFilter","default":"all"}},{"name":"warehouse_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive partial match on warehouse_name","title":"Warehouse Name"},"description":"Case-insensitive partial match on warehouse_name"},{"name":"group_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/HandlingUnitGroupBy","default":"handling_unit"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"org_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by one or more organization IDs. Super admins only; ignored for non-super-admins.","title":"Org Ids"},"description":"Filter by one or more organization IDs. Super admins only; ignored for non-super-admins."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandlingUnitsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mission_results/handling-units/{label_value}":{"get":{"tags":["mission_results"],"summary":"Get Handling Unit Detail","description":"All success missions for one handling-unit label in the time window.","operationId":"get_handling_unit_detail_api_mission_results_handling_units__label_value__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"label_value","in":"path","required":true,"schema":{"type":"string","title":"Label Value"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"Lower bound on mission_start_time (required)","title":"Start Time"},"description":"Lower bound on mission_start_time (required)"},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"Upper bound on mission_start_time (required)","title":"End Time"},"description":"Upper bound on mission_start_time (required)"},{"name":"org_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by one or more organization IDs. Super admins only; ignored for non-super-admins.","title":"Org Ids"},"description":"Filter by one or more organization IDs. Super admins only; ignored for non-super-admins."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandlingUnitDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mission_results/{mission_id}":{"get":{"tags":["mission_results"],"summary":"Get Mission Result","description":"Retrieve a mission result by mission ID.\n\nAuthorization: Results are scoped to the authenticated organization (tenant boundary).\nOnly mission results belonging to the caller's organization are returned; others yield 404.","operationId":"get_mission_result_api_mission_results__mission_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Mission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionResultWithImageUrls"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mission_results/{mission_id}/upload_image":{"post":{"tags":["mission_results"],"summary":"Upload Mission Image","description":"Upload image to S3 and update mission result database record","operationId":"upload_mission_image_api_mission_results__mission_id__upload_image_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Mission Id"}},{"name":"image_type","in":"query","required":true,"schema":{"type":"string","title":"Image Type"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_mission_image_api_mission_results__mission_id__upload_image_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mission_results/{mission_id}/data_recovery":{"post":{"tags":["mission_results"],"summary":"Append Mission Data Recovery","description":"Append a recovery event to the mission result's data_recovery list.\n\ndata_recovery is an append-only JSONB array. Each stored entry is\n{appended_at, recovery_item_type, data}; appended_at is set server-side (UTC).\n\nAuth is partner API key only (internal). Super-admin keys (role of the key\ncreator) may append to any org; others are scoped to the key's organization.\nWrites always use the mission's organization_id so super-admin cross-org\nappends hit the row.","operationId":"append_mission_data_recovery_api_mission_results__mission_id__data_recovery_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Mission Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataRecoveryAppendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mission_results/image_types":{"get":{"tags":["mission_results"],"summary":"Get Image Type Enum","description":"Return image type enum values; auth required but no org-scoped data.","operationId":"get_image_type_enum_api_mission_results_image_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Get Image Type Enum Api Mission Results Image Types Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mission_results":{"get":{"tags":["mission_results"],"summary":"Get Mission Results Bulk","description":"Retrieve mission results with filtering and pagination.\n\nAuthorization: Non-super-admins are scoped to their own organization. Super admins may\npass org_ids to filter by specific organizations, or omit org_ids to query all organizations.\n\nSupports filtering by:\n- Time range (start_time, end_time)\n- Label captured (searches in label_data array)\n- label_value: exact string match on mission_result_labels pivot\n- String search on: server_name, warehouse_name, status, error, vision_system_id\n  (pass status_exact=true for case-insensitive exact status match)\n- has_pointcloud: only missions with a point cloud file\n- exclude_mission_ids: exclude given mission IDs from results\n- org_ids: super-admin only; filter by organization(s)\n\nUses cursor-based pagination for optimal performance.","operationId":"get_mission_results_bulk_api_mission_results_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"Filter by mission_start_time >= start_time (ISO format or date)","title":"Start Time"},"description":"Filter by mission_start_time >= start_time (ISO format or date)"},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"description":"Filter by mission_start_time <= end_time (ISO format or date)","title":"End Time"},"description":"Filter by mission_start_time <= end_time (ISO format or date)"},{"name":"label_captured","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Find missions with captured labels","title":"Label Captured"},"description":"Find missions with captured labels"},{"name":"server_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search server_name (case-insensitive partial match)","title":"Server Name"},"description":"Search server_name (case-insensitive partial match)"},{"name":"warehouse_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search warehouse_name (case-insensitive partial match)","title":"Warehouse Name"},"description":"Search warehouse_name (case-insensitive partial match)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search status (case-insensitive partial match by default)","title":"Status"},"description":"Search status (case-insensitive partial match by default)"},{"name":"status_exact","in":"query","required":false,"schema":{"type":"boolean","description":"When true with status set, match status exactly (case-insensitive) instead of substring ILIKE. Prefer this for dashboards filtering status=success so the success partial index can be used.","default":false,"title":"Status Exact"},"description":"When true with status set, match status exactly (case-insensitive) instead of substring ILIKE. Prefer this for dashboards filtering status=success so the success partial index can be used."},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search error_message (case-insensitive partial match)","title":"Error"},"description":"Search error_message (case-insensitive partial match)"},{"name":"vision_system_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search vision_system_id (case-insensitive partial match)","title":"Vision System Id"},"description":"Search vision_system_id (case-insensitive partial match)"},{"name":"label_value","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact match on a label in mission_result_labels (same string as pivot / labels endpoint). Not a substring search.","title":"Label Value"},"description":"Exact match on a label in mission_result_labels (same string as pivot / labels endpoint). Not a substring search."},{"name":"has_pointcloud","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"If true, only return missions that have a point cloud file","title":"Has Pointcloud"},"description":"If true, only return missions that have a point cloud file"},{"name":"exclude_mission_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Mission IDs to exclude from results (e.g. already downloaded)","title":"Exclude Mission Ids"},"description":"Mission IDs to exclude from results (e.g. already downloaded)"},{"name":"org_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by one or more organization IDs. Super admins only; ignored for non-super-admins (results remain scoped to caller's org).","title":"Org Ids"},"description":"Filter by one or more organization IDs. Super admins only; ignored for non-super-admins (results remain scoped to caller's org)."},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":200,"minimum":1},{"type":"null"}],"description":"Number of items per page (1-200). When omitted, defaults to 200 (unbounded list responses are not supported).","title":"Page Size"},"description":"Number of items per page (1-200). When omitted, defaults to 200 (unbounded list responses are not supported)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pagination cursor for retrieving the next page of results","title":"Cursor"},"description":"Pagination cursor for retrieving the next page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionResultsBulkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lifecycle/hourly-stats":{"post":{"tags":["lifecycle"],"summary":"Upload Hourly Stats","description":"Upload hourly shipment lifecycle statistics.\n\nThis endpoint receives hourly aggregated statistics from vision systems\ntracking shipment lifecycle (detection, barcode reading, dimensioning).\n\nArgs:\n    stats_input: Hourly statistics data\n    partner: Authenticated partner (from API key)\n\nReturns:\n    Upload confirmation response\n\nRaises:\n    HTTPException: If database operation fails","operationId":"upload_hourly_stats_api_lifecycle_hourly_stats_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyStatsInput"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/lifecycle/stats":{"get":{"tags":["lifecycle"],"summary":"List Lifecycle Stats","description":"List lifecycle statistics with filtering and pagination.\n\nReturns lifecycle statistics records for the authenticated organization,\nordered by period_start descending (most recent first).\n\nArgs:\n    vision_system_id: Optional filter by specific vision system\n    start_time: Optional filter for stats with period_start >= this time\n    end_time: Optional filter for stats with period_end <= this time\n    limit: Maximum number of records to return (default 100, max 1000)\n    offset: Number of records to skip for pagination\n    auth: Authenticated user/partner\n\nReturns:\n    Response with list of lifecycle statistics records and pagination metadata\n\nRaises:\n    HTTPException: If database query fails","operationId":"list_lifecycle_stats_api_lifecycle_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vision_system_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by vision system ID","title":"Vision System Id"},"description":"Filter by vision system ID"},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by period start >= this time","title":"Start Time"},"description":"Filter by period start >= this time"},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by period end <= this time","title":"End Time"},"description":"Filter by period end <= this time"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum records to return","default":100,"title":"Limit"},"description":"Maximum records to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Offset"},"description":"Number of records to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleStatsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lifecycle/stats/aggregated":{"get":{"tags":["lifecycle"],"summary":"Get Aggregated Lifecycle Stats","description":"Get aggregated lifecycle statistics over a time range.\n\nReturns aggregated statistics grouped by organization and vision system,\nwith computed metrics like average shipments per hour and capture rates.\n\nArgs:\n    vision_system_id: Optional filter by specific vision system\n    start_time: Optional filter for stats with period_start >= this time\n    end_time: Optional filter for stats with period_end <= this time\n    auth: Authenticated user/partner\n\nReturns:\n    List of aggregated statistics per organization/vision system\n\nRaises:\n    HTTPException: If database query fails","operationId":"get_aggregated_lifecycle_stats_api_lifecycle_stats_aggregated_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vision_system_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by vision system ID","title":"Vision System Id"},"description":"Filter by vision system ID"},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by period start >= this time","title":"Start Time"},"description":"Filter by period start >= this time"},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by period end <= this time","title":"End Time"},"description":"Filter by period end <= this time"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LifecycleStatsAggregation"},"title":"Response Get Aggregated Lifecycle Stats Api Lifecycle Stats Aggregated Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lifecycle/stats/{stats_id}":{"get":{"tags":["lifecycle"],"summary":"Get Lifecycle Stats","description":"Get a specific lifecycle statistics record by ID.\n\nArgs:\n    stats_id: The lifecycle stats record ID\n    auth: Authenticated user/partner\n\nReturns:\n    Lifecycle statistics record\n\nRaises:\n    HTTPException: If record not found or access denied","operationId":"get_lifecycle_stats_api_lifecycle_stats__stats_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"stats_id","in":"path","required":true,"schema":{"type":"integer","title":"Stats Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleStatsRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lifecycle/sessions/batch":{"post":{"tags":["lifecycle"],"summary":"Upsert Shipment Sessions Batch","description":"Upsert (insert or update) shipment sessions in batch.\n\nThis endpoint receives session lifecycle data from vision systems tracking\nindividual shipments. Sessions are upserted by session_id - if the session\nalready exists, it's updated; otherwise, it's created.\n\nArgs:\n    batch_input: Batch of shipment session data\n    partner: Authenticated partner (from API key)\n\nReturns:\n    Upload confirmation response\n\nRaises:\n    HTTPException: If database operation fails or timestamps are invalid","operationId":"upsert_shipment_sessions_batch_api_lifecycle_sessions_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentSessionBatchInput"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/internal/trials/notify":{"post":{"tags":["internal_tasks"],"summary":"Notify Trial Day5","description":"Find free-tier orgs on day 5 of their trial and send each owner one reminder email.\n\nIdempotent by construction: get_trial_reminder_candidates excludes any org\nthat already has a reminder_email entry in organizations.metadata, so an\norg is only ever a candidate until its first successful send. A failed\nsend never writes that metadata, so the org remains a candidate and is\nretried on the next daily run. There is no DB-level lock against\ndouble-sending (acceptable for a once-daily, non-critical email).\n\nBackward compatible: orgs whose trial has already ended are skipped via both\nthe candidate SQL window (created_at > now() - 7 days) and an explicit\ntrial_active guard per org.\n\nThis run is also (best-effort) recorded as a background_jobs row, with\nprogress updated after each candidate org is processed, so long as\nDOCKWARE_ORG_ID/DOCKWARE_USER_ID are configured; see _start_trial_reminder_job.\n\nReturns a summary: {\"candidates\": n, \"sent\": n, \"skipped\": n, \"failed\": n,\n\"job_id\": \"<uuid>\" (only if job tracking is configured)}.","operationId":"notify_trial_day5_api_internal_trials_notify_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Notify Trial Day5 Api Internal Trials Notify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","description":"Health check endpoint that doesn't depend on database connection","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AppVersionInfo":{"properties":{"minimum_version":{"type":"string","title":"Minimum Version"},"update_url":{"type":"string","title":"Update Url"}},"type":"object","required":["minimum_version","update_url"],"title":"AppVersionInfo"},"AverageShipmentsPerDayResponse":{"properties":{"average":{"type":"number","title":"Average"}},"type":"object","required":["average"],"title":"AverageShipmentsPerDayResponse","description":"Average number of shipments created per day since the first shipment."},"BackgroundJobResponse":{"properties":{"job_type":{"type":"string","title":"Job Type"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"created_by_id":{"type":"string","format":"uuid","title":"Created By Id"},"input_params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Params"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"progress_percent":{"type":"integer","title":"Progress Percent"},"progress_current":{"type":"integer","title":"Progress Current"},"progress_total":{"type":"integer","title":"Progress Total"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"result_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result Data"},"error_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error Details"}},"type":"object","required":["job_type","organization_id","created_by_id","id","status","progress_percent","progress_current","progress_total","created_at"],"title":"BackgroundJobResponse","description":"Complete job response"},"BarcodesData":{"properties":{"text":{"type":"string","title":"Text"},"type":{"type":"string","title":"Type","default":"Unknown"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol"},"scan_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scan Id"},"position":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Position","default":[]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"max_confidence":{"type":"number","title":"Max Confidence","default":0.0},"recognition_count":{"type":"integer","title":"Recognition Count","default":1}},"additionalProperties":true,"type":"object","required":["text"],"title":"BarcodesData","description":"Model for barcodes data in shipments."},"Body_import_manifest_csv_api_manifests_import_csv_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"dimension_unit":{"anyOf":[{"$ref":"#/components/schemas/DimensionUnit"},{"type":"null"}]}},"type":"object","required":["file"],"title":"Body_import_manifest_csv_api_manifests_import_csv_post"},"Body_import_manifest_csv_with_columns_api_manifests_import_with_columns_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"shipment_column":{"type":"string","title":"Shipment Column"},"handling_unit_column":{"type":"string","title":"Handling Unit Column"},"label_value_column":{"type":"string","title":"Label Value Column"},"time_column":{"type":"string","title":"Time Column"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"dimension_unit":{"anyOf":[{"$ref":"#/components/schemas/DimensionUnit"},{"type":"null"}]}},"type":"object","required":["file","shipment_column","handling_unit_column","label_value_column","time_column"],"title":"Body_import_manifest_csv_with_columns_api_manifests_import_with_columns_post"},"Body_import_shipments_csv_api_shipments_import_csv_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_shipments_csv_api_shipments_import_csv_post"},"Body_internal_trigger_cloud_processing_api_storage_queue_cloud_processing_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_internal_trigger_cloud_processing_api_storage_queue_cloud_processing_post"},"Body_internal_upload_image_api_storage_images_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_internal_upload_image_api_storage_images_post"},"Body_internal_upload_pointcloud_api_storage_pointclouds_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_internal_upload_pointcloud_api_storage_pointclouds_post"},"Body_internal_upload_zip_api_storage_zips_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_internal_upload_zip_api_storage_zips_post"},"Body_preview_manifest_csv_api_manifests_import_preview_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"}},"type":"object","required":["file"],"title":"Body_preview_manifest_csv_api_manifests_import_preview_post"},"Body_signup_new_user_and_organization_api_signup_new_org_owner_post":{"properties":{"user_info_input":{"$ref":"#/components/schemas/UserProfileInput"},"org_info_input":{"$ref":"#/components/schemas/OrganizationInput"}},"type":"object","required":["user_info_input","org_info_input"],"title":"Body_signup_new_user_and_organization_api_signup_new_org_owner_post"},"Body_upload_damage_api_llm_damage_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"}},"type":"object","required":["files"],"title":"Body_upload_damage_api_llm_damage_post"},"Body_upload_damage_detection_api_llm_damage__damage_type__post":{"properties":{"mission_id":{"type":"string","title":"Mission Id"},"s3_key":{"type":"string","minLength":1,"title":"S3 Key"},"s3_bucket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Bucket"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"}},"type":"object","required":["mission_id","s3_key"],"title":"Body_upload_damage_detection_api_llm_damage__damage_type__post"},"Body_upload_label_api_llm_label__label_type__post":{"properties":{"mission_id":{"type":"string","title":"Mission Id"},"s3_key":{"type":"string","minLength":1,"title":"S3 Key"},"s3_bucket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Bucket"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"}},"type":"object","required":["mission_id","s3_key"],"title":"Body_upload_label_api_llm_label__label_type__post"},"Body_upload_mission_image_api_mission_results__mission_id__upload_image_post":{"properties":{"image":{"type":"string","contentMediaType":"application/octet-stream","title":"Image"},"metadata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["image"],"title":"Body_upload_mission_image_api_mission_results__mission_id__upload_image_post"},"Body_upload_pick_ticket_api_llm_pick_ticket_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"scan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scan Id"}},"type":"object","required":["file"],"title":"Body_upload_pick_ticket_api_llm_pick_ticket_upload_post"},"Body_upload_pick_ticket_api_mycarrier_pick_ticket_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"scan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scan Id"}},"type":"object","required":["file"],"title":"Body_upload_pick_ticket_api_mycarrier_pick_ticket_upload_post"},"Body_upload_with_prompt_api_llm_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"},"prompt":{"type":"string","minLength":1,"title":"Prompt"}},"type":"object","required":["files","prompt"],"title":"Body_upload_with_prompt_api_llm_post"},"BoundingBox":{"properties":{"x_min":{"type":"number","title":"X Min"},"y_min":{"type":"number","title":"Y Min"},"x_max":{"type":"number","title":"X Max"},"y_max":{"type":"number","title":"Y Max"}},"type":"object","required":["x_min","y_min","x_max","y_max"],"title":"BoundingBox"},"BulkGetUserProfilesRequest":{"properties":{"user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"User Ids"}},"type":"object","required":["user_ids"],"title":"BulkGetUserProfilesRequest","description":"Request model for retrieving multiple user profiles by ID"},"BulkUpdateResponse":{"properties":{"status":{"type":"string","title":"Status","default":"success"},"message":{"type":"string","title":"Message"},"updated_count":{"type":"integer","title":"Updated Count"},"updated_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Updated Ids"}},"type":"object","required":["message","updated_count","updated_ids"],"title":"BulkUpdateResponse","description":"Response model for bulk operations"},"BulkUserIdsRequest":{"properties":{"user_profile_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"User Profile Ids"}},"type":"object","required":["user_profile_ids"],"title":"BulkUserIdsRequest","description":"Request model with a list of user profile IDs"},"ClusterImagePair":{"properties":{"cluster_index":{"type":"integer","title":"Cluster Index"},"tracking_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Image Url"},"zoom_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zoom Image Url"},"label_bboxes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Label Bboxes"}},"type":"object","required":["cluster_index"],"title":"ClusterImagePair","description":"One detected cluster's paired tracking (wide/low-zoom) + zoom (tight/high-zoom)\npresigned image URLs. cluster_index ties the two together so the UI can display\nthem side by side rather than as two unrelated flat lists."},"Commodity":{"properties":{"commodityClass":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commodityclass","description":"Freight class of the commodity"},"commodityDescription":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commoditydescription","description":"Description of the commodity"},"commodityWeight":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Commodityweight","description":"Weight of the commodity","default":0}},"type":"object","title":"Commodity"},"DailyCount":{"properties":{"date":{"type":"string","title":"Date"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["date","count"],"title":"DailyCount","description":"Representation of a daily count metric."},"DailyEntryCount":{"properties":{"date":{"type":"string","title":"Date"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["date","count"],"title":"DailyEntryCount","description":"Count of shipment entries grouped by day."},"DataRecoveryAppendRequest":{"properties":{"recovery_item_type":{"type":"string","minLength":1,"title":"Recovery Item Type","description":"Caller-defined type string for organizing recovery entries."},"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Free-form payload for this recovery event."}},"type":"object","required":["recovery_item_type"],"title":"DataRecoveryAppendRequest","description":"Body for POST /mission_results/{mission_id}/data_recovery."},"DestinationStop":{"properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City of the destination stop"},"companyName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Companyname","description":"Company name at the destination stop"},"contactEmail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contactemail","description":"Contact email at the destination stop"},"contactFirstName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contactfirstname","description":"Contact first name at the destination stop"},"contactLastName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contactlastname","description":"Contact last name at the destination stop"},"contactPhone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contactphone","description":"Contact phone number at the destination stop"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country of the destination stop"},"locationType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locationtype","description":"Location type of the destination stop"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"State of the destination stop"},"streetLine1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Streetline1","description":"Street line 1 of the destination stop"},"streetLine2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Streetline2","description":"Street line 2 of the destination stop"},"zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip","description":"ZIP code of the destination stop"}},"type":"object","required":["state"],"title":"DestinationStop"},"DimensionAxisWarning":{"properties":{"value":{"type":"number","title":"Value"},"status":{"type":"string","title":"Status"},"min":{"type":"number","title":"Min"},"max":{"type":"number","title":"Max"}},"type":"object","required":["value","status","min","max"],"title":"DimensionAxisWarning","description":"Per-axis measured value vs allowed range (length, width, or height)."},"DimensionUnit":{"type":"string","enum":["m","cm","mm","in","ft"],"title":"DimensionUnit","description":"Unit of the customer-claimed dimensions in an uploaded manifest."},"DimensionWarnings":{"properties":{"length":{"anyOf":[{"$ref":"#/components/schemas/DimensionAxisWarning"},{"type":"null"}]},"width":{"anyOf":[{"$ref":"#/components/schemas/DimensionAxisWarning"},{"type":"null"}]},"height":{"anyOf":[{"$ref":"#/components/schemas/DimensionAxisWarning"},{"type":"null"}]}},"type":"object","title":"DimensionWarnings","description":"Dimension range status for each physical axis."},"DisplayInfo":{"properties":{"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"}},"type":"object","required":["full_name","organization_name"],"title":"DisplayInfo","description":"Display information for a user"},"DocumentInput":{"properties":{"shipment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Shipment Id"},"scan_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scan Id"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"},"images_paths":{"items":{"type":"string"},"type":"array","title":"Images Paths"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"}},"type":"object","title":"DocumentInput","description":"Input model for creating a document via API."},"DocumentResponse":{"properties":{"shipment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Shipment Id"},"scan_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scan Id"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"},"images_paths":{"items":{"type":"string"},"type":"array","title":"Images Paths"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_id":{"type":"string","format":"uuid","title":"Created By Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by_id":{"type":"string","format":"uuid","title":"Updated By Id"}},"type":"object","required":["organization_id","id","created_at","created_by_id","updated_at","updated_by_id"],"title":"DocumentResponse","description":"Response model for API endpoints."},"DocumentUpdate":{"properties":{"shipment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Shipment Id"},"scan_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scan Id"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"},"images_paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Images Paths"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"updated_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By Id"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted"}},"type":"object","title":"DocumentUpdate","description":"Model for updating document fields."},"EntryTypeCount":{"properties":{"type":{"type":"string","title":"Type"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["type","count"],"title":"EntryTypeCount","description":"Count of shipment entries grouped by entry type."},"ExpandedUserSummary":{"properties":{"last_scan_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Scan Date"},"shipments_count":{"type":"integer","title":"Shipments Count"},"shipment_scans_count":{"type":"integer","title":"Shipment Scans Count"},"has_mycarrier_api_key":{"type":"boolean","title":"Has Mycarrier Api Key","default":false},"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"role":{"type":"string","title":"Role"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"created_date":{"type":"string","format":"date-time","title":"Created Date"},"reminder_email_sent":{"type":"boolean","title":"Reminder Email Sent","default":false}},"type":"object","required":["last_scan_date","shipments_count","shipment_scans_count","email","role","organization_name","created_date"],"title":"ExpandedUserSummary","description":"Expanded user summary including additional details."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandlingUnitDamageFilter":{"type":"string","enum":["all","damaged","intact"],"title":"HandlingUnitDamageFilter"},"HandlingUnitDetailResponse":{"properties":{"label_value":{"type":"string","title":"Label Value"},"shipment_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shipment Value"},"manifest_match":{"type":"string","title":"Manifest Match"},"scan_count":{"type":"integer","title":"Scan Count"},"missions":{"items":{"$ref":"#/components/schemas/MissionResultWithImageUrls"},"type":"array","title":"Missions"}},"type":"object","required":["label_value","manifest_match","scan_count","missions"],"title":"HandlingUnitDetailResponse"},"HandlingUnitGroup":{"properties":{"handling_unit_value":{"type":"string","title":"Handling Unit Value"},"label_total":{"type":"integer","title":"Label Total"},"label_scanned":{"type":"integer","title":"Label Scanned"},"items":{"items":{"$ref":"#/components/schemas/ManifestItemWithStatus"},"type":"array","title":"Items"}},"type":"object","required":["handling_unit_value","label_total","label_scanned","items"],"title":"HandlingUnitGroup","description":"One handling unit's label rows + scan counts (drives the per-HU table)."},"HandlingUnitGroupBy":{"type":"string","enum":["handling_unit","shipment"],"title":"HandlingUnitGroupBy"},"HandlingUnitManifestMatchFilter":{"type":"string","enum":["all","matched","unmatched","manifest-only"],"title":"HandlingUnitManifestMatchFilter"},"HandlingUnitRow":{"properties":{"label_value":{"type":"string","title":"Label Value"},"shipment_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shipment Value"},"manifest_match":{"type":"string","title":"Manifest Match"},"latest_mission_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Mission Id"},"latest_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Time"},"warehouse_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warehouse Name"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"shipment_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipment Width"},"shipment_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipment Height"},"shipment_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipment Depth"},"has_damage":{"type":"boolean","title":"Has Damage","default":false},"scan_count":{"type":"integer","title":"Scan Count","default":0}},"type":"object","required":["label_value","manifest_match"],"title":"HandlingUnitRow","description":"One handling unit (label) rollup for the vision dashboard."},"HandlingUnitShipmentGroup":{"properties":{"shipment_value":{"type":"string","title":"Shipment Value"},"handling_unit_count":{"type":"integer","title":"Handling Unit Count"},"scan_count":{"type":"integer","title":"Scan Count"},"latest_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Time"},"has_damage":{"type":"boolean","title":"Has Damage","default":false},"handling_units":{"items":{"$ref":"#/components/schemas/HandlingUnitRow"},"type":"array","title":"Handling Units"}},"type":"object","required":["shipment_value","handling_unit_count","scan_count","handling_units"],"title":"HandlingUnitShipmentGroup","description":"Handling units rolled up under one manifest shipment value."},"HandlingUnitsListResponse":{"properties":{"handling_units":{"items":{"$ref":"#/components/schemas/HandlingUnitRow"},"type":"array","title":"Handling Units"},"shipments":{"anyOf":[{"items":{"$ref":"#/components/schemas/HandlingUnitShipmentGroup"},"type":"array"},{"type":"null"}],"title":"Shipments"},"pagination":{"$ref":"#/components/schemas/HandlingUnitsOffsetPagination"}},"type":"object","required":["handling_units","pagination"],"title":"HandlingUnitsListResponse"},"HandlingUnitsOffsetPagination":{"properties":{"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["limit","offset","total"],"title":"HandlingUnitsOffsetPagination"},"HourlyStatsData":{"properties":{"total_detections":{"type":"integer","minimum":0.0,"title":"Total Detections","description":"Total shipment detections"},"unique_shipments":{"type":"integer","minimum":0.0,"title":"Unique Shipments","description":"Unique shipments tracked"},"repeated_shipments":{"type":"integer","minimum":0.0,"title":"Repeated Shipments","description":"Shipments processed multiple times"},"mission_attempts":{"type":"integer","minimum":0.0,"title":"Mission Attempts","description":"Total mission attempts","default":0},"mission_successes":{"type":"integer","minimum":0.0,"title":"Mission Successes","description":"Successful mission attempts","default":0},"mission_failures":{"type":"integer","minimum":0.0,"title":"Mission Failures","description":"Failed mission attempts","default":0},"with_barcode":{"type":"integer","minimum":0.0,"title":"With Barcode","description":"Shipments with visible barcodes"},"without_barcode":{"type":"integer","minimum":0.0,"title":"Without Barcode","description":"Shipments without visible barcodes"},"barcodes_read":{"type":"integer","minimum":0.0,"title":"Barcodes Read","description":"Shipments with successfully read barcodes"},"with_dimensions":{"type":"integer","minimum":0.0,"title":"With Dimensions","description":"Shipments with captured dimensions"},"without_dimensions":{"type":"integer","minimum":0.0,"title":"Without Dimensions","description":"Shipments without dimensions"}},"type":"object","required":["total_detections","unique_shipments","repeated_shipments","with_barcode","without_barcode","barcodes_read","with_dimensions","without_dimensions"],"title":"HourlyStatsData","description":"Hourly statistics breakdown."},"HourlyStatsInput":{"properties":{"record_id":{"type":"integer","title":"Record Id","description":"Local database record ID"},"timestamp":{"type":"string","title":"Timestamp","description":"Stats generation timestamp (ISO format)"},"period_start":{"type":"string","title":"Period Start","description":"Statistics period start time (ISO format)"},"period_end":{"type":"string","title":"Period End","description":"Statistics period end time (ISO format)"},"vision_system_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vision System Id","description":"Vision system identifier"},"stats":{"$ref":"#/components/schemas/HourlyStatsData","description":"Statistics breakdown"}},"type":"object","required":["record_id","timestamp","period_start","period_end","stats"],"title":"HourlyStatsInput","description":"Input model for hourly lifecycle statistics."},"HourlyStatsResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"record_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Record Id"}},"type":"object","required":["success","message"],"title":"HourlyStatsResponse","description":"Response after uploading hourly stats."},"ImageUploadResponse":{"properties":{"key":{"type":"string","title":"Key"},"url":{"type":"string","title":"Url"}},"type":"object","required":["key","url"],"title":"ImageUploadResponse","description":"Response returned after uploading an image to storage."},"InvitationRequestResponse":{"properties":{"status":{"type":"string","title":"Status","default":"success"},"message":{"type":"string","title":"Message","default":"Invitation request sent"}},"type":"object","title":"InvitationRequestResponse","description":"Response model returned after requesting an organization invitation"},"Keypoint":{"properties":{"keypoint_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Keypoint Id"},"quad":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Quad"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"corner_confidences":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Corner Confidences"},"decoded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Decoded"}},"type":"object","title":"Keypoint","description":"One barcode the vision system located on a label, in the pixel frame of the\ncluster's saved high-zoom image.\n\nRecorded whether or not it was read: decoded=False is a barcode that was found and\ncould not be decoded, which is distinct from no barcode being there at all."},"LPNDetails":{"properties":{"shipment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Shipment Id"},"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Image Urls"}},"type":"object","required":["shipment_id","timestamp","image_urls"],"title":"LPNDetails","description":"Presigned URL and metadata for a unique LPN number."},"LabelData":{"properties":{"label_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label Value"},"read_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Method"},"distance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance"},"confidence_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Score"},"bounding_box":{"anyOf":[{"$ref":"#/components/schemas/BoundingBox"},{"type":"null"}]},"sys_pitch_deg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sys Pitch Deg"},"sys_yaw_deg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sys Yaw Deg"},"sys_zoom_level":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sys Zoom Level"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"labels":{"anyOf":[{"items":{"$ref":"#/components/schemas/NestedLabelReadout"},"type":"array"},{"type":"null"}],"title":"Labels"},"label_regions":{"anyOf":[{"items":{"$ref":"#/components/schemas/LabelRegion"},"type":"array"},{"type":"null"}],"title":"Label Regions"}},"type":"object","title":"LabelData"},"LabelIdentifier":{"properties":{"label_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label Value"},"read_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Method"},"confidence_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Score"},"bounding_box":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Bounding Box"},"label_bbox":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Label Bbox"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"keypoint_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Keypoint Id"},"deskewed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deskewed"}},"type":"object","title":"LabelIdentifier","description":"One identifier read inside label_data[].label_regions[].labels[].identifiers[]."},"LabelRegion":{"properties":{"cluster_tracking_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Tracking Image"},"cluster_zoom_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Zoom Image"},"labels":{"anyOf":[{"items":{"$ref":"#/components/schemas/LabelRegionLabel"},"type":"array"},{"type":"null"}],"title":"Labels"}},"type":"object","title":"LabelRegion","description":"One spatial cluster of label reads inside label_data[].label_regions[]."},"LabelRegionLabel":{"properties":{"label_bbox":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Label Bbox"},"identifiers":{"anyOf":[{"items":{"$ref":"#/components/schemas/LabelIdentifier"},"type":"array"},{"type":"null"}],"title":"Identifiers"},"label_crop_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Label Crop Id"},"keypoints":{"anyOf":[{"items":{"$ref":"#/components/schemas/Keypoint"},"type":"array"},{"type":"null"}],"title":"Keypoints"}},"type":"object","title":"LabelRegionLabel","description":"One detected label area inside a label_regions[] cluster."},"LabelThumbnailRequestItem":{"properties":{"mission_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Mission Ids"},"label_value":{"type":"string","title":"Label Value"}},"type":"object","required":["mission_ids","label_value"],"title":"LabelThumbnailRequestItem","description":"A label_value plus its candidate missions (most-recent-first) to try\nwhen resolving a thumbnail. Some captures detect a label without a usable\ncluster image (e.g. the zoom shot failed) — trying older candidates in\norder lets an earlier capture's image stand in for the newest one."},"LabelThumbnailResponseItem":{"properties":{"label_value":{"type":"string","title":"Label Value"},"zoom_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zoom Image Url"}},"type":"object","required":["label_value"],"title":"LabelThumbnailResponseItem","description":"Zoom image for one requested label_value, resolved from the first\ncandidate mission (in request order) that has a usable image. Prefers\nthe matched-cluster zoom shot, then any shipment/barcode image on that\nmission. zoom_image_url is None when none of the candidate missions\nwere found, in the caller's organization, or had any image key. Items\nare returned in the same order as requested."},"LabelThumbnailsRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LabelThumbnailRequestItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"LabelThumbnailsRequest"},"LabelThumbnailsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LabelThumbnailResponseItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"LabelThumbnailsResponse"},"LifecycleStatsAggregation":{"properties":{"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"vision_system_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vision System Id"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"record_count":{"type":"integer","title":"Record Count"},"total_detections":{"type":"integer","title":"Total Detections"},"total_unique_shipments":{"type":"integer","title":"Total Unique Shipments"},"total_repeated_shipments":{"type":"integer","title":"Total Repeated Shipments"},"total_mission_attempts":{"type":"integer","title":"Total Mission Attempts","default":0},"total_mission_successes":{"type":"integer","title":"Total Mission Successes","default":0},"total_mission_failures":{"type":"integer","title":"Total Mission Failures","default":0},"total_with_barcode":{"type":"integer","title":"Total With Barcode"},"total_without_barcode":{"type":"integer","title":"Total Without Barcode"},"total_barcodes_read":{"type":"integer","title":"Total Barcodes Read"},"total_with_dimensions":{"type":"integer","title":"Total With Dimensions"},"total_without_dimensions":{"type":"integer","title":"Total Without Dimensions"},"avg_unique_shipments_per_hour":{"type":"number","title":"Avg Unique Shipments Per Hour"},"avg_barcode_read_rate":{"type":"number","title":"Avg Barcode Read Rate"},"avg_dimension_capture_rate":{"type":"number","title":"Avg Dimension Capture Rate"},"avg_mission_success_rate":{"type":"number","title":"Avg Mission Success Rate","default":0.0}},"type":"object","required":["organization_id","vision_system_id","period_start","period_end","record_count","total_detections","total_unique_shipments","total_repeated_shipments","total_with_barcode","total_without_barcode","total_barcodes_read","total_with_dimensions","total_without_dimensions","avg_unique_shipments_per_hour","avg_barcode_read_rate","avg_dimension_capture_rate"],"title":"LifecycleStatsAggregation","description":"Aggregated lifecycle statistics over a time range."},"LifecycleStatsListResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/LifecycleStatsRecord"},"type":"array","title":"Results"},"pagination":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","required":["results"],"title":"LifecycleStatsListResponse","description":"Response model for lifecycle stats list query.","example":{"pagination":{"has_next":false,"page_size":100},"results":[]}},"LifecycleStatsRecord":{"properties":{"id":{"type":"integer","title":"Id"},"partner_id":{"type":"string","format":"uuid","title":"Partner Id"},"vision_system_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vision System Id"},"record_id":{"type":"integer","title":"Record Id"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"total_detections":{"type":"integer","title":"Total Detections"},"unique_shipments":{"type":"integer","title":"Unique Shipments"},"repeated_shipments":{"type":"integer","title":"Repeated Shipments"},"mission_attempts":{"type":"integer","title":"Mission Attempts","default":0},"mission_successes":{"type":"integer","title":"Mission Successes","default":0},"mission_failures":{"type":"integer","title":"Mission Failures","default":0},"with_barcode":{"type":"integer","title":"With Barcode"},"without_barcode":{"type":"integer","title":"Without Barcode"},"barcodes_read":{"type":"integer","title":"Barcodes Read"},"with_dimensions":{"type":"integer","title":"With Dimensions"},"without_dimensions":{"type":"integer","title":"Without Dimensions"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","partner_id","vision_system_id","record_id","timestamp","period_start","period_end","total_detections","unique_shipments","repeated_shipments","with_barcode","without_barcode","barcodes_read","with_dimensions","without_dimensions","created_at"],"title":"LifecycleStatsRecord","description":"Lifecycle statistics database record."},"LogEntry":{"properties":{"message":{"type":"string","title":"Message"},"timestamp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timestamp"},"log_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Level"},"app_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Version"},"device_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["message"],"title":"LogEntry"},"ManifestDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"source_filename":{"type":"string","title":"Source Filename"},"row_count":{"type":"integer","title":"Row Count"},"shipment_column":{"type":"string","title":"Shipment Column"},"handling_unit_column":{"type":"string","title":"Handling Unit Column"},"label_value_column":{"type":"string","title":"Label Value Column"},"time_column":{"type":"string","title":"Time Column"},"created_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"total_shipments":{"type":"integer","title":"Total Shipments"},"total_handling_units":{"type":"integer","title":"Total Handling Units"},"label_total":{"type":"integer","title":"Label Total"},"label_scanned":{"type":"integer","title":"Label Scanned"},"first_scanned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Scanned At"},"last_scanned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Scanned At"},"shipments":{"items":{"$ref":"#/components/schemas/ManifestShipmentSummary"},"type":"array","title":"Shipments"}},"type":"object","required":["id","organization_id","name","source_filename","row_count","shipment_column","handling_unit_column","label_value_column","time_column","created_at","total_shipments","total_handling_units","label_total","label_scanned","shipments"],"title":"ManifestDetail","description":"Full manifest detail: metadata + overall counts + per-shipment summaries."},"ManifestItemCapture":{"properties":{"mission_id":{"type":"string","format":"uuid","title":"Mission Id"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"},"vision_system_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vision System Id"},"shipment_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipment Width"},"shipment_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipment Depth"},"shipment_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipment Height"}},"type":"object","required":["mission_id","captured_at"],"title":"ManifestItemCapture","description":"One scan capture associated with a manifest label row."},"ManifestItemWithStatus":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label_value":{"type":"string","title":"Label Value"},"scanned":{"type":"boolean","title":"Scanned"},"manifest_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Manifest Time"},"mission_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Mission Ids"},"last_scanned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Scanned At"},"captures":{"items":{"$ref":"#/components/schemas/ManifestItemCapture"},"type":"array","title":"Captures","default":[]},"data":{"additionalProperties":true,"type":"object","title":"Data"},"customer_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Customer Height"},"customer_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Customer Width"},"customer_length":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Customer Length"}},"type":"object","required":["id","label_value","scanned","data"],"title":"ManifestItemWithStatus","description":"One manifest label row with its scan check-off status."},"ManifestItemsCaptures":{"properties":{"shipments":{"items":{"$ref":"#/components/schemas/ManifestShipmentCapture"},"type":"array","title":"Shipments"}},"type":"object","required":["shipments"],"title":"ManifestItemsCaptures","description":"Scan rollups for the shipments currently on screen."},"ManifestItemsLabelStatus":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ManifestLabelStatusItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ManifestItemsLabelStatus","description":"All in-window manifest labels with scan status (flat list)."},"ManifestItemsOverview":{"properties":{"shipment_column":{"type":"string","title":"Shipment Column"},"handling_unit_column":{"type":"string","title":"Handling Unit Column"},"label_value_column":{"type":"string","title":"Label Value Column"},"total_shipments":{"type":"integer","title":"Total Shipments"},"total_handling_units":{"type":"integer","title":"Total Handling Units"},"label_total":{"type":"integer","title":"Label Total"},"label_scanned":{"type":"integer","title":"Label Scanned"},"first_scanned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Scanned At"},"last_scanned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Scanned At"},"limit":{"type":"integer","title":"Limit","default":25},"offset":{"type":"integer","title":"Offset","default":0},"shipments":{"items":{"$ref":"#/components/schemas/ManifestShipmentSummary"},"type":"array","title":"Shipments"}},"type":"object","required":["shipment_column","handling_unit_column","label_value_column","total_shipments","total_handling_units","label_total","label_scanned","shipments"],"title":"ManifestItemsOverview","description":"Time-windowed rollup of manifest items across ALL manifests (CSVs) for an\norg — drives the customer-facing time-based Manifests page. Column labels\ncome from org_manifest_columns since this spans many manifests."},"ManifestItemsPage":{"properties":{"shipment_column":{"type":"string","title":"Shipment Column"},"handling_unit_column":{"type":"string","title":"Handling Unit Column"},"label_value_column":{"type":"string","title":"Label Value Column"},"limit":{"type":"integer","title":"Limit","default":25},"offset":{"type":"integer","title":"Offset","default":0},"shipments":{"items":{"$ref":"#/components/schemas/ManifestShipmentSummary"},"type":"array","title":"Shipments"}},"type":"object","required":["shipment_column","handling_unit_column","label_value_column","shipments"],"title":"ManifestItemsPage","description":"Time-windowed shipment page with no scan matching."},"ManifestItemsTotals":{"properties":{"total_shipments":{"type":"integer","title":"Total Shipments"},"total_handling_units":{"type":"integer","title":"Total Handling Units"},"label_total":{"type":"integer","title":"Label Total"}},"type":"object","required":["total_shipments","total_handling_units","label_total"],"title":"ManifestItemsTotals","description":"Window-wide counts from manifest tables only."},"ManifestLabelStatusItem":{"properties":{"label_value":{"type":"string","title":"Label Value"},"shipment_value":{"type":"string","title":"Shipment Value"},"scanned":{"type":"boolean","title":"Scanned"},"first_scanned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Scanned At"}},"type":"object","required":["label_value","shipment_value","scanned"],"title":"ManifestLabelStatusItem","description":"One in-window manifest label with scan check-off status.\n\nUsed by the Hellmann vision dashboard to build label→shipment maps and\nunscanned rows in a single request instead of N shipment-detail calls."},"ManifestListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"source_filename":{"type":"string","title":"Source Filename"},"row_count":{"type":"integer","title":"Row Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","name","source_filename","row_count","created_at"],"title":"ManifestListItem","description":"Lightweight manifest entry for the list page."},"ManifestNameUpdate":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"ManifestNameUpdate","description":"Input for renaming a manifest."},"ManifestShipmentCapture":{"properties":{"shipment_value":{"type":"string","title":"Shipment Value"},"label_scanned":{"type":"integer","title":"Label Scanned"},"first_scanned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Scanned At"},"last_scanned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Scanned At"},"latest_scanned_label_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Scanned Label Value"},"latest_scanned_mission_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Latest Scanned Mission Ids"}},"type":"object","required":["shipment_value","label_scanned"],"title":"ManifestShipmentCapture","description":"Scan rollup for one visible shipment on the time-based list."},"ManifestShipmentSummary":{"properties":{"shipment_value":{"type":"string","title":"Shipment Value"},"handling_unit_count":{"type":"integer","title":"Handling Unit Count"},"label_total":{"type":"integer","title":"Label Total"},"label_scanned":{"type":"integer","title":"Label Scanned"},"first_scanned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Scanned At"},"last_scanned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Scanned At"},"latest_scanned_label_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Scanned Label Value"},"latest_scanned_mission_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Latest Scanned Mission Ids"}},"type":"object","required":["shipment_value","handling_unit_count","label_total","label_scanned"],"title":"ManifestShipmentSummary","description":"Per-shipment rollup within a manifest (drives the shipments table)."},"MetadataStructure":{"properties":{"device_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Model"},"device_brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Brand"},"mycarrier_submission_success":{"type":"boolean","title":"Mycarrier Submission Success","default":false}},"additionalProperties":true,"type":"object","title":"MetadataStructure"},"MissionResultInput":{"properties":{"mission_id":{"type":"string","format":"uuid","title":"Mission Id"},"mission_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Mission Start Time"},"mission_end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Mission End Time"},"inference_times":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inference Times"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"state_transition_history":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"State Transition History"},"service_call_log":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Service Call Log"},"server_name":{"type":"string","title":"Server Name"},"warehouse_name":{"type":"string","title":"Warehouse Name"},"vision_system_id":{"type":"string","title":"Vision System Id"},"model_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Info"},"label_data":{"anyOf":[{"items":{"$ref":"#/components/schemas/LabelData"},"type":"array"},{"type":"null"}],"title":"Label Data"},"shipment_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipment Width"},"shipment_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipment Depth"},"shipment_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipment Height"},"home_pitch_deg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Home Pitch Deg"},"home_yaw_deg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Home Yaw Deg"},"home_zoom":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Home Zoom"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"zone_warning":{"anyOf":[{"$ref":"#/components/schemas/ZoneWarning"},{"type":"null"}]},"dimension_warnings":{"anyOf":[{"$ref":"#/components/schemas/DimensionWarnings"},{"type":"null"}]},"obb_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Obb Data"},"image_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Image Data"},"llm_response":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Llm Response"},"data_recovery":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Data Recovery"}},"type":"object","required":["server_name","warehouse_name"],"title":"MissionResultInput"},"MissionResultLabelItem":{"properties":{"label_value":{"type":"string","title":"Label Value"},"last_updated":{"type":"string","format":"date-time","title":"Last Updated","description":"Latest inserted_at on mission_result_labels for this label_value in this query."},"mission_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Mission Ids"}},"type":"object","required":["label_value","last_updated","mission_ids"],"title":"MissionResultLabelItem","description":"One label_value and the mission_ids that reference it in mission_result_labels."},"MissionResultLabelsBulkResponse":{"properties":{"labels":{"items":{"$ref":"#/components/schemas/MissionResultLabelItem"},"type":"array","title":"Labels"}},"type":"object","required":["labels"],"title":"MissionResultLabelsBulkResponse","description":"Labels response for multi-org or all-org queries (super-admin use cases)."},"MissionResultWithImageUrls":{"properties":{"mission_id":{"type":"string","format":"uuid","title":"Mission Id"},"mission_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Mission Start Time"},"mission_end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Mission End Time"},"inference_times":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inference Times"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"state_transition_history":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"State Transition History"},"service_call_log":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Service Call Log"},"server_name":{"type":"string","title":"Server Name"},"warehouse_name":{"type":"string","title":"Warehouse Name"},"vision_system_id":{"type":"string","title":"Vision System Id"},"model_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Info"},"label_data":{"anyOf":[{"items":{"$ref":"#/components/schemas/LabelData"},"type":"array"},{"type":"null"}],"title":"Label Data"},"shipment_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipment Width"},"shipment_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipment Depth"},"shipment_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shipment Height"},"home_pitch_deg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Home Pitch Deg"},"home_yaw_deg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Home Yaw Deg"},"home_zoom":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Home Zoom"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"zone_warning":{"anyOf":[{"$ref":"#/components/schemas/ZoneWarning"},{"type":"null"}]},"dimension_warnings":{"anyOf":[{"$ref":"#/components/schemas/DimensionWarnings"},{"type":"null"}]},"obb_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Obb Data"},"image_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Image Data"},"llm_response":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Llm Response"},"data_recovery":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Data Recovery"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"db_insert_time":{"type":"string","format":"date-time","title":"Db Insert Time"},"low_zoom_shipment_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Low Zoom Shipment Image"},"high_zoom_shipment_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"High Zoom Shipment Image"},"low_zoom_barcode_image_list":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Low Zoom Barcode Image List"},"high_zoom_barcode_image_list":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"High Zoom Barcode Image List"},"point_cloud_file_path_list":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Point Cloud File Path List"},"s3_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"S3 Data"},"low_zoom_shipment_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Low Zoom Shipment Image Url"},"high_zoom_shipment_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"High Zoom Shipment Image Url"},"low_zoom_barcode_image_urls":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Low Zoom Barcode Image Urls"},"high_zoom_barcode_image_urls":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"High Zoom Barcode Image Urls"},"point_cloud_file_path_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Point Cloud File Path Urls"},"s3_data_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"S3 Data Urls"},"cluster_images":{"anyOf":[{"items":{"$ref":"#/components/schemas/ClusterImagePair"},"type":"array"},{"type":"null"}],"title":"Cluster Images"}},"type":"object","required":["server_name","warehouse_name","organization_id"],"title":"MissionResultWithImageUrls"},"MissionResultsBulkResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/MissionResultWithImageUrls"},"type":"array","title":"Results"},"pagination":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","required":["results"],"title":"MissionResultsBulkResponse","description":"Response model for bulk mission results query.","example":{"pagination":{"has_next":false,"page_size":50},"results":[]}},"MobileAppVersions":{"properties":{"android":{"$ref":"#/components/schemas/AppVersionInfo"},"ios":{"$ref":"#/components/schemas/AppVersionInfo"}},"type":"object","required":["android","ios"],"title":"MobileAppVersions"},"MyCarrierAPIKeyCreate":{"properties":{"mycarrier_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mycarrier Key","description":"MyCarrier API key (sensitive)"},"origin_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Location Id","description":"Origin location ID for shipments"}},"type":"object","title":"MyCarrierAPIKeyCreate","description":"Request model for creating or updating MyCarrier API key and/or origin location ID"},"MyCarrierLocationsResponse":{"properties":{"shippingLocations":{"items":{"$ref":"#/components/schemas/ShippingLocation"},"type":"array","title":"Shippinglocations","description":"List of shipping locations"},"totalCount":{"type":"integer","title":"Totalcount","description":"Total number of shipping locations available"},"returnedCount":{"type":"integer","title":"Returnedcount","description":"Number of locations returned in this response"},"isTruncated":{"type":"boolean","title":"Istruncated","description":"Indicates if there are more results available"}},"type":"object","required":["shippingLocations","totalCount","returnedCount","isTruncated"],"title":"MyCarrierLocationsResponse"},"MyCarrierOrderRequest":{"properties":{"orders":{"items":{"$ref":"#/components/schemas/Orders"},"type":"array","title":"Orders","description":"List of orders for MyCarrier TMS"},"shipment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shipment Id","description":"Shipment ID for the shipment"}},"type":"object","required":["orders"],"title":"MyCarrierOrderRequest"},"MyCarrierStatusResponse":{"properties":{"is_active":{"type":"boolean","title":"Is Active","description":"Whether MyCarrier integration is active for the organization"},"is_valid":{"type":"boolean","title":"Is Valid","description":"Whether MyCarrier integration is valid for the organization"},"message":{"type":"string","title":"Message","description":"Status message"}},"type":"object","required":["is_active","is_valid","message"],"title":"MyCarrierStatusResponse"},"NestedLabelReadout":{"properties":{"label_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label Value"},"read_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Method"},"confidence_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Score"},"bounding_box":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Bounding Box"},"label_bbox":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Label Bbox"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"NestedLabelReadout","description":"One barcode/OCR read inside label_data[].labels (old vision payload shape)."},"Orders":{"properties":{"quoteReferenceID":{"type":"string","title":"Quotereferenceid","description":"Reference ID for the quote"},"originStop":{"$ref":"#/components/schemas/OriginStop","description":"Origin stop details"},"destinationStop":{"$ref":"#/components/schemas/DestinationStop","description":"Destination stop details"},"quoteUnits":{"items":{"$ref":"#/components/schemas/QuoteUnits"},"type":"array","title":"Quoteunits","description":"List of quote units"}},"type":"object","required":["quoteReferenceID","originStop","destinationStop","quoteUnits"],"title":"Orders"},"OrgManifestColumns":{"properties":{"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"shipment_column":{"type":"string","title":"Shipment Column"},"handling_unit_column":{"type":"string","title":"Handling Unit Column"},"label_value_column":{"type":"string","title":"Label Value Column"},"time_column":{"type":"string","title":"Time Column"},"available_columns":{"items":{"type":"string"},"type":"array","title":"Available Columns"},"dimension_unit":{"$ref":"#/components/schemas/DimensionUnit","default":"m"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["organization_id","shipment_column","handling_unit_column","label_value_column","time_column","available_columns","created_at","updated_at"],"title":"OrgManifestColumns","description":"Per-org CSV column mapping config — one row per organization."},"OrgManifestColumnsUpsert":{"properties":{"shipment_column":{"type":"string","title":"Shipment Column"},"handling_unit_column":{"type":"string","title":"Handling Unit Column"},"label_value_column":{"type":"string","title":"Label Value Column"},"time_column":{"type":"string","title":"Time Column"},"available_columns":{"items":{"type":"string"},"type":"array","title":"Available Columns","default":[]},"dimension_unit":{"anyOf":[{"$ref":"#/components/schemas/DimensionUnit"},{"type":"null"}]}},"type":"object","required":["shipment_column","handling_unit_column","label_value_column","time_column"],"title":"OrgManifestColumnsUpsert","description":"Input for creating or updating an org's manifest column mapping."},"OrganizationInput":{"properties":{"name":{"type":"string","title":"Name"},"owner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Owner Id","description":"ID of the organization owner"}},"type":"object","required":["name"],"title":"OrganizationInput","description":"Organization submission model for creating a new organization"},"OrganizationOption":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"OrganizationOption"},"OrganizationResponse":{"properties":{"name":{"type":"string","title":"Name"},"id":{"type":"string","format":"uuid","title":"Id"},"owner_id":{"type":"string","format":"uuid","title":"Owner Id"},"tier":{"type":"string","title":"Tier"},"verified":{"type":"boolean","title":"Verified"},"archived":{"type":"boolean","title":"Archived"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"features":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Features"}},"type":"object","required":["name","id","owner_id","tier","verified","archived","created_at"],"title":"OrganizationResponse","description":"Organization response model for API endpoints"},"OrganizationUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"owner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Owner Id"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verified"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived"},"features":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Features"}},"type":"object","title":"OrganizationUpdate","description":"Model for updating organization data"},"OriginStop":{"properties":{"locationID":{"type":"string","title":"Locationid","description":"Location ID of the origin stop"}},"type":"object","required":["locationID"],"title":"OriginStop"},"PaginationMeta":{"properties":{"page_size":{"type":"integer","title":"Page Size"},"has_next":{"type":"boolean","title":"Has Next"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["page_size","has_next"],"title":"PaginationMeta","description":"Pagination metadata for API responses","example":{"has_next":true,"next_cursor":"2025-01-15T10:30:00Z_uuid-here","page_size":50}},"PartnerApiKeyInput":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"}},"type":"object","required":["user_id"],"title":"PartnerApiKeyInput","description":"Input model for creating or updating a partner API key via the API."},"PointCloudUploadResponse":{"properties":{"key":{"type":"string","title":"Key"},"url":{"type":"string","title":"Url"}},"type":"object","required":["key","url"],"title":"PointCloudUploadResponse","description":"Response returned after uploading a point cloud (.ply) file."},"QuoteUnits":{"properties":{"quoteCommodities":{"items":{"$ref":"#/components/schemas/Commodity"},"type":"array","title":"Quotecommodities","description":"List of quote commodities"},"unitHeight":{"type":"integer","title":"Unitheight","description":"Height of the unit"},"unitLength":{"type":"integer","title":"Unitlength","description":"Length of the unit"},"unitWidth":{"type":"integer","title":"Unitwidth","description":"Width of the unit"},"shippingUnitCount":{"type":"integer","title":"Shippingunitcount","description":"Count of shipping units"},"shippingUnitType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shippingunittype","description":"Type of shipping unit"},"unitStackable":{"type":"boolean","title":"Unitstackable","description":"Indicates if the unit is stackable","default":false}},"type":"object","required":["quoteCommodities","unitHeight","unitLength","unitWidth","shippingUnitCount"],"title":"QuoteUnits"},"ResendVerificationResponse":{"properties":{"status":{"type":"string","title":"Status","default":"success"},"message":{"type":"string","title":"Message","default":"Verification email resent"}},"type":"object","title":"ResendVerificationResponse"},"ScanLimitResponse":{"properties":{"tier":{"type":"string","title":"Tier"},"object_scan_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Object Scan Count"},"doc_scan_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Doc Scan Count"},"scan_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scan Limit"},"can_create_object":{"type":"boolean","title":"Can Create Object"},"can_create_doc":{"type":"boolean","title":"Can Create Doc"},"trial_active":{"type":"boolean","title":"Trial Active","default":true},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Remaining"}},"type":"object","required":["tier","object_scan_count","doc_scan_count","scan_limit","can_create_object","can_create_doc"],"title":"ScanLimitResponse","description":"Response model for the scan quota endpoint."},"ScanType":{"type":"string","enum":["object","pick_ticket","bill_of_lading","document"],"title":"ScanType"},"SharingLinkCreatedResponse":{"properties":{"created_by_id":{"type":"string","format":"uuid","title":"Created By Id"},"shipment_id":{"type":"string","format":"uuid","title":"Shipment Id"},"recipient_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Recipient User Id"},"recipient_organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Recipient Organization Id"},"expiration":{"type":"string","format":"date-time","title":"Expiration"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"recipient_display_info":{"anyOf":[{"$ref":"#/components/schemas/DisplayInfo"},{"type":"null"}]},"raw_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Email"}},"type":"object","required":["created_by_id","shipment_id","expiration","id","created_at"],"title":"SharingLinkCreatedResponse","description":"Response model for sharing links created (/sharing/sharing_links_created)"},"SharingLinkReceivedResponse":{"properties":{"created_by_id":{"type":"string","format":"uuid","title":"Created By Id"},"shipment_id":{"type":"string","format":"uuid","title":"Shipment Id"},"recipient_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Recipient User Id"},"recipient_organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Recipient Organization Id"},"expiration":{"type":"string","format":"date-time","title":"Expiration"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"creator_display_info":{"anyOf":[{"$ref":"#/components/schemas/DisplayInfo"},{"type":"null"}]}},"type":"object","required":["created_by_id","shipment_id","expiration","id","created_at"],"title":"SharingLinkReceivedResponse","description":"Response model for sharing links received (/sharing/self)"},"ShipmentDetail":{"properties":{"shipment_value":{"type":"string","title":"Shipment Value"},"first_scanned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Scanned At"},"last_scanned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Scanned At"},"handling_units":{"items":{"$ref":"#/components/schemas/HandlingUnitGroup"},"type":"array","title":"Handling Units"}},"type":"object","required":["shipment_value","handling_units"],"title":"ShipmentDetail","description":"Full detail for one shipment: handling units each with their label rows."},"ShipmentEntryInput":{"properties":{"shipment_id":{"type":"string","format":"uuid","title":"Shipment Id"},"shipment_scan_id":{"type":"string","format":"uuid","title":"Shipment Scan Id"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"storage_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Path"},"storage_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Storage Id"},"processed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Processed At"},"storage_path_processed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Path Processed"},"created_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By Id"}},"type":"object","required":["shipment_id","shipment_scan_id"],"title":"ShipmentEntryInput","description":"Input model for creating a shipment entry via API."},"ShipmentEntryResponse":{"properties":{"shipment_id":{"type":"string","format":"uuid","title":"Shipment Id"},"shipment_scan_id":{"type":"string","format":"uuid","title":"Shipment Scan Id"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"storage_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Path"},"storage_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Storage Id"},"processed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Processed At"},"storage_path_processed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Path Processed"},"created_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By Id"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By Id"}},"type":"object","required":["shipment_id","shipment_scan_id","id","created_at"],"title":"ShipmentEntryResponse"},"ShipmentInput":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"barcodes":{"anyOf":[{"additionalProperties":{"items":{"$ref":"#/components/schemas/BarcodesData"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Barcodes"},"notified_users":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Notified Users"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id","description":"The organization ID parameter is deprecated; organization details will be derived from the authentication token context in the future.","deprecated":true},"created_by_id":{"type":"string","format":"uuid","title":"Created By Id"},"updated_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By Id"}},"type":"object","required":["created_by_id"],"title":"ShipmentInput","description":"Input model for creating a shipment via API."},"ShipmentPaginationMeta":{"properties":{"page_size":{"type":"integer","title":"Page Size"},"has_next":{"type":"boolean","title":"Has Next"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_next_sharing":{"type":"boolean","title":"Has Next Sharing","default":false},"next_shared_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Shared Cursor"}},"type":"object","required":["page_size","has_next"],"title":"ShipmentPaginationMeta","description":"Pagination metadata specific to shipments","example":{"has_next":true,"next_cursor":"2025-01-15T10:30:00Z_uuid-here","page_size":50}},"ShipmentResponse":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"barcodes":{"anyOf":[{"additionalProperties":{"items":{"$ref":"#/components/schemas/BarcodesData"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Barcodes"},"notified_users":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Notified Users"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By Id"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By Id"},"archived":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived"}},"type":"object","required":["id","created_at"],"title":"ShipmentResponse","description":"Response model for API endpoints","example":{"barcodes":{"771106193503":[{"created_at":"2025-07-10T15:54:48.864Z","max_confidence":0.9991487,"position":[-0.09191363,0.35871473,0.48344377],"recognition_count":35,"scan_id":"36cf801d-4b43-4fa3-a2b8-88c8e7709615","symbol":"VNBarcodeSymbologyCode39","text":"771106193503","type":"UPC"}]},"created_at":"2025-07-10T15:54:48.864Z","created_by_id":"aa07fae1-3e5b-4d6f-b20e-4b45a0d6e0c7","id":"72b6bd26-5332-4b97-9795-5d7e397a8bb6","label":"XYZ123","metadata":{"weight_kg":18.5},"notified_users":["aa07fae1-3e5b-4d6f-b20e-4b45a0d6e0c7"],"organization_id":"b1c2d3e4-f5a6-7b8c-9d0e-f1a2b3c4d5e6","priority":"normal","title":"Example Shipment"}},"ShipmentScanInput":{"properties":{"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"shipment_id":{"type":"string","format":"uuid","title":"Shipment Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height"},"depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth"},"manual_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Manual Width"},"manual_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Manual Height"},"manual_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Manual Depth"},"user_center":{"anyOf":[{"$ref":"#/components/schemas/UserCenter"},{"type":"null"}]},"user_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Width"},"user_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Height"},"user_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Depth"},"weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight"},"freight_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Freight Class"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"scan_type":{"$ref":"#/components/schemas/ScanType","default":"object"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/MetadataStructure"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"user_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Notes"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"updated_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By Id"},"created_by_id":{"type":"string","format":"uuid","title":"Created By Id"}},"type":"object","required":["shipment_id","created_by_id"],"title":"ShipmentScanInput","description":"Input model for creating a shipment scan via API."},"ShipmentScanResponse":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"shipment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Shipment Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height"},"depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth"},"manual_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Manual Width"},"manual_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Manual Height"},"manual_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Manual Depth"},"user_center":{"anyOf":[{"$ref":"#/components/schemas/UserCenter"},{"type":"null"}]},"user_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Width"},"user_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Height"},"user_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Depth"},"weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight"},"freight_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Freight Class"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"scan_type":{"$ref":"#/components/schemas/ScanType","default":"object"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/MetadataStructure"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"user_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Notes"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"created_by_id":{"type":"string","format":"uuid","title":"Created By Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by_id":{"type":"string","format":"uuid","title":"Updated By Id"},"processing_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Processing Completed At"},"recent_entry_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recent Entry Path"},"recent_entry_presigned_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recent Entry Presigned Url"}},"type":"object","required":["created_at","id","organization_id","created_by_id","updated_at","updated_by_id"],"title":"ShipmentScanResponse","description":"Response model for API endpoints."},"ShipmentScanUpdate":{"properties":{"shipment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Shipment Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height"},"depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth"},"manual_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Manual Width"},"manual_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Manual Height"},"manual_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Manual Depth"},"user_center":{"anyOf":[{"$ref":"#/components/schemas/UserCenter"},{"type":"null"}]},"user_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Width"},"user_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Height"},"user_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Depth"},"weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight"},"freight_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Freight Class"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"scan_type":{"anyOf":[{"$ref":"#/components/schemas/ScanType"},{"type":"null"}]},"metadata":{"anyOf":[{"$ref":"#/components/schemas/MetadataStructure"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"user_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Notes"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"updated_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By Id"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"deleted":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted"}},"type":"object","title":"ShipmentScanUpdate","description":"Model for updating shipment scan fields."},"ShipmentSessionBatchInput":{"properties":{"sessions":{"items":{"$ref":"#/components/schemas/ShipmentSessionInput"},"type":"array","title":"Sessions","description":"List of shipment sessions to upsert"}},"type":"object","required":["sessions"],"title":"ShipmentSessionBatchInput","description":"Batch input for multiple shipment sessions."},"ShipmentSessionInput":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id","description":"Unique session identifier"},"vision_system_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vision System Id","description":"Vision system identifier"},"home_position":{"type":"integer","minimum":0.0,"title":"Home Position","description":"Home position index"},"zone_name":{"type":"string","title":"Zone Name","description":"Zone name (e.g., 'home_0')"},"first_seen_at":{"type":"string","title":"First Seen At","description":"First detection timestamp (ISO format)"},"last_seen_at":{"type":"string","title":"Last Seen At","description":"Last detection timestamp (ISO format)"},"removed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Removed At","description":"Removal timestamp (ISO format)"},"first_processed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Processed At","description":"Timestamp when first mission was attempted (ISO format)"},"last_processed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Processed At","description":"Timestamp when last mission was attempted (ISO format)"},"detection_count":{"type":"integer","minimum":0.0,"title":"Detection Count","description":"Number of times detected"},"times_processed":{"type":"integer","minimum":0.0,"title":"Times Processed","description":"Number of times processed by state machine"},"times_succeeded":{"type":"integer","minimum":0.0,"title":"Times Succeeded","description":"Number of successful mission attempts","default":0},"times_failed":{"type":"integer","minimum":0.0,"title":"Times Failed","description":"Number of failed mission attempts","default":0},"mission_ids":{"items":{"type":"string"},"type":"array","title":"Mission Ids","description":"List of mission IDs attempted for this session"},"has_barcode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Barcode","description":"Whether shipment has visible barcode"},"barcode_read":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Barcode Read","description":"Whether barcode was successfully read"},"has_dimensions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Dimensions","description":"Whether dimensions were captured"},"last_bbox_x":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Bbox X","description":"Bounding box X"},"last_bbox_y":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Bbox Y","description":"Bounding box Y"},"last_bbox_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Bbox Width","description":"Bounding box width"},"last_bbox_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Bbox Height","description":"Bounding box height"}},"type":"object","required":["session_id","home_position","zone_name","first_seen_at","last_seen_at","detection_count","times_processed"],"title":"ShipmentSessionInput","description":"Input model for creating/updating shipment sessions."},"ShipmentSessionResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"upserted_count":{"type":"integer","title":"Upserted Count","default":0}},"type":"object","required":["success","message"],"title":"ShipmentSessionResponse","description":"Response after upserting shipment sessions."},"ShipmentSortField":{"type":"string","enum":["title","created_at","updated_at","width","height","depth","weight"],"title":"ShipmentSortField","description":"Enum for sortable shipment fields"},"ShipmentUpdate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"barcodes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Barcodes"},"notified_users":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Notified Users"},"updated_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By Id"},"archived":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived"}},"type":"object","title":"ShipmentUpdate","description":"Model for updating shipment fields."},"ShipmentWithSharingResponse":{"properties":{"shipments":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/ShipmentResponse"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Shipments","default":[]},"shared_with_user_shipments":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/ShipmentResponse"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Shared With User Shipments","default":[]},"pagination":{"anyOf":[{"$ref":"#/components/schemas/ShipmentPaginationMeta"},{"type":"null"}],"description":"Pagination metadata (only present when pagination is used)"}},"type":"object","title":"ShipmentWithSharingResponse","description":"Container for shipments and related sharing information","example":{"pagination":{"has_next":true,"next_cursor":"2025-01-15T10:30:00Z_uuid-here","page_size":50},"shared_with_user_shipments":[],"shipments":[{"created_at":"2025-07-10T15:54:48.864Z","id":"72b6bd26-5332-4b97-9795-5d7e397a8bb6","title":"Example Shipment"}]}},"ShipmentsCountResponse":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"ShipmentsCountResponse","description":"Response model for total shipments count on a dashboard."},"ShippingLocation":{"properties":{"addressId":{"type":"integer","title":"Addressid","description":"Unique identifier for the address"},"companyName":{"type":"string","title":"Companyname","description":"Company name"},"streetLine1":{"type":"string","title":"Streetline1","description":"Street address line 1"},"streetLine2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Streetline2","description":"Street address line 2"},"city":{"type":"string","title":"City","description":"City"},"stateCode":{"type":"string","title":"Statecode","description":"State code (e.g., CA, NY)"},"postalCode":{"type":"string","title":"Postalcode","description":"Postal/ZIP code"},"country":{"type":"string","title":"Country","description":"Country"},"locationId":{"type":"string","title":"Locationid","description":"MyCarrier location identifier"}},"type":"object","required":["addressId","companyName","streetLine1","city","stateCode","postalCode","country","locationId"],"title":"ShippingLocation"},"SortOrder":{"type":"string","enum":["asc","desc"],"title":"SortOrder","description":"Enum for sort order"},"Trailer":{"properties":{"shipment_expected_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shipment Expected Count"},"barcodes_read_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Barcodes Read Count"},"first_capture_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Capture At"},"last_capture_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Capture At"},"arrival_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Arrival Time"},"departure_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Departure Time"},"shipment_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shipment Type"},"lpn_numbers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Lpn Numbers"}},"type":"object","required":["arrival_time","departure_time","shipment_type","lpn_numbers"],"title":"Trailer","description":"Detailed information about a trailer."},"TrailerDetails":{"properties":{"shipment_closed_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Shipment Closed Date"},"arrival_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Arrival Time"},"departure_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Departure Time"},"shipment_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shipment Type"},"lpn_numbers":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/LPNDetails"},"type":"object"},{"type":"null"}],"title":"Lpn Numbers"}},"type":"object","required":["shipment_closed_date","arrival_time","departure_time","shipment_type","lpn_numbers"],"title":"TrailerDetails","description":"Detailed information about a trailer."},"TrailersByDateResponse":{"properties":{"data":{"additionalProperties":{"additionalProperties":{"$ref":"#/components/schemas/Trailer"},"type":"object"},"type":"object","title":"Data"}},"type":"object","required":["data"],"title":"TrailersByDateResponse","description":"Response model for trailers dashboard grouped by date and trailer number."},"UserCenter":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"z":{"type":"number","title":"Z"}},"type":"object","required":["x","y","z"],"title":"UserCenter","description":"User chosen shipment scan center coordinates."},"UserInvitationResponse":{"properties":{"status":{"type":"string","title":"Status","default":"success"},"message":{"type":"string","title":"Message","default":"Invitation sent"},"user_profile_id":{"type":"string","format":"uuid","title":"User Profile Id"},"email":{"type":"string","format":"email","title":"Email"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"role":{"type":"string","title":"Role"}},"type":"object","required":["user_profile_id","email","role"],"title":"UserInvitationResponse","description":"Response model for user invitation endpoints"},"UserProfileInput":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","format":"email","title":"Email"},"role":{"type":"string","title":"Role","default":"user"},"enterprise_seat":{"type":"boolean","title":"Enterprise Seat","default":false}},"type":"object","required":["first_name","last_name","email"],"title":"UserProfileInput","description":"User submission model for creating a new user"},"UserProfileResponse":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","format":"email","title":"Email"},"role":{"type":"string","title":"Role","default":"user"},"enterprise_seat":{"type":"boolean","title":"Enterprise Seat","default":false},"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"invitation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invitation Status"},"auth_user":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Auth User"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["first_name","last_name","email","id"],"title":"UserProfileResponse","description":"User profile response model for API endpoints"},"UserProfileUpdate":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"invitation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invitation Status"},"enterprise_seat":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enterprise Seat"},"auth_user":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Auth User"}},"type":"object","title":"UserProfileUpdate","description":"Model for updating user profile data"},"UserSummariesResponse":{"properties":{"summaries":{"items":{"$ref":"#/components/schemas/ExpandedUserSummary"},"type":"array","title":"Summaries"},"pagination":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["summaries","pagination"],"title":"UserSummariesResponse","description":"Paginated response for user summaries."},"UserUpdateContext":{"properties":{"user_profiles_id":{"type":"string","format":"uuid","title":"User Profiles Id"},"role":{"type":"string","title":"Role"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id","deprecated":true}},"type":"object","required":["user_profiles_id","role","organization_id"],"title":"UserUpdateContext","description":"Context information about the user making the update"},"UserUpdateRequest":{"properties":{"context":{"$ref":"#/components/schemas/UserUpdateContext"},"user_to_update":{"type":"string","format":"uuid","title":"User To Update"},"update_data":{"$ref":"#/components/schemas/UserProfileUpdate"}},"type":"object","required":["context","user_to_update","update_data"],"title":"UserUpdateRequest","description":"Request model for user updates by admin or self"},"UserUpdateResponse":{"properties":{"status":{"type":"string","title":"Status","default":"success"},"message":{"type":"string","title":"Message","default":"User updated successfully"},"updated_user":{"$ref":"#/components/schemas/UserProfileResponse"}},"type":"object","required":["updated_user"],"title":"UserUpdateResponse","description":"Response model for user updates"},"UserWithOrganizationResponse":{"properties":{"status":{"type":"string","title":"Status","default":"success"},"user_profile":{"additionalProperties":true,"type":"object","title":"User Profile"},"organization":{"additionalProperties":true,"type":"object","title":"Organization"}},"type":"object","required":["user_profile","organization"],"title":"UserWithOrganizationResponse","description":"Response model for endpoints returning both user and organization data"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyOrganizationRequest":{"properties":{"token":{"type":"string","title":"Token","description":"Signed verification token from the email link"}},"type":"object","required":["token"],"title":"VerifyOrganizationRequest"},"VerifyOrganizationResponse":{"properties":{"status":{"type":"string","title":"Status","default":"success"},"message":{"type":"string","title":"Message","default":"Email verified successfully"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"verified":{"type":"boolean","title":"Verified","default":true}},"type":"object","required":["organization_id"],"title":"VerifyOrganizationResponse"},"ZoneWarning":{"properties":{"is_contained":{"type":"boolean","title":"Is Contained"},"zones_found":{"items":{"type":"string"},"type":"array","title":"Zones Found"},"message":{"type":"string","title":"Message"}},"type":"object","required":["is_contained","zones_found","message"],"title":"ZoneWarning","description":"Shipment vs zone overlay check result."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}