{"openapi":"3.1.0","info":{"title":"API Reference","version":"1.0.0"},"paths":{"/utils/timezone/v1":{"get":{"operationId":"utils_get_timezone_v1","summary":"Get IANA timezone for coordinates","description":"Returns the IANA timezone identifier (e.g., 'America/Los_Angeles') for the given latitude and longitude coordinates. Falls back to closest timezone if the point is in the ocean or at an edge. | () -> (TimezoneResponse)","tags":["utils"],"parameters":[{"name":"lat","in":"query","description":"Latitude in decimal degrees (range: -90 to 90)","required":true,"schema":{"type":"number","format":"double","minimum":-90,"maximum":90}},{"name":"lng","in":"query","description":"Longitude in decimal degrees (range: -180 to 180)","required":true,"schema":{"type":"number","format":"double","minimum":-180,"maximum":180}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimezoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/":{"get":{"operationId":"root_ping_unauthd","summary":"Ping","description":"Returns a greeting message to verify the API is accessible. | () -> (dict)","tags":["root"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}},"security":[{"HTTPBearer":[]}]}},"/authd":{"get":{"operationId":"root_ping_authd","summary":"Ping authenticated","description":"Test endpoint for authenticated requests that requires valid authentication tokens. | () -> (dict[str, str])","tags":["root"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"security":[{"HTTPBearer":[]}]}},"/failure":{"get":{"operationId":"root_failure","summary":"Test failure","description":"Test endpoint that intentionally fails for error handling validation and monitoring purposes. | () -> (None)","tags":["root"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"description":"Any type"}}}}},"security":[{"HTTPBearer":[]}]}},"/health":{"get":{"operationId":"root_health","summary":"Health check","description":"Returns a health status message used for monitoring system availability and uptime. | () -> (dict)","tags":["root"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}}},"/optionally_authd":{"get":{"operationId":"root_ping_optionally_authd","summary":"Ping optionally authenticated","description":"Test endpoint for optionally authenticated requests that works with or without authentication. | () -> (dict)","tags":["root"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}},"security":[{"HTTPBearer":[]}]}},"/dev/agent/ping/v1":{"post":{"operationId":"dev_post_agent_ping_v1","summary":"Temporal ping","description":"Runs a lightweight Temporal workflow and activity round trip for developer diagnostics. | (PingReq) -> (PingRes)","tags":["dev"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PingRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PingReq"}}}},"security":[{"HTTPBearer":[]}]}},"/dev/credential_info/v1":{"get":{"operationId":"dev_get_credential_info_v1","summary":"Credential info","description":"Returns the verified caller identity and raw credential claims for development purposes. | () -> (CredentialInfoRes)","tags":["dev"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialInfoRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/dev/email/v1":{"get":{"operationId":"dev_get_email_v1","summary":"User email","description":"Retrieves the primary email address for the caller from the authentication service. | () -> (str)","tags":["dev"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}}},"security":[{"HTTPBearer":[]}]}},"/dev/git_info/v1":{"get":{"operationId":"dev_get_git_info_v1","summary":"Deployment git info","description":"Returns the current GitHub PR number and commit hash for the deployment. | () -> (dict[str, str])","tags":["dev"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":["string","null"]}}}}}},"security":[{"HTTPBearer":[]}]}},"/dev/template/v1":{"get":{"operationId":"dev_get_template_v1","summary":"Get template","description":"Development template endpoint that returns the caller's ID for testing. | () -> (str)","tags":["dev"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"operationId":"dev_create_template_v1","summary":"Create template","description":"Development template endpoint that demonstrates transaction handling and request mirroring. | (TemplateReq) -> (TemplateRes)","tags":["dev"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/dev/user_id/v1":{"get":{"operationId":"dev_get_user_id_v1","summary":"User ID","description":"(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)","tags":["dev"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}}},"security":[{"HTTPBearer":[]}]}},"/dev/user_id/v2":{"get":{"operationId":"dev_get_user_id_v2","summary":"User ID","description":"Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)","tags":["dev"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}}},"security":[{"HTTPBearer":[]}]}},"/ai/rewrite/v1":{"post":{"operationId":"ai_rewrite_v1","summary":"Rewrite text","description":"Drafts a rewrite of the caller's text in the requested tone and length, for them to review. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (AIRewriteReq) -> (AIRewriteRes)","tags":["ai"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIRewriteRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIRewriteReq"}}}},"security":[{"HTTPBearer":[]}]}},"/analytics/shipping/orders/count/v1":{"post":{"operationId":"shipping_retrieve_orders_count_v1","summary":"Retrieve (via POST) order count","description":"Retrieves order counts bucketed by time period. | (AnalyticsTimePeriodReq) -> (AnalyticsTimeBucketRes)","tags":["shipping"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsTimeBucketRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsTimePeriodReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing/create-checkout-session/v1":{"post":{"operationId":"stripe_create_checkout_session_v1","summary":"Create session","description":"Creates a Stripe checkout session for a subscription against the Stripe product+price chosen by the frontend. Stripe rejects unknown/archived/mode-mismatched price IDs. Returns 409 `use_create_customer_portal_session` if the org already has an active subscription in Stripe (source of truth -- bypasses any JWT staleness). FE should route those users to POST /billing/create-customer-portal-session/v1 to manage. authz: allowed_org_types=[provider] (shippers cannot subscribe -- they are never gated, paying would be a no-op), min_org_role=administrator (committing the company to recurring charges is a finance decision, not an operator one). | (CreateCheckoutSessionReq) -> (CreateCheckoutSessionRes)","tags":["stripe"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutSessionRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutSessionReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing/create-customer-portal-session/v1":{"post":{"operationId":"stripe_create_customer_portal_session_v1","summary":"Manage subscription","description":"Creates a Stripe customer-portal session so the org's admin can self-serve update card / view invoices / cancel subscription. authz: allowed_org_types=[provider], min_org_role=administrator (same gate as create-checkout-session — cancelling/updating-card has the same financial weight as subscribing). Returns 404 `use_create_checkout_session` if the org has no Stripe customer. POST /billing/create-checkout-session/v1 first. | (no body) -> (CreateCustomerPortalSessionRes)","tags":["stripe"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomerPortalSessionRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/stripe_connect/account_onboarding_link/v1":{"post":{"operationId":"stripeConnect_onboarding_link_v1","summary":"Create Stripe Connect account onboarding link","description":"Creates an onboarding link for a Stripe Connect account. Used to complete or update account setup. | () -> (StripeConnectAccountOnboardingLinkRes)","tags":["stripeConnect"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeConnectAccountOnboardingLinkRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/stripe_connect/create_account/v1":{"post":{"operationId":"stripeConnect_create_account_v1","summary":"Create Stripe Connect account","description":"Creates a Stripe Connect account for the organization to receive payments. Idempotent - returns existing account if already created. | () -> (CreateStripeConnectAccountRes)","tags":["stripeConnect"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStripeConnectAccountRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/billing_periods/close/v1/{billing_period_id}":{"patch":{"operationId":"billingPeriods_close_v1","summary":"Close","description":"Closes an open billing period and creates one approved line item without assigning an invoice. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (BillingPeriodCloseRes)","tags":["billingPeriods"],"parameters":[{"name":"billing_period_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPeriodCloseRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/billing_periods/create/v1":{"post":{"operationId":"billingPeriods_create_v1","summary":"Create","description":"Creates an open owner-scoped billing period. | authz: allowed_org_types=[provider], min_org_role=operator | (BillingPeriodClientCreate1) -> (BillingPeriod1)","tags":["billingPeriods"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPeriod1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPeriodClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/billing_periods/delete/v1/{billing_period_id}":{"delete":{"operationId":"billingPeriods_delete_v1","summary":"Delete","description":"Deletes an open owner-scoped billing period. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["billingPeriods"],"parameters":[{"name":"billing_period_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/billing_periods/expanded/v1/{billing_period_id}":{"get":{"operationId":"billingPeriods_get_expanded_v1","summary":"Expanded","description":"Gets an owner-scoped billing period with its generated line item and invoice when present. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (BillingPeriodExpanded1)","tags":["billingPeriods"],"parameters":[{"name":"billing_period_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPeriodExpanded1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/billing_periods/list/v1":{"get":{"operationId":"billingPeriods_list_v1","summary":"List","description":"Lists owner-scoped billing periods with generated line items and invoices. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (BillingPeriodListRes)","tags":["billingPeriods"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/BillingPeriodSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_statuses","in":"query","description":"Filter by one or more billing-period statuses.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/BillingPeriodStatusEnum1"}}},{"name":"filter_invoice_types","in":"query","description":"Filter by one or more invoice types.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/InvoiceTypeEnum1"}}},{"name":"filter_currency_codes","in":"query","description":"Filter by one or more currency codes.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"}}},{"name":"filter_counterparty_org_id","in":"query","description":"Filter by an on-CHRT counterparty organization.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_counterparty_off_chrt_org_data_id","in":"query","description":"Filter by an off-CHRT counterparty organization.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_counterparty_driver_id","in":"query","description":"Filter by a driver counterparty.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_shipper_account_id","in":"query","description":"Filter by an associated shipper account.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_task_group_id","in":"query","description":"Filter by an attributed TaskGroup.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_period_start_at_timestamp_gte","in":"query","description":"Filter by period start greater than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_period_start_at_timestamp_lte","in":"query","description":"Filter by period start less than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_period_end_at_timestamp_gte","in":"query","description":"Filter by period end greater than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_period_end_at_timestamp_lte","in":"query","description":"Filter by period end less than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPeriodListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/billing_periods/task_groups/add_many/v1/{billing_period_id}":{"post":{"operationId":"billingPeriods_add_task_groups_v1","summary":"Add task groups","description":"Adds visible TaskGroups to an open owner-scoped billing period. | authz: allowed_org_types=[provider], min_org_role=operator | (BillingPeriodTaskGroupsReq) -> (BillingPeriod1)","tags":["billingPeriods"],"parameters":[{"name":"billing_period_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPeriod1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPeriodTaskGroupsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/billing_periods/task_groups/remove_many/v1/{billing_period_id}":{"post":{"operationId":"billingPeriods_remove_task_groups_v1","summary":"Remove task groups","description":"Removes linked TaskGroups from an open owner-scoped billing period. | authz: allowed_org_types=[provider], min_org_role=operator | (BillingPeriodTaskGroupsReq) -> (BillingPeriod1)","tags":["billingPeriods"],"parameters":[{"name":"billing_period_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPeriod1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPeriodTaskGroupsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/billing_periods/update/v1/{billing_period_id}":{"patch":{"operationId":"billingPeriods_update_v1","summary":"Update","description":"Updates an open owner-scoped billing period. | authz: allowed_org_types=[provider], min_org_role=operator | (BillingPeriodClientUpdate1) -> (BillingPeriod1)","tags":["billingPeriods"],"parameters":[{"name":"billing_period_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPeriod1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPeriodClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/chrt_ground_provider_rates/create/v1":{"post":{"operationId":"chrtGroundProviderRates_create_v1","summary":"Create","description":"Creates ground-provider rates owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (ChrtGroundProviderRatesClientCreate1) -> (PydanticObjectId)","tags":["chrtGroundProviderRates"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGroundProviderRatesClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/chrt_ground_provider_rates/delete/v1/{rate_id}":{"delete":{"operationId":"chrtGroundProviderRates_delete_v1","summary":"Delete","description":"Hard-deletes owner-scoped ground-provider rates. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["chrtGroundProviderRates"],"parameters":[{"name":"rate_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/chrt_ground_provider_rates/get/v1/{rate_id}":{"get":{"operationId":"chrtGroundProviderRates_get_v1","summary":"By ID","description":"Retrieves owner-scoped ground-provider rates. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ChrtGroundProviderRates1)","tags":["chrtGroundProviderRates"],"parameters":[{"name":"rate_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGroundProviderRates1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/chrt_ground_provider_rates/list/v1":{"get":{"operationId":"chrtGroundProviderRates_list_v1","summary":"List","description":"Lists owner-scoped ground-provider rates with counterparty, cargo, vehicle, currency, search, sort, and pagination controls. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ChrtGroundProviderRatesListRes)","tags":["chrtGroundProviderRates"],"parameters":[{"name":"search","in":"query","description":"Search rate names and comments.","required":false,"schema":{"type":["string","null"]}},{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/ChrtGroundProviderRatesSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_chrt_ground_provider_rates_ids","in":"query","description":"Filter by CHRT ground provider rate IDs","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_service_line","in":"query","description":"Filter by one or more service lines.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ServiceLineEnum"}}},{"name":"filter_invoice_types","in":"query","description":"Filter by one or more invoice types.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/InvoiceTypeEnum1"}}},{"name":"filter_currency_codes","in":"query","description":"Filter by one or more currency codes.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"}}},{"name":"filter_counterparty_org_id","in":"query","description":"Filter by an associated on-CHRT organization.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_counterparty_off_chrt_org_data_id","in":"query","description":"Filter by associated off-CHRT organization data.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_shipper_account_id","in":"query","description":"Filter by an associated shipper account.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_counterparty_driver_id","in":"query","description":"Filter by a driver counterparty.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_cargo_types","in":"query","description":"Filter by one or more cargo types.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargoTypeEnum1"}}},{"name":"filter_vehicle_types","in":"query","description":"Filter by one or more vehicle types.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/VehicleTypeEnum"}}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter by created_at_timestamp greater than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter by created_at_timestamp less than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_gte","in":"query","description":"Filter by updated_at_timestamp greater than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_lte","in":"query","description":"Filter by updated_at_timestamp less than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGroundProviderRatesListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/chrt_ground_provider_rates/resolve/v1":{"post":{"operationId":"chrtGroundProviderRates_resolve_v1","summary":"Retrieve (via POST) resolved rates","description":"Returns accounts-payable and accounts-receivable CHRT-ground provider-rate candidates for each eligible TaskGroup. AP candidates target a distinct executor, or the assigned driver when the coordinator is also the executor; AR candidates target the shipper. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (ResolveChrtGroundProviderRatesReq) -> (list[ResolvedTaskGroupChrtGroundProviderRates1])","tags":["chrtGroundProviderRates"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResolvedTaskGroupChrtGroundProviderRates1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveChrtGroundProviderRatesReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/chrt_ground_provider_rates/typeahead/v1":{"get":{"operationId":"chrtGroundProviderRates_typeahead_v1","summary":"Typeahead","description":"Returns matching name values and their IDs within the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[ChrtGroundProviderRatesTypeaheadResult])","tags":["chrtGroundProviderRates"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChrtGroundProviderRatesTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/chrt_ground_provider_rates/update/v1/{rate_id}":{"patch":{"operationId":"chrtGroundProviderRates_update_v1","summary":"Update","description":"Updates owner-scoped ground-provider rates and advances the server-managed update timestamp. | authz: allowed_org_types=[provider], min_org_role=operator | (ChrtGroundProviderRatesClientUpdate1) -> (bool)","tags":["chrtGroundProviderRates"],"parameters":[{"name":"rate_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGroundProviderRatesClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/ad_hoc/create/v1":{"post":{"operationId":"invoiceLineItems_create_ad_hoc_v1","summary":"Create ad-hoc","description":"Creates account-split ad-hoc line items without assigning invoices. | authz: allowed_org_types=[provider], min_org_role=operator | (AdHocInvoiceLineItemsReq) -> (list[InvoiceLineItem1])","tags":["invoiceLineItems"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItem1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdHocInvoiceLineItemsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/ad_hoc/preview/v1":{"post":{"operationId":"invoiceLineItems_preview_ad_hoc_v1","summary":"Retrieve (via POST) ad-hoc preview","description":"Previews account-split ad-hoc line items without persisting them. | authz: allowed_org_types=[provider], min_org_role=operator | (AdHocInvoiceLineItemsReq) -> (list[InvoiceLineItemServerCreate1])","tags":["invoiceLineItems"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItemServerCreate1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdHocInvoiceLineItemsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/approve_many/v1":{"patch":{"operationId":"invoiceLineItems_approve_many_v1","summary":"Approve many","description":"Atomically approves draft line items owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsApproveManyReq) -> (list[InvoiceLineItem1])","tags":["invoiceLineItems"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItem1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemsApproveManyReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/by_order/v1/{order_id}":{"get":{"operationId":"invoiceLineItems_list_by_order_v1","summary":"List by order","description":"Lists owner-scoped line items and attributed billing periods for an order with counterparties and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceLineItemsByOrderExpandedRes)","tags":["invoiceLineItems"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemsByOrderExpandedRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/create_from_awb_costs/v1":{"post":{"operationId":"invoiceLineItems_create_from_awb_costs_v1","summary":"Create from AWB costs","description":"Creates account-scoped airline payables from AWB costs; receivables remain rate-sheet-driven. | authz: allowed_org_types=[provider], min_org_role=operator | (CreateInvoiceLineItemsFromAwbCostsReq) -> (CreateInvoiceLineItemsFromAwbCostsRes)","tags":["invoiceLineItems"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvoiceLineItemsFromAwbCostsRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvoiceLineItemsFromAwbCostsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/delete_many/v1":{"delete":{"operationId":"invoiceLineItems_delete_many_v1","summary":"Delete many","description":"Deletes owner-scoped line items and rebuilds every affected draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsDeleteManyReq) -> (InvoiceLineItemsDeleteManyRes)","tags":["invoiceLineItems"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemsDeleteManyRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemsDeleteManyReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/export/list/v1":{"post":{"operationId":"invoiceLineItems_list_export_v1","summary":"Retrieve (via POST) export rows","description":"Lists up to 1,000 accounts-receivable and accounts-payable line items for the selected Orders, with shipment context and optional estimated taxes for uninvoiced charges (included by default). | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemExportListReq) -> (InvoiceLineItemExportListRes)","tags":["invoiceLineItems"],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000,"default":1000}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemExportListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemExportListReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/from_rate_sheets/create/v1":{"post":{"operationId":"invoiceLineItems_create_from_rate_sheets_v1","summary":"Create from rate sheets","description":"Creates rate-sheet-derived line items without assigning invoices. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[task_group_coordinator_operators] | (InvoiceLineItemsFromChrtGroundProviderRateSheetsReq) -> (list[InvoiceLineItem1])","tags":["invoiceLineItems"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItem1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/from_rate_sheets/preview/v1":{"post":{"operationId":"invoiceLineItems_preview_from_rate_sheets_v1","summary":"Retrieve (via POST) rate-sheet preview","description":"Previews accounts-payable, accounts-receivable, and tax line items from selected active rate sheets. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[task_group_coordinator_operators] | (InvoiceLineItemsFromChrtGroundProviderRateSheetsReq) -> (list[TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1])","tags":["invoiceLineItems"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/list/v1":{"get":{"operationId":"invoiceLineItems_list_v1","summary":"List","description":"Lists owner-scoped invoice line items with attached invoices expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceLineItemListRes)","tags":["invoiceLineItems"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/InvoiceLineItemSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_invoice_types","in":"query","description":"Filter by one or more invoice types.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/InvoiceTypeEnum1"}}},{"name":"filter_currency_codes","in":"query","description":"Filter by one or more currency codes.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"}}},{"name":"filter_line_item_types","in":"query","description":"Filter by one or more line item types.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/InvoiceLineItemTypeEnum1"}}},{"name":"filter_units","in":"query","description":"Filter by one or more units.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/InvoiceLineItemUnitEnum1"}}},{"name":"filter_counterparty_org_id","in":"query","description":"Filter by an on-CHRT counterparty organization.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_counterparty_off_chrt_org_data_id","in":"query","description":"Filter by off-CHRT counterparty organization data.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_counterparty_driver_id","in":"query","description":"Filter by a driver counterparty.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_shipper_account_id","in":"query","description":"Filter by an associated shipper account.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_invoice_id","in":"query","description":"Filter by an attached invoice.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_is_invoiced","in":"query","description":"Filter by whether a line item is attached to an invoice.","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_order_id","in":"query","description":"Filter by an attributed order.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_task_group_id","in":"query","description":"Filter by an attributed task group.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter by created_at_timestamp greater than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter by created_at_timestamp less than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_gte","in":"query","description":"Filter by last_edited_at_timestamp greater than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_lte","in":"query","description":"Filter by last_edited_at_timestamp less than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/revert_currency_conversion_for_orders/v1":{"patch":{"operationId":"invoiceLineItems_revert_currency_conversion_for_orders_v1","summary":"Revert currency conversion by orders","description":"Restores each selected order's converted charges for one direction, counterparty, and source currency to their original amounts. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionRevertForOrdersReq) -> (list[InvoiceLineItemsCurrencyConversionForOrdersRes])","tags":["invoiceLineItems"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItemsCurrencyConversionForOrdersRes"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemsCurrencyConversionRevertForOrdersReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/update_currency_conversion_for_orders/v1":{"patch":{"operationId":"invoiceLineItems_update_currency_conversion_for_orders_v1","summary":"Update currency conversion by orders","description":"Converts each selected order's charges for one direction, counterparty, and source currency at one rate. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateForOrdersReq) -> (list[InvoiceLineItemsCurrencyConversionForOrdersRes])","tags":["invoiceLineItems"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItemsCurrencyConversionForOrdersRes"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemsCurrencyConversionUpdateForOrdersReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/update_currency_conversion_many/v1":{"patch":{"operationId":"invoiceLineItems_update_currency_conversion_many_v1","summary":"Update currency conversion","description":"Converts uninvoiced charges or updates exchange rates within their draft invoice currency. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateManyReq) -> (list[InvoiceLineItem1])","tags":["invoiceLineItems"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItem1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemsCurrencyConversionUpdateManyReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoice_line_items/update_source/v1/{invoice_line_item_id}":{"patch":{"operationId":"invoiceLineItems_update_source_v1","summary":"Update source","description":"Updates an owner-scoped line item's source fields, including its caller-owned shipper account when not rate-sheet-derived, and rebuilds its draft invoice when attached. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemClientUpdate1) -> (InvoiceLineItem1)","tags":["invoiceLineItems"],"parameters":[{"name":"invoice_line_item_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItem1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/approve/v1/{invoice_id}":{"patch":{"operationId":"invoices_approve_v1","summary":"Approve","description":"Approves a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)","tags":["invoices"],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/create/v1":{"post":{"operationId":"invoices_create_v1","summary":"Create","description":"Creates a new draft invoice, optionally attaching selected uninvoiced charges atomically. Omitted dates derive from completed deliveries; empty drafts and charges without completed delivery dates require explicit bounds. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateReq) -> (PydanticObjectId)","tags":["invoices"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceCreateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/create_from_orders/v1":{"post":{"operationId":"invoices_create_from_orders_v1","summary":"Create from orders","description":"Creates one draft from matching order charges and reports skipped items. Billing period dates do not filter charges. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateFromOrdersReq) -> (InvoiceCreateFromOrdersRes)","tags":["invoices"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceCreateFromOrdersRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceCreateFromOrdersReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/delete/v1/{invoice_id}":{"delete":{"operationId":"invoices_delete_v1","summary":"Delete","description":"Hard-deletes a draft invoice and detaches its line items. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["invoices"],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/expanded/v1/{invoice_id}":{"get":{"operationId":"invoices_get_expanded_v1","summary":"Expanded","description":"Retrieves an owner-scoped invoice with line-item orders, counterparties, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExpandedRes)","tags":["invoices"],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceExpandedRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/line_items/add/v1/{invoice_id}":{"post":{"operationId":"invoices_add_line_items_v1","summary":"Add line items","description":"Attaches uninvoiced line items to a draft invoice and refreshes its totals and accounts. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsAddReq) -> (Invoice1)","tags":["invoices"],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemsAddReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/line_items/remove/v1/{invoice_id}":{"post":{"operationId":"invoices_remove_line_items_v1","summary":"Remove line items","description":"Detaches existing line items from a draft invoice and synchronizes derived invoice fields. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsRemoveReq) -> (Invoice1)","tags":["invoices"],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceLineItemsRemoveReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/list/v1":{"get":{"operationId":"invoices_list_v1","summary":"List","description":"Lists owner-scoped invoices with related orders, counterparties, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceListRes)","tags":["invoices"],"parameters":[{"name":"search","in":"query","description":"Search invoice names and descriptions.","required":false,"schema":{"type":["string","null"]}},{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/InvoiceSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_invoice_ids","in":"query","description":"Filter by selected invoice ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_statuses","in":"query","description":"Filter by one or more invoice statuses.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/InvoiceStatusEnum1"}}},{"name":"filter_invoice_types","in":"query","description":"Filter by one or more invoice types.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/InvoiceTypeEnum1"}}},{"name":"filter_currency_codes","in":"query","description":"Filter by one or more currency codes.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"}}},{"name":"filter_counterparty_org_id","in":"query","description":"Filter by an on-CHRT counterparty organization.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_counterparty_off_chrt_org_data_id","in":"query","description":"Filter by off-CHRT counterparty organization data.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_counterparty_driver_id","in":"query","description":"Filter by a driver counterparty.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_counterparty_account_id","in":"query","description":"Filter by an associated counterparty account.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter by created_at_timestamp greater than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter by created_at_timestamp less than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_gte","in":"query","description":"Filter by last_edited_at_timestamp greater than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_lte","in":"query","description":"Filter by last_edited_at_timestamp less than or equal.","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/preview/v1":{"post":{"operationId":"invoices_preview_v1","summary":"Preview selected charges","description":"Previews exact uninvoiced charges, current resolved taxes, and explicit or derived billing dates without saving. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateReq) -> (InvoicePreviewRes)","tags":["invoices"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePreviewRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceCreateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/preview_from_orders/v1":{"post":{"operationId":"invoices_preview_from_orders_v1","summary":"Preview selected orders","description":"Selects matching uninvoiced ordinary charges, reports omitted items, and previews current taxes and billing dates without saving. Period dates do not filter charges. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateFromOrdersReq) -> (InvoicePreviewFromOrdersRes)","tags":["invoices"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePreviewFromOrdersRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceCreateFromOrdersReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/typeahead/v1":{"get":{"operationId":"invoices_typeahead_v1","summary":"Typeahead","description":"Returns matching name values and their IDs within the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[InvoiceTypeaheadResult])","tags":["invoices"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/update/v1/{invoice_id}":{"patch":{"operationId":"invoices_update_v1","summary":"Update","description":"Updates the name or description of a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientUpdate1) -> (bool)","tags":["invoices"],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/update_period/v1/{invoice_id}":{"patch":{"operationId":"invoices_update_period_v1","summary":"Update period","description":"Updates the period of a draft invoice without changing its attached line items. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoicePeriodUpdateReq) -> (bool)","tags":["invoices"],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePeriodUpdateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/v1/{invoice_id}":{"get":{"operationId":"invoices_get_v1","summary":"By ID","description":"Retrieves an invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)","tags":["invoices"],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/invoices/void/v1/{invoice_id}":{"patch":{"operationId":"invoices_void_v1","summary":"Void","description":"Voids a draft or approved invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceVoidReq) -> (Invoice1)","tags":["invoices"],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceVoidReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/orders/awb_billing/list/for_coordinator_operators/v1":{"get":{"operationId":"orders_list_awb_billing_for_coordinator_operators_v1","summary":"List AWB billing","description":"Lists completed, unbilled AWBs with delivery account allocations. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrderAwbBillingListRes)","tags":["orders"],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAwbBillingListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/orders/expanded/list/for_coordinator_operators/v1":{"post":{"operationId":"orders_list_expanded_for_coordinator_operators_v1","summary":"Retrieve (via POST) expanded","description":"Lists coordinator orders with billing summaries and optional party-name expansion. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderBillingExpandedListReq) -> (OrderBillingExpandedListRes)","tags":["orders"],"parameters":[{"name":"sort_by","in":"query","description":"Order lifecycle or last delivery completion timestamp used for sorting.","required":false,"schema":{"$ref":"#/components/schemas/OrderBillingSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Full-text search query for order short ID, off-CHRT reference ID, and AWB.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_order_ids","in":"query","description":"Filter by selected order ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_status","in":"query","description":"Filter by one or more order statuses.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OrderStatusEnum1"}}},{"name":"filter_awb_number","in":"query","description":"Filter by an exact order AWB number.","required":false,"schema":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"}},{"name":"filter_shipper_org_id","in":"query","description":"Filter by an on-CHRT shipper organization.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_off_chrt_shipper_org_data_id","in":"query","description":"Filter by an off-CHRT shipper.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_coordinator_shipper_account_ids","in":"query","description":"Filter by one or more coordinator shipper accounts.","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_executor_org_id","in":"query","description":"Filter by an on-CHRT executor organization.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_off_chrt_executor_org_data_id","in":"query","description":"Filter by an off-CHRT executor.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_coordinator_labels","in":"query","description":"Filter by all supplied coordinator labels (exact matches).","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_draft_started_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_draft_started_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_staged_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_staged_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_in_progress_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_in_progress_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_delivery_task_completed_at_timestamp_gte","in":"query","description":"Filter by last delivery completion time, inclusive.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_delivery_task_completed_at_timestamp_lte","in":"query","description":"Filter by last delivery completion time, inclusive.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_cancelled_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_cancelled_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_exception_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_exception_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderBillingExpandedListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderBillingExpandedListReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/orders/rate_sheet_line_items/generate_many/v1":{"post":{"operationId":"orders_generate_rate_sheet_line_items_many_v1","summary":"Generate rate-sheet line items","description":"Regenerates uninvoiced rate-sheet charges per Order, reporting skips and failures. Detach existing charges before regeneration. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (OrderRateSheetLineItemsGenerateManyReq) -> (OrderRateSheetLineItemsGenerateManyRes)","tags":["orders"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRateSheetLineItemsGenerateManyRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRateSheetLineItemsGenerateManyReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/orders/tax_estimates/v1/{order_id}":{"get":{"operationId":"orders_tax_estimates_v1","summary":"Uninvoiced tax estimates","description":"Estimates current taxes for uninvoiced ordinary charges grouped by counterparty, direction, and currency. Returns an empty list when no charges qualify. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[InvoicePreviewRes])","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoicePreviewRes"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/tax_configurations/archive/v1/{tax_configuration_id}":{"post":{"operationId":"taxConfigurations_archive_v1","summary":"Archive","description":"Archives a tax configuration so future resolution falls back to the next applicable scope. Repeated archival is unchanged. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (TaxConfiguration1)","tags":["taxConfigurations"],"parameters":[{"name":"tax_configuration_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxConfiguration1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/tax_configurations/create/v1":{"post":{"operationId":"taxConfigurations_create_v1","summary":"Create","description":"Creates a counterparty tax default or account override. Empty rules mean no tax. | authz: allowed_org_types=[provider], min_org_role=operator | (TaxConfigurationClientCreate1) -> (TaxConfiguration1)","tags":["taxConfigurations"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxConfiguration1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxConfigurationClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/tax_configurations/get/v1/{tax_configuration_id}":{"get":{"operationId":"taxConfigurations_get_v1","summary":"By ID","description":"Retrieves an active or archived tax configuration owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (TaxConfiguration1)","tags":["taxConfigurations"],"parameters":[{"name":"tax_configuration_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxConfiguration1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/tax_configurations/list/v1":{"get":{"operationId":"taxConfigurations_list_v1","summary":"List","description":"Lists owner-scoped tax configurations with counterparty, account, archive, date, sorting, and pagination filters. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (TaxConfigurationListRes)","tags":["taxConfigurations"],"parameters":[{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TaxConfigurationSortByEnum"}},{"name":"sort_order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_counterparty_org_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_counterparty_off_chrt_org_data_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_counterparty_driver_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_shipper_account_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_archived","in":"query","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_created_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxConfigurationListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/tax_configurations/resolve/v1":{"post":{"operationId":"taxConfigurations_resolve_v1","summary":"Retrieve (via POST) resolved taxes","description":"Resolves account taxes or the counterparty default; returns null when neither exists. Empty rules explicitly mean no tax. | authz: allowed_org_types=[provider], min_org_role=operator | (TaxConfigurationResolveReq) -> (TaxConfiguration1 | None)","tags":["taxConfigurations"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TaxConfiguration1"},{"type":"null"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxConfigurationResolveReq"}}}},"security":[{"HTTPBearer":[]}]}},"/billing_new/tax_configurations/update/v1/{tax_configuration_id}":{"patch":{"operationId":"taxConfigurations_update_v1","summary":"Update","description":"Updates an active tax configuration's name or rules. Empty rules explicitly mean no tax. | authz: allowed_org_types=[provider], min_org_role=operator | (TaxConfigurationClientUpdate1) -> (TaxConfiguration1)","tags":["taxConfigurations"],"parameters":[{"name":"tax_configuration_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxConfiguration1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxConfigurationClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/cargo_on_flight_integrations/air_canada/book/v1/{cargo_on_flight_booking_id}":{"post":{"operationId":"airCanada_book_v1","summary":"Book","description":"Books a draft booking on Air Canada with one result and rate of one of its searches, with the user's Air Canada AWB or one Air Canada assigns. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsAirCanadaBookReq) -> (CargoOnFlightBooking1)","tags":["airCanada"],"parameters":[{"name":"cargo_on_flight_booking_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBooking1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightIntegrationsAirCanadaBookReq"}}}},"security":[{"HTTPBearer":[]}]}},"/cargo_on_flight_integrations/air_canada/cancel/v1/{cargo_on_flight_booking_id}":{"post":{"operationId":"airCanada_cancel_v1","summary":"Cancel","description":"Deletes a booking on Air Canada and cancels it: a confirmed or requested one with an AWB, Air Canada's or else the requested one. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsAirCanadaCancelReq) -> (CargoOnFlightBooking1)","tags":["airCanada"],"parameters":[{"name":"cargo_on_flight_booking_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBooking1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightIntegrationsAirCanadaCancelReq"}}}},"security":[{"HTTPBearer":[]}]}},"/cargo_on_flight_integrations/air_canada/search/v1/{cargo_on_flight_booking_id}":{"post":{"operationId":"airCanada_search_v1","summary":"Search","description":"Quotes Air Canada flights with space and rates for a draft booking's cargos on a route and dates, as the chosen Air Canada product or the one its special handling codes imply, and stores the search. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingSearchClientCreate1) -> (CargoOnFlightBookingSearch1)","tags":["airCanada"],"parameters":[{"name":"cargo_on_flight_booking_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBookingSearch1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBookingSearchClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/cargo_on_flight_integrations/cargoai/air_waybills/messages/list/v1":{"get":{"operationId":"cargoai_list_air_waybill_messages_v1","summary":"List air waybill messages","description":"Lists what was sent to CargoAi for an air waybill and every airline answer received for each send. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes)","tags":["cargoai"],"parameters":[{"name":"cargo_on_flight_air_waybill_id","in":"query","description":"The air waybill whose sends are listed.","required":true,"schema":{"type":"string"}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Only sends created at or after this timestamp.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Only sends created at or before this timestamp.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/CargoAiAirWaybillMessageSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/cargo_on_flight_integrations/cargoai/air_waybills/send/v1/{cargo_on_flight_air_waybill_id}":{"post":{"operationId":"cargoai_send_air_waybill_v1","summary":"Send air waybill","description":"Sends an air waybill's FWB and/or the FHL for chosen house air waybills to the airline through CargoAi; the airline answers later. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsCargoAiSendAirWaybillReq) -> (CargoAiAirWaybillMessage1)","tags":["cargoai"],"parameters":[{"name":"cargo_on_flight_air_waybill_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoAiAirWaybillMessage1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq"}}}},"security":[{"HTTPBearer":[]}]}},"/cargo_on_flight_integrations/cargoai/air_waybills/simulate_airline_response/v1/{cargo_on_flight_air_waybill_id}":{"post":{"operationId":"cargoai_simulate_airline_response_v1","summary":"Simulate airline response","description":"For demos and testing: answers a sent FWB and/or the FHLs of chosen house air waybills as the airline would, accepted or rejected, for a demo AWB (prefix 000) whose Mock Airline never answers. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq) -> (CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes)","tags":["cargoai"],"parameters":[{"name":"cargo_on_flight_air_waybill_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq"}}}},"security":[{"HTTPBearer":[]}]}},"/cargo_on_flight_integrations/cargoai/book/v1/{cargo_on_flight_booking_id}":{"post":{"operationId":"cargoai_book_v1","summary":"Book","description":"Books a draft booking on CargoAi with one result and rate of one of its searches, with the user's AWB or one from the airline's stock. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsCargoAiBookReq) -> (CargoOnFlightBooking1)","tags":["cargoai"],"parameters":[{"name":"cargo_on_flight_booking_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBooking1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightIntegrationsCargoAiBookReq"}}}},"security":[{"HTTPBearer":[]}]}},"/cargo_on_flight_integrations/cargoai/cancel/v1/{cargo_on_flight_booking_id}":{"post":{"operationId":"cargoai_cancel_v1","summary":"Cancel","description":"Asks CargoAi to cancel a confirmed booking; it is CANCELLATION_REQUESTED until the airline answers. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsCargoAiCancelReq) -> (CargoOnFlightBooking1)","tags":["cargoai"],"parameters":[{"name":"cargo_on_flight_booking_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBooking1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightIntegrationsCargoAiCancelReq"}}}},"security":[{"HTTPBearer":[]}]}},"/cargo_on_flight_integrations/cargoai/refresh/v1/{cargo_on_flight_booking_id}":{"post":{"operationId":"cargoai_refresh_v1","summary":"Refresh","description":"Asks CargoAi for an active booking's current status and AWB and applies them, e.g. when its book answer was lost. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBooking1)","tags":["cargoai"],"parameters":[{"name":"cargo_on_flight_booking_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBooking1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/cargo_on_flight_integrations/cargoai/search/continue/v1/{cargo_on_flight_booking_search_id}":{"post":{"operationId":"cargoai_search_continue_v1","summary":"Continue search","description":"Collects the remaining CargoAi results of an unfinished search and stores them; a completed search is returned as is. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingSearch1)","tags":["cargoai"],"parameters":[{"name":"cargo_on_flight_booking_search_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBookingSearch1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/cargo_on_flight_integrations/cargoai/search/v1/{cargo_on_flight_booking_id}":{"post":{"operationId":"cargoai_search_v1","summary":"Search","description":"Starts a CargoAi search for flights with space and rates for a draft booking's cargos on a route and date, as the chosen CargoAi product or the one its special handling codes imply, and stores it. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingSearchClientCreate1) -> (CargoOnFlightBookingSearch1)","tags":["cargoai"],"parameters":[{"name":"cargo_on_flight_booking_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBookingSearch1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBookingSearchClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/charlie/start/v1":{"post":{"operationId":"charlie_start_v1","summary":"Start Charlie call","description":"Creates a voice call room with Charlie, CHRT's voice assistant, acting as the caller and returns a token to join it. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (CharlieStartReq) -> (CharlieStartRes)","tags":["charlie"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharlieStartRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharlieStartReq"}}}},"security":[{"HTTPBearer":[]}]}},"/chrt_gpt/v1":{"post":{"operationId":"chrtGpt_post_v1","summary":"Send message","description":"Sends a message to ChrtGPT and streams its reply, starting a new conversation when no conversation_id is given. In the background, retitles the conversation after each of its first 3 turns and updates its summary and order identifiers after every turn. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (ChrtGPTReq) -> (stream[ChrtGPTEvent])","tags":["chrtGpt"],"responses":{"200":{"description":"Successful Response","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/ChrtGPTEvent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGPTReq"}}}},"security":[{"HTTPBearer":[]}]}},"/chrt_gpt/conversations/delete_many/v1":{"delete":{"operationId":"conversations_delete_many_v1","summary":"Delete many","description":"Permanently deletes the caller's ChrtGPT conversations, their history, and the files uploaded into them, skipping IDs that don't exist or aren't the caller's. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (ChrtGPTConversationsDeleteManyReq) -> (ChrtGPTConversationsDeleteManyRes)","tags":["conversations"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGPTConversationsDeleteManyRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGPTConversationsDeleteManyReq"}}}},"security":[{"HTTPBearer":[]}]}},"/chrt_gpt/conversations/list/v1":{"get":{"operationId":"conversations_list_v1","summary":"List","description":"Lists the caller's ChrtGPT conversations, most recently active first by default, with optional search over summaries, titles, and order identifiers. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | () -> (ChrtGPTConversationListRes)","tags":["conversations"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/ChrtGPTConversationSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Full-text search query for conversation summary, title, order short IDs, AWB numbers, or off-CHRT reference IDs.","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGPTConversationListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/chrt_gpt/conversations/update_title/v1/{conversation_id}":{"patch":{"operationId":"conversations_update_title_v1","summary":"Update title","description":"Renames one of the caller's ChrtGPT conversations; ChrtGPT never retitles it after that. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (ChrtGPTConversationsUpdateTitleReq) -> (ChrtGPTConversation1)","tags":["conversations"],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGPTConversation1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGPTConversationsUpdateTitleReq"}}}},"security":[{"HTTPBearer":[]}]}},"/chrt_gpt/conversations/v1/{conversation_id}":{"get":{"operationId":"conversations_get_v1","summary":"Get","description":"Gets one of the caller's ChrtGPT conversations with its history of messages, tool calls, and web searches. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | () -> (ChrtGPTConversationRes)","tags":["conversations"],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGPTConversationRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/chrt_gpt/conversations/s3_objects/add/v1/{conversation_id}":{"post":{"operationId":"s3Objects_add_v1","summary":"Add S3 object","description":"Uploads an image, PDF, document, presentation, spreadsheet, or audio file into one of the caller's ChrtGPT conversations, creating it if needed, once it passes a malware scan, and adds the file's description to the conversation for ChrtGPT's next reply. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (UploadFile) -> (ChrtGPTConversationS3ObjectMetadata1)","tags":["s3Objects"],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGPTConversationS3ObjectMetadata1"}}}},"403":{"description":"Access denied by authorization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}}}},"404":{"description":"File missing from storage (FILE_NOT_FOUND), or a related resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post__chrt_gpt_conversations_s3_objects_add_v1RequestNotFoundError"}}}},"422":{"description":"Malware detected (FILE_MALWARE_DETECTED), file could not be scanned (FILE_SCAN_UNSUPPORTED), or request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post__chrt_gpt_conversations_s3_objects_add_v1RequestUnprocessableEntityError"}}}},"423":{"description":"No malware scan result is available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}},"502":{"description":"OpenAI couldn't read the file.","content":{"application/json":{"schema":{"description":"Any type"}}}},"503":{"description":"Malware scan result or file download is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"security":[{"HTTPBearer":[]}]}},"/chrt_gpt/conversations/s3_objects/s3_object_metadata/v1/{conversation_s3_object_metadata_id}":{"get":{"operationId":"s3Objects_get_s3_object_metadata_v1","summary":"Get S3 object metadata","description":"Gets a file the caller uploaded into one of their ChrtGPT conversations: what it is, its description, and its preview. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | () -> (ChrtGPTConversationS3ObjectMetadata1)","tags":["s3Objects"],"parameters":[{"name":"conversation_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGPTConversationS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/chrt_gpt/conversations/s3_objects/v1/{conversation_s3_object_metadata_id}":{"get":{"operationId":"s3Objects_get_v1","summary":"Get S3 object","description":"Streams a file the caller uploaded into one of their ChrtGPT conversations. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | () -> (binary)","tags":["s3Objects"],"parameters":[{"name":"conversation_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Binary file content","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"Access denied by authorization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}}}},"404":{"description":"File missing from storage (FILE_NOT_FOUND), or a related resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__chrt_gpt_conversations_s3_objects_v1RequestNotFoundError"}}}},"422":{"description":"Malware detected (FILE_MALWARE_DETECTED), file could not be scanned (FILE_SCAN_UNSUPPORTED), or request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__chrt_gpt_conversations_s3_objects_v1RequestUnprocessableEntityError"}}}},"423":{"description":"No malware scan result is available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}},"503":{"description":"Malware scan result or file download is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/chrt_gpt/dictation/start/v1":{"post":{"operationId":"dictation_start_v1","summary":"Start dictation","description":"Starts a live dictation room whose agent transcribes the caller's speech as they talk, and returns a token to join it. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | () -> (ChrtGPTDictationStartRes)","tags":["dictation"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChrtGPTDictationStartRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/flights/connections/search/v1":{"post":{"operationId":"flights_search_connections_v1","summary":"Search connections","description":"Searches Cirium for cargo flight connections between two airports, anchored on a departure or arrival time, ordered by earliest final arrival with unknown arrivals last. | (FlightConnectionsSearchReq) -> (FlightConnectionsSearchRes)","tags":["flights"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlightConnectionsSearchRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlightConnectionsSearchReq"}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/air_waybills/confirmations/v1/{task_group_id}":{"get":{"operationId":"airWaybills_confirmations_v1","summary":"Retrieve CHAMP confirmation receipts","description":"Retrieves all CHAMP confirmation receipts linked to the air waybill for a task group. | () -> (list[ChampConfirmationReceipt1])","tags":["airWaybills"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChampConfirmationReceipt1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/air_waybills/create/v1":{"post":{"operationId":"airWaybills_create_v1","summary":"Create air waybill","description":"Creates a CHAMP air waybill pre-populated from the stored WebCargo booking record. The booking must be synced first via the webcargo_bookings sync route. Returns 409 if an air waybill already exists for this task group. | (AirWaybillCreateReq) -> (ChampAirWaybill1)","tags":["airWaybills"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChampAirWaybill1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AirWaybillCreateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/air_waybills/flight_statuses/v1/{task_group_id}":{"get":{"operationId":"airWaybills_flight_statuses_v1","summary":"Retrieve CHAMP flight status updates","description":"Retrieves all CHAMP flight status updates linked to the air waybill for a task group. | () -> (list[ChampFlightStatus1])","tags":["airWaybills"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChampFlightStatus1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/air_waybills/pdf/v1/{task_group_id}":{"post":{"operationId":"airWaybills_pdf_v1","summary":"Convert air waybill to PDF","description":"Converts a CHAMP air waybill to PDF via CHAMP's conversion API. Requires shipper, consignee, and charge_declarations to be filled in. Returns the PDF file as application/pdf. | () -> (PDF binary)","tags":["airWaybills"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"description":"Any type"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/air_waybills/retrieve/v1/{task_group_id}":{"get":{"operationId":"airWaybills_retrieve_v1","summary":"Retrieve air waybill","description":"Retrieves the stored CHAMP air waybill for a task group. | () -> (ChampAirWaybill1)","tags":["airWaybills"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChampAirWaybill1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/air_waybills/submit/v1/{task_group_id}":{"post":{"operationId":"airWaybills_submit_v1","summary":"Submit air waybill to CHAMP","description":"Submits a draft CHAMP air waybill to Traxon cargoHUB. Requires shipper, consignee, and charge_declarations to be filled in. Returns 422 if the AWB is not in draft status or required fields are missing. | () -> (ChampAirWaybill1)","tags":["airWaybills"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChampAirWaybill1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/air_waybills/update/v1/{task_group_id}":{"patch":{"operationId":"airWaybills_update_v1","summary":"Update air waybill fields","description":"Updates fields on an existing CHAMP air waybill. Any editable field can be set — only fields included in the request body are changed. | (ChampAirWaybillClientUpdate1) -> (ChampAirWaybill1)","tags":["airWaybills"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChampAirWaybill1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChampAirWaybillClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/cargoai_track_and_trace/subscribe/v1":{"post":{"operationId":"cargoaiTrackAndTrace_subscribe_v1","summary":"Subscribe","description":"Starts CargoAi Track & Trace URL + e-mail updates for an AWB (which must already be recorded on a flight leg). Idempotent: re-subscribing a still-live AWB returns the existing subscription without calling CargoAi again. | authz: order participant operator | (CargoAiTrackAndTraceSubscribeReq) -> (CargoAiTrackAndTraceSubscription1)","tags":["cargoaiTrackAndTrace"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoAiTrackAndTraceSubscription1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoAiTrackAndTraceSubscribeReq"}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/cargoai_track_and_trace/subscription/v1/{awb}":{"get":{"operationId":"cargoaiTrackAndTrace_subscription_v1","summary":"Retrieve subscription","description":"Retrieves the stored CargoAi tracking subscription for an AWB. | authz: order participant | () -> (CargoAiTrackAndTraceSubscription1)","tags":["cargoaiTrackAndTrace"],"parameters":[{"name":"awb","in":"path","description":"IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'.","required":true,"schema":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoAiTrackAndTraceSubscription1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/cargoai_track_and_trace/subscriptions/by_task_group/v1/{task_group_id}":{"get":{"operationId":"cargoaiTrackAndTrace_subscriptions_by_task_group_v1","summary":"List subscriptions by task group","description":"Lists CargoAi tracking subscriptions for the AWBs recorded on a task group. | authz: order participant | () -> (list[CargoAiTrackAndTraceSubscription1])","tags":["cargoaiTrackAndTrace"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiTrackAndTraceSubscription1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/cargoai_track_and_trace/updates/v1/{awb}":{"get":{"operationId":"cargoaiTrackAndTrace_updates_v1","summary":"Retrieve updates","description":"Retrieves stored CargoAi tracking updates for an AWB, latest first (the first item is the current state). | authz: order participant | () -> (list[CargoAiTrackAndTraceUpdate1])","tags":["cargoaiTrackAndTrace"],"parameters":[{"name":"awb","in":"path","description":"IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'.","required":true,"schema":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiTrackAndTraceUpdate1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/webcargo_bookings/retrieve/v1/{task_group_id}":{"get":{"operationId":"webcargoBookings_retrieve_v1","summary":"Retrieve booking record","description":"Retrieves the stored WebCargo booking record for a task group. Returns 404 if the booking has never been synced. | () -> (WebcargoBookingRecord1)","tags":["webcargoBookings"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebcargoBookingRecord1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/webcargo_bookings/sync/v1/{task_group_id}":{"post":{"operationId":"webcargoBookings_sync_v1","summary":"Sync booking record from WebCargo","description":"Fetches the latest booking record from WebCargo for a task group and upserts it in the database. Creates the record on first call, updates on subsequent calls. | () -> (WebcargoBookingRecord1)","tags":["webcargoBookings"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebcargoBookingRecord1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/webcargo_embed/get_embed/v1/{task_group_id}":{"post":{"operationId":"webcargoEmbed_get_embed_v1","summary":"Get WebCargo embed token","description":"Generates a WebCargo Sky Embed token for a FLIGHT task group. Assembles cargo data from the task group's tasks and returns an embed URL for the booking widget. | (GetWebcargoEmbedReq) -> (WebcargoEmbedResponse)","tags":["webcargoEmbed"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebcargoEmbedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWebcargoEmbedReq"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/bid_threads/accept/v1/{bid_thread_id}":{"post":{"operationId":"bidThreads_accept_v1","summary":"Accept bid","description":"Accepts an offer; lister acceptance awards immediately, while bidder acceptance follows the listing's auto-award setting. | authz: allowed_org_types=[provider], min_org_role=member; lister min_org_role=operator | (BidAppendReq) -> (bool)","tags":["bidThreads"],"parameters":[{"name":"bid_thread_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidAppendReq"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/bid_threads/by_id/v1/{bid_thread_id}":{"get":{"operationId":"bidThreads_by_id_v1","summary":"By id","description":"Fetches a bid thread by id. Visible to the lister, the bidder org (provider), and the bidder driver. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (BidThread1)","tags":["bidThreads"],"parameters":[{"name":"bid_thread_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidThread1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/bid_threads/confirm_accept/v1/{bid_thread_id}":{"post":{"operationId":"bidThreads_confirm_accept_v1","summary":"Confirm accept","description":"Confirms a pending bidder acceptance and awards at its recorded price. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["bidThreads"],"parameters":[{"name":"bid_thread_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/bid_threads/counter/v1/{bid_thread_id}":{"post":{"operationId":"bidThreads_counter_v1","summary":"Counter bid","description":"Adds a counteroffer to an open negotiation. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)","tags":["bidThreads"],"parameters":[{"name":"bid_thread_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidAppendReq"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/bid_threads/create/v1":{"post":{"operationId":"bidThreads_create_v1","summary":"Create thread","description":"Opens a bid thread with an offer, acceptance, or denial. | authz: allowed_org_types=[provider], min_org_role=member | (BidThreadClientCreate1) -> (PydanticObjectId)","tags":["bidThreads"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidThreadClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/bid_threads/deny/v1/{bid_thread_id}":{"post":{"operationId":"bidThreads_deny_v1","summary":"Deny bid","description":"Declines an open negotiation and closes its thread. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)","tags":["bidThreads"],"parameters":[{"name":"bid_thread_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidAppendReq"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/bid_threads/list_for_bidder/v1":{"get":{"operationId":"bidThreads_list_for_bidder_v1","summary":"List for bidder","description":"Lists bid threads where the caller is the bidder — either as the bidder org (operator+) or as the bidder driver (driver). Filtering, sorting, and pagination supported. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (BidThreadListRes)","tags":["bidThreads"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/BidThreadSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_status","in":"query","description":"Filter by thread status(es). Multi-select.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/BidThreadStatusEnum"}}},{"name":"filter_listing_id","in":"query","description":"Filter to threads on this listing. Lister route ignores this field (path param wins); bidder route uses it to slice within the caller's bidder universe.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_bidder_provider_org_id","in":"query","description":"Filter to threads where the bidder is this provider org. Useful on lister views to slice by bidder.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_bidder_driver_id","in":"query","description":"Filter to threads where the bidder is this driver. Useful on lister views to slice by driver bidder.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_status_changed_at_timestamp_gte","in":"query","description":"Filter status_changed_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_status_changed_at_timestamp_lte","in":"query","description":"Filter status_changed_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidThreadListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/bid_threads/list_for_listing/v1/{listing_id}":{"get":{"operationId":"bidThreads_list_for_listing_v1","summary":"List for listing (lister)","description":"Lists bid threads with bidder driver/provider profiles, filtering, sorting, and pagination for the listing's owner. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (BidThreadForListingListRes)","tags":["bidThreads"],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/BidThreadSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_status","in":"query","description":"Filter by thread status(es). Multi-select.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/BidThreadStatusEnum"}}},{"name":"filter_listing_id","in":"query","description":"Filter to threads on this listing. Lister route ignores this field (path param wins); bidder route uses it to slice within the caller's bidder universe.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_bidder_provider_org_id","in":"query","description":"Filter to threads where the bidder is this provider org. Useful on lister views to slice by bidder.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_bidder_driver_id","in":"query","description":"Filter to threads where the bidder is this driver. Useful on lister views to slice by driver bidder.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_status_changed_at_timestamp_gte","in":"query","description":"Filter status_changed_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_status_changed_at_timestamp_lte","in":"query","description":"Filter status_changed_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidThreadForListingListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/bid_threads/withdraw/v1/{bid_thread_id}":{"post":{"operationId":"bidThreads_withdraw_v1","summary":"Withdraw bid","description":"Withdraws the bidder's offer and closes its thread. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)","tags":["bidThreads"],"parameters":[{"name":"bid_thread_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidAppendReq"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/driver_bidding_groups/add_member/v1/{group_id}/{driver_id}":{"post":{"operationId":"driverBiddingGroups_add_member_v1","summary":"Add member","description":"Adds a driver to a bidding group. Driver must be part of the caller's org. Duplicate adds are idempotent ($addToSet). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["driverBiddingGroups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/driver_bidding_groups/by_id/v1/{group_id}":{"get":{"operationId":"driverBiddingGroups_by_id_v1","summary":"By id","description":"Fetches a driver bidding group by id. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (DriverBiddingGroup1)","tags":["driverBiddingGroups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverBiddingGroup1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/driver_bidding_groups/create/v1":{"post":{"operationId":"driverBiddingGroups_create_v1","summary":"Create","description":"Creates a driver bidding group owned by the caller's org. The group starts empty — add drivers via /add_member. | authz: allowed_org_types=[provider], min_org_role=operator | (DriverBiddingGroupClientCreate1) -> (PydanticObjectId)","tags":["driverBiddingGroups"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverBiddingGroupClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/driver_bidding_groups/delete/v1/{group_id}":{"delete":{"operationId":"driverBiddingGroups_delete_v1","summary":"Delete","description":"Hard-deletes a driver bidding group. Live Listings that reference this group as a source are unaffected — they hold their own snapshotted `participant_driver_ids`. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["driverBiddingGroups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/driver_bidding_groups/list_by_org/v1":{"get":{"operationId":"driverBiddingGroups_list_by_org_v1","summary":"List by org","description":"Lists driver bidding groups owned by the caller's org with filtering, sorting, pagination, and member driver profiles. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (DriverBiddingGroupListRes)","tags":["driverBiddingGroups"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/DriverBiddingGroupSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_created_by_user_id","in":"query","description":"Filter by the operator who created the group.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_driver_id","in":"query","description":"Filter to groups that contain this Driver as a member.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_gte","in":"query","description":"Filter last_edited_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_lte","in":"query","description":"Filter last_edited_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverBiddingGroupListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/driver_bidding_groups/remove_member/v1/{group_id}/{driver_id}":{"delete":{"operationId":"driverBiddingGroups_remove_member_v1","summary":"Remove member","description":"Removes a driver from a bidding group. No-op if the driver is not a member. Live Listings retain their snapshotted members. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["driverBiddingGroups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/driver_bidding_groups/update_name/v1/{group_id}":{"patch":{"operationId":"driverBiddingGroups_update_name_v1","summary":"Update name","description":"Updates the name of a driver bidding group. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["driverBiddingGroups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"group_name","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/add_driver_participants/v1/{listing_id}":{"post":{"operationId":"listings_add_driver_participants_v1","summary":"Add driver participants","description":"Expands the audience of an OPEN DRIVERS listing. Ad-hoc driver picks are unioned with expanded driver bidding groups, then `$addToSet` onto the listing. Rejected for PROVIDERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingAddDriverParticipantsReq) -> (bool)","tags":["listings"],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingAddDriverParticipantsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/add_provider_participants/v1/{listing_id}":{"post":{"operationId":"listings_add_provider_participants_v1","summary":"Add provider participants","description":"Expands the audience of an OPEN PROVIDERS listing. Ad-hoc provider picks are unioned with expanded org bidding groups, then `$addToSet` onto the listing. Rejected for DRIVERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingAddProviderParticipantsReq) -> (bool)","tags":["listings"],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingAddProviderParticipantsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/by_id/v1/{listing_id}":{"get":{"operationId":"listings_by_id_v1","summary":"By id","description":"Fetches a listing by id in the bidder-facing shape with tasks and mileage. Visible to the lister and to snapshot participants (as bidder — provider org or driver). Listers wanting the full record call `by_id_for_lister/v1`. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidder1)","tags":["listings"],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingForBidder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/by_id_for_lister/v1/{listing_id}":{"get":{"operationId":"listings_by_id_for_lister_v1","summary":"By id (lister)","description":"Fetches the full listing record (including `internal_notes`). Restricted to the lister org — bidders use `by_id/v1`. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Listing1)","tags":["listings"],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Listing1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/by_task_group/v1/{task_group_id}":{"get":{"operationId":"listings_by_task_group_v1","summary":"By task group","description":"Fetches all listings for a single task group. Typically returns one or two (dual-audience siblings) OPEN listings during active bidding plus any terminal history. Visible only to the task group's coordinator. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[Listing1])","tags":["listings"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Listing1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/cancel/v1/{listing_id}":{"put":{"operationId":"listings_cancel_v1","summary":"Cancel","description":"Cancels an OPEN listing. All OPEN BidThreads on this listing are system-rejected. No shipping side-effects. Idempotent: no-op on an already-terminal listing. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["listings"],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/create/v1":{"post":{"operationId":"listings_create_v1","summary":"Create","description":"Creates a Listing for a TaskGroup that the caller's org coordinates. Snapshots participants by unioning ad-hoc picks with expanded bidding groups. When `auto_open_priced_bid_threads` is True, also auto-opens one BidThread per resolved participant with a lister-side seed Bid carrying default-rate-sheet-derived pricing (falling back to the listing's `pro_forma_line_items` when no rate sheet is configured for a participant) — listing insert and thread inserts are atomic. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingClientCreate1) -> (PydanticObjectId)","tags":["listings"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/list_by_org/v1":{"get":{"operationId":"listings_list_by_org_v1","summary":"List by org (lister)","description":"Lists listings owned (created) by the caller's org with filtering, sorting, and pagination. Lister view. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ListingListRes)","tags":["listings"],"parameters":[{"name":"filter_audience","in":"query","description":"Filter to a single audience (PROVIDERS or DRIVERS). Lister-only — bidder routes hardcode audience.","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/ListingAudienceEnum"},{"type":"null"}]}},{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/ListingSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_status","in":"query","description":"Filter by listing status(es). Multi-select.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ListingStatusEnum"}}},{"name":"filter_type","in":"query","description":"Filter by listing type(s). Multi-select.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ListingTypeEnum"}}},{"name":"filter_task_group_id","in":"query","description":"Filter to listings for this task group.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_order_id","in":"query","description":"Filter to listings on this order.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_by_org_id","in":"query","description":"Filter to listings created by this provider org (lister). Mostly useful on bidder views to slice by lister.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_by_user_id","in":"query","description":"Filter to listings created by this operator (audit).","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_gte","in":"query","description":"Filter last_edited_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_lte","in":"query","description":"Filter last_edited_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/list_for_driver_bidder/v1":{"get":{"operationId":"listings_list_for_driver_bidder_v1","summary":"List for driver bidder","description":"Lists DRIVERS-audience listings where the caller (resolved to a Driver of their org) is a snapshot participant. Driver-side bidder view with filtering, sorting, and pagination. Returns the bidder shape with tasks and mileage (no `internal_notes`). | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidderListRes)","tags":["listings"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/ListingSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_status","in":"query","description":"Filter by listing status(es). Multi-select.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ListingStatusEnum"}}},{"name":"filter_type","in":"query","description":"Filter by listing type(s). Multi-select.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ListingTypeEnum"}}},{"name":"filter_task_group_id","in":"query","description":"Filter to listings for this task group.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_order_id","in":"query","description":"Filter to listings on this order.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_by_org_id","in":"query","description":"Filter to listings created by this provider org (lister). Mostly useful on bidder views to slice by lister.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_by_user_id","in":"query","description":"Filter to listings created by this operator (audit).","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_gte","in":"query","description":"Filter last_edited_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_lte","in":"query","description":"Filter last_edited_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingForBidderListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/list_for_provider_bidder/v1":{"get":{"operationId":"listings_list_for_provider_bidder_v1","summary":"List for provider bidder","description":"Lists PROVIDERS-audience listings where the caller's org is a snapshot participant. Provider-side bidder view with filtering, sorting, and pagination. Returns the bidder shape with tasks and mileage (no `internal_notes`). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ListingForBidderListRes)","tags":["listings"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/ListingSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_status","in":"query","description":"Filter by listing status(es). Multi-select.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ListingStatusEnum"}}},{"name":"filter_type","in":"query","description":"Filter by listing type(s). Multi-select.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ListingTypeEnum"}}},{"name":"filter_task_group_id","in":"query","description":"Filter to listings for this task group.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_order_id","in":"query","description":"Filter to listings on this order.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_by_org_id","in":"query","description":"Filter to listings created by this provider org (lister). Mostly useful on bidder views to slice by lister.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_by_user_id","in":"query","description":"Filter to listings created by this operator (audit).","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_gte","in":"query","description":"Filter last_edited_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_lte","in":"query","description":"Filter last_edited_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingForBidderListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/remove_driver_participants/v1/{listing_id}":{"delete":{"operationId":"listings_remove_driver_participants_v1","summary":"Remove driver participants","description":"Narrows the audience of an OPEN DRIVERS listing. Rejected for any driver with a live (OPEN) BidThread. Rejected for PROVIDERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingRemoveDriverParticipantsReq) -> (bool)","tags":["listings"],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingRemoveDriverParticipantsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/remove_provider_participants/v1/{listing_id}":{"delete":{"operationId":"listings_remove_provider_participants_v1","summary":"Remove provider participants","description":"Narrows the audience of an OPEN PROVIDERS listing. Rejected for any participant with a live (OPEN) BidThread. Rejected for DRIVERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingRemoveProviderParticipantsReq) -> (bool)","tags":["listings"],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingRemoveProviderParticipantsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/listings/update/v1/{listing_id}":{"patch":{"operationId":"listings_update_v1","summary":"Update","description":"Partial update of a Listing. Allowed only while `status == OPEN`. Audience participant lists are NOT editable here — use add_participants / remove_participants. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingClientUpdate1) -> (bool)","tags":["listings"],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/org_bidding_groups/add_provider_member/v1/{group_id}/{provider_org_id}":{"post":{"operationId":"orgBiddingGroups_add_provider_member_v1","summary":"Add provider member","description":"Adds an on-chrt provider org to a bidding group. The provider must have a live provider -> provider connection to the caller's org. Duplicate adds are idempotent ($addToSet). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["orgBiddingGroups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/org_bidding_groups/by_id/v1/{group_id}":{"get":{"operationId":"orgBiddingGroups_by_id_v1","summary":"By id","description":"Fetches an org bidding group by id. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrgBiddingGroup1)","tags":["orgBiddingGroups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgBiddingGroup1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/org_bidding_groups/create/v1":{"post":{"operationId":"orgBiddingGroups_create_v1","summary":"Create","description":"Creates an org bidding group owned by the caller's org. The group starts empty — add members via /add_provider_member. | authz: allowed_org_types=[provider], min_org_role=operator | (OrgBiddingGroupClientCreate1) -> (PydanticObjectId)","tags":["orgBiddingGroups"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgBiddingGroupClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/listing/org_bidding_groups/delete/v1/{group_id}":{"delete":{"operationId":"orgBiddingGroups_delete_v1","summary":"Delete","description":"Hard-deletes an org bidding group. Live Listings that used this group as a source are unaffected — they hold their own snapshotted `participant_provider_org_ids`. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["orgBiddingGroups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/org_bidding_groups/list_by_org/v1":{"get":{"operationId":"orgBiddingGroups_list_by_org_v1","summary":"List by org","description":"Lists org bidding groups owned by the caller's org with filtering, sorting, pagination, and member organization public data. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrgBiddingGroupListRes)","tags":["orgBiddingGroups"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/OrgBiddingGroupSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_created_by_user_id","in":"query","description":"Filter by the operator who created the group.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_provider_org_id","in":"query","description":"Filter to groups that contain this provider org as a member.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_gte","in":"query","description":"Filter last_edited_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_lte","in":"query","description":"Filter last_edited_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgBiddingGroupListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/org_bidding_groups/remove_provider_member/v1/{group_id}/{provider_org_id}":{"delete":{"operationId":"orgBiddingGroups_remove_provider_member_v1","summary":"Remove provider member","description":"Removes an on-chrt provider org from a bidding group. No-op if not a member. Live Listings retain their snapshotted members. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["orgBiddingGroups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/listing/org_bidding_groups/update_name/v1/{group_id}":{"patch":{"operationId":"orgBiddingGroups_update_name_v1","summary":"Update name","description":"Updates the name of an org bidding group. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["orgBiddingGroups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"group_name","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/ad_hoc/create/v1/{order_id}":{"post":{"operationId":"adHoc_create_v1","summary":"Create","description":"Creates or returns an existing ad-hoc notification intent for an order. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)","tags":["adHoc"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationIntentAdHocClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/ad_hoc/create_for_session/v1/{session_id}":{"post":{"operationId":"adHoc_create_for_session_v1","summary":"Create for session","description":"Creates a new ad-hoc notification intent for a tracking session. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)","tags":["adHoc"],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationIntentAdHocClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/ad_hoc/delete/v1/{ad_hoc_id}":{"delete":{"operationId":"adHoc_delete_v1","summary":"Delete","description":"Deletes an ad-hoc notification intent. | authz: min_org_role=operator | () -> (bool)","tags":["adHoc"],"parameters":[{"name":"ad_hoc_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/ad_hoc/list_by_order_id/v1/{order_id}":{"get":{"operationId":"adHoc_list_by_order_id_v1","summary":"List by order","description":"Lists all ad-hoc notification intents for an order. | authz: min_org_role=operator | () -> (NotificationAdHocListRes)","tags":["adHoc"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationAdHocListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/ad_hoc/list_by_session_id/v1/{session_id}":{"get":{"operationId":"adHoc_list_by_session_id_v1","summary":"List by session","description":"Lists all ad-hoc notification intents for a tracking session. | authz: min_org_role=operator | () -> (NotificationAdHocListRes)","tags":["adHoc"],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationAdHocListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/add_event/v1/{group_id}/{channel}/{event}":{"post":{"operationId":"groups_add_event_v1","summary":"Add event","description":"Adds a notification event to a channel for a group. | authz: min_org_role=administrator | () -> (bool)","tags":["groups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"channel","in":"path","required":true,"schema":{"$ref":"#/components/schemas/NotificationChannelsEnum"}},{"name":"event","in":"path","required":true,"schema":{"$ref":"#/components/schemas/NotificationEventsForOrgsEnum"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/add_user/v1/{group_id}/{user_id}":{"post":{"operationId":"groups_add_user_v1","summary":"Add user","description":"Adds a user to a notification group. | authz: min_org_role=administrator | () -> (bool)","tags":["groups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"user_id","in":"path","description":"Must be a string starting with `user_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/create/v1":{"post":{"operationId":"groups_create_v1","summary":"Create","description":"Creates a new notification group for the organization. | authz: min_org_role=administrator | (NotificationGroupClientCreate1) -> (PydanticObjectId)","tags":["groups"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationGroupClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/delete/v1/{group_id}":{"delete":{"operationId":"groups_delete_v1","summary":"Delete","description":"Deletes a notification group. | authz: min_org_role=administrator | () -> (bool)","tags":["groups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/get_for_administrator/v1/{group_id}":{"get":{"operationId":"groups_get_for_administrator_v1","summary":"Get for administrator","description":"Retrieves full notification group details including user membership. | authz: min_org_role=operator | () -> (NotificationGroup1)","tags":["groups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationGroup1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/get_for_member/v1/{group_id}":{"get":{"operationId":"groups_get_for_member_v1","summary":"Get for member","description":"Retrieves limited notification group details for a group the caller is a member of. | () -> (NotificationGroupLimitedForDriver1)","tags":["groups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationGroupLimitedForDriver1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/list_by_org/v1":{"get":{"operationId":"groups_list_by_org_v1","summary":"List by org","description":"Lists all notification groups for the caller's organization. | authz: min_org_role=operator | () -> (NotificationGroupListRes)","tags":["groups"],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationGroupListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/list_by_user/v1":{"get":{"operationId":"groups_list_by_user_v1","summary":"List by user","description":"Lists notification groups the caller is a member of. | () -> (NotificationGroupUserListRes)","tags":["groups"],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationGroupUserListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/remove_event/v1/{group_id}/{channel}/{event}":{"delete":{"operationId":"groups_remove_event_v1","summary":"Remove event","description":"Removes a notification event from a channel for a group. | authz: min_org_role=administrator | () -> (bool)","tags":["groups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"channel","in":"path","required":true,"schema":{"$ref":"#/components/schemas/NotificationChannelsEnum"}},{"name":"event","in":"path","required":true,"schema":{"$ref":"#/components/schemas/NotificationEventsForOrgsEnum"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/remove_user/v1/{group_id}/{user_id}":{"delete":{"operationId":"groups_remove_user_v1","summary":"Remove user","description":"Removes a user from a notification group. | authz: min_org_role=administrator | () -> (bool)","tags":["groups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"user_id","in":"path","description":"Must be a string starting with `user_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/update_name/v1/{group_id}":{"patch":{"operationId":"groups_update_name_v1","summary":"Update name","description":"Updates the name of a notification group. | authz: min_org_role=administrator | () -> (bool)","tags":["groups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"group_name","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/user_opt_in/v1/{group_id}":{"post":{"operationId":"groups_user_opt_in_v1","summary":"User opt in","description":"Opts the caller back into notifications for a group they were opted out of. | () -> (bool)","tags":["groups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/groups/user_opt_out/v1/{group_id}":{"post":{"operationId":"groups_user_opt_out_v1","summary":"User opt out","description":"Opts the caller out of notifications for a group. | () -> (bool)","tags":["groups"],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/previews/get/v1":{"get":{"operationId":"previews_get_v1","summary":"Get","description":"Gets a shipping notification's email, SMS, and push as one audience receives them for a sample order. | () -> (NotificationPreviewRes)","tags":["previews"],"parameters":[{"name":"event","in":"query","required":true,"schema":{"$ref":"#/components/schemas/NotificationEventsForOrgsEnum"}},{"name":"audience","in":"query","required":true,"schema":{"$ref":"#/components/schemas/NotificationPreviewAudienceEnum"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPreviewRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/user_preferences/create/v1":{"post":{"operationId":"userPreferences_create_v1","summary":"Create","description":"Creates a new notification preferences record for the caller. Returns existing preferences if already created. | () -> (NotificationUserPreferences1)","tags":["userPreferences"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationUserPreferences1"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/user_preferences/get/v1":{"get":{"operationId":"userPreferences_get_v1","summary":"Get","description":"Retrieves the caller's notification preferences. | () -> (NotificationUserPreferences1)","tags":["userPreferences"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationUserPreferences1"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/user_preferences/update/v1":{"patch":{"operationId":"userPreferences_update_v1","summary":"Update preferences","description":"Updates notification preferences with explicit events, opt-in, or opt-out operations. | (UserNotificationPreferencesUpdateRequest) -> (NotificationUserPreferences1)","tags":["userPreferences"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationUserPreferences1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotificationPreferencesUpdateRequest"}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/webhook_setup/app_portal_access/v1":{"post":{"operationId":"webhookSetup_app_portal_access_v1","summary":"Portal access","description":"Returns a 1-day magic link URL to access the Svix App Portal. The link contains a one-time token - request a fresh link for each portal session. Admins/owners get full access, operators get read-only. | authz: min_org_role=operator | () -> (WebhookAppPortalAccessRes)","tags":["webhookSetup"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookAppPortalAccessRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/webhook_setup/create_app/v1":{"post":{"operationId":"webhookSetup_create_app_v1","summary":"Create app","description":"Creates a Svix consumer application for the organization. Each org needs one app, then endpoints can be added and configured via the app portal. Idempotent - returns True if already created. | authz: min_org_role=administrator | () -> (bool)","tags":["webhookSetup"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/webhook_setup/turn_off/v1":{"put":{"operationId":"webhookSetup_turn_off_v1","summary":"Turn off","description":"Disables webhook notifications for the organization. Idempotent. | authz: min_org_role=administrator | () -> (bool)","tags":["webhookSetup"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/webhook_setup/turn_on/v1":{"put":{"operationId":"webhookSetup_turn_on_v1","summary":"Turn on","description":"Enables webhook notifications for the organization. Idempotent. | authz: min_org_role=administrator | () -> (bool)","tags":["webhookSetup"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/departments/add_operator/v1/{department_id}/{user_id}":{"post":{"operationId":"departments_add_operator_v1","summary":"Add operator","description":"Adds an operator to a department. | authz: min_org_role=administrator | () -> (bool)","tags":["departments"],"parameters":[{"name":"department_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"user_id","in":"path","description":"Must be a string starting with `user_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/departments/list/v1":{"get":{"operationId":"departments_list_v1","summary":"List","description":"Lists department configurations for the caller's organization with filtering, sorting, pagination, and Atlas Search. | authz: min_org_role=operator | () -> (DepartmentListRes)","tags":["departments"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/DepartmentSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"search","in":"query","description":"Search name and short_id using Atlas Search","required":false,"schema":{"type":["string","null"]}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_department_ids","in":"query","description":"Filter by selected department ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_department_type","in":"query","description":"Filter by department type(s)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/DepartmentTypeEnum"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepartmentListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/departments/remove_operator/v1/{department_id}/{user_id}":{"delete":{"operationId":"departments_remove_operator_v1","summary":"Remove operator","description":"Removes an operator from a department. | authz: min_org_role=administrator | () -> (bool)","tags":["departments"],"parameters":[{"name":"department_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"user_id","in":"path","description":"Must be a string starting with `user_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/departments/typeahead/v1":{"get":{"operationId":"departments_typeahead_v1","summary":"Typeahead","description":"Returns matching name, short_id values and their IDs within the caller's organization. | authz: min_org_role=operator | () -> (list[DepartmentTypeaheadResult])","tags":["departments"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DepartmentTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/departments/v1":{"post":{"operationId":"departments_create_v1","summary":"Create","description":"Creates a new department configuration for the caller's organization. | authz: min_org_role=administrator | (DepartmentClientCreate1) -> (PydanticObjectId)","tags":["departments"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepartmentClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/departments/v1/{department_id}":{"get":{"operationId":"departments_get_v1","summary":"Get","description":"Retrieves a single department configuration. | authz: min_org_role=operator | () -> (Department1)","tags":["departments"],"parameters":[{"name":"department_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Department1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"operationId":"departments_delete_v1","summary":"Delete","description":"Deletes a department configuration. | authz: min_org_role=administrator | () -> (bool)","tags":["departments"],"parameters":[{"name":"department_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"departments_update_v1","summary":"Update","description":"Updates a department configuration. | authz: min_org_role=administrator | (DepartmentClientUpdate1) -> (bool)","tags":["departments"],"parameters":[{"name":"department_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepartmentClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_task_lists/apply_to_order/v1/{task_list_id}/{order_id}":{"post":{"operationId":"operationsTaskLists_apply_to_order_v1","summary":"Apply to order","description":"Materializes each entry of an OperationsTaskList into an OperationsTask on the Order (status=not_started, source_task_list_id set). Deadlines resolve per-entry from its anchor+offset; initial_deadline_timestamp, if set, pins the first entry and the chain follows. department_id explicitly assigns the materialized tasks; omitted leaves them unassigned. No dedup — applying twice creates duplicate tasks. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (list[PydanticObjectId])","tags":["operationsTaskLists"],"parameters":[{"name":"task_list_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"department_id","in":"query","description":"Department for materialized tasks; omitted leaves them unassigned.","required":false,"schema":{"type":["string","null"]}},{"name":"entry_tag","in":"query","description":"Context tag copied onto every generated task","required":false,"schema":{"type":["string","null"]}},{"name":"initial_deadline_timestamp","in":"query","description":"If set, pins the first entry's deadline; later FROM_PREVIOUS_TASK entries cascade from it.","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_task_lists/archive/v1/{task_list_id}":{"post":{"operationId":"operationsTaskLists_archive_v1","summary":"Archive","description":"Soft-deletes an OperationsTaskList by setting `archived=True`. Tasks already applied to Orders are unaffected. | authz: min_org_role=operator | () -> (bool)","tags":["operationsTaskLists"],"parameters":[{"name":"task_list_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_task_lists/entries/add/v1/{task_list_id}":{"post":{"operationId":"operationsTaskLists_add_entry_v1","summary":"Add entry","description":"Appends a new entry to an OperationsTaskList's `entries` array. The server assigns a fresh UUID and returns it. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (str)","tags":["operationsTaskLists"],"parameters":[{"name":"task_list_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskListEntryClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_task_lists/entries/edit/v1/{task_list_id}/{entry_uuid}":{"patch":{"operationId":"operationsTaskLists_edit_entry_v1","summary":"Edit entry","description":"Replaces the entry with the given uuid in an OperationsTaskList's `entries` array. The stored uuid is preserved regardless of the request body. 404 if no entry matches. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (bool)","tags":["operationsTaskLists"],"parameters":[{"name":"task_list_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"entry_uuid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskListEntryClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_task_lists/entries/remove/v1/{task_list_id}/{entry_uuid}":{"delete":{"operationId":"operationsTaskLists_remove_entry_v1","summary":"Remove entry","description":"Removes the entry with the given uuid from an OperationsTaskList's `entries` array, closing the gap in order. 404 if no entry matches. | authz: min_org_role=operator | () -> (bool)","tags":["operationsTaskLists"],"parameters":[{"name":"task_list_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"entry_uuid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_task_lists/entries/reorder/v1/{task_list_id}":{"post":{"operationId":"operationsTaskLists_reorder_entries_v1","summary":"Reorder entries","description":"Reorders an OperationsTaskList's existing entries. `entry_uuids` must be an exact permutation of the list's current entry uuids (every uuid present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)","tags":["operationsTaskLists"],"parameters":[{"name":"task_list_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskListReorderEntries1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_task_lists/list/v1":{"get":{"operationId":"operationsTaskLists_list_v1","summary":"List","description":"Lists OperationsTaskLists for the caller's organization with filtering, sorting, pagination, and Atlas Search. | authz: min_org_role=operator | () -> (OperationsTaskListListRes)","tags":["operationsTaskLists"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/OperationsTaskListSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"search","in":"query","description":"Search name and description using Atlas Search","required":false,"schema":{"type":["string","null"]}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_operations_task_list_ids","in":"query","description":"Filter by selected operations task list ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_archived","in":"query","description":"Filter by archived flag. None=all, True=archived only, False=unarchived only.","required":false,"schema":{"type":["boolean","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskListListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_task_lists/remove_not_started_tasks_from_order/v1/{task_list_id}/{order_id}":{"post":{"operationId":"operationsTaskLists_remove_not_started_tasks_from_order_v1","summary":"Remove not-started tasks from order","description":"Removes the OperationsTasks this OperationsTaskList added to the Order (matched by source_task_list_id). Only untouched (not_started) tasks are deleted; started/completed/skipped/cancelled tasks are kept. Returns deleted and kept counts. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (OperationsTaskListRemoveFromOrderRes1)","tags":["operationsTaskLists"],"parameters":[{"name":"task_list_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskListRemoveFromOrderRes1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_task_lists/typeahead/v1":{"get":{"operationId":"operationsTaskLists_typeahead_v1","summary":"Typeahead","description":"Returns matching name values and their IDs within the caller's organization. | authz: min_org_role=operator | () -> (list[OperationsTaskListTypeaheadResult])","tags":["operationsTaskLists"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OperationsTaskListTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_task_lists/unarchive/v1/{task_list_id}":{"post":{"operationId":"operationsTaskLists_unarchive_v1","summary":"Unarchive","description":"Restores an archived OperationsTaskList by setting `archived=False`. | authz: min_org_role=operator | () -> (bool)","tags":["operationsTaskLists"],"parameters":[{"name":"task_list_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_task_lists/v1":{"post":{"operationId":"operationsTaskLists_create_v1","summary":"Create","description":"Creates a new OperationsTaskList for the caller's organization. | authz: min_org_role=operator | (OperationsTaskListClientCreate1) -> (PydanticObjectId)","tags":["operationsTaskLists"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskListClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_task_lists/v1/{task_list_id}":{"get":{"operationId":"operationsTaskLists_get_v1","summary":"Get","description":"Retrieves a single OperationsTaskList by id. | authz: min_org_role=operator | () -> (OperationsTaskList1)","tags":["operationsTaskLists"],"parameters":[{"name":"task_list_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskList1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"operationsTaskLists_update_v1","summary":"Update","description":"Updates scalar fields (name, description) on an OperationsTaskList. | authz: min_org_role=operator | (OperationsTaskListClientUpdate1) -> (bool)","tags":["operationsTaskLists"],"parameters":[{"name":"task_list_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskListClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_tasks/add_comment/v1/{task_id}":{"post":{"operationId":"operationsTasks_add_comment_v1","summary":"Add comment","description":"Appends a comment to an OperationsTask's comment thread. Returns the new comment id. | authz: min_org_role=operator | (OperationsTaskAddCommentReq1) -> (str)","tags":["operationsTasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskAddCommentReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_tasks/apply_time_delta_to_deadline_timestamps/v1":{"patch":{"operationId":"operationsTasks_apply_time_delta_to_deadline_timestamps_v1","summary":"Apply deadline delta","description":"Adds the same ISO 8601 duration to every selected OperationsTask's deadline_timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)","tags":["operationsTasks"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTasksDeadlineTimestampsUpdateRes1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_tasks/delete_comment/v1/{task_id}/{comment_id}":{"delete":{"operationId":"operationsTasks_delete_comment_v1","summary":"Delete comment","description":"Deletes a comment from an OperationsTask's comment thread. 404 if the comment isn't found. | authz: min_org_role=operator | () -> (bool)","tags":["operationsTasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_tasks/expanded/list/v1":{"get":{"operationId":"operationsTasks_expanded_list_v1","summary":"List expanded","description":"Lists OperationsTasks with task-list, department, and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)","tags":["operationsTasks"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/OperationsTaskSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Search by title or description","required":false,"schema":{"type":["string","null"]}},{"name":"filter_operations_task_ids","in":"query","description":"Filter by selected operations task ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_order_ids","in":"query","description":"Filter to tasks on any of these order ids (e.g. the order_ids returned by the orders typeahead for a chosen short_id / off-chrt reference id)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_order_short_id","in":"query","description":"Filter to tasks for this order short ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_order_off_chrt_reference_id","in":"query","description":"Filter to tasks for this order off-CHRT reference ID","required":false,"schema":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64}},{"name":"filter_department_ids","in":"query","description":"Filter to tasks routed to any of these departments (desk queues)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_task_type","in":"query","description":"Filter by task type(s). Defaults to all types.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OperationsTaskTypeEnum"}}},{"name":"filter_status","in":"query","description":"Filter by status(es). Defaults to all statuses.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OperationsTaskStatusEnum"}}},{"name":"filter_assigned_user_id","in":"query","description":"Filter to tasks this user is directly assigned to","required":false,"schema":{"type":["string","null"]}},{"name":"filter_source_task_list_id","in":"query","description":"Filter to tasks created from this OperationsTaskList","required":false,"schema":{"type":["string","null"]}},{"name":"filter_entry_tag","in":"query","description":"Filter by exact entry tag (case-sensitive)","required":false,"schema":{"type":["string","null"]}},{"name":"filter_deadline_gte","in":"query","description":"Filter to tasks with deadline >= this timestamp","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_deadline_lte","in":"query","description":"Filter to tasks with deadline <= this timestamp","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskExpandedListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_tasks/list/v1":{"get":{"operationId":"operationsTasks_list_v1","summary":"List","description":"Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / source task list / entry tag / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)","tags":["operationsTasks"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/OperationsTaskSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Search by title or description","required":false,"schema":{"type":["string","null"]}},{"name":"filter_operations_task_ids","in":"query","description":"Filter by selected operations task ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_order_ids","in":"query","description":"Filter to tasks on any of these order ids (e.g. the order_ids returned by the orders typeahead for a chosen short_id / off-chrt reference id)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_order_short_id","in":"query","description":"Filter to tasks for this order short ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_order_off_chrt_reference_id","in":"query","description":"Filter to tasks for this order off-CHRT reference ID","required":false,"schema":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64}},{"name":"filter_department_ids","in":"query","description":"Filter to tasks routed to any of these departments (desk queues)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_task_type","in":"query","description":"Filter by task type(s). Defaults to all types.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OperationsTaskTypeEnum"}}},{"name":"filter_status","in":"query","description":"Filter by status(es). Defaults to all statuses.","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OperationsTaskStatusEnum"}}},{"name":"filter_assigned_user_id","in":"query","description":"Filter to tasks this user is directly assigned to","required":false,"schema":{"type":["string","null"]}},{"name":"filter_source_task_list_id","in":"query","description":"Filter to tasks created from this OperationsTaskList","required":false,"schema":{"type":["string","null"]}},{"name":"filter_entry_tag","in":"query","description":"Filter by exact entry tag (case-sensitive)","required":false,"schema":{"type":["string","null"]}},{"name":"filter_deadline_gte","in":"query","description":"Filter to tasks with deadline >= this timestamp","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_deadline_lte","in":"query","description":"Filter to tasks with deadline <= this timestamp","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_tasks/set_deadline_timestamps/v1":{"patch":{"operationId":"operationsTasks_set_deadline_timestamps_v1","summary":"Set deadlines","description":"Sets each selected OperationsTask's deadline_timestamp to its requested timestamp. Missing or cross-org task ids are skipped and reported through updated_count. | authz: min_org_role=operator | (OperationsTasksSetDeadlineTimestampsReq1) -> (OperationsTasksDeadlineTimestampsUpdateRes1)","tags":["operationsTasks"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTasksDeadlineTimestampsUpdateRes1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTasksSetDeadlineTimestampsReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_tasks/set_status/v1":{"patch":{"operationId":"operationsTasks_set_status_v1","summary":"Set status","description":"Sets the same status on each selected OperationsTask. Completing tasks stamps completed_at/by while other statuses clear them; missing or cross-org ids are skipped. | authz: min_org_role=operator | (OperationsTasksSetStatusReq1) -> (OperationsTasksStatusUpdateRes1)","tags":["operationsTasks"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTasksStatusUpdateRes1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTasksSetStatusReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_tasks/typeahead/v1":{"get":{"operationId":"operationsTasks_typeahead_v1","summary":"Typeahead by entry_tag","description":"Returns distinct entry_tag values matching the query via case-insensitive regex. Searches operations tasks within the caller's organization. | authz: min_org_role=operator | () -> (list[OperationsTaskTypeaheadResult])","tags":["operationsTasks"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OperationsTaskTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_tasks/update_department_many/v1":{"patch":{"operationId":"operationsTasks_update_department_many_v1","summary":"Update department on selected tasks","description":"Assigns or clears one department on selected tasks across orders. Missing and other-org tasks are skipped. | authz: min_org_role=operator | (OperationsTasksUpdateDepartmentManyReq) -> (OperationsTasksUpdateDepartmentManyRes)","tags":["operationsTasks"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTasksUpdateDepartmentManyRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTasksUpdateDepartmentManyReq"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_tasks/v1":{"post":{"operationId":"operationsTasks_create_v1","summary":"Create","description":"Creates a new OperationsTask on an Order where the caller is coordinator or executor. Uses the explicit department_id or leaves the task unassigned. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OperationsTaskClientCreate1) -> (PydanticObjectId)","tags":["operationsTasks"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/operations_tasks/v1/{task_id}":{"get":{"operationId":"operationsTasks_get_v1","summary":"Get","description":"Retrieves a single OperationsTask by id. | authz: min_org_role=operator | () -> (OperationsTask1)","tags":["operationsTasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTask1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"operationId":"operationsTasks_delete_v1","summary":"Delete","description":"Hard-deletes an OperationsTask. | authz: min_org_role=operator | () -> (bool)","tags":["operationsTasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"operationsTasks_update_v1","summary":"Update","description":"Updates editable fields (task_type, title, description, entry_tag, deadline_timestamp, assigned_user_ids, department_id) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)","tags":["operationsTasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsTaskClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/order_internal_messages/add_message/v1/{order_id}":{"post":{"operationId":"orderInternalMessages_add_message_v1","summary":"Add message","description":"Appends a message to the caller's OrderInternalMessages for this order (lazy-creates the messages doc). | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrderInternalMessagesAddMessageReq) -> (bool)","tags":["orderInternalMessages"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderInternalMessagesAddMessageReq"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/order_internal_messages/by_order/v1/{order_id}":{"get":{"operationId":"orderInternalMessages_get_by_order_v1","summary":"Get order internal messages by order","description":"Returns the caller's OrderInternalMessages for this order, or 404 if none exist yet. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (OrderInternalMessages1)","tags":["orderInternalMessages"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderInternalMessages1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/order_internal_messages/delete_message/v1/{order_id}/{message_id}":{"delete":{"operationId":"orderInternalMessages_delete_message_v1","summary":"Delete message","description":"Deletes a message from the caller's OrderInternalMessages for this order. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (bool)","tags":["orderInternalMessages"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/order_internal_messages/mark_read/v1/{order_id}":{"post":{"operationId":"orderInternalMessages_mark_read_v1","summary":"Mark read","description":"Marks the caller's org internal messages on this order as read by the caller up to the given message timestamp; clients should batch calls. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrderInternalMessagesMarkReadReq) -> (OrderInternalMessagesReadState1)","tags":["orderInternalMessages"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderInternalMessagesReadState1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderInternalMessagesMarkReadReq"}}}},"security":[{"HTTPBearer":[]}]}},"/operations/order_internal_messages/read_states/list/v1/{order_id}":{"get":{"operationId":"orderInternalMessages_list_read_states_v1","summary":"List read receipts","description":"Lists each of the caller's org users' read markers on the org's internal messages for this order; a message is seen by a user when their last_read_message_timestamp is at or after it. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (OrderInternalMessagesReadStateListRes)","tags":["orderInternalMessages"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderInternalMessagesReadStateListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/order_internal_messages/threads/list/v1":{"get":{"operationId":"orderInternalMessages_list_threads_v1","summary":"List threads","description":"Lists the caller's org internal message threads across orders, newest message first, each with its last message and the caller's unread count. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrderInternalMessageThreadListRes)","tags":["orderInternalMessages"],"parameters":[{"name":"filter_order_statuses","in":"query","description":"Filter by order status(es); defaults to draft, staged, and in_progress","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OrderStatusEnum1"}}},{"name":"filter_order_ids","in":"query","description":"Filter by order id(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_unread","in":"query","description":"True keeps threads with messages the caller hasn't read; False keeps fully read threads","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_last_message_at_timestamp_gte","in":"query","description":"Filter last message timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_message_at_timestamp_lte","in":"query","description":"Filter last message timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderInternalMessageThreadListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/order_internal_messages/s3_objects/add/v1/{order_id}":{"post":{"operationId":"s3Objects_add_v1_2","summary":"Add S3 object","description":"Uploads a file to the caller's OrderInternalMessages for this order (lazy-creates the messages doc). Retains uploaded files; previews require a clean malware scan. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (UploadFile) -> (OrderInternalMessageS3ObjectMetadata1)","tags":["s3Objects"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderInternalMessageS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"security":[{"HTTPBearer":[]}]}},"/operations/order_internal_messages/s3_objects/delete/v1/{order_internal_message_s3_object_metadata_id}":{"delete":{"operationId":"s3Objects_delete_v1","summary":"Delete S3 object","description":"Deletes an S3 object metadata and the associated S3 object from order internal messages. Only the uploader or an operator from the uploading org can delete. | () -> (bool)","tags":["s3Objects"],"parameters":[{"name":"order_internal_message_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/order_internal_messages/s3_objects/s3_object_metadata/v1/{order_internal_message_s3_object_metadata_id}":{"get":{"operationId":"s3Objects_get_s3_object_metadata_v1_2","summary":"Get S3 object metadata","description":"Retrieves metadata for an order internal messages S3 object. | authz: min_org_role=operator | () -> (OrderInternalMessageS3ObjectMetadata1)","tags":["s3Objects"],"parameters":[{"name":"order_internal_message_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderInternalMessageS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/operations/order_internal_messages/s3_objects/v1/{order_internal_message_s3_object_metadata_id}":{"get":{"operationId":"s3Objects_get_v1_2","summary":"Get S3 object","description":"Streams an order internal messages S3 object file from storage. | authz: min_org_role=operator | () -> (binary)","tags":["s3Objects"],"parameters":[{"name":"order_internal_message_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Binary file content","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"Access denied by authorization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}}}},"404":{"description":"File missing from storage (FILE_NOT_FOUND), or a related resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__order_internal_messages_s3_objects_v1RequestNotFoundError"}}}},"422":{"description":"Malware detected (FILE_MALWARE_DETECTED), file could not be scanned (FILE_SCAN_UNSUPPORTED), or request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__order_internal_messages_s3_objects_v1RequestUnprocessableEntityError"}}}},"423":{"description":"No malware scan result is available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}},"503":{"description":"Malware scan result or file download is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/info/v1":{"get":{"operationId":"orgs_get_info_v1","summary":"Get info","description":"Retrieves basic organization information from the authentication service. | () -> (OrgInfoResponse)","tags":["orgs"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgInfoResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/members/list/v1":{"get":{"operationId":"orgs_list_members_v1","summary":"List members","description":"Lists all members of the caller's organization with their roles and details. Supports search by name, filtering by role and user IDs, sorting, and pagination. | () -> (OrgMemberListRes)","tags":["orgs"],"parameters":[{"name":"filter_role","in":"query","description":"Filter by organization role(s)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OrgRoleEnum"}}},{"name":"filter_user_ids","in":"query","description":"Filter by user ID(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/OrgMemberSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Search by first or last name","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgMemberListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/members/typeahead/v1":{"get":{"operationId":"orgs_typeahead_members_v1","summary":"Typeahead members","description":"Returns matching member names and user IDs within the caller's organization. | () -> (list[OrgMemberTypeaheadResult])","tags":["orgs"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgMemberTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/setup_org/v1":{"post":{"operationId":"orgs_setup_org_v1","summary":"Set up org","description":"Single onboarding entry point. Sets `org_type` in WorkOS JWT metadata (immutable once set) and idempotently creates `org_private_data` + `org_public_data` for the caller's organization. Required `name` and optional `description` and `handle` populate the public doc on first call; later updates go through PATCH /orgs/org_public_data/v1. Returns True on success (including idempotent retries), 400 on org_type conflict or handle collision. | (SetupOrgReq) -> (bool)","tags":["orgs"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupOrgReq"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/stripe_connect_account_id/v1":{"get":{"operationId":"orgs_get_stripe_connect_account_id_v1","summary":"Get Stripe Connect Account ID","description":"Retrieves the Stripe Connect account ID for the caller's organization. Returns 404 if not set. | () -> (str)","tags":["orgs"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/accounts/create/v1":{"post":{"operationId":"accounts_create_v1","summary":"Create","description":"Creates a coordinator-private account with a name unique to its associated shipper. Optional location may be set at creation. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientCreate1) -> (PydanticObjectId)","tags":["accounts"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/accounts/list/v1":{"get":{"operationId":"accounts_list_v1","summary":"List","description":"Lists coordinator-created shipper accounts with association filters, name search, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (AccountListRes)","tags":["accounts"],"parameters":[{"name":"filter_account_ids","in":"query","description":"Filter by selected account ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"search","in":"query","description":"Full-text account name search query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_org_id","in":"query","description":"Filter by associated on-CHRT shipper organization","required":false,"schema":{"type":["string","null"]}},{"name":"filter_off_chrt_org_data_id","in":"query","description":"Filter by associated off-CHRT shipper organization data","required":false,"schema":{"type":["string","null"]}},{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/AccountSortByEnum"},{"type":"null"}]}},{"name":"sort_order","in":"query","description":"Sort order","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/accounts/typeahead/v1":{"get":{"operationId":"accounts_typeahead_v1","summary":"Typeahead accounts","description":"Returns distinct coordinator-created shipper account names matching the query, with matching account IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[AccountTypeaheadResult])","tags":["accounts"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccountTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/accounts/update/v1/{account_id}":{"patch":{"operationId":"accounts_update_v1","summary":"Update","description":"Updates a coordinator-created shipper account name and optional location while preserving per-shipper name uniqueness. | authz: allowed_org_types=[provider], min_org_role=operator | (AccountClientUpdate1) -> (bool)","tags":["accounts"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/accounts/v1/{account_id}":{"get":{"operationId":"accounts_get_v1","summary":"Get by ID","description":"Retrieves a coordinator-created shipper account. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Account1)","tags":["accounts"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/air_waybill_stock_numbers/add/v1":{"post":{"operationId":"airWaybillStockNumbers_add_v1","summary":"Add","description":"Adds AWB numbers an airline gave the caller's organization to its AWB stock, skipping numbers already in it. | authz: min_org_role=operator | (AirWaybillStockNumbersAddReq) -> (AirWaybillStockNumbersAddRes)","tags":["airWaybillStockNumbers"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AirWaybillStockNumbersAddRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AirWaybillStockNumbersAddReq"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/air_waybill_stock_numbers/delete/v1/{air_waybill_stock_number_id}":{"delete":{"operationId":"airWaybillStockNumbers_delete_v1","summary":"Delete","description":"Deletes an available AWB number from the caller's organization's AWB stock, e.g. one added by mistake. | authz: min_org_role=operator | () -> (bool)","tags":["airWaybillStockNumbers"],"parameters":[{"name":"air_waybill_stock_number_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/air_waybill_stock_numbers/list/v1":{"get":{"operationId":"airWaybillStockNumbers_list_v1","summary":"List","description":"Lists the AWB numbers in the caller's organization's AWB stock, by airline prefix and status. | () -> (AirWaybillStockNumberListRes)","tags":["airWaybillStockNumbers"],"parameters":[{"name":"filter_awb_prefix","in":"query","description":"Filter by the airline's 3-digit AWB prefix, e.g. 014.","required":false,"schema":{"type":["string","null"],"pattern":"^\\d{3}$"}},{"name":"filter_status","in":"query","description":"Filter by status(es).","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/AirWaybillStockNumberStatusEnum1"}}},{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/AirWaybillStockNumberSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AirWaybillStockNumberListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/air_waybill_stock_numbers/mark_available/v1":{"post":{"operationId":"airWaybillStockNumbers_mark_available_v1","summary":"Mark available","description":"Marks AWB numbers of the caller's organization's AWB stock as available, whatever their status, taking them off their booking. | authz: min_org_role=operator | (AirWaybillStockNumbersMarkAvailableReq) -> (list[AirWaybillStockNumber1])","tags":["airWaybillStockNumbers"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AirWaybillStockNumber1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AirWaybillStockNumbersMarkAvailableReq"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/air_waybill_stock_numbers/mark_used/v1":{"post":{"operationId":"airWaybillStockNumbers_mark_used_v1","summary":"Mark used","description":"Marks AWB numbers of the caller's organization's AWB stock as used, whatever their status, e.g. booked outside CHRT. | authz: min_org_role=operator | (AirWaybillStockNumbersMarkUsedReq) -> (list[AirWaybillStockNumber1])","tags":["airWaybillStockNumbers"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AirWaybillStockNumber1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AirWaybillStockNumbersMarkUsedReq"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/air_waybill_stock_numbers/summary/v1":{"get":{"operationId":"airWaybillStockNumbers_summary_v1","summary":"Summary","description":"Counts the caller's organization's AWB stock per airline prefix and status. | () -> (list[AirWaybillStockNumbersSummaryRes])","tags":["airWaybillStockNumbers"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AirWaybillStockNumbersSummaryRes"}}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/air_waybill_stock_numbers/void/v1":{"post":{"operationId":"airWaybillStockNumbers_void_v1","summary":"Void","description":"Voids available AWB numbers of the caller's organization's AWB stock, e.g. spoiled or returned to the airline. | authz: min_org_role=operator | (AirWaybillStockNumbersVoidReq) -> (list[AirWaybillStockNumber1])","tags":["airWaybillStockNumbers"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AirWaybillStockNumber1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AirWaybillStockNumbersVoidReq"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/airline_cargo_accounts/archive/v1/{airline_cargo_account_id}":{"post":{"operationId":"airlineCargoAccounts_archive_v1","summary":"Archive","description":"Archives an airline cargo account of the caller's organization so it can no longer be booked under. | authz: min_org_role=admin | () -> (bool)","tags":["airlineCargoAccounts"],"parameters":[{"name":"airline_cargo_account_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/airline_cargo_accounts/list/v1":{"get":{"operationId":"airlineCargoAccounts_list_v1","summary":"List","description":"Lists the caller's organization's airline cargo accounts (e.g. its Air Canada cargo account), active or archived. | () -> (AirlineCargoAccountListRes)","tags":["airlineCargoAccounts"],"parameters":[{"name":"filter_archived","in":"query","description":"List archived accounts instead of active accounts.","required":false,"schema":{"type":"boolean","default":false}},{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/AirlineCargoAccountSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AirlineCargoAccountListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/airline_cargo_accounts/update/v1/{airline_cargo_account_id}":{"patch":{"operationId":"airlineCargoAccounts_update_v1","summary":"Update","description":"Updates the name of an airline cargo account of the caller's organization. | authz: min_org_role=admin | (AirlineCargoAccountClientUpdate1) -> (AirlineCargoAccount1)","tags":["airlineCargoAccounts"],"parameters":[{"name":"airline_cargo_account_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AirlineCargoAccount1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AirlineCargoAccountClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/compliance_documents/create/v1":{"post":{"operationId":"complianceDocuments_create_v1","summary":"Create compliance document","description":"Creates a compliance document record for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (OrgComplianceDocumentClientCreate1) -> (OrgComplianceDocument1)","tags":["complianceDocuments"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgComplianceDocument1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgComplianceDocumentClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/compliance_documents/list/v1":{"get":{"operationId":"complianceDocuments_list_v1","summary":"List compliance documents","description":"Lists compliance documents for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[OrgComplianceDocument1])","tags":["complianceDocuments"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgComplianceDocument1"}}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/compliance_documents/update/v1/{org_compliance_document_id}":{"patch":{"operationId":"complianceDocuments_update_v1","summary":"Update compliance document","description":"Updates an organization compliance document for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (OrgComplianceDocumentClientUpdate1) -> (OrgComplianceDocument1)","tags":["complianceDocuments"],"parameters":[{"name":"org_compliance_document_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgComplianceDocument1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgComplianceDocumentClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/compliance_documents/v1/{org_compliance_document_id}":{"get":{"operationId":"complianceDocuments_get_v1","summary":"Get compliance document","description":"Retrieves one compliance document for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrgComplianceDocument1)","tags":["complianceDocuments"],"parameters":[{"name":"org_compliance_document_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgComplianceDocument1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/compliance_documents/s3_object/add/v1/{org_compliance_document_id}":{"post":{"operationId":"s3Object_add_v1","summary":"Add S3 object","description":"Uploads a file to an organization compliance document. Retains uploaded files; previews require a clean malware scan. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (OrgComplianceDocumentS3ObjectMetadata1)","tags":["s3Object"],"parameters":[{"name":"org_compliance_document_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgComplianceDocumentS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/compliance_documents/s3_object/delete/v1/{org_compliance_document_s3_object_metadata_id}":{"delete":{"operationId":"s3Object_delete_v1","summary":"Delete S3 object","description":"Deletes an organization compliance document S3 object and metadata. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (bool)","tags":["s3Object"],"parameters":[{"name":"org_compliance_document_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/compliance_documents/s3_object/s3_object_metadata/v1/{org_compliance_document_s3_object_metadata_id}":{"get":{"operationId":"s3Object_get_s3_object_metadata_v1","summary":"Get S3 object metadata","description":"Retrieves metadata for an organization compliance document S3 object. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (OrgComplianceDocumentS3ObjectMetadata1)","tags":["s3Object"],"parameters":[{"name":"org_compliance_document_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgComplianceDocumentS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/compliance_documents/s3_object/v1/{org_compliance_document_s3_object_metadata_id}":{"get":{"operationId":"s3Object_get_v1","summary":"Get S3 object","description":"Streams an organization compliance document S3 object file from storage. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (binary)","tags":["s3Object"],"parameters":[{"name":"org_compliance_document_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Binary file content","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"Access denied by authorization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}}}},"404":{"description":"File missing from storage (FILE_NOT_FOUND), or a related resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__org_compliance_documents_s3_object_v1RequestNotFoundError"}}}},"422":{"description":"Malware detected (FILE_MALWARE_DETECTED), file could not be scanned (FILE_SCAN_UNSUPPORTED), or request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__org_compliance_documents_s3_object_v1RequestUnprocessableEntityError"}}}},"423":{"description":"No malware scan result is available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}},"503":{"description":"Malware scan result or file download is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/by_handle/v1/{handle}":{"get":{"operationId":"connections_get_by_handle_v1","summary":"By handle","description":"Gets the connection between caller's org and the org with the specified handle. | () -> (ShipperCoordinatorConnection1 | CoordinatorExecutorConnection1 | None)","tags":["connections"],"parameters":[{"name":"handle","in":"path","description":"Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters.","required":true,"schema":{"type":"string","pattern":"^@[a-zA-Z0-9_-]+$","minLength":2,"maxLength":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/OrgsConnectionsByHandleV1HandleGetResponsesContentApplicationJsonSchema"},{"type":"null"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/coordinators/list/for_executor/v1":{"get":{"operationId":"connections_list_coordinators_for_executor_v1","summary":"List coordinators","description":"Lists the caller's coordinator connections with filtering, pagination, and identity search. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (CoordinatorExecutorConnectionsForExecutorListRes)","tags":["connections"],"parameters":[{"name":"search","in":"query","description":"Search by organization identity details","required":false,"schema":{"type":["string","null"]}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_connection_ids","in":"query","description":"Filter by selected connection ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_auto_assign_enabled","in":"query","description":"Filter by executor auto-assign consent","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_connected","in":"query","description":"Filter by connection status","required":false,"schema":{"type":["boolean","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoordinatorExecutorConnectionsForExecutorListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/coordinators/list/for_shipper/v1":{"get":{"operationId":"connections_list_coordinators_for_shipper_v1","summary":"List coordinators","description":"Lists the caller's coordinator connections with filtering, pagination, and identity search. | authz: allowed_org_types=[shipper] | () -> (ShipperCoordinatorConnectionsForShipperListRes)","tags":["connections"],"parameters":[{"name":"search","in":"query","description":"Search by organization identity details","required":false,"schema":{"type":["string","null"]}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_connection_ids","in":"query","description":"Filter by selected connection ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_connected","in":"query","description":"Filter by connection status","required":false,"schema":{"type":["boolean","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipperCoordinatorConnectionsForShipperListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/create_connection_to_provider/v1":{"post":{"operationId":"connections_create_connection_to_provider_v1","summary":"Create connection","description":"Creates a shipper-coordinator or coordinator-executor connection to an on-CHRT provider. | (CreateConnectionReq) -> (PydanticObjectId)","tags":["connections"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConnectionReq"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/create_connection_to_shipper/v1":{"post":{"operationId":"connections_create_connection_to_shipper_v1","summary":"Create shipper-coordinator connection","description":"Creates a shipper-coordinator connection to an on-CHRT shipper. | authz: allowed_org_types=[provider] | (CreateConnectionReq) -> (PydanticObjectId)","tags":["connections"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConnectionReq"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/executors/geo_search/list/for_coordinator/v1":{"get":{"operationId":"connections_list_executors_geo_search_for_coordinator_v1","summary":"Geo search","description":"Lists the caller's executor connections nearest to a location, with filtering and pagination. Executors without registered addresses follow geocoded results. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes)","tags":["connections"],"parameters":[{"name":"near_latitude","in":"query","description":"Geo-search latitude","required":true,"schema":{"type":"number","format":"double","minimum":-90,"maximum":90}},{"name":"near_longitude","in":"query","description":"Geo-search longitude","required":true,"schema":{"type":"number","format":"double","minimum":-180,"maximum":180}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_connection_ids","in":"query","description":"Filter by selected connection ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_auto_assign_enabled","in":"query","description":"Filter by executor auto-assign consent","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_connected","in":"query","description":"Filter by connection status","required":false,"schema":{"type":["boolean","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/executors/list/for_coordinator/v1":{"get":{"operationId":"connections_list_executors_for_coordinator_v1","summary":"List executors","description":"Lists the caller's executor connections with filtering, pagination, and identity search. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (CoordinatorExecutorConnectionsForCoordinatorListRes)","tags":["connections"],"parameters":[{"name":"search","in":"query","description":"Search by organization identity details","required":false,"schema":{"type":["string","null"]}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_connection_ids","in":"query","description":"Filter by selected connection ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_auto_assign_enabled","in":"query","description":"Filter by executor auto-assign consent","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_connected","in":"query","description":"Filter by connection status","required":false,"schema":{"type":["boolean","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoordinatorExecutorConnectionsForCoordinatorListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/set_coordinator_executor_auto_assign/v1/{connection_id}":{"patch":{"operationId":"connections_set_coordinator_executor_auto_assign_v1","summary":"Set coordinator-executor auto-assign","description":"Sets an executor's consent to direct task-group assignment. | authz: allowed_org_types=[provider], min_org_role=administrator | (CoordinatorExecutorUpdateAutoAssignReq) -> (bool)","tags":["connections"],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoordinatorExecutorUpdateAutoAssignReq"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/set_shipper_coordinator_default_department/v1/{connection_id}":{"patch":{"operationId":"connections_set_shipper_coordinator_default_department_v1","summary":"Set default department","description":"Sets or clears the coordinator's default department for a shipper-coordinator connection. | authz: allowed_org_types=[provider], min_org_role=operator | (ShipperCoordinatorConnectionClientUpdate1) -> (bool)","tags":["connections"],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipperCoordinatorConnectionClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/set_shipper_coordinator_known_shipper/v1/{connection_id}":{"patch":{"operationId":"connections_set_shipper_coordinator_known_shipper_v1","summary":"Set known shipper","description":"Sets the coordinator's known-shipper designation for an on- or off-CHRT shipper and records who changed it and when. | authz: allowed_org_types=[provider], min_org_role=operator | (ShipperCoordinatorUpdateKnownShipperReq) -> (bool)","tags":["connections"],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipperCoordinatorUpdateKnownShipperReq"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/shippers/list/for_coordinator/v1":{"get":{"operationId":"connections_list_shippers_for_coordinator_v1","summary":"List shippers","description":"Lists the caller's shipper connections with filtering, pagination, and identity search. | authz: allowed_org_types=[provider] | () -> (ShipperCoordinatorConnectionsForCoordinatorListRes)","tags":["connections"],"parameters":[{"name":"search","in":"query","description":"Search by organization identity details","required":false,"schema":{"type":["string","null"]}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_connection_ids","in":"query","description":"Filter by selected connection ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_connected","in":"query","description":"Filter by connection status","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_known_shipper","in":"query","description":"Filter by the coordinator's known-shipper designation","required":false,"schema":{"type":["boolean","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipperCoordinatorConnectionsForCoordinatorListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/coordinators/typeahead/v1":{"get":{"operationId":"coordinators_typeahead_v1","summary":"Typeahead coordinators","description":"Returns distinct connected-coordinator names matching the query, with the matching connection IDs. Shippers see their coordinators; providers see coordinators for which they are executors. | authz: allowed_org_types=[provider, shipper], min_org_role=operator | () -> (list[ConnectionTypeaheadResult])","tags":["coordinators"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConnectionTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/executors/typeahead/v1":{"get":{"operationId":"executors_typeahead_v1","summary":"Typeahead executors","description":"Returns distinct connected-executor names matching the query, with the matching connection IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[ConnectionTypeaheadResult])","tags":["executors"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConnectionTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/connections/shippers/typeahead/v1":{"get":{"operationId":"shippers_typeahead_v1","summary":"Typeahead shippers","description":"Returns distinct connected-shipper names matching the query, with the matching connection IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[ConnectionTypeaheadResult])","tags":["shippers"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConnectionTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/contacts/accounts/add/v1/{contact_id}":{"post":{"operationId":"contacts_account_add_v1","summary":"Add account","description":"Associates an account from the contact's organization. | authz: min_org_role=operator | (ContactAccountAddReq) -> (bool)","tags":["contacts"],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactAccountAddReq"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/contacts/accounts/remove/v1/{contact_id}/{account_id}":{"delete":{"operationId":"contacts_account_remove_v1","summary":"Remove account","description":"Removes an account association from an organization-created contact. | authz: min_org_role=operator | () -> (bool)","tags":["contacts"],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"account_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/contacts/create/v1":{"post":{"operationId":"contacts_create_v1","summary":"Create","description":"Creates an organization-created contact. | authz: min_org_role=operator | (ContactClientCreate1) -> (PydanticObjectId)","tags":["contacts"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/contacts/delete/v1/{contact_id}":{"delete":{"operationId":"contacts_delete_v1","summary":"Delete","description":"Deletes an organization-created contact. | authz: min_org_role=operator | () -> (bool)","tags":["contacts"],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/contacts/list/v1":{"get":{"operationId":"contacts_list_v1","summary":"List","description":"Lists organization-created contacts with associated organizations and accounts expanded. | authz: min_org_role=operator | () -> (ContactListRes)","tags":["contacts"],"parameters":[{"name":"filter_contact_ids","in":"query","description":"Filter by selected contact ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"search","in":"query","description":"Full-text search query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_org_id","in":"query","description":"Filter by associated on-CHRT organization","required":false,"schema":{"type":["string","null"]}},{"name":"filter_off_chrt_org_data_id","in":"query","description":"Filter by associated off-CHRT organization data","required":false,"schema":{"type":["string","null"]}},{"name":"filter_account_id","in":"query","description":"Filter by associated account","required":false,"schema":{"type":["string","null"]}},{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/ContactSortByEnum"},{"type":"null"}]}},{"name":"sort_order","in":"query","description":"Sort order","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/contacts/typeahead/v1":{"get":{"operationId":"contacts_typeahead_v1","summary":"Typeahead","description":"Returns matching name values and their IDs within the caller's organization. | authz: min_org_role=operator | () -> (list[ContactTypeaheadResult])","tags":["contacts"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/contacts/update/v1/{contact_id}":{"patch":{"operationId":"contacts_update_v1","summary":"Update","description":"Updates an organization-created contact. | authz: min_org_role=operator | (ContactClientUpdate1) -> (bool)","tags":["contacts"],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/contacts/v1/{contact_id}":{"get":{"operationId":"contacts_get_v1","summary":"Get by ID","description":"Retrieves an organization-created contact. | authz: min_org_role=operator | () -> (Contact1)","tags":["contacts"],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/iata_cass_offices/archive/v1/{iata_cass_office_id}":{"post":{"operationId":"iataCassOffices_archive_v1","summary":"Archive","description":"Archives an IATA CASS office of the caller's organization so it can no longer be booked under. | authz: min_org_role=admin | () -> (bool)","tags":["iataCassOffices"],"parameters":[{"name":"iata_cass_office_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/iata_cass_offices/list/v1":{"get":{"operationId":"iataCassOffices_list_v1","summary":"List","description":"Lists the IATA CASS offices of the caller's organization, active or archived. | () -> (IataCassOfficeListRes)","tags":["iataCassOffices"],"parameters":[{"name":"filter_archived","in":"query","description":"List archived offices instead of active offices.","required":false,"schema":{"type":"boolean","default":false}},{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/IataCassOfficeSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IataCassOfficeListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/iata_cass_offices/update/v1/{iata_cass_office_id}":{"patch":{"operationId":"iataCassOffices_update_v1","summary":"Update","description":"Updates the name or contact names of an IATA CASS office of the caller's organization. | authz: min_org_role=admin | (IataCassOfficeClientUpdate1) -> (IataCassOffice1)","tags":["iataCassOffices"],"parameters":[{"name":"iata_cass_office_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IataCassOffice1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IataCassOfficeClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/iata_cass_offices/v1/{iata_cass_office_id}":{"get":{"operationId":"iataCassOffices_get_v1","summary":"Get","description":"Retrieves an IATA CASS office of the caller's organization. | () -> (IataCassOffice1)","tags":["iataCassOffices"],"parameters":[{"name":"iata_cass_office_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IataCassOffice1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/off_chrt_org_data/create/v1":{"post":{"operationId":"offChrtOrgData_create_v1","summary":"Create off-CHRT org","description":"Creates owner-scoped off-CHRT organization data and, for shippers or providers, its required connection. | authz: allowed_org_types=[provider] | (CreateOffChrtOrgReq) -> (CreateOffChrtOrgRes)","tags":["offChrtOrgData"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOffChrtOrgRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOffChrtOrgReq"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/off_chrt_org_data/list/v1":{"get":{"operationId":"offChrtOrgData_list_v1","summary":"List off-CHRT organization data","description":"Lists off-CHRT organization data owned by the caller with optional organization-type filtering, identity search, sorting, and pagination. | authz: allowed_org_types=[provider] | () -> (OffChrtOrgDataListRes)","tags":["offChrtOrgData"],"parameters":[{"name":"filter_off_chrt_org_data_ids","in":"query","description":"Filter by selected off chrt org data ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"search","in":"query","description":"Search by name, industry, or email","required":false,"schema":{"type":["string","null"]}},{"name":"filter_org_type","in":"query","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/OrgTypeEnum"},{"type":"null"}]}},{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/OffChrtOrgDataSortByEnum"},{"type":"null"}]}},{"name":"sort_order","in":"query","description":"Sort order","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OffChrtOrgDataListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/off_chrt_org_data/typeahead/v1":{"get":{"operationId":"offChrtOrgData_typeahead_v1","summary":"Typeahead","description":"Returns matching name values and their IDs within the caller's organization, optionally filtered by org_type. | authz: allowed_org_types=[provider] | () -> (list[OffChrtOrgDataTypeaheadResult])","tags":["offChrtOrgData"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},{"name":"filter_org_type","in":"query","description":"Filter by organization type","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/OrgTypeEnum"},{"type":"null"}]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OffChrtOrgDataTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/off_chrt_org_data/v1/{off_chrt_org_data_id}":{"get":{"operationId":"offChrtOrgData_get_by_id_v1","summary":"Get off-CHRT organization data","description":"Gets owner-scoped off-CHRT organization data by ID. | authz: allowed_org_types=[provider] | () -> (OffChrtOrgData1)","tags":["offChrtOrgData"],"parameters":[{"name":"off_chrt_org_data_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OffChrtOrgData1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"offChrtOrgData_update_by_id_v1","summary":"Update off-CHRT organization data","description":"Updates canonical identity fields for owner-scoped off-CHRT organization data. | authz: allowed_org_types=[provider] | (OffChrtOrgDataClientUpdate1) -> (bool)","tags":["offChrtOrgData"],"parameters":[{"name":"off_chrt_org_data_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OffChrtOrgDataClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/org_private_data/v1":{"get":{"operationId":"privateData_get_v1","summary":"Get private data","description":"Retrieves private organization data for the caller's organization. | authz: min_org_role=operator | () -> (OrgPrivateData1)","tags":["privateData"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgPrivateData1"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/org_public_data/avatar/v1/{handle}":{"get":{"operationId":"publicData_get_avatar_v1","summary":"Get avatar","description":"Returns the organization avatar URL or a placeholder. | () -> (str)","tags":["publicData"],"parameters":[{"name":"handle","in":"path","description":"Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters.","required":true,"schema":{"type":"string","pattern":"^@[a-zA-Z0-9_-]+$","minLength":2,"maxLength":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/org_public_data/by_handle/v1/{handle}":{"get":{"operationId":"publicData_get_by_handle_v1","summary":"Get by handle","description":"Retrieves public organization data by handle. | () -> (OrgPublicData1)","tags":["publicData"],"parameters":[{"name":"handle","in":"path","description":"Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters.","required":true,"schema":{"type":"string","pattern":"^@[a-zA-Z0-9_-]+$","minLength":2,"maxLength":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgPublicData1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/org_public_data/handle_availability/v1/{handle}":{"get":{"operationId":"publicData_get_handle_availability_v1","summary":"Check handle availability","description":"Returns True when the provided handle is available, otherwise False. | () -> (bool)","tags":["publicData"],"parameters":[{"name":"handle","in":"path","description":"Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters.","required":true,"schema":{"type":"string","pattern":"^@[a-zA-Z0-9_-]+$","minLength":2,"maxLength":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/org_public_data/v1":{"get":{"operationId":"publicData_get_v1","summary":"Get public data","description":"Retrieves public organization data for the caller's organization. | () -> (OrgPublicData1)","tags":["publicData"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgPublicData1"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"publicData_update_v1","summary":"Update public data","description":"Updates public identity data for the caller's organization. | (UpdateOrgPublicDataReq) -> (bool)","tags":["publicData"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrgPublicDataReq"}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/org_public_data/v1/{org_id}":{"get":{"operationId":"publicData_get_by_org_id_v1","summary":"Get public data by ID","description":"Retrieves public organization data for a specific organization by ID. | () -> (OrgPublicData1)","tags":["publicData"],"parameters":[{"name":"org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgPublicData1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/org_public_data/s3_object/add/v1":{"post":{"operationId":"s3Object_add_v1_2","summary":"Add S3 object","description":"Uploads a file, such as a logo, to the caller's organization public data. Retains uploaded files; previews require a clean malware scan. | authz: min_org_role=operator | (UploadFile) -> (OrgPublicDataS3ObjectMetadata1)","tags":["s3Object"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgPublicDataS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/org_public_data/s3_object/delete/v1/{org_public_data_s3_object_metadata_id}":{"delete":{"operationId":"s3Object_delete_v1_2","summary":"Delete S3 object","description":"Deletes an S3 object and its metadata from the caller's organization public data. | authz: min_org_role=operator | () -> (bool)","tags":["s3Object"],"parameters":[{"name":"org_public_data_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/org_public_data/s3_object/s3_object_metadata/v1/{org_public_data_s3_object_metadata_id}":{"get":{"operationId":"s3Object_get_s3_object_metadata_v1_2","summary":"Get S3 object metadata","description":"Retrieves metadata for an organization public data S3 object. | () -> (OrgPublicDataS3ObjectMetadata1)","tags":["s3Object"],"parameters":[{"name":"org_public_data_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgPublicDataS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/orgs/org_public_data/s3_object/v1/{org_public_data_s3_object_metadata_id}":{"get":{"operationId":"s3Object_get_v1_2","summary":"Get S3 object","description":"Streams an organization public data S3 object file from storage. | () -> (binary)","tags":["s3Object"],"parameters":[{"name":"org_public_data_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Binary file content","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"Access denied by authorization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}}}},"404":{"description":"File missing from storage (FILE_NOT_FOUND), or a related resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__org_public_data_s3_object_v1RequestNotFoundError"}}}},"422":{"description":"Malware detected (FILE_MALWARE_DETECTED), file could not be scanned (FILE_SCAN_UNSUPPORTED), or request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__org_public_data_s3_object_v1RequestUnprocessableEntityError"}}}},"423":{"description":"No malware scan result is available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}},"503":{"description":"Malware scan result or file download is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_air_waybills/create/v1":{"post":{"operationId":"cargoOnFlightAirWaybills_create_v1","summary":"Create","description":"Creates the air waybill for a confirmed cargo-on-flight booking: the parties, rating, charges, and security declaration sent to the airline as an FWB. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillClientCreate1) -> (CargoOnFlightAirWaybill1)","tags":["cargoOnFlightAirWaybills"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightAirWaybill1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_air_waybills/delete/v1/{cargo_on_flight_air_waybill_id}":{"delete":{"operationId":"cargoOnFlightAirWaybills_delete_v1","summary":"Delete","description":"Deletes an air waybill and its house air waybills, while none of them has been sent to the airline. | authz_personas=[task_group_coordinator_operators] | () -> (bool)","tags":["cargoOnFlightAirWaybills"],"parameters":[{"name":"cargo_on_flight_air_waybill_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_air_waybills/list/v1":{"get":{"operationId":"cargoOnFlightAirWaybills_list_v1","summary":"List","description":"Lists a flight task group's air waybills, one per cargo-on-flight booking. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightAirWaybillListRes)","tags":["cargoOnFlightAirWaybills"],"parameters":[{"name":"task_group_id","in":"query","description":"The task group whose air waybills are listed.","required":true,"schema":{"type":"string"}},{"name":"filter_cargo_on_flight_booking_id","in":"query","description":"Filter by booking.","required":false,"schema":{"type":["string","null"]}},{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_air_waybills/mark_accepted/v1/{cargo_on_flight_air_waybill_id}":{"post":{"operationId":"cargoOnFlightAirWaybills_mark_accepted_v1","summary":"Mark accepted","description":"Marks a sent FWB and/or the FHLs of chosen house air waybills accepted, for an airline that never answered; a later airline answer replaces it. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillsMarkAcceptedReq) -> (CargoOnFlightAirWaybillsMarkAcceptedRes)","tags":["cargoOnFlightAirWaybills"],"parameters":[{"name":"cargo_on_flight_air_waybill_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillsMarkAcceptedRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillsMarkAcceptedReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_air_waybills/update/v1/{cargo_on_flight_air_waybill_id}":{"patch":{"operationId":"cargoOnFlightAirWaybills_update_v1","summary":"Update","description":"Updates an air waybill; an FWB already sent is replaced at the airline only when it is sent again. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillClientUpdate1) -> (CargoOnFlightAirWaybill1)","tags":["cargoOnFlightAirWaybills"],"parameters":[{"name":"cargo_on_flight_air_waybill_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightAirWaybill1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_air_waybills/v1/{cargo_on_flight_air_waybill_id}":{"get":{"operationId":"cargoOnFlightAirWaybills_get_v1","summary":"Get","description":"Retrieves an air waybill. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightAirWaybill1)","tags":["cargoOnFlightAirWaybills"],"parameters":[{"name":"cargo_on_flight_air_waybill_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightAirWaybill1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_booking_searches/list/v1":{"get":{"operationId":"cargoOnFlightBookingSearches_list_v1","summary":"List","description":"Lists a cargo-on-flight booking's searches with their results. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingSearchListRes)","tags":["cargoOnFlightBookingSearches"],"parameters":[{"name":"cargo_on_flight_booking_id","in":"query","description":"The booking whose searches are listed.","required":true,"schema":{"type":"string"}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/CargoOnFlightBookingSearchSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBookingSearchListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_booking_searches/v1/{cargo_on_flight_booking_search_id}":{"get":{"operationId":"cargoOnFlightBookingSearches_get_v1","summary":"Get","description":"Retrieves a cargo-on-flight booking search with its results, optionally filtered and sorted. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingSearch1)","tags":["cargoOnFlightBookingSearches"],"parameters":[{"name":"cargo_on_flight_booking_search_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"filter_bookable","in":"query","description":"Filter results the integration accepts through its API.","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_awb_required","in":"query","description":"Filter results that need the user's own AWB.","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_aircraft_body_type","in":"query","description":"Filter results whose every flown leg is on this body type.","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightBookingAircraftBodyTypeEnum1"},{"type":"null"}]}},{"name":"filter_currency_code","in":"query","description":"Keep only rates in this currency, and results with one.","required":false,"schema":{"type":["string","null"],"pattern":"^[A-Z]{3}$"}},{"name":"sort_by","in":"query","description":"Field to sort results by; price needs filter_currency_code.","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightBookingSearchResultSortByEnum"},{"type":"null"}]}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBookingSearch1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_bookings/cancel/v1/{cargo_on_flight_booking_id}":{"post":{"operationId":"cargoOnFlightBookings_cancel_v1","summary":"Cancel","description":"Cancels a MANUAL booking, removing the flights it created from the task group and its AWB from its cargos; an integration booking is cancelled through its integration. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBooking1)","tags":["cargoOnFlightBookings"],"parameters":[{"name":"cargo_on_flight_booking_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBooking1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_bookings/create/v1":{"post":{"operationId":"cargoOnFlightBookings_create_v1","summary":"Create","description":"Creates a booking for a flight task group's cargos: a draft to search and book through an integration, or a MANUAL booking placed outside CHRT, confirmed with its AWB and itinerary, which sets the task group's flights and the cargos' AWB. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingClientCreate1) -> (CargoOnFlightBooking1)","tags":["cargoOnFlightBookings"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBooking1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBookingClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_bookings/delete_draft/v1/{cargo_on_flight_booking_id}":{"delete":{"operationId":"cargoOnFlightBookings_delete_draft_v1","summary":"Delete draft","description":"Deletes a draft booking that was never booked, with its searches. | authz_personas=[task_group_coordinator_operators] | () -> (bool)","tags":["cargoOnFlightBookings"],"parameters":[{"name":"cargo_on_flight_booking_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_bookings/list/v1":{"get":{"operationId":"cargoOnFlightBookings_list_v1","summary":"List","description":"Lists a flight task group's cargo-on-flight bookings, active and history. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingListRes)","tags":["cargoOnFlightBookings"],"parameters":[{"name":"task_group_id","in":"query","description":"The task group whose bookings are listed.","required":true,"schema":{"type":"string"}},{"name":"filter_status","in":"query","description":"Filter by status(es).","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargoOnFlightBookingStatusEnum1"}}},{"name":"filter_draft_started_at_timestamp_gte","in":"query","description":"Filter draft_started_at_timestamp >= value.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_draft_started_at_timestamp_lte","in":"query","description":"Filter draft_started_at_timestamp <= value.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/CargoOnFlightBookingSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBookingListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_bookings/v1/{cargo_on_flight_booking_id}":{"get":{"operationId":"cargoOnFlightBookings_get_v1","summary":"Get","description":"Retrieves a cargo-on-flight booking. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBooking1)","tags":["cargoOnFlightBookings"],"parameters":[{"name":"cargo_on_flight_booking_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightBooking1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_house_air_waybills/create/v1":{"post":{"operationId":"cargoOnFlightHouseAirWaybills_create_v1","summary":"Create","description":"Adds a house air waybill to an air waybill's consolidation, sent to the airline in its FHL. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightHouseAirWaybillClientCreate1) -> (CargoOnFlightHouseAirWaybill1)","tags":["cargoOnFlightHouseAirWaybills"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightHouseAirWaybill1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightHouseAirWaybillClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_house_air_waybills/delete/v1/{cargo_on_flight_house_air_waybill_id}":{"delete":{"operationId":"cargoOnFlightHouseAirWaybills_delete_v1","summary":"Delete","description":"Deletes a house air waybill that has never been sent to the airline. | authz_personas=[task_group_coordinator_operators] | () -> (bool)","tags":["cargoOnFlightHouseAirWaybills"],"parameters":[{"name":"cargo_on_flight_house_air_waybill_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_house_air_waybills/list/v1":{"get":{"operationId":"cargoOnFlightHouseAirWaybills_list_v1","summary":"List","description":"Lists the house air waybills consolidated under an air waybill. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightHouseAirWaybillListRes)","tags":["cargoOnFlightHouseAirWaybills"],"parameters":[{"name":"cargo_on_flight_air_waybill_id","in":"query","description":"The air waybill whose houses are listed.","required":true,"schema":{"type":"string"}},{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/CargoOnFlightHouseAirWaybillSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightHouseAirWaybillListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_house_air_waybills/update/v1/{cargo_on_flight_house_air_waybill_id}":{"patch":{"operationId":"cargoOnFlightHouseAirWaybills_update_v1","summary":"Update","description":"Updates a house air waybill, all but its number; one already sent is replaced at the airline only when it is sent again. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightHouseAirWaybillClientUpdate1) -> (CargoOnFlightHouseAirWaybill1)","tags":["cargoOnFlightHouseAirWaybills"],"parameters":[{"name":"cargo_on_flight_house_air_waybill_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightHouseAirWaybill1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightHouseAirWaybillClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/cargo_on_flight_house_air_waybills/v1/{cargo_on_flight_house_air_waybill_id}":{"get":{"operationId":"cargoOnFlightHouseAirWaybills_get_v1","summary":"Get","description":"Retrieves a house air waybill. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightHouseAirWaybill1)","tags":["cargoOnFlightHouseAirWaybills"],"parameters":[{"name":"cargo_on_flight_house_air_waybill_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoOnFlightHouseAirWaybill1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/archive/v1/{driver_id}":{"post":{"operationId":"drivers_archive_v1","summary":"Archive","description":"Archives a driver after draft, staged, and in-progress assignments are resolved, and denies their open bid threads. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["drivers"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/create/v1":{"post":{"operationId":"drivers_create_v1","summary":"Create","description":"Creates a new driver profile for the target user (defaults to caller). Drivers can create themselves; operators+ can create any org member. Provider orgs only. | (DriverClientCreate1) -> (PydanticObjectId)","tags":["drivers"],"parameters":[{"name":"target_user_id","in":"query","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/for_caller/v1":{"get":{"operationId":"drivers_get_for_caller_v1","summary":"Get for caller","description":"Retrieves driver information for the caller within their organization. | () -> (DriverWithActiveTaskGroupIds1)","tags":["drivers"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWithActiveTaskGroupIds1"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/last_seen/clear/v1":{"post":{"operationId":"drivers_clear_last_seen_v1","summary":"Clear last seen","description":"Clears the driver's last known location and timestamp. | () -> (bool)","tags":["drivers"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/list/v1":{"get":{"operationId":"drivers_list_v1","summary":"List","description":"Lists all drivers belonging to the caller's organization with filtering, sorting, pagination, and optional full-text search. | () -> (DriverListRes)","tags":["drivers"],"parameters":[{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Full-text search query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_driver_ids","in":"query","description":"Filter by selected driver ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_waiting","in":"query","description":"Filter by waiting status","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_auto_assign_enabled","in":"query","description":"Filter by automatic assignment consent","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_vehicle_type","in":"query","description":"Filter by any matching vehicle type","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/VehicleTypeEnum"}}},{"name":"filter_archived","in":"query","description":"Select archived drivers instead of active drivers","required":false,"schema":{"type":"boolean","default":false}},{"name":"filter_available_according_to_driver","in":"query","description":"Filter by driver's self-reported availability","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_available_according_to_operators","in":"query","description":"Filter by operator-set availability","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_status","in":"query","description":"Filter by driver state (UNASSIGNED / ASSIGNED / IN_PROGRESS)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/DriverStatusEnum"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/org_members_and_drivers/list/v1":{"get":{"operationId":"drivers_list_org_members_and_drivers_v1","summary":"List members with drivers","description":"Lists all organization members paired with their driver information if they are drivers. Supports search by name, filtering, sorting, and pagination. | () -> (OrgMembersAndDriversListRes)","tags":["drivers"],"parameters":[{"name":"filter_user_ids","in":"query","description":"Filter by user IDs","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"search","in":"query","description":"Search by first or last name","required":false,"schema":{"type":["string","null"]}},{"name":"filter_archived","in":"query","description":"Select archived driver profiles","required":false,"schema":{"type":"boolean","default":false}},{"name":"filter_role","in":"query","description":"Filter by organization role(s)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OrgRoleEnum"}}},{"name":"filter_available_according_to_driver","in":"query","description":"Filter by driver's self-reported availability.","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_available_according_to_operators","in":"query","description":"Filter by operator-set availability.","required":false,"schema":{"type":["boolean","null"]}},{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/OrgMemberSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgMembersAndDriversListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/self_reported_hours_and_mileage/create/v1":{"post":{"operationId":"drivers_create_self_reported_hours_and_mileage_v1","summary":"Create report","description":"Creates a driver's self-reported hours worked and miles driven for a single calendar day. Caller must be the driver themselves. | authz: allowed_org_types=[provider], min_org_role=driver | (DriverSelfReportedHoursAndMileageClientCreate1) -> (DriverSelfReportedHoursAndMileage1)","tags":["drivers"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverSelfReportedHoursAndMileage1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverSelfReportedHoursAndMileageClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/self_reported_hours_and_mileage/delete/v1/{driver_id}/{report_date}":{"post":{"operationId":"drivers_delete_self_reported_hours_and_mileage_v1","summary":"Delete self-reported hours and mileage","description":"Permanently deletes a driver's self-report for a calendar day. Caller must be the driver themselves. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (bool)","tags":["drivers"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"report_date","in":"path","required":true,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/self_reported_hours_and_mileage/get/v1/{driver_id}/{report_date}":{"get":{"operationId":"drivers_get_self_reported_hours_and_mileage_v1","summary":"Get self-reported hours and mileage","description":"Retrieves a driver's self-report for a single calendar day. Caller must be the driver themselves or an operator+ in the driver's org. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (DriverSelfReportedHoursAndMileage1)","tags":["drivers"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"report_date","in":"path","required":true,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverSelfReportedHoursAndMileage1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/self_reported_hours_and_mileage/list/v1/{driver_id}":{"get":{"operationId":"drivers_list_self_reported_hours_and_mileage_v1","summary":"List self-reported hours and mileage","description":"Lists a driver's self-reports across an optional date range with sorting and pagination. Caller must be the driver themselves or an operator+ in the driver's org. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (DriverSelfReportedHoursAndMileageListRes)","tags":["drivers"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"filter_start_date","in":"query","required":false,"schema":{"type":["string","null"],"format":"date"}},{"name":"filter_end_date","in":"query","required":false,"schema":{"type":["string","null"],"format":"date"}},{"name":"sort_order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverSelfReportedHoursAndMileageListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/self_reported_hours_and_mileage/org_list/v1":{"get":{"operationId":"drivers_org_list_self_reported_hours_and_mileage_v1","summary":"List org self-reported hours and mileage","description":"Lists all drivers' self-reports in the caller's org with date-range filtering, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (DriverSelfReportedHoursAndMileageListRes)","tags":["drivers"],"parameters":[{"name":"filter_driver_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_start_date","in":"query","required":false,"schema":{"type":["string","null"],"format":"date"}},{"name":"filter_end_date","in":"query","required":false,"schema":{"type":["string","null"],"format":"date"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ShippingDriversSelfReportedHoursAndMileageOrgListV1GetParametersSortBy","default":"date"}},{"name":"sort_order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverSelfReportedHoursAndMileageListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/self_reported_hours_and_mileage/update/v1/{driver_id}/{report_date}":{"patch":{"operationId":"drivers_update_self_reported_hours_and_mileage_v1","summary":"Update report","description":"Partially updates a driver's self-reported hours worked and/or miles driven for a calendar day. Caller must be the driver themselves. | authz: allowed_org_types=[provider], min_org_role=driver | (DriverSelfReportedHoursAndMileageClientUpdate1) -> (DriverSelfReportedHoursAndMileage1)","tags":["drivers"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"report_date","in":"path","required":true,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverSelfReportedHoursAndMileage1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverSelfReportedHoursAndMileageClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/stats/v1/{driver_id}":{"post":{"operationId":"drivers_get_stats_v1","summary":"Retrieve (via POST) driver analytics","description":"Retrieves driver analytics for a time window. Daily rows are clipped to the requested UTC window; task-group rows include full in-progress mileage for task groups whose in-progress interval overlaps the requested window. | authz: allowed_org_types=[provider], min_org_role=operator | (DriverStatsReq) -> (DriverStatsRes)","tags":["drivers"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverStatsRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverStatsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/typeahead/v1":{"get":{"operationId":"drivers_typeahead_v1","summary":"Typeahead","description":"Returns matching full_name (first_name + last_name) values and their IDs within the caller's organization, excluding archived drivers. | () -> (list[DriverTypeaheadResult])","tags":["drivers"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DriverTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/unarchive/v1/{driver_id}":{"post":{"operationId":"drivers_unarchive_v1","summary":"Restore","description":"Restores an archived driver with active organization membership. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)","tags":["drivers"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/update/v1/{driver_id}":{"patch":{"operationId":"drivers_update_v1","summary":"Update","description":"Updates driver contact details and vehicle type assignments. Provider orgs only; caller must be the driver (self) or an operator+. | (DriverClientUpdate1) -> (bool)","tags":["drivers"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/update_auto_assign/v1/{driver_id}":{"patch":{"operationId":"drivers_update_auto_assign_v1","summary":"Update auto-assign","description":"Toggles a driver's `auto_assign_enabled` flag — opt-in for direct (non-bidding) task-group assignment. Authorized: the driver themselves OR an operator+ in the driver's org (operators may override the driver's setting). Provider orgs only. | (DriverUpdateAutoAssignReq) -> (bool)","tags":["drivers"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverUpdateAutoAssignReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/update_availability/according_to_driver/v1":{"patch":{"operationId":"drivers_update_availability_according_to_driver_v1","summary":"Update availability (driver)","description":"Updates the caller's driver availability status. Must have status UNASSIGNED to set availability to False; always allows setting to True. Provider orgs only. | (DriverUpdateAvailabilityReq) -> (bool)","tags":["drivers"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverUpdateAvailabilityReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/update_availability/according_to_operators/v1/{driver_id}":{"patch":{"operationId":"drivers_update_availability_according_to_operators_v1","summary":"Update availability (operators)","description":"Updates a driver's availability status. Must have status UNASSIGNED to set availability to False; always allows setting to True. Provider orgs only, min role: operator. | (DriverUpdateAvailabilityReq) -> (bool)","tags":["drivers"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverUpdateAvailabilityReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/v1/{driver_id}":{"get":{"operationId":"drivers_get_by_driver_id_v1","summary":"Get","description":"Retrieves detailed driver information by driver ID within the organization. | () -> (DriverWithActiveTaskGroupIds1)","tags":["drivers"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverWithActiveTaskGroupIds1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/compliance_documents/create/v1/{driver_id}":{"post":{"operationId":"complianceDocuments_create_v1_2","summary":"Create compliance document","description":"Creates a compliance document record for a driver in the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (DriverComplianceDocumentClientCreate1) -> (DriverComplianceDocument1)","tags":["complianceDocuments"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverComplianceDocument1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverComplianceDocumentClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/compliance_documents/list/v1/{driver_id}":{"get":{"operationId":"complianceDocuments_list_v1_2","summary":"List compliance documents","description":"Lists compliance documents for one driver in the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[DriverComplianceDocument1])","tags":["complianceDocuments"],"parameters":[{"name":"driver_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DriverComplianceDocument1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/compliance_documents/update/v1/{driver_compliance_document_id}":{"patch":{"operationId":"complianceDocuments_update_v1_2","summary":"Update compliance document","description":"Updates a driver compliance document in the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (DriverComplianceDocumentClientUpdate1) -> (DriverComplianceDocument1)","tags":["complianceDocuments"],"parameters":[{"name":"driver_compliance_document_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverComplianceDocument1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverComplianceDocumentClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/compliance_documents/v1/{driver_compliance_document_id}":{"get":{"operationId":"complianceDocuments_get_v1_2","summary":"Get compliance document","description":"Retrieves one driver compliance document in the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (DriverComplianceDocument1)","tags":["complianceDocuments"],"parameters":[{"name":"driver_compliance_document_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverComplianceDocument1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/compliance_documents/s3_object/add/v1/{driver_compliance_document_id}":{"post":{"operationId":"s3Object_add_v1_3","summary":"Add S3 object","description":"Uploads a file to a driver compliance document. Retains uploaded files; previews require a clean malware scan. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (DriverComplianceDocumentS3ObjectMetadata1)","tags":["s3Object"],"parameters":[{"name":"driver_compliance_document_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverComplianceDocumentS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/compliance_documents/s3_object/delete/v1/{driver_compliance_document_s3_object_metadata_id}":{"delete":{"operationId":"s3Object_delete_v1_3","summary":"Delete S3 object","description":"Deletes a driver compliance document S3 object and metadata. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (bool)","tags":["s3Object"],"parameters":[{"name":"driver_compliance_document_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/compliance_documents/s3_object/s3_object_metadata/v1/{driver_compliance_document_s3_object_metadata_id}":{"get":{"operationId":"s3Object_get_s3_object_metadata_v1_3","summary":"Get S3 object metadata","description":"Retrieves metadata for a driver compliance document S3 object. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (DriverComplianceDocumentS3ObjectMetadata1)","tags":["s3Object"],"parameters":[{"name":"driver_compliance_document_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverComplianceDocumentS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/drivers/compliance_documents/s3_object/v1/{driver_compliance_document_s3_object_metadata_id}":{"get":{"operationId":"s3Object_get_v1_3","summary":"Get S3 object","description":"Streams a driver compliance document S3 object file from storage. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (binary)","tags":["s3Object"],"parameters":[{"name":"driver_compliance_document_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Binary file content","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"Access denied by authorization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}}}},"404":{"description":"File missing from storage (FILE_NOT_FOUND), or a related resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__driver_compliance_documents_s3_object_v1RequestNotFoundError"}}}},"422":{"description":"Malware detected (FILE_MALWARE_DETECTED), file could not be scanned (FILE_SCAN_UNSUPPORTED), or request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__driver_compliance_documents_s3_object_v1RequestUnprocessableEntityError"}}}},"423":{"description":"No malware scan result is available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}},"503":{"description":"Malware scan result or file download is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/flights/flight_info/for_task/v1/{task_id}":{"get":{"operationId":"flights_get_flight_info_for_task_v1","summary":"Flight info for task","description":"Returns flight info from an adjacent FLIGHT task group for TENDER_TO_AIRLINE or RECOVER_FROM_AIRLINE tasks. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightInfoForTaskRes)","tags":["flights"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlightInfoForTaskRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/flights/for_task_group/v1/{task_group_id}":{"get":{"operationId":"flights_get_flight_legs_for_task_group_v1","summary":"Flight legs for task group","description":"Returns the ordered list of flight legs for a task group. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightInfoForTaskRes)","tags":["flights"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlightInfoForTaskRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/flights/status/for_flight_leg/v1/{flight_leg_id}":{"get":{"operationId":"flights_get_flight_status_for_flight_leg_v1","summary":"Flight status for flight leg","description":"Returns the flight leg with its Cirium-sourced status, lazily resolving the Cirium flightId and refreshing the cached status on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightLeg1)","tags":["flights"],"parameters":[{"name":"flight_leg_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlightLeg1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/flights/track/for_flight_leg/v1/{flight_leg_id}":{"get":{"operationId":"flights_get_flight_track_for_flight_leg_v1","summary":"Flight track for flight leg","description":"Returns the FlightAware actual path, planned path, and latest position for a flight leg; pass force_refresh=true to bypass the cache. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)","tags":["flights"],"parameters":[{"name":"flight_leg_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"force_refresh","in":"query","description":"Bypass the cache and fetch the latest flight track.","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlightTrackRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/archive/v1/{order_template_id}":{"post":{"operationId":"orderTemplatesNew_post_archive_v1","summary":"Archive","description":"Archives an order template owned by the caller's organization. | authz: min_org_role=operator | () -> (bool)","tags":["orderTemplatesNew"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/core/v1/{order_template_id}":{"put":{"operationId":"orderTemplatesNew_put_replace_core_v1","summary":"Replace core","description":"Atomically replaces an active order template core. | authz: min_org_role=operator | (OrderTemplateNewCore1) -> (OrderTemplateNew1)","tags":["orderTemplatesNew"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewCore1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/dateparser/resolve/v1":{"post":{"operationId":"orderTemplatesNew_resolve_dateparser_v1","summary":"Resolve date","description":"Validates a natural-language date string and resolves it to a UTC timestamp. | authz: min_org_role=operator | (OrderTemplateNewDateparserResolveReq) -> (OrderTemplateNewDateparserResolveRes)","tags":["orderTemplatesNew"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewDateparserResolveRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewDateparserResolveReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/list/v1":{"get":{"operationId":"orderTemplatesNew_list_v1","summary":"List","description":"Lists order templates with filtering, sorting, pagination, full-text search, and party/account/department expansion. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)","tags":["orderTemplatesNew"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/OrderTemplateNewSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Full-text search query for template name or description.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_order_template_new_ids","in":"query","description":"Filter by order template new IDs","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_archived","in":"query","description":"Include archived templates instead of active templates.","required":false,"schema":{"type":"boolean","default":false}},{"name":"filter_owned_by_user_id","in":"query","description":"Filter by the user that created the template.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_coordinator_labels","in":"query","description":"Filter by all supplied coordinator labels (exact matches).","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_executor_org_id","in":"query","description":"Filter by an on-CHRT executor organization ID.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_off_chrt_executor_org_data_id","in":"query","description":"Filter by an off-CHRT executor organization data ID.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_shipper_org_id","in":"query","description":"Filter by an on-CHRT shipper organization ID.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_off_chrt_shipper_org_data_id","in":"query","description":"Filter by an off-CHRT shipper organization data ID.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_coordinator_shipper_account_ids","in":"query","description":"Filter by coordinator shipper account ID(s) assigned to template tasks.","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_gte","in":"query","description":"Filter last_edited_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_lte","in":"query","description":"Filter last_edited_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_used_at_timestamp_gte","in":"query","description":"Filter last_used_at_timestamp >= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_used_at_timestamp_lte","in":"query","description":"Filter last_used_at_timestamp <= value (inclusive).","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/typeahead/v1":{"get":{"operationId":"orderTemplatesNew_typeahead_v1","summary":"Typeahead","description":"Returns matching name values and their IDs within the caller's organization, excluding archived order templates. | authz: min_org_role=operator | () -> (list[OrderTemplateNewTypeaheadResult])","tags":["orderTemplatesNew"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/unarchive/v1/{order_template_id}":{"post":{"operationId":"orderTemplatesNew_post_unarchive_v1","summary":"Unarchive","description":"Restores an archived order template owned by the caller's organization. | authz: min_org_role=operator | () -> (bool)","tags":["orderTemplatesNew"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/update/v1/{order_template_id}":{"patch":{"operationId":"orderTemplatesNew_update_v1","summary":"Update","description":"Updates an order template owned by the caller's organization. | authz: min_org_role=operator | (OrderTemplateNewClientUpdate1) -> (OrderTemplateNew1)","tags":["orderTemplatesNew"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/v1":{"post":{"operationId":"orderTemplatesNew_create_v1","summary":"Create","description":"Creates an order template owned by the caller's organization. | authz: min_org_role=operator | (OrderTemplateNewClientCreate1) -> (OrderTemplateNew1)","tags":["orderTemplatesNew"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/v1/{order_template_id}":{"get":{"operationId":"orderTemplatesNew_get_by_id_v1","summary":"Get","description":"Retrieves an order template by ID. | authz: min_org_role=operator | () -> (OrderTemplateNew1)","tags":["orderTemplatesNew"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"operationId":"orderTemplatesNew_delete_v1","summary":"Delete","description":"Deletes an order template owned by the caller's organization. | authz: min_org_role=operator | () -> (bool)","tags":["orderTemplatesNew"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/cargos/duplicate/v1/{order_template_id}/{cargo_key}":{"post":{"operationId":"cargos_post_duplicate_v1","summary":"Duplicate cargo","description":"Duplicates cargo and its task associations in an active order template. | authz: min_org_role=operator | () -> (OrderTemplateNew1)","tags":["cargos"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cargo_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/cargos/reorder/v1/{order_template_id}":{"put":{"operationId":"cargos_put_reorder_v1","summary":"Reorder cargo","description":"Reorders cargo in an active order template. | authz: min_org_role=operator | (OrderTemplateNewCargoReorderReq1) -> (OrderTemplateNew1)","tags":["cargos"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewCargoReorderReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/cargos/v1/{order_template_id}":{"post":{"operationId":"cargos_post_create_v1","summary":"Create cargo","description":"Adds cargo to an active order template. | authz: min_org_role=operator | (OrderTemplateNewCargoClientCreate1) -> (OrderTemplateNew1)","tags":["cargos"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewCargoClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/cargos/v1/{order_template_id}/{cargo_key}":{"delete":{"operationId":"cargos_delete_v1","summary":"Delete cargo","description":"Deletes cargo and its task associations from an active order template. | authz: min_org_role=operator | () -> (OrderTemplateNew1)","tags":["cargos"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cargo_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"cargos_patch_update_v1","summary":"Update cargo","description":"Updates cargo in an active order template. | authz: min_org_role=operator | (OrderTemplateNewCargoClientUpdate1) -> (OrderTemplateNew1)","tags":["cargos"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cargo_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewCargoClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/task_artifacts/move/v1/{order_template_id}/{task_artifact_key}":{"put":{"operationId":"taskArtifacts_put_move_v1","summary":"Move task artifact","description":"Moves a task artifact to the end of another task. | authz: min_org_role=operator | (OrderTemplateNewTaskArtifactMoveReq1) -> (OrderTemplateNew1)","tags":["taskArtifacts"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_artifact_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewTaskArtifactMoveReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/task_artifacts/reorder/v1/{order_template_id}/{task_key}":{"put":{"operationId":"taskArtifacts_put_reorder_v1","summary":"Reorder task artifacts","description":"Reorders artifacts within one task. | authz: min_org_role=operator | (OrderTemplateNewTaskArtifactReorderReq1) -> (OrderTemplateNew1)","tags":["taskArtifacts"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewTaskArtifactReorderReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/task_artifacts/v1/{order_template_id}/{task_artifact_key}":{"delete":{"operationId":"taskArtifacts_delete_v1","summary":"Delete task artifact","description":"Deletes a task artifact from an active order template. | authz: min_org_role=operator | () -> (OrderTemplateNew1)","tags":["taskArtifacts"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_artifact_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"taskArtifacts_patch_update_v1","summary":"Update task artifact","description":"Updates a task artifact in an active order template. | authz: min_org_role=operator | (OrderTemplateNewTaskArtifactClientUpdate1) -> (OrderTemplateNew1)","tags":["taskArtifacts"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_artifact_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewTaskArtifactClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/task_artifacts/v1/{order_template_id}/{task_key}":{"post":{"operationId":"taskArtifacts_post_create_v1","summary":"Create task artifact","description":"Adds an artifact to a task in an active order template. | authz: min_org_role=operator | (OrderTemplateNewTaskArtifactClientCreate1) -> (OrderTemplateNew1)","tags":["taskArtifacts"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewTaskArtifactClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/task_groups/reorder/v1/{order_template_id}":{"put":{"operationId":"taskGroups_put_reorder_v1","summary":"Reorder task groups","description":"Reorders task groups in an active order template. | authz: min_org_role=operator | (OrderTemplateNewTaskGroupReorderReq1) -> (OrderTemplateNew1)","tags":["taskGroups"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewTaskGroupReorderReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/task_groups/v1/{order_template_id}":{"post":{"operationId":"taskGroups_post_create_v1","summary":"Create task group","description":"Adds a task group to an active order template. | authz: min_org_role=operator | (OrderTemplateNewTaskGroupClientCreate1) -> (OrderTemplateNew1)","tags":["taskGroups"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewTaskGroupClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/task_groups/v1/{order_template_id}/{task_group_key}":{"delete":{"operationId":"taskGroups_delete_v1","summary":"Delete task group","description":"Deletes a task group and its embedded tasks from an active order template. | authz: min_org_role=operator | () -> (OrderTemplateNew1)","tags":["taskGroups"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_group_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"taskGroups_patch_update_v1","summary":"Update task group","description":"Updates a task group in an active order template. | authz: min_org_role=operator | (OrderTemplateNewTaskGroupClientUpdate1) -> (OrderTemplateNew1)","tags":["taskGroups"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_group_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewTaskGroupClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/tasks/cargo_associations/v1/{order_template_id}/{task_key}":{"put":{"operationId":"tasks_put_cargo_associations_v1","summary":"Set cargo associations","description":"Replaces a task's cargo associations. | authz: min_org_role=operator | (OrderTemplateNewTaskCargoAssociationsReq1) -> (OrderTemplateNew1)","tags":["tasks"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewTaskCargoAssociationsReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/tasks/move/v1/{order_template_id}/{task_key}":{"put":{"operationId":"tasks_put_move_v1","summary":"Move task","description":"Moves a task to the end of another task group. | authz: min_org_role=operator | (OrderTemplateNewTaskMoveReq1) -> (OrderTemplateNew1)","tags":["tasks"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewTaskMoveReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/tasks/reorder/v1/{order_template_id}/{task_group_key}":{"put":{"operationId":"tasks_put_reorder_v1","summary":"Reorder tasks","description":"Reorders tasks within one task group. | authz: min_org_role=operator | (OrderTemplateNewTaskReorderReq1) -> (OrderTemplateNew1)","tags":["tasks"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_group_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewTaskReorderReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/tasks/v1/{order_template_id}/{task_group_key}":{"post":{"operationId":"tasks_post_create_v1","summary":"Create task","description":"Adds a task to a task group in an active order template. | authz: min_org_role=operator | (OrderTemplateNewTaskClientCreate1) -> (OrderTemplateNew1)","tags":["tasks"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_group_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewTaskClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/order_templates_new/tasks/v1/{order_template_id}/{task_key}":{"delete":{"operationId":"tasks_delete_v1","summary":"Delete task","description":"Deletes a task and its embedded artifacts from an active order template. | authz: min_org_role=operator | () -> (OrderTemplateNew1)","tags":["tasks"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"tasks_patch_update_v1","summary":"Update task","description":"Updates a task in an active order template. | authz: min_org_role=operator | (OrderTemplateNewTaskClientUpdate1) -> (OrderTemplateNew1)","tags":["tasks"],"parameters":[{"name":"order_template_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_key","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNew1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTemplateNewTaskClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/assign/v1/{order_id}":{"patch":{"operationId":"orders_assign_v1","summary":"Assign","description":"Adds operator(s) to the caller's assignees on the order. Coordinator writes coordinator_assigned_user_ids; executor writes executor_assigned_user_ids on matching task_group_details. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersAssignReq) -> (bool)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersAssignReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/cancel/v1/{order_id}":{"put":{"operationId":"orders_cancel_v1","summary":"Cancel","description":"Cancels an order and non-terminal child entities in a transaction. | authz_personas=[task_group_operating_org_operators] | () -> (bool)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/cancel_many/v1":{"put":{"operationId":"orders_cancel_many_v1","summary":"Cancel many","description":"Cancels multiple orders and their non-terminal child entities in a transaction. | authz_personas=[task_group_operating_org_operators] | (OrdersCancelManyReq) -> (bool)","tags":["orders"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersCancelManyReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/coordinator_task_lists_to_apply_at_order_staging/add/v1/{order_id}/{task_list_id}":{"post":{"operationId":"orders_add_coordinator_task_list_to_apply_at_order_staging_v1","summary":"Add coordinator staging task list","description":"Adds or updates a coordinator task list to apply when the draft is staged. | authz_personas=[coordinator_org_operators] | (UTCDatetime | None) -> (bool)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_list_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"department_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"entry_tag","in":"query","description":"Context tag for the generated tasks","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":["string","null"],"format":"date-time"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/coordinator_task_lists_to_apply_at_order_staging/remove/v1/{order_id}/{task_list_id}":{"post":{"operationId":"orders_remove_coordinator_task_list_to_apply_at_order_staging_v1","summary":"Remove coordinator staging task list","description":"Removes a coordinator task list pending application at draft staging. | authz_personas=[coordinator_org_operators] | () -> (bool)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_list_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/delete_draft/v1/{order_id}":{"delete":{"operationId":"orders_delete_draft_v1","summary":"Delete draft","description":"Hard-deletes a draft order and all dependent entities. | authz_personas=[draft_creator_org_operator] | () -> (bool)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/delete_many_drafts/v1":{"delete":{"operationId":"orders_delete_many_drafts_v1","summary":"Delete many drafts","description":"Hard-deletes multiple draft orders and all dependent entities. | authz_personas=[draft_creator_org_operator] | (OrdersDeleteManyDraftsReq) -> (OrdersDeleteManyDraftsRes)","tags":["orders"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteManyDraftsRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersDeleteManyDraftsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/stage/v1/{order_id}":{"patch":{"operationId":"orders_stage_v1","summary":"Stage","description":"Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/suggested_department/v1/{order_id}":{"get":{"operationId":"orders_get_suggested_department_v1","summary":"Get suggested department","description":"Returns the coordinator's account-level default department for the order's shipper. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (PydanticObjectId | None)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":["string","null"]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task_group_ordering/v1/{order_id}":{"put":{"operationId":"orders_task_group_ordering_v1","summary":"Set task-group ordering","description":"Sets task-group ordering on an order ensuring terminal task groups precede non-terminal task groups. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrdersTaskGroupOrderingReq) -> (bool)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersTaskGroupOrderingReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/typeahead/label/v1":{"get":{"operationId":"orders_typeahead_label_v1","summary":"Typeahead by order label","description":"Returns distinct label values matching the query for orders where the caller is coordinator (coordinator_labels) or executor (task_group_details.executor_labels). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[OrderLabelTypeaheadResult])","tags":["orders"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrderLabelTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/typeahead/v1":{"get":{"operationId":"orders_typeahead_v1","summary":"Typeahead by order identifiers","description":"Returns distinct order short ID, off-CHRT reference ID, and AWB values matching the query via case-insensitive regex. Searches visible non-draft orders and caller-created draft orders. | authz: allowed_org_types=[provider, shipper], min_org_role=operator | () -> (list[OrderTypeaheadResult])","tags":["orders"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrderTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/unassign/v1/{order_id}":{"patch":{"operationId":"orders_unassign_v1","summary":"Unassign","description":"Removes operator(s) from the caller's assignees on the order. Coordinator writes coordinator_assigned_user_ids; executor writes executor_assigned_user_ids on matching task_group_details. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUnassignReq) -> (bool)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersUnassignReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/undo_cancel/v1/{order_id}":{"put":{"operationId":"orders_undo_cancel_v1","summary":"Undo cancellation","description":"Reopens a cancelled order, restaging every cancelled task group, task, task artifact, operations task, and cargo on it regardless of when each was cancelled, then re-deriving order, cargo, and driver status from the surviving work. | authz_personas=[task_group_operating_org_operators] | () -> (bool)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/update_departments/v1/{order_id}":{"patch":{"operationId":"orders_update_departments_v1","summary":"Update departments","description":"Replaces department_ids for the caller's role on the order. Coordinator writes coordinator_department_ids; executor writes executor_department_ids on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateDepartmentsReq) -> (bool)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersUpdateDepartmentsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/update_draft/v1/{order_id}":{"patch":{"operationId":"orders_update_draft_v1","summary":"Update draft","description":"Updates service-line and organization assignments on a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersUpdateDraftReq) -> (OrdersUpdateDraftRes)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersUpdateDraftRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersUpdateDraftReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/update_labels/v1/{order_id}":{"patch":{"operationId":"orders_update_labels_v1","summary":"Update labels","description":"Replaces labels for the caller's role on the order. Coordinator writes coordinator_labels; executor writes executor_labels on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateLabelsReq) -> (bool)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersUpdateLabelsReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/update_off_chrt_reference_id/v1/{order_id}":{"patch":{"operationId":"orders_update_off_chrt_reference_id_v1","summary":"Update off-chrt reference ID","description":"Updates off_chrt_reference_id on an order. Drafts require the creating org's operator; operational orders require the order creator org's operator. | authz_personas=[draft_creator_org_operator, order_creator_org_operators] | (OrdersUpdateOffChrtReferenceIdReq) -> (OrdersUpdateOffChrtReferenceIdRes)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersUpdateOffChrtReferenceIdRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersUpdateOffChrtReferenceIdReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/validate_draft/v1/{order_id}":{"get":{"operationId":"orders_validate_draft_v1","summary":"Validate draft","description":"Validates a draft order for staging and returns requirement results. | authz_personas=[draft_creator_org_operator] | () -> (OrderDraftValidationResult)","tags":["orders"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDraftValidationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/cargo/add/v1":{"post":{"operationId":"cargo_add_v1","summary":"Add cargo","description":"Adds cargo to an order with lifecycle-specific authorization and initial status. | (OrdersAddCargoReq) -> (PydanticObjectId)","tags":["cargo"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersAddCargoReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/cargo/associate_with_task/v1":{"post":{"operationId":"cargo_associate_with_task_v1","summary":"Associate cargo with task","description":"Associates cargo with an order task and updates operational cargo status when applicable. | (OrdersAssociateCargoWithTaskReq) -> (bool)","tags":["cargo"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersAssociateCargoWithTaskReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/cargo/delete/v1/{cargo_id}":{"delete":{"operationId":"cargo_delete_v1","summary":"Delete cargo","description":"Deletes cargo in any lifecycle state, removes task associations, and resynchronizes the order AWB cache. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (bool)","tags":["cargo"],"parameters":[{"name":"cargo_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/cargo/duplicate/v1/{cargo_id}":{"post":{"operationId":"cargo_duplicate_v1","summary":"Duplicate cargo","description":"Duplicates cargo and all of its task associations within an order. | () -> (PydanticObjectId)","tags":["cargo"],"parameters":[{"name":"cargo_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/cargo/unassociate_with_task/v1":{"post":{"operationId":"cargo_unassociate_with_task_v1","summary":"Unassociate cargo from task","description":"Removes cargo from an order task and updates operational cargo status when applicable. | (OrdersUnassociateCargoWithTaskReq) -> (bool)","tags":["cargo"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersUnassociateCargoWithTaskReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/cargo/update/v1/{cargo_id}":{"patch":{"operationId":"cargo_update_v1","summary":"Update cargo","description":"Updates cargo details and synchronizes the parent order's AWB list. | (CargoClientUpdate1) -> (PydanticObjectId)","tags":["cargo"],"parameters":[{"name":"cargo_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/drafts/create_from_order_template_new/v1":{"post":{"operationId":"drafts_create_from_order_template_new_v1","summary":"Create draft from template core","description":"Creates a draft Order through one of three paths: (1) provide only order_template_new_id to load the saved template's core and record that template as the Order's provenance; (2) provide only order_template_new_core to materialize an ad hoc submitted core without template provenance; (3) provide both to record and validate the saved template as provenance while materializing the submitted core, without modifying the saved template. | authz: min_org_role=operator | (OrdersCreateDraftFromOrderTemplateNewReq) -> (OrdersOpenDraftRes)","tags":["drafts"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersOpenDraftRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersCreateDraftFromOrderTemplateNewReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/drafts/open/v1":{"post":{"operationId":"drafts_open_v1","summary":"Open draft","description":"Opens a new draft order shell with org assignments based on caller's organization type. | authz: min_org_role=operator | (OrdersOpenDraftReq) -> (OrdersOpenDraftRes)","tags":["drafts"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersOpenDraftRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersOpenDraftReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/expanded/for_provider_operators/v1/{order_ref}":{"post":{"operationId":"expanded_for_provider_operators_v1","summary":"Retrieve (via POST) for provider operators","description":"Retrieves an expanded order for a provider org that is the coordinator, an executor, or both. Executor-only callers receive only their task groups. Drafts are visible only to operators in the creating provider org; coordinator responses include unassigned_cargos when expand_cargos is requested. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrderExpandedForProvider)","tags":["expanded"],"parameters":[{"name":"order_ref","in":"path","description":"Order ID, short ID, or off-chrt reference ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderExpandedForProvider"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAndTaskGroupExpandedReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/expanded/for_shipper_operators/v1/{order_ref}":{"post":{"operationId":"expanded_for_shipper_operators_v1","summary":"Retrieve (via POST) for shipper operators","description":"Retrieves an expanded order with optional related data for shipper operators. Drafts are visible only to operators in the creating shipper org; when expand_cargos is requested, the response includes unassigned_cargos. | authz_personas=[shipper_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrderExpandedForShipper)","tags":["expanded"],"parameters":[{"name":"order_ref","in":"path","description":"Order ID, short ID, or off-chrt reference ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderExpandedForShipper"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAndTaskGroupExpandedReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/expanded/list/for_provider_operators/v1":{"post":{"operationId":"expanded_list_for_provider_operators_v1","summary":"List (via POST) for provider operators","description":"Lists expanded orders where the caller's provider org is the coordinator, an executor, or both. Each order appears once with role-filtered task-group details. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListForProviderRes)","tags":["expanded"],"parameters":[{"name":"provider_role","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderProviderRoleFilterEnum"}},{"name":"sort_by","in":"query","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/OrderSortByEnum"},{"type":"null"}]}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Full-text search query (searches order short ID, off-CHRT reference ID, and AWB)","required":false,"schema":{"type":["string","null"]}},{"name":"filter_order_ids","in":"query","description":"Filter by selected order ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_status","in":"query","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OrderStatusEnum1"}}},{"name":"filter_service_line","in":"query","description":"Filter by service line","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ServiceLineEnum"}}},{"name":"filter_order_classification_by_task_group_type","in":"query","description":"Filter by global order classification (OBC takes precedence over flight, then ground)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskGroupTypeEnum1"}}},{"name":"filter_awb_number","in":"query","description":"Filter by exact AWB number","required":false,"schema":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"}},{"name":"filter_has_invoice","in":"query","description":"Filter by whether the order has any invoice","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_draft_started_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_draft_started_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_staged_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_staged_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_in_progress_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_in_progress_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_delivery_task_completed_at_timestamp_lte","in":"query","description":"Filter by last delivery completion time, inclusive.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_delivery_task_completed_at_timestamp_gte","in":"query","description":"Filter by last delivery completion time, inclusive.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_cancelled_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_cancelled_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_exception_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_exception_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_executor_org_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_executor_department_ids","in":"query","description":"Filter by executor department IDs","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_off_chrt_executor_org_data_id","in":"query","description":"Filter by off-CHRT executor org data ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_coordinator_org_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_shipper_org_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_off_chrt_shipper_org_data_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_coordinator_shipper_account_ids","in":"query","description":"Filter by coordinator shipper account IDs","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_coordinator_department_ids","in":"query","description":"Filter by coordinator department IDs","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_coordinator_assigned_user_ids","in":"query","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_coordinator_labels","in":"query","description":"Filter by all supplied coordinator labels (exact matches).","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersExpandedListForProviderRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAndTaskGroupExpandedReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/expanded/list/for_shipper_operators/v1":{"post":{"operationId":"expanded_list_for_shipper_operators_v1","summary":"List (via POST) for shipper operators","description":"Lists expanded orders for shipper operators with filtering, sorting, pagination, and optional search. | authz: allowed_org_types=[shipper], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListForShipperRes)","tags":["expanded"],"parameters":[{"name":"sort_by","in":"query","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/OrderSortByEnum"},{"type":"null"}]}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Full-text search query (searches order short ID, off-CHRT reference ID, and AWB)","required":false,"schema":{"type":["string","null"]}},{"name":"filter_order_ids","in":"query","description":"Filter by selected order ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_status","in":"query","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OrderStatusEnum1"}}},{"name":"filter_service_line","in":"query","description":"Filter by service line","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ServiceLineEnum"}}},{"name":"filter_order_classification_by_task_group_type","in":"query","description":"Filter by global order classification (OBC takes precedence over flight, then ground)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskGroupTypeEnum1"}}},{"name":"filter_awb_number","in":"query","description":"Filter by exact AWB number","required":false,"schema":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"}},{"name":"filter_has_invoice","in":"query","description":"Filter by whether the order has any invoice","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_draft_started_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_draft_started_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_staged_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_staged_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_in_progress_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_in_progress_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_delivery_task_completed_at_timestamp_lte","in":"query","description":"Filter by last delivery completion time, inclusive.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_delivery_task_completed_at_timestamp_gte","in":"query","description":"Filter by last delivery completion time, inclusive.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_cancelled_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_cancelled_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_exception_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_exception_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_executor_org_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_coordinator_org_id","in":"query","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersExpandedListForShipperRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAndTaskGroupExpandedReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/order_events/list/v1/{order_id}":{"get":{"operationId":"orderEvents_list_v1","summary":"List order events","description":"Lists event log entries for an order with organization and user display data hydrated, filtering, sorting, and pagination. | authz: min_org_role=administrator | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (OrderEventListRes)","tags":["orderEvents"],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/OrderEventSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_action","in":"query","description":"Filter by order event action(s)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OrderEventActionEnum1"}}},{"name":"filter_user_id","in":"query","description":"Filter by actor user ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_org_id","in":"query","description":"Filter by actor org ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_timestamp_gte","in":"query","description":"Filter timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_timestamp_lte","in":"query","description":"Filter timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderEventListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/order_events/v1/{order_event_id}":{"get":{"operationId":"orderEvents_get_v1","summary":"Get order event","description":"Retrieves a single order event log entry by its ID with organization and user name hydrated. | authz: min_org_role=administrator | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (OrderEventExpanded1)","tags":["orderEvents"],"parameters":[{"name":"order_event_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderEventExpanded1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task/add/v1":{"post":{"operationId":"task_add_v1","summary":"Add task","description":"Adds a task to an order task group. Draft tasks default to append and DRAFT status; operational tasks require an index and STAGED or COMPLETED status. | (OrdersAddTaskReq) -> (PydanticObjectId)","tags":["task"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersAddTaskReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task/delete/v1/{task_id}":{"delete":{"operationId":"task_delete_v1","summary":"Delete task","description":"Deletes a task in any lifecycle state and synchronizes affected shipping state. | () -> (bool)","tags":["task"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task/update/v1/{task_id}":{"patch":{"operationId":"task_update_v1","summary":"Update task","description":"Updates task details with lifecycle-specific authorization and synchronizes task-group mileage and order account references. | (TaskClientUpdate1) -> (PydanticObjectId)","tags":["task"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task_artifact/add/v1/{task_id}":{"post":{"operationId":"taskArtifact_add_v1","summary":"Add task artifact","description":"Adds a task artifact to an order task. Draft orders require draft_creator_org_operator and create DRAFT artifacts; operational orders require driver_for_executor, executor_org_operators, or coordinator_org_operators and create STAGED or COMPLETED artifacts. | authz_personas=[draft_creator_org_operator, driver_for_executor, executor_org_operators, coordinator_org_operators] | (OrdersAddTaskArtifactReq) -> (PydanticObjectId)","tags":["taskArtifact"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersAddTaskArtifactReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task_artifact/delete/v1/{task_artifact_id}":{"delete":{"operationId":"taskArtifact_delete_v1","summary":"Delete task artifact","description":"Deletes a task artifact and removes it from its task. Artifacts with S3 objects must have those objects deleted first. Draft orders require draft_creator_org_operator; operational orders require task_group_operating_org_operators. | authz_personas=[draft_creator_org_operator, task_group_operating_org_operators] | () -> (bool)","tags":["taskArtifact"],"parameters":[{"name":"task_artifact_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task_group/add/v1":{"post":{"operationId":"taskGroup_add_v1","summary":"Add task group","description":"Adds a task group to an order. Draft groups are DRAFT; all later lifecycle groups are STAGED and parent state is synchronized. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrdersAddTaskGroupReq) -> (PydanticObjectId)","tags":["taskGroup"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersAddTaskGroupReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task_group/add_executor/v1/{task_group_id}":{"patch":{"operationId":"taskGroup_add_executor_v1","summary":"Add task-group executor","description":"Assigns an on-platform or off-platform executor organization to an order task group. DRAFT task groups require task_group_coordinator_operators; operational task groups require coordinator_org_operators and STAGED or IN_PROGRESS status. | authz_personas=[task_group_coordinator_operators, coordinator_org_operators] | (OrdersAddTaskGroupExecutorReq) -> (bool)","tags":["taskGroup"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersAddTaskGroupExecutorReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task_group/delete/v1/{task_group_id}":{"delete":{"operationId":"taskGroup_delete_v1","summary":"Delete task group","description":"Deletes a task group in any lifecycle state and synchronizes affected shipping state. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (bool)","tags":["taskGroup"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task_group/remove_driver/v1/{task_group_id}":{"patch":{"operationId":"taskGroup_remove_driver_v1","summary":"Remove task-group driver","description":"Clears the driver from an order task group. DRAFT task groups require executor_org_operators; operational task groups require executor_org_operators or driver_for_executor and STAGED or IN_PROGRESS status. | authz_personas=[executor_org_operators, driver_for_executor] | () -> (bool)","tags":["taskGroup"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task_group/remove_executor/v1/{task_group_id}":{"patch":{"operationId":"taskGroup_remove_executor_v1","summary":"Remove task-group executor","description":"Clears the executor and assigned driver from an order task group. DRAFT task groups require task_group_coordinator_operators; operational task groups require coordinator_org_operators and STAGED or IN_PROGRESS status. | authz_personas=[task_group_coordinator_operators, coordinator_org_operators] | () -> (bool)","tags":["taskGroup"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task_group/set_flight_info/v1/{task_group_id}":{"patch":{"operationId":"taskGroup_set_flight_info_v1","summary":"Set task-group flight info","description":"Replaces the ordered flight legs on an order task group. A submitted leg that is the same physical flight (carrier, flight number, origin, destination, UTC departure date) as an existing leg keeps its id, so tasks reporting on it stay attached. Changing any of those five details is a different flight: the old leg is deleted and any task referencing it has its flight_leg_id cleared. Because flight_leg_id is not editable, re-attaching such a task requires deleting and recreating it. | (OrdersSetTaskGroupFlightInfoReq) -> (bool)","tags":["taskGroup"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersSetTaskGroupFlightInfoReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task_group/set_task_ordering/v1/{task_group_id}":{"put":{"operationId":"taskGroup_set_task_ordering_v1","summary":"Set task-group task ordering","description":"Sets task ordering in any lifecycle state, recalculating mileage and affected cargo state. | authz_personas=[draft_creator_org_operator, task_group_operating_org_operators] | (OrdersSetTaskGroupTaskOrderingReq) -> (bool)","tags":["taskGroup"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersSetTaskGroupTaskOrderingReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task_group/set_vehicle_type/v1/{task_group_id}":{"patch":{"operationId":"taskGroup_set_vehicle_type_v1","summary":"Set task-group vehicle type","description":"Sets the task-group vehicle type in any lifecycle state; vehicle_type__set_to_None clears it. | authz_personas=[draft_creator_org_operator, task_group_coordinator_operators] | (OrdersSetTaskGroupVehicleTypeReq) -> (bool)","tags":["taskGroup"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersSetTaskGroupVehicleTypeReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/task_group/update_driver/v1/{task_group_id}":{"patch":{"operationId":"taskGroup_update_driver_v1","summary":"Update task-group driver","description":"Assigns or swaps the driver on an order task group. The driver must belong to the task group's executor organization and permit direct assignment. | authz_personas=[executor_org_operators] | (OrdersUpdateTaskGroupDriverReq) -> (bool)","tags":["taskGroup"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersUpdateTaskGroupDriverReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/orders/utils/image_to_text/v1":{"post":{"operationId":"utils_image_to_text_v1","summary":"Image to text","description":"Converts a shipping-order screenshot into lightly structured text. | authz: min_org_role=operator | (UploadFile) -> (str)","tags":["utils"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_artifacts/complete/v1/{task_artifact_id}":{"put":{"operationId":"taskArtifacts_complete_v1","summary":"Complete","description":"Marks a task artifact as COMPLETED. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators] | () -> (bool)","tags":["taskArtifacts"],"parameters":[{"name":"task_artifact_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_artifacts/custody_parties/update/v1/{task_artifact_id}":{"patch":{"operationId":"taskArtifacts_update_custody_parties_v1","summary":"Update custody parties","description":"Updates or clears the parties that provided or received cargo for a task artifact. Contact references must belong to the caller's organization. | authz_personas=[draft_creator_org_operator, driver_for_executor, executor_org_operators, coordinator_org_operators] (depending on status) | (TaskArtifactCustodyPartiesUpdateReq) -> (bool)","tags":["taskArtifacts"],"parameters":[{"name":"task_artifact_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskArtifactCustodyPartiesUpdateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_artifacts/skip/v1/{task_artifact_id}":{"put":{"operationId":"taskArtifacts_skip_v1","summary":"Skip","description":"Marks a task artifact as SKIPPED. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators] | () -> (bool)","tags":["taskArtifacts"],"parameters":[{"name":"task_artifact_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_artifacts/s3_object/add/v1/{task_artifact_id}":{"post":{"operationId":"s3Object_add_v1_4","summary":"Add S3 object","description":"Uploads a file (image, PDF, etc.) to a task artifact. Retains uploaded files; previews require a clean malware scan. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | (UploadFile) -> (TaskArtifactS3ObjectMetadata1)","tags":["s3Object"],"parameters":[{"name":"task_artifact_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskArtifactS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_artifacts/s3_object/ai_image_description/v1/{task_artifact_s3_object_metadata_id}":{"patch":{"operationId":"s3Object_write_ai_image_description_v1","summary":"Write AI image description","description":"Writes the AI-generated image description onto an existing TaskArtifactS3ObjectMetadata. Called by the shipping_task_image_analysis Temporal workflow via a delegation JWT. | authz_personas=[driver_for_executor, executor_org_operators, shipper_org_operators, coordinator_org_operators] | (AIImageDescription) -> (bool)","tags":["s3Object"],"parameters":[{"name":"task_artifact_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIImageDescription"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_artifacts/s3_object/delete/v1/{task_artifact_s3_object_metadata_id}":{"delete":{"operationId":"s3Object_delete_v1_4","summary":"Delete S3 object","description":"Deletes an S3 object metadata and the associated S3 object from a task artifact. Only the uploader or an operator from the uploading org can delete. | () -> (bool)","tags":["s3Object"],"parameters":[{"name":"task_artifact_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_artifacts/s3_object/s3_object_metadata/v1/{task_artifact_s3_object_metadata_id}":{"get":{"operationId":"s3Object_get_s3_object_metadata_v1_4","summary":"Get S3 object metadata","description":"Retrieves the metadata for a task artifact S3 object, including blurhash for placeholder loading. | authz_personas=[driver_for_executor, executor_org_operators, shipper_org_operators, coordinator_org_operators] | () -> (TaskArtifactS3ObjectMetadata1)","tags":["s3Object"],"parameters":[{"name":"task_artifact_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskArtifactS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_artifacts/s3_object/v1/{task_artifact_s3_object_metadata_id}":{"get":{"operationId":"s3Object_get_v1_4","summary":"Get S3 object","description":"Streams a task artifact S3 object file from storage. | authz_personas=[driver_for_executor, executor_org_operators, shipper_org_operators, coordinator_org_operators] | () -> (binary)","tags":["s3Object"],"parameters":[{"name":"task_artifact_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Binary file content","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"Access denied by authorization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}}}},"404":{"description":"File missing from storage (FILE_NOT_FOUND), or a related resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__task_artifacts_s3_object_v1RequestNotFoundError"}}}},"422":{"description":"Malware detected (FILE_MALWARE_DETECTED), file could not be scanned (FILE_SCAN_UNSUPPORTED), or request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__task_artifacts_s3_object_v1RequestUnprocessableEntityError"}}}},"423":{"description":"No malware scan result is available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}},"503":{"description":"Malware scan result or file download is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_artifacts/scan/add/v1/{task_artifact_id}":{"post":{"operationId":"scan_add_v1","summary":"Add scan payload","description":"Appends a barcode/QR scan payload to a SCAN-type task artifact's expected or observed array (deduplicated). | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | (AddScanPayloadReq) -> (bool)","tags":["scan"],"parameters":[{"name":"task_artifact_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddScanPayloadReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_artifacts/scan/delete/v1/{task_artifact_id}":{"delete":{"operationId":"scan_delete_v1","summary":"Delete scan payload","description":"Removes a barcode/QR scan payload (by value) from a SCAN-type task artifact's expected or observed array. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (bool)","tags":["scan"],"parameters":[{"name":"task_artifact_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"kind","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ScanPayloadKindEnum"}},{"name":"payload","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/add_message/v1/{task_group_id}":{"post":{"operationId":"taskGroups_add_message_v1","summary":"Add message","description":"Adds a message to a task group's message log. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (AddMessageReq) -> (bool)","tags":["taskGroups"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMessageReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/start/v1/{task_group_id}":{"put":{"operationId":"taskGroups_start_v1","summary":"Start","description":"Starts a task group by transitioning it from STAGED to IN_PROGRESS and syncing related order state. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators] | () -> (bool)","tags":["taskGroups"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/typeahead/v1":{"get":{"operationId":"taskGroups_typeahead_v1","summary":"Typeahead by order_short_id and order_off_chrt_reference_id","description":"Returns distinct order_short_id and order_off_chrt_reference_id values matching the query via case-insensitive regex. Searches non-draft task groups where the caller's provider org is the executor. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (list[TaskGroupTypeaheadResult])","tags":["taskGroups"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskGroupTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/expanded/for_driver/v1/{task_group_id}":{"post":{"operationId":"expanded_for_driver_v1","summary":"Retrieve for driver","description":"Retrieves an expanded task group with optional related data for its assigned driver. | authz_personas=[driver_for_executor] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)","tags":["expanded"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupExpanded"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAndTaskGroupExpandedReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/expanded/for_provider_operators/v1/{task_group_id}":{"post":{"operationId":"expanded_for_provider_operators_v1_2","summary":"Retrieve for provider operators","description":"Retrieves an expanded task group when the caller's provider org is its coordinator, executor, or both. Coordinator-only callers receive empty executor_org_notes; executor-only callers receive empty coordinator_shipper_account_ids. Executor notes are limited to the caller's org. | authz_personas=[coordinator_org_operators, executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)","tags":["expanded"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupExpanded"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAndTaskGroupExpandedReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/expanded/for_shipper_operators/v1/{task_group_id}":{"post":{"operationId":"expanded_for_shipper_operators_v1_2","summary":"Retrieve for shipper operators","description":"Retrieves an expanded task group with optional related data for shipper operators. | authz_personas=[shipper_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)","tags":["expanded"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupExpanded"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAndTaskGroupExpandedReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/expanded/list/for_driver/v1":{"post":{"operationId":"expanded_list_for_driver_v1","summary":"List for driver","description":"Lists expanded task groups assigned to the caller (a driver of the executor provider) with filtering, sorting, pagination, and optional full-text search. | authz_personas=[driver_for_executor] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)","tags":["expanded"],"parameters":[{"name":"sort_by","in":"query","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupSortByEnum"},{"type":"null"}]}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Full-text search query (searches order_short_id, order_off_chrt_reference_id)","required":false,"schema":{"type":["string","null"]}},{"name":"filter_task_group_ids","in":"query","description":"Filter by selected task group ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_status","in":"query","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskGroupStatusEnum1"}}},{"name":"filter_draft_started_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_draft_started_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_staged_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_staged_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_in_progress_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_in_progress_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_skipped_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_skipped_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_cancelled_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_cancelled_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_exception_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_exception_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_coordinator_org_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_shipper_org_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_off_chrt_shipper_org_data_id","in":"query","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupExpandedListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAndTaskGroupExpandedReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/expanded/list/for_provider_operators/v1":{"post":{"operationId":"expanded_list_for_provider_operators_v1_2","summary":"List for provider operators","description":"Lists expanded task groups where the caller's provider org is the coordinator, executor, or both. Filtering, sorting, pagination, optional full-text search. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)","tags":["expanded"],"parameters":[{"name":"provider_role","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TaskGroupProviderRoleFilterEnum"}},{"name":"sort_by","in":"query","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupSortByEnum"},{"type":"null"}]}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Full-text search query (searches order_short_id, order_off_chrt_reference_id)","required":false,"schema":{"type":["string","null"]}},{"name":"filter_task_group_ids","in":"query","description":"Filter by selected task group ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_order_ids","in":"query","description":"Filter by selected order ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_status","in":"query","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskGroupStatusEnum1"}}},{"name":"filter_task_group_type","in":"query","description":"Filter by task group type","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskGroupTypeEnum1"}}},{"name":"filter_vehicle_type","in":"query","description":"Filter by any matching vehicle type","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/VehicleTypeEnum"}}},{"name":"filter_draft_started_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_draft_started_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_staged_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_staged_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_in_progress_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_in_progress_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_skipped_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_skipped_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_cancelled_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_cancelled_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_exception_at_timestamp_lte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_exception_at_timestamp_gte","in":"query","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_driver_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_coordinator_org_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_shipper_org_id","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"filter_off_chrt_shipper_org_data_id","in":"query","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupExpandedListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAndTaskGroupExpandedReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/messages/drivers/list/for_provider_operators/v1":{"get":{"operationId":"messages_list_drivers_for_provider_operators_v1","summary":"List drivers","description":"Lists the caller's org drivers with the newest message across their task group threads, most recently messaged first. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (TaskGroupMessageDriverListRes)","tags":["messages"],"parameters":[{"name":"include_drivers_without_messages","in":"query","description":"Include drivers with no matching messages, listed last","required":false,"schema":{"type":"boolean","default":true}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_statuses","in":"query","description":"Filter by task group status(es); defaults to staged and in_progress","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskGroupStatusEnum1"}}},{"name":"filter_driver_ids","in":"query","description":"Filter by driver id(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_driver_statuses","in":"query","description":"Filter by driver status(es); assigned and in_progress are drivers with active task groups","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/DriverStatusEnum"}}},{"name":"filter_last_message_at_timestamp_gte","in":"query","description":"Filter last message timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_message_at_timestamp_lte","in":"query","description":"Filter last message timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupMessageDriverListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/messages/mark_read/v1/{task_group_id}":{"post":{"operationId":"messages_mark_read_v1","summary":"Mark read","description":"Marks the caller's messages on a task group as read up to the given message timestamp; clients should batch calls (e.g. every few seconds). | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (TaskGroupMessagesMarkReadReq) -> (TaskGroupMessageReadState1)","tags":["messages"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupMessageReadState1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupMessagesMarkReadReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/messages/read_states/list/v1/{task_group_id}":{"get":{"operationId":"messages_list_read_states_v1","summary":"List read receipts","description":"Lists every participant's read marker on a task group's messages; a message is seen by a user when their last_read_message_timestamp is at or after it. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | () -> (TaskGroupMessageReadStateListRes)","tags":["messages"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupMessageReadStateListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/messages/threads/list/for_driver/v1":{"get":{"operationId":"messages_list_threads_for_driver_v1","summary":"List threads for driver","description":"Lists message threads on task groups assigned to the caller (a driver), newest message first, each with its last message and the caller's unread count. | authz: allowed_org_types=[provider], min_org_role=member | () -> (TaskGroupMessageThreadListRes)","tags":["messages"],"parameters":[{"name":"filter_statuses","in":"query","description":"Filter by task group status(es); defaults to staged and in_progress","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskGroupStatusEnum1"}}},{"name":"filter_unread","in":"query","description":"True keeps threads with messages the caller hasn't read; False keeps fully read threads","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_last_message_at_timestamp_gte","in":"query","description":"Filter last message timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_message_at_timestamp_lte","in":"query","description":"Filter last message timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"include_threads_without_messages","in":"query","description":"Include task groups that have no messages yet","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupMessageThreadListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/messages/threads/list/for_provider_operators/v1":{"get":{"operationId":"messages_list_threads_for_provider_operators_v1","summary":"List threads","description":"Lists message threads on task groups the caller's provider org coordinates or executes, newest message first, each with its last message. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (TaskGroupMessageThreadListRes)","tags":["messages"],"parameters":[{"name":"provider_role","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TaskGroupProviderRoleFilterEnum"}},{"name":"include_threads_without_messages","in":"query","description":"Include task groups that have no messages yet","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_statuses","in":"query","description":"Filter by task group status(es); defaults to staged and in_progress","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskGroupStatusEnum1"}}},{"name":"filter_driver_id","in":"query","description":"Filter by assigned driver","required":false,"schema":{"type":["string","null"]}},{"name":"filter_task_group_types","in":"query","description":"Filter by task group type(s)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskGroupTypeEnum1"}}},{"name":"filter_order_ids","in":"query","description":"Filter by order id(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_shipper_org_id","in":"query","description":"Filter by on-chrt shipper org","required":false,"schema":{"type":["string","null"]}},{"name":"filter_off_chrt_shipper_org_data_id","in":"query","description":"Filter by off-chrt shipper org","required":false,"schema":{"type":["string","null"]}},{"name":"filter_last_message_from_driver","in":"query","description":"True keeps threads whose last message was sent by the assigned driver (needs reply); False keeps the rest","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_unread","in":"query","description":"True keeps threads with messages the caller hasn't read; False keeps fully read threads","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_last_message_at_timestamp_gte","in":"query","description":"Filter last message timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_message_at_timestamp_lte","in":"query","description":"Filter last message timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupMessageThreadListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/s3_object/add/v1/{task_group_id}":{"post":{"operationId":"s3Object_add_v1_5","summary":"Add S3 object","description":"Uploads a file (image, PDF, etc.) to a task group. Retains uploaded files; previews require a clean malware scan. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (UploadFile) -> (TaskGroupS3ObjectMetadata1)","tags":["s3Object"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/s3_object/delete/v1/{task_group_s3_object_metadata_id}":{"delete":{"operationId":"s3Object_delete_v1_5","summary":"Delete S3 object","description":"Deletes an S3 object metadata and the associated S3 object from a task group. Only the uploader or an operator from the uploading org can delete. | () -> (bool)","tags":["s3Object"],"parameters":[{"name":"task_group_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/s3_object/s3_object_metadata/v1/{task_group_s3_object_metadata_id}":{"get":{"operationId":"s3Object_get_s3_object_metadata_v1_5","summary":"Get S3 object metadata","description":"Retrieves the metadata for a task group S3 object, including blurhash for placeholder loading. | authz_personas=[driver_for_executor, executor_org_operators, shipper_org_operators, coordinator_org_operators] | () -> (TaskGroupS3ObjectMetadata1)","tags":["s3Object"],"parameters":[{"name":"task_group_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupS3ObjectMetadata1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/s3_object/v1/{task_group_s3_object_metadata_id}":{"get":{"operationId":"s3Object_get_v1_5","summary":"Get S3 object","description":"Streams a task group S3 object file from storage. | authz_personas=[driver_for_executor, executor_org_operators, shipper_org_operators, coordinator_org_operators] | () -> (binary)","tags":["s3Object"],"parameters":[{"name":"task_group_s3_object_metadata_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Binary file content","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"Access denied by authorization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}}}},"404":{"description":"File missing from storage (FILE_NOT_FOUND), or a related resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__task_groups_s3_object_v1RequestNotFoundError"}}}},"422":{"description":"Malware detected (FILE_MALWARE_DETECTED), file could not be scanned (FILE_SCAN_UNSUPPORTED), or request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get__task_groups_s3_object_v1RequestUnprocessableEntityError"}}}},"423":{"description":"No malware scan result is available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}},"503":{"description":"Malware scan result or file download is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadErrorRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/task_group_id/for_driver/v1/{order_ref}":{"get":{"operationId":"taskGroupId_for_driver_v1","summary":"Get for driver","description":"Retrieves the task group IDs assigned to the caller (a driver of the executor provider) for an order. | authz_personas=[driver_for_executor] | () -> (list[PydanticObjectId])","tags":["taskGroupId"],"parameters":[{"name":"order_ref","in":"path","description":"Order ID, short ID, or off-chrt reference ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/task_groups/task_group_id/for_provider_operators/v1/{order_ref}":{"get":{"operationId":"taskGroupId_for_provider_operators_v1","summary":"Get for provider operators","description":"Retrieves task group IDs where the caller's provider org is the coordinator, executor, or both. | authz_personas=[coordinator_org_operators, executor_org_operators] | () -> (list[PydanticObjectId])","tags":["taskGroupId"],"parameters":[{"name":"order_ref","in":"path","description":"Order ID, short ID, or off-chrt reference ID","required":true,"schema":{"type":"string"}},{"name":"provider_role","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TaskGroupProviderRoleFilterEnum"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/attempt/v1/{task_id}":{"put":{"operationId":"tasks_attempt_v1","summary":"Attempt","description":"Marks a task as ATTEMPT with an optional executor organization note. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | (AttemptTaskReq) -> (bool)","tags":["tasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttemptTaskReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/complete/v1/{task_id}":{"put":{"operationId":"tasks_complete_v1","summary":"Complete","description":"Marks a task as COMPLETED, optionally recording a client-supplied completion timestamp no more than five minutes in the future. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | (TaskCompleteReq) -> (bool)","tags":["tasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCompleteReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/completion_timestamp/update/v1/{task_id}":{"patch":{"operationId":"tasks_update_completion_timestamp_v1","summary":"Update completion timestamp","description":"Corrects a completed task's completion timestamp. The driver may correct only their own completion; authorized operators may override it. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | (TaskCompletionTimestampUpdateReq) -> (bool)","tags":["tasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCompletionTimestampUpdateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/custody_parties/update/v1/{task_id}":{"patch":{"operationId":"tasks_update_custody_parties_v1","summary":"Update custody parties","description":"Updates or clears the parties that provided or received cargo for a task. Contact references must belong to the caller's organization. | authz_personas=[draft_creator_org_operator, driver_for_executor, executor_org_operators, coordinator_org_operators] (depending on status) | (TaskCustodyPartiesUpdateReq) -> (bool)","tags":["tasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCustodyPartiesUpdateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/location/from_reference/v1/{task_id}":{"put":{"operationId":"tasks_location_from_reference_v1","summary":"Set location from reference","description":"Overrides a draft or staged task location from a contact or coordinator shipper account and associates the reference. | authz_personas=[draft_creator_org_operator, order_creator_org_operators, task_group_operating_org_operators, coordinator_org_operators] | (TaskLocationFromReferenceReq) -> (PydanticObjectId)","tags":["tasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskLocationFromReferenceReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/skip/v1/{task_id}":{"put":{"operationId":"tasks_skip_v1","summary":"Skip","description":"Marks a task as SKIPPED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)","tags":["tasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/stage/v1/{task_id}":{"put":{"operationId":"tasks_stage_v1","summary":"Stage","description":"Returns a task to STAGED to correct an accidental completion, skip, or attempt. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)","tags":["tasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/wait_time/end/v1/{task_id}":{"put":{"operationId":"tasks_wait_time_end_v1","summary":"End wait time","description":"Ends an active wait-time session for a task. | authz_personas=[driver_for_executor, executor_org_operators] | () -> (bool)","tags":["tasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/wait_time/geofence/v1/{task_id}":{"get":{"operationId":"tasks_wait_time_geofence_v1","summary":"Wait geofence","description":"Checks whether the assigned driver's available location is inside the task wait-time geofence. | authz_personas=[driver_for_executor, executor_org_operators] | () -> (TaskWaitTimeGeofenceRes)","tags":["tasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWaitTimeGeofenceRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/wait_time/override/v1/{task_id}":{"patch":{"operationId":"tasks_wait_time_override_v1","summary":"Override wait time","description":"Overrides wait-time timestamps or geofence distance for a task. | authz_personas=[executor_org_operators] | (WaitTimeOverrideReq) -> (bool)","tags":["tasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitTimeOverrideReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/wait_time/start/v1/{task_id}":{"put":{"operationId":"tasks_wait_time_start_v1","summary":"Start wait time","description":"Starts wait time for a task and records whether the assigned driver's available location is inside the geofence. | authz_personas=[driver_for_executor, executor_org_operators] | () -> (bool)","tags":["tasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/wait_time/validate/v1/{task_id}":{"put":{"operationId":"tasks_wait_time_validate_v1","summary":"Validate wait time","description":"Validates wait time for a task. | authz_personas=[executor_org_operators] | () -> (bool)","tags":["tasks"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping/tasks/executor_org_notes/add/v1/{task_id}":{"post":{"operationId":"executorOrgNotes_add_v1","summary":"Add executor org note","description":"Adds an executor-side note to a task. | authz_personas=[driver_for_executor, executor_org_operators] | (AddExecutorOrgNoteReq) -> (bool)","tags":["executorOrgNotes"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddExecutorOrgNoteReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/atlas/creds/detail/v1/{provider_org_id}":{"get":{"operationId":"creds_detail_v1","summary":"Detail","description":"Returns the caller's Atlas credential for one provider, without API key. | () -> (AtlasCredsLimited1)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasCredsLimited1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/atlas/creds/list/v1":{"get":{"operationId":"creds_list_v1","summary":"List","description":"Lists the caller's Atlas credentials, one per connected provider, without API key. | () -> (AtlasCredsListRes)","tags":["creds"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasCredsListRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/atlas/creds/test/v1/{provider_org_id}":{"post":{"operationId":"creds_test_v1","summary":"Test","description":"Tests whether stored Atlas credentials can authenticate against the provider. | authz: min_org_role=operator | () -> (AtlasCredsTestRes)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasCredsTestRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/atlas/creds/v1/{provider_org_id}":{"post":{"operationId":"creds_create_v1","summary":"Create","description":"Stores Atlas credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (AtlasCredsClientCreate1) -> (PydanticObjectId)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasCredsClientCreate1"}}}},"security":[{"HTTPBearer":[]}]},"delete":{"operationId":"creds_delete_v1","summary":"Delete","description":"Deletes stored Atlas credentials for one provider. | authz: min_org_role=administrator | () -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"creds_update_v1","summary":"Update","description":"Updates stored Atlas credentials for one provider. | authz: min_org_role=administrator | (AtlasCredsClientUpdate1) -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasCredsClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/atlas/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}":{"get":{"operationId":"orders_detail_by_integration_order_id_v1","summary":"Detail by order ID","description":"Returns one mirrored Atlas order by the provider's own order ID with the provider organization expanded. | () -> (AtlasOrderExpanded1)","tags":["orders"],"parameters":[{"name":"org_id","in":"path","description":"CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)","required":true,"schema":{"type":"string"}},{"name":"integration_order_id","in":"path","description":"Atlas's own ID for the order, as carried on a unified order row","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasOrderExpanded1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/atlas/orders/detail/v1/{id}":{"get":{"operationId":"orders_detail_v1","summary":"Detail","description":"Returns one mirrored Atlas order by its Mongo ObjectId with the provider organization expanded. | () -> (AtlasOrderExpanded1)","tags":["orders"],"parameters":[{"name":"id","in":"path","description":"Mongo ObjectId of the mirror document. Atlas's own order ID is the integration_order_id, accepted by the by_integration_order_id route.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasOrderExpanded1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/atlas/orders/list/v1":{"get":{"operationId":"orders_list_v1","summary":"List","description":"Returns a paginated list of mirrored Atlas orders with provider organizations expanded, filtering, sorting, pagination, and optional search. | (AtlasOrderListFilters) -> (AtlasOrderListRes)","tags":["orders"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/AtlasOrderSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort direction","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"limit","in":"query","description":"Max items to return","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"page","in":"query","description":"Page number (1-indexed)","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"search","in":"query","description":"Search Atlas order IDs.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_atlas_order_ids","in":"query","description":"Filter by atlas order IDs","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_provider_org_id","in":"query","description":"Filter by provider org ID(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_integration_order_id","in":"query","description":"Filter by Atlas's exact order ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_mirrored_at_timestamp_gte","in":"query","description":"Filter mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_mirrored_at_timestamp_lte","in":"query","description":"Filter mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_gte","in":"query","description":"Filter updated_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_lte","in":"query","description":"Filter updated_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasOrderListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/atlas/orders/sync_one/v1":{"post":{"operationId":"orders_sync_one_v1","summary":"Sync one","description":"Fetches and mirrors one Atlas order by the provider's own order ID. | authz: min_org_role=operator | (AtlasOrderSyncOneReq) -> (AtlasOrder1)","tags":["orders"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasOrder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasOrderSyncOneReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/atlas/orders/typeahead/v1":{"get":{"operationId":"orders_typeahead_v1_2","summary":"Typeahead","description":"Returns matching integration_order_id values and their IDs within the caller's organization. | () -> (list[AtlasOrderTypeaheadResult])","tags":["orders"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AtlasOrderTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/connections/list/v1":{"get":{"operationId":"connections_list_v1","summary":"List","description":"Lists every provider the caller's organization has credentials for, across all shipping integrations, with public organization data expanded. | () -> (ShippingIntegrationConnectionListRes)","tags":["connections"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingIntegrationConnectionListRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/courie/creds/detail/v1/{provider_org_id}":{"get":{"operationId":"creds_detail_v1_2","summary":"Detail","description":"Returns the caller's Courie credential for one provider, without API key. | () -> (CourieCredsLimited1)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourieCredsLimited1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/courie/creds/list/v1":{"get":{"operationId":"creds_list_v1_2","summary":"List","description":"Lists the caller's Courie credentials, one per connected provider, without API key. | () -> (CourieCredsListRes)","tags":["creds"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourieCredsListRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/courie/creds/test/v1/{provider_org_id}":{"post":{"operationId":"creds_test_v1_2","summary":"Test","description":"Tests whether stored Courie credentials can authenticate against the provider. | authz: min_org_role=operator | () -> (CourieCredsTestRes)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourieCredsTestRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/courie/creds/v1/{provider_org_id}":{"post":{"operationId":"creds_create_v1_2","summary":"Create","description":"Stores Courie credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (CourieCredsClientCreate1) -> (PydanticObjectId)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourieCredsClientCreate1"}}}},"security":[{"HTTPBearer":[]}]},"delete":{"operationId":"creds_delete_v1_2","summary":"Delete","description":"Deletes stored Courie credentials for one provider. | authz: min_org_role=administrator | () -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"creds_update_v1_2","summary":"Update","description":"Updates stored Courie credentials for one provider. | authz: min_org_role=administrator | (CourieCredsClientUpdate1) -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourieCredsClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/courie/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}":{"get":{"operationId":"orders_detail_by_integration_order_id_v1_2","summary":"Detail by order ID","description":"Returns one mirrored Courie order by the provider's own order ID. | () -> (CourieOrder1)","tags":["orders"],"parameters":[{"name":"org_id","in":"path","description":"CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)","required":true,"schema":{"type":"string"}},{"name":"integration_order_id","in":"path","description":"Courie's own ID for the order, as carried on a unified order row","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourieOrder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/courie/orders/detail/v1/{id}":{"get":{"operationId":"orders_detail_v1_2","summary":"Detail","description":"Returns one mirrored Courie order by its Mongo ObjectId. | () -> (CourieOrder1)","tags":["orders"],"parameters":[{"name":"id","in":"path","description":"Mongo ObjectId of the mirror document. Courie's own order ID is the integration_order_id, accepted by the by_integration_order_id route.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourieOrder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/courie/orders/list/v1":{"get":{"operationId":"orders_list_v1_2","summary":"List","description":"Lists mirrored Courie orders for the caller's organization with filtering, sorting, and pagination. | () -> (CourieOrderListRes)","tags":["orders"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/CourieOrderSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_provider_org_id","in":"query","description":"Filter by provider org ID(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_integration_order_id","in":"query","description":"Filter by Courie's exact order ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_customer_id","in":"query","description":"Filter by the Courie customer the order belongs to","required":false,"schema":{"type":["string","null"]}},{"name":"filter_provider_status","in":"query","description":"Filter by Courie's own order status","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/CourieOrderStatusEnum1"},{"type":"null"}]}},{"name":"filter_mirrored_at_timestamp_gte","in":"query","description":"Filter mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_mirrored_at_timestamp_lte","in":"query","description":"Filter mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_gte","in":"query","description":"Filter updated_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_lte","in":"query","description":"Filter updated_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourieOrderListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/courie/orders/sync_one/v1":{"post":{"operationId":"orders_sync_one_v1_2","summary":"Sync one","description":"Fetches and mirrors one Courie order by the provider's own order ID, updating the unified order list alongside it. | authz: min_org_role=operator | (CourieOrderSyncOneReq) -> (CourieOrder1)","tags":["orders"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourieOrder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourieOrderSyncOneReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/cxt/creds/detail/v1/{provider_org_id}":{"get":{"operationId":"creds_detail_v1_3","summary":"Detail","description":"Returns the caller's CXT credential for one provider, without passwords or access tokens. | () -> (CxtCredsLimited1)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CxtCredsLimited1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/cxt/creds/list/v1":{"get":{"operationId":"creds_list_v1_3","summary":"List","description":"Lists the caller's CXT credentials, one per connected provider, without passwords or access tokens. | () -> (CxtCredsListRes)","tags":["creds"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CxtCredsListRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/cxt/creds/test/v1/{provider_org_id}":{"post":{"operationId":"creds_test_v1_3","summary":"Test","description":"Tests whether stored CXT credentials can authenticate against the provider. | authz: min_org_role=operator | () -> (CxtCredsTestRes)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CxtCredsTestRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/cxt/creds/v1/{provider_org_id}":{"post":{"operationId":"creds_create_v1_3","summary":"Create","description":"Stores CXT credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (CxtCredsClientCreate1) -> (PydanticObjectId)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CxtCredsClientCreate1"}}}},"security":[{"HTTPBearer":[]}]},"delete":{"operationId":"creds_delete_v1_3","summary":"Delete","description":"Deletes stored CXT credentials for one provider. | authz: min_org_role=administrator | () -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"creds_update_v1_3","summary":"Update","description":"Updates stored CXT credentials for one provider. | authz: min_org_role=administrator | (CxtCredsClientUpdate1) -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CxtCredsClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/cxt/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}":{"get":{"operationId":"orders_detail_by_integration_order_id_v1_3","summary":"Detail by order ID","description":"Returns one mirrored CXT order by the provider's own order ID with the provider organization expanded. | () -> (CxtOrderExpanded1)","tags":["orders"],"parameters":[{"name":"org_id","in":"path","description":"CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)","required":true,"schema":{"type":"string"}},{"name":"integration_order_id","in":"path","description":"CXT's own decimal ID for the order, as carried on a unified order row","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CxtOrderExpanded1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/cxt/orders/detail/v1/{id}":{"get":{"operationId":"orders_detail_v1_3","summary":"Detail","description":"Returns one mirrored CXT order by its Mongo ObjectId with the provider organization expanded. | () -> (CxtOrderExpanded1)","tags":["orders"],"parameters":[{"name":"id","in":"path","description":"Mongo ObjectId of the mirror document. CXT's own order ID is the integration_order_id, accepted by the by_integration_order_id route.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CxtOrderExpanded1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/cxt/orders/list/v1":{"get":{"operationId":"orders_list_v1_3","summary":"List","description":"Returns a paginated list of mirrored CXT orders with provider organizations expanded, filtering, sorting, pagination, and optional search. | (CxtOrderListFilters) -> (CxtOrderListRes)","tags":["orders"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/CxtOrderSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort direction","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"limit","in":"query","description":"Max items to return","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"page","in":"query","description":"Page number (1-indexed)","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"search","in":"query","description":"Search CXT order IDs.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_cxt_order_ids","in":"query","description":"Filter by cxt order IDs","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_provider_org_id","in":"query","description":"Filter by provider org ID(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_integration_order_id","in":"query","description":"Filter by CXT's exact order ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_mirrored_at_timestamp_gte","in":"query","description":"Filter mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_mirrored_at_timestamp_lte","in":"query","description":"Filter mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_gte","in":"query","description":"Filter updated_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_lte","in":"query","description":"Filter updated_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CxtOrderListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/cxt/orders/sync_one/v1":{"post":{"operationId":"orders_sync_one_v1_3","summary":"Sync one","description":"Fetches and mirrors one CXT order by the provider's own decimal order ID. | authz: min_org_role=operator | (CxtOrderSyncOneReq) -> (CxtOrder1)","tags":["orders"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CxtOrder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CxtOrderSyncOneReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/cxt/orders/typeahead/v1":{"get":{"operationId":"orders_typeahead_v1_3","summary":"Typeahead","description":"Returns matching integration_order_id values and their IDs within the caller's organization. | () -> (list[CxtOrderTypeaheadResult])","tags":["orders"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CxtOrderTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/dispatch_science/creds/detail/v1/{provider_org_id}":{"get":{"operationId":"creds_detail_v1_4","summary":"Detail","description":"Returns the caller's DispatchScience credential for one provider, without password or access token. | () -> (DispatchScienceCredsLimited1)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispatchScienceCredsLimited1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/dispatch_science/creds/list/v1":{"get":{"operationId":"creds_list_v1_4","summary":"List","description":"Lists the caller's DispatchScience credentials, one per connected provider, without password or access token. | () -> (DispatchScienceCredsListRes)","tags":["creds"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispatchScienceCredsListRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/dispatch_science/creds/test/v1/{provider_org_id}":{"post":{"operationId":"creds_test_v1_4","summary":"Test","description":"Confirms the caller's stored DispatchScience credentials for one provider still authenticate, reporting the tenant's configured workflow count. | authz: min_org_role=operator | () -> (DispatchScienceCredsTestRes)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispatchScienceCredsTestRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/dispatch_science/creds/v1/{provider_org_id}":{"post":{"operationId":"creds_create_v1_4","summary":"Create","description":"Stores DispatchScience credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (DispatchScienceCredsClientCreate1) -> (PydanticObjectId)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispatchScienceCredsClientCreate1"}}}},"security":[{"HTTPBearer":[]}]},"delete":{"operationId":"creds_delete_v1_4","summary":"Delete","description":"Deletes the caller's DispatchScience credentials for one provider, stopping future syncs. | authz: min_org_role=administrator | () -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"creds_update_v1_4","summary":"Update","description":"Updates the caller's DispatchScience credentials for one provider. | authz: min_org_role=administrator | (DispatchScienceCredsClientUpdate1) -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispatchScienceCredsClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/dispatch_science/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}":{"get":{"operationId":"orders_detail_by_integration_order_id_v1_4","summary":"Detail by order ID","description":"Returns one mirrored DispatchScience order by the provider's own order ID. | () -> (DispatchScienceOrder1)","tags":["orders"],"parameters":[{"name":"org_id","in":"path","description":"CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)","required":true,"schema":{"type":"string"}},{"name":"integration_order_id","in":"path","description":"DispatchScience's own ID for the order (its orderId), as carried on a unified order row","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispatchScienceOrder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/dispatch_science/orders/detail/v1/{id}":{"get":{"operationId":"orders_detail_v1_4","summary":"Detail","description":"Returns one mirrored DispatchScience order by its Mongo ObjectId. | () -> (DispatchScienceOrder1)","tags":["orders"],"parameters":[{"name":"id","in":"path","description":"Mongo ObjectId of the mirror document. DispatchScience's own order ID is the integration_order_id, accepted by the by_integration_order_id route.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispatchScienceOrder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/dispatch_science/orders/list/v1":{"get":{"operationId":"orders_list_v1_4","summary":"List","description":"Lists mirrored DispatchScience orders for the caller's organization with filtering, sorting, pagination, and optional search. | () -> (DispatchScienceOrderListRes)","tags":["orders"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/DispatchScienceOrderSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Search DispatchScience order IDs.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_dispatch_science_order_ids","in":"query","description":"Filter by dispatch science order IDs","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_provider_org_id","in":"query","description":"Filter by provider org ID(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_integration_order_id","in":"query","description":"Filter by DispatchScience's exact order ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_provider_status","in":"query","description":"Filter by DispatchScience's raw status integer (0 Received, 1 Assigned, 2 PickedUp, 3 EnRoute, 4 Delivered, 91 Cancelled)","required":false,"schema":{"type":["integer","null"]}},{"name":"filter_mirrored_at_timestamp_gte","in":"query","description":"Filter mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_mirrored_at_timestamp_lte","in":"query","description":"Filter mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_gte","in":"query","description":"Filter updated_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_lte","in":"query","description":"Filter updated_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispatchScienceOrderListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/dispatch_science/orders/sync_one/v1":{"post":{"operationId":"orders_sync_one_v1_4","summary":"Sync one","description":"Fetches and mirrors one DispatchScience order by the provider's own order ID. | authz: min_org_role=operator | (DispatchScienceOrderSyncOneReq) -> (DispatchScienceOrder1)","tags":["orders"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispatchScienceOrder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispatchScienceOrderSyncOneReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/dispatch_science/orders/typeahead/v1":{"get":{"operationId":"orders_typeahead_v1_4","summary":"Typeahead","description":"Returns matching integration_order_id values and their IDs within the caller's organization. | () -> (list[DispatchScienceOrderTypeaheadResult])","tags":["orders"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DispatchScienceOrderTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ecourier/creds/detail/v1/{provider_org_id}":{"get":{"operationId":"creds_detail_v1_5","summary":"Detail","description":"Returns the caller's e-Courier credential for one provider, without the password or session token. | () -> (EcourierCredsLimited1)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcourierCredsLimited1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ecourier/creds/list/v1":{"get":{"operationId":"creds_list_v1_5","summary":"List","description":"Lists the caller's e-Courier credentials, one per connected provider, without the password or session token. | () -> (EcourierCredsListRes)","tags":["creds"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcourierCredsListRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ecourier/creds/test/v1/{provider_org_id}":{"post":{"operationId":"creds_test_v1_5","summary":"Test","description":"Confirms the caller's stored e-Courier credentials for one provider can still log in, and reports which customer the credential is scoped to. | authz: min_org_role=operator | () -> (EcourierCredsTestRes)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcourierCredsTestRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ecourier/creds/v1/{provider_org_id}":{"post":{"operationId":"creds_create_v1_5","summary":"Create","description":"Stores e-Courier credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (EcourierCredsClientCreate1) -> (PydanticObjectId)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcourierCredsClientCreate1"}}}},"security":[{"HTTPBearer":[]}]},"delete":{"operationId":"creds_delete_v1_5","summary":"Delete","description":"Deletes the caller's e-Courier credentials for one provider, stopping future syncs. | authz: min_org_role=administrator | () -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"creds_update_v1_5","summary":"Update","description":"Updates the caller's e-Courier credentials for one provider. | authz: min_org_role=administrator | (EcourierCredsClientUpdate1) -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcourierCredsClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ecourier/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}":{"get":{"operationId":"orders_detail_by_integration_order_id_v1_5","summary":"Detail by order ID","description":"Returns one mirrored e-Courier order by the provider's own order number. | () -> (EcourierOrder1)","tags":["orders"],"parameters":[{"name":"org_id","in":"path","description":"CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)","required":true,"schema":{"type":"string"}},{"name":"integration_order_id","in":"path","description":"e-Courier's own order number for the order, as carried on a unified order row","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcourierOrder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ecourier/orders/detail/v1/{id}":{"get":{"operationId":"orders_detail_v1_5","summary":"Detail","description":"Returns one mirrored e-Courier order by its Mongo ObjectId. | () -> (EcourierOrder1)","tags":["orders"],"parameters":[{"name":"id","in":"path","description":"Mongo ObjectId of the mirror document. e-Courier's own order number is the integration_order_id, accepted by the by_integration_order_id route.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcourierOrder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ecourier/orders/list/v1":{"get":{"operationId":"orders_list_v1_5","summary":"List","description":"Lists mirrored e-Courier orders for the caller's organization with filtering, sorting, and pagination. | () -> (EcourierOrderListRes)","tags":["orders"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/EcourierOrderSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_provider_org_id","in":"query","description":"Filter by provider org ID(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_integration_order_id","in":"query","description":"Filter by e-Courier's exact order number","required":false,"schema":{"type":["string","null"]}},{"name":"filter_provider_status_raw","in":"query","description":"Filter by e-Courier's raw OrderStatus letter. Not reliably operational; prefer the unified status on the cross-integration list.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_mirrored_at_timestamp_gte","in":"query","description":"Filter mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_mirrored_at_timestamp_lte","in":"query","description":"Filter mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_gte","in":"query","description":"Filter updated_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_lte","in":"query","description":"Filter updated_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcourierOrderListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ecourier/orders/sync_one/v1":{"post":{"operationId":"orders_sync_one_v1_5","summary":"Sync one","description":"Fetches and mirrors one e-Courier order by the provider's own order number, updating the unified order list alongside it. | authz: min_org_role=operator | (EcourierOrderSyncOneReq) -> (EcourierOrder1)","tags":["orders"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcourierOrder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcourierOrderSyncOneReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/integration_executors/list/v1":{"get":{"operationId":"integrationExecutors_list_v1","summary":"List integration executors","description":"Lists all distinct integration executor organizations that have credentials configured across any shipping integration, with public organization data expanded. | authz: min_org_role=operator | () -> (ShippingIntegrationIntegrationExecutorListRes)","tags":["integrationExecutors"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingIntegrationIntegrationExecutorListRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ontime360/creds/detail/v1/{provider_org_id}":{"get":{"operationId":"creds_detail_v1_6","summary":"Detail","description":"Returns the caller's OnTime360 credential for one provider, without the API key. | () -> (OnTime360CredsLimited1)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnTime360CredsLimited1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ontime360/creds/list/v1":{"get":{"operationId":"creds_list_v1_6","summary":"List","description":"Lists the caller's OnTime360 credentials, one per connected provider, without the API key. | () -> (OnTime360CredsListRes)","tags":["creds"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnTime360CredsListRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ontime360/creds/test/v1/{provider_org_id}":{"post":{"operationId":"creds_test_v1_6","summary":"Test","description":"Confirms the caller's stored OnTime360 credentials for one provider can still perform a scoped read, best-effort refreshes the provider's own account label for the caller to eyeball, and reports the provider's own reported time zones beside the stored one. | authz: min_org_role=operator | () -> (OnTime360CredsTestRes)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnTime360CredsTestRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ontime360/creds/v1/{provider_org_id}":{"post":{"operationId":"creds_create_v1_6","summary":"Create","description":"Stores OnTime360 credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (OnTime360CredsClientCreate1) -> (PydanticObjectId)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnTime360CredsClientCreate1"}}}},"security":[{"HTTPBearer":[]}]},"delete":{"operationId":"creds_delete_v1_6","summary":"Delete","description":"Deletes the caller's OnTime360 credentials for one provider, stopping future syncs. | authz: min_org_role=administrator | () -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"creds_update_v1_6","summary":"Update","description":"Updates the caller's OnTime360 credentials for one provider. | authz: min_org_role=administrator | (OnTime360CredsClientUpdate1) -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnTime360CredsClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ontime360/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}":{"get":{"operationId":"orders_detail_by_integration_order_id_v1_6","summary":"Detail by order ID","description":"Returns one mirrored OnTime360 order by the provider's own order GUID. | () -> (OnTime360Order1)","tags":["orders"],"parameters":[{"name":"org_id","in":"path","description":"CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)","required":true,"schema":{"type":"string"}},{"name":"integration_order_id","in":"path","description":"OnTime360's own GUID for the order (its ID), as carried on a unified order row","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnTime360Order1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ontime360/orders/detail/v1/{id}":{"get":{"operationId":"orders_detail_v1_6","summary":"Detail","description":"Returns one mirrored OnTime360 order by its Mongo ObjectId. | () -> (OnTime360Order1)","tags":["orders"],"parameters":[{"name":"id","in":"path","description":"Mongo ObjectId of the mirror document. OnTime360's own order GUID is the integration_order_id, accepted by the by_integration_order_id route.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnTime360Order1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ontime360/orders/list/v1":{"get":{"operationId":"orders_list_v1_6","summary":"List","description":"Lists mirrored OnTime360 orders for the caller's organization with filtering, sorting, pagination, and optional search. | () -> (OnTime360OrderListRes)","tags":["orders"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/OnTime360OrderSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Search OnTime360 order IDs.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_ontime360_order_ids","in":"query","description":"Filter by ontime360 order IDs","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_provider_org_id","in":"query","description":"Filter by provider org ID(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_integration_order_id","in":"query","description":"Filter by OnTime360's exact order GUID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_provider_status_level","in":"query","description":"Filter by OnTime360's raw status level","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/OnTime360StatusLevelEnum1"},{"type":"null"}]}},{"name":"filter_mirrored_at_timestamp_gte","in":"query","description":"Filter mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_mirrored_at_timestamp_lte","in":"query","description":"Filter mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_gte","in":"query","description":"Filter updated_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_lte","in":"query","description":"Filter updated_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnTime360OrderListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ontime360/orders/sync_one/v1":{"post":{"operationId":"orders_sync_one_v1_6","summary":"Sync one","description":"Fetches and mirrors one OnTime360 order by the provider's own order GUID, updating the unified order list alongside it. | authz: min_org_role=operator | (OnTime360OrderSyncOneReq) -> (OnTime360Order1)","tags":["orders"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnTime360Order1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnTime360OrderSyncOneReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/ontime360/orders/typeahead/v1":{"get":{"operationId":"orders_typeahead_v1_5","summary":"Typeahead","description":"Returns matching integration_order_id values and their IDs within the caller's organization. | () -> (list[OnTime360OrderTypeaheadResult])","tags":["orders"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OnTime360OrderTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/orders/detail/v1/{id}":{"get":{"operationId":"orders_detail_v1_7","summary":"Detail","description":"Returns one unified shipping integration order by its Mongo ObjectId with related organizations expanded. | () -> (ShippingIntegrationOrderExpanded1)","tags":["orders"],"parameters":[{"name":"id","in":"path","description":"Mongo ObjectId of the unified order document. The provider's own order ID is the integration_order_id field on the returned order.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingIntegrationOrderExpanded1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/orders/export/v1":{"get":{"operationId":"orders_export_v1","summary":"Export","description":"Exports all the caller's integration orders within an inclusive completion timestamp range, newest completions first, without pagination. | () -> (ShippingIntegrationOrderListRes)","tags":["orders"],"parameters":[{"name":"filter_completed_at_timestamp_gte","in":"query","description":"Include orders completed at or after this timestamp.","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"filter_completed_at_timestamp_lte","in":"query","description":"Include orders completed at or before this timestamp.","required":true,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingIntegrationOrderListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/orders/list/for_integration_executor_operators/v1":{"get":{"operationId":"orders_list_for_integration_executor_operators_v1","summary":"List for integration executor","description":"Lists orders assigned to the caller's integration executor organization across all shipping integrations with integration coordinator organizations expanded, filtering, sorting, pagination, and optional search. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ShippingIntegrationOrderListRes)","tags":["orders"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/ShippingIntegrationOrderSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Search provider order IDs and reference numbers.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_shipping_integration_order_ids","in":"query","description":"Filter by selected shipping integration order ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_shipping_integration","in":"query","description":"Filter by shipping integration(s)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OrgShippingIntegrationEnum1"}}},{"name":"filter_status","in":"query","description":"Filter by unified status(es)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ShippingIntegrationOrderStatusEnum1"}}},{"name":"filter_integration_order_id","in":"query","description":"Filter by the provider's exact order ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_reference_number","in":"query","description":"Filter by an exact reference number carried on the order","required":false,"schema":{"type":["string","null"]}},{"name":"filter_ordered_at_timestamp_gte","in":"query","description":"Filter ordered_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_ordered_at_timestamp_lte","in":"query","description":"Filter ordered_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_mirrored_at_timestamp_gte","in":"query","description":"Filter last_mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_mirrored_at_timestamp_lte","in":"query","description":"Filter last_mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_first_mirrored_at_timestamp_gte","in":"query","description":"Filter first_mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_first_mirrored_at_timestamp_lte","in":"query","description":"Filter first_mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingIntegrationOrderListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/orders/list/v1":{"get":{"operationId":"orders_list_v1_7","summary":"List","description":"Lists the caller's orders from every shipping integration with provider organizations expanded, filtering, sorting, pagination, and optional search. | () -> (ShippingIntegrationOrderListRes)","tags":["orders"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/ShippingIntegrationOrderSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Search provider order IDs and reference numbers.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_shipping_integration_order_ids","in":"query","description":"Filter by selected shipping integration order ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_shipping_integration","in":"query","description":"Filter by shipping integration(s)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OrgShippingIntegrationEnum1"}}},{"name":"filter_provider_org_id","in":"query","description":"Filter by provider org ID(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_status","in":"query","description":"Filter by unified status(es)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ShippingIntegrationOrderStatusEnum1"}}},{"name":"filter_integration_order_id","in":"query","description":"Filter by the provider's exact order ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_reference_number","in":"query","description":"Filter by an exact reference number carried on the order","required":false,"schema":{"type":["string","null"]}},{"name":"filter_ordered_at_timestamp_gte","in":"query","description":"Filter ordered_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_ordered_at_timestamp_lte","in":"query","description":"Filter ordered_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_gte","in":"query","description":"Filter completed_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_lte","in":"query","description":"Filter completed_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_mirrored_at_timestamp_gte","in":"query","description":"Filter last_mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_mirrored_at_timestamp_lte","in":"query","description":"Filter last_mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_first_mirrored_at_timestamp_gte","in":"query","description":"Filter first_mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_first_mirrored_at_timestamp_lte","in":"query","description":"Filter first_mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingIntegrationOrderListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/orders/status_summary/v1":{"get":{"operationId":"orders_status_summary_v1","summary":"Status summary","description":"Counts the caller's shipping integration orders by unified status. | () -> (ShippingIntegrationOrderStatusSummaryRes)","tags":["orders"],"parameters":[{"name":"filter_shipping_integration_order_ids","in":"query","description":"Filter by selected shipping integration order ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_shipping_integration","in":"query","description":"Filter by shipping integration(s)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OrgShippingIntegrationEnum1"}}},{"name":"filter_provider_org_id","in":"query","description":"Filter by provider org ID(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_status","in":"query","description":"Filter by unified status(es)","required":false,"schema":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ShippingIntegrationOrderStatusEnum1"}}},{"name":"filter_integration_order_id","in":"query","description":"Filter by the provider's exact order ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_reference_number","in":"query","description":"Filter by an exact reference number carried on the order","required":false,"schema":{"type":["string","null"]}},{"name":"filter_ordered_at_timestamp_gte","in":"query","description":"Filter ordered_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_ordered_at_timestamp_lte","in":"query","description":"Filter ordered_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_gte","in":"query","description":"Filter completed_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_completed_at_timestamp_lte","in":"query","description":"Filter completed_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_mirrored_at_timestamp_gte","in":"query","description":"Filter last_mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_mirrored_at_timestamp_lte","in":"query","description":"Filter last_mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_first_mirrored_at_timestamp_gte","in":"query","description":"Filter first_mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_first_mirrored_at_timestamp_lte","in":"query","description":"Filter first_mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingIntegrationOrderStatusSummaryRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/orders/typeahead/v1":{"get":{"operationId":"orders_typeahead_v1_6","summary":"Typeahead","description":"Returns distinct integration order IDs and reference numbers matching the query via case-insensitive regex within the caller's organization. | () -> (list[ShippingIntegrationOrderTypeaheadResult])","tags":["orders"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ShippingIntegrationOrderTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/xcelerator/creds/detail/v1/{provider_org_id}":{"get":{"operationId":"creds_detail_v1_7","summary":"Detail","description":"Returns the caller's Xcelerator credential for one provider, without password or access token. | () -> (XceleratorCredsLimited1)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XceleratorCredsLimited1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/xcelerator/creds/list/v1":{"get":{"operationId":"creds_list_v1_7","summary":"List","description":"Lists the caller's Xcelerator credentials, one per connected provider, without password or access token. | () -> (XceleratorCredsListRes)","tags":["creds"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XceleratorCredsListRes"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/xcelerator/creds/test/v1/{provider_org_id}":{"post":{"operationId":"creds_test_v1_7","summary":"Test","description":"Confirms the caller's stored Xcelerator credentials for one provider can still obtain an access token, and best-effort refreshes the provider's own account label for the caller to eyeball. | authz: min_org_role=operator | () -> (XceleratorCredsTestRes)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XceleratorCredsTestRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/xcelerator/creds/v1/{provider_org_id}":{"post":{"operationId":"creds_create_v1_7","summary":"Create","description":"Stores Xcelerator credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (XceleratorCredsClientCreate1) -> (PydanticObjectId)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XceleratorCredsClientCreate1"}}}},"security":[{"HTTPBearer":[]}]},"delete":{"operationId":"creds_delete_v1_7","summary":"Delete","description":"Deletes the caller's Xcelerator credentials for one provider, stopping future syncs. | authz: min_org_role=administrator | () -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"creds_update_v1_7","summary":"Update","description":"Updates the caller's Xcelerator credentials for one provider. | authz: min_org_role=administrator | (XceleratorCredsClientUpdate1) -> (bool)","tags":["creds"],"parameters":[{"name":"provider_org_id","in":"path","description":"Must be a string starting with `org_`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XceleratorCredsClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/xcelerator/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}":{"get":{"operationId":"orders_detail_by_integration_order_id_v1_7","summary":"Detail by order ID","description":"Returns one mirrored Xcelerator order by the provider's own order ID with the provider organization expanded. | () -> (XceleratorOrderExpanded1)","tags":["orders"],"parameters":[{"name":"org_id","in":"path","description":"CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)","required":true,"schema":{"type":"string"}},{"name":"integration_order_id","in":"path","description":"Xcelerator's own ID for the order (its OrderTrackingId), as carried on a unified order row","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XceleratorOrderExpanded1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/xcelerator/orders/detail/v1/{id}":{"get":{"operationId":"orders_detail_v1_8","summary":"Detail","description":"Returns one mirrored Xcelerator order by its Mongo ObjectId with the provider organization expanded. | () -> (XceleratorOrderExpanded1)","tags":["orders"],"parameters":[{"name":"id","in":"path","description":"Mongo ObjectId of the mirror document. Xcelerator's own order ID is the integration_order_id, accepted by the by_integration_order_id route.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XceleratorOrderExpanded1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/xcelerator/orders/list/v1":{"get":{"operationId":"orders_list_v1_8","summary":"List","description":"Lists mirrored Xcelerator orders with provider organizations expanded, filtering, sorting, pagination, and optional search. | () -> (XceleratorOrderListRes)","tags":["orders"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/XceleratorOrderSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc).","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Search Xcelerator order IDs.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_xcelerator_order_ids","in":"query","description":"Filter by xcelerator order IDs","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_provider_org_id","in":"query","description":"Filter by provider org ID(s)","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_integration_order_id","in":"query","description":"Filter by Xcelerator's exact order tracking ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_provider_status_raw","in":"query","description":"Filter by Xcelerator's raw status letter","required":false,"schema":{"type":["string","null"]}},{"name":"filter_mirrored_at_timestamp_gte","in":"query","description":"Filter mirrored_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_mirrored_at_timestamp_lte","in":"query","description":"Filter mirrored_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_gte","in":"query","description":"Filter updated_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_updated_at_timestamp_lte","in":"query","description":"Filter updated_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XceleratorOrderListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/xcelerator/orders/sync_one/v1":{"post":{"operationId":"orders_sync_one_v1_7","summary":"Sync one","description":"Fetches and mirrors one Xcelerator order by the provider's own order ID. | authz: min_org_role=operator | (XceleratorOrderSyncOneReq) -> (XceleratorOrder1)","tags":["orders"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XceleratorOrder1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XceleratorOrderSyncOneReq"}}}},"security":[{"HTTPBearer":[]}]}},"/shipping_integrations/xcelerator/orders/typeahead/v1":{"get":{"operationId":"orders_typeahead_v1_7","summary":"Typeahead","description":"Returns matching integration_order_id values and their IDs within the caller's organization. | () -> (list[XceleratorOrderTypeaheadResult])","tags":["orders"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/XceleratorOrderTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/devices/archive/v1":{"post":{"operationId":"devices_archive_v1","summary":"Archive","description":"Archives a device without an active session or cargo. Terminate or unlink tracking first. | auth: api_key | () -> (bool)","tags":["devices"],"parameters":[{"name":"device_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/devices/for_cargo/v1":{"get":{"operationId":"devices_for_cargo_v1","summary":"For cargo","description":"Lists devices currently or previously linked to a cargo, ordered by MAC address. Access follows the cargo's order. | authz_personas=[coordinator_org_operators, shipper_org_operators, executor_org_operators, driver_for_executor] | () -> (list[DeviceForCargoRes])","tags":["devices"],"parameters":[{"name":"cargo_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceForCargoRes"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/devices/get/v1":{"get":{"operationId":"devices_get_v1","summary":"Get","description":"Retrieves a single device by its ID with expanded sessions and cargos. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (DeviceExpandedRes)","tags":["devices"],"parameters":[{"name":"device_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceExpandedRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/devices/link_to_cargo/v1":{"post":{"operationId":"devices_link_to_cargo_v1","summary":"Link to cargo","description":"Links an owned device to cargo and activates its tracker. Relinking the same cargo reactivates a stopped tracker. | authz: min_org_role=operator | authz_personas=[coordinator_org_operators, shipper_org_operators, executor_org_operators] | () -> (bool)","tags":["devices"],"parameters":[{"name":"device_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"cargo_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/devices/list/v1":{"get":{"operationId":"devices_list_v1","summary":"List","description":"Lists devices with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (DeviceListRes)","tags":["devices"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/DeviceSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Full-text search query","required":false,"schema":{"type":["string","null"]}},{"name":"org_scope","in":"query","description":"Filter by org ownership: owned, shared, or owned_and_shared","required":false,"schema":{"$ref":"#/components/schemas/TrackingOrgScopeEnum"}},{"name":"filter_device_ids","in":"query","description":"Filter by selected device ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_device_mac_address","in":"query","description":"Filter by device MAC address (exact match)","required":false,"schema":{"type":["string","null"]}},{"name":"filter_off_chrt_reference_id","in":"query","description":"Filter by off-CHRT reference ID (exact match)","required":false,"schema":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64}},{"name":"filter_type","in":"query","description":"Filter by device type","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/TrackingDeviceTypeEnum1"},{"type":"null"}]}},{"name":"filter_active_cargo_id","in":"query","description":"Filter by active cargo ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_active_session_id","in":"query","description":"Filter by active session ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_has_active_session","in":"query","description":"Filter by whether device has an active session (true = session_id is not null, false = session_id is null)","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_has_active_cargo","in":"query","description":"Filter by whether device has an active cargo (true = cargo_id is not null, false = cargo_id is null)","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_registered_at_timestamp_gte","in":"query","description":"Filter by registered_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_registered_at_timestamp_lte","in":"query","description":"Filter by registered_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_seen_at_timestamp_gte","in":"query","description":"Filter by last_seen_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_seen_at_timestamp_lte","in":"query","description":"Filter by last_seen_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_first_seen_at_timestamp_gte","in":"query","description":"Filter by first_seen_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_first_seen_at_timestamp_lte","in":"query","description":"Filter by first_seen_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_archived","in":"query","description":"Filter by archived status","required":false,"schema":{"type":["boolean","null"]}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/devices/pause/v1":{"post":{"operationId":"devices_pause_v1","summary":"Pause","description":"Pauses a device and opens a new pause time window. | auth: api_key | () -> (bool)","tags":["devices"],"parameters":[{"name":"device_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/devices/register_to_org/v1":{"post":{"operationId":"devices_register_to_org_v1","summary":"Register","description":"Registers a tracking device to the caller's organization. If the device is already registered to a different organization, returns 409 Conflict. | auth: api_key | (DeviceClientCreate1) -> (PydanticObjectId)","tags":["devices"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/devices/typeahead/v1":{"get":{"operationId":"devices_typeahead_v1","summary":"Typeahead","description":"Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching devices. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (list[DeviceTypeaheadResult])","tags":["devices"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},{"name":"org_scope","in":"query","description":"Filter by org ownership: owned, shared, or owned_and_shared","required":false,"schema":{"$ref":"#/components/schemas/TrackingOrgScopeEnum"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/devices/unlink_from_cargo/v1":{"post":{"operationId":"devices_unlink_from_cargo_v1","summary":"Unlink from cargo","description":"Unlinks an owned device from its cargo and deactivates its tracker. Returns false when the device is not linked to cargo. | authz: min_org_role=operator | () -> (bool)","tags":["devices"],"parameters":[{"name":"device_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/devices/unpause/v1":{"post":{"operationId":"devices_unpause_v1","summary":"Unpause","description":"Unpauses a device. Closes the open pause time window. | auth: api_key | () -> (bool)","tags":["devices"],"parameters":[{"name":"device_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/devices/update/v1":{"post":{"operationId":"devices_update_v1","summary":"Update","description":"Updates a device's type, comments, and/or off_chrt_reference_id. Use __set_to_None flags to explicitly clear Optional fields. | auth: api_key | (DeviceClientUpdate1) -> (bool)","tags":["devices"],"parameters":[{"name":"device_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/devices/update_shared_orgs/v1":{"post":{"operationId":"devices_update_shared_orgs_v1","summary":"Update shared orgs","description":"Adds and/or removes org_ids from a device's shared_with_org_ids list. Removal overrides addition. | auth: api_key | (DevicesUpdateSharedOrgsReq1) -> (bool)","tags":["devices"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesUpdateSharedOrgsReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/driver/update/v2":{"post":{"operationId":"driver_update_v2","summary":"Update location (v2)","description":"Records driver location updates with a client-supplied capture timestamp. Drops pings from off-duty drivers (unavailable and no in-progress task group); otherwise writes a driver_by_driver ping, updates the driver's last seen, and records tracking data for all IN_PROGRESS task groups and their associated IN_TRANSIT cargos. | auth: api_key | (DriverByDriverDataPointClientCreate1) -> (DriverUpdateRes)","tags":["driver"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverUpdateRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverByDriverDataPointClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/geofence_templates/archive/v1/{geofence_template_id}":{"post":{"operationId":"geofenceTemplates_archive_v1","summary":"Archive","description":"Archives a geofence template owned by the caller's organization. | authz: min_org_role=operator | () -> (bool)","tags":["geofenceTemplates"],"parameters":[{"name":"geofence_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/geofence_templates/list/v1":{"get":{"operationId":"geofenceTemplates_list_v1","summary":"List","description":"Lists geofence templates for the caller's organization. | authz: min_org_role=operator | () -> (GeofenceTemplateListRes)","tags":["geofenceTemplates"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by.","required":false,"schema":{"$ref":"#/components/schemas/GeofenceTemplateSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order.","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_archived","in":"query","description":"Include archived templates instead of active templates.","required":false,"schema":{"type":"boolean","default":false}},{"name":"filter_owned_by_user_id","in":"query","description":"Filter by the user that created the template.","required":false,"schema":{"type":["string","null"]}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter created_at_timestamp >= value.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter created_at_timestamp <= value.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_gte","in":"query","description":"Filter last_edited_at_timestamp >= value.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_edited_at_timestamp_lte","in":"query","description":"Filter last_edited_at_timestamp <= value.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_used_at_timestamp_gte","in":"query","description":"Filter last_used_at_timestamp >= value.","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_used_at_timestamp_lte","in":"query","description":"Filter last_used_at_timestamp <= value.","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeofenceTemplateListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/geofence_templates/unarchive/v1/{geofence_template_id}":{"post":{"operationId":"geofenceTemplates_unarchive_v1","summary":"Unarchive","description":"Restores an archived geofence template owned by the caller's organization. | authz: min_org_role=operator | () -> (bool)","tags":["geofenceTemplates"],"parameters":[{"name":"geofence_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/geofence_templates/update/v1/{geofence_template_id}":{"patch":{"operationId":"geofenceTemplates_update_v1","summary":"Update","description":"Updates an active geofence template owned by the caller's organization. | authz: min_org_role=operator | (SessionGeofenceTemplateClientUpdate1) -> (SessionGeofenceTemplate1)","tags":["geofenceTemplates"],"parameters":[{"name":"geofence_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionGeofenceTemplate1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionGeofenceTemplateClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/geofence_templates/v1":{"post":{"operationId":"geofenceTemplates_create_v1","summary":"Create","description":"Creates a geofence template owned by the caller's organization. | authz: min_org_role=operator | (SessionGeofenceTemplateClientCreate1) -> (SessionGeofenceTemplate1)","tags":["geofenceTemplates"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionGeofenceTemplate1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionGeofenceTemplateClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/geofence_templates/v1/{geofence_template_id}":{"get":{"operationId":"geofenceTemplates_get_by_id_v1","summary":"Get","description":"Retrieves a geofence template owned by the caller's organization. | authz: min_org_role=operator | () -> (SessionGeofenceTemplate1)","tags":["geofenceTemplates"],"parameters":[{"name":"geofence_template_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionGeofenceTemplate1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/create_session/v1":{"post":{"operationId":"sessions_create_session_v1","summary":"Create","description":"Creates a tracking session with ordered geofences or an organization template and links its device. | auth: api_key | authz: min_org_role=operator | (SessionsCreateV1Req) -> (PydanticObjectId)","tags":["sessions"],"parameters":[{"name":"device_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"no_auto_termination","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionsCreateV1Req"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/flight_legs/v1":{"get":{"operationId":"sessions_flight_legs_v1","summary":"Flight legs","description":"Returns the session's flight legs in order, with Cirium-sourced status lazily resolved and refreshed on read. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (list[FlightLeg1])","tags":["sessions"],"parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FlightLeg1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/flight_track/v1":{"get":{"operationId":"sessions_flight_track_v1","summary":"Flight track","description":"Returns the FlightAware actual path, planned path, and latest position for one of the session's flight legs; pass force_refresh=true to bypass the cache. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)","tags":["sessions"],"parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"flight_leg_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"force_refresh","in":"query","description":"Bypass the cache and fetch the latest flight track.","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlightTrackRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/get/v1":{"get":{"operationId":"sessions_get_v1","summary":"Get","description":"Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (Session2)","tags":["sessions"],"parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/list/v1":{"get":{"operationId":"sessions_list_v1","summary":"List","description":"Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (SessionListRes)","tags":["sessions"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/SessionSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Full-text search query","required":false,"schema":{"type":["string","null"]}},{"name":"org_scope","in":"query","description":"Filter by org ownership: owned, shared, or owned_and_shared","required":false,"schema":{"$ref":"#/components/schemas/TrackingOrgScopeEnum"}},{"name":"filter_session_ids","in":"query","description":"Filter by selected session ids","required":false,"schema":{"type":["array","null"],"items":{"type":"string"}}},{"name":"filter_terminated","in":"query","description":"Filter by terminated status","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_public","in":"query","description":"Filter by public visibility","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_device_id","in":"query","description":"Filter by device ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_off_chrt_reference_id","in":"query","description":"Filter by off-CHRT reference ID (exact match)","required":false,"schema":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64}},{"name":"filter_flight_number","in":"query","description":"Filter by flight number (exact match)","required":false,"schema":{"type":["string","null"]}},{"name":"filter_flight_loaded_status","in":"query","description":"Filter by flight loaded status (exact match)","required":false,"schema":{"type":["string","null"]}},{"name":"filter_has_last_seen","in":"query","description":"Filter by whether both last_seen_at_location and last_seen_at_timestamp are set","required":false,"schema":{"type":["boolean","null"]}},{"name":"filter_created_at_timestamp_gte","in":"query","description":"Filter by created_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_created_at_timestamp_lte","in":"query","description":"Filter by created_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_seen_at_timestamp_gte","in":"query","description":"Filter by last_seen_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_last_seen_at_timestamp_lte","in":"query","description":"Filter by last_seen_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_termination_scheduled_for_timestamp_gte","in":"query","description":"Filter by termination_scheduled_for_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_termination_scheduled_for_timestamp_lte","in":"query","description":"Filter by termination_scheduled_for_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_terminated_at_timestamp_gte","in":"query","description":"Filter by terminated_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_terminated_at_timestamp_lte","in":"query","description":"Filter by terminated_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/set_flight_info/v1":{"post":{"operationId":"sessions_set_flight_info_v1","summary":"Set flight info","description":"Replaces the session's followed flights: deletes the existing session-owned FlightLeg documents and creates new ones from the supplied flight details. Each leg's Cirium flightId and status resolve lazily on read. Pass an empty list to clear all flights. | auth: api_key | authz: min_org_role=operator | (SessionSetFlightInfoReq1) -> (bool)","tags":["sessions"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionSetFlightInfoReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/terminate/v1":{"post":{"operationId":"sessions_terminate_v1","summary":"Terminate","description":"Terminates a session. Moves device.active_session_id to device.past_session_ids and deactivates the device. | auth: api_key | () -> (bool)","tags":["sessions"],"parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/typeahead/v1":{"get":{"operationId":"sessions_typeahead_v1","summary":"Typeahead","description":"Returns distinct device_mac_address, off_chrt_reference_id, and flight_numbers values matching the query via case-insensitive regex, searching sessions. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (list[SessionTypeaheadResult])","tags":["sessions"],"parameters":[{"name":"query","in":"query","description":"Typeahead search query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per field","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},{"name":"org_scope","in":"query","description":"Filter by org ownership: owned, shared, or owned_and_shared","required":false,"schema":{"$ref":"#/components/schemas/TrackingOrgScopeEnum"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SessionTypeaheadResult"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/update/v1":{"post":{"operationId":"sessions_update_v1","summary":"Update","description":"Updates mutable non-geofence session fields. Use dedicated geofence routes for geofence changes. | auth: api_key | authz: min_org_role=operator | (SessionClientUpdate2) -> (bool)","tags":["sessions"],"parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionClientUpdate2"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/update_shared_orgs/v1":{"post":{"operationId":"sessions_update_shared_orgs_v1","summary":"Update shared orgs","description":"Adds and/or removes org_ids from a session's shared_with_org_ids list. Only the owning org may modify sharing. Removal overrides addition. | auth: api_key | (SessionsUpdateSharedOrgsReq1) -> (bool)","tags":["sessions"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionsUpdateSharedOrgsReq1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/geofences/add/v1/{session_id}":{"post":{"operationId":"sessionGeofences_add_v1","summary":"Add","description":"Adds a geofence to an active session. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceClientCreate1) -> (Session2)","tags":["sessionGeofences"],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionGeofenceClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/geofences/apply_template/v1/{session_id}":{"post":{"operationId":"sessionGeofences_apply_template_v1","summary":"Apply template","description":"Replaces an active session's geofences from an active organization template. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceApplyTemplateReq) -> (Session2)","tags":["sessionGeofences"],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionGeofenceApplyTemplateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/geofences/reorder/v1/{session_id}":{"post":{"operationId":"sessionGeofences_reorder_v1","summary":"Reorder","description":"Reorders an active session's geofences using an exact ID permutation. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceReorderReq) -> (Session2)","tags":["sessionGeofences"],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionGeofenceReorderReq"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/geofences/update/v1/{session_id}/{geofence_id}":{"patch":{"operationId":"sessionGeofences_update_v1","summary":"Update","description":"Updates a session geofence, resetting entry state only when location or radius changes. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceClientUpdate1) -> (Session2)","tags":["sessionGeofences"],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"geofence_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionGeofenceClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sessions/geofences/v1/{session_id}/{geofence_id}":{"delete":{"operationId":"sessionGeofences_remove_v1","summary":"Remove","description":"Removes a geofence from an active session. | auth: api_key | authz: min_org_role=operator | () -> (Session2)","tags":["sessionGeofences"],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"geofence_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sharing_settings/by_order/v1/{order_ref}":{"get":{"operationId":"sharingSettings_get_settings_v1","summary":"For order","description":"Lists the tracking datasets on an order that the caller is authorized for, with their sharing settings. | auth: api_key | authz_personas=[shipper_org_operators, coordinator_org_operators, executor_org_operators, driver_for_executor] | () -> (list[TrackingSharingSettingsRes])","tags":["sharingSettings"],"parameters":[{"name":"order_ref","in":"path","description":"Order ID, short ID, or off-chrt reference ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrackingSharingSettingsRes"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sharing_settings/cargo_by_device/v1":{"post":{"operationId":"sharingSettings_cargo_by_device_settings_v1","summary":"Update for cargo by device","description":"Updates the sharing settings for a cargo by device tracking dataset. | auth: api_key | authz_personas=[coordinator_org_operators, shipper_org_operators, order_creator_org_operators] | (CargoByDeviceSharingSettingsUpdateReq) -> (CargoByDeviceSharingSettings1)","tags":["sharingSettings"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoByDeviceSharingSettings1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoByDeviceSharingSettingsUpdateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sharing_settings/cargo_by_driver/v1":{"post":{"operationId":"sharingSettings_cargo_by_driver_settings_v1","summary":"Update for cargo by driver","description":"Updates the sharing settings for a cargo by driver tracking dataset. Making it public issues a public link token; making it private revokes it. | auth: api_key | authz_personas=[coordinator_org_operators, executor_org_operators, driver_for_executor] | (CargoByDriverSharingSettingsUpdateReq) -> (CargoByDriverSharingSettings1)","tags":["sharingSettings"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoByDriverSharingSettings1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoByDriverSharingSettingsUpdateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sharing_settings/cargo_by_driver/v1/{task_group_id}/{cargo_id}":{"get":{"operationId":"sharingSettings_get_cargo_by_driver_v1","summary":"Cargo by driver","description":"Returns a cargo's driver tracking sharing settings and when its public link expires; sharing_settings is null when tracking was never shared. | auth: api_key | authz_personas=[coordinator_org_operators, shipper_org_operators, executor_org_operators, driver_for_executor] | () -> (CargoByDriverSharingSettingsRes)","tags":["sharingSettings"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cargo_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoByDriverSharingSettingsRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sharing_settings/task_group_by_driver/v1":{"post":{"operationId":"sharingSettings_task_group_by_driver_sharing_settings_v1","summary":"Update for task group by driver","description":"Updates the sharing settings for a task group by driver tracking dataset. Making it public issues a public link token; making it private revokes it. | auth: api_key | authz_personas=[coordinator_org_operators, executor_org_operators, driver_for_executor] | (TaskGroupByDriverSharingSettingsUpdateReq) -> (TaskGroupByDriverSharingSettings1)","tags":["sharingSettings"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupByDriverSharingSettings1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupByDriverSharingSettingsUpdateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/sharing_settings/task_group_by_driver/v1/{task_group_id}":{"get":{"operationId":"sharingSettings_get_task_group_by_driver_v1","summary":"Task group by driver","description":"Returns a task group's driver tracking sharing settings and when its public link expires; sharing_settings is null when tracking was never shared. | auth: api_key | authz_personas=[coordinator_org_operators, shipper_org_operators, executor_org_operators, driver_for_executor] | () -> (TaskGroupByDriverSharingSettingsRes)","tags":["sharingSettings"],"parameters":[{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupByDriverSharingSettingsRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/cargo_by_device/data_points/v1":{"get":{"operationId":"cargoByDevice_data_points_v1","summary":"Data points","description":"Returns up to the specified number of data points for a cargo within a task group, intelligently sampled across the time range. Excludes outliers. | auth: api_key | () -> (list[CargoByDeviceDataPoint1])","tags":["cargoByDevice"],"parameters":[{"name":"cargo_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"task_group_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CargoByDeviceDataPoint1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/cargo_by_device/data_points_public/v1":{"get":{"operationId":"cargoByDevice_data_points_public_v1","summary":"Data points (public)","description":"Returns up to the specified number of data points for a cargo within a public task group, intelligently sampled across the time range. Excludes outliers. No authentication required if cargo has public visibility enabled via sharing settings. | () -> (list[CargoByDeviceDataPoint1])","tags":["cargoByDevice"],"parameters":[{"name":"cargo_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"task_group_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CargoByDeviceDataPoint1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/cargo_by_device/last_seen/v1":{"get":{"operationId":"cargoByDevice_last_seen_v1","summary":"Last seen","description":"Returns the last seen data point for cargo within a task group. Access granted to the order's coordinator/shipper/executor org or the assigned driver, or via public sharing. | auth: api_key | () -> (CargoByDeviceDataPoint1 | None)","tags":["cargoByDevice"],"parameters":[{"name":"cargo_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"task_group_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CargoByDeviceDataPoint1"},{"type":"null"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/cargo_by_device/last_seen_public/v1":{"get":{"operationId":"cargoByDevice_last_seen_public_v1","summary":"Last seen (public)","description":"Returns the most recent device location data point for a cargo within a public task group. No authentication required if cargo has public visibility enabled via sharing settings. | () -> (CargoByDeviceDataPoint1 | None)","tags":["cargoByDevice"],"parameters":[{"name":"cargo_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"task_group_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CargoByDeviceDataPoint1"},{"type":"null"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/cargo_by_device/outlier/v1":{"post":{"operationId":"cargoByDevice_outlier_v1","summary":"Mark outliers","description":"Marks data points as outliers or non-outliers. Uses atomic delete and reinsert strategy for time-series collection updates. | auth: api_key | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (CargoByDeviceMarkOutliersRequest1) -> (CargoByDeviceMarkOutliersResponse1)","tags":["cargoByDevice"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoByDeviceMarkOutliersResponse1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoByDeviceMarkOutliersRequest1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/cargo_by_driver/data_points/v1":{"get":{"operationId":"cargoByDriver_data_points_v1","summary":"Data points","description":"Returns up to the specified number of data points for a cargo within a task group, intelligently sampled across the time range. Excludes outliers. | auth: api_key | authz_personas=[coordinator_org_operators, shipper_org_operators, executor_org_operators, driver_for_executor] | () -> (list[CargoByDriverDataPoint1])","tags":["cargoByDriver"],"parameters":[{"name":"cargo_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"task_group_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CargoByDriverDataPoint1"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/cargo_by_driver/last_seen/v1":{"get":{"operationId":"cargoByDriver_last_seen_v1","summary":"Last seen","description":"Returns the most recent driver location data point for cargo within a task group. Data written by the driver update endpoint. | auth: api_key | authz_personas=[coordinator_org_operators, shipper_org_operators, executor_org_operators, driver_for_executor] | () -> (CargoByDriverDataPoint1 | None)","tags":["cargoByDriver"],"parameters":[{"name":"cargo_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"task_group_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CargoByDriverDataPoint1"},{"type":"null"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/cargo_by_driver/last_seen_public/v2/{public_link_token}":{"get":{"operationId":"cargoByDriver_last_seen_public_v2","summary":"Last seen (public)","description":"Returns the last-seen location and status for a publicly shared cargo by its public link token. No authentication required; returns 410 once the link has expired. | () -> (CargoByDriverLastSeenPublicRes)","tags":["cargoByDriver"],"parameters":[{"name":"public_link_token","in":"path","required":true,"schema":{"type":"string","minLength":43,"maxLength":43}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CargoByDriverLastSeenPublicRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/session_by_device/data_points/v1":{"get":{"operationId":"sessionByDevice_data_points_v1","summary":"Data points","description":"Returns time-bucketed data points and stationary clusters for a session within the given time range. start_timestamp and end_timestamp are required. | auth: api_key | authz: min_org_role=operator | () -> SessionByDeviceHistoryRes1","tags":["sessionByDevice"],"parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"start_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"end_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"bucket_seconds","in":"query","required":false,"schema":{"type":"integer","minimum":120,"default":120}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionByDeviceHistoryRes1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/session_by_device/data_points_public/v1":{"get":{"operationId":"sessionByDevice_data_points_public_v1","summary":"Data points (public)","description":"Returns time-bucketed data points and stationary clusters for a public session within the given time range. start_timestamp and end_timestamp are required. No authentication required if session has public visibility enabled. | () -> SessionByDeviceHistoryRes1","tags":["sessionByDevice"],"parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"start_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"end_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"bucket_seconds","in":"query","required":false,"schema":{"type":"integer","minimum":120,"default":120}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionByDeviceHistoryRes1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/session_by_device/last_seen/v1":{"get":{"operationId":"sessionByDevice_last_seen_v1","summary":"Last seen","description":"Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (SessionByDeviceDataPoint1 | None)","tags":["sessionByDevice"],"parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/SessionByDeviceDataPoint1"},{"type":"null"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/session_by_device/last_seen_public/v1":{"get":{"operationId":"sessionByDevice_last_seen_public_v1","summary":"Last seen (public)","description":"Returns the most recent data point for a public session, excluding outliers. No authentication required if session has public visibility enabled. | () -> (SessionByDeviceDataPoint1 | None)","tags":["sessionByDevice"],"parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/SessionByDeviceDataPoint1"},{"type":"null"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/session_by_device/outlier/v1":{"post":{"operationId":"sessionByDevice_outlier_v1","summary":"Mark outliers","description":"Marks data points as outliers or non-outliers. Uses atomic delete and reinsert strategy for time-series collection updates. | auth: api_key | (SessionByDeviceMarkOutliersRequest1) -> (SessionByDeviceMarkOutliersResponse1)","tags":["sessionByDevice"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionByDeviceMarkOutliersResponse1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionByDeviceMarkOutliersRequest1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/task_group_by_driver/data_points/v1":{"get":{"operationId":"taskGroupByDriver_data_points_v1","summary":"Data points","description":"Returns sampled driver location data points and the unique drivers for a task group. Excludes outliers. | auth: api_key | authz_personas=[coordinator_org_operators, shipper_org_operators, executor_org_operators, driver_for_executor] | () -> (TaskGroupByDriverDataPointsRes)","tags":["taskGroupByDriver"],"parameters":[{"name":"task_group_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupByDriverDataPointsRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/task_group_by_driver/last_seen/v1":{"get":{"operationId":"taskGroupByDriver_last_seen_v1","summary":"Last seen","description":"Returns the most recent driver location data point and driver for a task group. | auth: api_key | authz_personas=[coordinator_org_operators, shipper_org_operators, executor_org_operators, driver_for_executor] | () -> (TaskGroupByDriverLastSeenRes | None)","tags":["taskGroupByDriver"],"parameters":[{"name":"task_group_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupByDriverLastSeenRes"},{"type":"null"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking/timeseries/task_group_by_driver/last_seen_public/v2/{public_link_token}":{"get":{"operationId":"taskGroupByDriver_last_seen_public_v2","summary":"Last seen (public)","description":"Returns the last-seen location and status for a publicly shared task group by its public link token. No authentication required; returns 410 once the link has expired. | () -> (TaskGroupByDriverLastSeenPublicRes)","tags":["taskGroupByDriver"],"parameters":[{"name":"public_link_token","in":"path","required":true,"schema":{"type":"string","minLength":43,"maxLength":43}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupByDriverLastSeenPublicRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/reelables/assets/create/v1":{"post":{"operationId":"assets_create_v1","summary":"Create","description":"Creates and links a labeled Reelables asset for the caller's organization. | authz: min_org_role=operator | (ReelablesAssetClientCreate1) -> (ReelablesAsset1)","tags":["assets"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReelablesAsset1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReelablesAssetClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/reelables/assets/get/v1/{asset_id}":{"get":{"operationId":"assets_get_v1","summary":"Get","description":"Retrieves a Reelables asset owned by the caller's organization from CHRT. | auth: api_key | authz: min_org_role=operator | () -> (ReelablesAsset1)","tags":["assets"],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReelablesAsset1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/reelables/assets/labels/link/v1/{asset_id}":{"post":{"operationId":"assets_link_label_v1","summary":"Link label","description":"Links a label to an unlinked Reelables asset and starts tracking. Existing labels must be unlinked first. | authz: min_org_role=operator | (ReelablesAssetLabelLinkReq) -> (ReelablesAsset1)","tags":["assets"],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReelablesAsset1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReelablesAssetLabelLinkReq"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/reelables/assets/labels/unlink/v1/{asset_id}":{"delete":{"operationId":"assets_unlink_label_v1","summary":"Unlink label","description":"Unlinks the current label from a Reelables asset and stops tracking while retaining the asset and its history. | authz: min_org_role=operator | (None) -> (ReelablesAsset1)","tags":["assets"],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReelablesAsset1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/reelables/assets/list/v1":{"get":{"operationId":"assets_list_v1","summary":"List","description":"Lists Reelables assets owned by the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (ReelablesAssetListRes)","tags":["assets"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/ReelablesAssetSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReelablesAssetListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/reelables/assets/pause/v1/{asset_id}":{"post":{"operationId":"assets_pause_v1","summary":"Pause","description":"Pauses a Reelables asset and opens a new pause time window. | authz: min_org_role=operator | () -> (bool)","tags":["assets"],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/reelables/assets/unpause/v1/{asset_id}":{"post":{"operationId":"assets_unpause_v1","summary":"Unpause","description":"Unpauses a Reelables asset and closes the open pause time window. | authz: min_org_role=operator | () -> (bool)","tags":["assets"],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/reelables/assets/update/v1/{asset_id}":{"patch":{"operationId":"assets_update_v1","summary":"Update","description":"Updates a Reelables asset, applying name changes upstream before updating CHRT. | authz: min_org_role=operator | (ReelablesAssetClientUpdate1) -> (ReelablesAsset1)","tags":["assets"],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReelablesAsset1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReelablesAssetClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/reelables/timeseries/data_points/refresh/v1/{asset_id}":{"get":{"operationId":"timeseries_refresh_v1","summary":"Refresh","description":"Refreshes and returns Reelables location data points within the requested time range. | authz: min_org_role=operator | () -> (ReelablesTimeseriesRes)","tags":["timeseries"],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"start_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"end_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReelablesTimeseriesRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/reelables/timeseries/data_points/v1/{asset_id}":{"get":{"operationId":"timeseries_data_points_v1","summary":"Data points","description":"Returns stored Reelables location data points within the requested time range without refreshing from Reelables. | auth: api_key | authz: min_org_role=operator | () -> (ReelablesTimeseriesRes)","tags":["timeseries"],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"start_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"end_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReelablesTimeseriesRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/tive/devices/get/v1":{"get":{"operationId":"devices_get_v1_2","summary":"Get","description":"Retrieves a single Tive device by its ID. Scoped to the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (TiveDevice1)","tags":["devices"],"parameters":[{"name":"tive_device_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TiveDevice1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/tive/devices/list/v1":{"get":{"operationId":"devices_list_v1_2","summary":"List","description":"Lists Tive devices with filtering, sorting, and pagination. Scoped to the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (TiveDeviceListRes)","tags":["devices"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/TiveDeviceSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_tive_account_id","in":"query","description":"Filter by Tive account ID","required":false,"schema":{"type":["integer","null"]}},{"name":"filter_tive_device_id","in":"query","description":"Filter by Tive device ID (exact match)","required":false,"schema":{"type":["string","null"]}},{"name":"filter_chrt_created_at_timestamp_gte","in":"query","description":"Filter by chrt_created_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_chrt_created_at_timestamp_lte","in":"query","description":"Filter by chrt_created_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TiveDeviceListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/tive/shipments/get/v1":{"get":{"operationId":"shipments_get_v1","summary":"Get","description":"Retrieves a single Tive shipment by its ID. Scoped to the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (TiveShipment1)","tags":["shipments"],"parameters":[{"name":"tive_shipment_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TiveShipment1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/tive/shipments/list/v1":{"get":{"operationId":"shipments_list_v1","summary":"List","description":"Lists Tive shipments with filtering, sorting, and pagination. Scoped to the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (TiveShipmentListRes)","tags":["shipments"],"parameters":[{"name":"sort_by","in":"query","description":"Field to sort by","required":false,"schema":{"$ref":"#/components/schemas/TiveShipmentSortByEnum"}},{"name":"sort_order","in":"query","description":"Sort order (asc or desc)","required":false,"schema":{"$ref":"#/components/schemas/SortOrderEnum"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"filter_tive_device_object_id","in":"query","description":"Filter by Tive device object ID","required":false,"schema":{"type":["string","null"]}},{"name":"filter_tive_shipment_id","in":"query","description":"Filter by Tive shipment ID (exact match)","required":false,"schema":{"type":["string","null"]}},{"name":"filter_chrt_created_at_timestamp_gte","in":"query","description":"Filter by chrt_created_at_timestamp >= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}},{"name":"filter_chrt_created_at_timestamp_lte","in":"query","description":"Filter by chrt_created_at_timestamp <= value","required":false,"schema":{"type":["string","null"],"format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TiveShipmentListRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/tive/timeseries/data_points/v1":{"get":{"operationId":"timeseries_data_points_v1_2","summary":"Data points","description":"Returns raw Tive data points for a shipment within the given time range. Scoped to the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (TiveTimeseriesRes)","tags":["timeseries"],"parameters":[{"name":"tive_shipment_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"start_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"end_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TiveTimeseriesRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/tive/timeseries/last_seen/v1":{"get":{"operationId":"timeseries_last_seen_v1","summary":"Last seen","description":"Returns the most recent Tive data point for a shipment. Scoped to the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (TiveDataPoint1 | None)","tags":["timeseries"],"parameters":[{"name":"tive_shipment_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TiveDataPoint1"},{"type":"null"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tracking_integrations/tive/timeseries/sync/v1":{"post":{"operationId":"timeseries_sync_v1","summary":"Sync","description":"Fetches new Tive tracker data points from the Tive API for a shipment and stores them in our timeseries collection. Uses a high-water-mark strategy with overlap dedup to prevent duplicate inserts. | authz: min_org_role=operator | () -> (TiveTimeseriesSyncRes)","tags":["timeseries"],"parameters":[{"name":"tive_shipment_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TiveTimeseriesSyncRes"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/user_private_data/firebase_cloud_messaging_token/v1":{"put":{"operationId":"privateData_upsert_firebase_cloud_messaging_token_v1","summary":"Upsert FCM token","description":"Upserts a Firebase Cloud Messaging token for the caller. Dedupes on token; if token exists, updates last_used_timestamp. | (FirebaseCloudMessagingTokenClientCreate1) -> (UserPrivateData1)","tags":["privateData"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPrivateData1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirebaseCloudMessagingTokenClientCreate1"}}}},"security":[{"HTTPBearer":[]}]}},"/users/user_private_data/update_name/v1":{"patch":{"operationId":"privateData_update_name_v1","summary":"Update name","description":"Updates the caller's name in WorkOS and private user data. | (UserPrivateDataNameUpdateReq) -> (UserPrivateData1)","tags":["privateData"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPrivateData1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPrivateDataNameUpdateReq"}}}},"security":[{"HTTPBearer":[]}]}},"/users/user_private_data/v1":{"get":{"operationId":"privateData_get_v1_2","summary":"Get private data","description":"Retrieves private user data for the caller. | () -> (UserPrivateData1)","tags":["privateData"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPrivateData1"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"operationId":"privateData_create_v1","summary":"Create private data","description":"Creates private user data for the caller. | (UserPrivateDataClientCreate1) -> (UserPrivateData1)","tags":["privateData"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPrivateData1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPrivateDataClientCreate1"}}}},"security":[{"HTTPBearer":[]}]},"patch":{"operationId":"privateData_update_v1","summary":"Update private data","description":"Updates private user data for the caller. | (UserPrivateDataClientUpdate1) -> (UserPrivateData1)","tags":["privateData"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPrivateData1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPrivateDataClientUpdate1"}}}},"security":[{"HTTPBearer":[]}]}},"/users/user_public_data/v1":{"get":{"operationId":"publicData_get_v1_2","summary":"Get public data","description":"Retrieves public user data for the caller. | () -> (UserPublicData1)","tags":["publicData"],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublicData1"}}}}},"security":[{"HTTPBearer":[]}]}}},"tags":[{"name":"utils"},{"name":"root"},{"name":"dev"},{"name":"ai"},{"name":"shipping"},{"name":"stripe"},{"name":"stripeConnect"},{"name":"billingPeriods"},{"name":"chrtGroundProviderRates"},{"name":"invoiceLineItems"},{"name":"invoices"},{"name":"orders"},{"name":"taxConfigurations"},{"name":"airCanada"},{"name":"cargoai"},{"name":"charlie"},{"name":"chrtGpt"},{"name":"conversations"},{"name":"s3Objects"},{"name":"dictation"},{"name":"flights"},{"name":"airWaybills"},{"name":"cargoaiTrackAndTrace"},{"name":"webcargoBookings"},{"name":"webcargoEmbed"},{"name":"bidThreads"},{"name":"driverBiddingGroups"},{"name":"listings"},{"name":"orgBiddingGroups"},{"name":"adHoc"},{"name":"groups"},{"name":"previews"},{"name":"userPreferences"},{"name":"webhookSetup"},{"name":"departments"},{"name":"operationsTaskLists"},{"name":"operationsTasks"},{"name":"orderInternalMessages"},{"name":"orgs"},{"name":"accounts"},{"name":"airWaybillStockNumbers"},{"name":"airlineCargoAccounts"},{"name":"complianceDocuments"},{"name":"s3Object"},{"name":"connections"},{"name":"coordinators"},{"name":"executors"},{"name":"shippers"},{"name":"contacts"},{"name":"iataCassOffices"},{"name":"offChrtOrgData"},{"name":"privateData"},{"name":"publicData"},{"name":"cargoOnFlightAirWaybills"},{"name":"cargoOnFlightBookingSearches"},{"name":"cargoOnFlightBookings"},{"name":"cargoOnFlightHouseAirWaybills"},{"name":"drivers"},{"name":"orderTemplatesNew"},{"name":"cargos"},{"name":"taskArtifacts"},{"name":"taskGroups"},{"name":"tasks"},{"name":"cargo"},{"name":"drafts"},{"name":"expanded"},{"name":"orderEvents"},{"name":"task"},{"name":"taskArtifact"},{"name":"taskGroup"},{"name":"scan"},{"name":"messages"},{"name":"taskGroupId"},{"name":"executorOrgNotes"},{"name":"creds"},{"name":"integrationExecutors"},{"name":"devices"},{"name":"driver"},{"name":"geofenceTemplates"},{"name":"sessions"},{"name":"sessionGeofences"},{"name":"sharingSettings"},{"name":"cargoByDevice"},{"name":"cargoByDriver"},{"name":"sessionByDevice"},{"name":"taskGroupByDriver"},{"name":"assets"},{"name":"timeseries"},{"name":"shipments"}],"servers":[{"url":"https://api.staging.chrt.com","description":"Staging"},{"url":"https://api.dev.chrt.com","description":"DEV"},{"url":"https://api.chrt.com","description":"PROD"}],"components":{"schemas":{"TimezoneResponse":{"type":"object","properties":{"lat":{"type":"number","format":"double"},"lng":{"type":"number","format":"double"},"method":{"type":"string"},"timezone":{"type":"string"}},"required":["lat","lng","method","timezone"],"description":"Response model for timezone endpoint.","title":"TimezoneResponse"},"ValidationErrorCtx":{"type":"object","properties":{},"title":"ValidationErrorCtx"},"ValidationErrorLocItems":{"oneOf":[{"type":"string"},{"type":"integer"}],"title":"ValidationErrorLocItems"},"ValidationError":{"type":"object","properties":{"ctx":{"$ref":"#/components/schemas/ValidationErrorCtx"},"input":{"description":"Any type"},"loc":{"type":"array","items":{"$ref":"#/components/schemas/ValidationErrorLocItems"}},"msg":{"type":"string"},"type":{"type":"string"}},"required":["loc","msg","type"],"title":"ValidationError"},"HTTPValidationError":{"type":"object","properties":{"detail":{"type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}},"title":"HTTPValidationError"},"PingReq":{"type":"object","properties":{"nonce":{"type":["string","null"]}},"title":"PingReq"},"PingRes":{"type":"object","properties":{"activity_completed_at":{"type":"string"},"nonce":{"type":"string"},"response":{"type":"string"},"workflow_completed_at":{"type":"string"}},"required":["activity_completed_at","nonce","response","workflow_completed_at"],"title":"PingRes"},"CallerCredentialTypeEnum":{"type":"string","enum":["session_jwt","mcp_oauth_jwt","api_key","internal_delegation_jwt"],"title":"CallerCredentialTypeEnum"},"InternalDelegationOriginEnum":{"type":"string","enum":["temporal_worker","livekit_voice_agent"],"title":"InternalDelegationOriginEnum"},"OrgRoleEnum":{"type":"string","enum":["owner","admin","operator","member"],"description":"Organization roles used in authenticated caller claims.\n\nHierarchy (highest to lowest):\n    owner > admin > operator > member\n\nRole availability by org type:\n    {owner, admin, operator, member}  → PROVIDER | SHIPPER\n\nNote: Hierarchical enforcement depends on utils_shipping_authz helper functions.\n\nWorkOS role slugs match these enum values.","title":"OrgRoleEnum"},"OrgTypeEnum":{"type":"string","enum":["provider","shipper","vendor"],"title":"OrgTypeEnum"},"Caller":{"type":"object","properties":{"credential":{"type":["string","null"]},"credential_type":{"$ref":"#/components/schemas/CallerCredentialTypeEnum"},"internal_delegation_origin":{"oneOf":[{"$ref":"#/components/schemas/InternalDelegationOriginEnum"},{"type":"null"}]},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"org_role":{"oneOf":[{"$ref":"#/components/schemas/OrgRoleEnum"},{"type":"null"}]},"org_subscription":{"type":["boolean","null"]},"org_type":{"oneOf":[{"$ref":"#/components/schemas/OrgTypeEnum"},{"type":"null"}]},"user_email":{"type":["string","null"]},"user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["credential_type","org_id","user_id"],"title":"Caller"},"CredentialInfoRes":{"type":"object","properties":{"caller":{"$ref":"#/components/schemas/Caller"},"credential_type":{"$ref":"#/components/schemas/CallerCredentialTypeEnum"},"raw_claims":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["caller","credential_type","raw_claims"],"title":"CredentialInfoRes"},"TemplateReq":{"type":"object","properties":{"message":{"type":"string"},"number":{"type":"integer"},"timestamp":{"type":"string","format":"date-time"}},"required":["message","number","timestamp"],"title":"TemplateReq"},"TemplateRes":{"type":"object","properties":{"message":{"type":"string"},"number":{"type":"integer"},"timestamp":{"type":"string","format":"date-time"}},"required":["message","number","timestamp"],"title":"TemplateRes"},"AIRewriteEffortEnum":{"type":"string","enum":["low","medium","high"],"title":"AIRewriteEffortEnum"},"AIRewriteLengthEnum":{"type":"string","enum":["shorter","same","longer"],"title":"AIRewriteLengthEnum"},"AIRewriteToneEnum":{"type":"string","enum":["casual","neutral","formal"],"title":"AIRewriteToneEnum"},"AIRewriteReq":{"type":"object","properties":{"effort":{"$ref":"#/components/schemas/AIRewriteEffortEnum","description":"How much effort goes into the rewrite. Higher is slower and more careful."},"length":{"$ref":"#/components/schemas/AIRewriteLengthEnum","description":"How long the rewrite is, relative to the text."},"text":{"type":"string","minLength":1,"maxLength":20000,"description":"The text to rewrite: typed, dictated, or pasted."},"tone":{"$ref":"#/components/schemas/AIRewriteToneEnum"},"user_prompt":{"type":["string","null"],"maxLength":2000,"description":"Freeform instructions for this rewrite, such as who it's for. They take precedence over tone and length."}},"required":["text"],"title":"AIRewriteReq"},"AIRewriteRes":{"type":"object","properties":{"rewritten_text":{"type":"string"}},"required":["rewritten_text"],"title":"AIRewriteRes"},"TimeGranularity":{"type":"string","enum":["hour","day","week","month","year"],"title":"TimeGranularity"},"StartOfWeek":{"type":"string","enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],"title":"StartOfWeek"},"TimezoneEnum":{"type":"string","enum":["America/Los_Angeles","America/Denver","America/Chicago","America/New_York","America/Anchorage","Pacific/Honolulu","Europe/London","Europe/Paris","Europe/Berlin","Europe/Amsterdam","Europe/Rome","Europe/Madrid","Europe/Zurich","Europe/Stockholm","Europe/Warsaw","Europe/Athens","UTC"],"title":"TimezoneEnum"},"AnalyticsTimePeriodReq":{"type":"object","properties":{"end":{"type":"string","format":"date-time"},"granularity":{"$ref":"#/components/schemas/TimeGranularity"},"start":{"type":"string","format":"date-time"},"start_of_week":{"oneOf":[{"$ref":"#/components/schemas/StartOfWeek"},{"type":"null"}]},"timezone":{"$ref":"#/components/schemas/TimezoneEnum"}},"required":["end","start"],"title":"AnalyticsTimePeriodReq"},"TimeBucket":{"type":"object","properties":{"period":{"type":"string","format":"date-time"},"value":{"type":"number","format":"double"}},"required":["period","value"],"title":"TimeBucket"},"AnalyticsTimeBucketRes":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/TimeBucket"}},"total":{"type":"number","format":"double"}},"required":["buckets","total"],"title":"AnalyticsTimeBucketRes"},"CreateCheckoutSessionReq":{"type":"object","properties":{"price_id":{"type":"string"},"product_id":{"type":"string"}},"required":["price_id","product_id"],"title":"CreateCheckoutSessionReq"},"CreateCheckoutSessionRes":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"title":"CreateCheckoutSessionRes"},"CreateCustomerPortalSessionRes":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"title":"CreateCustomerPortalSessionRes"},"StripeConnectAccountOnboardingLinkRes":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"title":"StripeConnectAccountOnboardingLinkRes"},"CreateStripeConnectAccountRes":{"type":"object","properties":{"stripe_connect_account_id":{"type":"string"}},"required":["stripe_connect_account_id"],"title":"CreateStripeConnectAccountRes"},"BillingCurrencyCodeEnum1":{"type":"string","enum":["USD","CAD","EUR","GBP","MXN","AUD","JPY","CNY","CHF","INR"],"title":"BillingCurrencyCodeEnum1"},"BillingPeriodCycleEnum1":{"type":"string","enum":["daily","weekly","monthly","quarterly","yearly"],"title":"BillingPeriodCycleEnum1"},"InvoiceTypeEnum1":{"type":"string","enum":["accounts_receivable","accounts_payable"],"title":"InvoiceTypeEnum1"},"BillingPeriodStatusEnum1":{"type":"string","enum":["open","closed"],"title":"BillingPeriodStatusEnum1"},"BillingPeriod1":{"type":"object","properties":{"_id":{"type":"string"},"amount":{"type":"number","format":"double"},"closed_at_timestamp":{"type":["string","null"],"format":"date-time"},"closed_by_user_id":{"type":["string","null"]},"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"cycle":{"$ref":"#/components/schemas/BillingPeriodCycleEnum1"},"description":{"type":"string","minLength":1,"maxLength":32768},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"last_edited_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"name":{"type":["string","null"],"maxLength":255},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"period_end_at_timestamp":{"type":"string","format":"date-time"},"period_start_at_timestamp":{"type":"string","format":"date-time"},"schema_version":{"type":"integer"},"shipper_account_id":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/BillingPeriodStatusEnum1"},"task_group_ids":{"type":"array","items":{"type":"string"}}},"required":["_id","amount","created_at_timestamp","created_by_user_id","currency_code","cycle","description","invoice_type","last_edited_at_timestamp","last_edited_by_user_id","owned_by_org_id","period_end_at_timestamp","period_start_at_timestamp","schema_version"],"title":"BillingPeriod1"},"InvoiceLineItemCurrencyConversion1":{"type":"object","properties":{"conversion_rate":{"type":"number","format":"double","exclusiveMinimum":0,"description":"Units of the target currency per one unit of source_currency_code. unit_price = source_unit_price * conversion_rate."},"description":{"type":["string","null"],"maxLength":255},"source_currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"source_unit_price":{"type":"number","format":"double"}},"required":["conversion_rate","source_currency_code","source_unit_price"],"title":"InvoiceLineItemCurrencyConversion1"},"InvoiceLineItemTypeEnum1":{"type":"string","enum":["base_rate","additional_mileage","long_distance_mileage","fuel","extra_stop","wait_time","attempt","pick_and_hold","parking","tolls","additional_fee","dispute","equipment","dangerous_goods","special_vehicle","after_hours","weekend","holiday","air_waybill","insurance","off_network_carrier","obc_day_rate","flight_ticket","tracking_device_label","tracking_device_tag","tracking_device_other","tax","other"],"title":"InvoiceLineItemTypeEnum1"},"InvoiceLineItemStatusEnum1":{"type":"string","enum":["draft","approved","finalized"],"title":"InvoiceLineItemStatusEnum1"},"InvoiceLineItemUnitEnum1":{"type":"string","enum":["each","shipment","hour","day","mile","kilometer","pound","kilogram"],"title":"InvoiceLineItemUnitEnum1"},"InvoiceLineItem1":{"type":"object","properties":{"_id":{"type":"string"},"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"billing_period_id":{"type":["string","null"]},"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"currency_conversion":{"oneOf":[{"$ref":"#/components/schemas/InvoiceLineItemCurrencyConversion1"},{"type":"null"}]},"description":{"type":"string","minLength":1,"maxLength":32768},"export_ref__sage__item_id":{"type":["string","null"],"maxLength":255},"invoice_id":{"type":["string","null"]},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"last_edited_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"line_item_type":{"$ref":"#/components/schemas/InvoiceLineItemTypeEnum1"},"order_id":{"type":["string","null"]},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"quantity":{"type":"number","format":"double","exclusiveMinimum":0},"rate_sheet_id":{"type":["string","null"]},"schema_version":{"type":"integer"},"shipper_account_id":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/InvoiceLineItemStatusEnum1"},"task_group_id":{"type":["string","null"]},"tax_percentage":{"type":["number","null"],"format":"double","minimum":0},"total_amount":{"type":"number","format":"double"},"unit":{"oneOf":[{"$ref":"#/components/schemas/InvoiceLineItemUnitEnum1"},{"type":"null"}]},"unit_price":{"type":"number","format":"double"}},"required":["_id","created_at_timestamp","created_by_user_id","currency_code","description","invoice_type","last_edited_at_timestamp","last_edited_by_user_id","line_item_type","owned_by_org_id","quantity","schema_version","total_amount","unit_price"],"title":"InvoiceLineItem1"},"BillingPeriodCloseRes":{"type":"object","properties":{"billing_period":{"$ref":"#/components/schemas/BillingPeriod1"},"invoice_line_item":{"$ref":"#/components/schemas/InvoiceLineItem1"}},"required":["billing_period","invoice_line_item"],"title":"BillingPeriodCloseRes"},"BillingPeriodClientCreate1":{"type":"object","properties":{"amount":{"type":"number","format":"double"},"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"cycle":{"$ref":"#/components/schemas/BillingPeriodCycleEnum1"},"description":{"type":"string","minLength":1,"maxLength":32768},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"name":{"type":["string","null"],"maxLength":255},"period_end_at_timestamp":{"type":"string","format":"date-time"},"period_start_at_timestamp":{"type":"string","format":"date-time"},"schema_version":{"type":"integer"},"shipper_account_id":{"type":["string","null"]},"task_group_ids":{"type":"array","items":{"type":"string"}}},"required":["amount","currency_code","cycle","description","invoice_type","period_end_at_timestamp","period_start_at_timestamp","schema_version"],"title":"BillingPeriodClientCreate1"},"InvoiceMergeStatusEnum1":{"type":"string","enum":["draft","submitted","open","partially_paid","paid","void"],"title":"InvoiceMergeStatusEnum1"},"InvoiceStatusEnum1":{"type":"string","enum":["draft","approved","void"],"title":"InvoiceStatusEnum1"},"InvoiceStripeStatusEnum1":{"type":"string","enum":["draft","open","paid","uncollectible","void"],"title":"InvoiceStripeStatusEnum1"},"Invoice1":{"type":"object","properties":{"_id":{"type":"string"},"approved_at_timestamp":{"type":["string","null"],"format":"date-time"},"approved_by_user_id":{"type":["string","null"]},"counterparty_account_ids":{"type":"array","items":{"type":"string"}},"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"description":{"type":["string","null"],"maxLength":32768},"export_ref__sage__customer_id":{"type":["string","null"],"maxLength":255},"export_ref__sage__department_id":{"type":["string","null"],"maxLength":255},"file_exported_at_timestamp":{"type":["string","null"],"format":"date-time"},"file_exported_by_user_id":{"type":["string","null"]},"invoice_line_item_ids":{"type":"array","items":{"type":"string"}},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"last_edited_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"merge_exported_at_timestamp":{"type":["string","null"],"format":"date-time"},"merge_exported_by_user_id":{"type":["string","null"]},"merge_invoice_id":{"type":["string","null"],"maxLength":255},"merge_invoice_number":{"type":["string","null"],"maxLength":255},"merge_invoice_url":{"type":["string","null"],"maxLength":2048},"merge_linked_account_id":{"type":["string","null"],"maxLength":255},"merge_remote_id":{"type":["string","null"],"maxLength":1024},"merge_remote_was_deleted":{"type":"boolean","default":false},"merge_status":{"oneOf":[{"$ref":"#/components/schemas/InvoiceMergeStatusEnum1"},{"type":"null"}]},"name":{"type":["string","null"],"maxLength":255},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"period_end_at_timestamp":{"type":"string","format":"date-time"},"period_start_at_timestamp":{"type":"string","format":"date-time"},"schema_version":{"type":"integer"},"status":{"$ref":"#/components/schemas/InvoiceStatusEnum1"},"stripe_exported_at_timestamp":{"type":["string","null"],"format":"date-time"},"stripe_exported_by_user_id":{"type":["string","null"]},"stripe_invoice_id":{"type":["string","null"],"maxLength":255},"stripe_invoice_number":{"type":["string","null"],"maxLength":255},"stripe_invoice_url":{"type":["string","null"],"maxLength":2048},"stripe_status":{"oneOf":[{"$ref":"#/components/schemas/InvoiceStripeStatusEnum1"},{"type":"null"}]},"stripe_was_deleted":{"type":"boolean","default":false},"total_amount":{"type":["number","null"],"format":"double"},"void_reason":{"type":["string","null"],"maxLength":32768},"voided_at_timestamp":{"type":["string","null"],"format":"date-time"},"voided_by_user_id":{"type":["string","null"]}},"required":["_id","created_at_timestamp","created_by_user_id","currency_code","invoice_type","last_edited_at_timestamp","last_edited_by_user_id","owned_by_org_id","period_end_at_timestamp","period_start_at_timestamp","schema_version"],"title":"Invoice1"},"BillingPeriodExpanded1":{"type":"object","properties":{"billing_period":{"$ref":"#/components/schemas/BillingPeriod1"},"invoice":{"oneOf":[{"$ref":"#/components/schemas/Invoice1"},{"type":"null"}]},"invoice_line_item":{"oneOf":[{"$ref":"#/components/schemas/InvoiceLineItem1"},{"type":"null"}]}},"required":["billing_period"],"title":"BillingPeriodExpanded1"},"BillingPeriodSortByEnum":{"type":"string","enum":["created_at_timestamp","last_edited_at_timestamp","period_start_at_timestamp","period_end_at_timestamp","amount","name"],"title":"BillingPeriodSortByEnum"},"SortOrderEnum":{"type":"string","enum":["asc","desc"],"description":"Sort order for query results","title":"SortOrderEnum"},"BillingPeriodListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BillingPeriodExpanded1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"BillingPeriodListRes"},"BillingPeriodTaskGroupsReq":{"type":"object","properties":{"task_group_ids":{"type":"array","items":{"type":"string"}}},"required":["task_group_ids"],"title":"BillingPeriodTaskGroupsReq"},"BillingPeriodClientUpdate1":{"type":"object","properties":{"amount":{"type":["number","null"],"format":"double"},"currency_code":{"oneOf":[{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},{"type":"null"}]},"cycle":{"oneOf":[{"$ref":"#/components/schemas/BillingPeriodCycleEnum1"},{"type":"null"}]},"description":{"type":["string","null"],"minLength":1,"maxLength":32768},"name":{"type":["string","null"],"maxLength":255},"name__set_to_None":{"type":"boolean","default":false},"period_end_at_timestamp":{"type":["string","null"],"format":"date-time"},"period_start_at_timestamp":{"type":["string","null"],"format":"date-time"},"shipper_account_id":{"type":["string","null"]},"shipper_account_id__set_to_None":{"type":"boolean","default":false}},"title":"BillingPeriodClientUpdate1"},"AdditionalMileageRate1":{"type":"object","properties":{"ends_at_total_distance_miles":{"type":"number","format":"double","minimum":0},"rate_per_mile":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]},"starts_at_total_distance_miles":{"type":"number","format":"double","minimum":0}},"required":["ends_at_total_distance_miles","rate_per_mile","starts_at_total_distance_miles"],"title":"AdditionalMileageRate1"},"AfterHoursRate1":{"type":"object","properties":{"rate_per_instance":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]}},"required":["rate_per_instance"],"title":"AfterHoursRate1"},"AttemptRate1":{"type":"object","properties":{"rate_per_instance":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]}},"required":["rate_per_instance"],"title":"AttemptRate1"},"BaseMileageRate1":{"type":"object","properties":{"included_distance_miles":{"type":"number","format":"double","minimum":0},"rate_per_instance":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]}},"required":["included_distance_miles","rate_per_instance"],"title":"BaseMileageRate1"},"CargoTypeEnum1":{"type":"string","enum":["spare_parts","blood","lab_specimen","organ","tissue","manufacturing_equipment","aircraft_parts","medical_devices","medical_supplies","pharmaceuticals","documents","electronics","clothing","chemicals","hazardous_materials","perishable","frozen","live_animals","rodents","fish","birds","reptiles","mammals","insects","crickets","other","unspecified"],"title":"CargoTypeEnum1"},"DangerousGoodsRate1":{"type":"object","properties":{"rate_per_instance":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]}},"required":["rate_per_instance"],"title":"DangerousGoodsRate1"},"ExtraStopRate1":{"type":"object","properties":{"rate_per_instance":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]}},"required":["rate_per_instance"],"title":"ExtraStopRate1"},"FlatFeeRate1":{"type":"object","properties":{"rate_per_instance":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]}},"required":["rate_per_instance"],"title":"FlatFeeRate1"},"FromPayables1":{"type":"object","properties":{"combine":{"type":"boolean","default":false},"margin":{"type":["number","null"],"format":"double","minimum":0,"exclusiveMaximum":1},"markup":{"type":["number","null"],"format":"double","minimum":0},"sage_item_id":{"type":["string","null"]}},"title":"FromPayables1"},"FuelSurchargeRate1":{"type":"object","properties":{"rate_per_mile":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]}},"required":["rate_per_mile"],"title":"FuelSurchargeRate1"},"HolidayRate1":{"type":"object","properties":{"rate_per_instance":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]}},"required":["rate_per_instance"],"title":"HolidayRate1"},"LongDistanceSurchargeRate1":{"type":"object","properties":{"rate_per_mile":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]},"starts_at_total_distance_miles":{"type":"number","format":"double","minimum":0}},"required":["rate_per_mile","starts_at_total_distance_miles"],"title":"LongDistanceSurchargeRate1"},"PickAndHoldRate1":{"type":"object","properties":{"rate_per_instance":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]}},"required":["rate_per_instance"],"title":"PickAndHoldRate1"},"ServiceLineEnum":{"type":"string","enum":["on_demand","routed"],"title":"ServiceLineEnum"},"VehicleTypeEnum":{"type":"string","enum":["sedan","suv","cargo_van","box_truck","flatbed","semi_truck","airplane"],"title":"VehicleTypeEnum"},"WaitTimeRate1":{"type":"object","properties":{"included_minutes":{"type":"number","format":"double","minimum":0},"rate_per_minute":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]}},"required":["included_minutes","rate_per_minute"],"title":"WaitTimeRate1"},"WeekendRate1":{"type":"object","properties":{"rate_per_instance":{"type":"number","format":"double"},"sage_item_id":{"type":["string","null"]}},"required":["rate_per_instance"],"title":"WeekendRate1"},"ChrtGroundProviderRatesClientCreate1":{"type":"object","properties":{"additional_mileage":{"oneOf":[{"$ref":"#/components/schemas/AdditionalMileageRate1"},{"type":"null"}]},"after_hours":{"oneOf":[{"$ref":"#/components/schemas/AfterHoursRate1"},{"type":"null"}]},"archived":{"type":"boolean","default":false},"attempt":{"oneOf":[{"$ref":"#/components/schemas/AttemptRate1"},{"type":"null"}]},"base_mileage":{"oneOf":[{"$ref":"#/components/schemas/BaseMileageRate1"},{"type":"null"}]},"cargo_types":{"type":"array","items":{"$ref":"#/components/schemas/CargoTypeEnum1"}},"comments":{"type":["string","null"],"maxLength":524288},"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"dangerous_goods":{"oneOf":[{"$ref":"#/components/schemas/DangerousGoodsRate1"},{"type":"null"}]},"extra_stop":{"oneOf":[{"$ref":"#/components/schemas/ExtraStopRate1"},{"type":"null"}]},"flat_fee":{"oneOf":[{"$ref":"#/components/schemas/FlatFeeRate1"},{"type":"null"}]},"from_payables":{"oneOf":[{"$ref":"#/components/schemas/FromPayables1"},{"type":"null"}]},"fuel_surcharge":{"oneOf":[{"$ref":"#/components/schemas/FuelSurchargeRate1"},{"type":"null"}]},"holiday":{"oneOf":[{"$ref":"#/components/schemas/HolidayRate1"},{"type":"null"}]},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"long_distance_surcharge":{"oneOf":[{"$ref":"#/components/schemas/LongDistanceSurchargeRate1"},{"type":"null"}]},"name":{"type":["string","null"]},"pick_and_hold":{"oneOf":[{"$ref":"#/components/schemas/PickAndHoldRate1"},{"type":"null"}]},"schema_version":{"type":"integer"},"service_line":{"$ref":"#/components/schemas/ServiceLineEnum"},"shipper_account_id":{"type":["string","null"]},"vehicle_types":{"type":"array","items":{"$ref":"#/components/schemas/VehicleTypeEnum"}},"wait_time":{"oneOf":[{"$ref":"#/components/schemas/WaitTimeRate1"},{"type":"null"}]},"weekend":{"oneOf":[{"$ref":"#/components/schemas/WeekendRate1"},{"type":"null"}]}},"required":["currency_code","invoice_type","schema_version"],"title":"ChrtGroundProviderRatesClientCreate1"},"ChrtGroundProviderRates1":{"type":"object","properties":{"_id":{"type":"string"},"additional_mileage":{"oneOf":[{"$ref":"#/components/schemas/AdditionalMileageRate1"},{"type":"null"}]},"after_hours":{"oneOf":[{"$ref":"#/components/schemas/AfterHoursRate1"},{"type":"null"}]},"archived":{"type":"boolean","default":false},"attempt":{"oneOf":[{"$ref":"#/components/schemas/AttemptRate1"},{"type":"null"}]},"base_mileage":{"oneOf":[{"$ref":"#/components/schemas/BaseMileageRate1"},{"type":"null"}]},"cargo_types":{"type":"array","items":{"$ref":"#/components/schemas/CargoTypeEnum1"}},"comments":{"type":["string","null"],"maxLength":524288},"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"created_at_timestamp":{"type":"string","format":"date-time"},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"dangerous_goods":{"oneOf":[{"$ref":"#/components/schemas/DangerousGoodsRate1"},{"type":"null"}]},"extra_stop":{"oneOf":[{"$ref":"#/components/schemas/ExtraStopRate1"},{"type":"null"}]},"flat_fee":{"oneOf":[{"$ref":"#/components/schemas/FlatFeeRate1"},{"type":"null"}]},"from_payables":{"oneOf":[{"$ref":"#/components/schemas/FromPayables1"},{"type":"null"}]},"fuel_surcharge":{"oneOf":[{"$ref":"#/components/schemas/FuelSurchargeRate1"},{"type":"null"}]},"holiday":{"oneOf":[{"$ref":"#/components/schemas/HolidayRate1"},{"type":"null"}]},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"long_distance_surcharge":{"oneOf":[{"$ref":"#/components/schemas/LongDistanceSurchargeRate1"},{"type":"null"}]},"name":{"type":["string","null"]},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"pick_and_hold":{"oneOf":[{"$ref":"#/components/schemas/PickAndHoldRate1"},{"type":"null"}]},"schema_version":{"type":"integer"},"service_line":{"$ref":"#/components/schemas/ServiceLineEnum"},"shipper_account_id":{"type":["string","null"]},"updated_at_timestamp":{"type":"string","format":"date-time"},"vehicle_types":{"type":"array","items":{"$ref":"#/components/schemas/VehicleTypeEnum"}},"wait_time":{"oneOf":[{"$ref":"#/components/schemas/WaitTimeRate1"},{"type":"null"}]},"weekend":{"oneOf":[{"$ref":"#/components/schemas/WeekendRate1"},{"type":"null"}]}},"required":["_id","created_at_timestamp","currency_code","invoice_type","owned_by_org_id","schema_version","updated_at_timestamp"],"title":"ChrtGroundProviderRates1"},"ChrtGroundProviderRatesSortByEnum":{"type":"string","enum":["name","currency_code","created_at_timestamp","updated_at_timestamp"],"title":"ChrtGroundProviderRatesSortByEnum"},"ChrtGroundProviderRatesListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ChrtGroundProviderRates1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"ChrtGroundProviderRatesListRes"},"ResolveChrtGroundProviderRatesReq":{"type":"object","properties":{"order_id":{"type":"string"}},"required":["order_id"],"title":"ResolveChrtGroundProviderRatesReq"},"TaskGroupMessage1":{"type":"object","properties":{"message":{"type":"string","maxLength":524288},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"timestamp":{"type":"string","format":"date-time"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["message","org_id","timestamp","user_id"],"title":"TaskGroupMessage1"},"TaskGroupStatusEnum1":{"type":"string","enum":["draft","staged","in_progress","completed","skipped","cancelled","exception"],"title":"TaskGroupStatusEnum1"},"TaskGroupTypeEnum1":{"type":"string","enum":["chrt_ground_provider","cargo_on_flight","onboard_courier"],"title":"TaskGroupTypeEnum1"},"TaskGroup1":{"type":"object","properties":{"_id":{"type":"string"},"cancelled_at_timestamp":{"type":["string","null"],"format":"date-time"},"completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"coordinator_org_id":{"type":["string","null"]},"coordinator_setup_notes":{"type":["string","null"]},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":["string","null"]},"draft_started_at_timestamp":{"type":"string","format":"date-time"},"driver_id":{"type":["string","null"]},"exception_at_timestamp":{"type":["string","null"],"format":"date-time"},"executor_org_id":{"type":["string","null"]},"flight_leg_ids":{"type":"array","items":{"type":"string"}},"flight_setup_notes":{"type":["string","null"]},"in_progress_at_timestamp":{"type":["string","null"],"format":"date-time"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/TaskGroupMessage1"}},"mileage_estimated":{"type":["number","null"],"format":"double"},"off_chrt_executor_org_data_id":{"type":["string","null"]},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"order_id":{"type":"string"},"order_off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"order_short_id":{"type":"string"},"schema_version":{"type":"integer"},"shipper_org_id":{"type":["string","null"]},"skipped_at_timestamp":{"type":["string","null"],"format":"date-time"},"staged_at_timestamp":{"type":["string","null"],"format":"date-time"},"status":{"$ref":"#/components/schemas/TaskGroupStatusEnum1"},"task_group_s3_object_metadata_ids":{"type":"array","items":{"type":"string"}},"task_group_type":{"$ref":"#/components/schemas/TaskGroupTypeEnum1"},"task_ids":{"type":"array","items":{"type":"string"}},"vehicle_type":{"oneOf":[{"$ref":"#/components/schemas/VehicleTypeEnum"},{"type":"null"}],"default":"cargo_van"},"wait_time_total_minutes":{"type":["number","null"],"format":"double"}},"required":["_id","created_by_org_id","draft_started_at_timestamp","order_id","order_short_id","schema_version","task_group_type"],"title":"TaskGroup1"},"ResolvedTaskGroupChrtGroundProviderRates1":{"type":"object","properties":{"accounts_payable_rate_sheets":{"type":"array","items":{"$ref":"#/components/schemas/ChrtGroundProviderRates1"}},"accounts_receivable_rate_sheets":{"type":"array","items":{"$ref":"#/components/schemas/ChrtGroundProviderRates1"}},"task_group":{"$ref":"#/components/schemas/TaskGroup1"}},"required":["task_group"],"title":"ResolvedTaskGroupChrtGroundProviderRates1"},"ChrtGroundProviderRatesTypeaheadFieldEnum":{"type":"string","enum":["name"],"title":"ChrtGroundProviderRatesTypeaheadFieldEnum"},"ChrtGroundProviderRatesTypeaheadValue":{"type":"object","properties":{"chrt_ground_provider_rates_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["chrt_ground_provider_rates_ids","value"],"title":"ChrtGroundProviderRatesTypeaheadValue"},"ChrtGroundProviderRatesTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ChrtGroundProviderRatesTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/ChrtGroundProviderRatesTypeaheadValue"}}},"required":["type","values"],"title":"ChrtGroundProviderRatesTypeaheadResult"},"ChrtGroundProviderRatesClientUpdate1":{"type":"object","properties":{"additional_mileage":{"oneOf":[{"$ref":"#/components/schemas/AdditionalMileageRate1"},{"type":"null"}]},"additional_mileage__set_to_None":{"type":"boolean","default":false},"after_hours":{"oneOf":[{"$ref":"#/components/schemas/AfterHoursRate1"},{"type":"null"}]},"after_hours__set_to_None":{"type":"boolean","default":false},"attempt":{"oneOf":[{"$ref":"#/components/schemas/AttemptRate1"},{"type":"null"}]},"attempt__set_to_None":{"type":"boolean","default":false},"base_mileage":{"oneOf":[{"$ref":"#/components/schemas/BaseMileageRate1"},{"type":"null"}]},"base_mileage__set_to_None":{"type":"boolean","default":false},"cargo_types":{"type":"array","items":{"$ref":"#/components/schemas/CargoTypeEnum1"}},"comments":{"type":["string","null"],"maxLength":524288},"comments__set_to_None":{"type":"boolean","default":false},"currency_code":{"oneOf":[{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},{"type":"null"}]},"dangerous_goods":{"oneOf":[{"$ref":"#/components/schemas/DangerousGoodsRate1"},{"type":"null"}]},"dangerous_goods__set_to_None":{"type":"boolean","default":false},"extra_stop":{"oneOf":[{"$ref":"#/components/schemas/ExtraStopRate1"},{"type":"null"}]},"extra_stop__set_to_None":{"type":"boolean","default":false},"flat_fee":{"oneOf":[{"$ref":"#/components/schemas/FlatFeeRate1"},{"type":"null"}]},"flat_fee__set_to_None":{"type":"boolean","default":false},"from_payables":{"oneOf":[{"$ref":"#/components/schemas/FromPayables1"},{"type":"null"}]},"from_payables__set_to_None":{"type":"boolean","default":false},"fuel_surcharge":{"oneOf":[{"$ref":"#/components/schemas/FuelSurchargeRate1"},{"type":"null"}]},"fuel_surcharge__set_to_None":{"type":"boolean","default":false},"holiday":{"oneOf":[{"$ref":"#/components/schemas/HolidayRate1"},{"type":"null"}]},"holiday__set_to_None":{"type":"boolean","default":false},"invoice_type":{"oneOf":[{"$ref":"#/components/schemas/InvoiceTypeEnum1"},{"type":"null"}]},"long_distance_surcharge":{"oneOf":[{"$ref":"#/components/schemas/LongDistanceSurchargeRate1"},{"type":"null"}]},"long_distance_surcharge__set_to_None":{"type":"boolean","default":false},"name":{"type":["string","null"]},"name__set_to_None":{"type":"boolean","default":false},"pick_and_hold":{"oneOf":[{"$ref":"#/components/schemas/PickAndHoldRate1"},{"type":"null"}]},"pick_and_hold__set_to_None":{"type":"boolean","default":false},"service_line":{"oneOf":[{"$ref":"#/components/schemas/ServiceLineEnum"},{"type":"null"}]},"vehicle_types":{"type":"array","items":{"$ref":"#/components/schemas/VehicleTypeEnum"}},"wait_time":{"oneOf":[{"$ref":"#/components/schemas/WaitTimeRate1"},{"type":"null"}]},"wait_time__set_to_None":{"type":"boolean","default":false},"weekend":{"oneOf":[{"$ref":"#/components/schemas/WeekendRate1"},{"type":"null"}]},"weekend__set_to_None":{"type":"boolean","default":false}},"title":"ChrtGroundProviderRatesClientUpdate1"},"InvoiceLineItemClientCreate1":{"type":"object","properties":{"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"description":{"type":"string","minLength":1,"maxLength":32768},"export_ref__sage__item_id":{"type":["string","null"],"maxLength":255},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"line_item_type":{"$ref":"#/components/schemas/InvoiceLineItemTypeEnum1"},"quantity":{"type":"number","format":"double","exclusiveMinimum":0},"schema_version":{"type":"integer"},"shipper_account_id":{"type":["string","null"]},"tax_percentage":{"type":["number","null"],"format":"double","minimum":0},"unit":{"oneOf":[{"$ref":"#/components/schemas/InvoiceLineItemUnitEnum1"},{"type":"null"}]},"unit_price":{"type":"number","format":"double"}},"required":["currency_code","description","invoice_type","line_item_type","quantity","schema_version","unit_price"],"title":"InvoiceLineItemClientCreate1"},"AdHocInvoiceLineItem1":{"type":"object","properties":{"invoice_line_item":{"$ref":"#/components/schemas/InvoiceLineItemClientCreate1"},"split_evenly_across_account_ids":{"type":"array","items":{"type":"string"}}},"required":["invoice_line_item"],"title":"AdHocInvoiceLineItem1"},"AdHocInvoiceLineItemsReq":{"type":"object","properties":{"ad_hoc_line_items":{"type":"array","items":{"$ref":"#/components/schemas/AdHocInvoiceLineItem1"}},"task_group_id":{"type":"string"}},"required":["ad_hoc_line_items","task_group_id"],"title":"AdHocInvoiceLineItemsReq"},"InvoiceLineItemServerCreate1":{"type":"object","properties":{"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"billing_period_id":{"type":["string","null"]},"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"currency_conversion":{"oneOf":[{"$ref":"#/components/schemas/InvoiceLineItemCurrencyConversion1"},{"type":"null"}]},"description":{"type":"string","minLength":1,"maxLength":32768},"export_ref__sage__item_id":{"type":["string","null"],"maxLength":255},"invoice_id":{"type":["string","null"]},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"last_edited_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"line_item_type":{"$ref":"#/components/schemas/InvoiceLineItemTypeEnum1"},"order_id":{"type":["string","null"]},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"quantity":{"type":"number","format":"double","exclusiveMinimum":0},"rate_sheet_id":{"type":["string","null"]},"schema_version":{"type":"integer"},"shipper_account_id":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/InvoiceLineItemStatusEnum1"},"task_group_id":{"type":["string","null"]},"tax_percentage":{"type":["number","null"],"format":"double","minimum":0},"unit":{"oneOf":[{"$ref":"#/components/schemas/InvoiceLineItemUnitEnum1"},{"type":"null"}]},"unit_price":{"type":"number","format":"double"}},"required":["created_at_timestamp","created_by_user_id","currency_code","description","invoice_type","last_edited_at_timestamp","last_edited_by_user_id","line_item_type","owned_by_org_id","quantity","schema_version","unit_price"],"title":"InvoiceLineItemServerCreate1"},"InvoiceLineItemsApproveManyReq":{"type":"object","properties":{"invoice_line_item_ids":{"type":"array","items":{"type":"string"}}},"required":["invoice_line_item_ids"],"title":"InvoiceLineItemsApproveManyReq"},"LocationFeatureBbox":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"string"}}],"title":"LocationFeatureBbox"},"LocationFeatureGeometryDiscriminatorMappingGeometryCollectionBbox":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"string"}}],"title":"LocationFeatureGeometryDiscriminatorMappingGeometryCollectionBbox"},"LocationFeatureGeometryDiscriminatorMappingLineStringBbox":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"string"}}],"title":"LocationFeatureGeometryDiscriminatorMappingLineStringBbox"},"Position2D":{"type":"array","items":{"type":"string"},"title":"Position2D"},"Position3D":{"type":"array","items":{"type":"string"},"title":"Position3D"},"LocationFeatureGeometryDiscriminatorMappingLineStringCoordinatesItems":{"oneOf":[{"$ref":"#/components/schemas/Position2D"},{"$ref":"#/components/schemas/Position3D"}],"title":"LocationFeatureGeometryDiscriminatorMappingLineStringCoordinatesItems"},"MultiLineStringBbox":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"string"}}],"title":"MultiLineStringBbox"},"MultiLineStringCoordinatesItemsItems":{"oneOf":[{"$ref":"#/components/schemas/Position2D"},{"$ref":"#/components/schemas/Position3D"}],"title":"MultiLineStringCoordinatesItemsItems"},"MultiPointBbox":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"string"}}],"title":"MultiPointBbox"},"MultiPointCoordinatesItems":{"oneOf":[{"$ref":"#/components/schemas/Position2D"},{"$ref":"#/components/schemas/Position3D"}],"title":"MultiPointCoordinatesItems"},"MultiPolygonBbox":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"string"}}],"title":"MultiPolygonBbox"},"MultiPolygonCoordinatesItemsItemsItems":{"oneOf":[{"$ref":"#/components/schemas/Position2D"},{"$ref":"#/components/schemas/Position3D"}],"title":"MultiPolygonCoordinatesItemsItemsItems"},"PointBbox":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"string"}}],"title":"PointBbox"},"PointCoordinates":{"oneOf":[{"$ref":"#/components/schemas/Position2D"},{"$ref":"#/components/schemas/Position3D"}],"title":"PointCoordinates"},"PolygonBbox":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"string"}}],"title":"PolygonBbox"},"PolygonCoordinatesItemsItems":{"oneOf":[{"$ref":"#/components/schemas/Position2D"},{"$ref":"#/components/schemas/Position3D"}],"title":"PolygonCoordinatesItemsItems"},"LocationFeatureGeometryDiscriminatorMappingGeometryCollectionGeometriesItems":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["GeometryCollection"],"description":"Discriminator value: GeometryCollection"}},"required":["type"],"description":"GeometryCollection Model"},{"type":"object","properties":{"type":{"type":"string","enum":["LineString"],"description":"Discriminator value: LineString"},"bbox":{"oneOf":[{"$ref":"#/components/schemas/LocationFeatureGeometryDiscriminatorMappingLineStringBbox"},{"type":"null"}]},"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/LocationFeatureGeometryDiscriminatorMappingLineStringCoordinatesItems"}}},"required":["type","coordinates"],"description":"LineString Model"},{"type":"object","properties":{"type":{"type":"string","enum":["MultiLineString"]},"bbox":{"oneOf":[{"$ref":"#/components/schemas/MultiLineStringBbox"},{"type":"null"}]},"coordinates":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/MultiLineStringCoordinatesItemsItems"}}}},"required":["type","coordinates"],"description":"MultiLineString Model"},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPoint"]},"bbox":{"oneOf":[{"$ref":"#/components/schemas/MultiPointBbox"},{"type":"null"}]},"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/MultiPointCoordinatesItems"}}},"required":["type","coordinates"],"description":"MultiPoint Model"},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"bbox":{"oneOf":[{"$ref":"#/components/schemas/MultiPolygonBbox"},{"type":"null"}]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/MultiPolygonCoordinatesItemsItemsItems"}}}}},"required":["type","coordinates"],"description":"MultiPolygon Model"},{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"bbox":{"oneOf":[{"$ref":"#/components/schemas/PointBbox"},{"type":"null"}]},"coordinates":{"$ref":"#/components/schemas/PointCoordinates"}},"required":["type","coordinates"],"description":"Point Model"},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"bbox":{"oneOf":[{"$ref":"#/components/schemas/PolygonBbox"},{"type":"null"}]},"coordinates":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/PolygonCoordinatesItemsItems"}}}},"required":["type","coordinates"],"description":"Polygon Model"}],"discriminator":{"propertyName":"type"},"title":"LocationFeatureGeometryDiscriminatorMappingGeometryCollectionGeometriesItems"},"LocationFeatureGeometry":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["GeometryCollection"],"description":"Discriminator value: GeometryCollection"},"bbox":{"oneOf":[{"$ref":"#/components/schemas/LocationFeatureGeometryDiscriminatorMappingGeometryCollectionBbox"},{"type":"null"}]},"geometries":{"type":"array","items":{"$ref":"#/components/schemas/LocationFeatureGeometryDiscriminatorMappingGeometryCollectionGeometriesItems"}}},"required":["type","geometries"],"description":"GeometryCollection Model"},{"type":"object","properties":{"type":{"type":"string","enum":["LineString"],"description":"Discriminator value: LineString"},"bbox":{"oneOf":[{"$ref":"#/components/schemas/LocationFeatureGeometryDiscriminatorMappingLineStringBbox"},{"type":"null"}]},"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/LocationFeatureGeometryDiscriminatorMappingLineStringCoordinatesItems"}}},"required":["type","coordinates"],"description":"LineString Model"},{"type":"object","properties":{"type":{"type":"string","enum":["MultiLineString"]},"bbox":{"oneOf":[{"$ref":"#/components/schemas/MultiLineStringBbox"},{"type":"null"}]},"coordinates":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/MultiLineStringCoordinatesItemsItems"}}}},"required":["type","coordinates"],"description":"MultiLineString Model"},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPoint"]},"bbox":{"oneOf":[{"$ref":"#/components/schemas/MultiPointBbox"},{"type":"null"}]},"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/MultiPointCoordinatesItems"}}},"required":["type","coordinates"],"description":"MultiPoint Model"},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"bbox":{"oneOf":[{"$ref":"#/components/schemas/MultiPolygonBbox"},{"type":"null"}]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/MultiPolygonCoordinatesItemsItemsItems"}}}}},"required":["type","coordinates"],"description":"MultiPolygon Model"},{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"bbox":{"oneOf":[{"$ref":"#/components/schemas/PointBbox"},{"type":"null"}]},"coordinates":{"$ref":"#/components/schemas/PointCoordinates"}},"required":["type","coordinates"],"description":"Point Model"},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"bbox":{"oneOf":[{"$ref":"#/components/schemas/PolygonBbox"},{"type":"null"}]},"coordinates":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/PolygonCoordinatesItemsItems"}}}},"required":["type","coordinates"],"description":"Polygon Model"}],"discriminator":{"propertyName":"type"},"title":"LocationFeatureGeometry"},"LocationFeatureId":{"oneOf":[{"type":"integer"},{"type":"string"}],"title":"LocationFeatureId"},"LocationProperties":{"type":"object","properties":{"address":{"type":["string","null"]},"name":{"type":["string","null"]}},"description":"Properties for GeoJSON Feature objects","title":"LocationProperties"},"LocationFeature":{"type":"object","properties":{"bbox":{"oneOf":[{"$ref":"#/components/schemas/LocationFeatureBbox"},{"type":"null"}]},"geometry":{"$ref":"#/components/schemas/LocationFeatureGeometry"},"id":{"oneOf":[{"$ref":"#/components/schemas/LocationFeatureId"},{"type":"null"}]},"properties":{"oneOf":[{"$ref":"#/components/schemas/LocationProperties"},{"type":"null"}]},"type":{"type":"string","enum":["Feature"]}},"required":["geometry","type"],"description":"GeoJSON Feature with typed properties for locations\n\nThe geometry field is strongly typed as Geometry (union of all geometry types)\nbut remains optional to match the base Feature class specification.\nTo ensure geometry is always present, validate it at runtime or make it required.","title":"LocationFeature"},"DriverStatusEnum":{"type":"string","enum":["unassigned","assigned","in_progress"],"title":"DriverStatusEnum"},"Driver1":{"type":"object","properties":{"_id":{"type":"string"},"archived_at_timestamp":{"type":["string","null"],"format":"date-time"},"auto_assign_enabled":{"type":"boolean","default":true},"available_according_to_driver":{"type":"boolean","default":true},"available_according_to_operators":{"type":"boolean","default":true},"email_address_primary":{"type":["string","null"],"format":"email"},"email_address_secondary":{"type":["string","null"],"format":"email"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"last_seen_at_location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"last_seen_at_location_city":{"type":["string","null"]},"last_seen_at_location_large_city":{"type":["string","null"]},"last_seen_at_timestamp":{"type":["string","null"],"format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"phone_number_primary":{"type":["string","null"],"format":"phone"},"phone_number_secondary":{"type":["string","null"],"format":"phone"},"schema_version":{"type":"integer"},"status":{"$ref":"#/components/schemas/DriverStatusEnum"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"},"vehicle_types":{"type":"array","items":{"$ref":"#/components/schemas/VehicleTypeEnum"}},"waiting":{"type":"boolean","default":false}},"required":["_id","org_id","schema_version","user_id"],"title":"Driver1"},"OffChrtOrgData1":{"type":"object","properties":{"_id":{"type":"string"},"air_waybill_prefix":{"type":["string","null"],"pattern":"^\\d{3}$"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"email_address":{"type":["string","null"]},"industry":{"type":["string","null"]},"name":{"type":"string","minLength":1,"maxLength":255},"org_type":{"$ref":"#/components/schemas/OrgTypeEnum"},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"phone_number":{"type":["string","null"],"format":"phone"},"schema_version":{"type":"integer"},"street_address":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]}},"required":["_id","created_by_user_id","name","org_type","owned_by_org_id","schema_version"],"title":"OffChrtOrgData1"},"OrgPublicData1":{"type":"object","properties":{"_id":{"type":"string"},"description":{"type":["string","null"],"maxLength":524288},"email_address":{"type":["string","null"]},"handle":{"type":["string","null"],"pattern":"^@[a-zA-Z0-9_-]+$","minLength":2,"maxLength":30},"industry":{"type":["string","null"]},"name":{"type":"string","minLength":1,"maxLength":255},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"org_public_data_s3_object_metadata_ids":{"type":"array","items":{"type":"string"}},"org_type":{"$ref":"#/components/schemas/OrgTypeEnum"},"phone_number":{"type":["string","null"],"format":"phone"},"schema_version":{"type":"integer"},"street_address":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]}},"required":["_id","name","org_id","org_type","schema_version"],"title":"OrgPublicData1"},"Account1":{"type":"object","properties":{"_id":{"type":"string"},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"name":{"type":"string","minLength":1,"maxLength":255},"off_chrt_org_data_id":{"type":["string","null"]},"org_id":{"type":["string","null"]},"schema_version":{"type":"integer"}},"required":["_id","created_by_org_id","created_by_user_id","name","schema_version"],"title":"Account1"},"InvoiceLineItemsByOrderExpandedRes":{"type":"object","properties":{"billing_periods":{"type":"array","items":{"$ref":"#/components/schemas/BillingPeriodExpanded1"}},"counterparty_drivers":{"type":"array","items":{"$ref":"#/components/schemas/Driver1"}},"counterparty_off_chrt_org_data":{"type":"array","items":{"$ref":"#/components/schemas/OffChrtOrgData1"}},"counterparty_orgs":{"type":"array","items":{"$ref":"#/components/schemas/OrgPublicData1"}},"invoice_line_items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItem1"}},"shipper_accounts":{"type":"array","items":{"$ref":"#/components/schemas/Account1"}}},"required":["billing_periods","counterparty_drivers","counterparty_off_chrt_org_data","counterparty_orgs","invoice_line_items","shipper_accounts"],"title":"InvoiceLineItemsByOrderExpandedRes"},"CreateInvoiceLineItemsFromAwbCostsItem1Cost":{"oneOf":[{"type":"number","format":"double","exclusiveMinimum":0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"CreateInvoiceLineItemsFromAwbCostsItem1Cost"},"CreateInvoiceLineItemsFromAwbCostsItem1":{"type":"object","properties":{"awb_number":{"type":"string","pattern":"^\\d{3}-\\d{8}$","description":"IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'."},"cost":{"$ref":"#/components/schemas/CreateInvoiceLineItemsFromAwbCostsItem1Cost"},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"}},"required":["awb_number","cost","currency_code"],"title":"CreateInvoiceLineItemsFromAwbCostsItem1"},"CreateInvoiceLineItemsFromAwbCostsReq":{"type":"object","properties":{"awb_costs":{"type":"array","items":{"$ref":"#/components/schemas/CreateInvoiceLineItemsFromAwbCostsItem1"}}},"required":["awb_costs"],"title":"CreateInvoiceLineItemsFromAwbCostsReq"},"CreateInvoiceLineItemsFromAwbCostsGroupRes1":{"type":"object","properties":{"counterparty_off_chrt_org_data_id":{"type":"string"},"created_awb_count":{"type":"integer","minimum":0},"created_invoice_line_item_count":{"type":"integer","minimum":0},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"invoice_line_item_ids":{"type":"array","items":{"type":"string"}}},"required":["counterparty_off_chrt_org_data_id","created_awb_count","created_invoice_line_item_count","currency_code"],"title":"CreateInvoiceLineItemsFromAwbCostsGroupRes1"},"CreateInvoiceLineItemsFromAwbCostsCreatedAwb1":{"type":"object","properties":{"awb_number":{"type":"string","pattern":"^\\d{3}-\\d{8}$","description":"IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'."},"created_invoice_line_item_count":{"type":"integer","minimum":1},"order_id":{"type":"string"}},"required":["awb_number","created_invoice_line_item_count","order_id"],"title":"CreateInvoiceLineItemsFromAwbCostsCreatedAwb1"},"CreateInvoiceLineItemsFromAwbCostsRejectedReasonEnum1":{"type":"string","enum":["already_billed","multiple_orders","not_resolvable"],"title":"CreateInvoiceLineItemsFromAwbCostsRejectedReasonEnum1"},"CreateInvoiceLineItemsFromAwbCostsRejectedAwb1":{"type":"object","properties":{"awb_number":{"type":"string","pattern":"^\\d{3}-\\d{8}$","description":"IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'."},"reason":{"$ref":"#/components/schemas/CreateInvoiceLineItemsFromAwbCostsRejectedReasonEnum1"}},"required":["awb_number","reason"],"title":"CreateInvoiceLineItemsFromAwbCostsRejectedAwb1"},"CreateInvoiceLineItemsFromAwbCostsRes":{"type":"object","properties":{"charge_groups":{"type":"array","items":{"$ref":"#/components/schemas/CreateInvoiceLineItemsFromAwbCostsGroupRes1"}},"created_awbs":{"type":"array","items":{"$ref":"#/components/schemas/CreateInvoiceLineItemsFromAwbCostsCreatedAwb1"}},"created_invoice_line_item_count":{"type":"integer","minimum":0},"rejected_awbs":{"type":"array","items":{"$ref":"#/components/schemas/CreateInvoiceLineItemsFromAwbCostsRejectedAwb1"}}},"required":["created_invoice_line_item_count"],"title":"CreateInvoiceLineItemsFromAwbCostsRes"},"InvoiceLineItemsDeleteManyReq":{"type":"object","properties":{"invoice_line_item_ids":{"type":"array","items":{"type":"string"}}},"required":["invoice_line_item_ids"],"title":"InvoiceLineItemsDeleteManyReq"},"InvoiceLineItemsDeleteManyRes":{"type":"object","properties":{"deleted_invoice_line_item_ids":{"type":"array","items":{"type":"string"}}},"required":["deleted_invoice_line_item_ids"],"title":"InvoiceLineItemsDeleteManyRes"},"InvoiceLineItemExportListReq":{"type":"object","properties":{"include_estimated_taxes":{"type":"boolean","default":true},"order_ids":{"type":"array","items":{"type":"string"}}},"required":["order_ids"],"title":"InvoiceLineItemExportListReq"},"InvoiceLineItemExportListItem":{"type":"object","properties":{"account_name":{"type":["string","null"]},"airlines":{"type":"array","items":{"type":"string"}},"awb_numbers":{"type":"array","items":{"type":"string"}},"billing_period_end_at_timestamp":{"type":["string","null"],"format":"date-time"},"billing_period_start_at_timestamp":{"type":["string","null"],"format":"date-time"},"cargo_descriptions":{"type":"array","items":{"type":"string"}},"cargo_quantity":{"type":["integer","null"]},"cargo_types":{"type":"array","items":{"type":"string"}},"conversion_rate":{"type":["number","null"],"format":"double"},"counterparty_name":{"type":["string","null"]},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"currency_conversion_description":{"type":["string","null"]},"delivery_address":{"type":["string","null"]},"delivery_location_name":{"type":["string","null"]},"delivery_status":{"type":["string","null"]},"delivery_stop_number":{"type":["integer","null"]},"delivery_stops_on_order":{"type":["integer","null"]},"destination_iata":{"type":["string","null"]},"flight_numbers":{"type":"array","items":{"type":"string"}},"invoice_approval_timestamp":{"type":["string","null"],"format":"date-time"},"invoice_line_item_id":{"type":["string","null"]},"invoice_line_item_status":{"oneOf":[{"$ref":"#/components/schemas/InvoiceLineItemStatusEnum1"},{"type":"null"}]},"invoice_number":{"type":["string","null"]},"invoice_status":{"oneOf":[{"$ref":"#/components/schemas/InvoiceStatusEnum1"},{"type":"null"}]},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"is_estimate":{"type":"boolean","default":false},"line_item_awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"line_item_description":{"type":"string"},"line_item_quantity":{"type":"number","format":"double"},"line_item_total_amount":{"type":"number","format":"double"},"line_item_type":{"$ref":"#/components/schemas/InvoiceLineItemTypeEnum1"},"line_item_unit":{"oneOf":[{"$ref":"#/components/schemas/InvoiceLineItemUnitEnum1"},{"type":"null"}]},"line_item_unit_price":{"type":"number","format":"double"},"mileage_estimated":{"type":["number","null"],"format":"double"},"off_chrt_reference_id":{"type":["string","null"]},"order_last_delivery_task_completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"order_placer_comments":{"type":["string","null"]},"order_short_id":{"type":["string","null"]},"origin_iata":{"type":["string","null"]},"pod_at_timestamp":{"type":["string","null"],"format":"date-time"},"pod_name":{"type":["string","null"]},"source_currency_code":{"oneOf":[{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},{"type":"null"}]},"source_unit_price":{"type":["number","null"],"format":"double"},"tax_percentage":{"type":["number","null"],"format":"double"},"weight_pounds":{"type":["number","null"],"format":"double"}},"required":["currency_code","invoice_line_item_id","invoice_line_item_status","invoice_type","line_item_description","line_item_quantity","line_item_total_amount","line_item_type","line_item_unit_price"],"title":"InvoiceLineItemExportListItem"},"InvoiceLineItemExportListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItemExportListItem"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"InvoiceLineItemExportListRes"},"TaskGroupChrtGroundProviderRateSheetIds1":{"type":"object","properties":{"rate_sheet_ids":{"type":"array","items":{"type":"string"}},"task_group_id":{"type":"string"}},"required":["rate_sheet_ids","task_group_id"],"title":"TaskGroupChrtGroundProviderRateSheetIds1"},"InvoiceLineItemsFromChrtGroundProviderRateSheetsReq":{"type":"object","properties":{"task_group_chrt_ground_provider_rate_sheet_ids":{"type":"array","items":{"$ref":"#/components/schemas/TaskGroupChrtGroundProviderRateSheetIds1"}}},"required":["task_group_chrt_ground_provider_rate_sheet_ids"],"title":"InvoiceLineItemsFromChrtGroundProviderRateSheetsReq"},"TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1":{"type":"object","properties":{"accounts_payable_invoice_line_items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItemServerCreate1"}},"accounts_receivable_invoice_line_items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItemServerCreate1"}},"task_group_id":{"type":"string"}},"required":["task_group_id"],"title":"TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1"},"InvoiceLineItemSortByEnum":{"type":"string","enum":["created_at_timestamp","last_edited_at_timestamp","description","quantity","unit_price","invoice_type","currency_code","line_item_type"],"title":"InvoiceLineItemSortByEnum"},"InvoiceLineItemExpandedListItem":{"type":"object","properties":{"invoice":{"oneOf":[{"$ref":"#/components/schemas/Invoice1"},{"type":"null"}]},"invoice_line_item":{"$ref":"#/components/schemas/InvoiceLineItem1"}},"required":["invoice_line_item"],"title":"InvoiceLineItemExpandedListItem"},"InvoiceLineItemListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItemExpandedListItem"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"InvoiceLineItemListRes"},"InvoiceLineItemsCurrencyConversionRevertForOrdersReq":{"type":"object","properties":{"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"order_ids":{"type":"array","items":{"type":"string"}},"source_currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1","description":"Original currency of the charges to act on -- their currency_conversion.source_currency_code if already converted, otherwise their current currency_code."}},"required":["invoice_type","order_ids","source_currency_code"],"title":"InvoiceLineItemsCurrencyConversionRevertForOrdersReq"},"InvoiceLineItemsCurrencyConversionForOrdersResStatus":{"type":"string","enum":["succeeded","failed","no_matching_charges"],"title":"InvoiceLineItemsCurrencyConversionForOrdersResStatus"},"InvoiceLineItemsCurrencyConversionForOrdersRes":{"type":"object","properties":{"converted_invoice_line_items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItem1"}},"failure_reason":{"type":["string","null"]},"order_id":{"type":"string"},"status":{"$ref":"#/components/schemas/InvoiceLineItemsCurrencyConversionForOrdersResStatus"},"unmatched_invoice_line_item_ids":{"type":"array","items":{"type":"string"},"description":"Order charges for another direction, counterparty, or original source currency."}},"required":["order_id","status"],"title":"InvoiceLineItemsCurrencyConversionForOrdersRes"},"InvoiceLineItemsCurrencyConversionUpdateForOrdersReq":{"type":"object","properties":{"conversion_rate":{"type":"number","format":"double","exclusiveMinimum":0,"description":"Units of target_currency_code per one unit of source_currency_code."},"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"description":{"type":["string","null"],"maxLength":255},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"order_ids":{"type":"array","items":{"type":"string"}},"source_currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1","description":"Original currency of the charges to act on -- their currency_conversion.source_currency_code if already converted, otherwise their current currency_code."},"target_currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"}},"required":["conversion_rate","invoice_type","order_ids","source_currency_code","target_currency_code"],"title":"InvoiceLineItemsCurrencyConversionUpdateForOrdersReq"},"InvoiceLineItemsCurrencyConversionUpdateManyReq":{"type":"object","properties":{"conversion_rate":{"type":["number","null"],"format":"double","exclusiveMinimum":0,"description":"Units of target_currency_code per one unit of the line items' original source currency -- their currency_conversion.source_currency_code if already converted, otherwise their current currency_code. Always relative to that original source, never to an intermediate converted currency, so conversions never compound. Omitted when target_currency_code is the original source currency, which reverts converted items and leaves unconverted items unchanged."},"description":{"type":["string","null"],"maxLength":255},"invoice_line_item_ids":{"type":"array","items":{"type":"string"}},"target_currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"}},"required":["invoice_line_item_ids","target_currency_code"],"title":"InvoiceLineItemsCurrencyConversionUpdateManyReq"},"InvoiceLineItemClientUpdate1":{"type":"object","properties":{"description":{"type":["string","null"],"minLength":1,"maxLength":32768},"export_ref__sage__item_id":{"type":["string","null"],"maxLength":255},"export_ref__sage__item_id__set_to_None":{"type":"boolean","default":false},"invoice_type":{"oneOf":[{"$ref":"#/components/schemas/InvoiceTypeEnum1"},{"type":"null"}]},"quantity":{"type":["number","null"],"format":"double","exclusiveMinimum":0},"shipper_account_id":{"type":["string","null"]},"shipper_account_id__set_to_None":{"type":"boolean","default":false},"source_currency_code":{"oneOf":[{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},{"type":"null"}]},"source_unit_price":{"type":["number","null"],"format":"double"},"unit":{"oneOf":[{"$ref":"#/components/schemas/InvoiceLineItemUnitEnum1"},{"type":"null"}]},"unit__set_to_None":{"type":"boolean","default":false}},"title":"InvoiceLineItemClientUpdate1"},"InvoiceCreateReq":{"type":"object","properties":{"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"description":{"type":["string","null"],"maxLength":32768},"export_ref__sage__customer_id":{"type":["string","null"],"maxLength":255},"export_ref__sage__department_id":{"type":["string","null"],"maxLength":255},"invoice_line_item_ids":{"type":"array","items":{"type":"string"}},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"name":{"type":["string","null"],"maxLength":255},"period_end_at_timestamp":{"type":["string","null"],"format":"date-time"},"period_start_at_timestamp":{"type":["string","null"],"format":"date-time"},"schema_version":{"type":"integer"}},"required":["currency_code","invoice_type","schema_version"],"title":"InvoiceCreateReq"},"InvoiceCreateFromOrdersReq":{"type":"object","properties":{"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"description":{"type":["string","null"],"maxLength":32768},"export_ref__sage__customer_id":{"type":["string","null"],"maxLength":255},"export_ref__sage__department_id":{"type":["string","null"],"maxLength":255},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"name":{"type":["string","null"],"maxLength":255},"order_ids":{"type":"array","items":{"type":"string"}},"period_end_at_timestamp":{"type":["string","null"],"format":"date-time","description":"When derived, the exclusive UTC midnight after the last delivery day. Explicit bounds are preserved."},"period_start_at_timestamp":{"type":["string","null"],"format":"date-time","description":"Supply both bounds or omit both to derive the period from delivery completion days in UTC."},"schema_version":{"type":"integer"}},"required":["currency_code","invoice_type","order_ids","schema_version"],"title":"InvoiceCreateFromOrdersReq"},"InvoiceCreateFromOrdersRes":{"type":"object","properties":{"added_invoice_line_item_ids":{"type":"array","items":{"type":"string"}},"already_invoiced_line_item_ids":{"type":"array","items":{"type":"string"}},"finalized_line_item_ids":{"type":"array","items":{"type":"string"}},"invoice":{"oneOf":[{"$ref":"#/components/schemas/Invoice1"},{"type":"null"}],"description":"Created draft, or null when no charges qualify."},"orders_without_added_charges":{"type":"array","items":{"type":"string"}},"unmatched_line_item_ids":{"type":"array","items":{"type":"string"},"description":"Charges for another counterparty, invoice type, or currency, regardless of status."}},"title":"InvoiceCreateFromOrdersRes"},"TaskListToApplyToOrder1":{"type":"object","properties":{"department_id":{"type":["string","null"]},"entry_tag":{"type":["string","null"]},"initial_deadline_timestamp":{"type":["string","null"],"format":"date-time"},"task_list_id":{"type":"string"}},"required":["task_list_id"],"description":"Shared task-list application payload for drafts, templates, and Order staging.","title":"TaskListToApplyToOrder1"},"OrderStatusEnum1":{"type":"string","enum":["draft","staged","in_progress","completed","cancelled","exception"],"title":"OrderStatusEnum1"},"OrderTaskGroupExecutorDetails1":{"type":"object","properties":{"executor_assigned_user_ids":{"type":"array","items":{"type":"string"}},"executor_department_ids":{"type":"array","items":{"type":"string"}},"executor_labels":{"type":"array","items":{"type":"string"}},"executor_org_id":{"type":["string","null"]},"off_chrt_executor_org_data_id":{"type":["string","null"]},"task_group_id":{"type":"string"},"task_group_type":{"$ref":"#/components/schemas/TaskGroupTypeEnum1"}},"required":["task_group_id","task_group_type"],"title":"OrderTaskGroupExecutorDetails1"},"OrderLimitedForProvider1":{"type":"object","properties":{"_id":{"type":"string"},"awb_numbers":{"type":"array","items":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}},"cancelled_at_timestamp":{"type":["string","null"],"format":"date-time"},"completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"coordinator_assigned_user_ids":{"type":"array","items":{"type":"string"}},"coordinator_department_ids":{"type":"array","items":{"type":"string"}},"coordinator_labels":{"type":"array","items":{"type":"string"}},"coordinator_org_id":{"type":["string","null"]},"coordinator_shipper_account_ids":{"type":"array","items":{"type":"string"}},"coordinator_task_lists_to_apply_at_order_staging":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":["string","null"]},"creation_idempotency_key":{"type":["string","null"]},"draft_started_at_timestamp":{"type":"string","format":"date-time"},"exception_at_timestamp":{"type":["string","null"],"format":"date-time"},"in_progress_at_timestamp":{"type":["string","null"],"format":"date-time"},"invoice_ids":{"type":"array","items":{"type":"string"}},"last_delivery_task_completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"order_classification_by_task_group_type":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupTypeEnum1"},{"type":"null"}]},"order_schedule_id":{"type":["string","null"]},"order_schedule_run_idempotency_key":{"type":["string","null"]},"order_template_new_id":{"type":["string","null"]},"schema_version":{"type":"integer"},"service_line":{"$ref":"#/components/schemas/ServiceLineEnum"},"shipper_org_id":{"type":["string","null"]},"short_id":{"type":"string"},"staged_at_timestamp":{"type":["string","null"],"format":"date-time"},"status":{"$ref":"#/components/schemas/OrderStatusEnum1"},"task_group_details":{"type":"array","items":{"$ref":"#/components/schemas/OrderTaskGroupExecutorDetails1"}}},"required":["_id","created_by_org_id","draft_started_at_timestamp","schema_version","short_id"],"description":"Provider view: full order when coordinator; when executor only, task\ngroups are filtered to the provider's own and other executors' operational\nfields are redacted.","title":"OrderLimitedForProvider1"},"InvoiceLineItemExpandedRes":{"type":"object","properties":{"counterparty_driver":{"oneOf":[{"$ref":"#/components/schemas/Driver1"},{"type":"null"}]},"counterparty_off_chrt_org_data":{"oneOf":[{"$ref":"#/components/schemas/OffChrtOrgData1"},{"type":"null"}]},"counterparty_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"invoice_line_item":{"$ref":"#/components/schemas/InvoiceLineItem1"},"order":{"oneOf":[{"$ref":"#/components/schemas/OrderLimitedForProvider1"},{"type":"null"}]},"shipper_account":{"oneOf":[{"$ref":"#/components/schemas/Account1"},{"type":"null"}]}},"required":["invoice_line_item"],"title":"InvoiceLineItemExpandedRes"},"InvoiceExpandedRes":{"type":"object","properties":{"counterparty_accounts":{"type":"array","items":{"$ref":"#/components/schemas/Account1"}},"counterparty_driver":{"oneOf":[{"$ref":"#/components/schemas/Driver1"},{"type":"null"}]},"counterparty_off_chrt_org_data":{"oneOf":[{"$ref":"#/components/schemas/OffChrtOrgData1"},{"type":"null"}]},"counterparty_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"invoice":{"$ref":"#/components/schemas/Invoice1"},"invoice_line_items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItemExpandedRes"}}},"required":["invoice"],"title":"InvoiceExpandedRes"},"InvoiceLineItemsAddReq":{"type":"object","properties":{"invoice_line_item_ids":{"type":"array","items":{"type":"string"}}},"required":["invoice_line_item_ids"],"title":"InvoiceLineItemsAddReq"},"InvoiceLineItemsRemoveReq":{"type":"object","properties":{"invoice_line_item_ids":{"type":"array","items":{"type":"string"}}},"required":["invoice_line_item_ids"],"title":"InvoiceLineItemsRemoveReq"},"InvoiceSortByEnum":{"type":"string","enum":["created_at_timestamp","last_edited_at_timestamp","total_amount","status","invoice_type"],"title":"InvoiceSortByEnum"},"InvoiceExpandedListItem":{"type":"object","properties":{"counterparty_accounts":{"type":"array","items":{"$ref":"#/components/schemas/Account1"}},"counterparty_off_chrt_org_data":{"oneOf":[{"$ref":"#/components/schemas/OffChrtOrgData1"},{"type":"null"}]},"counterparty_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"invoice":{"$ref":"#/components/schemas/Invoice1"},"orders":{"type":"array","items":{"$ref":"#/components/schemas/OrderLimitedForProvider1"}}},"required":["invoice"],"title":"InvoiceExpandedListItem"},"InvoiceListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceExpandedListItem"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"InvoiceListRes"},"CalculatedInvoiceTax1":{"type":"object","properties":{"export_ref__sage__item_id":{"type":["string","null"],"maxLength":255},"invoice_line_item_ids":{"type":"array","items":{"type":"string"}},"name":{"type":"string","pattern":"\\S","minLength":1,"maxLength":255},"order_id":{"type":["string","null"]},"percentage":{"type":"number","format":"double","minimum":0},"shipper_account_id":{"type":["string","null"]},"tax_amount":{"type":"number","format":"double"},"tax_configuration_id":{"type":"string"},"taxable_amount":{"type":"number","format":"double"}},"required":["name","order_id","percentage","shipper_account_id","tax_amount","tax_configuration_id","taxable_amount"],"title":"CalculatedInvoiceTax1"},"InvoiceTaxCalculation1":{"type":"object","properties":{"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"net_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"}},"subtotal":{"type":"number","format":"double"},"tax_breakdown":{"type":"array","items":{"$ref":"#/components/schemas/CalculatedInvoiceTax1"}},"tax_total":{"type":"number","format":"double"},"total_amount":{"type":"number","format":"double"}},"required":["currency_code","subtotal","tax_total","total_amount"],"title":"InvoiceTaxCalculation1"},"InvoiceClientCreate1":{"type":"object","properties":{"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"description":{"type":["string","null"],"maxLength":32768},"export_ref__sage__customer_id":{"type":["string","null"],"maxLength":255},"export_ref__sage__department_id":{"type":["string","null"],"maxLength":255},"invoice_type":{"$ref":"#/components/schemas/InvoiceTypeEnum1"},"name":{"type":["string","null"],"maxLength":255},"period_end_at_timestamp":{"type":["string","null"],"format":"date-time"},"period_start_at_timestamp":{"type":["string","null"],"format":"date-time"},"schema_version":{"type":"integer"}},"required":["currency_code","invoice_type","schema_version"],"title":"InvoiceClientCreate1"},"TaxRule1":{"type":"object","properties":{"export_ref__sage__item_id":{"type":["string","null"],"maxLength":255},"name":{"type":"string","pattern":"\\S","minLength":1,"maxLength":255},"percentage":{"type":"number","format":"double","minimum":0}},"required":["name","percentage"],"title":"TaxRule1"},"TaxConfiguration1":{"type":"object","properties":{"_id":{"type":"string"},"archived":{"type":"boolean","default":false},"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"last_edited_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"name":{"type":"string","pattern":"\\S","minLength":1,"maxLength":255},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"shipper_account_id":{"type":["string","null"]},"tax_rules":{"type":"array","items":{"$ref":"#/components/schemas/TaxRule1"}}},"required":["_id","created_at_timestamp","created_by_user_id","last_edited_at_timestamp","last_edited_by_user_id","name","owned_by_org_id","schema_version"],"title":"TaxConfiguration1"},"InvoicePreviewRes":{"type":"object","properties":{"calculation":{"$ref":"#/components/schemas/InvoiceTaxCalculation1"},"invoice":{"$ref":"#/components/schemas/InvoiceClientCreate1"},"invoice_line_items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItem1"}},"tax_configurations_by_line_item_id":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/TaxConfiguration1"},{"type":"null"}]}}},"required":["calculation","invoice"],"title":"InvoicePreviewRes"},"InvoicePreviewFromOrdersRes":{"type":"object","properties":{"already_invoiced_line_item_ids":{"type":"array","items":{"type":"string"}},"calculation":{"$ref":"#/components/schemas/InvoiceTaxCalculation1"},"finalized_line_item_ids":{"type":"array","items":{"type":"string"}},"invoice":{"$ref":"#/components/schemas/InvoiceClientCreate1"},"invoice_line_items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItem1"}},"orders_without_selected_charges":{"type":"array","items":{"type":"string"}},"tax_configurations_by_line_item_id":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/TaxConfiguration1"},{"type":"null"}]}},"tax_line_item_ids":{"type":"array","items":{"type":"string"}},"unmatched_line_item_ids":{"type":"array","items":{"type":"string"}}},"required":["calculation","invoice"],"title":"InvoicePreviewFromOrdersRes"},"InvoiceTypeaheadFieldEnum":{"type":"string","enum":["name"],"title":"InvoiceTypeaheadFieldEnum"},"InvoiceTypeaheadValue":{"type":"object","properties":{"invoice_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["invoice_ids","value"],"title":"InvoiceTypeaheadValue"},"InvoiceTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/InvoiceTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceTypeaheadValue"}}},"required":["type","values"],"title":"InvoiceTypeaheadResult"},"InvoiceClientUpdate1":{"type":"object","properties":{"description":{"type":["string","null"],"maxLength":32768},"description__set_to_None":{"type":"boolean","default":false},"name":{"type":["string","null"],"maxLength":255},"name__set_to_None":{"type":"boolean","default":false}},"title":"InvoiceClientUpdate1"},"InvoicePeriodUpdateReq":{"type":"object","properties":{"period_end_at_timestamp":{"type":"string","format":"date-time"},"period_start_at_timestamp":{"type":"string","format":"date-time"}},"required":["period_end_at_timestamp","period_start_at_timestamp"],"title":"InvoicePeriodUpdateReq"},"InvoiceVoidReq":{"type":"object","properties":{"void_reason":{"type":["string","null"],"maxLength":32768}},"title":"InvoiceVoidReq"},"OrderAwbBillingAccount1":{"type":"object","properties":{"account_id":{"type":"string"},"name":{"type":["string","null"]},"task_group_id":{"type":"string"}},"required":["account_id","task_group_id"],"title":"OrderAwbBillingAccount1"},"OrderAwbBillingListItem1":{"type":"object","properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/OrderAwbBillingAccount1"}},"awb_number":{"type":"string","pattern":"^\\d{3}-\\d{8}$","description":"IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'."},"completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"order_id":{"type":"string"},"order_short_id":{"type":"string"}},"required":["awb_number","order_id","order_short_id"],"title":"OrderAwbBillingListItem1"},"OrderAwbBillingListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderAwbBillingListItem1"}},"total_count":{"type":"integer","minimum":0}},"required":["total_count"],"title":"OrderAwbBillingListRes"},"OrderBillingSortByEnum":{"type":"string","enum":["draft_started_at_timestamp","staged_at_timestamp","in_progress_at_timestamp","completed_at_timestamp","last_delivery_task_completed_at_timestamp","cancelled_at_timestamp","exception_at_timestamp"],"title":"OrderBillingSortByEnum"},"OrderBillingExpandedListReq":{"type":"object","properties":{"expand_account_names":{"type":"boolean","default":false},"expand_executor_names":{"type":"boolean","default":false},"expand_shipper_name":{"type":"boolean","default":false}},"title":"OrderBillingExpandedListReq"},"OrderBillingAccount1":{"type":"object","properties":{"account_id":{"type":"string"},"name":{"type":["string","null"]}},"required":["account_id"],"title":"OrderBillingAccount1"},"OrderBillingPeriod1":{"type":"object","properties":{"billing_period":{"$ref":"#/components/schemas/BillingPeriod1"},"invoice_id":{"type":["string","null"]},"invoice_line_item_id":{"type":["string","null"]},"invoice_status":{"oneOf":[{"$ref":"#/components/schemas/InvoiceStatusEnum1"},{"type":"null"}]},"order_task_group_ids":{"type":"array","items":{"type":"string"}}},"required":["billing_period"],"title":"OrderBillingPeriod1"},"OrderBillingExecutor1":{"type":"object","properties":{"executor_labels":{"type":"array","items":{"type":"string"}},"executor_org_id":{"type":["string","null"]},"name":{"type":["string","null"]},"off_chrt_executor_org_data_id":{"type":["string","null"]},"task_group_id":{"type":"string"}},"required":["task_group_id"],"title":"OrderBillingExecutor1"},"OrderBillingShipper1":{"type":"object","properties":{"name":{"type":["string","null"]},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"shipper_org_id":{"type":["string","null"]}},"title":"OrderBillingShipper1"},"OrderBillingCurrencyTotals1":{"type":"object","properties":{"accounts_payable_total_amount":{"type":"number","format":"double"},"accounts_receivable_total_amount":{"type":"number","format":"double"},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"}},"required":["accounts_payable_total_amount","accounts_receivable_total_amount","currency_code"],"title":"OrderBillingCurrencyTotals1"},"OrderBillingExpandedListItem1":{"type":"object","properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/OrderBillingAccount1"}},"awb_numbers":{"type":"array","items":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}},"billing_periods":{"type":"array","items":{"$ref":"#/components/schemas/OrderBillingPeriod1"}},"cancelled_at_timestamp":{"type":["string","null"],"format":"date-time"},"completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"coordinator_labels":{"type":"array","items":{"type":"string"}},"draft_started_at_timestamp":{"type":"string","format":"date-time"},"exception_at_timestamp":{"type":["string","null"],"format":"date-time"},"executors":{"type":"array","items":{"$ref":"#/components/schemas/OrderBillingExecutor1"}},"in_progress_at_timestamp":{"type":["string","null"],"format":"date-time"},"includes_air_waybill_invoice_line_item":{"type":"boolean"},"invoice_count":{"type":"integer"},"invoice_line_item_count":{"type":"integer"},"invoice_statuses":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceStatusEnum1"}},"last_delivery_task_completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"order_id":{"type":"string"},"order_short_id":{"type":"string"},"order_status":{"$ref":"#/components/schemas/OrderStatusEnum1"},"shipper":{"oneOf":[{"$ref":"#/components/schemas/OrderBillingShipper1"},{"type":"null"}]},"staged_at_timestamp":{"type":["string","null"],"format":"date-time"},"totals_by_currency":{"type":"array","items":{"$ref":"#/components/schemas/OrderBillingCurrencyTotals1"}}},"required":["draft_started_at_timestamp","includes_air_waybill_invoice_line_item","invoice_count","invoice_line_item_count","order_id","order_short_id","order_status"],"title":"OrderBillingExpandedListItem1"},"OrderBillingExpandedListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderBillingExpandedListItem1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OrderBillingExpandedListRes"},"OrderRateSheetLineItemsGenerateManyReq":{"type":"object","properties":{"order_ids":{"type":"array","items":{"type":"string"}}},"required":["order_ids"],"title":"OrderRateSheetLineItemsGenerateManyReq"},"OrderRateSheetLineItemsGenerateManyStatusEnum":{"type":"string","enum":["generated","skipped_no_rate_sheets","failed"],"title":"OrderRateSheetLineItemsGenerateManyStatusEnum"},"OrderRateSheetLineItemsGenerateManyResult1":{"type":"object","properties":{"created_invoice_line_items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceLineItem1"}},"error_detail":{"type":["string","null"]},"error_status_code":{"type":["integer","null"]},"order_id":{"type":"string"},"status":{"$ref":"#/components/schemas/OrderRateSheetLineItemsGenerateManyStatusEnum"}},"required":["order_id","status"],"title":"OrderRateSheetLineItemsGenerateManyResult1"},"OrderRateSheetLineItemsGenerateManyRes":{"type":"object","properties":{"created_invoice_line_item_count":{"type":"integer","minimum":0},"failed_order_count":{"type":"integer","minimum":0},"results":{"type":"array","items":{"$ref":"#/components/schemas/OrderRateSheetLineItemsGenerateManyResult1"}},"skipped_order_count":{"type":"integer","minimum":0},"succeeded_order_count":{"type":"integer","minimum":0},"total_order_count":{"type":"integer","minimum":0}},"required":["created_invoice_line_item_count","failed_order_count","skipped_order_count","succeeded_order_count","total_order_count"],"title":"OrderRateSheetLineItemsGenerateManyRes"},"TaxConfigurationClientCreate1":{"type":"object","properties":{"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"name":{"type":"string","pattern":"\\S","minLength":1,"maxLength":255},"schema_version":{"type":"integer"},"shipper_account_id":{"type":["string","null"]},"tax_rules":{"type":"array","items":{"$ref":"#/components/schemas/TaxRule1"}}},"required":["name","schema_version"],"title":"TaxConfigurationClientCreate1"},"TaxConfigurationSortByEnum":{"type":"string","enum":["name","created_at_timestamp"],"title":"TaxConfigurationSortByEnum"},"TaxConfigurationListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TaxConfiguration1"}},"total_count":{"type":"integer"}},"required":["total_count"],"title":"TaxConfigurationListRes"},"TaxConfigurationResolveReq":{"type":"object","properties":{"counterparty_driver_id":{"type":["string","null"]},"counterparty_off_chrt_org_data_id":{"type":["string","null"]},"counterparty_org_id":{"type":["string","null"]},"shipper_account_id":{"type":["string","null"]}},"title":"TaxConfigurationResolveReq"},"TaxConfigurationClientUpdate1":{"type":"object","properties":{"name":{"type":["string","null"],"pattern":"\\S","minLength":1,"maxLength":255},"tax_rules":{"type":"array","items":{"$ref":"#/components/schemas/TaxRule1"}}},"title":"TaxConfigurationClientUpdate1"},"CargoOnFlightIntegrationsAirCanadaBookReq":{"type":"object","properties":{"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"cargo_on_flight_booking_search_id":{"type":"string"},"integration_rate_id":{"type":"string"},"integration_result_id":{"type":"string"}},"required":["cargo_on_flight_booking_search_id","integration_rate_id","integration_result_id"],"title":"CargoOnFlightIntegrationsAirCanadaBookReq"},"CargoOnFlightBookingAircraftBodyTypeEnum1":{"type":"string","enum":["widebody","narrowbody","freighter","unknown"],"title":"CargoOnFlightBookingAircraftBodyTypeEnum1"},"CargoOnFlightBookingItineraryLeg1":{"type":"object","properties":{"aircraft_body_type":{"$ref":"#/components/schemas/CargoOnFlightBookingAircraftBodyTypeEnum1"},"aircraft_code":{"type":["string","null"]},"carrier_iata":{"type":"string"},"destination_iata":{"type":"string"},"flight_number":{"type":"string"},"integration_body_type":{"type":["string","null"]},"origin_iata":{"type":"string"},"scheduled_arrival_utc":{"type":"string","format":"date-time"},"scheduled_departure_utc":{"type":"string","format":"date-time"},"surface_transport":{"type":"boolean"}},"required":["carrier_iata","destination_iata","flight_number","origin_iata","scheduled_arrival_utc","scheduled_departure_utc","surface_transport"],"description":"One leg of an itinerary: a flight, or a road feeder truck (`surface_transport`).","title":"CargoOnFlightBookingItineraryLeg1"},"CargoOnFlightBookingItinerary1":{"type":"object","properties":{"carrier_iata":{"type":"string"},"latest_acceptance_utc":{"type":["string","null"],"format":"date-time"},"legs":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightBookingItineraryLeg1"}},"origin_ground_handling_agent_address":{"type":["string","null"]},"origin_ground_handling_agent_name":{"type":["string","null"]},"time_of_availability_utc":{"type":["string","null"],"format":"date-time"}},"required":["carrier_iata","latest_acceptance_utc","time_of_availability_utc"],"description":"The itinerary of the search result a booking was placed on.","title":"CargoOnFlightBookingItinerary1"},"CargoOnFlightBookingRateCharge1":{"type":"object","properties":{"basis":{"type":"string"},"code":{"type":["string","null"]},"label":{"type":"string"},"maximum_amount":{"type":["number","null"],"format":"double"},"minimum_amount":{"type":["number","null"],"format":"double"},"rate":{"type":"number","format":"double"}},"required":["basis","code","label","maximum_amount","minimum_amount","rate"],"description":"One charge in a rate's breakdown, priced per `basis` unit in the rate's currency.","title":"CargoOnFlightBookingRateCharge1"},"CargoOnFlightBookingRate1":{"type":"object","properties":{"all_in_rate_per_kilogram":{"type":["number","null"],"format":"double"},"chargeable_weight_kilograms":{"type":["number","null"],"format":"double"},"charges":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightBookingRateCharge1"}},"currency_code":{"type":"string"},"integration_rate_id":{"type":["string","null"]},"net_rate_per_kilogram":{"type":["number","null"],"format":"double"},"other_charges_due_carrier":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightBookingRateCharge1"}},"rate_name":{"type":["string","null"]},"special_handling_codes":{"type":"array","items":{"type":"string"}},"total_amount":{"type":"number","format":"double"}},"required":["currency_code","integration_rate_id","rate_name","total_amount"],"description":"A price quoted for a shipment: one of a search result's rates, or the price a MANUAL booking was quoted.","title":"CargoOnFlightBookingRate1"},"CargoOnFlightBookingCargoDimension1":{"type":"object","properties":{"height_inches":{"type":"number","format":"double","exclusiveMinimum":0},"length_inches":{"type":"number","format":"double","exclusiveMinimum":0},"quantity":{"type":"integer","minimum":1},"stackable":{"type":"boolean","default":true},"turnable":{"type":"boolean","default":false},"weight_per_piece_pounds":{"type":"number","format":"double","exclusiveMinimum":0},"width_inches":{"type":"number","format":"double","exclusiveMinimum":0}},"required":["height_inches","length_inches","quantity","weight_per_piece_pounds","width_inches"],"description":"`quantity` identical pieces, each of these dimensions and weight.","title":"CargoOnFlightBookingCargoDimension1"},"CargoOnFlightIntegrationEnum1":{"type":"string","enum":["air_canada","cargoai","manual"],"title":"CargoOnFlightIntegrationEnum1"},"SpecialHandlingCodeEnum1":{"type":"string","enum":["ACT","AGC","ALO","AOG","ATT","AVI","AXA","BIG","BSA","BUP","CAO","CAT","CC","COF","COL","COM","COU","CRT","CSL","CUR","DDX","DGD","DGR","DIC","DIP","DIR","DNS","EAP","EAT","EAW","EBI","EBM","ECC","ECP","ELI","ELM","EMD","ERT","EXC","FIL","FRA","FRC","FRI","FRO","FTR","GCR","GLD","GOB","GOH","HEA","HEG","HNT","HST","HUM","IAT","IBS","ICE","IMP","LHO","LIC","MAG","MAL","MDC","MEX","MUW","NSC","NST","NWP","OBX","OHG","PAC","PAX","PEA","PEB","PED","PEF","PEL","PEM","PEP","PER","PES","PHY","PIL","PIP","PPR","PRI","PRO","PXD","PXS","QRT","QWT","RAC","RBI","RBM","RCL","RCM","RCS","RCX","RDS","REQ","REX","RFG","RFL","RFS","RFW","RGX","RIS","RLI","RLM","RMD","RNG","ROP","ROX","RPB","RPG","RRE","RRW","RRY","RSB","RSC","RXB","RXC","RXD","RXE","RXG","RXS","SBU","SCO","SEC","SEN","SHL","SHR","SMC","SML","SMU","SPF","SPX","SSS","SUR","SVC","SWP","TRC","TRU","TTS","TTT","UCB","UKS","ULD","UNKN","VAL","VEH","VIC","VOL","VUN","WET","XPS"],"title":"SpecialHandlingCodeEnum1"},"CargoOnFlightBookingStatusEnum1":{"type":"string","enum":["draft","requested","confirmed","rejected","failed","cancellation_requested","cancelled"],"title":"CargoOnFlightBookingStatusEnum1"},"CargoOnFlightBooking1":{"type":"object","properties":{"_id":{"type":"string"},"airline_cargo_account_id":{"type":["string","null"]},"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"booked_itinerary":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightBookingItinerary1"},{"type":"null"}]},"booked_rate":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightBookingRate1"},{"type":"null"}]},"cancellation_requested_at_timestamp":{"type":["string","null"],"format":"date-time"},"cancelled_at_timestamp":{"type":["string","null"],"format":"date-time"},"cargo_dimensions":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightBookingCargoDimension1"}},"cargo_ids":{"type":"array","items":{"type":"string"}},"cargo_on_flight_booking_search_id":{"type":["string","null"]},"cargo_on_flight_integration":{"$ref":"#/components/schemas/CargoOnFlightIntegrationEnum1"},"confirmed_at_timestamp":{"type":["string","null"],"format":"date-time"},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":["string","null"]},"draft_started_at_timestamp":{"type":"string","format":"date-time"},"failed_at_timestamp":{"type":["string","null"],"format":"date-time"},"flight_leg_ids":{"type":"array","items":{"type":"string"}},"iata_cass_office_id":{"type":["string","null"]},"integration_status":{"type":["string","null"]},"order_id":{"type":"string"},"order_short_id":{"type":"string"},"rejected_at_timestamp":{"type":["string","null"],"format":"date-time"},"requested_at_timestamp":{"type":["string","null"],"format":"date-time"},"schema_version":{"type":"integer"},"special_handling_codes":{"type":"array","items":{"$ref":"#/components/schemas/SpecialHandlingCodeEnum1"}},"status":{"$ref":"#/components/schemas/CargoOnFlightBookingStatusEnum1"},"task_group_id":{"type":"string"}},"required":["_id","cargo_on_flight_integration","created_by_org_id","draft_started_at_timestamp","order_id","order_short_id","schema_version","status","task_group_id"],"title":"CargoOnFlightBooking1"},"CargoOnFlightIntegrationsAirCanadaCancelReq":{"type":"object","properties":{"cancellation_reason":{"type":"string","minLength":1}},"required":["cancellation_reason"],"title":"CargoOnFlightIntegrationsAirCanadaCancelReq"},"AirCanadaProductEnum1":{"type":"string","enum":["AFR","PPR","SFX","PPS","PPP","AFH","PFH"],"title":"AirCanadaProductEnum1"},"CargoAiProductEnum1":{"type":"string","enum":["GCR","PHARM","FRESH","AVI","HUM/LHO","VAL/VUN"],"title":"CargoAiProductEnum1"},"CargoOnFlightBookingSearchClientCreate1":{"type":"object","properties":{"air_canada_product":{"oneOf":[{"$ref":"#/components/schemas/AirCanadaProductEnum1"},{"type":"null"}]},"airline_cargo_account_id":{"type":["string","null"]},"cargoai_product":{"oneOf":[{"$ref":"#/components/schemas/CargoAiProductEnum1"},{"type":"null"}]},"destination_iata":{"type":"string","pattern":"^[A-Z]{3}$"},"earliest_departure_date":{"type":"string","format":"date"},"iata_cass_office_id":{"type":["string","null"]},"offset_days":{"type":"integer","minimum":1,"maximum":5,"default":5},"origin_iata":{"type":"string","pattern":"^[A-Z]{3}$"},"schema_version":{"type":"integer"}},"required":["destination_iata","earliest_departure_date","origin_iata","schema_version"],"title":"CargoOnFlightBookingSearchClientCreate1"},"CargoOnFlightBookingSearchResult1":{"type":"object","properties":{"airline_conditions":{"type":["string","null"]},"airline_contacts":{"type":"array","items":{"type":"string"}},"awb_prefixes":{"type":"array","items":{"type":"string"}},"awb_required":{"type":"boolean"},"bookable":{"type":"boolean"},"carrier_iata":{"type":"string"},"handling_info_link":{"type":["string","null"]},"integration_result_id":{"type":"string"},"latest_acceptance_utc":{"type":["string","null"],"format":"date-time"},"legs":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightBookingItineraryLeg1"}},"not_bookable_reason":{"type":["string","null"]},"origin_ground_handling_agent_address":{"type":["string","null"]},"origin_ground_handling_agent_name":{"type":["string","null"]},"rates":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightBookingRate1"}},"time_of_availability_utc":{"type":["string","null"],"format":"date-time"}},"required":["awb_required","bookable","carrier_iata","integration_result_id","latest_acceptance_utc","not_bookable_reason","time_of_availability_utc"],"title":"CargoOnFlightBookingSearchResult1"},"CargoOnFlightBookingSearch1":{"type":"object","properties":{"_id":{"type":"string"},"air_canada_product":{"oneOf":[{"$ref":"#/components/schemas/AirCanadaProductEnum1"},{"type":"null"}]},"airline_cargo_account_id":{"type":["string","null"]},"cargo_on_flight_booking_id":{"type":"string"},"cargo_on_flight_integration":{"$ref":"#/components/schemas/CargoOnFlightIntegrationEnum1"},"cargoai_product":{"oneOf":[{"$ref":"#/components/schemas/CargoAiProductEnum1"},{"type":"null"}]},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":["string","null"]},"destination_iata":{"type":"string"},"earliest_departure_date":{"type":"string","format":"date"},"iata_cass_office_id":{"type":["string","null"]},"integration_search_id":{"type":"string"},"offset_days":{"type":"integer","default":5},"origin_iata":{"type":"string"},"results":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightBookingSearchResult1"}},"schema_version":{"type":"integer"},"search_completed":{"type":"boolean"},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","cargo_on_flight_booking_id","cargo_on_flight_integration","created_at_timestamp","created_by_org_id","destination_iata","earliest_departure_date","integration_search_id","origin_iata","schema_version","search_completed","updated_at_timestamp"],"title":"CargoOnFlightBookingSearch1"},"CargoAiAirWaybillMessageSortByEnum":{"type":"string","enum":["created_at_timestamp"],"title":"CargoAiAirWaybillMessageSortByEnum"},"CargoAiFwbAndFhlAgent1":{"type":"object","properties":{"accountNumber":{"type":["string","null"]},"cass":{"type":["string","null"]},"iata":{"type":"string"},"name":{"type":"string"},"place":{"type":"string"}},"required":["iata","name","place"],"title":"CargoAiFwbAndFhlAgent1"},"CargoAiFwbAndFhlChargesDeclaration1WeightOrValuation":{"type":"string","enum":["P","C"],"title":"CargoAiFwbAndFhlChargesDeclaration1WeightOrValuation"},"CargoAiFwbAndFhlChargesDeclaration1":{"type":"object","properties":{"charge_code":{"type":"string"},"currency_code":{"type":"string"},"values_for_carriage":{"type":["number","null"],"format":"double"},"values_for_custom":{"type":["number","null"],"format":"double"},"values_for_insurance":{"type":["number","null"],"format":"double"},"weight_or_valuation":{"oneOf":[{"$ref":"#/components/schemas/CargoAiFwbAndFhlChargesDeclaration1WeightOrValuation"},{"type":"null"}]}},"required":["charge_code","currency_code"],"title":"CargoAiFwbAndFhlChargesDeclaration1"},"CargoAiFwbAndFhlCity1":{"type":"object","properties":{"code":{"type":["string","null"]},"name":{"type":["string","null"]}},"title":"CargoAiFwbAndFhlCity1"},"CargoAiFwbAndFhlCountry1":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":["string","null"]}},"required":["code"],"title":"CargoAiFwbAndFhlCountry1"},"CargoAiFwbAndFhlAddress1":{"type":"object","properties":{"city":{"oneOf":[{"$ref":"#/components/schemas/CargoAiFwbAndFhlCity1"},{"type":"null"}]},"country":{"$ref":"#/components/schemas/CargoAiFwbAndFhlCountry1"},"line1":{"type":"string"},"line2":{"type":["string","null"]},"place":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"state_province":{"type":["string","null"]}},"required":["country","line1"],"title":"CargoAiFwbAndFhlAddress1"},"CargoAiFwbAndFhlParty1":{"type":"object","properties":{"account_number":{"type":["string","null"]},"address":{"$ref":"#/components/schemas/CargoAiFwbAndFhlAddress1"},"email":{"type":["string","null"]},"fax":{"type":["string","null"]},"name":{"type":"string"},"phone":{"type":["string","null"]}},"required":["address","name"],"title":"CargoAiFwbAndFhlParty1"},"CargoAiFwbAndFhlExecution1":{"type":"object","properties":{"carrier_signature":{"type":"string"},"date":{"type":"string"},"place":{"type":"string"},"shipper_signature":{"type":"string"}},"required":["carrier_signature","date","place","shipper_signature"],"title":"CargoAiFwbAndFhlExecution1"},"CargoAiFwbAndFhlCode1":{"type":"object","properties":{"code":{"type":"string"}},"required":["code"],"title":"CargoAiFwbAndFhlCode1"},"CargoAiFwbAndFhlHandling1":{"type":"object","properties":{"otherServiceInformation":{"type":["string","null"]},"specialHandling":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiFwbAndFhlCode1"}},"specialServiceInformation":{"type":["string","null"]}},"title":"CargoAiFwbAndFhlHandling1"},"CargoAiFwbAndFhlWeightOrVolumeUomEnum1":{"type":"string","enum":["K","L","MC","CF"],"title":"CargoAiFwbAndFhlWeightOrVolumeUomEnum1"},"CargoAiFwbAndFhlWeightOrVolume1":{"type":"object","properties":{"uom":{"$ref":"#/components/schemas/CargoAiFwbAndFhlWeightOrVolumeUomEnum1"},"value":{"type":"number","format":"double"}},"required":["uom","value"],"title":"CargoAiFwbAndFhlWeightOrVolume1"},"CargoAiFwbAndFhlHouseLocations1":{"type":"object","properties":{"port_of_destination":{"$ref":"#/components/schemas/CargoAiFwbAndFhlCode1"},"port_of_origin":{"$ref":"#/components/schemas/CargoAiFwbAndFhlCode1"}},"required":["port_of_destination","port_of_origin"],"title":"CargoAiFwbAndFhlHouseLocations1"},"CargoAiFwbAndFhlHouse1Other":{"type":"string","enum":["P","C"],"title":"CargoAiFwbAndFhlHouse1Other"},"CargoAiFwbAndFhlHouse1":{"type":"object","properties":{"charge_code":{"type":["string","null"]},"commodity":{"type":["string","null"]},"currency_code":{"type":["string","null"]},"gross_weight":{"$ref":"#/components/schemas/CargoAiFwbAndFhlWeightOrVolume1"},"hawb_number":{"type":"string"},"locations":{"$ref":"#/components/schemas/CargoAiFwbAndFhlHouseLocations1"},"mawbNumber":{"type":"string"},"number_of_pieces":{"type":"integer"},"other":{"oneOf":[{"$ref":"#/components/schemas/CargoAiFwbAndFhlHouse1Other"},{"type":"null"}]},"slac":{"type":["integer","null"]},"values_for_carriage":{"type":["number","null"],"format":"double"},"values_for_custom":{"type":["number","null"],"format":"double"},"values_for_insurance":{"type":["number","null"],"format":"double"}},"required":["gross_weight","hawb_number","locations","mawbNumber","number_of_pieces"],"title":"CargoAiFwbAndFhlHouse1"},"CargoAiFwbAndFhlOciSecurity1IssuerType":{"type":"string","enum":["RA","KC","AC","RC"],"title":"CargoAiFwbAndFhlOciSecurity1IssuerType"},"CargoAiFwbAndFhlOciSecurity1":{"type":"object","properties":{"exemption_code":{"type":["string","null"]},"expiry_date":{"type":["string","null"]},"issuer_type":{"$ref":"#/components/schemas/CargoAiFwbAndFhlOciSecurity1IssuerType"},"regulated_agent":{"type":"string"},"screener_name":{"type":["string","null"]},"screening_datetime":{"type":["string","null"]},"screening_methods":{"type":"array","items":{"type":"string"}},"security_status":{"type":"string"}},"required":["issuer_type","regulated_agent","security_status"],"title":"CargoAiFwbAndFhlOciSecurity1"},"CargoAiFwbAndFhlOci1":{"type":"object","properties":{"origin_country_code":{"type":"string"},"security":{"oneOf":[{"$ref":"#/components/schemas/CargoAiFwbAndFhlOciSecurity1"},{"type":"null"}]}},"required":["origin_country_code"],"title":"CargoAiFwbAndFhlOci1"},"CargoAiFwbAndFhlOtherCharge1EntitlementCode":{"type":"string","enum":["A","C"],"title":"CargoAiFwbAndFhlOtherCharge1EntitlementCode"},"CargoAiFwbAndFhlOtherCharge1PcIndicator":{"type":"string","enum":["P","C"],"title":"CargoAiFwbAndFhlOtherCharge1PcIndicator"},"CargoAiFwbAndFhlOtherCharge1":{"type":"object","properties":{"charge_amount":{"type":"number","format":"double"},"charge_code":{"type":"string"},"entitlement_code":{"$ref":"#/components/schemas/CargoAiFwbAndFhlOtherCharge1EntitlementCode"},"pc_indicator":{"$ref":"#/components/schemas/CargoAiFwbAndFhlOtherCharge1PcIndicator"}},"required":["charge_amount","charge_code","entitlement_code","pc_indicator"],"title":"CargoAiFwbAndFhlOtherCharge1"},"CargoAiFwbAndFhlDimensionUomEnum1":{"type":"string","enum":["CMT","INH"],"title":"CargoAiFwbAndFhlDimensionUomEnum1"},"CargoAiFwbAndFhlDimension1":{"type":"object","properties":{"height":{"type":"number","format":"double"},"length":{"type":"number","format":"double"},"pcs":{"type":"integer"},"uom":{"$ref":"#/components/schemas/CargoAiFwbAndFhlDimensionUomEnum1"},"width":{"type":"number","format":"double"}},"required":["height","length","pcs","uom","width"],"title":"CargoAiFwbAndFhlDimension1"},"CargoAiFwbAndFhlUld1":{"type":"object","properties":{"number":{"type":"string"}},"required":["number"],"title":"CargoAiFwbAndFhlUld1"},"CargoAiFwbAndFhlRate1":{"type":"object","properties":{"charge_amount":{"type":["number","null"],"format":"double"},"chargeable_weight":{"type":["number","null"],"format":"double"},"commodity_item_number":{"type":["string","null"]},"dims":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiFwbAndFhlDimension1"}},"gross_weight":{"$ref":"#/components/schemas/CargoAiFwbAndFhlWeightOrVolume1"},"hsc":{"type":"array","items":{"type":"integer"}},"nature_and_quantity_of_goods":{"type":["string","null"]},"number_of_pieces":{"type":"integer"},"rate_class_code":{"type":"string"},"rate_or_charge":{"type":["number","null"],"format":"double"},"slac":{"type":["integer","null"]},"uld":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiFwbAndFhlUld1"}},"volume":{"oneOf":[{"$ref":"#/components/schemas/CargoAiFwbAndFhlWeightOrVolume1"},{"type":"null"}]}},"required":["gross_weight","number_of_pieces","rate_class_code"],"title":"CargoAiFwbAndFhlRate1"},"CargoAiFwbAndFhlRouting1":{"type":"object","properties":{"carrier_code":{"type":"string"},"flight_number":{"type":["string","null"]},"from_airport_code":{"type":"string"},"to_airport_code":{"type":"string"}},"required":["carrier_code","from_airport_code","to_airport_code"],"title":"CargoAiFwbAndFhlRouting1"},"CargoAiFwbAndFhlRequest1":{"type":"object","properties":{"agent":{"oneOf":[{"$ref":"#/components/schemas/CargoAiFwbAndFhlAgent1"},{"type":"null"}]},"awb_number":{"type":"string"},"awb_status":{"type":"string","enum":["PENDING_DELIVERY"]},"chargesDeclaration":{"oneOf":[{"$ref":"#/components/schemas/CargoAiFwbAndFhlChargesDeclaration1"},{"type":"null"}]},"consignee":{"$ref":"#/components/schemas/CargoAiFwbAndFhlParty1"},"customsOrigin":{"type":["string","null"]},"execution":{"oneOf":[{"$ref":"#/components/schemas/CargoAiFwbAndFhlExecution1"},{"type":"null"}]},"handling":{"oneOf":[{"$ref":"#/components/schemas/CargoAiFwbAndFhlHandling1"},{"type":"null"}]},"hawbs":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiFwbAndFhlHouse1"}},"isFhlOnly":{"type":"boolean","default":false},"notify":{"oneOf":[{"$ref":"#/components/schemas/CargoAiFwbAndFhlParty1"},{"type":"null"}]},"oci":{"oneOf":[{"$ref":"#/components/schemas/CargoAiFwbAndFhlOci1"},{"type":"null"}]},"otherCharges":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiFwbAndFhlOtherCharge1"}},"rates":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiFwbAndFhlRate1"}},"routingDetails":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiFwbAndFhlRouting1"}},"shipper":{"$ref":"#/components/schemas/CargoAiFwbAndFhlParty1"},"userCompanyName":{"type":"string"},"userEmail":{"type":"string"}},"required":["awb_number","awb_status","consignee","shipper","userCompanyName","userEmail"],"title":"CargoAiFwbAndFhlRequest1"},"CargoAiAirWaybillMessageSendStatusEnum1":{"type":"string","enum":["pending","transmitted","refused","unanswered"],"title":"CargoAiAirWaybillMessageSendStatusEnum1"},"CargoAiAirWaybillMessage1":{"type":"object","properties":{"_id":{"type":"string"},"awb_number":{"type":"string","pattern":"^\\d{3}-\\d{8}$","description":"IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'."},"cargo_on_flight_air_waybill_id":{"type":"string"},"cargo_on_flight_booking_id":{"type":"string"},"cargo_on_flight_house_air_waybill_ids":{"type":"array","items":{"type":"string"}},"cargo_on_flight_integration":{"type":"string","enum":["cargoai"]},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"fwb_sent":{"type":"boolean"},"pending_until_timestamp":{"type":["string","null"],"format":"date-time"},"request":{"$ref":"#/components/schemas/CargoAiFwbAndFhlRequest1"},"response_error_message":{"type":["string","null"]},"response_status_code":{"type":["integer","null"]},"schema_version":{"type":"integer"},"send_status":{"$ref":"#/components/schemas/CargoAiAirWaybillMessageSendStatusEnum1"},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","awb_number","cargo_on_flight_air_waybill_id","cargo_on_flight_booking_id","cargo_on_flight_integration","created_at_timestamp","created_by_org_id","fwb_sent","request","schema_version","send_status","updated_at_timestamp"],"title":"CargoAiAirWaybillMessage1"},"CargoAiAirWaybillMessageWebhookEvent1":{"type":"object","properties":{"_id":{"type":"string"},"cargoai_air_waybill_message_id":{"type":["string","null"]},"fwb_status":{"type":["string","null"]},"mawb_number":{"type":["string","null"]},"payload":{"type":"object","additionalProperties":{"description":"Any type"}},"received_at_timestamp":{"type":"string","format":"date-time"},"schema_version":{"type":"integer"}},"required":["_id","payload","received_at_timestamp","schema_version"],"title":"CargoAiAirWaybillMessageWebhookEvent1"},"CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem":{"type":"object","properties":{"cargoai_air_waybill_message":{"$ref":"#/components/schemas/CargoAiAirWaybillMessage1"},"cargoai_air_waybill_message_webhook_events":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiAirWaybillMessageWebhookEvent1"}}},"required":["cargoai_air_waybill_message","cargoai_air_waybill_message_webhook_events"],"title":"CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem"},"CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes"},"CargoOnFlightIntegrationsCargoAiSendAirWaybillReq":{"type":"object","properties":{"cargo_on_flight_house_air_waybill_ids":{"type":"array","items":{"type":"string"}},"send_fwb":{"type":"boolean"}},"required":["send_fwb"],"title":"CargoOnFlightIntegrationsCargoAiSendAirWaybillReq"},"CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseStatusEnum":{"type":"string","enum":["accepted","rejected"],"title":"CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseStatusEnum"},"CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse":{"type":"object","properties":{"cargo_on_flight_house_air_waybill_id":{"type":"string"},"status":{"$ref":"#/components/schemas/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseStatusEnum"}},"required":["cargo_on_flight_house_air_waybill_id","status"],"title":"CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse"},"CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq":{"type":"object","properties":{"airline_response":{"type":"string","minLength":1,"default":"Simulated airline answer for a demo AWB"},"fwb_status":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseStatusEnum"},{"type":"null"}]},"houses":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse"}}},"title":"CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq"},"CargoOnFlightAirWaybillParty1":{"type":"object","properties":{"account_number":{"type":["string","null"],"maxLength":14},"address_line_1":{"type":"string","minLength":1,"maxLength":35},"address_line_2":{"type":["string","null"],"maxLength":35},"city_iata":{"type":["string","null"],"pattern":"^[A-Z]{3}$"},"city_name":{"type":"string","minLength":1,"maxLength":17},"country_code":{"type":"string","pattern":"^[A-Z]{2}$"},"email_address":{"type":["string","null"],"format":"email"},"fax_number":{"type":["string","null"],"maxLength":25},"name":{"type":"string","minLength":1,"maxLength":35},"phone_number":{"type":["string","null"],"maxLength":25},"postal_code":{"type":["string","null"],"maxLength":9},"state_province":{"type":["string","null"],"maxLength":9}},"required":["address_line_1","city_name","country_code","name"],"description":"A shipper, consignee, or also-notify party.","title":"CargoOnFlightAirWaybillParty1"},"CargoOnFlightAirWaybillCarriersExecution1":{"type":"object","properties":{"authorisation_signature":{"type":"string","minLength":1,"maxLength":20},"executed_on_date":{"type":"string","format":"date"},"place":{"type":"string","minLength":1,"maxLength":17}},"required":["authorisation_signature","executed_on_date","place"],"description":"When, where, and by whom the AWB was executed for the carrier (usually the agent).","title":"CargoOnFlightAirWaybillCarriersExecution1"},"CargoOnFlightAirWaybillChargeCodeEnum1":{"type":"string","enum":["CA","CB","CC","CE","CG","CH","CM","CP","CX","CZ","NC","NG","NP","NT","NX","NZ","PC","PD","PE","PF","PG","PH","PP","PX","PZ"],"description":"IATA Cargo-IMP method of payment codes, e.g. PP all charges prepaid, CC all charges collect.","title":"CargoOnFlightAirWaybillChargeCodeEnum1"},"CargoOnFlightAirWaybillPaymentConditionEnum1":{"type":"string","enum":["prepaid","collect"],"title":"CargoOnFlightAirWaybillPaymentConditionEnum1"},"CargoOnFlightAirWaybillChargesDeclaration1":{"type":"object","properties":{"charge_code":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillChargeCodeEnum1"},"currency_code":{"type":"string","pattern":"^[A-Z]{3}$"},"declared_value_for_carriage":{"type":["number","null"],"format":"double","exclusiveMinimum":0},"declared_value_for_customs":{"type":["number","null"],"format":"double","exclusiveMinimum":0},"declared_value_for_insurance":{"type":["number","null"],"format":"double","exclusiveMinimum":0},"payment_other_charges":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillPaymentConditionEnum1"},{"type":"null"}]},"payment_weight_valuation":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillPaymentConditionEnum1"},{"type":"null"}]}},"required":["charge_code","currency_code"],"description":"Currency, payment, and declared values, for the master or a house air waybill.","title":"CargoOnFlightAirWaybillChargesDeclaration1"},"CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1":{"type":"string","enum":["regulated_agent","known_consignor","account_consignor","regulated_carrier"],"title":"CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1"},"CargoOnFlightAirWaybillScreeningExemptionEnum1":{"type":"string","enum":["SMUS","MAIL","BIOM","DIPL","LFSM","NUCL","TRNS"],"title":"CargoOnFlightAirWaybillScreeningExemptionEnum1"},"CargoOnFlightAirWaybillScreeningMethodEnum1":{"type":"string","enum":["PHS","VCK","XRY","EDS","RES","FRD","VPT","PRT","MDE","SIM","AOM"],"title":"CargoOnFlightAirWaybillScreeningMethodEnum1"},"CargoOnFlightAirWaybillSecurityStatusEnum1":{"type":"string","enum":["SPX","SCO","SHR","NSC"],"title":"CargoOnFlightAirWaybillSecurityStatusEnum1"},"CargoOnFlightAirWaybillConsignmentSecurityDeclaration1":{"type":"object","properties":{"country_code":{"type":"string","pattern":"^[A-Z]{2}$"},"expiry_mmyy":{"type":["string","null"],"pattern":"^(0[1-9]|1[0-2])\\d{2}$"},"regulated_entity_category":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1"},"regulated_entity_identifier":{"type":"string","minLength":1,"maxLength":35},"screened_at_timestamp":{"type":["string","null"],"format":"date-time"},"screener_name":{"type":["string","null"],"maxLength":35},"screening_exemption":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillScreeningExemptionEnum1"},{"type":"null"}]},"screening_methods":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillScreeningMethodEnum1"}},"security_status":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillSecurityStatusEnum1"}},"required":["country_code","regulated_entity_category","regulated_entity_identifier","security_status"],"description":"The OCI consignment security declaration (e-CSD).","title":"CargoOnFlightAirWaybillConsignmentSecurityDeclaration1"},"CargoOnFlightAirWaybillMessageResponseProvenanceEnum1":{"type":"string","enum":["airline","manual"],"title":"CargoOnFlightAirWaybillMessageResponseProvenanceEnum1"},"CargoOnFlightAirWaybillMessageStatusEnum1":{"type":"string","enum":["sent","accepted","rejected"],"title":"CargoOnFlightAirWaybillMessageStatusEnum1"},"CargoOnFlightAirWaybillFwbMessage1":{"type":"object","properties":{"airline_response":{"type":["string","null"]},"cargo_on_flight_integration":{"$ref":"#/components/schemas/CargoOnFlightIntegrationEnum1"},"responded_at_timestamp":{"type":["string","null"],"format":"date-time"},"responded_by_user_id":{"type":["string","null"]},"response_provenance":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1"},{"type":"null"}]},"sent_at_timestamp":{"type":"string","format":"date-time"},"status":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillMessageStatusEnum1"}},"required":["cargo_on_flight_integration","sent_at_timestamp","status"],"description":"The latest send of the FWB, and the airline's answer to it.","title":"CargoOnFlightAirWaybillFwbMessage1"},"CargoOnFlightAirWaybillOtherChargeEntitlementEnum1":{"type":"string","enum":["due_agent","due_carrier"],"title":"CargoOnFlightAirWaybillOtherChargeEntitlementEnum1"},"CargoOnFlightAirWaybillOtherCharge1":{"type":"object","properties":{"charge_amount":{"type":"number","format":"double","minimum":0},"entitlement":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1"},"other_charge_code":{"type":"string","pattern":"^[A-Z]{2}$"},"payment_condition":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillPaymentConditionEnum1"}},"required":["charge_amount","entitlement","other_charge_code","payment_condition"],"description":"An other charge, e.g. AW (air waybill fee) due agent.","title":"CargoOnFlightAirWaybillOtherCharge1"},"CargoOnFlightAirWaybillDimension1":{"type":"object","properties":{"height_inches":{"type":"number","format":"double","exclusiveMinimum":0},"length_inches":{"type":"number","format":"double","exclusiveMinimum":0},"number_of_pieces":{"type":"integer","minimum":1,"maximum":9999},"width_inches":{"type":"number","format":"double","exclusiveMinimum":0}},"required":["height_inches","length_inches","number_of_pieces","width_inches"],"description":"`number_of_pieces` pieces, each of these dimensions.","title":"CargoOnFlightAirWaybillDimension1"},"CargoOnFlightAirWaybillRateClassCodeEnum1":{"type":"string","enum":["B","C","E","K","M","N","P","Q","R","S","U","X","Y"],"description":"IATA rate class codes, e.g. M minimum, N normal, Q quantity, C specific commodity.","title":"CargoOnFlightAirWaybillRateClassCodeEnum1"},"CargoOnFlightAirWaybillRateLine1":{"type":"object","properties":{"chargeable_weight_kilograms":{"type":["number","null"],"format":"double","exclusiveMinimum":0},"commodity_item_number":{"type":["string","null"],"pattern":"^\\d{4,7}$"},"dimensions":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillDimension1"}},"gross_weight_kilograms":{"type":"number","format":"double","exclusiveMinimum":0},"harmonized_commodity_codes":{"type":"array","items":{"type":"string","pattern":"^\\d{6,18}$"}},"nature_and_quantity_of_goods":{"type":"string","minLength":1},"number_of_pieces":{"type":"integer","minimum":1,"maximum":9999},"rate_class_code":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillRateClassCodeEnum1"},"rate_or_charge":{"type":["number","null"],"format":"double","minimum":0},"total_charge_amount":{"type":["number","null"],"format":"double","minimum":0},"uld_numbers":{"type":"array","items":{"type":"string"}},"volume_cubic_meters":{"type":["number","null"],"format":"double","exclusiveMinimum":0}},"required":["gross_weight_kilograms","nature_and_quantity_of_goods","number_of_pieces","rate_class_code"],"description":"One rated line of the tendered goods.","title":"CargoOnFlightAirWaybillRateLine1"},"CargoOnFlightAirWaybill1":{"type":"object","properties":{"_id":{"type":"string"},"also_notify":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillParty1"},{"type":"null"}]},"cargo_on_flight_booking_id":{"type":"string"},"carriers_execution":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillCarriersExecution1"},"charges_declaration":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillChargesDeclaration1"},"consignee":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillParty1"},"consignment_security_declaration":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1"},{"type":"null"}]},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":["string","null"]},"customs_origin_code":{"type":["string","null"]},"iata_cass_office_id":{"type":"string"},"issuing_agent_name":{"type":["string","null"],"minLength":1,"maxLength":35},"latest_fwb_message":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillFwbMessage1"},{"type":"null"}]},"order_id":{"type":"string"},"other_charges":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillOtherCharge1"}},"other_service_information":{"type":["string","null"]},"rate_lines":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillRateLine1"}},"schema_version":{"type":"integer"},"shipper":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillParty1"},"shippers_certification":{"type":"string"},"special_service_request":{"type":["string","null"]},"task_group_id":{"type":"string"},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","cargo_on_flight_booking_id","carriers_execution","charges_declaration","consignee","created_at_timestamp","created_by_org_id","iata_cass_office_id","order_id","schema_version","shipper","shippers_certification","task_group_id","updated_at_timestamp"],"title":"CargoOnFlightAirWaybill1"},"CargoOnFlightHouseAirWaybillFhlMessage1":{"type":"object","properties":{"airline_response":{"type":["string","null"]},"cargo_on_flight_integration":{"$ref":"#/components/schemas/CargoOnFlightIntegrationEnum1"},"responded_at_timestamp":{"type":["string","null"],"format":"date-time"},"responded_by_user_id":{"type":["string","null"]},"response_provenance":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1"},{"type":"null"}]},"sent_at_timestamp":{"type":"string","format":"date-time"},"status":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillMessageStatusEnum1"}},"required":["cargo_on_flight_integration","sent_at_timestamp","status"],"description":"The latest send of the house in an FHL, and the airline's answer to it.","title":"CargoOnFlightHouseAirWaybillFhlMessage1"},"CargoOnFlightHouseAirWaybill1":{"type":"object","properties":{"_id":{"type":"string"},"cargo_on_flight_air_waybill_id":{"type":"string"},"cargo_on_flight_booking_id":{"type":"string"},"charges_declaration":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillChargesDeclaration1"},{"type":"null"}]},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":["string","null"]},"destination_iata":{"type":"string"},"gross_weight_kilograms":{"type":"number","format":"double"},"house_air_waybill_number":{"type":"string"},"latest_fhl_message":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightHouseAirWaybillFhlMessage1"},{"type":"null"}]},"manifest_description_of_goods":{"type":"string"},"number_of_pieces":{"type":"integer"},"origin_iata":{"type":"string"},"schema_version":{"type":"integer"},"slac":{"type":["integer","null"]},"task_group_id":{"type":"string"},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","cargo_on_flight_air_waybill_id","cargo_on_flight_booking_id","created_at_timestamp","created_by_org_id","destination_iata","gross_weight_kilograms","house_air_waybill_number","manifest_description_of_goods","number_of_pieces","origin_iata","schema_version","task_group_id","updated_at_timestamp"],"title":"CargoOnFlightHouseAirWaybill1"},"CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes":{"type":"object","properties":{"cargo_on_flight_air_waybill":{"$ref":"#/components/schemas/CargoOnFlightAirWaybill1"},"cargo_on_flight_house_air_waybills":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightHouseAirWaybill1"}}},"required":["cargo_on_flight_air_waybill"],"title":"CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes"},"CargoOnFlightIntegrationsCargoAiBookReq":{"type":"object","properties":{"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"cargo_on_flight_booking_search_id":{"type":"string"},"integration_rate_id":{"type":"string"},"integration_result_id":{"type":"string"}},"required":["cargo_on_flight_booking_search_id","integration_rate_id","integration_result_id"],"title":"CargoOnFlightIntegrationsCargoAiBookReq"},"CargoOnFlightIntegrationsCargoAiCancelReq":{"type":"object","properties":{"cancellation_reason":{"type":"string","minLength":1}},"required":["cancellation_reason"],"title":"CargoOnFlightIntegrationsCargoAiCancelReq"},"CharlieStartReq":{"type":"object","properties":{"conversation_id":{"type":["string","null"],"description":"One of the caller's ChrtGPT conversations for the call to continue, with Charlie knowing its latest messages. Omit to start a new conversation."},"time_zone":{"type":["string","null"],"description":"The browser's IANA time zone, which Charlie tells the date and time in unless the caller saved one on their user private data."}},"title":"CharlieStartReq"},"CharlieStartRes":{"type":"object","properties":{"conversation_id":{"type":"string","description":"The call's ChrtGPT conversation: the one in the request, or a new one created on Charlie's first question to ChrtGPT, and until then not found."},"participant_token":{"type":"string","description":"Joins only this call's room, as the caller."},"server_url":{"type":"string","description":"The voice server to connect to with participant_token."}},"required":["conversation_id","participant_token","server_url"],"title":"CharlieStartRes"},"ChrtGptReqReasoningEffort":{"type":"string","enum":["low","medium","high"],"default":"low","description":"How much ChrtGPT reasons before answering this message. Higher is slower and more thorough.","title":"ChrtGptReqReasoningEffort"},"ChrtGptReqVerbosity":{"type":"string","enum":["low","medium","high"],"default":"low","description":"How long and detailed ChrtGPT's reply is.","title":"ChrtGptReqVerbosity"},"ChrtGPTReq":{"type":"object","properties":{"conversation_id":{"type":["string","null"],"description":"Omit to start a new conversation."},"message":{"type":"string","minLength":1,"maxLength":272000,"description":"Can't start with <speech>, <object_upload>, which mark what was said on a voice call and uploaded files."},"reasoning_effort":{"$ref":"#/components/schemas/ChrtGptReqReasoningEffort","default":"low","description":"How much ChrtGPT reasons before answering this message. Higher is slower and more thorough."},"verbosity":{"$ref":"#/components/schemas/ChrtGptReqVerbosity","default":"low","description":"How long and detailed ChrtGPT's reply is."}},"required":["message"],"title":"ChrtGPTReq"},"ChrtGptWebSearchEventAction":{"type":"string","enum":["search","open_page","find_in_page"],"title":"ChrtGptWebSearchEventAction"},"ChrtGPTEvent":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["completed"],"description":"Discriminator value: completed"},"context_limit_tokens":{"type":"integer","description":"When context_tokens passes this, ChrtGPT compacts older turns and context_tokens drops."},"context_tokens":{"type":"integer","description":"Tokens of context ChrtGPT carries into the next turn. On a turn that compacted, this is the size before compaction, so it can exceed context_limit_tokens once."},"conversation_id":{"type":"string"},"response_text":{"type":"string","description":"The turn's final message. Earlier messages in the turn only arrive as text deltas."}},"required":["type","context_limit_tokens","context_tokens","conversation_id","response_text"],"description":"Last event of a successful stream."},{"type":"object","properties":{"type":{"type":"string","enum":["error"],"description":"Discriminator value: error"},"message":{"type":"string"}},"required":["type","message"],"description":"Last event of a failed stream."},{"type":"object","properties":{"type":{"type":"string","enum":["started"],"default":"started"},"conversation_id":{"type":"string"}},"required":["type","conversation_id"],"description":"First event of every stream."},{"type":"object","properties":{"type":{"type":"string","enum":["text_delta"],"default":"text_delta"},"delta":{"type":"string"},"item_id":{"type":"string","description":"The assistant message this delta belongs to; a turn can have several."}},"required":["type","delta","item_id"],"description":"ChrtGPTTextDeltaEvent variant"},{"type":"object","properties":{"type":{"type":"string","enum":["tool_called"],"default":"tool_called"},"arguments":{"type":"string","description":"JSON-encoded tool arguments."},"call_id":{"type":"string"},"name":{"type":"string"}},"required":["type","arguments","call_id","name"],"description":"ChrtGPT called a chrt-mcp tool; its tool_output event follows."},{"type":"object","properties":{"type":{"type":"string","enum":["tool_output"],"default":"tool_output"},"call_id":{"type":"string","description":"The call_id of the tool_called event."},"output":{"type":"string","description":"Text of the tool result: the tool's JSON output or an error message."}},"required":["type","call_id","output"],"description":"ChrtGPTToolOutputEvent variant"},{"type":"object","properties":{"type":{"type":"string","enum":["web_search"],"default":"web_search"},"action":{"$ref":"#/components/schemas/ChrtGptWebSearchEventAction"},"item_id":{"type":"string"},"queries":{"type":"array","items":{"type":"string"},"description":"What was searched for, on the web or within a page. OpenAI omits it on some searches."},"url":{"type":["string","null"],"description":"The page opened or searched within."}},"required":["type","action","item_id","queries","url"],"description":"OpenAI ran a web search for ChrtGPT; it has no tool_output event."}],"discriminator":{"propertyName":"type"},"title":"ChrtGPTEvent"},"ChrtGPTConversationsDeleteManyReq":{"type":"object","properties":{"conversation_ids":{"type":"array","items":{"type":"string"},"description":"IDs that don't exist or aren't the caller's are skipped."}},"required":["conversation_ids"],"title":"ChrtGPTConversationsDeleteManyReq"},"ChrtGPTConversationsDeleteManyRes":{"type":"object","properties":{"deleted_conversation_ids":{"type":"array","items":{"type":"string"},"description":"The requested conversations this call deleted; skipped IDs are left out."}},"required":["deleted_conversation_ids"],"title":"ChrtGPTConversationsDeleteManyRes"},"ChrtGPTConversationSortByEnum":{"type":"string","enum":["updated_at","created_at"],"title":"ChrtGPTConversationSortByEnum"},"ChrtGPTConversationTitleSourceEnum1":{"type":"string","enum":["fallback","ai","user"],"title":"ChrtGPTConversationTitleSourceEnum1"},"ChrtGPTConversation1":{"type":"object","properties":{"_id":{"type":"string"},"awb_numbers":{"type":"array","items":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}},"context_tokens":{"type":["integer","null"],"minimum":0},"conversation_s3_object_metadata_ids":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string","format":"date-time"},"off_chrt_reference_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64}},"order_short_ids":{"type":"array","items":{"type":"string"}},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"summarized_turn_count":{"type":"integer","minimum":0,"default":0},"summary":{"type":["string","null"]},"title":{"type":"string"},"title_source":{"$ref":"#/components/schemas/ChrtGPTConversationTitleSourceEnum1"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["_id","created_at","org_id","schema_version","title","title_source","updated_at","user_id"],"title":"ChrtGPTConversation1"},"ChrtGPTConversationListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ChrtGPTConversation1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"ChrtGPTConversationListRes"},"ChrtGPTConversationsUpdateTitleReq":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":80}},"required":["title"],"title":"ChrtGPTConversationsUpdateTitleReq"},"ChrtGPTHistoryItem":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["assistant_message"],"description":"Discriminator value: assistant_message"},"item_id":{"type":["string","null"],"description":"Matches the item_id of the text_delta events that streamed it. None for Charlie's own lines, which never stream."},"speech":{"type":"boolean","description":"Said aloud on a Charlie call: the stored text was wrapped in speech tags."},"text":{"type":"string"}},"required":["type","item_id","speech","text"],"description":"ChrtGPTAssistantMessageItem variant"},{"type":"object","properties":{"type":{"type":"string","enum":["tool_called"],"default":"tool_called"},"arguments":{"type":"string","description":"JSON-encoded tool arguments."},"call_id":{"type":"string"},"name":{"type":"string"}},"required":["type","arguments","call_id","name"],"description":"ChrtGPT called a chrt-mcp tool; its tool_output event follows."},{"type":"object","properties":{"type":{"type":"string","enum":["tool_output"],"default":"tool_output"},"call_id":{"type":"string","description":"The call_id of the tool_called event."},"output":{"type":"string","description":"Text of the tool result: the tool's JSON output or an error message."}},"required":["type","call_id","output"],"description":"ChrtGPTToolOutputEvent variant"},{"type":"object","properties":{"type":{"type":"string","enum":["user_message"],"default":"user_message"},"speech":{"type":"boolean","description":"Said aloud on a Charlie call rather than typed."},"text":{"type":"string","description":"A file upload adds one message, kept with its tags: <object_upload>, whose <object_id> is the conversation S3 object metadata id to render the file from, followed by what the file is."}},"required":["type","speech","text"],"description":"ChrtGPTUserMessageItem variant"},{"type":"object","properties":{"type":{"type":"string","enum":["web_search"],"default":"web_search"},"action":{"$ref":"#/components/schemas/ChrtGptWebSearchEventAction"},"item_id":{"type":"string"},"queries":{"type":"array","items":{"type":"string"},"description":"What was searched for, on the web or within a page. OpenAI omits it on some searches."},"url":{"type":["string","null"],"description":"The page opened or searched within."}},"required":["type","action","item_id","queries","url"],"description":"OpenAI ran a web search for ChrtGPT; it has no tool_output event."}],"discriminator":{"propertyName":"type"},"title":"ChrtGPTHistoryItem"},"ChrtGPTConversationRes":{"type":"object","properties":{"context_limit_tokens":{"type":"integer","description":"The limit for conversation.context_tokens, as on the completed event."},"conversation":{"$ref":"#/components/schemas/ChrtGPTConversation1"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ChrtGPTHistoryItem"},"description":"The conversation's history, oldest first. Reasoning and compaction items are omitted."}},"required":["context_limit_tokens","conversation","items"],"title":"ChrtGPTConversationRes"},"ChrtGPTConversationS3ObjectTypeEnum1":{"type":"string","enum":["image","pdf","document","presentation","spreadsheet","audio"],"title":"ChrtGPTConversationS3ObjectTypeEnum1"},"ChrtGPTConversationS3ObjectMetadata1":{"type":"object","properties":{"_id":{"type":"string"},"ai_generated_description":{"type":"string"},"blurhash":{"type":["string","null"]},"content_type":{"type":"string","description":"MIME type detected from the file's bytes."},"conversation_id":{"type":"string"},"filename":{"type":["string","null"],"description":"Original filename of the uploaded file"},"object_type":{"$ref":"#/components/schemas/ChrtGPTConversationS3ObjectTypeEnum1"},"s3_key_prefix":{"type":"string","enum":["chrt_gpt/conversation_s3_object_metadata"],"default":"chrt_gpt/conversation_s3_object_metadata"},"schema_version":{"type":"integer"},"size_bytes":{"type":"integer","minimum":1},"uploaded_at_timestamp":{"type":"string","format":"date-time"},"uploaded_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"uploaded_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["_id","ai_generated_description","content_type","conversation_id","object_type","schema_version","size_bytes","uploaded_at_timestamp","uploaded_by_org_id","uploaded_by_user_id"],"title":"ChrtGPTConversationS3ObjectMetadata1"},"FileDownloadRequestErrorResDetail":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}}}],"description":"Existing authorization/resource error message or FastAPI request-validation errors.","title":"FileDownloadRequestErrorResDetail"},"FileDownloadRequestErrorRes":{"type":"object","properties":{"detail":{"$ref":"#/components/schemas/FileDownloadRequestErrorResDetail","description":"Existing authorization/resource error message or FastAPI request-validation errors."}},"required":["detail"],"title":"FileDownloadRequestErrorRes"},"FileDownloadErrorResCode":{"type":"string","enum":["FILE_SCAN_PENDING","FILE_MALWARE_DETECTED","FILE_SCAN_UNSUPPORTED","FILE_SCAN_FAILED","FILE_SCAN_ACCESS_DENIED","FILE_SCAN_STATUS_UNAVAILABLE","FILE_DOWNLOAD_UNAVAILABLE","FILE_NOT_FOUND"],"description":"Stable code for client behavior; do not parse detail.","title":"FileDownloadErrorResCode"},"FileDownloadErrorRes":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/FileDownloadErrorResCode","description":"Stable code for client behavior; do not parse detail."},"detail":{"type":"string","description":"Factual description of the file or scan condition."},"retryable":{"type":"boolean","description":"Whether another download attempt may help without operator intervention."}},"required":["code","detail","retryable"],"title":"FileDownloadErrorRes"},"Post__chrt_gpt_conversations_s3_objects_add_v1RequestNotFoundError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Post__chrt_gpt_conversations_s3_objects_add_v1RequestNotFoundError"},"Post__chrt_gpt_conversations_s3_objects_add_v1RequestUnprocessableEntityError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Post__chrt_gpt_conversations_s3_objects_add_v1RequestUnprocessableEntityError"},"Get__chrt_gpt_conversations_s3_objects_v1RequestNotFoundError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__chrt_gpt_conversations_s3_objects_v1RequestNotFoundError"},"Get__chrt_gpt_conversations_s3_objects_v1RequestUnprocessableEntityError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__chrt_gpt_conversations_s3_objects_v1RequestUnprocessableEntityError"},"ChrtGPTDictationStartRes":{"type":"object","properties":{"participant_token":{"type":"string","description":"Joins only this dictation's room, as the caller."},"server_url":{"type":"string","description":"The LiveKit server to connect to with participant_token."}},"required":["participant_token","server_url"],"title":"ChrtGPTDictationStartRes"},"ConnectionSearchPreferenceEnum":{"type":"string","enum":["earliest","latest"],"title":"ConnectionSearchPreferenceEnum"},"ConnectionSearchByEnum":{"type":"string","enum":["departure_time","arrival_time"],"title":"ConnectionSearchByEnum"},"FlightConnectionsSearchReq":{"type":"object","properties":{"allow_nearby_arrivals":{"type":"boolean","default":false,"description":"Include airports sharing the destination's city code."},"allow_nearby_departures":{"type":"boolean","default":false,"description":"Include airports sharing the origin's city code."},"destination":{"type":"string","description":"Arrival airport code (IATA preferred), e.g. 'LAX'."},"exclude_airlines":{"type":["array","null"],"items":{"type":"string"},"description":"Exclude these airline codes."},"exclude_airports":{"type":["array","null"],"items":{"type":"string"},"description":"Exclude these airports from connections."},"include_airlines":{"type":["array","null"],"items":{"type":"string"},"description":"Restrict to these airline codes."},"include_airports":{"type":["array","null"],"items":{"type":"string"},"description":"Restrict connections to pass through these airports."},"local_date_time":{"type":"string","format":"date-time","description":"Airport-local date+time (naive, no offset). Origin-local for DEPARTURE_TIME, destination-local for ARRIVAL_TIME."},"max_connections":{"type":"integer","minimum":0,"maximum":3,"default":2,"description":"Max stops per itinerary. 0 returns nonstop only."},"max_results":{"type":"integer","minimum":1,"maximum":1000,"default":100,"description":"Max number of connections to return."},"minimum_connect_time_minutes":{"type":["integer","null"],"description":"Minimum layover in minutes; useful for cargo since published connect times are not auto-applied for cargo payloads."},"num_hours":{"type":"integer","minimum":1,"maximum":24,"default":6,"description":"Search window size in hours relative to local_date_time. Default 6; Cirium max 24."},"origin":{"type":"string","description":"Departure airport code (IATA preferred), e.g. 'EWR'."},"prefer":{"$ref":"#/components/schemas/ConnectionSearchPreferenceEnum","description":"Return the earliest or latest flights within the search window."},"search_by":{"$ref":"#/components/schemas/ConnectionSearchByEnum","description":"Whether local_date_time is a departure constraint (leaving after) or an arrival constraint (arriving before)."}},"required":["destination","local_date_time","origin","search_by"],"title":"FlightConnectionsSearchReq"},"FlightConnectionLeg":{"type":"object","properties":{"arrival_time_utc":{"type":["string","null"],"format":"date-time"},"carrier_iata":{"type":["string","null"]},"carrier_name":{"type":["string","null"]},"departure_time_utc":{"type":["string","null"],"format":"date-time"},"destination_iata":{"type":["string","null"]},"destination_latitude":{"type":["number","null"],"format":"double"},"destination_longitude":{"type":["number","null"],"format":"double"},"destination_name":{"type":["string","null"]},"destination_time_zone":{"type":["string","null"]},"equipment_name":{"type":["string","null"]},"flight_number":{"type":["string","null"]},"is_codeshare":{"type":["boolean","null"]},"origin_iata":{"type":["string","null"]},"origin_latitude":{"type":["number","null"],"format":"double"},"origin_longitude":{"type":["number","null"],"format":"double"},"origin_name":{"type":["string","null"]},"origin_time_zone":{"type":["string","null"]}},"title":"FlightConnectionLeg"},"FlightConnection":{"type":"object","properties":{"elapsed_minutes":{"type":["integer","null"]},"legs":{"type":"array","items":{"$ref":"#/components/schemas/FlightConnectionLeg"}},"score":{"type":["integer","null"]},"stops":{"type":"integer"}},"required":["legs","stops"],"title":"FlightConnection"},"FlightConnectionsSearchRes":{"type":"object","properties":{"connections":{"type":"array","items":{"$ref":"#/components/schemas/FlightConnection"}}},"title":"FlightConnectionsSearchRes"},"CargojsonParticipantAddressType":{"type":"string","enum":["PIMA","TTY","CARRIER_CODE_3N","IATA_CARRIER_CODE","EMAIL","WEBSITE","UNNKOWN"],"description":"https://github.com/champ-cargosystems-gmbh/cargojson.champ.aero/blob/master/src/main/java/aero/champ/cargojson/common/ParticipantAddressType.java","title":"CargojsonParticipantAddressType"},"CargojsonParticipantAddress":{"type":"object","properties":{"address":{"type":"string"},"type":{"$ref":"#/components/schemas/CargojsonParticipantAddressType"}},"required":["address"],"description":"[CONFIG] PIMA address assigned during CHAMP onboarding.","title":"CargojsonParticipantAddress"},"CargojsonAddressing":{"type":"object","properties":{"finalRecipientAddresses":{"type":"array","items":{"$ref":"#/components/schemas/CargojsonParticipantAddress"}},"replyAnswerTo":{"type":"array","items":{"$ref":"#/components/schemas/CargojsonParticipantAddress"}},"routeAnswerVia":{"oneOf":[{"$ref":"#/components/schemas/CargojsonParticipantAddress"},{"type":"null"}]},"routeVia":{"oneOf":[{"$ref":"#/components/schemas/CargojsonParticipantAddress"},{"type":"null"}]},"senderAddresses":{"type":"array","items":{"$ref":"#/components/schemas/CargojsonParticipantAddress"}}},"description":"[CONFIG] Routing addresses for the CargoHUB message.","title":"CargojsonAddressing"},"CargojsonEdifactData":{"type":"object","properties":{"commonAccessReference":{"type":["string","null"]},"interchangeControlReference":{"type":["string","null"]},"messageReference":{"type":["string","null"]},"password":{"type":["string","null"]}},"description":"[CONFIG] Optional EDIFACT envelope data for legacy compatibility.","title":"CargojsonEdifactData"},"CargojsonMessageHeader":{"type":"object","properties":{"addressing":{"$ref":"#/components/schemas/CargojsonAddressing"},"creationDate":{"type":"string","format":"date-time"},"edifactData":{"oneOf":[{"$ref":"#/components/schemas/CargojsonEdifactData"},{"type":"null"}]}},"required":["addressing"],"description":"[GENERATED/CONFIG] Message header with addressing and creation timestamp.","title":"CargojsonMessageHeader"},"ChampConfirmationReceipt1":{"type":"object","properties":{"_id":{"type":"string"},"airWaybillNumber":{"type":"string"},"champId":{"type":"string"},"destination":{"type":"string"},"messageHeader":{"$ref":"#/components/schemas/CargojsonMessageHeader"},"orgId":{"type":["string","null"]},"origin":{"type":"string"},"receivedAt":{"type":"string","format":"date-time"},"referenceMessageContent":{"type":["string","null"]},"referencedMessageType":{"type":"string"},"rejected":{"type":"boolean"},"schemaVersion":{"type":"integer","default":1},"taskGroupId":{"type":["string","null"]},"textMessage":{"type":"string"},"type":{"type":"string","enum":["confirmation receipt"]}},"required":["_id","airWaybillNumber","champId","destination","messageHeader","origin","receivedAt","referencedMessageType","rejected","textMessage","type"],"title":"ChampConfirmationReceipt1"},"AirWaybillCreateReq":{"type":"object","properties":{"task_group_id":{"type":"string"}},"required":["task_group_id"],"title":"AirWaybillCreateReq"},"CargojsonAccountingInformationIdentifier":{"type":"string","enum":["CreditCardNumber","CreditCardExpiryDate","CreditCardIssuanceName","GeneralInformation","GovernmentBillOfLading","MiscellaneousChargeOrder","ModeOfSettlement","ReturnToOrigin","ShippersReferenceNumber"],"description":"https://github.com/champ-cargosystems-gmbh/cargojson.champ.aero/blob/master/src/main/java/aero/champ/cargojson/common/AccountingInformationIdentifier.java","title":"CargojsonAccountingInformationIdentifier"},"CargojsonAccounting":{"type":"object","properties":{"accountingInformation":{"type":"string"},"identifier":{"$ref":"#/components/schemas/CargojsonAccountingInformationIdentifier"}},"required":["accountingInformation","identifier"],"description":"[CUSTOMER] Accounting information line item.","title":"CargojsonAccounting"},"CargojsonParticipantType":{"type":"string","enum":["AIR","APT","AGT","BRK","CAG","CNE","CTM","DCL","DEC","FFW","GHA","PTT","SHP","TRK"],"description":"https://github.com/champ-cargosystems-gmbh/cargojson.champ.aero/blob/master/src/main/java/aero/champ/cargojson/common/ParticipantType.java","title":"CargojsonParticipantType"},"CargojsonParticipantIdentifier":{"type":"object","properties":{"airportCityCode":{"type":"string"},"code":{"type":"string"},"identifier":{"$ref":"#/components/schemas/CargojsonParticipantType"}},"required":["airportCityCode","code","identifier"],"description":"[CONFIG] Identifies a participant in the movement of a shipment.","title":"CargojsonParticipantIdentifier"},"CargojsonAgent":{"type":"object","properties":{"accountNumber":{"type":["string","null"]},"iataCargoAgentCASSAddress":{"type":["string","null"]},"iataCargoAgentNumericCode":{"type":["string","null"]},"name":{"type":"string"},"participantIdentifier":{"oneOf":[{"$ref":"#/components/schemas/CargojsonParticipantIdentifier"},{"type":"null"}]},"place":{"type":"string"}},"required":["name","place"],"description":"[WEBCARGO/CONFIG] Forwarder's IATA agent identification.\nSame identity as `iata` in WebcargoEmbedViewParams and OY party in bookingRecord XML.","title":"CargojsonAgent"},"CargojsonAddress":{"type":"object","properties":{"country":{"type":"string"},"name1":{"type":"string"},"name2":{"type":["string","null"]},"place":{"type":"string"},"postCode":{"type":"string"},"stateProvince":{"type":["string","null"]},"streetAddress1":{"type":"string"},"streetAddress2":{"type":["string","null"]}},"required":["country","name1","place","postCode","streetAddress1"],"description":"[CUSTOMER] Postal address of shipper or consignee.","title":"CargojsonAddress"},"CargojsonContactDetail":{"type":"object","properties":{"contactIdentifier":{"type":"string"},"contactNumber":{"type":"string"}},"required":["contactIdentifier","contactNumber"],"description":"[CUSTOMER] Contact details (phone, fax, email).\ncontactIdentifier: TE=telephone, FX=fax, EM=email.","title":"CargojsonContactDetail"},"CargojsonAccountContact":{"type":"object","properties":{"accountNumber":{"type":["string","null"]},"address":{"$ref":"#/components/schemas/CargojsonAddress"},"contactDetails":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargojsonContactDetail"}}},"required":["address"],"description":"[CUSTOMER] Shipper or consignee with address and optional contact info.\naccount_number is the IATA participant code (optional).","title":"CargojsonAccountContact"},"CargojsonChargeCode":{"type":"string","enum":["ALL_CHARGES_COLLECT","ALL_CHARGES_COLLECT_BY_CREDIT_CARD","ALL_CHARGES_COLLECT_BY_GBL","ALL_CHARGES_PREPAID_CASH","ALL_CHARGES_PREPAID_CREDIT","ALL_CHARGES_PREPAID_BY_CREDIT_CARD","ALL_CHARGES_PREPAID_BY_GBL","DESTINATION_COLLECT_CASH","DESTINATION_COLLECT_CREDIT","DESTINATION_COLLECT_BY_MCO","NO_CHARGE","NO_WEIGHT_CHARGE_OTHER_CHARGES_COLLECT","NO_WEIGHT_CHARGE_OTHER_CHARGES_PREPAID_BY_CREDIT_CARD","NO_WEIGHT_CHARGE_OTHER_CHARGES_PREPAID_BY_GBL","NO_WEIGHT_CHARGE_OTHER_CHARGES_PREPAID_CASH","NO_WEIGHT_CHARGE_OTHER_CHARGES_PREPAID_CREDIT","PARTIAL_COLLECT_CREDIT_PARTIAL_PREPAID_CASH","PARTIAL_COLLECT_CREDIT_PARTIAL_PREPAID_CREDIT","PARTIAL_COLLECT_CREDIT_CARD_PARTIAL_PREPAID_CASH","PARTIAL_COLLECT_CREDIT_CARD_PARTIAL_PREPAID_CREDIT","PARTIAL_PREPAID_CASH_PARTIAL_COLLECT_CASH","PARTIAL_PREPAID_CREDIT_PARTIAL_COLLECT_CASH","PARTIAL_PREPAID_CREDIT_CARD_PARTIAL_COLLECT_CASH","PARTIAL_PREPAID_CREDIT_CARD_PARTIAL_COLLECT_CREDIT","PARTIAL_PREPAID_CREDIT_CARD_PARTIAL_COLLECT_CREDIT_CARD"],"description":"https://github.com/champ-cargosystems-gmbh/cargojson.champ.aero/blob/master/src/main/java/aero/champ/cargojson/common/ChargeCode.java","title":"CargojsonChargeCode"},"CargojsonPaymentCondition":{"type":"string","enum":["Collect","Prepaid"],"description":"Prepaid/Collect indicator.","title":"CargojsonPaymentCondition"},"CargojsonChargeDeclarations":{"type":"object","properties":{"chargeCode":{"oneOf":[{"$ref":"#/components/schemas/CargojsonChargeCode"},{"type":"null"}]},"declaredValueForCarriage":{"type":["number","null"],"format":"double"},"declaredValueForCustoms":{"type":["number","null"],"format":"double"},"declaredValueForInsurance":{"type":["number","null"],"format":"double"},"isoCurrencyCode":{"type":"string"},"payment_OtherCharges":{"oneOf":[{"$ref":"#/components/schemas/CargojsonPaymentCondition"},{"type":"null"}]},"payment_WeightValuation":{"oneOf":[{"$ref":"#/components/schemas/CargojsonPaymentCondition"},{"type":"null"}]}},"required":["isoCurrencyCode"],"description":"[CUSTOMER/WEBCARGO] Currency from WebCargo <PriceIndicator>,\npayment conditions from customer's commercial terms.","title":"CargojsonChargeDeclarations"},"CargojsonWeightUnit":{"type":"string","enum":["KILOGRAM","POUND"],"title":"CargojsonWeightUnit"},"CargojsonWeight":{"type":"object","properties":{"amount":{"type":"number","format":"double"},"unit":{"$ref":"#/components/schemas/CargojsonWeightUnit"}},"required":["amount"],"description":"Reusable weight amount + unit pair.\n\nUsed for:\n  - AirWayBill.weight          -> [WEBCARGO] <NetWeight> (gross weight)\n  - Charge.chargeable_weight   -> [WEBCARGO] <TotalChargeableWeight> (billing weight)\n  - ChargeItem.gross_weight    -> [WEBCARGO] <NetWeight>","title":"CargojsonWeight"},"CargojsonRateClassCode":{"type":"string","enum":["BASIC_CHARGE","CLASS_RATE_REDUCTION","CLASS_RATE_SURCHARGE","INTERNATIONAL_PRIORITY_SERVICE_RATE","MINIMUM_CHARGE","NORMAL_RATE","QUANTITY_RATE","RATE_PER_KILOGRAM","SPECIFIC_COMMODITY_RATE","UNIT_LOAD_DEVICE_ADDITIONAL_INFORMATION","UNIT_LOAD_DEVICE_ADDITIONAL_RATE","UNIT_LOAD_DEVIDE_BASIC_CHARGE_OR_RATE","UNIT_LOAD_DEVICE_DISCOUNT"],"description":"https://github.com/champ-cargosystems-gmbh/cargojson.champ.aero/blob/master/src/main/java/aero/champ/cargojson/common/RateClassCode.java","title":"CargojsonRateClassCode"},"CargojsonCharge":{"type":"object","properties":{"chargeableWeight":{"oneOf":[{"$ref":"#/components/schemas/CargojsonWeight"},{"type":"null"}]},"classRatePercentage":{"type":["number","null"],"format":"double"},"rateClassCode":{"oneOf":[{"$ref":"#/components/schemas/CargojsonRateClassCode"},{"type":"null"}]},"rateClassCodeBasis":{"oneOf":[{"$ref":"#/components/schemas/CargojsonRateClassCode"},{"type":"null"}]},"rateOrCharge":{"type":["number","null"],"format":"double"},"totalChargeAmount":{"type":["number","null"],"format":"double"},"uldRateClassType":{"type":["string","null"]}},"description":"[WEBCARGO/CUSTOMER] Rate line item.","title":"CargojsonCharge"},"CargojsonDimensionUnit":{"type":"string","enum":["CENTIMETRE","DECIMETRE","FOOT","INCH","METRE","MILLIMETRE","YARD"],"description":"Java source calls this LengthUnit; we use DimensionUnit since it\ndescribes all three axes (length, width, height) in CargojsonDimensions.","title":"CargojsonDimensionUnit"},"CargojsonDimensions":{"type":"object","properties":{"height":{"type":"integer"},"length":{"type":"integer"},"unit":{"$ref":"#/components/schemas/CargojsonDimensionUnit"},"width":{"type":"integer"}},"required":["height","length","width"],"description":"[WEBCARGO/CUSTOMER] Package dimensions from <Dimension> or customer input.","title":"CargojsonDimensions"},"CargojsonULD":{"type":"object","properties":{"loadingIndicator":{"type":["string","null"]},"ownerCode":{"type":"string"},"remarks":{"type":["string","null"]},"serialNumber":{"type":"string"},"type":{"type":"string"},"weightOfULDContents":{"oneOf":[{"$ref":"#/components/schemas/CargojsonWeight"},{"type":"null"}]}},"required":["ownerCode","serialNumber","type"],"description":"[CUSTOMER] Unit Load Device (ULD) container details.","title":"CargojsonULD"},"CargojsonVolumeUnit":{"type":"string","enum":["CUBIC_CENTIMETRE","CUBIC_FOOT","CUBIC_INCH","CUBIC_METRE"],"title":"CargojsonVolumeUnit"},"CargojsonVolume":{"type":"object","properties":{"amount":{"type":"number","format":"double"},"unit":{"$ref":"#/components/schemas/CargojsonVolumeUnit"}},"required":["amount"],"description":"[WEBCARGO] Volume from <NetVolumeMeasure>.","title":"CargojsonVolume"},"CargojsonPackaging":{"type":"object","properties":{"dimensions":{"oneOf":[{"$ref":"#/components/schemas/CargojsonDimensions"},{"type":"null"}]},"numberOfPieces":{"type":["integer","null"]},"shippersLoadAndCount":{"type":["string","null"]},"uld":{"oneOf":[{"$ref":"#/components/schemas/CargojsonULD"},{"type":"null"}]},"volume":{"oneOf":[{"$ref":"#/components/schemas/CargojsonVolume"},{"type":"null"}]},"weight":{"oneOf":[{"$ref":"#/components/schemas/CargojsonWeight"},{"type":"null"}]}},"description":"[WEBCARGO/CUSTOMER] Per-piece-group packaging details.","title":"CargojsonPackaging"},"CargojsonServiceCode":{"type":"string","enum":["AIRPORT_TO_AIRPORT","SERVICE_SHIPMENT","COMPANY_MATERIAL","DOOR_TO_DOOR_SERVICE","AIRPORT_TO_DOOR","FLIGHT_SPECIFIC","DOOR_TO_AIRPORT","COMPANY_MAIL","DIPLOMATIC_MAIL","PRIORITY_SERVICE","UNDOCUMENTED_K","UNDOCUMENTED_L","UNDOCUMENTED_M","UNDOCUMENTED_N","UNDOCUMENTED_O","SMALL_PACKAGE_SERVICE","UNDOCUMENTED_Q","UNDOCUMENTED_R","SUBSTITUTE_TRUCK","CHARTER","UNDOCUMENTED_U","UNDOCUMENTED_V","UNDOCUMENTED_W","EXPRESS_SHIPMENTS","UNDOCUMENTED_Y","UNDOCUMENTED_Z"],"description":"https://github.com/champ-cargosystems-gmbh/cargojson.champ.aero/blob/master/src/main/java/aero/champ/cargojson/common/ServiceCode.java","title":"CargojsonServiceCode"},"CargojsonChargeItem":{"type":"object","properties":{"charges":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargojsonCharge"}},"commodityItemNumber":{"type":["array","null"],"items":{"type":"string"}},"consolidation":{"type":"boolean","default":false},"goodsDescription":{"type":["string","null"]},"grossWeight":{"oneOf":[{"$ref":"#/components/schemas/CargojsonWeight"},{"type":"null"}]},"harmonisedCommodityCode":{"type":["array","null"],"items":{"type":"string"}},"isoCountryCodeOfOriginOfGoods":{"type":["string","null"]},"numberOfPieces":{"type":["integer","null"]},"packaging":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargojsonPackaging"}},"rateCombinationPointCityCode":{"type":["string","null"]},"serviceCode":{"oneOf":[{"$ref":"#/components/schemas/CargojsonServiceCode"},{"type":"null"}]}},"description":"[WEBCARGO/CUSTOMER] Rate description line.","title":"CargojsonChargeItem"},"CargojsonCollectChargesInDestCurrency":{"type":"object","properties":{"chargesAtDestination":{"type":"number","format":"double"},"chargesInDestinationCurrency":{"type":"number","format":"double"},"currencyConversionRateOfExchange":{"type":"number","format":"double"},"isoCurrencyCode":{"type":"string"},"totalCollectCharges":{"type":"number","format":"double"}},"required":["chargesAtDestination","chargesInDestinationCurrency","currencyConversionRateOfExchange","isoCurrencyCode","totalCollectCharges"],"description":"[CUSTOMER] Charges Collect expressed in destination currency.","title":"CargojsonCollectChargesInDestCurrency"},"CargojsonChargeSummary":{"type":"object","properties":{"chargeSummaryTotal":{"type":"number","format":"double"},"taxes":{"type":["number","null"],"format":"double"},"totalOtherChargesDueAgent":{"type":["number","null"],"format":"double"},"totalOtherChargesDueCarrier":{"type":["number","null"],"format":"double"},"totalWeightCharge":{"type":["number","null"],"format":"double"},"valuationCharge":{"type":["number","null"],"format":"double"}},"required":["chargeSummaryTotal"],"description":"[CUSTOMER] Prepaid or collect charge totals.\nOne of prepaid or collect charge summary must be given.","title":"CargojsonChargeSummary"},"CargojsonCommissionInfo":{"type":"object","properties":{"amountCASSSettlementFactor":{"type":["number","null"],"format":"double"},"percentageCASSSettlementFactor":{"type":["number","null"],"format":"double"}},"description":"[CUSTOMER] Commission information concerning CASS settlement.","title":"CargojsonCommissionInfo"},"CargojsonFlightIdentity":{"type":"object","properties":{"flight":{"type":"string"},"scheduledDate":{"type":"string","format":"date"},"scheduledTime":{"type":["string","null"],"format":"time"}},"required":["flight","scheduledDate"],"description":"[WEBCARGO] From <ItineraryNumber>, e.g. 'AC0858'.\nPattern: [A-Z][A-Z0-9][0-9]{1,4}[A-Z]?\nCarrier prefix + zero-padded flight number.","title":"CargojsonFlightIdentity"},"CargojsonNominatedHandlingParty":{"type":"object","properties":{"name":{"type":"string"},"place":{"type":"string"}},"required":["name","place"],"description":"[CUSTOMER] Nominated handling party for the shipment.","title":"CargojsonNominatedHandlingParty"},"CargojsonOCI":{"type":"object","properties":{"additionalControlInformation":{"type":["string","null"]},"controlInformation":{"type":["string","null"]},"informationIdentifier":{"type":["string","null"]},"isoCountryCode":{"type":["string","null"]},"supplementaryControlInformation":{"type":["string","null"]}},"description":"[CUSTOMER] Other Customs, Security and Regulatory Control Information.","title":"CargojsonOCI"},"CargojsonEntitlementCode":{"type":"string","enum":["Agent","Carrier"],"description":"https://github.com/champ-cargosystems-gmbh/cargojson.champ.aero/blob/master/src/main/java/aero/champ/cargojson/airwaybill/EntitlementCode.java","title":"CargojsonEntitlementCode"},"CargojsonOtherChargeCode":{"type":"string","enum":["UC","BA","FA","BB","DG","DH","BC","AW","DI","AC","AS","AT","BR","BL","CA","DC","FC","LC","LI","CD","CH","JA","BE","CB","PB","ZC","BF","RA","SA","SB","SF","UD","GA","UB","DB","DF","FB","CG","CE","MY","FE","ZB","TX","GT","EA","KA","PA","UH","VA","WA","LE","HR","BI","CF","IN","UE","FF","KB","LA","CC","BH","MA","MC","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MZ","MD","ME","MF","MG","MH","MI","MJ","MK","ML","MM","MN","MB","HB","NS","CI","PK","PU","TA","DD","FD","DJ","SE","LF","RD","UF","RC","RB","DK","RF","CJ","LJ","ZA","TB","VB","SC","XB","SP","SS","TC","ST","TD","TE","SI","SR","LH","SO","VC","SD","SU","XC","TR","UG","TV","TI","IA","DV","LG","XD","FI","XE","BM"],"description":"https://github.com/champ-cargosystems-gmbh/cargojson.champ.aero/blob/master/src/main/java/aero/champ/cargojson/common/OtherChargeCode.java\n\nCode identifying the type of an individual charge.\nValue is the 2-letter Cargo-IMP code.","title":"CargojsonOtherChargeCode"},"CargojsonOtherChargeItem":{"type":"object","properties":{"chargeAmount":{"type":"number","format":"double"},"entitlementCode":{"$ref":"#/components/schemas/CargojsonEntitlementCode"},"otherChargeCode":{"$ref":"#/components/schemas/CargojsonOtherChargeCode"},"paymentCondition":{"$ref":"#/components/schemas/CargojsonPaymentCondition"}},"required":["chargeAmount","entitlementCode","otherChargeCode","paymentCondition"],"description":"[CUSTOMER] Individual other-charge line (e.g. handling, security, fuel).","title":"CargojsonOtherChargeItem"},"CargojsonOfficeMessageAddress":{"type":"object","properties":{"airportCityCode":{"type":"string"},"companyDesignator":{"type":"string"},"officeFunctionDesignator":{"type":"string"}},"required":["airportCityCode","companyDesignator","officeFunctionDesignator"],"description":"[CONFIG] Office message address for SITA/TTY routing.","title":"CargojsonOfficeMessageAddress"},"CargojsonOtherParticipant":{"type":"object","properties":{"fileReference":{"type":["string","null"]},"name":{"type":"string"},"officeMessageAddress":{"oneOf":[{"$ref":"#/components/schemas/CargojsonOfficeMessageAddress"},{"type":"null"}]},"participantIdentification":{"oneOf":[{"$ref":"#/components/schemas/CargojsonParticipantIdentifier"},{"type":"null"}]}},"required":["name"],"description":"[CUSTOMER] Other participant involved in the movement of the consignment.","title":"CargojsonOtherParticipant"},"CargojsonRouting":{"type":"object","properties":{"carrierCode":{"type":["string","null"]},"destination":{"type":["string","null"]}},"description":"[WEBCARGO] Derived from <Segment> carrier + destination pairs.","title":"CargojsonRouting"},"CargojsonCASSIndicator":{"type":"string","enum":["AWB_AS_INVOICE","CANCEL_AWB","CHARGES_CORRECTION_ADIVCE","DEBIT_OR_CREDIT_MEMORANDUM","IDENTIFICATION","LATE_REPORTING_WAYBILLS","NO_COMMISSION_OR_NEGATIVE_SALES_INCENTIVE","ORIGINAL_DATA","REVISED_ADJUSTED_DATA","SERVICE_AWB","TAX_CALCULATION_REQUIRED","VOID_AWB"],"description":"https://github.com/champ-cargosystems-gmbh/cargojson.champ.aero/blob/master/src/main/java/aero/champ/cargojson/common/CASSIndicator.java","title":"CargojsonCASSIndicator"},"CargojsonSalesIncentive":{"type":"object","properties":{"cassIndicator":{"oneOf":[{"$ref":"#/components/schemas/CargojsonCASSIndicator"},{"type":"null"}]},"chargeAmount":{"type":"number","format":"double"}},"required":["chargeAmount"],"description":"[CUSTOMER] Sales incentive information.","title":"CargojsonSalesIncentive"},"CargojsonShipmentReferenceInformation":{"type":"object","properties":{"info":{"type":["string","null"]},"referenceNumber":{"type":["string","null"]}},"description":"[CUSTOMER] Shipment reference info (supplementary reference for the AWB).","title":"CargojsonShipmentReferenceInformation"},"CargojsonSpecialHandlingCode":{"type":"string","enum":["ACT","AOG","BUP","CAO","CAT","NSC","SHR","COM","ECP","ECC","CRT","COL","RDS","DIP","EAP","EAW","REQ","RRE","PES","PEF","EAT","FRI","FRO","PEP","ATT","GOH","HEG","HEA","HUM","PEA","SCO","SPF","SPX","LIC","AVI","LHO","MAL","PEM","MUW","NWP","OBX","BIG","OHG","PAC","PER","PIL","XPS","QRT","RAC","SHL","WET","SWP","SUR","FIL","VAL","VIC","VOL","VUN","PEB","PHY","VAG","FSA","XPH","AER","VIP","UCB","XPU","MON","PEV","ART","BSD","BPL","CSL","DGR","NOS","PPL","SEC","SMU","ZXF","ZXO","ELI","ELM","RCM","RCL","RFW","ICE","REX","RCX","RGX","RLI","RLM","RXB","RXC","RXD","RXE","RXG","RXS","RFG","RFL","RFS","RIS","MAG","RMD","RNG","ROP","ROX","RPB","RPG","RSB","RRW","RRY","RSC"],"description":"https://github.com/champ-cargosystems-gmbh/cargojson.champ.aero/blob/master/src/main/java/aero/champ/cargojson/common/SpecialHandlingAndDangerousGoodsCode.java\nCodes marked (DG) are dangerous goods codes.","title":"CargojsonSpecialHandlingCode"},"ChampAirWaybillStatusEnum1":{"type":"string","enum":["draft","submitted","accepted","rejected"],"title":"ChampAirWaybillStatusEnum1"},"ChampAirWaybill1":{"type":"object","properties":{"_id":{"type":"string"},"accounting":{"type":"array","items":{"$ref":"#/components/schemas/CargojsonAccounting"}},"additionalSpecialHandlingCodes":{"type":"array","items":{"type":"string"}},"agent":{"oneOf":[{"$ref":"#/components/schemas/CargojsonAgent"},{"type":"null"}]},"airWaybillNumber":{"type":"string"},"alsoNotify":{"oneOf":[{"$ref":"#/components/schemas/CargojsonAccountContact"},{"type":"null"}]},"chargeDeclarations":{"oneOf":[{"$ref":"#/components/schemas/CargojsonChargeDeclarations"},{"type":"null"}]},"chargeItems":{"type":"array","items":{"$ref":"#/components/schemas/CargojsonChargeItem"}},"chargesCollectInDestCurrency":{"oneOf":[{"$ref":"#/components/schemas/CargojsonCollectChargesInDestCurrency"},{"type":"null"}]},"collectChargeSummary":{"oneOf":[{"$ref":"#/components/schemas/CargojsonChargeSummary"},{"type":"null"}]},"commissionInfo":{"oneOf":[{"$ref":"#/components/schemas/CargojsonCommissionInfo"},{"type":"null"}]},"consignee":{"oneOf":[{"$ref":"#/components/schemas/CargojsonAccountContact"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"customsOriginCode":{"type":["string","null"]},"densityGroup":{"type":["integer","null"]},"destination":{"type":"string"},"flights":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargojsonFlightIdentity"}},"isoCurrencyCode":{"type":["string","null"]},"nominatedHandlingParty":{"oneOf":[{"$ref":"#/components/schemas/CargojsonNominatedHandlingParty"},{"type":"null"}]},"oci":{"type":"array","items":{"$ref":"#/components/schemas/CargojsonOCI"}},"orgId":{"type":"string","description":"Must be a string starting with `org_`"},"origin":{"type":"string"},"otherCharges":{"type":"array","items":{"$ref":"#/components/schemas/CargojsonOtherChargeItem"}},"otherParticipant":{"type":"array","items":{"$ref":"#/components/schemas/CargojsonOtherParticipant"}},"otherServiceInformation":{"type":["string","null"]},"prepaidChargeSummary":{"oneOf":[{"$ref":"#/components/schemas/CargojsonChargeSummary"},{"type":"null"}]},"route":{"type":"array","items":{"$ref":"#/components/schemas/CargojsonRouting"}},"salesIncentive":{"oneOf":[{"$ref":"#/components/schemas/CargojsonSalesIncentive"},{"type":"null"}]},"schemaVersion":{"type":"integer","default":1},"shipmentReferenceInformation":{"oneOf":[{"$ref":"#/components/schemas/CargojsonShipmentReferenceInformation"},{"type":"null"}]},"shipper":{"oneOf":[{"$ref":"#/components/schemas/CargojsonAccountContact"},{"type":"null"}]},"shippersCertification":{"type":["string","null"]},"specialHandlingCodes":{"type":"array","items":{"$ref":"#/components/schemas/CargojsonSpecialHandlingCode"}},"specialServiceRequest":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/ChampAirWaybillStatusEnum1"},"submittedAt":{"type":["string","null"],"format":"date-time"},"taskGroupId":{"type":"string"},"totalConsignmentNumberOfPieces":{"type":"integer"},"updatedAt":{"type":"string","format":"date-time"},"volume":{"oneOf":[{"$ref":"#/components/schemas/CargojsonVolume"},{"type":"null"}]},"webcargoBookingRecordId":{"type":"string"},"weight":{"$ref":"#/components/schemas/CargojsonWeight"}},"required":["_id","airWaybillNumber","chargeItems","createdAt","destination","orgId","origin","route","taskGroupId","totalConsignmentNumberOfPieces","updatedAt","webcargoBookingRecordId","weight"],"title":"ChampAirWaybill1"},"ChampFlightStatusEvent1":{"type":"object","properties":{"airportOfDelivery":{"type":["string","null"]},"airportOfNotification":{"type":["string","null"]},"airportOfReceipt":{"type":["string","null"]},"dateOfScheduledArrival":{"type":["string","null"]},"dateOfScheduledDeparture":{"type":["string","null"]},"deliveryToName":{"type":["string","null"]},"destination":{"type":["string","null"]},"flight":{"type":["string","null"]},"notificationToName":{"type":["string","null"]},"numberOfPieces":{"type":["integer","null"]},"origin":{"type":["string","null"]},"otherServiceInformation":{"type":["string","null"]},"receivedFromName":{"type":["string","null"]},"timeOfEvent":{"type":["string","null"]},"timeOfEventTimePartQuality":{"type":["string","null"]},"timeOfScheduledArrival":{"type":["string","null"]},"timeOfScheduledDeparture":{"type":["string","null"]},"type":{"type":"string"},"weight":{"oneOf":[{"$ref":"#/components/schemas/CargojsonWeight"},{"type":"null"}]}},"required":["type"],"title":"ChampFlightStatusEvent1"},"ChampOriginAndDestination":{"type":"object","properties":{"destination":{"type":"string"},"origin":{"type":"string"}},"required":["destination","origin"],"title":"ChampOriginAndDestination"},"ChampQuantity":{"type":"object","properties":{"numberOfPieces":{"type":["integer","null"]},"shipmentDescriptionCode":{"type":["string","null"]},"weight":{"oneOf":[{"$ref":"#/components/schemas/CargojsonWeight"},{"type":"null"}]}},"title":"ChampQuantity"},"ChampFlightStatus1":{"type":"object","properties":{"_id":{"type":"string"},"airWaybillNumber":{"type":"string"},"champId":{"type":"string"},"events":{"type":"array","items":{"$ref":"#/components/schemas/ChampFlightStatusEvent1"}},"messageHeader":{"$ref":"#/components/schemas/CargojsonMessageHeader"},"orgId":{"type":["string","null"]},"originAndDestination":{"oneOf":[{"$ref":"#/components/schemas/ChampOriginAndDestination"},{"type":"null"}]},"quantity":{"oneOf":[{"$ref":"#/components/schemas/ChampQuantity"},{"type":"null"}]},"receivedAt":{"type":"string","format":"date-time"},"schemaVersion":{"type":"integer","default":1},"taskGroupId":{"type":["string","null"]},"totalNumberOfPieces":{"type":["integer","null"]},"type":{"type":"string","enum":["flight status"]}},"required":["_id","airWaybillNumber","champId","messageHeader","receivedAt","type"],"title":"ChampFlightStatus1"},"ChampAirWaybillClientUpdate1":{"type":"object","properties":{"accounting":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargojsonAccounting"}},"additional_special_handling_codes":{"type":["array","null"],"items":{"type":"string"}},"agent":{"oneOf":[{"$ref":"#/components/schemas/CargojsonAgent"},{"type":"null"}]},"also_notify":{"oneOf":[{"$ref":"#/components/schemas/CargojsonAccountContact"},{"type":"null"}]},"charge_declarations":{"oneOf":[{"$ref":"#/components/schemas/CargojsonChargeDeclarations"},{"type":"null"}]},"charge_items":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargojsonChargeItem"}},"charges_collect_in_dest_currency":{"oneOf":[{"$ref":"#/components/schemas/CargojsonCollectChargesInDestCurrency"},{"type":"null"}]},"collect_charge_summary":{"oneOf":[{"$ref":"#/components/schemas/CargojsonChargeSummary"},{"type":"null"}]},"commission_info":{"oneOf":[{"$ref":"#/components/schemas/CargojsonCommissionInfo"},{"type":"null"}]},"consignee":{"oneOf":[{"$ref":"#/components/schemas/CargojsonAccountContact"},{"type":"null"}]},"customs_origin_code":{"type":["string","null"]},"density_group":{"type":["integer","null"]},"flights":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargojsonFlightIdentity"}},"iso_currency_code":{"type":["string","null"]},"nominated_handling_party":{"oneOf":[{"$ref":"#/components/schemas/CargojsonNominatedHandlingParty"},{"type":"null"}]},"oci":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargojsonOCI"}},"other_charges":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargojsonOtherChargeItem"}},"other_participant":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargojsonOtherParticipant"}},"other_service_information":{"type":["string","null"]},"prepaid_charge_summary":{"oneOf":[{"$ref":"#/components/schemas/CargojsonChargeSummary"},{"type":"null"}]},"route":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargojsonRouting"}},"sales_incentive":{"oneOf":[{"$ref":"#/components/schemas/CargojsonSalesIncentive"},{"type":"null"}]},"shipment_reference_information":{"oneOf":[{"$ref":"#/components/schemas/CargojsonShipmentReferenceInformation"},{"type":"null"}]},"shipper":{"oneOf":[{"$ref":"#/components/schemas/CargojsonAccountContact"},{"type":"null"}]},"shippers_certification":{"type":["string","null"]},"special_handling_codes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CargojsonSpecialHandlingCode"}},"special_service_request":{"type":["string","null"]},"total_consignment_number_of_pieces":{"type":["integer","null"]},"volume":{"oneOf":[{"$ref":"#/components/schemas/CargojsonVolume"},{"type":"null"}]},"weight":{"oneOf":[{"$ref":"#/components/schemas/CargojsonWeight"},{"type":"null"}]}},"description":"Partial update — all fields Optional, exclude_unset. Excludes\nair_waybill_number, origin, destination (non-editable after creation).","title":"ChampAirWaybillClientUpdate1"},"CargoAiTrackAndTraceSubscribeReq":{"type":"object","properties":{"awb":{"type":"string","pattern":"^\\d{3}-\\d{8}$","description":"IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'."},"emails":{"type":"array","items":{"type":"string","format":"email"}}},"required":["awb"],"title":"CargoAiTrackAndTraceSubscribeReq"},"CargoAiTrackAndTraceSubscription1":{"type":"object","properties":{"_id":{"type":"string"},"active_until":{"type":"string","format":"date-time"},"awb":{"type":"string","pattern":"^\\d{3}-\\d{8}$","description":"IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'."},"created_at":{"type":"string","format":"date-time"},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"last_update_received_at":{"type":["string","null"],"format":"date-time"},"schema_version":{"type":"integer"},"subscribed_at":{"type":"string","format":"date-time"},"subscribed_emails":{"type":"array","items":{"type":"string","format":"email"}},"tracking_update_ids":{"type":"array","items":{"type":"string"}},"updated_at":{"type":"string","format":"date-time"}},"required":["_id","active_until","awb","created_at","created_by_org_id","created_by_user_id","schema_version","subscribed_at","updated_at"],"title":"CargoAiTrackAndTraceSubscription1"},"CargoAiTrackAndTraceAlertLevelEnum":{"type":"string","enum":["OK","WATCH","AT_RISK"],"description":"Early-warning signal level on shipment execution (alerts.level).","title":"CargoAiTrackAndTraceAlertLevelEnum"},"CargoAiTrackAndTraceAlert":{"type":"object","properties":{"level":{"oneOf":[{"$ref":"#/components/schemas/CargoAiTrackAndTraceAlertLevelEnum"},{"type":"null"}]},"message":{"type":["string","null"]}},"description":"The `alerts` object — early warning signals on shipment execution.","title":"CargoAiTrackAndTraceAlert"},"CargoAiTrackAndTraceAdditionalInformation":{"type":"object","properties":{"deliveryToName":{"type":["string","null"]},"notificationToName":{"type":["string","null"]},"receivedFromName":{"type":["string","null"]},"transferredToCarrier":{"type":["string","null"]}},"description":"Event `additionalInformation` (notifications, delivery, transfer).","title":"CargoAiTrackAndTraceAdditionalInformation"},"CargoAiTrackAndTraceUld":{"type":"object","properties":{"pieces":{"type":["string","null"]},"uld":{"type":["string","null"]}},"description":"ULD details attached to an event (`eventUlds`) or flight (`flightUlds`).","title":"CargoAiTrackAndTraceUld"},"CargoAiTrackAndTraceFlight":{"type":"object","properties":{"actualArrival":{"type":["string","null"]},"actualDeparture":{"type":["string","null"]},"carbonEmission":{"type":["string","null"]},"date":{"type":["string","null"]},"destination":{"type":["string","null"]},"destinationCoord":{"type":["string","null"]},"distance":{"type":["string","null"]},"duration":{"type":["string","null"]},"estimatedArrival":{"type":["string","null"]},"estimatedDeparture":{"type":["string","null"]},"flightUlds":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiTrackAndTraceUld"}},"number":{"type":["string","null"]},"origin":{"type":["string","null"]},"originCoord":{"type":["string","null"]},"scheduledArrival":{"type":["string","null"]},"scheduledDeparture":{"type":["string","null"]}},"description":"The `flight` object nested inside a tracking event.","title":"CargoAiTrackAndTraceFlight"},"CargoAiTrackAndTraceEvent":{"type":"object","properties":{"additionalInformation":{"oneOf":[{"$ref":"#/components/schemas/CargoAiTrackAndTraceAdditionalInformation"},{"type":"null"}]},"carbonEmission":{"type":["string","null"]},"code":{"type":["string","null"]},"description":{"type":["string","null"]},"destination":{"type":["string","null"]},"destinationCoord":{"type":["string","null"]},"distance":{"type":["string","null"]},"eventDate":{"type":["string","null"]},"eventLocation":{"type":["string","null"]},"eventLocationCoord":{"type":["string","null"]},"eventUlds":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiTrackAndTraceUld"}},"flight":{"oneOf":[{"$ref":"#/components/schemas/CargoAiTrackAndTraceFlight"},{"type":"null"}]},"flightNumber":{"type":["string","null"]},"isPlanned":{"type":["boolean","null"]},"isPredicted":{"type":["boolean","null"]},"origin":{"type":["string","null"]},"originCoord":{"type":["string","null"]},"pieces":{"type":["string","null"]},"predictedEventDate":{"type":["string","null"]},"predictedEventDateP90":{"type":["string","null"]},"scheduledDepartureDate":{"type":["string","null"]},"time":{"type":["string","null"]},"volume":{"type":["string","null"]},"weight":{"type":["string","null"]}},"description":"A single tracking event (BKD, RCS, DEP, ARR, RCF, NFD, DLV, ...).","title":"CargoAiTrackAndTraceEvent"},"CargoAiTrackAndTraceUpdateSourceEnum":{"type":"string","enum":["webhook"],"title":"CargoAiTrackAndTraceUpdateSourceEnum"},"CargoAiTrackAndTraceUpdate1":{"type":"object","properties":{"_id":{"type":"string"},"alerts":{"oneOf":[{"$ref":"#/components/schemas/CargoAiTrackAndTraceAlert"},{"type":"null"}]},"awb":{"type":"string","pattern":"^\\d{3}-\\d{8}$","description":"IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'."},"carbonEmission":{"type":["string","null"]},"destination":{"type":["string","null"]},"events":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiTrackAndTraceEvent"}},"newEvents":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiTrackAndTraceEvent"}},"oldEvents":{"type":"array","items":{"$ref":"#/components/schemas/CargoAiTrackAndTraceEvent"}},"origin":{"type":["string","null"]},"pieces":{"type":["string","null"]},"receivedAt":{"type":"string","format":"date-time"},"schemaVersion":{"type":"integer","default":1},"source":{"$ref":"#/components/schemas/CargoAiTrackAndTraceUpdateSourceEnum"},"status":{"type":["string","null"]},"volume":{"type":["string","null"]},"weight":{"type":["string","null"]}},"required":["_id","awb","receivedAt","source"],"title":"CargoAiTrackAndTraceUpdate1"},"WebcargoCommodityClass":{"type":"object","properties":{"classification_code":{"type":["string","null"]},"commodity_category_code":{"type":["string","null"]},"name":{"type":["string","null"]}},"title":"WebcargoCommodityClass"},"WebcargoFee":{"type":"object","properties":{"currency":{"type":["string","null"]},"fee_category":{"type":["string","null"]},"fee_code":{"type":["string","null"]},"fee_comment":{"type":["string","null"]},"fee_location_type":{"type":["string","null"]},"fee_name":{"type":["string","null"]},"fee_type":{"type":["string","null"]},"inclusive":{"type":["string","null"]},"quantity":{"type":["string","null"]},"rate":{"type":["string","null"]},"unit_rate":{"type":["string","null"]}},"title":"WebcargoFee"},"WebcargoLocation":{"type":"object","properties":{"country_id":{"type":["string","null"]},"country_name":{"type":["string","null"]},"location_code":{"type":["string","null"]},"location_name":{"type":["string","null"]},"location_type_code":{"type":["string","null"]},"postal_code":{"type":["string","null"]}},"title":"WebcargoLocation"},"WebcargoLeg":{"type":"object","properties":{"destination":{"oneOf":[{"$ref":"#/components/schemas/WebcargoLocation"},{"type":"null"}]},"origin":{"oneOf":[{"$ref":"#/components/schemas/WebcargoLocation"},{"type":"null"}]},"scheduled_time_of_arrival":{"type":["string","null"]},"scheduled_time_of_departure":{"type":["string","null"]}},"title":"WebcargoLeg"},"WebcargoCarrier":{"type":"object","properties":{"carrier_code":{"type":["string","null"]}},"title":"WebcargoCarrier"},"WebcargoBookStatus":{"type":"object","properties":{"code":{"type":["string","null"]},"reason":{"type":["string","null"]}},"title":"WebcargoBookStatus"},"WebcargoSegment":{"type":"object","properties":{"destination":{"oneOf":[{"$ref":"#/components/schemas/WebcargoLocation"},{"type":"null"}]},"itinerary_number":{"type":["string","null"]},"latest_acceptance_date":{"type":["string","null"]},"legs":{"type":"array","items":{"$ref":"#/components/schemas/WebcargoLeg"}},"marketing_carrier":{"oneOf":[{"$ref":"#/components/schemas/WebcargoCarrier"},{"type":"null"}]},"operating_carrier":{"oneOf":[{"$ref":"#/components/schemas/WebcargoCarrier"},{"type":"null"}]},"origin":{"oneOf":[{"$ref":"#/components/schemas/WebcargoLocation"},{"type":"null"}]},"scheduled_time_of_arrival":{"type":["string","null"]},"scheduled_time_of_departure":{"type":["string","null"]},"segment_id":{"type":["string","null"]},"status":{"oneOf":[{"$ref":"#/components/schemas/WebcargoBookStatus"},{"type":"null"}]},"transport_mode":{"type":["string","null"]},"vehicle_name":{"type":["string","null"]},"vehicle_number":{"type":["string","null"]},"vehicle_type":{"type":["string","null"]}},"title":"WebcargoSegment"},"WebcargoConnection":{"type":"object","properties":{"general_charges":{"type":"array","items":{"$ref":"#/components/schemas/WebcargoFee"}},"segments":{"type":"array","items":{"$ref":"#/components/schemas/WebcargoSegment"}}},"title":"WebcargoConnection"},"WebcargoValueWithUnit":{"type":"object","properties":{"unit_code":{"type":["string","null"]},"value":{"type":["string","null"]}},"description":"XML element with text content and a unitCode attribute.\n\nParses e.g. ``<Width unitCode=\"CMT\">10.0</Width>`` into\n``value=\"10.0\", unit_code=\"CMT\"``.","title":"WebcargoValueWithUnit"},"WebcargoDimension":{"type":"object","properties":{"height":{"oneOf":[{"$ref":"#/components/schemas/WebcargoValueWithUnit"},{"type":"null"}]},"length":{"oneOf":[{"$ref":"#/components/schemas/WebcargoValueWithUnit"},{"type":"null"}]},"width":{"oneOf":[{"$ref":"#/components/schemas/WebcargoValueWithUnit"},{"type":"null"}]}},"title":"WebcargoDimension"},"WebcargoPackage":{"type":"object","properties":{"dimensions":{"type":"array","items":{"$ref":"#/components/schemas/WebcargoDimension"}},"packaging_type":{"type":["string","null"]},"quantity":{"type":["string","null"]},"stackable":{"type":["string","null"]},"turnable":{"type":["string","null"]},"weight":{"oneOf":[{"$ref":"#/components/schemas/WebcargoValueWithUnit"},{"type":"null"}]}},"title":"WebcargoPackage"},"WebcargoLoad":{"type":"object","properties":{"net_volume_measure":{"oneOf":[{"$ref":"#/components/schemas/WebcargoValueWithUnit"},{"type":"null"}]},"net_weight":{"oneOf":[{"$ref":"#/components/schemas/WebcargoValueWithUnit"},{"type":"null"}]},"packages":{"type":"array","items":{"$ref":"#/components/schemas/WebcargoPackage"}},"total_chargeable_weight":{"oneOf":[{"$ref":"#/components/schemas/WebcargoValueWithUnit"},{"type":"null"}]},"total_quantity":{"type":["string","null"]}},"title":"WebcargoLoad"},"WebcargoPriceIndicator":{"type":"object","properties":{"rate_currency":{"type":["string","null"]},"rate_type":{"type":["string","null"]},"total_charge":{"type":["string","null"]},"unit_of_measure":{"type":["string","null"]},"unit_rate":{"type":["string","null"]},"valid_from":{"type":["string","null"]},"valid_to":{"type":["string","null"]}},"title":"WebcargoPriceIndicator"},"WebcargoProduct":{"type":"object","properties":{"product_code":{"type":["string","null"]},"product_description":{"type":["string","null"]}},"title":"WebcargoProduct"},"WebcargoBookingRate":{"type":"object","properties":{"commodity_classification":{"type":"array","items":{"$ref":"#/components/schemas/WebcargoCommodityClass"}},"connection":{"oneOf":[{"$ref":"#/components/schemas/WebcargoConnection"},{"type":"null"}]},"destination_location":{"oneOf":[{"$ref":"#/components/schemas/WebcargoLocation"},{"type":"null"}]},"hash":{"type":["string","null"]},"latest_acceptance_date":{"type":["string","null"]},"load":{"oneOf":[{"$ref":"#/components/schemas/WebcargoLoad"},{"type":"null"}]},"origin_location":{"oneOf":[{"$ref":"#/components/schemas/WebcargoLocation"},{"type":"null"}]},"price_indicator":{"oneOf":[{"$ref":"#/components/schemas/WebcargoPriceIndicator"},{"type":"null"}]},"product":{"oneOf":[{"$ref":"#/components/schemas/WebcargoProduct"},{"type":"null"}]},"reference_id":{"type":["string","null"]},"shipment_priority_code":{"type":["string","null"]},"special_handling_codes":{"type":"array","items":{"type":"string"}},"time_of_availability":{"type":["string","null"]},"transport_mode":{"type":["string","null"]}},"title":"WebcargoBookingRate"},"WebcargoAccountID":{"type":"object","properties":{"id_source":{"type":["string","null"]},"value":{"type":["string","null"]}},"title":"WebcargoAccountID"},"WebcargoContact":{"type":"object","properties":{"electronic_mail":{"type":["string","null"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"telephone":{"type":["string","null"]}},"title":"WebcargoContact"},"WebcargoPostalAddress":{"type":"object","properties":{"city_id":{"type":["string","null"]},"city_name":{"type":["string","null"]},"country_id":{"type":["string","null"]},"country_name":{"type":["string","null"]},"location_name":{"type":["string","null"]},"location_type_code":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"state_or_province":{"type":["string","null"]},"street_name":{"type":["string","null"]}},"title":"WebcargoPostalAddress"},"WebcargoParty":{"type":"object","properties":{"account_id_list":{"type":"array","items":{"$ref":"#/components/schemas/WebcargoAccountID"}},"contact":{"oneOf":[{"$ref":"#/components/schemas/WebcargoContact"},{"type":"null"}]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"party_type_code":{"type":["string","null"]},"postal_address":{"oneOf":[{"$ref":"#/components/schemas/WebcargoPostalAddress"},{"type":"null"}]}},"title":"WebcargoParty"},"WebcargoBusinessInfo":{"type":"object","properties":{"method_reason":{"type":["string","null"]},"parties":{"type":"array","items":{"$ref":"#/components/schemas/WebcargoParty"}},"service_method":{"type":["string","null"]}},"title":"WebcargoBusinessInfo"},"WebcargoDocumentIdentifier":{"type":"object","properties":{"document_id":{"type":["string","null"]},"document_type":{"type":["string","null"]},"external_booking_reference_number":{"type":["string","null"]}},"title":"WebcargoDocumentIdentifier"},"WebcargoMessageHeader":{"type":"object","properties":{"message_id":{"type":["string","null"]},"request_id":{"type":["string","null"]}},"title":"WebcargoMessageHeader"},"WebcargoResponseStatusEntry":{"type":"object","properties":{"code":{"type":["string","null"]},"reason":{"type":["string","null"]}},"title":"WebcargoResponseStatusEntry"},"WebcargoResponseStatus":{"type":"object","properties":{"statuses":{"type":"array","items":{"$ref":"#/components/schemas/WebcargoResponseStatusEntry"}}},"title":"WebcargoResponseStatus"},"WebcargoShipment":{"type":"object","properties":{"latest_acceptance_date":{"type":["string","null"]},"time_of_availability":{"type":["string","null"]},"transport_mode":{"type":["string","null"]}},"title":"WebcargoShipment"},"WebcargoBookingRecord1":{"type":"object","properties":{"_id":{"type":"string"},"awb_number":{"type":"string"},"booking_rate":{"$ref":"#/components/schemas/WebcargoBookingRate"},"business_info":{"$ref":"#/components/schemas/WebcargoBusinessInfo"},"document_identifiers":{"type":"array","items":{"$ref":"#/components/schemas/WebcargoDocumentIdentifier"}},"message_header":{"$ref":"#/components/schemas/WebcargoMessageHeader"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"response_status":{"oneOf":[{"$ref":"#/components/schemas/WebcargoResponseStatus"},{"type":"null"}]},"schema_version":{"type":"integer"},"shipment":{"oneOf":[{"$ref":"#/components/schemas/WebcargoShipment"},{"type":"null"}]},"synced_at":{"type":"string","format":"date-time"},"task_group_id":{"type":"string"}},"required":["_id","awb_number","booking_rate","business_info","document_identifiers","message_header","org_id","schema_version","synced_at","task_group_id"],"title":"WebcargoBookingRecord1"},"GetWebcargoEmbedReq":{"type":"object","properties":{"country":{"type":"string"},"departure":{"type":"string"},"destination":{"type":"string"},"origin":{"type":"string"}},"required":["country","departure","destination","origin"],"title":"GetWebcargoEmbedReq"},"WebcargoEmbedResponse":{"type":"object","properties":{"access_token":{"type":"string"},"expires_in":{"type":["integer","null"]},"url":{"type":"string"}},"required":["access_token","url"],"description":"Response from POST /webcargoEmbed.","title":"WebcargoEmbedResponse"},"ProFormaLineItemProvenanceEnum1":{"type":"string","enum":["rate_sheet","ad_hoc","pro_forma"],"title":"ProFormaLineItemProvenanceEnum1"},"ProFormaLineItem1":{"type":"object","properties":{"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"created_at_timestamp":{"type":"string","format":"date-time"},"currency_code":{"$ref":"#/components/schemas/BillingCurrencyCodeEnum1"},"description":{"type":"string","minLength":1,"maxLength":32768},"line_item_type":{"$ref":"#/components/schemas/InvoiceLineItemTypeEnum1"},"provenance":{"$ref":"#/components/schemas/ProFormaLineItemProvenanceEnum1"},"quantity":{"type":"number","format":"double","exclusiveMinimum":0},"rate_sheet_id":{"type":["string","null"]},"schema_version":{"type":"integer","default":1},"tax_percentage":{"type":["number","null"],"format":"double","minimum":0},"unit":{"oneOf":[{"$ref":"#/components/schemas/InvoiceLineItemUnitEnum1"},{"type":"null"}]},"unit_price":{"type":"number","format":"double"}},"required":["currency_code","description","line_item_type","provenance","quantity","unit_price"],"description":"Read model. Embedded value-object — no `_id` of its own.","title":"ProFormaLineItem1"},"BidAppendReq":{"type":"object","properties":{"comment":{"type":["string","null"]},"pro_forma_line_items":{"type":"array","items":{"$ref":"#/components/schemas/ProFormaLineItem1"}}},"description":"Slim body for the per-action append routes\n(`counter` / `accept` / `deny` / `withdraw`). The route URL is the\nsource of truth for `action`; `from_lister` is server-derived.","title":"BidAppendReq"},"BidActionEnum":{"type":"string","enum":["submit","counter","accept","deny","withdraw"],"title":"BidActionEnum"},"Bid":{"type":"object","properties":{"acted_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"action":{"$ref":"#/components/schemas/BidActionEnum"},"comment":{"type":["string","null"]},"created_at_timestamp":{"type":"string","format":"date-time"},"from_lister":{"type":"boolean"},"pro_forma_line_items":{"type":"array","items":{"$ref":"#/components/schemas/ProFormaLineItem1"}}},"required":["acted_by_user_id","action","created_at_timestamp","from_lister"],"description":"One entry in a BidThread's history. Immutable once appended.","title":"Bid"},"BidThreadStatusEnum":{"type":"string","enum":["open","accepted","denied","withdrawn"],"title":"BidThreadStatusEnum"},"BidThread1":{"type":"object","properties":{"_id":{"type":"string"},"accepted_pro_forma_line_items":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ProFormaLineItem1"}},"bidder_driver_id":{"type":["string","null"]},"bidder_provider_org_id":{"type":["string","null"]},"bids":{"type":"array","items":{"$ref":"#/components/schemas/Bid"}},"created_at_timestamp":{"type":"string","format":"date-time"},"listing_id":{"type":"string"},"schema_version":{"type":"integer","default":1},"status":{"$ref":"#/components/schemas/BidThreadStatusEnum"},"status_changed_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","bids","created_at_timestamp","listing_id","status","status_changed_at_timestamp"],"title":"BidThread1"},"BidThreadClientCreate1":{"type":"object","properties":{"action":{"$ref":"#/components/schemas/BidActionEnum"},"comment":{"type":["string","null"]},"listing_id":{"type":"string"},"pro_forma_line_items":{"type":"array","items":{"$ref":"#/components/schemas/ProFormaLineItem1"}},"schema_version":{"type":"integer","default":1}},"required":["action","listing_id"],"description":"Opens a thread with its first Bid. Inherits thread metadata from\n`BidThreadBase1` and opening-Bid content from `BidClientCreate1`\n(action, pro_forma_line_items, comment). The server wraps the Bid\ncontent into `bids[0]`, filling `acted_by_user_id` (JWT),\n`from_lister=False`, and `created_at_timestamp`. Bidder identity is\nderived from the listing's audience + the caller's JWT.","title":"BidThreadClientCreate1"},"BidThreadSortByEnum":{"type":"string","enum":["created_at_timestamp","status_changed_at_timestamp"],"title":"BidThreadSortByEnum"},"BidThreadListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BidThread1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"BidThreadListRes"},"BidThreadForListing1":{"type":"object","properties":{"_id":{"type":"string"},"accepted_pro_forma_line_items":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ProFormaLineItem1"}},"bidder_driver":{"oneOf":[{"$ref":"#/components/schemas/Driver1"},{"type":"null"}]},"bidder_driver_id":{"type":["string","null"]},"bidder_provider_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"bidder_provider_org_id":{"type":["string","null"]},"bids":{"type":"array","items":{"$ref":"#/components/schemas/Bid"}},"created_at_timestamp":{"type":"string","format":"date-time"},"listing_id":{"type":"string"},"schema_version":{"type":"integer","default":1},"status":{"$ref":"#/components/schemas/BidThreadStatusEnum"},"status_changed_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","bids","created_at_timestamp","listing_id","status","status_changed_at_timestamp"],"title":"BidThreadForListing1"},"BidThreadForListingListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BidThreadForListing1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"BidThreadForListingListRes"},"DriverBiddingGroup1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"driver_ids":{"type":"array","items":{"type":"string"}},"group_name":{"type":"string"},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"owner_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"}},"required":["_id","created_at_timestamp","created_by_user_id","group_name","last_edited_at_timestamp","owner_org_id","schema_version"],"title":"DriverBiddingGroup1"},"DriverBiddingGroupClientCreate1":{"type":"object","properties":{"group_name":{"type":"string"},"schema_version":{"type":"integer"}},"required":["group_name","schema_version"],"title":"DriverBiddingGroupClientCreate1"},"DriverBiddingGroupSortByEnum":{"type":"string","enum":["created_at_timestamp","last_edited_at_timestamp","group_name"],"title":"DriverBiddingGroupSortByEnum"},"DriverBiddingGroupListItemRes":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"driver_ids":{"type":"array","items":{"type":"string"}},"drivers":{"type":"array","items":{"$ref":"#/components/schemas/Driver1"}},"group_name":{"type":"string"},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"owner_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"}},"required":["_id","created_at_timestamp","created_by_user_id","group_name","last_edited_at_timestamp","owner_org_id","schema_version"],"title":"DriverBiddingGroupListItemRes"},"DriverBiddingGroupListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DriverBiddingGroupListItemRes"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"DriverBiddingGroupListRes"},"ListingAddDriverParticipantsReq":{"type":"object","properties":{"driver_bidding_group_ids":{"type":"array","items":{"type":"string"}},"participant_driver_ids":{"type":"array","items":{"type":"string"}}},"description":"Add drivers / driver bidding groups to a DRIVERS listing.\n\nField names mirror the persisted `Listing1` participant fields.","title":"ListingAddDriverParticipantsReq"},"ListingAddProviderParticipantsReq":{"type":"object","properties":{"org_bidding_group_ids":{"type":"array","items":{"type":"string"}},"participant_provider_org_ids":{"type":"array","items":{"type":"string"}}},"description":"Add providers / org bidding groups to a PROVIDERS listing.\n\nField names mirror the persisted `Listing1` participant fields so callers\nwrite the same key they read off the listing detail.","title":"ListingAddProviderParticipantsReq"},"ListingAudienceEnum":{"type":"string","enum":["providers","drivers"],"title":"ListingAudienceEnum"},"ListingStatusEnum":{"type":"string","enum":["open","awarded","cancelled"],"title":"ListingStatusEnum"},"ListingTypeEnum":{"type":"string","enum":["dispatch","negotiation"],"title":"ListingTypeEnum"},"ListingLimitedForBidder1":{"type":"object","properties":{"_id":{"type":"string"},"accepted_bid_thread_id":{"type":["string","null"]},"audience":{"$ref":"#/components/schemas/ListingAudienceEnum"},"auto_award_first_accept":{"type":"boolean","default":false},"auto_open_priced_bid_threads":{"type":"boolean","default":false},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"driver_bidding_group_ids":{"type":"array","items":{"type":"string"}},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"listing_description":{"type":"string"},"order_id":{"type":"string"},"order_off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"order_short_id":{"type":"string"},"org_bidding_group_ids":{"type":"array","items":{"type":"string"}},"participant_driver_ids":{"type":"array","items":{"type":"string"}},"participant_provider_org_ids":{"type":"array","items":{"type":"string"}},"pro_forma_line_items":{"type":"array","items":{"$ref":"#/components/schemas/ProFormaLineItem1"}},"schema_version":{"type":"integer","default":1},"share_pro_forma_line_items":{"type":"boolean","default":false},"status":{"$ref":"#/components/schemas/ListingStatusEnum"},"task_group_id":{"type":"string"},"task_group_summary_for_bidders":{"type":"string"},"type":{"$ref":"#/components/schemas/ListingTypeEnum"}},"required":["_id","audience","created_at_timestamp","created_by_org_id","created_by_user_id","last_edited_at_timestamp","listing_description","order_id","order_short_id","status","task_group_id","task_group_summary_for_bidders"],"description":"Bidder-facing response shape — same as `Listing1` minus `internal_notes`.\n\nUsed by `get__listings_by_id_v1`, `list_for_provider_bidder/v1`, and\n`list_for_driver_bidder/v1`. Constructed from a validated `Listing1`;\nfield-shape parity is enforced at import time by `limited_model_checker`\nbelow.","title":"ListingLimitedForBidder1"},"ChrtGroundProviderTaskActionEnum1":{"type":"string","enum":["chrt_ground_provider__pickup","chrt_ground_provider__deliver","chrt_ground_provider__recover_from_airline","chrt_ground_provider__tender_to_airline","chrt_ground_provider__consolidate","chrt_ground_provider__hold","chrt_ground_provider__other"],"title":"ChrtGroundProviderTaskActionEnum1"},"CargoOnFlightTaskActionEnum1":{"type":"string","enum":["cargo_on_flight__cargo_received_by_airline","cargo_on_flight__cargo_manifested","cargo_on_flight__cargo_loaded_onto_flight","cargo_on_flight__flight_departed","cargo_on_flight__flight_arrived","cargo_on_flight__cargo_offloaded_from_flight","cargo_on_flight__cargo_cleared_customs","cargo_on_flight__cargo_ready_for_recovery","cargo_on_flight__cargo_recovered"],"title":"CargoOnFlightTaskActionEnum1"},"OnboardCourierTaskActionEnum1":{"type":"string","enum":["obc__cargo_picked_up","obc__courier_thru_security","obc__courier_boarded_flight","obc__courier_deboarded_flight","obc__courier_cleared_customs","obc__cargo_delivered"],"title":"OnboardCourierTaskActionEnum1"},"ListingTaskForBidder1Action":{"oneOf":[{"$ref":"#/components/schemas/ChrtGroundProviderTaskActionEnum1"},{"$ref":"#/components/schemas/CargoOnFlightTaskActionEnum1"},{"$ref":"#/components/schemas/OnboardCourierTaskActionEnum1"}],"title":"ListingTaskForBidder1Action"},"ListingTaskForBidder1":{"type":"object","properties":{"action":{"oneOf":[{"$ref":"#/components/schemas/ListingTaskForBidder1Action"},{"type":"null"}]},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"task_id":{"type":"string"}},"required":["task_id"],"title":"ListingTaskForBidder1"},"ListingTaskGroupForBidder1":{"type":"object","properties":{"mileage_estimated":{"type":["number","null"],"format":"double"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/ListingTaskForBidder1"}}},"title":"ListingTaskGroupForBidder1"},"ListingForBidder1":{"type":"object","properties":{"listing":{"$ref":"#/components/schemas/ListingLimitedForBidder1"},"task_group":{"$ref":"#/components/schemas/ListingTaskGroupForBidder1"}},"required":["listing","task_group"],"title":"ListingForBidder1"},"Listing1":{"type":"object","properties":{"_id":{"type":"string"},"accepted_bid_thread_id":{"type":["string","null"]},"audience":{"$ref":"#/components/schemas/ListingAudienceEnum"},"auto_award_first_accept":{"type":"boolean","default":false},"auto_open_priced_bid_threads":{"type":"boolean","default":false},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"driver_bidding_group_ids":{"type":"array","items":{"type":"string"}},"internal_notes":{"type":["string","null"],"maxLength":524288},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"listing_description":{"type":"string"},"order_id":{"type":"string"},"order_off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"order_short_id":{"type":"string"},"org_bidding_group_ids":{"type":"array","items":{"type":"string"}},"participant_driver_ids":{"type":"array","items":{"type":"string"}},"participant_provider_org_ids":{"type":"array","items":{"type":"string"}},"pro_forma_line_items":{"type":"array","items":{"$ref":"#/components/schemas/ProFormaLineItem1"}},"schema_version":{"type":"integer","default":1},"share_pro_forma_line_items":{"type":"boolean","default":false},"status":{"$ref":"#/components/schemas/ListingStatusEnum"},"task_group_id":{"type":"string"},"task_group_summary_for_bidders":{"type":"string"},"type":{"$ref":"#/components/schemas/ListingTypeEnum"}},"required":["_id","audience","created_at_timestamp","created_by_org_id","created_by_user_id","last_edited_at_timestamp","listing_description","order_id","order_short_id","status","task_group_id","task_group_summary_for_bidders"],"title":"Listing1"},"ListingClientCreate1":{"type":"object","properties":{"audience":{"$ref":"#/components/schemas/ListingAudienceEnum"},"auto_award_first_accept":{"type":"boolean","default":false},"auto_open_priced_bid_threads":{"type":"boolean","default":false},"driver_bidding_group_ids":{"type":"array","items":{"type":"string"}},"internal_notes":{"type":["string","null"],"maxLength":524288},"listing_description":{"type":"string"},"org_bidding_group_ids":{"type":"array","items":{"type":"string"}},"participant_driver_ids":{"type":"array","items":{"type":"string"}},"participant_provider_org_ids":{"type":"array","items":{"type":"string"}},"pro_forma_line_items":{"type":"array","items":{"$ref":"#/components/schemas/ProFormaLineItem1"}},"schema_version":{"type":"integer","default":1},"share_pro_forma_line_items":{"type":"boolean","default":false},"task_group_id":{"type":"string"},"task_group_summary_for_bidders":{"type":"string"},"type":{"$ref":"#/components/schemas/ListingTypeEnum"}},"required":["audience","listing_description","task_group_id","task_group_summary_for_bidders"],"title":"ListingClientCreate1"},"ListingSortByEnum":{"type":"string","enum":["created_at_timestamp","last_edited_at_timestamp"],"title":"ListingSortByEnum"},"ListingListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Listing1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"ListingListRes"},"ListingForBidderListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ListingForBidder1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"ListingForBidderListRes"},"ListingRemoveDriverParticipantsReq":{"type":"object","properties":{"participant_driver_ids":{"type":"array","items":{"type":"string"}}},"description":"Remove drivers from a DRIVERS listing.\n\nField names mirror the persisted `Listing1` participant fields.","title":"ListingRemoveDriverParticipantsReq"},"ListingRemoveProviderParticipantsReq":{"type":"object","properties":{"participant_provider_org_ids":{"type":"array","items":{"type":"string"}}},"description":"Remove providers from a PROVIDERS listing.\n\nField names mirror the persisted `Listing1` participant fields.","title":"ListingRemoveProviderParticipantsReq"},"ListingClientUpdate1":{"type":"object","properties":{"auto_award_first_accept":{"type":["boolean","null"]},"internal_notes":{"type":["string","null"],"maxLength":524288},"internal_notes__set_to_None":{"type":"boolean","default":false},"listing_description":{"type":["string","null"]},"pro_forma_line_items":{"type":"array","items":{"$ref":"#/components/schemas/ProFormaLineItem1"}},"share_pro_forma_line_items":{"type":["boolean","null"]},"type":{"oneOf":[{"$ref":"#/components/schemas/ListingTypeEnum"},{"type":"null"}]}},"description":"Lister-initiated partial edits while `status == OPEN`. Terminal-state edits\nare rejected at the route layer.\n\nNot editable here (see dedicated routes):\n- Audience — `add_participants` / `remove_participants`\n- Status — `cancel` (and awards flow through BidThread confirm)\n- `task_group_id` / `order_id` — immutable bindings\n- Snapshot bookkeeping — `participant_*`, `accepted_bid_thread_id`, audit fields","title":"ListingClientUpdate1"},"OrgBiddingGroup1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"group_name":{"type":"string"},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"owner_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org_ids":{"type":"array","items":{"type":"string"}},"schema_version":{"type":"integer"}},"required":["_id","created_at_timestamp","created_by_user_id","group_name","last_edited_at_timestamp","owner_org_id","schema_version"],"title":"OrgBiddingGroup1"},"OrgBiddingGroupClientCreate1":{"type":"object","properties":{"group_name":{"type":"string","minLength":1,"maxLength":255},"schema_version":{"type":"integer"}},"required":["group_name","schema_version"],"title":"OrgBiddingGroupClientCreate1"},"OrgBiddingGroupSortByEnum":{"type":"string","enum":["created_at_timestamp","last_edited_at_timestamp","group_name"],"title":"OrgBiddingGroupSortByEnum"},"OrgBiddingGroupListItemRes":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"group_name":{"type":"string"},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"owner_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org_ids":{"type":"array","items":{"type":"string"}},"providers":{"type":"array","items":{"$ref":"#/components/schemas/OrgPublicData1"}},"schema_version":{"type":"integer"}},"required":["_id","created_at_timestamp","created_by_user_id","group_name","last_edited_at_timestamp","owner_org_id","schema_version"],"title":"OrgBiddingGroupListItemRes"},"OrgBiddingGroupListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrgBiddingGroupListItemRes"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OrgBiddingGroupListRes"},"NotificationEventsForAdHocEnum":{"type":"string","enum":["shipping.order.staged","shipping.order.completed","tracking.session.geofence_entered"],"description":"Limited notification events for ad-hoc per-subject notifications.\n\nSet per order or per tracking session for any contact.\nLimited scope since it can go  outside the org, e.g. share order completion but probably not billing events","title":"NotificationEventsForAdHocEnum"},"NotificationIntentAdHocClientCreate1":{"type":"object","properties":{"contact_id":{"type":"string"},"email_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForAdHocEnum"}},"push_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForAdHocEnum"}},"schema_version":{"type":"integer"},"sms_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForAdHocEnum"}}},"required":["contact_id","schema_version"],"title":"NotificationIntentAdHocClientCreate1"},"NotificationIntentAdHoc1":{"type":"object","properties":{"_id":{"type":"string"},"contact_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"email_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForAdHocEnum"}},"order_id":{"type":["string","null"]},"push_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForAdHocEnum"}},"schema_version":{"type":"integer"},"session_id":{"type":["string","null"]},"sms_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForAdHocEnum"}}},"required":["_id","contact_id","created_at_timestamp","created_by_org_id","created_by_user_id","schema_version"],"title":"NotificationIntentAdHoc1"},"NotificationAdHocListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/NotificationIntentAdHoc1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"NotificationAdHocListRes"},"NotificationChannelsEnum":{"type":"string","enum":["email","sms","push"],"description":"Notification delivery channels.","title":"NotificationChannelsEnum"},"NotificationEventsForOrgsEnum":{"type":"string","enum":["shipping.order.staged","shipping.order.completed","shipping.order.cancelled","shipping.task_group.provider_assigned","shipping.task_group.in_progress","shipping.task_group.file_added","shipping.task_group.driver_assigned","shipping.task_group.message","shipping.task_group.tasks_ordering_updated","shipping.task_group.flight_info_updated","shipping.task_group.tracking_sharing_updated","shipping.cargo.tracking_sharing_updated","shipping.task.added","shipping.task.attempted","shipping.task.completed","shipping.task.skipped","shipping.task.deleted","shipping.task.task_artifact_completed","shipping.task.executor_org_note_added","listing.listing.driver_invited_to_bid","listing.listing.provider_invited_to_bid","listing.bid_thread.action_added","operations.order.operator_assigned","operations.order.department_assigned","operations.order_internal_messages.message","operations.order_internal_messages.file_added","billing.invoice.approved","tracking.session.geofence_entered","shipping_integration.order.staged","shipping_integration.order.in_progress","shipping_integration.order.completed","shipping_integration.order.exception","shipping_integration.order.cancelled"],"description":"All notification events available at the org level.\nControlled by Groups that admins configure.\nIndividual users in the group can opt out.","title":"NotificationEventsForOrgsEnum"},"NotificationGroupClientCreate1":{"type":"object","properties":{"group_name":{"type":"string"},"schema_version":{"type":"integer"}},"required":["group_name","schema_version"],"title":"NotificationGroupClientCreate1"},"NotificationGroup1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"email_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForOrgsEnum"}},"group_name":{"type":"string"},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"push_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForOrgsEnum"}},"schema_version":{"type":"integer"},"sms_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForOrgsEnum"}},"user_ids":{"type":"array","items":{"type":"string"}},"user_ids_opted_out":{"type":"array","items":{"type":"string"}}},"required":["_id","created_at_timestamp","group_name","last_edited_at_timestamp","org_id","schema_version"],"title":"NotificationGroup1"},"NotificationGroupLimitedForDriver1":{"type":"object","properties":{"_id":{"type":"string"},"email_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForOrgsEnum"}},"group_name":{"type":"string"},"is_opted_out":{"type":"boolean"},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"push_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForOrgsEnum"}},"schema_version":{"type":"integer"},"sms_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForOrgsEnum"}}},"required":["_id","email_events","group_name","is_opted_out","last_edited_at_timestamp","org_id","push_events","schema_version","sms_events"],"description":"Response model for non-admin views (e.g., drivers).\n\nExcludes sensitive membership fields:\n- created_at_timestamp\n- user_ids\n- user_ids_opted_out\n\nIncludes computed fields:\n- is_opted_out: True if the requesting user is in user_ids_opted_out","title":"NotificationGroupLimitedForDriver1"},"NotificationGroupListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/NotificationGroup1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"NotificationGroupListRes"},"NotificationGroupUserListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/NotificationGroupLimitedForDriver1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"NotificationGroupUserListRes"},"NotificationPreviewAudienceEnum":{"type":"string","enum":["whole_order","executor","driver"],"title":"NotificationPreviewAudienceEnum"},"NotificationPreviewEmailRes":{"type":"object","properties":{"html":{"type":"string"},"preview_text":{"type":"string"},"subject":{"type":"string"},"text":{"type":"string"}},"required":["html","preview_text","subject","text"],"title":"NotificationPreviewEmailRes"},"NotificationPreviewPushRes":{"type":"object","properties":{"body":{"type":"string"},"title":{"type":"string"}},"required":["body","title"],"title":"NotificationPreviewPushRes"},"NotificationPreviewSmsRes":{"type":"object","properties":{"body":{"type":"string"}},"required":["body"],"title":"NotificationPreviewSmsRes"},"NotificationPreviewRes":{"type":"object","properties":{"email":{"oneOf":[{"$ref":"#/components/schemas/NotificationPreviewEmailRes"},{"type":"null"}]},"previewable":{"type":"boolean"},"push":{"oneOf":[{"$ref":"#/components/schemas/NotificationPreviewPushRes"},{"type":"null"}]},"sms":{"oneOf":[{"$ref":"#/components/schemas/NotificationPreviewSmsRes"},{"type":"null"}]}},"required":["previewable"],"title":"NotificationPreviewRes"},"NotificationEventsForUsersEnum":{"type":"string","enum":["shipping.order.staged","shipping.order.completed","shipping.order.cancelled","shipping.task_group.driver_assigned","shipping.task_group.message","shipping.task_group.tasks_ordering_updated","shipping.task_group.flight_info_updated","shipping.task_group.tracking_sharing_updated","shipping.cargo.tracking_sharing_updated","shipping.task.executor_org_note_added","listing.listing.driver_invited_to_bid","listing.bid_thread.action_added","operations.order.operator_assigned","operations.order.department_assigned","operations.order_internal_messages.message","operations.order_internal_messages.file_added","billing.invoice.approved","tracking.session.geofence_entered","shipping_integration.order.staged","shipping_integration.order.in_progress","shipping_integration.order.completed","shipping_integration.order.exception","shipping_integration.order.cancelled"],"description":"Notification events available for user-level opt-in preferences.\n\nThese are events that relate to a user's direct involvement:\n- Order events: via `order.created_by_user_id`\n- TaskGroup events: via `task_group.driver_id`","title":"NotificationEventsForUsersEnum"},"NotificationUserPreferences1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"email_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForUsersEnum"}},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"push_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForUsersEnum"}},"schema_version":{"type":"integer"},"sms_events":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForUsersEnum"}},"user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["_id","created_at_timestamp","last_edited_at_timestamp","schema_version","user_id"],"title":"NotificationUserPreferences1"},"UserNotificationPreferencesUpdateRequest":{"type":"object","properties":{"add_events_by_channel":{"type":["object","null"],"additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForUsersEnum"}}},"opt_in_to_all_on_channels":{"type":["array","null"],"items":{"$ref":"#/components/schemas/NotificationChannelsEnum"}},"opt_out_of_all_on_channels":{"type":["array","null"],"items":{"$ref":"#/components/schemas/NotificationChannelsEnum"}},"remove_events_by_channel":{"type":["object","null"],"additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForUsersEnum"}}},"set_events_by_channel":{"type":["object","null"],"additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/NotificationEventsForUsersEnum"}}}},"description":"Update notification preferences in a single request.\n\nPriority/semantics (applied in order):\n1. opt_out_of_all_on_channels - clears all events for specified channels\n2. opt_in_to_all_on_channels - sets all events for specified channels\n3. set_events_by_channel - replaces entire event list for specified channels\n4. add_events_by_channel - adds specific events to specified channels\n5. remove_events_by_channel - removes specific events from specified channels\n\nFields:\n- set_events_by_channel: Replace entire event list for channels.\n  Empty list = remove all events for that channel.\n- add_events_by_channel: Add specific events to channels (additive).\n- remove_events_by_channel: Remove specific events from channels (subtractive).\n- opt_in_to_all_on_channels: Opt into all available events for the specified channels.\n- opt_out_of_all_on_channels: Opt out of all events for the specified channels.","title":"UserNotificationPreferencesUpdateRequest"},"WebhookAppPortalAccessRes":{"type":"object","properties":{"expires_at":{"type":"string","format":"date-time"},"url":{"type":"string"}},"required":["expires_at","url"],"description":"Response containing the Svix App Portal magic link and expiry info.","title":"WebhookAppPortalAccessRes"},"DepartmentSortByEnum":{"type":"string","enum":["created_at","department_type"],"title":"DepartmentSortByEnum"},"DepartmentTypeEnum":{"type":"string","enum":["aerospace","agriculture","automotive","chemicals","electronics","energy","food_and_beverage","general","healthcare","industrials","life_sciences","live_animals","manufacturing","marine","pharmaceutical","radiopharma","retail","semiconductor"],"title":"DepartmentTypeEnum"},"Department1":{"type":"object","properties":{"_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"department_type":{"$ref":"#/components/schemas/DepartmentTypeEnum"},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"name":{"type":"string"},"operator_user_ids":{"type":"array","items":{"type":"string"}},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"short_id":{"type":"string"}},"required":["_id","created_at","created_by_user_id","department_type","name","org_id","schema_version","short_id"],"title":"Department1"},"DepartmentListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Department1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"DepartmentListRes"},"DepartmentTypeaheadFieldEnum":{"type":"string","enum":["name","short_id"],"title":"DepartmentTypeaheadFieldEnum"},"DepartmentTypeaheadValue":{"type":"object","properties":{"department_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["department_ids","value"],"title":"DepartmentTypeaheadValue"},"DepartmentTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/DepartmentTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/DepartmentTypeaheadValue"}}},"required":["type","values"],"title":"DepartmentTypeaheadResult"},"DepartmentClientCreate1":{"type":"object","properties":{"department_type":{"$ref":"#/components/schemas/DepartmentTypeEnum"},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"name":{"type":"string"},"operator_user_ids":{"type":"array","items":{"type":"string"}},"schema_version":{"type":"integer"}},"required":["department_type","name","schema_version"],"title":"DepartmentClientCreate1"},"DepartmentClientUpdate1":{"type":"object","properties":{"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"location__set_to_None":{"type":"boolean","default":false},"name":{"type":["string","null"]}},"title":"DepartmentClientUpdate1"},"DeadlineAnchorEnum":{"type":"string","enum":["from_first_task","from_previous_task"],"description":"What an entry's `deadline_offset_seconds` is measured from.\n\nResolved in a single forward pass at apply time (see module docstring).","title":"DeadlineAnchorEnum"},"OperationsTaskTypeEnum":{"type":"string","enum":["review_order_details","flight_check","facility_check","weather_check","book_cargo","customs","track_and_verify","contact_customer","contact_agent","contact_airline","contact_other","finalize_billing","custom","other"],"description":"Coarse functional buckets a dispatcher batch-processes (powers the\nper-type functional-queue index). Granular SOP specifics live in the Task's\n`title`/`description`, not here.\n\nOrdered roughly along the shipment lifecycle (review -> research -> book ->\ntrack/verify -> contact -> billing). The buckets are the distinct *modes of\nwork* an operator sits down and batches; the exact SOP step (e.g. \"Send\nShipping Label\", \"CBC Call\", \"Get Pack Time\") is captured in the title.\n\nContact is split by *who* (customer, agent, airline, other), not by\n*channel* (call vs. email) — the recipient is what a dispatcher batches\naround, and the channel is captured in title/description detail.","title":"OperationsTaskTypeEnum"},"OperationsTaskListEntryClientCreate1":{"type":"object","properties":{"deadline_anchor":{"$ref":"#/components/schemas/DeadlineAnchorEnum"},"deadline_offset_seconds":{"type":"integer","default":1200},"description":{"type":"string","maxLength":8192},"task_type":{"$ref":"#/components/schemas/OperationsTaskTypeEnum"},"title":{"type":"string","maxLength":512}},"required":["description","task_type","title"],"description":"Entry content the client supplies — at list-create time and via the add /\nedit entry routes. Carries no identity: the server assigns the `uuid`.","title":"OperationsTaskListEntryClientCreate1"},"OperationsTaskListReorderEntries1":{"type":"object","properties":{"entry_uuids":{"type":"array","items":{"type":"string"}}},"description":"Request body for reordering a Task List's existing entries.\n\n`entry_uuids` must be an exact permutation of the list's current entry uuids\n— every uuid present, no extras, no duplicates — so a reorder can never drop,\nadd, or mutate an entry. The stored entries are reordered to match.","title":"OperationsTaskListReorderEntries1"},"OperationsTaskListSortByEnum":{"type":"string","enum":["created_at_timestamp","updated_at_timestamp","name"],"title":"OperationsTaskListSortByEnum"},"OperationsTaskListEntry1":{"type":"object","properties":{"deadline_anchor":{"$ref":"#/components/schemas/DeadlineAnchorEnum"},"deadline_offset_seconds":{"type":"integer","default":1200},"description":{"type":"string","maxLength":8192},"task_type":{"$ref":"#/components/schemas/OperationsTaskTypeEnum"},"title":{"type":"string","maxLength":512},"uuid":{"type":"string"}},"required":["description","task_type","title"],"description":"A stored Task List entry: client content plus a server-assigned stable\n`uuid`. The `uuid` keys the edit / remove / reorder routes (entries are not\nunique by `task_type` — a list can repeat a type).","title":"OperationsTaskListEntry1"},"OperationsTaskList1":{"type":"object","properties":{"_id":{"type":"string"},"archived":{"type":"boolean","default":false},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"description":{"type":["string","null"],"maxLength":8192},"entries":{"type":"array","items":{"$ref":"#/components/schemas/OperationsTaskListEntry1"}},"name":{"type":"string","maxLength":512},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","created_at_timestamp","created_by_user_id","name","org_id","schema_version","updated_at_timestamp"],"title":"OperationsTaskList1"},"OperationsTaskListListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OperationsTaskList1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OperationsTaskListListRes"},"OperationsTaskListRemoveFromOrderRes1":{"type":"object","properties":{"deleted_count":{"type":"integer"},"kept_count":{"type":"integer"}},"required":["deleted_count","kept_count"],"description":"Result of removing a Task List's materialized tasks from an Order.\n\nOnly untouched (`not_started`) tasks are deleted; tasks an operator has\nstarted, completed, skipped, or cancelled are preserved and reported as `kept_count`.","title":"OperationsTaskListRemoveFromOrderRes1"},"OperationsTaskListTypeaheadFieldEnum":{"type":"string","enum":["name"],"title":"OperationsTaskListTypeaheadFieldEnum"},"OperationsTaskListTypeaheadValue":{"type":"object","properties":{"operations_task_list_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["operations_task_list_ids","value"],"title":"OperationsTaskListTypeaheadValue"},"OperationsTaskListTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/OperationsTaskListTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/OperationsTaskListTypeaheadValue"}}},"required":["type","values"],"title":"OperationsTaskListTypeaheadResult"},"OperationsTaskListClientCreate1":{"type":"object","properties":{"description":{"type":["string","null"],"maxLength":8192},"entries":{"type":"array","items":{"$ref":"#/components/schemas/OperationsTaskListEntryClientCreate1"}},"name":{"type":"string","maxLength":512},"schema_version":{"type":"integer"}},"required":["name","schema_version"],"title":"OperationsTaskListClientCreate1"},"OperationsTaskListClientUpdate1":{"type":"object","properties":{"description":{"type":["string","null"],"maxLength":8192},"description__set_to_None":{"type":"boolean","default":false},"name":{"type":["string","null"],"maxLength":512}},"description":"Patches scalar fields on a Task List.\n\nDoes *not* touch `entries` — use the entry routes (add / edit / remove /\nreorder). Does *not* touch `archived` — use the archive / unarchive routes.","title":"OperationsTaskListClientUpdate1"},"OperationsTaskAddCommentReq1":{"type":"object","properties":{"comment":{"type":"string","maxLength":8192}},"required":["comment"],"title":"OperationsTaskAddCommentReq1"},"OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1":{"type":"object","properties":{"operations_task_ids":{"type":"array","items":{"type":"string"}},"time_delta":{"type":"string","format":"duration"}},"required":["operations_task_ids","time_delta"],"title":"OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1"},"OperationsTasksDeadlineTimestampsUpdateRes1":{"type":"object","properties":{"updated_count":{"type":"integer","description":"How many requested tasks were found in the caller's org and updated; a lower count means missing or cross-org task ids were skipped."}},"required":["updated_count"],"title":"OperationsTasksDeadlineTimestampsUpdateRes1"},"OperationsTaskSortByEnum":{"type":"string","enum":["deadline_timestamp","completed_at_timestamp"],"title":"OperationsTaskSortByEnum"},"OperationsTaskStatusEnum":{"type":"string","enum":["not_started","in_progress","blocked","completed","skipped","cancelled"],"description":"Operator-driven lifecycle of an operations task.\n\nManually driven by operators for now (no automatic transitions). Kept\nstructurally parallel to the Check status model in anticipation of the\neventual Task <-> Check merge.","title":"OperationsTaskStatusEnum"},"OrgMemberDetails":{"type":"object","properties":{"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"role":{"$ref":"#/components/schemas/OrgRoleEnum"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["first_name","last_name","role","user_id"],"title":"OrgMemberDetails"},"OperationsTaskComment1":{"type":"object","properties":{"comment":{"type":"string","maxLength":8192},"id":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["comment","timestamp","user_id"],"title":"OperationsTaskComment1"},"OperationsTask1":{"type":"object","properties":{"_id":{"type":"string"},"assigned_user_ids":{"type":"array","items":{"type":"string"}},"comments":{"type":"array","items":{"$ref":"#/components/schemas/OperationsTaskComment1"}},"completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"completed_by_user_id":{"type":["string","null"]},"deadline_timestamp":{"type":"string","format":"date-time"},"department_id":{"type":["string","null"]},"description":{"type":"string","maxLength":8192},"entry_tag":{"type":["string","null"]},"order_id":{"type":"string"},"order_off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"order_short_id":{"type":"string"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"source_task_list_id":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/OperationsTaskStatusEnum"},"task_type":{"$ref":"#/components/schemas/OperationsTaskTypeEnum"},"title":{"type":"string","maxLength":512}},"required":["_id","description","order_id","order_short_id","org_id","schema_version","task_type","title"],"title":"OperationsTask1"},"OperationsTaskExpandedListItem":{"type":"object","properties":{"assigned_users":{"type":"array","items":{"$ref":"#/components/schemas/OrgMemberDetails"}},"department":{"oneOf":[{"$ref":"#/components/schemas/Department1"},{"type":"null"}]},"operations_task":{"$ref":"#/components/schemas/OperationsTask1"},"operations_task_list":{"oneOf":[{"$ref":"#/components/schemas/OperationsTaskList1"},{"type":"null"}]}},"required":["assigned_users","operations_task"],"title":"OperationsTaskExpandedListItem"},"OperationsTaskExpandedListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OperationsTaskExpandedListItem"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OperationsTaskExpandedListRes"},"OperationsTaskListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OperationsTask1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OperationsTaskListRes"},"OperationsTaskDeadlineTimestampUpdate1":{"type":"object","properties":{"deadline_timestamp":{"type":"string","format":"date-time"},"operations_task_id":{"type":"string"}},"required":["deadline_timestamp","operations_task_id"],"title":"OperationsTaskDeadlineTimestampUpdate1"},"OperationsTasksSetDeadlineTimestampsReq1":{"type":"object","properties":{"updates":{"type":"array","items":{"$ref":"#/components/schemas/OperationsTaskDeadlineTimestampUpdate1"}}},"required":["updates"],"title":"OperationsTasksSetDeadlineTimestampsReq1"},"OperationsTasksSetStatusReq1":{"type":"object","properties":{"operations_task_ids":{"type":"array","items":{"type":"string"}},"status":{"$ref":"#/components/schemas/OperationsTaskStatusEnum"}},"required":["operations_task_ids","status"],"title":"OperationsTasksSetStatusReq1"},"OperationsTasksStatusUpdateRes1":{"type":"object","properties":{"updated_count":{"type":"integer","description":"How many requested tasks were found in the caller's org and updated; a lower count means missing or cross-org task ids were skipped."}},"required":["updated_count"],"title":"OperationsTasksStatusUpdateRes1"},"OperationsTaskTypeaheadFieldEnum":{"type":"string","enum":["entry_tag"],"title":"OperationsTaskTypeaheadFieldEnum"},"OperationsTaskTypeaheadValue":{"type":"object","properties":{"operations_task_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["operations_task_ids","value"],"title":"OperationsTaskTypeaheadValue"},"OperationsTaskTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/OperationsTaskTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/OperationsTaskTypeaheadValue"}}},"required":["type"],"title":"OperationsTaskTypeaheadResult"},"OperationsTasksUpdateDepartmentManyReq":{"type":"object","properties":{"department_id":{"type":["string","null"]},"department_id__set_to_None":{"type":"boolean","default":false},"operations_task_ids":{"type":"array","items":{"type":"string"}}},"required":["operations_task_ids"],"title":"OperationsTasksUpdateDepartmentManyReq"},"OperationsTasksUpdateDepartmentManyRes":{"type":"object","properties":{"updated_count":{"type":"integer","description":"Matched tasks in the caller's org, including unchanged assignments; missing and other-org tasks are skipped."}},"required":["updated_count"],"title":"OperationsTasksUpdateDepartmentManyRes"},"OperationsTaskClientCreate1":{"type":"object","properties":{"assigned_user_ids":{"type":"array","items":{"type":"string"}},"deadline_timestamp":{"type":"string","format":"date-time"},"department_id":{"type":["string","null"]},"description":{"type":"string","maxLength":8192},"order_id":{"type":"string"},"schema_version":{"type":"integer"},"task_type":{"$ref":"#/components/schemas/OperationsTaskTypeEnum"},"title":{"type":"string","maxLength":512}},"required":["description","order_id","schema_version","task_type","title"],"title":"OperationsTaskClientCreate1"},"OperationsTaskClientUpdate1":{"type":"object","properties":{"assigned_user_ids":{"type":"array","items":{"type":"string"}},"deadline_timestamp":{"type":["string","null"],"format":"date-time"},"department_id":{"type":["string","null"]},"department_id__set_to_None":{"type":"boolean","default":false},"description":{"type":["string","null"],"maxLength":8192},"entry_tag":{"type":["string","null"]},"entry_tag__set_to_None":{"type":"boolean","default":false},"task_type":{"oneOf":[{"$ref":"#/components/schemas/OperationsTaskTypeEnum"},{"type":"null"}]},"title":{"type":["string","null"],"maxLength":512}},"title":"OperationsTaskClientUpdate1"},"OrderInternalMessagesAddMessageReq":{"type":"object","properties":{"message":{"type":"string","maxLength":524288}},"required":["message"],"title":"OrderInternalMessagesAddMessageReq"},"OrderInternalMessage1":{"type":"object","properties":{"id":{"type":"string"},"message":{"type":"string","maxLength":524288},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"timestamp":{"type":"string","format":"date-time"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["message","org_id","timestamp","user_id"],"title":"OrderInternalMessage1"},"OrderInternalMessages1":{"type":"object","properties":{"_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/OrderInternalMessage1"}},"order_id":{"type":"string"},"order_internal_message_s3_object_metadata_ids":{"type":"array","items":{"type":"string"}},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"}},"required":["_id","created_at","order_id","org_id","schema_version"],"title":"OrderInternalMessages1"},"OrderInternalMessagesMarkReadReq":{"type":"object","properties":{"last_read_message_timestamp":{"type":"string","format":"date-time"}},"required":["last_read_message_timestamp"],"title":"OrderInternalMessagesMarkReadReq"},"OrderInternalMessagesReadState1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"last_read_message_timestamp":{"type":"string","format":"date-time"},"order_internal_messages_id":{"type":"string"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["_id","created_at_timestamp","last_read_message_timestamp","order_internal_messages_id","org_id","schema_version","user_id"],"title":"OrderInternalMessagesReadState1"},"OrderInternalMessagesReadStateExpanded":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"last_read_message_timestamp":{"type":"string","format":"date-time"},"order_internal_messages_id":{"type":"string"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"},"user_name":{"type":["string","null"]}},"required":["_id","created_at_timestamp","last_read_message_timestamp","order_internal_messages_id","org_id","schema_version","user_id"],"title":"OrderInternalMessagesReadStateExpanded"},"OrderInternalMessagesReadStateListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderInternalMessagesReadStateExpanded"}}},"required":["items"],"title":"OrderInternalMessagesReadStateListRes"},"OrderInternalMessageWithSenderName":{"type":"object","properties":{"id":{"type":"string"},"message":{"type":"string","maxLength":524288},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"timestamp":{"type":"string","format":"date-time"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"},"user_name":{"type":["string","null"]}},"required":["message","org_id","timestamp","user_id"],"title":"OrderInternalMessageWithSenderName"},"OrderInternalMessageThreadListItem":{"type":"object","properties":{"last_message":{"$ref":"#/components/schemas/OrderInternalMessageWithSenderName"},"message_count":{"type":"integer"},"order_id":{"type":"string"},"order_off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"order_short_id":{"type":"string"},"order_status":{"$ref":"#/components/schemas/OrderStatusEnum1"},"unread_count":{"type":"integer"}},"required":["last_message","message_count","order_id","order_short_id","order_status","unread_count"],"title":"OrderInternalMessageThreadListItem"},"OrderInternalMessageThreadListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderInternalMessageThreadListItem"}},"total_count":{"type":"integer"},"total_unread_count":{"type":"integer"}},"required":["items","total_count","total_unread_count"],"title":"OrderInternalMessageThreadListRes"},"OrderInternalMessageS3ObjectMetadata1":{"type":"object","properties":{"_id":{"type":"string"},"ai_generated_description":{"type":["string","null"]},"blurhash":{"type":["string","null"]},"content_type":{"type":["string","null"],"description":"MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf')"},"filename":{"type":["string","null"],"description":"Original filename of the uploaded file"},"order_internal_messages_id":{"type":"string"},"s3_key_prefix":{"type":"string","enum":["operations/order_internal_message_s3_object_metadata"],"default":"operations/order_internal_message_s3_object_metadata"},"schema_version":{"type":"integer"},"uploaded_at_timestamp":{"type":"string","format":"date-time"},"uploaded_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"uploaded_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"user_generated_description":{"type":["string","null"]}},"required":["_id","order_internal_messages_id","schema_version","uploaded_at_timestamp","uploaded_by_org_id","uploaded_by_user_id"],"title":"OrderInternalMessageS3ObjectMetadata1"},"Get__order_internal_messages_s3_objects_v1RequestNotFoundError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__order_internal_messages_s3_objects_v1RequestNotFoundError"},"Get__order_internal_messages_s3_objects_v1RequestUnprocessableEntityError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__order_internal_messages_s3_objects_v1RequestUnprocessableEntityError"},"OrgInfoResponse":{"type":"object","properties":{"admin_delete_enabled":{"type":"boolean","default":false},"created_at":{"type":["integer","null"]},"has_image":{"type":"boolean","default":false},"id":{"type":"string","description":"Must be a string starting with `org_`"},"image_url":{"type":["string","null"]},"max_allowed_memberships":{"type":"integer","default":0},"members_count":{"type":["integer","null"]},"name":{"type":"string"},"public_metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"slug":{"type":["string","null"]},"updated_at":{"type":["integer","null"]}},"required":["id","name","public_metadata"],"title":"OrgInfoResponse"},"OrgMemberSortByEnum":{"type":"string","enum":["first_name","last_name"],"title":"OrgMemberSortByEnum"},"OrgMemberListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrgMemberDetails"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OrgMemberListRes"},"OrgMemberTypeaheadFieldEnum":{"type":"string","enum":["first_name","last_name"],"title":"OrgMemberTypeaheadFieldEnum"},"OrgMemberTypeaheadValue":{"type":"object","properties":{"user_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["user_ids","value"],"title":"OrgMemberTypeaheadValue"},"OrgMemberTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/OrgMemberTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/OrgMemberTypeaheadValue"}}},"required":["type","values"],"title":"OrgMemberTypeaheadResult"},"SetupOrgReq":{"type":"object","properties":{"description":{"type":["string","null"],"maxLength":524288},"handle":{"type":["string","null"],"pattern":"^@[a-zA-Z0-9_-]+$","minLength":2,"maxLength":30},"name":{"type":"string","minLength":1,"maxLength":255},"org_type":{"$ref":"#/components/schemas/OrgTypeEnum"}},"required":["name","org_type"],"title":"SetupOrgReq"},"AccountClientCreate1":{"type":"object","properties":{"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"name":{"type":"string","minLength":1,"maxLength":255},"off_chrt_org_data_id":{"type":["string","null"]},"org_id":{"type":["string","null"]},"schema_version":{"type":"integer"}},"required":["name","schema_version"],"title":"AccountClientCreate1"},"AccountSortByEnum":{"type":"string","enum":["name"],"title":"AccountSortByEnum"},"AccountListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Account1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"AccountListRes"},"AccountTypeaheadFieldEnum":{"type":"string","enum":["name"],"title":"AccountTypeaheadFieldEnum"},"AccountTypeaheadValue":{"type":"object","properties":{"account_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["account_ids","value"],"title":"AccountTypeaheadValue"},"AccountTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/AccountTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/AccountTypeaheadValue"}}},"required":["type","values"],"title":"AccountTypeaheadResult"},"AccountClientUpdate1":{"type":"object","properties":{"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"location__set_to_None":{"type":"boolean","default":false},"name":{"type":["string","null"],"minLength":1,"maxLength":255}},"description":"Updates account name and location; creation metadata and shipper association are immutable.","title":"AccountClientUpdate1"},"AirWaybillStockNumbersAddReq":{"type":"object","properties":{"awb_numbers":{"type":"array","items":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}}},"required":["awb_numbers"],"title":"AirWaybillStockNumbersAddReq"},"AirWaybillStockNumberStatusEnum1":{"type":"string","enum":["available","reserved","used","void"],"title":"AirWaybillStockNumberStatusEnum1"},"AirWaybillStockNumber1":{"type":"object","properties":{"_id":{"type":"string"},"awb_number":{"type":"string","pattern":"^\\d{3}-\\d{8}$","description":"IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'."},"cargo_on_flight_booking_id":{"type":["string","null"]},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"status":{"$ref":"#/components/schemas/AirWaybillStockNumberStatusEnum1"},"status_changed_at_timestamp":{"type":"string","format":"date-time"},"status_changed_by_user_id":{"type":["string","null"]},"status_note":{"type":["string","null"]}},"required":["_id","awb_number","created_at_timestamp","created_by_user_id","owned_by_org_id","schema_version","status","status_changed_at_timestamp"],"title":"AirWaybillStockNumber1"},"AirWaybillStockNumbersAddRes":{"type":"object","properties":{"added":{"type":"array","items":{"$ref":"#/components/schemas/AirWaybillStockNumber1"}},"already_in_stock_awb_numbers":{"type":"array","items":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}}},"required":["added","already_in_stock_awb_numbers"],"title":"AirWaybillStockNumbersAddRes"},"AirWaybillStockNumberSortByEnum":{"type":"string","enum":["awb_number","status_changed_at_timestamp","created_at_timestamp"],"title":"AirWaybillStockNumberSortByEnum"},"AirWaybillStockNumberListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AirWaybillStockNumber1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"AirWaybillStockNumberListRes"},"AirWaybillStockNumbersMarkAvailableReq":{"type":"object","properties":{"awb_numbers":{"type":"array","items":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}}},"required":["awb_numbers"],"title":"AirWaybillStockNumbersMarkAvailableReq"},"AirWaybillStockNumbersMarkUsedReq":{"type":"object","properties":{"awb_numbers":{"type":"array","items":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}},"status_note":{"type":["string","null"],"minLength":1}},"required":["awb_numbers"],"title":"AirWaybillStockNumbersMarkUsedReq"},"AirWaybillStockNumbersSummaryRes":{"type":"object","properties":{"available_count":{"type":"integer"},"awb_prefix":{"type":"string"},"reserved_count":{"type":"integer"},"used_count":{"type":"integer"},"void_count":{"type":"integer"}},"required":["available_count","awb_prefix","reserved_count","used_count","void_count"],"title":"AirWaybillStockNumbersSummaryRes"},"AirWaybillStockNumbersVoidReq":{"type":"object","properties":{"awb_numbers":{"type":"array","items":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}},"status_note":{"type":["string","null"],"minLength":1}},"required":["awb_numbers"],"title":"AirWaybillStockNumbersVoidReq"},"AirlineCargoAccountSortByEnum":{"type":"string","enum":["created_at_timestamp","name"],"title":"AirlineCargoAccountSortByEnum"},"AirlineCargoAccountIntegrationEnum1":{"type":"string","enum":["air_canada"],"title":"AirlineCargoAccountIntegrationEnum1"},"AirlineCargoAccount1":{"type":"object","properties":{"_id":{"type":"string"},"account_number":{"type":"string"},"archived_at_timestamp":{"type":["string","null"],"format":"date-time"},"cargo_on_flight_integration":{"$ref":"#/components/schemas/AirlineCargoAccountIntegrationEnum1"},"created_at_timestamp":{"type":"string","format":"date-time"},"name":{"type":"string"},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"schema_version":{"type":"integer"},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","account_number","cargo_on_flight_integration","created_at_timestamp","name","owned_by_org_id","owned_by_user_id","schema_version","updated_at_timestamp"],"title":"AirlineCargoAccount1"},"AirlineCargoAccountListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AirlineCargoAccount1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"AirlineCargoAccountListRes"},"AirlineCargoAccountClientUpdate1":{"type":"object","properties":{"name":{"type":["string","null"],"minLength":1}},"title":"AirlineCargoAccountClientUpdate1"},"OrgComplianceDocumentTypeEnum1":{"type":"string","enum":["security_threat_assessment","insurance","indirect_air_carrier","customs_broker","gdp","authorized_economic_operator","hipaa","chain_of_custody","auto_liability_insurance","cargo_insurance","general_liability_insurance","workers_comp_insurance"],"title":"OrgComplianceDocumentTypeEnum1"},"OrgComplianceDocumentClientCreate1":{"type":"object","properties":{"description":{"type":["string","null"],"maxLength":524288},"document_type":{"$ref":"#/components/schemas/OrgComplianceDocumentTypeEnum1"},"schema_version":{"type":"integer"},"valid_from":{"type":["string","null"],"format":"date-time"},"valid_until":{"type":["string","null"],"format":"date-time"}},"required":["document_type","schema_version"],"title":"OrgComplianceDocumentClientCreate1"},"OrgComplianceDocument1":{"type":"object","properties":{"_id":{"type":"string"},"description":{"type":["string","null"],"maxLength":524288},"document_type":{"$ref":"#/components/schemas/OrgComplianceDocumentTypeEnum1"},"org_compliance_document_s3_object_metadata_ids":{"type":"array","items":{"type":"string"}},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"org_type":{"$ref":"#/components/schemas/OrgTypeEnum"},"schema_version":{"type":"integer"},"valid_from":{"type":["string","null"],"format":"date-time"},"valid_until":{"type":["string","null"],"format":"date-time"}},"required":["_id","document_type","org_id","org_type","schema_version"],"title":"OrgComplianceDocument1"},"OrgComplianceDocumentClientUpdate1":{"type":"object","properties":{"description":{"type":["string","null"],"maxLength":524288},"description__set_to_None":{"type":"boolean","default":false}},"title":"OrgComplianceDocumentClientUpdate1"},"OrgComplianceDocumentS3ObjectMetadata1":{"type":"object","properties":{"_id":{"type":"string"},"ai_generated_description":{"type":["string","null"]},"blurhash":{"type":["string","null"]},"content_type":{"type":["string","null"],"description":"MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf')"},"filename":{"type":["string","null"],"description":"Original filename of the uploaded file"},"org_compliance_document_id":{"type":"string"},"s3_key_prefix":{"type":"string","enum":["orgs/org_compliance_document_s3_object_metadata"],"default":"orgs/org_compliance_document_s3_object_metadata"},"schema_version":{"type":"integer"},"uploaded_at_timestamp":{"type":"string","format":"date-time"},"uploaded_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"uploaded_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"user_generated_description":{"type":["string","null"]}},"required":["_id","org_compliance_document_id","schema_version","uploaded_at_timestamp","uploaded_by_org_id","uploaded_by_user_id"],"title":"OrgComplianceDocumentS3ObjectMetadata1"},"Get__org_compliance_documents_s3_object_v1RequestNotFoundError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__org_compliance_documents_s3_object_v1RequestNotFoundError"},"Get__org_compliance_documents_s3_object_v1RequestUnprocessableEntityError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__org_compliance_documents_s3_object_v1RequestUnprocessableEntityError"},"ShipperCoordinatorConnection1":{"type":"object","properties":{"_id":{"type":"string"},"connected":{"type":"boolean","default":false},"coordinator_default_department_id":{"type":["string","null"]},"coordinator_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"known_shipper":{"type":["boolean","null"]},"known_shipper_last_edited_at_timestamp":{"type":["string","null"],"format":"date-time"},"known_shipper_last_edited_by_user_id":{"type":["string","null"]},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"schema_version":{"type":"integer"},"shipper_customer_id_for_coordinator_stripe_connect_account":{"type":["string","null"]},"shipper_org_id":{"type":["string","null"]}},"required":["_id","coordinator_org_id","schema_version"],"title":"ShipperCoordinatorConnection1"},"CoordinatorExecutorConnection1":{"type":"object","properties":{"_id":{"type":"string"},"auto_assign_enabled":{"type":["boolean","null"]},"connected":{"type":"boolean","default":false},"coordinator_customer_id_for_executor_stripe_connect_account":{"type":["string","null"]},"coordinator_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"executor_org_id":{"type":["string","null"]},"off_chrt_executor_org_data_id":{"type":["string","null"]},"schema_version":{"type":"integer"}},"required":["_id","coordinator_org_id","schema_version"],"title":"CoordinatorExecutorConnection1"},"OrgsConnectionsByHandleV1HandleGetResponsesContentApplicationJsonSchema":{"oneOf":[{"$ref":"#/components/schemas/ShipperCoordinatorConnection1"},{"$ref":"#/components/schemas/CoordinatorExecutorConnection1"}],"title":"OrgsConnectionsByHandleV1HandleGetResponsesContentApplicationJsonSchema"},"CoordinatorExecutorConnectionForExecutorListItem":{"type":"object","properties":{"coordinator_executor_connection":{"$ref":"#/components/schemas/CoordinatorExecutorConnection1"},"coordinator_org_public_data":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]}},"required":["coordinator_executor_connection"],"title":"CoordinatorExecutorConnectionForExecutorListItem"},"CoordinatorExecutorConnectionsForExecutorListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CoordinatorExecutorConnectionForExecutorListItem"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"CoordinatorExecutorConnectionsForExecutorListRes"},"ShipperCoordinatorConnectionForShipperListItem":{"type":"object","properties":{"coordinator_org_public_data":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"shipper_coordinator_connection":{"$ref":"#/components/schemas/ShipperCoordinatorConnection1"}},"required":["shipper_coordinator_connection"],"title":"ShipperCoordinatorConnectionForShipperListItem"},"ShipperCoordinatorConnectionsForShipperListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ShipperCoordinatorConnectionForShipperListItem"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"ShipperCoordinatorConnectionsForShipperListRes"},"CreateConnectionReq":{"type":"object","properties":{"handle":{"type":"string","pattern":"^@[a-zA-Z0-9_-]+$","minLength":2,"maxLength":30,"description":"Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters."}},"required":["handle"],"title":"CreateConnectionReq"},"CoordinatorExecutorConnectionForCoordinatorGeoSearchListItem":{"type":"object","properties":{"coordinator_executor_connection":{"$ref":"#/components/schemas/CoordinatorExecutorConnection1"},"distance_meters":{"type":["number","null"],"format":"double"},"executor_org_public_data":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"off_chrt_executor_org_data":{"oneOf":[{"$ref":"#/components/schemas/OffChrtOrgData1"},{"type":"null"}]}},"required":["coordinator_executor_connection"],"title":"CoordinatorExecutorConnectionForCoordinatorGeoSearchListItem"},"CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CoordinatorExecutorConnectionForCoordinatorGeoSearchListItem"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes"},"CoordinatorExecutorConnectionForCoordinatorListItem":{"type":"object","properties":{"coordinator_executor_connection":{"$ref":"#/components/schemas/CoordinatorExecutorConnection1"},"executor_org_public_data":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"off_chrt_executor_org_data":{"oneOf":[{"$ref":"#/components/schemas/OffChrtOrgData1"},{"type":"null"}]}},"required":["coordinator_executor_connection"],"title":"CoordinatorExecutorConnectionForCoordinatorListItem"},"CoordinatorExecutorConnectionsForCoordinatorListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CoordinatorExecutorConnectionForCoordinatorListItem"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"CoordinatorExecutorConnectionsForCoordinatorListRes"},"CoordinatorExecutorUpdateAutoAssignReq":{"type":"object","properties":{"auto_assign_enabled":{"type":"boolean"}},"required":["auto_assign_enabled"],"title":"CoordinatorExecutorUpdateAutoAssignReq"},"ShipperCoordinatorConnectionClientUpdate1":{"type":"object","properties":{"coordinator_default_department_id":{"type":["string","null"]},"coordinator_default_department_id__set_to_None":{"type":"boolean","default":false}},"title":"ShipperCoordinatorConnectionClientUpdate1"},"ShipperCoordinatorUpdateKnownShipperReq":{"type":"object","properties":{"known_shipper":{"type":"boolean"}},"required":["known_shipper"],"title":"ShipperCoordinatorUpdateKnownShipperReq"},"ShipperCoordinatorConnectionForCoordinatorListItem":{"type":"object","properties":{"off_chrt_shipper_org_data":{"oneOf":[{"$ref":"#/components/schemas/OffChrtOrgData1"},{"type":"null"}]},"shipper_coordinator_connection":{"$ref":"#/components/schemas/ShipperCoordinatorConnection1"},"shipper_org_public_data":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]}},"required":["shipper_coordinator_connection"],"title":"ShipperCoordinatorConnectionForCoordinatorListItem"},"ShipperCoordinatorConnectionsForCoordinatorListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ShipperCoordinatorConnectionForCoordinatorListItem"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"ShipperCoordinatorConnectionsForCoordinatorListRes"},"ConnectionTypeaheadFieldEnum":{"type":"string","enum":["name"],"title":"ConnectionTypeaheadFieldEnum"},"ConnectionTypeaheadValue":{"type":"object","properties":{"connection_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["connection_ids","value"],"title":"ConnectionTypeaheadValue"},"ConnectionTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ConnectionTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/ConnectionTypeaheadValue"}}},"required":["type","values"],"title":"ConnectionTypeaheadResult"},"ContactAccountAddReq":{"type":"object","properties":{"account_id":{"type":"string"}},"required":["account_id"],"title":"ContactAccountAddReq"},"ContactClientCreate1":{"type":"object","properties":{"account_ids":{"type":"array","items":{"type":"string"}},"email_address":{"type":["string","null"]},"job_title":{"type":["string","null"]},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"name":{"type":"string","minLength":1,"maxLength":255},"notes":{"type":["string","null"],"maxLength":524288},"off_chrt_org_data_id":{"type":["string","null"]},"org_id":{"type":["string","null"]},"phone_number":{"type":["string","null"],"format":"phone"},"schema_version":{"type":"integer"}},"required":["name","schema_version"],"title":"ContactClientCreate1"},"ContactSortByEnum":{"type":"string","enum":["name"],"title":"ContactSortByEnum"},"Contact1":{"type":"object","properties":{"_id":{"type":"string"},"account_ids":{"type":"array","items":{"type":"string"}},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"email_address":{"type":["string","null"]},"job_title":{"type":["string","null"]},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"name":{"type":"string","minLength":1,"maxLength":255},"notes":{"type":["string","null"],"maxLength":524288},"off_chrt_org_data_id":{"type":["string","null"]},"org_id":{"type":["string","null"]},"phone_number":{"type":["string","null"],"format":"phone"},"schema_version":{"type":"integer"}},"required":["_id","created_by_org_id","name","schema_version"],"title":"Contact1"},"ContactExpandedListItem":{"type":"object","properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/Account1"}},"contact":{"$ref":"#/components/schemas/Contact1"},"off_chrt_org_data":{"oneOf":[{"$ref":"#/components/schemas/OffChrtOrgData1"},{"type":"null"}]},"org_public_data":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]}},"required":["contact"],"title":"ContactExpandedListItem"},"ContactListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ContactExpandedListItem"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"ContactListRes"},"ContactTypeaheadFieldEnum":{"type":"string","enum":["name"],"title":"ContactTypeaheadFieldEnum"},"ContactTypeaheadValue":{"type":"object","properties":{"contact_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["contact_ids","value"],"title":"ContactTypeaheadValue"},"ContactTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ContactTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/ContactTypeaheadValue"}}},"required":["type","values"],"title":"ContactTypeaheadResult"},"ContactClientUpdate1":{"type":"object","properties":{"email_address":{"type":["string","null"]},"email_address__set_to_None":{"type":"boolean","default":false},"job_title":{"type":["string","null"]},"job_title__set_to_None":{"type":"boolean","default":false},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"location__set_to_None":{"type":"boolean","default":false},"name":{"type":["string","null"],"minLength":1,"maxLength":255},"notes":{"type":["string","null"],"maxLength":524288},"notes__set_to_None":{"type":"boolean","default":false},"phone_number":{"type":["string","null"],"format":"phone"},"phone_number__set_to_None":{"type":"boolean","default":false}},"description":"Update contact details; organization associations are immutable.\n\nAfter creation, account associations are managed through dedicated routes.","title":"ContactClientUpdate1"},"IataCassOfficeSortByEnum":{"type":"string","enum":["created_at_timestamp","name"],"title":"IataCassOfficeSortByEnum"},"IataCassOffice1":{"type":"object","properties":{"_id":{"type":"string"},"archived_at_timestamp":{"type":["string","null"],"format":"date-time"},"company_name":{"type":"string"},"contact_email_address":{"type":"string","format":"email"},"contact_first_name":{"type":"string"},"contact_last_name":{"type":"string"},"country_code":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"iata_cargo_agent_cass_address":{"type":"string"},"iata_cargo_agent_numeric_code":{"type":"string"},"name":{"type":"string"},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"schema_version":{"type":"integer"},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","company_name","contact_email_address","contact_first_name","contact_last_name","country_code","created_at_timestamp","iata_cargo_agent_cass_address","iata_cargo_agent_numeric_code","name","owned_by_org_id","owned_by_user_id","schema_version","updated_at_timestamp"],"title":"IataCassOffice1"},"IataCassOfficeListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/IataCassOffice1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"IataCassOfficeListRes"},"IataCassOfficeClientUpdate1":{"type":"object","properties":{"company_name":{"type":["string","null"],"minLength":1},"contact_first_name":{"type":["string","null"],"minLength":1},"contact_last_name":{"type":["string","null"],"minLength":1},"name":{"type":["string","null"],"minLength":1}},"title":"IataCassOfficeClientUpdate1"},"OffChrtOrgDataClientCreate1":{"type":"object","properties":{"air_waybill_prefix":{"type":["string","null"],"pattern":"^\\d{3}$"},"email_address":{"type":["string","null"]},"industry":{"type":["string","null"]},"name":{"type":"string","minLength":1,"maxLength":255},"org_type":{"$ref":"#/components/schemas/OrgTypeEnum"},"phone_number":{"type":["string","null"],"format":"phone"},"schema_version":{"type":"integer"},"street_address":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]}},"required":["name","org_type","schema_version"],"title":"OffChrtOrgDataClientCreate1"},"CreateOffChrtOrgReq":{"type":"object","properties":{"coordinator_default_department_id":{"type":["string","null"]},"off_chrt_org_data":{"$ref":"#/components/schemas/OffChrtOrgDataClientCreate1"}},"required":["off_chrt_org_data"],"description":"Creates off-CHRT org data, with a connection for shippers and providers.","title":"CreateOffChrtOrgReq"},"CreateOffChrtOrgRes":{"type":"object","properties":{"connection_id":{"type":["string","null"]},"off_chrt_org_data_id":{"type":"string"}},"required":["connection_id","off_chrt_org_data_id"],"title":"CreateOffChrtOrgRes"},"OffChrtOrgDataSortByEnum":{"type":"string","enum":["name"],"title":"OffChrtOrgDataSortByEnum"},"OffChrtOrgDataListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OffChrtOrgData1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OffChrtOrgDataListRes"},"OffChrtOrgDataTypeaheadFieldEnum":{"type":"string","enum":["name"],"title":"OffChrtOrgDataTypeaheadFieldEnum"},"OffChrtOrgDataTypeaheadValue":{"type":"object","properties":{"off_chrt_org_data_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["off_chrt_org_data_ids","value"],"title":"OffChrtOrgDataTypeaheadValue"},"OffChrtOrgDataTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/OffChrtOrgDataTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/OffChrtOrgDataTypeaheadValue"}}},"required":["type","values"],"title":"OffChrtOrgDataTypeaheadResult"},"OffChrtOrgDataClientUpdate1":{"type":"object","properties":{"air_waybill_prefix":{"type":["string","null"],"pattern":"^\\d{3}$"},"air_waybill_prefix__set_to_None":{"type":"boolean","default":false},"email_address":{"type":["string","null"]},"email_address__set_to_None":{"type":"boolean","default":false},"industry":{"type":["string","null"]},"industry__set_to_None":{"type":"boolean","default":false},"name":{"type":["string","null"],"minLength":1,"maxLength":255},"phone_number":{"type":["string","null"],"format":"phone"},"phone_number__set_to_None":{"type":"boolean","default":false},"street_address":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"street_address__set_to_None":{"type":"boolean","default":false}},"description":"Updates identity details; ownership and org_type are immutable.","title":"OffChrtOrgDataClientUpdate1"},"OrgPrivateData1":{"type":"object","properties":{"_id":{"type":"string"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"org_subscription":{"type":"boolean","default":false},"org_type":{"$ref":"#/components/schemas/OrgTypeEnum"},"schema_version":{"type":"integer"},"stripe_connect_account_id":{"type":["string","null"]},"stripe_customer_id":{"type":["string","null"]},"svix_app_id":{"type":["string","null"]},"webcargo_api_key":{"type":["string","null"]},"webcargo_countries":{"type":"array","items":{"type":"string"}},"webcargo_email":{"type":["string","null"]},"webhook_enabled":{"type":"boolean","default":false}},"required":["_id","org_id","org_type","schema_version"],"title":"OrgPrivateData1"},"UpdateOrgPublicDataReq":{"type":"object","properties":{"description":{"type":["string","null"],"maxLength":524288},"description__set_to_None":{"type":"boolean","default":false},"email_address":{"type":["string","null"]},"email_address__set_to_None":{"type":"boolean","default":false},"handle":{"type":["string","null"],"pattern":"^@[a-zA-Z0-9_-]+$","minLength":2,"maxLength":30},"industry":{"type":["string","null"]},"industry__set_to_None":{"type":"boolean","default":false},"name":{"type":["string","null"],"minLength":1,"maxLength":255},"phone_number":{"type":["string","null"],"format":"phone"},"phone_number__set_to_None":{"type":"boolean","default":false},"street_address":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"street_address__set_to_None":{"type":"boolean","default":false}},"title":"UpdateOrgPublicDataReq"},"OrgPublicDataS3ObjectMetadata1":{"type":"object","properties":{"_id":{"type":"string"},"ai_generated_description":{"type":["string","null"]},"blurhash":{"type":["string","null"]},"content_type":{"type":["string","null"],"description":"MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf')"},"filename":{"type":["string","null"],"description":"Original filename of the uploaded file"},"org_public_data_id":{"type":"string"},"s3_key_prefix":{"type":"string","enum":["orgs/org_public_data_s3_object_metadata"],"default":"orgs/org_public_data_s3_object_metadata"},"schema_version":{"type":"integer"},"uploaded_at_timestamp":{"type":"string","format":"date-time"},"uploaded_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"uploaded_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"user_generated_description":{"type":["string","null"]}},"required":["_id","org_public_data_id","schema_version","uploaded_at_timestamp","uploaded_by_org_id","uploaded_by_user_id"],"title":"OrgPublicDataS3ObjectMetadata1"},"Get__org_public_data_s3_object_v1RequestNotFoundError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__org_public_data_s3_object_v1RequestNotFoundError"},"Get__org_public_data_s3_object_v1RequestUnprocessableEntityError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__org_public_data_s3_object_v1RequestUnprocessableEntityError"},"CargoOnFlightAirWaybillClientCreate1":{"type":"object","properties":{"also_notify":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillParty1"},{"type":"null"}]},"cargo_on_flight_booking_id":{"type":"string"},"carriers_execution":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillCarriersExecution1"},"charges_declaration":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillChargesDeclaration1"},"consignee":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillParty1"},"consignment_security_declaration":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1"},{"type":"null"}]},"customs_origin_code":{"type":["string","null"],"pattern":"^[A-Z0-9]{1,2}$"},"iata_cass_office_id":{"type":["string","null"]},"issuing_agent_name":{"type":["string","null"],"minLength":1,"maxLength":35},"other_charges":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillOtherCharge1"}},"other_service_information":{"type":["string","null"],"maxLength":65},"rate_lines":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillRateLine1"}},"schema_version":{"type":"integer"},"shipper":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillParty1"},"shippers_certification":{"type":"string","minLength":1,"maxLength":20},"special_service_request":{"type":["string","null"],"maxLength":65}},"required":["cargo_on_flight_booking_id","carriers_execution","charges_declaration","consignee","rate_lines","schema_version","shipper","shippers_certification"],"title":"CargoOnFlightAirWaybillClientCreate1"},"CargoOnFlightAirWaybillSortByEnum":{"type":"string","enum":["created_at_timestamp","updated_at_timestamp"],"title":"CargoOnFlightAirWaybillSortByEnum"},"CargoOnFlightAirWaybillListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightAirWaybill1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"CargoOnFlightAirWaybillListRes"},"CargoOnFlightAirWaybillsMarkAcceptedReq":{"type":"object","properties":{"cargo_on_flight_house_air_waybill_ids":{"type":"array","items":{"type":"string"}},"mark_fwb":{"type":"boolean"}},"required":["mark_fwb"],"title":"CargoOnFlightAirWaybillsMarkAcceptedReq"},"CargoOnFlightAirWaybillsMarkAcceptedRes":{"type":"object","properties":{"cargo_on_flight_air_waybill":{"$ref":"#/components/schemas/CargoOnFlightAirWaybill1"},"cargo_on_flight_house_air_waybills":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightHouseAirWaybill1"}}},"required":["cargo_on_flight_air_waybill"],"title":"CargoOnFlightAirWaybillsMarkAcceptedRes"},"CargoOnFlightAirWaybillClientUpdate1":{"type":"object","properties":{"also_notify":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillParty1"},{"type":"null"}]},"also_notify__set_to_None":{"type":"boolean","default":false},"carriers_execution":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillCarriersExecution1"},{"type":"null"}]},"charges_declaration":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillChargesDeclaration1"},{"type":"null"}]},"consignee":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillParty1"},{"type":"null"}]},"consignment_security_declaration":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1"},{"type":"null"}]},"consignment_security_declaration__set_to_None":{"type":"boolean","default":false},"customs_origin_code":{"type":["string","null"],"pattern":"^[A-Z0-9]{1,2}$"},"customs_origin_code__set_to_None":{"type":"boolean","default":false},"issuing_agent_name":{"type":["string","null"],"minLength":1,"maxLength":35},"issuing_agent_name__set_to_None":{"type":"boolean","default":false},"other_charges":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillOtherCharge1"}},"other_service_information":{"type":["string","null"],"maxLength":65},"other_service_information__set_to_None":{"type":"boolean","default":false},"rate_lines":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightAirWaybillRateLine1"}},"shipper":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillParty1"},{"type":"null"}]},"shippers_certification":{"type":["string","null"],"minLength":1,"maxLength":20},"special_service_request":{"type":["string","null"],"maxLength":65},"special_service_request__set_to_None":{"type":"boolean","default":false}},"title":"CargoOnFlightAirWaybillClientUpdate1"},"CargoOnFlightBookingSearchSortByEnum":{"type":"string","enum":["created_at_timestamp"],"title":"CargoOnFlightBookingSearchSortByEnum"},"CargoOnFlightBookingSearchListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightBookingSearch1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"CargoOnFlightBookingSearchListRes"},"CargoOnFlightBookingSearchResultSortByEnum":{"type":"string","enum":["departure","latest_acceptance","price"],"title":"CargoOnFlightBookingSearchResultSortByEnum"},"CargoOnFlightBookingClientCreate1":{"type":"object","properties":{"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"booked_itinerary":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightBookingItinerary1"},{"type":"null"}]},"booked_rate":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightBookingRate1"},{"type":"null"}]},"cargo_dimensions":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightBookingCargoDimension1"}},"cargo_ids":{"type":"array","items":{"type":"string"}},"cargo_on_flight_integration":{"$ref":"#/components/schemas/CargoOnFlightIntegrationEnum1"},"schema_version":{"type":"integer"},"special_handling_codes":{"type":"array","items":{"$ref":"#/components/schemas/SpecialHandlingCodeEnum1"}},"task_group_id":{"type":"string"}},"required":["cargo_dimensions","cargo_ids","cargo_on_flight_integration","schema_version","task_group_id"],"title":"CargoOnFlightBookingClientCreate1"},"CargoOnFlightBookingSortByEnum":{"type":"string","enum":["draft_started_at_timestamp"],"title":"CargoOnFlightBookingSortByEnum"},"CargoOnFlightBookingListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightBooking1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"CargoOnFlightBookingListRes"},"CargoOnFlightHouseAirWaybillClientCreate1":{"type":"object","properties":{"cargo_on_flight_air_waybill_id":{"type":"string"},"charges_declaration":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillChargesDeclaration1"},{"type":"null"}]},"destination_iata":{"type":"string","pattern":"^[A-Z]{3}$"},"gross_weight_kilograms":{"type":"number","format":"double","exclusiveMinimum":0},"house_air_waybill_number":{"type":"string","pattern":"^[A-Z0-9]{1,12}$"},"manifest_description_of_goods":{"type":"string","minLength":1,"maxLength":15},"number_of_pieces":{"type":"integer","minimum":1,"maximum":9999},"origin_iata":{"type":"string","pattern":"^[A-Z]{3}$"},"schema_version":{"type":"integer"},"slac":{"type":["integer","null"],"minimum":1,"maximum":99999}},"required":["cargo_on_flight_air_waybill_id","destination_iata","gross_weight_kilograms","house_air_waybill_number","manifest_description_of_goods","number_of_pieces","origin_iata","schema_version"],"title":"CargoOnFlightHouseAirWaybillClientCreate1"},"CargoOnFlightHouseAirWaybillSortByEnum":{"type":"string","enum":["created_at_timestamp","house_air_waybill_number"],"title":"CargoOnFlightHouseAirWaybillSortByEnum"},"CargoOnFlightHouseAirWaybillListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CargoOnFlightHouseAirWaybill1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"CargoOnFlightHouseAirWaybillListRes"},"CargoOnFlightHouseAirWaybillClientUpdate1":{"type":"object","properties":{"charges_declaration":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybillChargesDeclaration1"},{"type":"null"}]},"charges_declaration__set_to_None":{"type":"boolean","default":false},"destination_iata":{"type":["string","null"],"pattern":"^[A-Z]{3}$"},"gross_weight_kilograms":{"type":["number","null"],"format":"double","exclusiveMinimum":0},"manifest_description_of_goods":{"type":["string","null"],"minLength":1,"maxLength":15},"number_of_pieces":{"type":["integer","null"],"minimum":1,"maximum":9999},"origin_iata":{"type":["string","null"],"pattern":"^[A-Z]{3}$"},"slac":{"type":["integer","null"],"minimum":1,"maximum":99999},"slac__set_to_None":{"type":"boolean","default":false}},"description":"Everything but the house number (see \"Relationships\").","title":"CargoOnFlightHouseAirWaybillClientUpdate1"},"DriverClientCreate1":{"type":"object","properties":{"email_address_primary":{"type":["string","null"],"format":"email"},"email_address_secondary":{"type":["string","null"],"format":"email"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"phone_number_primary":{"type":["string","null"],"format":"phone"},"phone_number_secondary":{"type":["string","null"],"format":"phone"},"schema_version":{"type":"integer"},"vehicle_types":{"type":"array","items":{"$ref":"#/components/schemas/VehicleTypeEnum"}}},"required":["schema_version"],"title":"DriverClientCreate1"},"DriverWithActiveTaskGroupIds1":{"type":"object","properties":{"_id":{"type":"string"},"active_task_group_ids":{"type":"array","items":{"type":"string"}},"archived_at_timestamp":{"type":["string","null"],"format":"date-time"},"auto_assign_enabled":{"type":"boolean","default":true},"available_according_to_driver":{"type":"boolean","default":true},"available_according_to_operators":{"type":"boolean","default":true},"email_address_primary":{"type":["string","null"],"format":"email"},"email_address_secondary":{"type":["string","null"],"format":"email"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"last_seen_at_location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"last_seen_at_location_city":{"type":["string","null"]},"last_seen_at_location_large_city":{"type":["string","null"]},"last_seen_at_timestamp":{"type":["string","null"],"format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"phone_number_primary":{"type":["string","null"],"format":"phone"},"phone_number_secondary":{"type":["string","null"],"format":"phone"},"schema_version":{"type":"integer"},"status":{"$ref":"#/components/schemas/DriverStatusEnum"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"},"vehicle_types":{"type":"array","items":{"$ref":"#/components/schemas/VehicleTypeEnum"}},"waiting":{"type":"boolean","default":false}},"required":["_id","org_id","schema_version","user_id"],"description":"Driver read DTO: persisted Driver1 plus the derived active task group IDs.\n\nThe field is computed per request from shipping.task_groups so the JSON shape\nstays identical to when active_task_group_ids was persisted on the driver.","title":"DriverWithActiveTaskGroupIds1"},"DriverListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DriverWithActiveTaskGroupIds1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"DriverListRes"},"OrgMembersAndDrivers":{"type":"object","properties":{"driver":{"oneOf":[{"$ref":"#/components/schemas/DriverWithActiveTaskGroupIds1"},{"type":"null"}]},"org_member":{"$ref":"#/components/schemas/OrgMemberDetails"}},"required":["driver","org_member"],"title":"OrgMembersAndDrivers"},"OrgMembersAndDriversListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrgMembersAndDrivers"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OrgMembersAndDriversListRes"},"DriverSelfReportedHoursAndMileageClientCreate1":{"type":"object","properties":{"date":{"type":"string","format":"date"},"driver_id":{"type":"string"},"hours_worked":{"type":["number","null"],"format":"double","minimum":0,"maximum":24},"miles_driven":{"type":["number","null"],"format":"double","minimum":0},"schema_version":{"type":"integer"}},"required":["date","driver_id","schema_version"],"title":"DriverSelfReportedHoursAndMileageClientCreate1"},"DriverSelfReportedHoursAndMileage1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"date":{"type":"string","format":"date"},"driver_id":{"type":"string"},"hours_worked":{"type":["number","null"],"format":"double","minimum":0,"maximum":24},"miles_driven":{"type":["number","null"],"format":"double","minimum":0},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"updated_at":{"type":"string","format":"date-time"}},"required":["_id","created_at_timestamp","created_by_user_id","date","driver_id","org_id","schema_version","updated_at"],"title":"DriverSelfReportedHoursAndMileage1"},"DriverSelfReportedHoursAndMileageListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DriverSelfReportedHoursAndMileage1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"DriverSelfReportedHoursAndMileageListRes"},"ShippingDriversSelfReportedHoursAndMileageOrgListV1GetParametersSortBy":{"type":"string","enum":["date","driver_id"],"default":"date","title":"ShippingDriversSelfReportedHoursAndMileageOrgListV1GetParametersSortBy"},"DriverSelfReportedHoursAndMileageClientUpdate1":{"type":"object","properties":{"hours_worked":{"type":["number","null"],"format":"double","minimum":0,"maximum":24},"hours_worked__set_to_None":{"type":"boolean","default":false},"miles_driven":{"type":["number","null"],"format":"double","minimum":0},"miles_driven__set_to_None":{"type":"boolean","default":false}},"title":"DriverSelfReportedHoursAndMileageClientUpdate1"},"DriverStatsReq":{"type":"object","properties":{"end_timestamp":{"type":"string","format":"date-time"},"start_timestamp":{"type":"string","format":"date-time"}},"required":["end_timestamp","start_timestamp"],"title":"DriverStatsReq"},"DriverAnalyticsDay":{"type":"object","properties":{"day":{"type":"string","format":"date"},"observed_mileage_order_in_progress_deduped":{"type":"number","format":"double","description":"Observed GPS mileage from same-day driver ping segments fetched inside merged task-group in-progress intervals. Cross-interval and cross-midnight segments are dropped."},"observed_mileage_order_not_in_progress":{"type":"number","format":"double","description":"Observed GPS mileage remaining after subtracting order in-progress mileage from total on this UTC day. Includes off-clock segments and cross-interval boundary segments."},"observed_mileage_total":{"type":"number","format":"double","description":"Total observed GPS mileage from all same-day driver ping segments on this UTC day. Cross-midnight segments are dropped."},"self_reported_hours_and_mileage":{"oneOf":[{"$ref":"#/components/schemas/DriverSelfReportedHoursAndMileage1"},{"type":"null"}],"description":"Driver self-reported hours and mileage record for this UTC calendar day, if one exists."}},"required":["day","observed_mileage_order_in_progress_deduped","observed_mileage_order_not_in_progress","observed_mileage_total"],"title":"DriverAnalyticsDay"},"DriverAnalyticsTaskGroup":{"type":"object","properties":{"observed_mileage_order_in_progress":{"type":"number","format":"double","description":"Observed GPS mileage for this task group from tracking.task_group_by_driver_timeseries across the full task-group in-progress interval, excluding outlier points. This can include mileage outside the requested analytics window when the task group overlaps the window but starts before it or ends after it."},"task_group":{"$ref":"#/components/schemas/TaskGroup1","description":"Task group assigned to the driver whose in-progress interval overlaps the requested analytics window."}},"required":["observed_mileage_order_in_progress","task_group"],"title":"DriverAnalyticsTaskGroup"},"DriverStatsRes":{"type":"object","properties":{"driver_analytics_days":{"type":"array","items":{"$ref":"#/components/schemas/DriverAnalyticsDay"}},"driver_analytics_task_groups":{"type":"array","items":{"$ref":"#/components/schemas/DriverAnalyticsTaskGroup"}}},"title":"DriverStatsRes"},"DriverTypeaheadFieldEnum":{"type":"string","enum":["full_name"],"title":"DriverTypeaheadFieldEnum"},"DriverTypeaheadValue":{"type":"object","properties":{"driver_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["driver_ids","value"],"title":"DriverTypeaheadValue"},"DriverTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/DriverTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/DriverTypeaheadValue"}}},"required":["type","values"],"title":"DriverTypeaheadResult"},"DriverClientUpdate1":{"type":"object","properties":{"email_address_primary":{"type":["string","null"],"format":"email"},"email_address_primary__set_to_None":{"type":"boolean","default":false},"email_address_secondary":{"type":["string","null"],"format":"email"},"email_address_secondary__set_to_None":{"type":"boolean","default":false},"first_name":{"type":["string","null"]},"first_name__set_to_None":{"type":"boolean","default":false},"last_name":{"type":["string","null"]},"last_name__set_to_None":{"type":"boolean","default":false},"phone_number_primary":{"type":["string","null"],"format":"phone"},"phone_number_primary__set_to_None":{"type":"boolean","default":false},"phone_number_secondary":{"type":["string","null"],"format":"phone"},"phone_number_secondary__set_to_None":{"type":"boolean","default":false},"vehicle_types":{"type":"array","items":{"$ref":"#/components/schemas/VehicleTypeEnum"}}},"title":"DriverClientUpdate1"},"DriverUpdateAutoAssignReq":{"type":"object","properties":{"auto_assign_enabled":{"type":"boolean"}},"required":["auto_assign_enabled"],"title":"DriverUpdateAutoAssignReq"},"DriverUpdateAvailabilityReq":{"type":"object","properties":{"available":{"type":"boolean"}},"required":["available"],"title":"DriverUpdateAvailabilityReq"},"DriverComplianceDocumentTypeEnum1":{"type":"string","enum":["drivers_license","commercial_drivers_license","tsa_sta","iata_dangerous_goods","dot_hazmat","cdl_hazmat_endorsement","osha_bloodborne_pathogens","medical_specimen","clinical_lab_specimen","pathology","blood_products","pharmaceutical","cold_chain","vehicle_registration","vehicle_inspection","background_check","mvr_check"],"title":"DriverComplianceDocumentTypeEnum1"},"DriverComplianceDocumentClientCreate1":{"type":"object","properties":{"description":{"type":["string","null"],"maxLength":524288},"document_type":{"$ref":"#/components/schemas/DriverComplianceDocumentTypeEnum1"},"schema_version":{"type":"integer"},"valid_from":{"type":["string","null"],"format":"date-time"},"valid_until":{"type":["string","null"],"format":"date-time"}},"required":["document_type","schema_version"],"title":"DriverComplianceDocumentClientCreate1"},"DriverComplianceDocument1":{"type":"object","properties":{"_id":{"type":"string"},"description":{"type":["string","null"],"maxLength":524288},"document_type":{"$ref":"#/components/schemas/DriverComplianceDocumentTypeEnum1"},"driver_compliance_document_s3_object_metadata_ids":{"type":"array","items":{"type":"string"}},"driver_id":{"type":"string"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"valid_from":{"type":["string","null"],"format":"date-time"},"valid_until":{"type":["string","null"],"format":"date-time"}},"required":["_id","document_type","driver_id","org_id","schema_version"],"title":"DriverComplianceDocument1"},"DriverComplianceDocumentClientUpdate1":{"type":"object","properties":{"description":{"type":["string","null"],"maxLength":524288},"description__set_to_None":{"type":"boolean","default":false}},"title":"DriverComplianceDocumentClientUpdate1"},"DriverComplianceDocumentS3ObjectMetadata1":{"type":"object","properties":{"_id":{"type":"string"},"ai_generated_description":{"type":["string","null"]},"blurhash":{"type":["string","null"]},"content_type":{"type":["string","null"],"description":"MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf')"},"driver_compliance_document_id":{"type":"string"},"filename":{"type":["string","null"],"description":"Original filename of the uploaded file"},"s3_key_prefix":{"type":"string","enum":["shipping/driver_compliance_document_s3_object_metadata"],"default":"shipping/driver_compliance_document_s3_object_metadata"},"schema_version":{"type":"integer"},"uploaded_at_timestamp":{"type":"string","format":"date-time"},"uploaded_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"uploaded_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"user_generated_description":{"type":["string","null"]}},"required":["_id","driver_compliance_document_id","schema_version","uploaded_at_timestamp","uploaded_by_org_id","uploaded_by_user_id"],"title":"DriverComplianceDocumentS3ObjectMetadata1"},"Get__driver_compliance_documents_s3_object_v1RequestNotFoundError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__driver_compliance_documents_s3_object_v1RequestNotFoundError"},"Get__driver_compliance_documents_s3_object_v1RequestUnprocessableEntityError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__driver_compliance_documents_s3_object_v1RequestUnprocessableEntityError"},"FlightLegStatusEnum1":{"type":"string","enum":["scheduled","departed_gate","in_flight","landed","arrived_gate","cancelled","diverted","unknown"],"title":"FlightLegStatusEnum1"},"FlightLegStatusSourceEnum1":{"type":"string","enum":["live","historical"],"title":"FlightLegStatusSourceEnum1"},"FlightLegProvenanceEnum1":{"type":"string","enum":["manual","cirium","flightaware","cargo_on_flight_booking"],"title":"FlightLegProvenanceEnum1"},"FlightLeg1":{"type":"object","properties":{"_id":{"type":"string"},"actual_arrival_utc":{"type":["string","null"],"format":"date-time"},"actual_departure_utc":{"type":["string","null"],"format":"date-time"},"arrival_gate":{"type":["string","null"]},"arrival_terminal":{"type":["string","null"]},"carrier_iata":{"type":"string"},"carrier_icao":{"type":["string","null"]},"cirium_flight_id":{"type":["integer","null"]},"departure_gate":{"type":["string","null"]},"departure_terminal":{"type":["string","null"]},"destination_iata":{"type":"string"},"estimated_arrival_utc":{"type":["string","null"],"format":"date-time"},"estimated_departure_utc":{"type":["string","null"],"format":"date-time"},"fa_flight_id":{"type":["string","null"]},"flight_number":{"type":"string"},"flight_status":{"oneOf":[{"$ref":"#/components/schemas/FlightLegStatusEnum1"},{"type":"null"}]},"flight_status_fetched_at_utc":{"type":["string","null"],"format":"date-time"},"flight_status_source":{"oneOf":[{"$ref":"#/components/schemas/FlightLegStatusSourceEnum1"},{"type":"null"}]},"order_id":{"type":["string","null"]},"origin_iata":{"type":"string"},"provenance":{"$ref":"#/components/schemas/FlightLegProvenanceEnum1"},"scheduled_arrival_utc":{"type":["string","null"],"format":"date-time"},"scheduled_departure_utc":{"type":"string","format":"date-time"},"schema_version":{"type":"integer"},"session_id":{"type":["string","null"]},"task_group_id":{"type":["string","null"]}},"required":["_id","carrier_iata","destination_iata","flight_number","origin_iata","provenance","scheduled_departure_utc","schema_version"],"title":"FlightLeg1"},"FlightInfoForTaskRes":{"type":"object","properties":{"flight_legs":{"type":"array","items":{"$ref":"#/components/schemas/FlightLeg1"}}},"description":"Response model for flight info lookup by task — the ordered flight legs\nof the adjacent CARGO_ON_FLIGHT task group.","title":"FlightInfoForTaskRes"},"FlightTrackPosition1":{"type":"object","properties":{"altitude_feet":{"type":["integer","null"]},"ground_speed_knots":{"type":["integer","null"]},"heading_degrees":{"type":["integer","null"],"minimum":0,"maximum":360},"latitude":{"type":["number","null"],"format":"double","minimum":-90,"maximum":90},"longitude":{"type":["number","null"],"format":"double","minimum":-180,"maximum":180},"name":{"type":["string","null"]},"position_source":{"type":["string","null"]},"received_at_timestamp":{"type":["string","null"],"format":"date-time"}},"title":"FlightTrackPosition1"},"FlightTrackRes":{"type":"object","properties":{"actual_flight_path":{"type":"array","items":{"$ref":"#/components/schemas/FlightTrackPosition1"}},"fa_flight_id":{"type":["string","null"]},"last_refresh_attempt_at_timestamp":{"type":["string","null"],"format":"date-time"},"latest_position":{"oneOf":[{"$ref":"#/components/schemas/FlightTrackPosition1"},{"type":"null"}]},"planned_flight_path":{"type":"array","items":{"$ref":"#/components/schemas/FlightTrackPosition1"}}},"title":"FlightTrackRes"},"OrderTemplateNewCargo1":{"type":"object","properties":{"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"cargo_key":{"type":"string","format":"uuid4"},"cargo_type":{"$ref":"#/components/schemas/CargoTypeEnum1"},"description":{"type":["string","null"],"maxLength":524288},"girth_inches":{"type":["number","null"],"format":"double"},"height_inches":{"type":["number","null"],"format":"double"},"length_inches":{"type":["number","null"],"format":"double"},"quantity":{"type":["integer","null"]},"schema_version":{"type":"integer","default":1},"special_handling_codes":{"type":"array","items":{"$ref":"#/components/schemas/SpecialHandlingCodeEnum1"}},"stackable":{"type":["boolean","null"]},"turnable":{"type":["boolean","null"]},"weight_pounds":{"type":["number","null"],"format":"double"},"width_inches":{"type":["number","null"],"format":"double"}},"required":["cargo_key","cargo_type"],"title":"OrderTemplateNewCargo1"},"OrderTemplateNewTask1Action":{"oneOf":[{"$ref":"#/components/schemas/ChrtGroundProviderTaskActionEnum1"},{"$ref":"#/components/schemas/CargoOnFlightTaskActionEnum1"},{"$ref":"#/components/schemas/OnboardCourierTaskActionEnum1"}],"title":"OrderTemplateNewTask1Action"},"OrderTemplateNewDateTimeWindow1":{"type":"object","properties":{"left_boundary_dateparser_str":{"type":["string","null"],"minLength":1,"maxLength":512},"right_boundary_dateparser_str":{"type":["string","null"],"minLength":1,"maxLength":512},"time_zone_name":{"type":"string","description":"IANA time zone name (e.g. `America/New_York`)."}},"required":["time_zone_name"],"title":"OrderTemplateNewDateTimeWindow1"},"TaskArtifactTypeEnum1":{"type":"string","enum":["image","file","signature","scan","other"],"title":"TaskArtifactTypeEnum1"},"OrderTemplateNewTaskArtifact1":{"type":"object","properties":{"expected_scan_payloads":{"type":"array","items":{"type":"string","minLength":1}},"schema_version":{"type":"integer","default":1},"task_artifact_key":{"type":"string","format":"uuid4"},"type":{"$ref":"#/components/schemas/TaskArtifactTypeEnum1"}},"required":["task_artifact_key","type"],"title":"OrderTemplateNewTaskArtifact1"},"OrderTemplateNewTask1":{"type":"object","properties":{"action":{"oneOf":[{"$ref":"#/components/schemas/OrderTemplateNewTask1Action"},{"type":"null"}]},"cargo_keys":{"type":"array","items":{"type":"string","format":"uuid4"}},"contact_ids":{"type":"array","items":{"type":"string"}},"coordinator_shipper_account_ids":{"type":"array","items":{"type":"string"}},"datetime_windows_dateparser_str":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewDateTimeWindow1"}},"flight_leg_id":{"type":["string","null"]},"geofence_distance_miles":{"type":"number","format":"double","exclusiveMinimum":0,"default":1},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"order_placer_comments":{"type":["string","null"]},"schema_version":{"type":"integer","default":1},"task_artifacts":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewTaskArtifact1"}},"task_key":{"type":"string","format":"uuid4"}},"required":["task_key"],"title":"OrderTemplateNewTask1"},"OrderTemplateNewTaskGroup1":{"type":"object","properties":{"coordinator_setup_notes":{"type":["string","null"]},"driver_id":{"type":["string","null"]},"executor_assigned_user_ids":{"type":"array","items":{"type":"string"}},"executor_org_id":{"type":["string","null"]},"off_chrt_executor_org_data_id":{"type":["string","null"]},"task_group_key":{"type":"string","format":"uuid4"},"task_group_type":{"$ref":"#/components/schemas/TaskGroupTypeEnum1"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewTask1"}},"vehicle_type":{"oneOf":[{"$ref":"#/components/schemas/VehicleTypeEnum"},{"type":"null"}]}},"required":["task_group_key","task_group_type"],"title":"OrderTemplateNewTaskGroup1"},"OrderTemplateNewCore1":{"type":"object","properties":{"cargos":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewCargo1"}},"coordinator_assigned_user_ids":{"type":"array","items":{"type":"string"}},"coordinator_department_ids":{"type":"array","items":{"type":"string"}},"coordinator_labels":{"type":"array","items":{"type":"string"}},"coordinator_org_id":{"type":["string","null"]},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"schema_version":{"type":"integer"},"service_line":{"$ref":"#/components/schemas/ServiceLineEnum"},"shipper_org_id":{"type":["string","null"]},"task_groups":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewTaskGroup1"}},"task_lists_to_apply_at_order_creation":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}},"task_lists_to_apply_at_order_staging":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}}},"required":["schema_version"],"title":"OrderTemplateNewCore1"},"OrderTemplateNew1":{"type":"object","properties":{"_id":{"type":"string"},"archived_at_timestamp":{"type":["string","null"],"format":"date-time"},"cargos":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewCargo1"}},"coordinator_assigned_user_ids":{"type":"array","items":{"type":"string"}},"coordinator_department_ids":{"type":"array","items":{"type":"string"}},"coordinator_labels":{"type":"array","items":{"type":"string"}},"coordinator_org_id":{"type":["string","null"]},"created_at_timestamp":{"type":"string","format":"date-time"},"description":{"type":["string","null"],"maxLength":16384},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"last_used_at_timestamp":{"type":["string","null"],"format":"date-time"},"name":{"type":"string","minLength":1,"maxLength":1024},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"schema_version":{"type":"integer"},"service_line":{"$ref":"#/components/schemas/ServiceLineEnum"},"shipper_org_id":{"type":["string","null"]},"task_groups":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewTaskGroup1"}},"task_lists_to_apply_at_order_creation":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}},"task_lists_to_apply_at_order_staging":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}}},"required":["_id","created_at_timestamp","last_edited_at_timestamp","name","owned_by_org_id","owned_by_user_id","schema_version"],"title":"OrderTemplateNew1"},"OrderTemplateNewDateparserResolveReq":{"type":"object","properties":{"anchor_timestamp":{"type":["string","null"],"format":"date-time"},"dateparser_str":{"type":"string","minLength":1,"maxLength":512},"time_zone_name":{"type":"string","description":"IANA time zone name (e.g. `America/New_York`)."}},"required":["dateparser_str","time_zone_name"],"title":"OrderTemplateNewDateparserResolveReq"},"OrderTemplateNewDateparserResolveRes":{"type":"object","properties":{"anchor_timestamp":{"type":"string","format":"date-time"},"dateparser_str":{"type":"string","minLength":1,"maxLength":512},"dateparser_str_has_time_zone":{"type":"boolean"},"resolved_to_timestamp":{"type":"string","format":"date-time"},"time_zone_name":{"type":"string","description":"IANA time zone name (e.g. `America/New_York`)."}},"required":["anchor_timestamp","dateparser_str","dateparser_str_has_time_zone","resolved_to_timestamp","time_zone_name"],"title":"OrderTemplateNewDateparserResolveRes"},"OrderTemplateNewSortByEnum":{"type":"string","enum":["created_at_timestamp","last_edited_at_timestamp","last_used_at_timestamp","name"],"title":"OrderTemplateNewSortByEnum"},"OrderTemplateNewTaskGroupExpanded1":{"type":"object","properties":{"coordinator_shipper_accounts_by_task_key":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/Account1"}}},"executor_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"off_chrt_executor_org":{"oneOf":[{"$ref":"#/components/schemas/OffChrtOrgData1"},{"type":"null"}]},"task_group":{"$ref":"#/components/schemas/OrderTemplateNewTaskGroup1"}},"required":["task_group"],"title":"OrderTemplateNewTaskGroupExpanded1"},"OrderTemplateNewExpanded1":{"type":"object","properties":{"_id":{"type":"string"},"archived_at_timestamp":{"type":["string","null"],"format":"date-time"},"cargos":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewCargo1"}},"coordinator_assigned_user_ids":{"type":"array","items":{"type":"string"}},"coordinator_department_ids":{"type":"array","items":{"type":"string"}},"coordinator_departments":{"type":"array","items":{"$ref":"#/components/schemas/Department1"}},"coordinator_labels":{"type":"array","items":{"type":"string"}},"coordinator_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"coordinator_org_id":{"type":["string","null"]},"created_at_timestamp":{"type":"string","format":"date-time"},"description":{"type":["string","null"],"maxLength":16384},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"last_used_at_timestamp":{"type":["string","null"],"format":"date-time"},"name":{"type":"string","minLength":1,"maxLength":1024},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_shipper_org":{"oneOf":[{"$ref":"#/components/schemas/OffChrtOrgData1"},{"type":"null"}]},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"schema_version":{"type":"integer"},"service_line":{"$ref":"#/components/schemas/ServiceLineEnum"},"shipper_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"shipper_org_id":{"type":["string","null"]},"task_groups":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewTaskGroup1"}},"task_groups_expanded":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewTaskGroupExpanded1"}},"task_lists_to_apply_at_order_creation":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}},"task_lists_to_apply_at_order_staging":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}}},"required":["_id","created_at_timestamp","last_edited_at_timestamp","name","owned_by_org_id","owned_by_user_id","schema_version"],"title":"OrderTemplateNewExpanded1"},"OrderTemplateNewListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewExpanded1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OrderTemplateNewListRes"},"OrderTemplateNewTypeaheadFieldEnum":{"type":"string","enum":["name"],"title":"OrderTemplateNewTypeaheadFieldEnum"},"OrderTemplateNewTypeaheadValue":{"type":"object","properties":{"order_template_new_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["order_template_new_ids","value"],"title":"OrderTemplateNewTypeaheadValue"},"OrderTemplateNewTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/OrderTemplateNewTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewTypeaheadValue"}}},"required":["type","values"],"title":"OrderTemplateNewTypeaheadResult"},"OrderTemplateNewClientUpdate1":{"type":"object","properties":{"coordinator_assigned_user_ids":{"type":"array","items":{"type":"string"}},"coordinator_department_ids":{"type":"array","items":{"type":"string"}},"coordinator_labels":{"type":"array","items":{"type":"string"}},"coordinator_org_id":{"type":["string","null"]},"coordinator_org_id__set_to_None":{"type":"boolean","default":false},"description":{"type":["string","null"],"maxLength":16384},"description__set_to_None":{"type":"boolean","default":false},"name":{"type":["string","null"],"minLength":1,"maxLength":1024},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_reference_id__set_to_None":{"type":"boolean","default":false},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"off_chrt_shipper_org_data_id__set_to_None":{"type":"boolean","default":false},"service_line":{"oneOf":[{"$ref":"#/components/schemas/ServiceLineEnum"},{"type":"null"}]},"shipper_org_id":{"type":["string","null"]},"shipper_org_id__set_to_None":{"type":"boolean","default":false},"task_lists_to_apply_at_order_creation":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}},"task_lists_to_apply_at_order_staging":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}}},"title":"OrderTemplateNewClientUpdate1"},"OrderTemplateNewClientCreate1":{"type":"object","properties":{"cargos":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewCargo1"}},"coordinator_assigned_user_ids":{"type":"array","items":{"type":"string"}},"coordinator_department_ids":{"type":"array","items":{"type":"string"}},"coordinator_labels":{"type":"array","items":{"type":"string"}},"coordinator_org_id":{"type":["string","null"]},"description":{"type":["string","null"],"maxLength":16384},"name":{"type":"string","minLength":1,"maxLength":1024},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"schema_version":{"type":"integer"},"service_line":{"$ref":"#/components/schemas/ServiceLineEnum"},"shipper_org_id":{"type":["string","null"]},"task_groups":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewTaskGroup1"}},"task_lists_to_apply_at_order_creation":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}},"task_lists_to_apply_at_order_staging":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}}},"required":["name","schema_version"],"title":"OrderTemplateNewClientCreate1"},"OrderTemplateNewCargoReorderReq1":{"type":"object","properties":{"ordered_cargo_keys":{"type":"array","items":{"type":"string","format":"uuid4"}}},"title":"OrderTemplateNewCargoReorderReq1"},"OrderTemplateNewCargoClientCreate1":{"type":"object","properties":{"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"cargo_type":{"$ref":"#/components/schemas/CargoTypeEnum1"},"description":{"type":["string","null"],"maxLength":524288},"girth_inches":{"type":["number","null"],"format":"double"},"height_inches":{"type":["number","null"],"format":"double"},"length_inches":{"type":["number","null"],"format":"double"},"quantity":{"type":["integer","null"]},"schema_version":{"type":"integer","default":1},"special_handling_codes":{"type":"array","items":{"$ref":"#/components/schemas/SpecialHandlingCodeEnum1"}},"stackable":{"type":["boolean","null"]},"turnable":{"type":["boolean","null"]},"weight_pounds":{"type":["number","null"],"format":"double"},"width_inches":{"type":["number","null"],"format":"double"}},"required":["cargo_type"],"title":"OrderTemplateNewCargoClientCreate1"},"OrderTemplateNewCargoClientUpdate1":{"type":"object","properties":{"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"awb_number__set_to_None":{"type":"boolean","default":false},"cargo_type":{"oneOf":[{"$ref":"#/components/schemas/CargoTypeEnum1"},{"type":"null"}]},"description":{"type":["string","null"],"maxLength":524288},"description__set_to_None":{"type":"boolean","default":false},"girth_inches":{"type":["number","null"],"format":"double"},"girth_inches__set_to_None":{"type":"boolean","default":false},"height_inches":{"type":["number","null"],"format":"double"},"height_inches__set_to_None":{"type":"boolean","default":false},"length_inches":{"type":["number","null"],"format":"double"},"length_inches__set_to_None":{"type":"boolean","default":false},"quantity":{"type":["integer","null"]},"quantity__set_to_None":{"type":"boolean","default":false},"special_handling_codes":{"type":"array","items":{"$ref":"#/components/schemas/SpecialHandlingCodeEnum1"}},"stackable":{"type":["boolean","null"]},"stackable__set_to_None":{"type":"boolean","default":false},"turnable":{"type":["boolean","null"]},"turnable__set_to_None":{"type":"boolean","default":false},"weight_pounds":{"type":["number","null"],"format":"double"},"weight_pounds__set_to_None":{"type":"boolean","default":false},"width_inches":{"type":["number","null"],"format":"double"},"width_inches__set_to_None":{"type":"boolean","default":false}},"title":"OrderTemplateNewCargoClientUpdate1"},"OrderTemplateNewTaskArtifactMoveReq1":{"type":"object","properties":{"target_task_key":{"type":"string","format":"uuid4"}},"required":["target_task_key"],"title":"OrderTemplateNewTaskArtifactMoveReq1"},"OrderTemplateNewTaskArtifactReorderReq1":{"type":"object","properties":{"ordered_task_artifact_keys":{"type":"array","items":{"type":"string","format":"uuid4"}}},"title":"OrderTemplateNewTaskArtifactReorderReq1"},"OrderTemplateNewTaskArtifactClientUpdate1":{"type":"object","properties":{"expected_scan_payloads":{"type":"array","items":{"type":"string","minLength":1}},"type":{"oneOf":[{"$ref":"#/components/schemas/TaskArtifactTypeEnum1"},{"type":"null"}]}},"title":"OrderTemplateNewTaskArtifactClientUpdate1"},"OrderTemplateNewTaskArtifactClientCreate1":{"type":"object","properties":{"expected_scan_payloads":{"type":"array","items":{"type":"string","minLength":1}},"schema_version":{"type":"integer","default":1},"type":{"$ref":"#/components/schemas/TaskArtifactTypeEnum1"}},"required":["type"],"title":"OrderTemplateNewTaskArtifactClientCreate1"},"OrderTemplateNewTaskGroupReorderReq1":{"type":"object","properties":{"ordered_task_group_keys":{"type":"array","items":{"type":"string","format":"uuid4"}}},"title":"OrderTemplateNewTaskGroupReorderReq1"},"OrderTemplateNewTaskGroupClientCreate1":{"type":"object","properties":{"coordinator_setup_notes":{"type":["string","null"]},"driver_id":{"type":["string","null"]},"executor_assigned_user_ids":{"type":"array","items":{"type":"string"}},"executor_org_id":{"type":["string","null"]},"off_chrt_executor_org_data_id":{"type":["string","null"]},"task_group_type":{"$ref":"#/components/schemas/TaskGroupTypeEnum1"},"vehicle_type":{"oneOf":[{"$ref":"#/components/schemas/VehicleTypeEnum"},{"type":"null"}]}},"required":["task_group_type"],"title":"OrderTemplateNewTaskGroupClientCreate1"},"OrderTemplateNewTaskGroupClientUpdate1":{"type":"object","properties":{"coordinator_setup_notes":{"type":["string","null"]},"coordinator_setup_notes__set_to_None":{"type":"boolean","default":false},"driver_id":{"type":["string","null"]},"driver_id__set_to_None":{"type":"boolean","default":false},"executor_assigned_user_ids":{"type":"array","items":{"type":"string"}},"executor_org_id":{"type":["string","null"]},"executor_org_id__set_to_None":{"type":"boolean","default":false},"off_chrt_executor_org_data_id":{"type":["string","null"]},"off_chrt_executor_org_data_id__set_to_None":{"type":"boolean","default":false},"task_group_type":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupTypeEnum1"},{"type":"null"}]},"vehicle_type":{"oneOf":[{"$ref":"#/components/schemas/VehicleTypeEnum"},{"type":"null"}]},"vehicle_type__set_to_None":{"type":"boolean","default":false}},"title":"OrderTemplateNewTaskGroupClientUpdate1"},"OrderTemplateNewTaskCargoAssociationsReq1":{"type":"object","properties":{"cargo_keys":{"type":"array","items":{"type":"string","format":"uuid4"}}},"title":"OrderTemplateNewTaskCargoAssociationsReq1"},"OrderTemplateNewTaskMoveReq1":{"type":"object","properties":{"target_task_group_key":{"type":"string","format":"uuid4"}},"required":["target_task_group_key"],"title":"OrderTemplateNewTaskMoveReq1"},"OrderTemplateNewTaskReorderReq1":{"type":"object","properties":{"ordered_task_keys":{"type":"array","items":{"type":"string","format":"uuid4"}}},"title":"OrderTemplateNewTaskReorderReq1"},"OrderTemplateNewTaskClientCreate1Action":{"oneOf":[{"$ref":"#/components/schemas/ChrtGroundProviderTaskActionEnum1"},{"$ref":"#/components/schemas/CargoOnFlightTaskActionEnum1"},{"$ref":"#/components/schemas/OnboardCourierTaskActionEnum1"}],"title":"OrderTemplateNewTaskClientCreate1Action"},"OrderTemplateNewTaskClientCreate1":{"type":"object","properties":{"action":{"oneOf":[{"$ref":"#/components/schemas/OrderTemplateNewTaskClientCreate1Action"},{"type":"null"}]},"cargo_keys":{"type":"array","items":{"type":"string","format":"uuid4"}},"contact_ids":{"type":"array","items":{"type":"string"}},"coordinator_shipper_account_ids":{"type":"array","items":{"type":"string"}},"datetime_windows_dateparser_str":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewDateTimeWindow1"}},"flight_leg_id":{"type":["string","null"]},"geofence_distance_miles":{"type":"number","format":"double","exclusiveMinimum":0,"default":1},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"order_placer_comments":{"type":["string","null"]},"schema_version":{"type":"integer","default":1}},"title":"OrderTemplateNewTaskClientCreate1"},"OrderTemplateNewTaskClientUpdate1Action":{"oneOf":[{"$ref":"#/components/schemas/ChrtGroundProviderTaskActionEnum1"},{"$ref":"#/components/schemas/CargoOnFlightTaskActionEnum1"},{"$ref":"#/components/schemas/OnboardCourierTaskActionEnum1"}],"title":"OrderTemplateNewTaskClientUpdate1Action"},"OrderTemplateNewTaskClientUpdate1":{"type":"object","properties":{"action":{"oneOf":[{"$ref":"#/components/schemas/OrderTemplateNewTaskClientUpdate1Action"},{"type":"null"}]},"contact_ids":{"type":"array","items":{"type":"string"}},"coordinator_shipper_account_ids":{"type":"array","items":{"type":"string"}},"datetime_windows_dateparser_str":{"type":"array","items":{"$ref":"#/components/schemas/OrderTemplateNewDateTimeWindow1"}},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"location__set_to_None":{"type":"boolean","default":false},"order_placer_comments":{"type":["string","null"]},"order_placer_comments__set_to_None":{"type":"boolean","default":false}},"title":"OrderTemplateNewTaskClientUpdate1"},"OrdersAssignReq":{"type":"object","properties":{"operator_user_ids":{"type":"array","items":{"type":"string"}}},"required":["operator_user_ids"],"title":"OrdersAssignReq"},"OrdersCancelManyReq":{"type":"object","properties":{"order_ids":{"type":"array","items":{"type":"string"}}},"required":["order_ids"],"title":"OrdersCancelManyReq"},"OrdersDeleteManyDraftsReq":{"type":"object","properties":{"order_ids":{"type":"array","items":{"type":"string"}}},"required":["order_ids"],"title":"OrdersDeleteManyDraftsReq"},"OrdersDeleteManyDraftsRes":{"type":"object","properties":{"deleted_order_ids":{"type":"array","items":{"type":"string"}}},"required":["deleted_order_ids"],"title":"OrdersDeleteManyDraftsRes"},"OrdersTaskGroupOrderingReq":{"type":"object","properties":{"task_group_ids":{"type":"array","items":{"type":"string"},"description":"Complete list of task group IDs in the desired order."}},"required":["task_group_ids"],"title":"OrdersTaskGroupOrderingReq"},"OrderLabelTypeaheadFieldEnum":{"type":"string","enum":["label"],"title":"OrderLabelTypeaheadFieldEnum"},"OrderTypeaheadValue":{"type":"object","properties":{"order_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["order_ids","value"],"title":"OrderTypeaheadValue"},"OrderLabelTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/OrderLabelTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/OrderTypeaheadValue"}}},"required":["type","values"],"title":"OrderLabelTypeaheadResult"},"OrderTypeaheadFieldEnum":{"type":"string","enum":["off_chrt_reference_id","short_id","awb_numbers"],"title":"OrderTypeaheadFieldEnum"},"OrderTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/OrderTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/OrderTypeaheadValue"}}},"required":["type","values"],"title":"OrderTypeaheadResult"},"OrdersUnassignReq":{"type":"object","properties":{"operator_user_ids":{"type":"array","items":{"type":"string"}}},"required":["operator_user_ids"],"title":"OrdersUnassignReq"},"OrdersUpdateDepartmentsReq":{"type":"object","properties":{"department_ids":{"type":"array","items":{"type":"string"}}},"title":"OrdersUpdateDepartmentsReq"},"OrdersUpdateDraftReq":{"type":"object","properties":{"coordinator_org_id":{"type":["string","null"]},"coordinator_org_id__set_to_None":{"type":"boolean","default":false},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"off_chrt_shipper_org_data_id__set_to_None":{"type":"boolean","default":false},"service_line":{"oneOf":[{"$ref":"#/components/schemas/ServiceLineEnum"},{"type":"null"}]},"shipper_org_id":{"type":["string","null"]},"shipper_org_id__set_to_None":{"type":"boolean","default":false}},"title":"OrdersUpdateDraftReq"},"OrdersUpdateDraftRes":{"type":"object","properties":{"coordinator_org_id":{"type":["string","null"]},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"order_id":{"type":"string"},"order_short_id":{"type":"string"},"service_line":{"$ref":"#/components/schemas/ServiceLineEnum"},"shipper_org_id":{"type":["string","null"]}},"required":["coordinator_org_id","off_chrt_shipper_org_data_id","order_id","order_short_id","service_line","shipper_org_id"],"title":"OrdersUpdateDraftRes"},"OrdersUpdateLabelsReq":{"type":"object","properties":{"labels":{"type":"array","items":{"type":"string"}}},"title":"OrdersUpdateLabelsReq"},"OrdersUpdateOffChrtReferenceIdReq":{"type":"object","properties":{"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_reference_id__set_to_None":{"type":"boolean","default":false}},"title":"OrdersUpdateOffChrtReferenceIdReq"},"OrdersUpdateOffChrtReferenceIdRes":{"type":"object","properties":{"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64}},"required":["off_chrt_reference_id"],"title":"OrdersUpdateOffChrtReferenceIdRes"},"ValidationIssueScope":{"type":"object","properties":{"cargo_id":{"type":["string","null"]},"task_group_id":{"type":["string","null"]},"task_id":{"type":["string","null"]}},"title":"ValidationIssueScope"},"ValidationIssue":{"type":"object","properties":{"requirement_key":{"type":"string"},"scope":{"oneOf":[{"$ref":"#/components/schemas/ValidationIssueScope"},{"type":"null"}]}},"required":["requirement_key"],"title":"ValidationIssue"},"OrderDraftValidationRequirements":{"type":"object","properties":{"all_entities_are_draft":{"type":["boolean","null"]},"at_least_one_task_has_time_window":{"type":["boolean","null"]},"cargos_have_valid_lifecycle":{"type":["boolean","null"]},"coordinator_shipper_accounts_match_order":{"type":["boolean","null"]},"order_has_coordinator":{"type":["boolean","null"]},"order_has_shipper":{"type":["boolean","null"]},"order_has_task_groups":{"type":["boolean","null"]},"task_groups_have_valid_task_sequence":{"type":["boolean","null"]},"task_groups_have_valid_tasks":{"type":["boolean","null"]},"tasks_have_valid_actions":{"type":["boolean","null"]},"tasks_have_valid_cargo":{"type":["boolean","null"]}},"required":["all_entities_are_draft","at_least_one_task_has_time_window","cargos_have_valid_lifecycle","coordinator_shipper_accounts_match_order","order_has_coordinator","order_has_shipper","order_has_task_groups","task_groups_have_valid_task_sequence","task_groups_have_valid_tasks","tasks_have_valid_actions","tasks_have_valid_cargo"],"title":"OrderDraftValidationRequirements"},"OrderDraftValidationResult":{"type":"object","properties":{"is_valid":{"type":"boolean"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/ValidationIssue"}},"requirements":{"$ref":"#/components/schemas/OrderDraftValidationRequirements"}},"required":["is_valid","requirements"],"title":"OrderDraftValidationResult"},"CargoClientCreate1":{"type":"object","properties":{"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"cargo_type":{"$ref":"#/components/schemas/CargoTypeEnum1"},"description":{"type":["string","null"],"maxLength":524288},"girth_inches":{"type":["number","null"],"format":"double"},"height_inches":{"type":["number","null"],"format":"double"},"length_inches":{"type":["number","null"],"format":"double"},"quantity":{"type":["integer","null"]},"schema_version":{"type":"integer"},"special_handling_codes":{"type":"array","items":{"$ref":"#/components/schemas/SpecialHandlingCodeEnum1"}},"stackable":{"type":["boolean","null"]},"turnable":{"type":["boolean","null"]},"weight_pounds":{"type":["number","null"],"format":"double"},"width_inches":{"type":["number","null"],"format":"double"}},"required":["cargo_type","schema_version"],"title":"CargoClientCreate1"},"OrdersAddCargoReq":{"type":"object","properties":{"cargo":{"$ref":"#/components/schemas/CargoClientCreate1"},"order_id":{"type":"string"}},"required":["cargo","order_id"],"title":"OrdersAddCargoReq"},"OrdersAssociateCargoWithTaskReq":{"type":"object","properties":{"cargo_id":{"type":"string"},"order_id":{"type":"string"},"task_id":{"type":"string"}},"required":["cargo_id","order_id","task_id"],"title":"OrdersAssociateCargoWithTaskReq"},"OrdersUnassociateCargoWithTaskReq":{"type":"object","properties":{"cargo_id":{"type":"string"},"order_id":{"type":"string"},"task_id":{"type":"string"}},"required":["cargo_id","order_id","task_id"],"title":"OrdersUnassociateCargoWithTaskReq"},"CargoClientUpdate1":{"type":"object","properties":{"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"awb_number__set_to_None":{"type":"boolean","default":false},"cargo_type":{"oneOf":[{"$ref":"#/components/schemas/CargoTypeEnum1"},{"type":"null"}]},"description":{"type":["string","null"],"maxLength":524288},"description__set_to_None":{"type":"boolean","default":false},"girth_inches":{"type":["number","null"],"format":"double"},"girth_inches__set_to_None":{"type":"boolean","default":false},"height_inches":{"type":["number","null"],"format":"double"},"height_inches__set_to_None":{"type":"boolean","default":false},"length_inches":{"type":["number","null"],"format":"double"},"length_inches__set_to_None":{"type":"boolean","default":false},"quantity":{"type":["integer","null"]},"quantity__set_to_None":{"type":"boolean","default":false},"special_handling_codes":{"type":"array","items":{"$ref":"#/components/schemas/SpecialHandlingCodeEnum1"}},"stackable":{"type":["boolean","null"]},"stackable__set_to_None":{"type":"boolean","default":false},"turnable":{"type":["boolean","null"]},"turnable__set_to_None":{"type":"boolean","default":false},"weight_pounds":{"type":["number","null"],"format":"double"},"weight_pounds__set_to_None":{"type":"boolean","default":false},"width_inches":{"type":["number","null"],"format":"double"},"width_inches__set_to_None":{"type":"boolean","default":false}},"title":"CargoClientUpdate1"},"OrdersCreateDraftFromOrderTemplateNewReq":{"type":"object","properties":{"anchor_timestamp":{"type":["string","null"],"format":"date-time"},"creation_idempotency_key":{"type":["string","null"]},"order_template_new_core":{"oneOf":[{"$ref":"#/components/schemas/OrderTemplateNewCore1"},{"type":"null"}]},"order_template_new_id":{"type":["string","null"]}},"title":"OrdersCreateDraftFromOrderTemplateNewReq"},"OrdersOpenDraftRes":{"type":"object","properties":{"order_id":{"type":"string"},"order_short_id":{"type":"string"}},"required":["order_id","order_short_id"],"title":"OrdersOpenDraftRes"},"OrdersOpenDraftReq":{"type":"object","properties":{"coordinator_org_id":{"type":["string","null"]},"creation_idempotency_key":{"type":["string","null"],"description":"Optional key, unique per caller org, that makes draft creation idempotent: re-sending the same key returns the already-created draft instead of creating a duplicate."},"department_ids":{"type":"array","items":{"type":"string"}},"labels":{"type":"array","items":{"type":"string"}},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"service_line":{"$ref":"#/components/schemas/ServiceLineEnum"},"shipper_org_id":{"type":["string","null"]},"task_lists_to_apply_at_order_creation":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"},"description":"OperationsTaskList applications to materialize on the Order for the coordinator org at draft creation, each with optional department override and first-deadline pin."},"task_lists_to_apply_at_order_staging":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"},"description":"OperationsTaskList applications stored on the Order for deferred application at staging, each with an optional department override."}},"title":"OrdersOpenDraftReq"},"OrderAndTaskGroupExpandedReq":{"type":"object","properties":{"expand_accounts":{"type":"boolean","default":false},"expand_cargos":{"type":"boolean","default":false},"expand_contacts":{"type":"boolean","default":false},"expand_coordinator_departments":{"type":"boolean","default":false},"expand_coordinator_org_company_name":{"type":"boolean","default":false},"expand_coordinator_org_handle":{"type":"boolean","default":false},"expand_coordinator_task_lists_to_apply_at_order_staging":{"type":"boolean","default":false},"expand_driver":{"type":"boolean","default":false},"expand_executor_departments":{"type":"boolean","default":false},"expand_executor_org_company_name":{"type":"boolean","default":false},"expand_executor_org_handle":{"type":"boolean","default":false},"expand_notification_intents_ad_hoc":{"type":"boolean","default":false},"expand_off_chrt_shipper_org_company_name":{"type":"boolean","default":false},"expand_shipper_org_company_name":{"type":"boolean","default":false},"expand_task_artifacts":{"type":"boolean","default":false},"expand_tasks":{"type":"boolean","default":false}},"title":"OrderAndTaskGroupExpandedReq"},"TaskListToApplyToOrderExpanded":{"type":"object","properties":{"operations_task_list":{"oneOf":[{"$ref":"#/components/schemas/OperationsTaskList1"},{"type":"null"}]},"task_list_to_apply":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}},"required":["task_list_to_apply"],"title":"TaskListToApplyToOrderExpanded"},"OrderProviderRoleEnum":{"type":"string","enum":["coordinator","executor"],"description":"Role a provider org plays on an order.","title":"OrderProviderRoleEnum"},"DriverLimited1":{"type":"object","properties":{"_id":{"type":"string"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"vehicle_types":{"type":"array","items":{"$ref":"#/components/schemas/VehicleTypeEnum"}}},"required":["_id","org_id","schema_version"],"title":"DriverLimited1"},"TaskGroupExpandedDriver":{"oneOf":[{"$ref":"#/components/schemas/Driver1"},{"$ref":"#/components/schemas/DriverLimited1"}],"title":"TaskGroupExpandedDriver"},"CargoStatusEnum1":{"type":"string","enum":["draft","staged","in_transit","delivered","skipped","cancelled","exception"],"title":"CargoStatusEnum1"},"Cargo1":{"type":"object","properties":{"_id":{"type":"string"},"awb_number":{"type":["string","null"],"pattern":"^\\d{3}-\\d{8}$"},"awb_number_line_items_generated":{"type":"boolean","default":false},"cancelled_at_timestamp":{"type":["string","null"],"format":"date-time"},"cargo_type":{"$ref":"#/components/schemas/CargoTypeEnum1"},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":["string","null"]},"delivered_at_timestamp":{"type":["string","null"],"format":"date-time"},"description":{"type":["string","null"],"maxLength":524288},"device_ids":{"type":"array","items":{"type":"string"}},"draft_started_at_timestamp":{"type":"string","format":"date-time"},"exception_at_timestamp":{"type":["string","null"],"format":"date-time"},"girth_inches":{"type":["number","null"],"format":"double"},"height_inches":{"type":["number","null"],"format":"double"},"in_transit_at_timestamp":{"type":["string","null"],"format":"date-time"},"length_inches":{"type":["number","null"],"format":"double"},"order_id":{"type":"string"},"order_short_id":{"type":"string"},"quantity":{"type":["integer","null"]},"schema_version":{"type":"integer"},"skipped_at_timestamp":{"type":["string","null"],"format":"date-time"},"special_handling_codes":{"type":"array","items":{"$ref":"#/components/schemas/SpecialHandlingCodeEnum1"}},"stackable":{"type":["boolean","null"]},"staged_at_timestamp":{"type":["string","null"],"format":"date-time"},"status":{"$ref":"#/components/schemas/CargoStatusEnum1"},"turnable":{"type":["boolean","null"]},"weight_pounds":{"type":["number","null"],"format":"double"},"width_inches":{"type":["number","null"],"format":"double"}},"required":["_id","cargo_type","created_by_org_id","draft_started_at_timestamp","order_id","order_short_id","schema_version"],"title":"Cargo1"},"CustodyPartyExpanded":{"type":"object","properties":{"contact":{"oneOf":[{"$ref":"#/components/schemas/Contact1"},{"type":"null"}]},"contact_id":{"type":["string","null"]},"name":{"type":["string","null"],"minLength":1,"maxLength":255},"note":{"type":["string","null"],"maxLength":524288},"user_id":{"type":["string","null"]},"user_name":{"type":["string","null"]}},"title":"CustodyPartyExpanded"},"Task1Action":{"oneOf":[{"$ref":"#/components/schemas/ChrtGroundProviderTaskActionEnum1"},{"$ref":"#/components/schemas/CargoOnFlightTaskActionEnum1"},{"$ref":"#/components/schemas/OnboardCourierTaskActionEnum1"}],"title":"Task1Action"},"DateTimeWindow1":{"type":"object","properties":{"left_boundary_timestamp":{"type":["string","null"],"format":"date-time"},"right_boundary_timestamp":{"type":["string","null"],"format":"date-time"}},"title":"DateTimeWindow1"},"TaskExecutorOrgNote1":{"type":"object","properties":{"note":{"type":"string","maxLength":524288},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"timestamp":{"type":"string","format":"date-time"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["note","org_id","timestamp","user_id"],"title":"TaskExecutorOrgNote1"},"CustodyParty1":{"type":"object","properties":{"contact_id":{"type":["string","null"]},"name":{"type":["string","null"],"minLength":1,"maxLength":255},"note":{"type":["string","null"],"maxLength":524288},"user_id":{"type":["string","null"]}},"title":"CustodyParty1"},"TaskStatusEnum1":{"type":"string","enum":["draft","staged","completed","skipped","attempt","cancelled","exception"],"title":"TaskStatusEnum1"},"Task1":{"type":"object","properties":{"_id":{"type":"string"},"action":{"oneOf":[{"$ref":"#/components/schemas/Task1Action"},{"type":"null"}]},"attempted_at_timestamp":{"type":["string","null"],"format":"date-time"},"cancelled_at_timestamp":{"type":["string","null"],"format":"date-time"},"cargo_ids":{"type":"array","items":{"type":"string"}},"completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"completed_by_org_id":{"type":["string","null"]},"completed_by_user_id":{"type":["string","null"]},"completion_submitted_at_timestamp":{"type":["string","null"],"format":"date-time"},"contact_ids":{"type":"array","items":{"type":"string"}},"coordinator_shipper_account_ids":{"type":"array","items":{"type":"string"}},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":["string","null"]},"datetime_windows":{"type":"array","items":{"$ref":"#/components/schemas/DateTimeWindow1"}},"draft_started_at_timestamp":{"type":"string","format":"date-time"},"exception_at_timestamp":{"type":["string","null"],"format":"date-time"},"executor_org_notes":{"type":"array","items":{"$ref":"#/components/schemas/TaskExecutorOrgNote1"}},"flight_leg_id":{"type":["string","null"]},"geofence_distance_miles":{"type":"number","format":"double","exclusiveMinimum":0,"default":1},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"order_id":{"type":"string"},"order_placer_comments":{"type":["string","null"]},"order_short_id":{"type":"string"},"provided_by":{"oneOf":[{"$ref":"#/components/schemas/CustodyParty1"},{"type":"null"}]},"received_by":{"oneOf":[{"$ref":"#/components/schemas/CustodyParty1"},{"type":"null"}]},"schema_version":{"type":"integer"},"short_id":{"type":"string"},"skipped_at_timestamp":{"type":["string","null"],"format":"date-time"},"staged_at_timestamp":{"type":["string","null"],"format":"date-time"},"status":{"$ref":"#/components/schemas/TaskStatusEnum1"},"task_artifact_ids":{"type":"array","items":{"type":"string"}},"task_group_id":{"type":"string"},"wait_time_end_timestamp":{"type":["string","null"],"format":"date-time"},"wait_time_start_timestamp":{"type":["string","null"],"format":"date-time"},"wait_time_started_in_geofence":{"type":["boolean","null"]},"wait_time_validated":{"type":["boolean","null"]},"wait_time_validated_by_user_id":{"type":["string","null"]}},"required":["_id","created_by_org_id","draft_started_at_timestamp","order_id","order_short_id","schema_version","short_id","task_group_id"],"title":"Task1"},"TaskArtifactStatusEnum1":{"type":"string","enum":["draft","staged","completed","skipped","cancelled","exception"],"title":"TaskArtifactStatusEnum1"},"TaskArtifact1":{"type":"object","properties":{"_id":{"type":"string"},"cancelled_at_timestamp":{"type":["string","null"],"format":"date-time"},"completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"completed_by_org_id":{"type":["string","null"]},"completed_by_user_id":{"type":["string","null"]},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":["string","null"]},"draft_started_at_timestamp":{"type":"string","format":"date-time"},"exception_at_timestamp":{"type":["string","null"],"format":"date-time"},"expected_scan_payloads":{"type":"array","items":{"type":"string","minLength":1}},"observed_scan_payloads":{"type":"array","items":{"type":"string","minLength":1}},"order_id":{"type":"string"},"order_short_id":{"type":"string"},"provided_by":{"oneOf":[{"$ref":"#/components/schemas/CustodyParty1"},{"type":"null"}]},"received_by":{"oneOf":[{"$ref":"#/components/schemas/CustodyParty1"},{"type":"null"}]},"requested_by_org_id":{"type":["string","null"]},"requested_by_user_id":{"type":["string","null"]},"schema_version":{"type":"integer"},"skipped_at_timestamp":{"type":["string","null"],"format":"date-time"},"staged_at_timestamp":{"type":["string","null"],"format":"date-time"},"status":{"$ref":"#/components/schemas/TaskArtifactStatusEnum1"},"task_artifact_s3_object_metadata_ids":{"type":"array","items":{"type":"string"}},"task_group_id":{"type":"string"},"task_id":{"type":"string"},"type":{"$ref":"#/components/schemas/TaskArtifactTypeEnum1"}},"required":["_id","created_by_org_id","draft_started_at_timestamp","order_id","order_short_id","schema_version","task_group_id","task_id","type"],"title":"TaskArtifact1"},"TaskExpanded":{"type":"object","properties":{"cargos":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Cargo1"}},"contacts":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Contact1"}},"provided_by":{"oneOf":[{"$ref":"#/components/schemas/CustodyPartyExpanded"},{"type":"null"}]},"received_by":{"oneOf":[{"$ref":"#/components/schemas/CustodyPartyExpanded"},{"type":"null"}]},"task":{"$ref":"#/components/schemas/Task1"},"task_artifacts":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskArtifact1"}}},"required":["task"],"title":"TaskExpanded"},"TaskGroupExpanded":{"type":"object","properties":{"awb_numbers":{"type":["array","null"],"items":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}},"coordinator_org_company_name":{"type":["string","null"]},"coordinator_org_handle":{"type":["string","null"],"pattern":"^@[a-zA-Z0-9_-]+$","minLength":2,"maxLength":30},"coordinator_org_id":{"type":["string","null"]},"driver":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupExpandedDriver"},{"type":"null"}]},"executor_departments":{"type":"array","items":{"$ref":"#/components/schemas/Department1"}},"executor_org_company_name":{"type":["string","null"]},"executor_org_handle":{"type":["string","null"],"pattern":"^@[a-zA-Z0-9_-]+$","minLength":2,"maxLength":30},"executor_org_id":{"type":["string","null"]},"off_chrt_executor_org_company_name":{"type":["string","null"]},"off_chrt_executor_org_data_id":{"type":["string","null"]},"off_chrt_shipper_org_company_name":{"type":["string","null"]},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"shipper_org_company_name":{"type":["string","null"]},"shipper_org_id":{"type":["string","null"]},"task_group":{"$ref":"#/components/schemas/TaskGroup1"},"tasks_expanded":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskExpanded"}}},"required":["task_group"],"title":"TaskGroupExpanded"},"OrderExpandedForProvider":{"type":"object","properties":{"coordinator_departments":{"type":"array","items":{"$ref":"#/components/schemas/Department1"}},"coordinator_org_company_name":{"type":["string","null"]},"coordinator_org_handle":{"type":["string","null"],"pattern":"^@[a-zA-Z0-9_-]+$","minLength":2,"maxLength":30},"coordinator_shipper_accounts":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Account1"}},"coordinator_task_lists_to_apply_at_order_staging_expanded":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskListToApplyToOrderExpanded"}},"notification_intents_ad_hoc":{"type":["array","null"],"items":{"$ref":"#/components/schemas/NotificationIntentAdHoc1"}},"off_chrt_shipper_org_company_name":{"type":["string","null"]},"order":{"$ref":"#/components/schemas/OrderLimitedForProvider1"},"provider_roles":{"type":"array","items":{"$ref":"#/components/schemas/OrderProviderRoleEnum"}},"shipper_org_company_name":{"type":["string","null"]},"task_groups_expanded":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskGroupExpanded"}},"unassigned_cargos":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Cargo1"}}},"required":["order","provider_roles"],"title":"OrderExpandedForProvider"},"OrderTaskGroupSharedDetails1":{"type":"object","properties":{"executor_org_id":{"type":["string","null"]},"off_chrt_executor_org_data_id":{"type":["string","null"]},"task_group_id":{"type":"string"},"task_group_type":{"$ref":"#/components/schemas/TaskGroupTypeEnum1"}},"required":["task_group_id","task_group_type"],"title":"OrderTaskGroupSharedDetails1"},"OrderLimitedForShipper1":{"type":"object","properties":{"_id":{"type":"string"},"awb_numbers":{"type":"array","items":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}},"cancelled_at_timestamp":{"type":["string","null"],"format":"date-time"},"completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"coordinator_org_id":{"type":["string","null"]},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"creation_idempotency_key":{"type":["string","null"],"description":"Client-supplied key for idempotent draft creation"},"draft_started_at_timestamp":{"type":"string","format":"date-time"},"exception_at_timestamp":{"type":["string","null"],"format":"date-time"},"in_progress_at_timestamp":{"type":["string","null"],"format":"date-time"},"invoice_ids":{"type":"array","items":{"type":"string"}},"last_delivery_task_completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"order_classification_by_task_group_type":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupTypeEnum1"},{"type":"null"}]},"order_schedule_id":{"type":["string","null"]},"order_schedule_run_idempotency_key":{"type":["string","null"]},"order_template_new_id":{"type":["string","null"]},"schema_version":{"type":"integer"},"service_line":{"$ref":"#/components/schemas/ServiceLineEnum"},"shipper_org_id":{"type":["string","null"]},"short_id":{"type":"string"},"staged_at_timestamp":{"type":["string","null"],"format":"date-time"},"status":{"$ref":"#/components/schemas/OrderStatusEnum1"},"task_group_details":{"type":"array","items":{"$ref":"#/components/schemas/OrderTaskGroupSharedDetails1"}}},"required":["_id","created_by_org_id","created_by_user_id","draft_started_at_timestamp","schema_version","short_id"],"description":"Shipper view: coordinator operational fields hidden; task groups reduced\nto shared executor identifiers.","title":"OrderLimitedForShipper1"},"OrderExpandedForShipper":{"type":"object","properties":{"coordinator_org_company_name":{"type":["string","null"]},"coordinator_org_handle":{"type":["string","null"],"pattern":"^@[a-zA-Z0-9_-]+$","minLength":2,"maxLength":30},"coordinator_shipper_accounts":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Account1"}},"notification_intents_ad_hoc":{"type":["array","null"],"items":{"$ref":"#/components/schemas/NotificationIntentAdHoc1"}},"off_chrt_shipper_org_company_name":{"type":["string","null"]},"order":{"$ref":"#/components/schemas/OrderLimitedForShipper1"},"shipper_org_company_name":{"type":["string","null"]},"task_groups_expanded":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TaskGroupExpanded"}},"unassigned_cargos":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Cargo1"}}},"required":["order"],"title":"OrderExpandedForShipper"},"OrderProviderRoleFilterEnum":{"type":"string","enum":["all","coordinator","executor"],"title":"OrderProviderRoleFilterEnum"},"OrderSortByEnum":{"type":"string","enum":["draft_started_at_timestamp","staged_at_timestamp","in_progress_at_timestamp","completed_at_timestamp","last_delivery_task_completed_at_timestamp","cancelled_at_timestamp","exception_at_timestamp"],"title":"OrderSortByEnum"},"OrdersExpandedListForProviderRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderExpandedForProvider"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OrdersExpandedListForProviderRes"},"OrdersExpandedListForShipperRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderExpandedForShipper"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OrdersExpandedListForShipperRes"},"OrderEventSortByEnum":{"type":"string","enum":["timestamp"],"title":"OrderEventSortByEnum"},"OrderEventActionEnum1":{"type":"string","enum":["shipping.order.draft_started","shipping.order.staged","shipping.order.in_progress","shipping.order.completed","shipping.order.cancelled","shipping.order.exception","shipping.order.updated","shipping.order.deleted","shipping.task_group.added","shipping.task_group.staged","shipping.task_group.provider_assigned","shipping.task_group.driver_assigned","shipping.task_group.driver_unassigned","shipping.task_group.in_progress","shipping.task_group.completed","shipping.task_group.skipped","shipping.task_group.cancelled","shipping.task_group.exception","shipping.task_group.message","shipping.task_group.file_added","shipping.task_group.file_deleted","shipping.task_group.tasks_ordering_updated","shipping.task_group.flight_info_updated","shipping.task_group.vehicle_type_updated","shipping.task_group.tracking_sharing_updated","shipping.task_group.ordering_updated","shipping.task_group.deleted","shipping.task.added","shipping.task.staged","shipping.task.attempted","shipping.task.completed","shipping.task.skipped","shipping.task.cancelled","shipping.task.exception","shipping.task.wait_time_started","shipping.task.wait_time_ended","shipping.task.wait_time_validated","shipping.task.task_artifact_completed","shipping.task.executor_org_note_added","shipping.task.updated","shipping.task.deleted","shipping.cargo.added","shipping.cargo.staged","shipping.cargo.in_transit","shipping.cargo.delivered","shipping.cargo.skipped","shipping.cargo.cancelled","shipping.cargo.exception","shipping.cargo.device_linked","shipping.cargo.device_unlinked","shipping.cargo.associated","shipping.cargo.unassociated","shipping.cargo.updated","shipping.cargo.tracking_sharing_updated","shipping.cargo.deleted","shipping.cargo_on_flight_air_waybill.created","shipping.cargo_on_flight_air_waybill.updated","shipping.cargo_on_flight_air_waybill.deleted","shipping.cargo_on_flight_air_waybill.sent","shipping.cargo_on_flight_air_waybill.airline_responded","shipping.cargo_on_flight_air_waybill.marked_accepted","shipping.cargo_on_flight_house_air_waybill.created","shipping.cargo_on_flight_house_air_waybill.updated","shipping.cargo_on_flight_house_air_waybill.deleted","shipping.cargo_on_flight_booking.draft_started","shipping.cargo_on_flight_booking.searched","shipping.cargo_on_flight_booking.requested","shipping.cargo_on_flight_booking.confirmed","shipping.cargo_on_flight_booking.rejected","shipping.cargo_on_flight_booking.failed","shipping.cargo_on_flight_booking.cancellation_requested","shipping.cargo_on_flight_booking.cancelled","shipping.cargo_on_flight_booking.updated","shipping.cargo_on_flight_booking.deleted","shipping.task_artifact.added","shipping.task_artifact.completed","shipping.task_artifact.updated","shipping.task_artifact.file_added","shipping.task_artifact.file_deleted","shipping.task_artifact.deleted","shipping.account.associated","shipping.account.removed","shipping.contact.associated","shipping.contact.removed"],"description":"Canonical vocabulary for shipping order-event and notification actions.","title":"OrderEventActionEnum1"},"OrderEventSystemActorEnum1":{"type":"string","enum":["shipping_state_sync","temporal_workflow","shipping_integration_sync","flight_tracker","geofence_tracker","order_schedule","system_automation","cargo_on_flight_integration_sync"],"title":"OrderEventSystemActorEnum1"},"OrderEventActor1":{"type":"object","properties":{"org_id":{"type":["string","null"]},"system":{"oneOf":[{"$ref":"#/components/schemas/OrderEventSystemActorEnum1"},{"type":"null"}]},"user_id":{"type":["string","null"]}},"title":"OrderEventActor1"},"Order1":{"type":"object","properties":{"_id":{"type":"string"},"awb_numbers":{"type":"array","items":{"type":"string","pattern":"^\\d{3}-\\d{8}$"}},"cancelled_at_timestamp":{"type":["string","null"],"format":"date-time"},"completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"coordinator_assigned_user_ids":{"type":"array","items":{"type":"string"}},"coordinator_department_ids":{"type":"array","items":{"type":"string"}},"coordinator_labels":{"type":"array","items":{"type":"string"}},"coordinator_org_id":{"type":["string","null"]},"coordinator_shipper_account_ids":{"type":"array","items":{"type":"string"}},"coordinator_task_lists_to_apply_at_order_staging":{"type":"array","items":{"$ref":"#/components/schemas/TaskListToApplyToOrder1"}},"created_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"created_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"creation_idempotency_key":{"type":["string","null"],"description":"Client-supplied key for idempotent draft creation"},"draft_started_at_timestamp":{"type":"string","format":"date-time"},"exception_at_timestamp":{"type":["string","null"],"format":"date-time"},"in_progress_at_timestamp":{"type":["string","null"],"format":"date-time"},"invoice_ids":{"type":"array","items":{"type":"string"}},"last_delivery_task_completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"order_classification_by_task_group_type":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupTypeEnum1"},{"type":"null"}]},"order_schedule_id":{"type":["string","null"]},"order_schedule_run_idempotency_key":{"type":["string","null"]},"order_template_new_id":{"type":["string","null"]},"schema_version":{"type":"integer"},"service_line":{"$ref":"#/components/schemas/ServiceLineEnum"},"shipper_org_id":{"type":["string","null"]},"short_id":{"type":"string"},"staged_at_timestamp":{"type":["string","null"],"format":"date-time"},"status":{"$ref":"#/components/schemas/OrderStatusEnum1"},"task_group_details":{"type":"array","items":{"$ref":"#/components/schemas/OrderTaskGroupExecutorDetails1"}}},"required":["_id","created_by_org_id","created_by_user_id","draft_started_at_timestamp","schema_version","short_id"],"title":"Order1"},"Model":{"type":"string","enum":["gpt-6-astra","gpt-6.1-sol","gpt-6-luna","claude-opus-5-5","claude-sonnet-5","claude-haiku-4-5"],"description":"Model identifiers approved for new runtime requests.","title":"Model"},"ArchivedModel":{"type":"string","enum":["gpt-5.5","gpt-5.4","gpt-5.4-mini","claude-opus-4-7","claude-sonnet-4-6","claude-haiku-4-5","gpt-5.6-terra","gpt-5.6-luna","gpt-5.6-sol","gpt-6-sol"],"description":"Append-only model identifiers accepted when reading persisted data.","title":"ArchivedModel"},"StoredModel":{"oneOf":[{"$ref":"#/components/schemas/Model"},{"$ref":"#/components/schemas/ArchivedModel"}],"title":"StoredModel"},"AIImageDescription":{"type":"object","properties":{"cargo_identity_assessment":{"type":"string"},"completion_evidence":{"type":"string"},"dispute_defensibility":{"type":"string"},"location_description":{"type":"string"},"location_identifiers":{"type":"array","items":{"type":"string"}},"model":{"$ref":"#/components/schemas/StoredModel"},"package_appearance":{"type":"string"},"package_count":{"type":["integer","null"]},"package_types":{"type":"array","items":{"type":"string"}},"proof_notes":{"type":"array","items":{"type":"string"}},"readable_package_text":{"type":"array","items":{"type":"string"}},"schema_version":{"type":"integer","default":1},"searchable_facts":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"unresolved_questions":{"type":"array","items":{"type":"string"}}},"required":["cargo_identity_assessment","completion_evidence","dispute_defensibility","location_description","location_identifiers","model","package_appearance","package_count","package_types","proof_notes","readable_package_text","summary"],"description":"Structured, factual description of a task-artifact image produced by an LLM.\n\nStored on `TaskArtifactS3ObjectMetadata1.ai_image_description` so downstream\nconsumers (Q&A, search, audit) can answer questions about the\nartifact without re-sending the image. `model` records which LLM produced\nthe description; `provider` is derived from `model` so the two can never\ndisagree.","title":"AIImageDescription"},"TaskArtifactS3ObjectMetadata1":{"type":"object","properties":{"_id":{"type":"string"},"ai_generated_description":{"type":["string","null"]},"ai_image_description":{"oneOf":[{"$ref":"#/components/schemas/AIImageDescription"},{"type":"null"}]},"blurhash":{"type":["string","null"]},"content_type":{"type":["string","null"],"description":"MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf')"},"filename":{"type":["string","null"],"description":"Original filename of the uploaded file"},"s3_key_prefix":{"type":"string","enum":["shipping/task_artifact_s3_object_metadata"],"default":"shipping/task_artifact_s3_object_metadata"},"schema_version":{"type":"integer"},"task_artifact_id":{"type":"string"},"uploaded_at_timestamp":{"type":"string","format":"date-time"},"uploaded_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"uploaded_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"user_generated_description":{"type":["string","null"]}},"required":["_id","schema_version","task_artifact_id","uploaded_at_timestamp","uploaded_by_org_id","uploaded_by_user_id"],"title":"TaskArtifactS3ObjectMetadata1"},"TaskGroupS3ObjectMetadata1":{"type":"object","properties":{"_id":{"type":"string"},"ai_generated_description":{"type":["string","null"]},"blurhash":{"type":["string","null"]},"content_type":{"type":["string","null"],"description":"MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf')"},"filename":{"type":["string","null"],"description":"Original filename of the uploaded file"},"s3_key_prefix":{"type":"string","enum":["shipping/task_group_s3_object_metadata"],"default":"shipping/task_group_s3_object_metadata"},"schema_version":{"type":"integer"},"task_group_id":{"type":"string"},"uploaded_at_timestamp":{"type":"string","format":"date-time"},"uploaded_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"uploaded_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"user_generated_description":{"type":["string","null"]}},"required":["_id","schema_version","task_group_id","uploaded_at_timestamp","uploaded_by_org_id","uploaded_by_user_id"],"title":"TaskGroupS3ObjectMetadata1"},"OrderEventEntity1":{"type":"object","properties":{"account":{"oneOf":[{"$ref":"#/components/schemas/Account1"},{"type":"null"}]},"cargo":{"oneOf":[{"$ref":"#/components/schemas/Cargo1"},{"type":"null"}]},"cargo_on_flight_air_waybill":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightAirWaybill1"},{"type":"null"}]},"cargo_on_flight_booking":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightBooking1"},{"type":"null"}]},"cargo_on_flight_booking_search":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightBookingSearch1"},{"type":"null"}]},"cargo_on_flight_house_air_waybill":{"oneOf":[{"$ref":"#/components/schemas/CargoOnFlightHouseAirWaybill1"},{"type":"null"}]},"contact":{"oneOf":[{"$ref":"#/components/schemas/Contact1"},{"type":"null"}]},"modification":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"order":{"oneOf":[{"$ref":"#/components/schemas/Order1"},{"type":"null"}]},"task":{"oneOf":[{"$ref":"#/components/schemas/Task1"},{"type":"null"}]},"task_artifact":{"oneOf":[{"$ref":"#/components/schemas/TaskArtifact1"},{"type":"null"}]},"task_artifact_s3_object_metadata":{"oneOf":[{"$ref":"#/components/schemas/TaskArtifactS3ObjectMetadata1"},{"type":"null"}]},"task_group":{"oneOf":[{"$ref":"#/components/schemas/TaskGroup1"},{"type":"null"}]},"task_group_s3_object_metadata":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupS3ObjectMetadata1"},{"type":"null"}]}},"title":"OrderEventEntity1"},"OrderEventExpanded1":{"type":"object","properties":{"_id":{"type":"string"},"action":{"$ref":"#/components/schemas/OrderEventActionEnum1"},"actor":{"$ref":"#/components/schemas/OrderEventActor1"},"entities":{"type":"array","items":{"$ref":"#/components/schemas/OrderEventEntity1"}},"order_id":{"type":"string"},"order_short_id":{"type":["string","null"]},"org_public_data":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"schema_version":{"type":"integer"},"timestamp":{"type":"string","format":"date-time"},"user_name":{"type":["string","null"]}},"required":["_id","action","actor","order_id","schema_version","timestamp"],"title":"OrderEventExpanded1"},"OrderEventListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderEventExpanded1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OrderEventListRes"},"TaskClientCreate1Action":{"oneOf":[{"$ref":"#/components/schemas/ChrtGroundProviderTaskActionEnum1"},{"$ref":"#/components/schemas/CargoOnFlightTaskActionEnum1"},{"$ref":"#/components/schemas/OnboardCourierTaskActionEnum1"}],"title":"TaskClientCreate1Action"},"TaskClientCreate1":{"type":"object","properties":{"action":{"oneOf":[{"$ref":"#/components/schemas/TaskClientCreate1Action"},{"type":"null"}]},"contact_ids":{"type":"array","items":{"type":"string"}},"coordinator_shipper_account_ids":{"type":"array","items":{"type":"string"}},"datetime_windows":{"type":"array","items":{"$ref":"#/components/schemas/DateTimeWindow1"}},"flight_leg_id":{"type":["string","null"]},"geofence_distance_miles":{"type":"number","format":"double","exclusiveMinimum":0,"default":1},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"order_placer_comments":{"type":["string","null"]},"schema_version":{"type":"integer"}},"required":["schema_version"],"title":"TaskClientCreate1"},"OrdersAddTaskReq":{"type":"object","properties":{"cargo_ids":{"type":"array","items":{"type":"string"}},"index":{"type":["integer","null"],"minimum":0},"status":{"oneOf":[{"$ref":"#/components/schemas/TaskStatusEnum1"},{"type":"null"}]},"task":{"$ref":"#/components/schemas/TaskClientCreate1"},"task_group_id":{"type":"string"}},"required":["task","task_group_id"],"title":"OrdersAddTaskReq"},"TaskClientUpdate1Action":{"oneOf":[{"$ref":"#/components/schemas/ChrtGroundProviderTaskActionEnum1"},{"$ref":"#/components/schemas/CargoOnFlightTaskActionEnum1"},{"$ref":"#/components/schemas/OnboardCourierTaskActionEnum1"}],"title":"TaskClientUpdate1Action"},"TaskClientUpdate1":{"type":"object","properties":{"action":{"oneOf":[{"$ref":"#/components/schemas/TaskClientUpdate1Action"},{"type":"null"}]},"contact_ids":{"type":"array","items":{"type":"string"}},"coordinator_shipper_account_ids":{"type":"array","items":{"type":"string"}},"datetime_windows":{"type":"array","items":{"$ref":"#/components/schemas/DateTimeWindow1"}},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"location__set_to_None":{"type":"boolean","default":false},"order_placer_comments":{"type":["string","null"]},"order_placer_comments__set_to_None":{"type":"boolean","default":false}},"title":"TaskClientUpdate1"},"OrdersAddTaskArtifactReqStatus":{"type":"string","enum":["staged","completed"],"description":"Initial status for a non-draft task artifact. Defaults to STAGED. Omit for draft orders.","title":"OrdersAddTaskArtifactReqStatus"},"TaskArtifactClientCreate1":{"type":"object","properties":{"expected_scan_payloads":{"type":"array","items":{"type":"string","minLength":1}},"schema_version":{"type":"integer"},"type":{"$ref":"#/components/schemas/TaskArtifactTypeEnum1"}},"required":["schema_version","type"],"title":"TaskArtifactClientCreate1"},"OrdersAddTaskArtifactReq":{"type":"object","properties":{"status":{"oneOf":[{"$ref":"#/components/schemas/OrdersAddTaskArtifactReqStatus"},{"type":"null"}],"description":"Initial status for a non-draft task artifact. Defaults to STAGED. Omit for draft orders."},"task_artifact":{"$ref":"#/components/schemas/TaskArtifactClientCreate1"}},"required":["task_artifact"],"title":"OrdersAddTaskArtifactReq"},"OrdersAddTaskGroupReq":{"type":"object","properties":{"flight_setup_notes":{"type":["string","null"]},"order_id":{"type":"string"},"task_group_type":{"$ref":"#/components/schemas/TaskGroupTypeEnum1"},"vehicle_type":{"$ref":"#/components/schemas/VehicleTypeEnum"}},"required":["order_id","task_group_type"],"title":"OrdersAddTaskGroupReq"},"OrdersAddTaskGroupExecutorReq":{"type":"object","properties":{"executor_org_id":{"type":["string","null"],"description":"On-platform provider organization to assign as executor."},"off_chrt_executor_org_data_id":{"type":["string","null"],"description":"Off-platform provider organization data to assign as executor."}},"title":"OrdersAddTaskGroupExecutorReq"},"FlightLegClientCreate1":{"type":"object","properties":{"carrier_iata":{"type":"string"},"carrier_icao":{"type":["string","null"]},"destination_iata":{"type":"string"},"flight_number":{"type":"string"},"origin_iata":{"type":"string"},"provenance":{"$ref":"#/components/schemas/FlightLegProvenanceEnum1"},"scheduled_arrival_utc":{"type":["string","null"],"format":"date-time"},"scheduled_departure_utc":{"type":"string","format":"date-time"},"schema_version":{"type":"integer"}},"required":["carrier_iata","destination_iata","flight_number","origin_iata","provenance","scheduled_departure_utc","schema_version"],"title":"FlightLegClientCreate1"},"OrdersSetTaskGroupFlightInfoReq":{"type":"object","properties":{"flight_legs":{"type":"array","items":{"$ref":"#/components/schemas/FlightLegClientCreate1"},"description":"Ordered replacement flight legs. Pass an empty list to clear all legs."}},"required":["flight_legs"],"title":"OrdersSetTaskGroupFlightInfoReq"},"OrdersSetTaskGroupTaskOrderingReq":{"type":"object","properties":{"task_ids":{"type":"array","items":{"type":"string"},"description":"Complete list of task IDs in the desired order."}},"required":["task_ids"],"title":"OrdersSetTaskGroupTaskOrderingReq"},"OrdersSetTaskGroupVehicleTypeReq":{"type":"object","properties":{"vehicle_type":{"oneOf":[{"$ref":"#/components/schemas/VehicleTypeEnum"},{"type":"null"}]},"vehicle_type__set_to_None":{"type":"boolean","default":false}},"title":"OrdersSetTaskGroupVehicleTypeReq"},"OrdersUpdateTaskGroupDriverReq":{"type":"object","properties":{"driver_id":{"type":"string","description":"Driver to assign to the task group."}},"required":["driver_id"],"title":"OrdersUpdateTaskGroupDriverReq"},"TaskArtifactCustodyPartiesUpdateReq":{"type":"object","properties":{"provided_by":{"oneOf":[{"$ref":"#/components/schemas/CustodyParty1"},{"type":"null"}]},"provided_by__set_to_None":{"type":"boolean","default":false},"received_by":{"oneOf":[{"$ref":"#/components/schemas/CustodyParty1"},{"type":"null"}]},"received_by__set_to_None":{"type":"boolean","default":false}},"title":"TaskArtifactCustodyPartiesUpdateReq"},"Get__task_artifacts_s3_object_v1RequestNotFoundError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__task_artifacts_s3_object_v1RequestNotFoundError"},"Get__task_artifacts_s3_object_v1RequestUnprocessableEntityError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__task_artifacts_s3_object_v1RequestUnprocessableEntityError"},"ScanPayloadKindEnum":{"type":"string","enum":["expected","observed"],"title":"ScanPayloadKindEnum"},"AddScanPayloadReq":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/ScanPayloadKindEnum"},"payload":{"type":"string","minLength":1}},"required":["kind","payload"],"title":"AddScanPayloadReq"},"AddMessageReq":{"type":"object","properties":{"message":{"type":"string","maxLength":524288,"description":"Message content to add"}},"required":["message"],"title":"AddMessageReq"},"TaskGroupTypeaheadFieldEnum":{"type":"string","enum":["order_short_id","order_off_chrt_reference_id"],"title":"TaskGroupTypeaheadFieldEnum"},"TaskGroupTypeaheadValue":{"type":"object","properties":{"task_group_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["task_group_ids","value"],"title":"TaskGroupTypeaheadValue"},"TaskGroupTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/TaskGroupTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/TaskGroupTypeaheadValue"}}},"required":["type","values"],"title":"TaskGroupTypeaheadResult"},"TaskGroupSortByEnum":{"type":"string","enum":["draft_started_at_timestamp","staged_at_timestamp","in_progress_at_timestamp","completed_at_timestamp","skipped_at_timestamp","cancelled_at_timestamp","exception_at_timestamp"],"title":"TaskGroupSortByEnum"},"TaskGroupExpandedListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TaskGroupExpanded"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"TaskGroupExpandedListRes"},"TaskGroupProviderRoleFilterEnum":{"type":"string","enum":["all","coordinator","executor"],"title":"TaskGroupProviderRoleFilterEnum"},"TaskGroupMessageWithSenderName":{"type":"object","properties":{"message":{"type":"string","maxLength":524288},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"timestamp":{"type":"string","format":"date-time"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"},"user_name":{"type":["string","null"]}},"required":["message","org_id","timestamp","user_id"],"title":"TaskGroupMessageWithSenderName"},"TaskGroupMessageDriverListItem":{"type":"object","properties":{"driver":{"$ref":"#/components/schemas/Driver1"},"last_message":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupMessageWithSenderName"},{"type":"null"}]},"last_message_order_short_id":{"type":["string","null"]},"last_message_task_group_id":{"type":["string","null"]},"thread_count":{"type":"integer","default":0},"unread_count":{"type":"integer","default":0}},"required":["driver"],"title":"TaskGroupMessageDriverListItem"},"TaskGroupMessageDriverListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TaskGroupMessageDriverListItem"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"TaskGroupMessageDriverListRes"},"TaskGroupMessagesMarkReadReq":{"type":"object","properties":{"last_read_message_timestamp":{"type":"string","format":"date-time"}},"required":["last_read_message_timestamp"],"title":"TaskGroupMessagesMarkReadReq"},"TaskGroupMessageReadState1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"last_read_message_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"task_group_id":{"type":"string"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["_id","created_at_timestamp","last_read_message_timestamp","org_id","schema_version","task_group_id","user_id"],"title":"TaskGroupMessageReadState1"},"TaskGroupMessageReadStateExpanded":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"last_read_message_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"task_group_id":{"type":"string"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"},"user_name":{"type":["string","null"]}},"required":["_id","created_at_timestamp","last_read_message_timestamp","org_id","schema_version","task_group_id","user_id"],"title":"TaskGroupMessageReadStateExpanded"},"TaskGroupMessageReadStateListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TaskGroupMessageReadStateExpanded"}}},"required":["items"],"title":"TaskGroupMessageReadStateListRes"},"TaskGroupMessageThreadListItemDriver":{"oneOf":[{"$ref":"#/components/schemas/Driver1"},{"$ref":"#/components/schemas/DriverLimited1"}],"title":"TaskGroupMessageThreadListItemDriver"},"TaskGroupMessageThreadListItem":{"type":"object","properties":{"completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"coordinator_org_id":{"type":["string","null"]},"driver":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupMessageThreadListItemDriver"},{"type":"null"}]},"driver_id":{"type":["string","null"]},"executor_org_id":{"type":["string","null"]},"in_progress_at_timestamp":{"type":["string","null"],"format":"date-time"},"last_message":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupMessageWithSenderName"},{"type":"null"}]},"message_count":{"type":"integer"},"order_id":{"type":"string"},"order_off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"order_short_id":{"type":"string"},"staged_at_timestamp":{"type":["string","null"],"format":"date-time"},"status":{"$ref":"#/components/schemas/TaskGroupStatusEnum1"},"task_group_id":{"type":"string"},"task_group_type":{"$ref":"#/components/schemas/TaskGroupTypeEnum1"},"unread_count":{"type":"integer"}},"required":["message_count","order_id","order_short_id","status","task_group_id","task_group_type","unread_count"],"title":"TaskGroupMessageThreadListItem"},"TaskGroupMessageThreadListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TaskGroupMessageThreadListItem"}},"total_count":{"type":"integer"},"total_unread_count":{"type":"integer"}},"required":["items","total_count","total_unread_count"],"title":"TaskGroupMessageThreadListRes"},"Get__task_groups_s3_object_v1RequestNotFoundError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__task_groups_s3_object_v1RequestNotFoundError"},"Get__task_groups_s3_object_v1RequestUnprocessableEntityError":{"oneOf":[{"$ref":"#/components/schemas/FileDownloadErrorRes"},{"$ref":"#/components/schemas/FileDownloadRequestErrorRes"}],"title":"Get__task_groups_s3_object_v1RequestUnprocessableEntityError"},"AttemptTaskReq":{"type":"object","properties":{"executor_org_note":{"type":["string","null"],"maxLength":524288,"description":"Optional executor organization note for the task attempt."}},"title":"AttemptTaskReq"},"TaskCompleteReq":{"type":"object","properties":{"completed_at_timestamp":{"type":["string","null"],"format":"date-time"}},"title":"TaskCompleteReq"},"TaskCompletionTimestampUpdateReq":{"type":"object","properties":{"completed_at_timestamp":{"type":"string","format":"date-time"}},"required":["completed_at_timestamp"],"title":"TaskCompletionTimestampUpdateReq"},"TaskCustodyPartiesUpdateReq":{"type":"object","properties":{"provided_by":{"oneOf":[{"$ref":"#/components/schemas/CustodyParty1"},{"type":"null"}]},"provided_by__set_to_None":{"type":"boolean","default":false},"received_by":{"oneOf":[{"$ref":"#/components/schemas/CustodyParty1"},{"type":"null"}]},"received_by__set_to_None":{"type":"boolean","default":false}},"title":"TaskCustodyPartiesUpdateReq"},"TaskLocationFromReferenceReq":{"type":"object","properties":{"contact_id":{"type":["string","null"]},"coordinator_shipper_account_id":{"type":["string","null"]}},"title":"TaskLocationFromReferenceReq"},"TaskWaitTimeGeofenceRes":{"type":"object","properties":{"distance_miles":{"type":["number","null"],"format":"double"},"driver_location_available":{"type":"boolean"},"geofence_distance_miles":{"type":"number","format":"double"},"in_geofence":{"type":"boolean"}},"required":["distance_miles","driver_location_available","geofence_distance_miles","in_geofence"],"title":"TaskWaitTimeGeofenceRes"},"WaitTimeOverrideReq":{"type":"object","properties":{"geofence_distance_miles":{"type":["number","null"],"format":"double","exclusiveMinimum":0},"wait_time_end_timestamp":{"type":["string","null"],"format":"date-time"},"wait_time_start_timestamp":{"type":["string","null"],"format":"date-time"}},"title":"WaitTimeOverrideReq"},"AddExecutorOrgNoteReq":{"type":"object","properties":{"note":{"type":"string","maxLength":524288,"description":"Executor-side note to add"}},"required":["note"],"title":"AddExecutorOrgNoteReq"},"AtlasCredsLimited1":{"type":"object","properties":{"_id":{"type":"string"},"active":{"type":"boolean","default":true},"base_url":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"high_water_mark_timestamp":{"type":["string","null"],"format":"date-time"},"notes":{"type":["string","null"],"maxLength":4096},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["atlas"]},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","base_url","created_at_timestamp","org_id","owned_by_user_id","provider_org_id","schema_version","shipping_integration","updated_at_timestamp"],"description":"The only shape of an Atlas credential a user is ever allowed to receive.","title":"AtlasCredsLimited1"},"AtlasCredsListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AtlasCredsLimited1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"AtlasCredsListRes"},"AtlasCredsTestRes":{"type":"object","properties":{"failure_reason":{"type":["string","null"]},"ok":{"type":"boolean"}},"required":["ok"],"description":"Result of testing whether a stored Atlas credential still works.","title":"AtlasCredsTestRes"},"AtlasCredsClientCreate1":{"type":"object","properties":{"api_key":{"type":"string"},"notes":{"type":["string","null"],"maxLength":4096},"schema_version":{"type":"integer"}},"required":["api_key","schema_version"],"title":"AtlasCredsClientCreate1"},"AtlasCredsClientUpdate1":{"type":"object","properties":{"api_key":{"type":["string","null"]},"api_key__set_to_None":{"type":"boolean","default":false},"notes":{"type":["string","null"]},"notes__set_to_None":{"type":"boolean","default":false}},"title":"AtlasCredsClientUpdate1"},"AtlasEventResponse1":{"type":"object","properties":{"code":{"type":["string","null"]},"dateUtc":{"type":["string","null"]},"latitude":{"type":["number","null"],"format":"double"},"longitude":{"type":["number","null"],"format":"double"},"type":{"type":["string","null"]}},"title":"AtlasEventResponse1"},"AtlasStopResponse1":{"type":"object","properties":{"destination":{"type":["string","null"]},"events":{"type":"array","items":{"$ref":"#/components/schemas/AtlasEventResponse1"}},"origin":{"type":["string","null"]},"sequence":{"type":["integer","null"]},"truck":{"type":["string","null"]}},"title":"AtlasStopResponse1"},"AtlasOrderResponse1":{"type":"object","properties":{"clientReference":{"type":["string","null"]},"dateCreated":{"type":["string","null"]},"dateEnd":{"type":["string","null"]},"destination":{"type":["string","null"]},"id":{"type":"string","minLength":1},"numStops":{"type":["integer","null"]},"origin":{"type":["string","null"]},"status":{"type":["string","null"]},"stops":{"type":["array","null"],"items":{"$ref":"#/components/schemas/AtlasStopResponse1"}},"trailer":{"type":["string","null"]}},"required":["id"],"description":"Known fields from an Atlas shipment payload, retaining all other fields.","title":"AtlasOrderResponse1"},"AtlasOrderExpanded1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"integration_order_id":{"type":"string"},"mirrored_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_payload":{"$ref":"#/components/schemas/AtlasOrderResponse1"},"provider_payload_hash":{"type":"string","minLength":64,"maxLength":64},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["atlas"]},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","created_at_timestamp","integration_order_id","mirrored_at_timestamp","org_id","provider_org_id","provider_payload","provider_payload_hash","schema_version","shipping_integration","updated_at_timestamp"],"title":"AtlasOrderExpanded1"},"AtlasOrderSortByEnum":{"type":"string","enum":["mirrored_at_timestamp","created_at_timestamp","updated_at_timestamp","integration_order_id"],"title":"AtlasOrderSortByEnum"},"AtlasOrderListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AtlasOrderExpanded1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"AtlasOrderListRes"},"AtlasOrderSyncOneReq":{"type":"object","properties":{"integration_order_id":{"type":"string","minLength":1},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"}},"required":["integration_order_id","provider_org_id"],"title":"AtlasOrderSyncOneReq"},"AtlasOrder1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"integration_order_id":{"type":"string"},"mirrored_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_payload":{"$ref":"#/components/schemas/AtlasOrderResponse1"},"provider_payload_hash":{"type":"string","minLength":64,"maxLength":64},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["atlas"]},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","created_at_timestamp","integration_order_id","mirrored_at_timestamp","org_id","provider_org_id","provider_payload","provider_payload_hash","schema_version","shipping_integration","updated_at_timestamp"],"title":"AtlasOrder1"},"AtlasOrderTypeaheadFieldEnum":{"type":"string","enum":["integration_order_id"],"title":"AtlasOrderTypeaheadFieldEnum"},"AtlasOrderTypeaheadValue":{"type":"object","properties":{"atlas_order_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["atlas_order_ids","value"],"title":"AtlasOrderTypeaheadValue"},"AtlasOrderTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/AtlasOrderTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/AtlasOrderTypeaheadValue"}}},"required":["type","values"],"title":"AtlasOrderTypeaheadResult"},"OrgShippingIntegrationEnum1":{"type":"string","enum":["xcelerator","dispatch_science","ontime360","cxt","atlas","ecourier","courie"],"title":"OrgShippingIntegrationEnum1"},"ShippingIntegrationConnection":{"type":"object","properties":{"active":{"type":"boolean"},"created_at_timestamp":{"type":"string","format":"date-time"},"last_mirrored_at_timestamp":{"type":["string","null"],"format":"date-time"},"order_count":{"type":"integer","default":0},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"provider_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org_name":{"type":["string","null"]},"shipping_integration":{"$ref":"#/components/schemas/OrgShippingIntegrationEnum1"},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["active","created_at_timestamp","owned_by_user_id","provider_org_id","shipping_integration","updated_at_timestamp"],"description":"One org's credentialed link to one provider on one integration.\n\nDeliberately carries no secrets: the per-integration credential shapes differ\n(username/password versus API key), and none of those fields belong in a\ncross-integration listing.","title":"ShippingIntegrationConnection"},"ShippingIntegrationConnectionListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ShippingIntegrationConnection"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"ShippingIntegrationConnectionListRes"},"CourieCredsLimited1":{"type":"object","properties":{"_id":{"type":"string"},"active":{"type":"boolean","default":true},"courier_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"customer_ids":{"type":"array","items":{"type":"string"}},"high_water_mark_timestamp":{"type":["string","null"],"format":"date-time"},"notes":{"type":["string","null"],"maxLength":4096},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["courie"]},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","courier_id","created_at_timestamp","org_id","owned_by_user_id","provider_org_id","schema_version","shipping_integration","updated_at_timestamp"],"description":"The only shape of a Courie credential a user is ever allowed to receive.","title":"CourieCredsLimited1"},"CourieCredsListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CourieCredsLimited1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"CourieCredsListRes"},"CourieCredsTestRes":{"type":"object","properties":{"failure_reason":{"type":["string","null"]},"ok":{"type":"boolean"}},"required":["ok"],"description":"Result of testing whether a stored Courie credential still works.","title":"CourieCredsTestRes"},"CourieCredsClientCreate1":{"type":"object","properties":{"api_key":{"type":"string"},"courier_id":{"type":"string"},"customer_ids":{"type":"array","items":{"type":"string"}},"notes":{"type":["string","null"],"maxLength":4096},"schema_version":{"type":"integer"}},"required":["api_key","courier_id","schema_version"],"title":"CourieCredsClientCreate1"},"CourieCredsClientUpdate1":{"type":"object","properties":{"api_key":{"type":["string","null"]},"api_key__set_to_None":{"type":"boolean","default":false},"courier_id":{"type":["string","null"]},"customer_ids":{"type":"array","items":{"type":"string"}},"notes":{"type":["string","null"]},"notes__set_to_None":{"type":"boolean","default":false}},"title":"CourieCredsClientUpdate1"},"CourieOrderEventEnum1":{"type":"string","enum":["CREATED","PICKED_UP","DROPPED_OFF","RETURNED_TO_PICK_UP","ATTEMPTED","COMPLETED"],"description":"Activity event types.\n\nNOTE: there is no assignment event, so an order moving to `ASSIGNED` leaves no\ntrace here and status cannot be reconstructed from this log.","title":"CourieOrderEventEnum1"},"CourieOrderEventResponse1":{"type":"object","properties":{"address":{"type":["string","null"]},"event":{"$ref":"#/components/schemas/CourieOrderEventEnum1"},"timestamp":{"type":"string","format":"date-time"}},"required":["event","timestamp"],"title":"CourieOrderEventResponse1"},"CourieCustomFieldResponse1":{"type":"object","properties":{"name":{"type":["string","null"]},"type":{"type":["string","null"]},"value":{"type":["string","null"]}},"title":"CourieCustomFieldResponse1"},"CouriePackageItemResponse1":{"type":"object","properties":{"height":{"type":["number","null"],"format":"double"},"length":{"type":["number","null"],"format":"double"},"quantity":{"type":["integer","null"]},"weight":{"type":["number","null"],"format":"double"},"width":{"type":["number","null"],"format":"double"}},"description":"Per-item dimensions and weight.\n\nValues are **per piece**, not per entry: the spec's `quantity` note says\n\"quantity 5 with weight 10 is 5 pieces weighing 50 lbs in total\". Anything\nsumming weight must multiply by `quantity` first.","title":"CouriePackageItemResponse1"},"CouriePackageResponse1":{"type":"object","properties":{"reference":{"type":["string","null"]},"status":{"type":["string","null"]}},"title":"CouriePackageResponse1"},"CourieProofOfDeliveryResponse1":{"type":"object","properties":{"signedBy":{"type":["string","null"]},"timestamp":{"type":["string","null"]},"type":{"type":["string","null"]},"url":{"type":["string","null"]}},"title":"CourieProofOfDeliveryResponse1"},"CourieOrderStatusEnum1":{"type":"string","enum":["CREATED","ASSIGNED","IN_TRANSIT","COMPLETED","ATTEMPTED","ON_HOLD","DELETED","FAILED"],"description":"Courie's own order status.\n\nThe spec documents these only as a bare enum list with no per-value meaning.\n`IN_TRANSIT`, `ON_HOLD` and `DELETED` have not been observed live. `unified.py`\nderives progress from the pickup milestone rather than this field.","title":"CourieOrderStatusEnum1"},"CourieLatLngResponse1":{"type":"object","properties":{"latitude":{"type":["number","null"],"format":"double"},"longitude":{"type":["number","null"],"format":"double"},"valid":{"type":["boolean","null"]}},"title":"CourieLatLngResponse1"},"CourieAddressResponse1":{"type":"object","properties":{"city":{"type":["string","null"]},"country":{"type":["string","null"]},"display":{"type":["string","null"]},"lngLat":{"oneOf":[{"$ref":"#/components/schemas/CourieLatLngResponse1"},{"type":"null"}]},"postalCode":{"type":["string","null"]},"state":{"type":["string","null"]},"streetAddress":{"type":["string","null"]},"suite":{"type":["string","null"]}},"title":"CourieAddressResponse1"},"CourieAttemptReasonResponse1":{"type":"object","properties":{"code":{"type":["string","null"]},"name":{"type":["string","null"]}},"title":"CourieAttemptReasonResponse1"},"CourieStopAttemptResponse1":{"type":"object","properties":{"date":{"type":["string","null"]},"reason":{"oneOf":[{"$ref":"#/components/schemas/CourieAttemptReasonResponse1"},{"type":"null"}]}},"title":"CourieStopAttemptResponse1"},"CourieDriverResponse1":{"type":"object","properties":{"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]}},"title":"CourieDriverResponse1"},"CourieDriverAnswerResponse1":{"type":"object","properties":{"answer":{"type":["string","null"]},"photoUrl":{"type":["string","null"]},"question":{"type":["string","null"]},"type":{"type":["string","null"]}},"title":"CourieDriverAnswerResponse1"},"CourieLocationScanResponse1":{"type":"object","properties":{"code":{"type":["string","null"]},"scannedAt":{"type":["integer","null"]}},"title":"CourieLocationScanResponse1"},"CourieStopTypeEnum1":{"type":"string","enum":["PICK_UP","DROP_OFF"],"title":"CourieStopTypeEnum1"},"CourieStopResponse1":{"type":"object","properties":{"address":{"oneOf":[{"$ref":"#/components/schemas/CourieAddressResponse1"},{"type":"null"}]},"attemptedAt":{"type":["integer","null"]},"attempts":{"type":"array","items":{"$ref":"#/components/schemas/CourieStopAttemptResponse1"}},"companyName":{"type":["string","null"]},"completedAt":{"type":["integer","null"]},"contactName":{"type":["string","null"]},"driver":{"oneOf":[{"$ref":"#/components/schemas/CourieDriverResponse1"},{"type":"null"}]},"driverAnswers":{"type":"array","items":{"$ref":"#/components/schemas/CourieDriverAnswerResponse1"}},"driverStopSequenceNumber":{"type":["integer","null"]},"due":{"type":["integer","null"]},"instruction":{"type":["string","null"]},"locationScans":{"type":"array","items":{"$ref":"#/components/schemas/CourieLocationScanResponse1"}},"orderId":{"type":["string","null"]},"phone":{"type":["string","null"]},"ready":{"type":["integer","null"]},"stopSequenceNumber":{"type":["integer","null"]},"suite":{"type":["string","null"]},"type":{"$ref":"#/components/schemas/CourieStopTypeEnum1"}},"required":["type"],"description":"One end of a route. Timestamps here are epoch seconds, not ISO strings.","title":"CourieStopResponse1"},"CourieOrderResponse1":{"type":"object","properties":{"activities":{"type":"array","items":{"$ref":"#/components/schemas/CourieOrderEventResponse1"}},"customFields":{"type":"array","items":{"$ref":"#/components/schemas/CourieCustomFieldResponse1"}},"customerCompanyName":{"type":["string","null"]},"customerId":{"type":"string","minLength":1},"deliveredAt":{"type":["string","null"],"format":"date-time"},"displayId":{"type":["integer","null"]},"id":{"type":"string","minLength":1},"numPackages":{"type":["integer","null"]},"packageDescription":{"type":["string","null"]},"packageItems":{"type":"array","items":{"$ref":"#/components/schemas/CouriePackageItemResponse1"}},"packageSize":{"type":["string","null"]},"packageTypeName":{"type":["string","null"]},"packageWeightInPounds":{"type":["number","null"],"format":"double"},"packages":{"type":"array","items":{"$ref":"#/components/schemas/CouriePackageResponse1"}},"pickedUpAt":{"type":["string","null"],"format":"date-time"},"proofOfDeliveries":{"type":"array","items":{"$ref":"#/components/schemas/CourieProofOfDeliveryResponse1"}},"proofOfPickUps":{"type":"array","items":{"$ref":"#/components/schemas/CourieProofOfDeliveryResponse1"}},"referenceNumber":{"type":["string","null"]},"remoteId":{"type":["string","null"]},"serviceTypeName":{"type":["string","null"]},"shipmentDate":{"type":["string","null"]},"shipmentType":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/CourieOrderStatusEnum1"},"statusDescription":{"type":["string","null"]},"stops":{"type":"array","items":{"$ref":"#/components/schemas/CourieStopResponse1"}},"trackingNumber":{"type":["string","null"]},"trackingUrl":{"type":["string","null"]},"vehicleTypeName":{"type":["string","null"]}},"required":["customerId","id","status"],"description":"One Courie order, as returned by both the list and detail endpoints.\n\nThe list endpoint returns this same complete shape, so the mirror never needs\na per-order detail call.","title":"CourieOrderResponse1"},"CourieOrder1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"integration_order_id":{"type":"string"},"mirrored_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_payload":{"$ref":"#/components/schemas/CourieOrderResponse1"},"provider_payload_hash":{"type":"string","minLength":64,"maxLength":64},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["courie"]},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","created_at_timestamp","integration_order_id","mirrored_at_timestamp","org_id","provider_org_id","provider_payload","provider_payload_hash","schema_version","shipping_integration","updated_at_timestamp"],"title":"CourieOrder1"},"CourieOrderSortByEnum":{"type":"string","enum":["mirrored_at_timestamp","created_at_timestamp","updated_at_timestamp","integration_order_id"],"title":"CourieOrderSortByEnum"},"CourieOrderListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CourieOrder1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"CourieOrderListRes"},"CourieOrderSyncOneReq":{"type":"object","properties":{"integration_order_id":{"type":"string","pattern":"^[0-9a-fA-F]{32}$"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"}},"required":["integration_order_id","provider_org_id"],"title":"CourieOrderSyncOneReq"},"CxtAuthTypeEnum1":{"type":"string","enum":["xd_user","inet_user"],"title":"CxtAuthTypeEnum1"},"CxtCredsLimited1":{"type":"object","properties":{"_id":{"type":"string"},"access_token_expires_at_timestamp":{"type":["string","null"],"format":"date-time"},"access_token_updated_at_timestamp":{"type":["string","null"],"format":"date-time"},"active":{"type":"boolean","default":true},"base_url":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"cxt_auth_type":{"$ref":"#/components/schemas/CxtAuthTypeEnum1"},"cxt_customer_ids":{"type":"array","items":{"type":"integer"}},"high_water_mark_timestamp":{"type":["string","null"],"format":"date-time"},"notes":{"type":["string","null"],"maxLength":4096},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["cxt"]},"updated_at_timestamp":{"type":"string","format":"date-time"},"username":{"type":["string","null"]}},"required":["_id","base_url","created_at_timestamp","cxt_auth_type","org_id","owned_by_user_id","provider_org_id","schema_version","shipping_integration","updated_at_timestamp"],"description":"The only shape of a CXT credential a user is ever allowed to receive.","title":"CxtCredsLimited1"},"CxtCredsListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CxtCredsLimited1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"CxtCredsListRes"},"CxtCredsTestRes":{"type":"object","properties":{"failure_reason":{"type":["string","null"]},"ok":{"type":"boolean"}},"required":["ok"],"description":"Result of testing whether a stored CXT credential can authenticate.","title":"CxtCredsTestRes"},"CxtCredsClientCreate1":{"type":"object","properties":{"base_url":{"type":"string"},"cxt_auth_type":{"$ref":"#/components/schemas/CxtAuthTypeEnum1"},"cxt_customer_ids":{"type":"array","items":{"type":"integer"}},"notes":{"type":["string","null"],"maxLength":4096},"password":{"type":"string"},"schema_version":{"type":"integer"},"username":{"type":"string"}},"required":["base_url","cxt_auth_type","password","schema_version","username"],"title":"CxtCredsClientCreate1"},"CxtCredsClientUpdate1":{"type":"object","properties":{"base_url":{"type":["string","null"]},"cxt_auth_type":{"oneOf":[{"$ref":"#/components/schemas/CxtAuthTypeEnum1"},{"type":"null"}]},"cxt_customer_ids":{"type":["array","null"],"items":{"type":"integer"}},"notes":{"type":["string","null"]},"notes__set_to_None":{"type":"boolean","default":false},"password":{"type":["string","null"]},"password__set_to_None":{"type":"boolean","default":false},"username":{"type":["string","null"]},"username__set_to_None":{"type":"boolean","default":false}},"title":"CxtCredsClientUpdate1"},"CxtXdUserOrderResponse1":{"type":"object","properties":{"bol":{"type":["string","null"]},"caller":{"type":["string","null"]},"charges":{"type":["number","null"],"format":"double"},"createdBy":{"type":["string","null"]},"createdWhen":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"custId":{"type":["integer","null"]},"customer":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"destIdIsValid":{"type":["boolean","null"]},"destination":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"distance":{"type":["number","null"],"format":"double"},"drivers":{"type":["array","null"],"items":{"type":"object","additionalProperties":{"description":"Any type"}}},"fleet":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"forceLocationScanDelivery":{"type":["string","null"]},"forceLocationScanPickup":{"type":["string","null"]},"hasAssociatedRouteStops":{"type":["boolean","null"]},"hasAuthorizedCreditCard":{"type":["boolean","null"]},"id":{"type":"string","minLength":1},"isParent":{"type":["boolean","null"]},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":{"description":"Any type"}}},"masterBol":{"type":["string","null"]},"notes":{"type":["array","null"],"items":{"type":"object","additionalProperties":{"description":"Any type"}}},"orderCount":{"type":["integer","null"]},"orderDate":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"orderStatus":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"orderType":{"type":["integer","null"]},"orderTypeDescription":{"type":["string","null"]},"origin":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"originIdIsValid":{"type":["boolean","null"]},"parcelType":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"parcels":{"type":["array","null"],"items":{"type":"object","additionalProperties":{"description":"Any type"}}},"pieces":{"type":["integer","null"]},"podRequired":{"type":["boolean","null"]},"reference1":{"type":["string","null"]},"reference2":{"type":["string","null"]},"requiredDriverInput":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"route":{"type":["integer","null"]},"routeStop":{"type":["string","null"]},"rowVersion":{"type":["string","null"]},"signatureRequired":{"type":["boolean","null"]},"specialInst":{"type":["string","null"]},"status":{"type":["string","null"]},"statusCodes":{"type":["array","null"],"items":{"type":"object","additionalProperties":{"description":"Any type"}}},"updatedBy":{"type":["string","null"]},"updatedWhen":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"weight":{"type":["number","null"],"format":"double"},"workstation":{"type":["string","null"]}},"required":["id"],"description":"Direct CXT order detail returned by ``GET /Dispatch/Orders/{orderId}``.","title":"CxtXdUserOrderResponse1"},"CxtOrderDetailResponse1":{"type":"object","properties":{"bol":{"type":["string","null"]},"caller":{"type":["string","null"]},"charges":{"type":["number","null"],"format":"double"},"createdBy":{"type":["string","null"]},"createdWhen":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"custId":{"type":["integer","null"]},"customer":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"destIdIsValid":{"type":["boolean","null"]},"destination":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"distance":{"type":["number","null"],"format":"double"},"forceLocationScanDelivery":{"type":["string","null"]},"forceLocationScanPickup":{"type":["string","null"]},"hasAssociatedRouteStops":{"type":["boolean","null"]},"id":{"type":"string","minLength":1},"isParent":{"type":["boolean","null"]},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":{"description":"Any type"}}},"masterBol":{"type":["string","null"]},"notes":{"type":["array","null"],"items":{"type":"object","additionalProperties":{"description":"Any type"}}},"orderCount":{"type":["integer","null"]},"orderDate":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"orderStatus":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"orderType":{"type":["integer","null"]},"orderTypeDescription":{"type":["string","null"]},"origin":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"originIdIsValid":{"type":["boolean","null"]},"parcelType":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"parcels":{"type":["array","null"],"items":{"type":"object","additionalProperties":{"description":"Any type"}}},"pieces":{"type":["integer","null"]},"podRequired":{"type":["boolean","null"]},"reference1":{"type":["string","null"]},"reference2":{"type":["string","null"]},"requiredDriverInput":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"route":{"type":["integer","null"]},"routeStop":{"type":["string","null"]},"rowVersion":{"type":["string","null"]},"signatureRequired":{"type":["boolean","null"]},"specialInst":{"type":["string","null"]},"status":{"type":["string","null"]},"statusCodes":{"type":["array","null"],"items":{"type":"object","additionalProperties":{"description":"Any type"}}},"updatedBy":{"type":["string","null"]},"updatedWhen":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"weight":{"type":["number","null"],"format":"double"},"workstation":{"type":["string","null"]}},"required":["id"],"description":"Known fields from a CXT order detail body, retaining provider fields.","title":"CxtOrderDetailResponse1"},"CxtInetUserOrderResponse1":{"type":"object","properties":{"onDemandOrder":{"$ref":"#/components/schemas/CxtOrderDetailResponse1"}},"required":["onDemandOrder"],"description":"Wrapped CXT order detail returned by ``GET /Orders/{orderId}/false``.","title":"CxtInetUserOrderResponse1"},"CxtOrderExpanded1ProviderPayload":{"oneOf":[{"$ref":"#/components/schemas/CxtXdUserOrderResponse1"},{"$ref":"#/components/schemas/CxtInetUserOrderResponse1"}],"title":"CxtOrderExpanded1ProviderPayload"},"CxtOrderExpanded1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"integration_order_id":{"type":"string"},"mirrored_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_payload":{"$ref":"#/components/schemas/CxtOrderExpanded1ProviderPayload"},"provider_payload_hash":{"type":"string","minLength":64,"maxLength":64},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["cxt"]},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","created_at_timestamp","integration_order_id","mirrored_at_timestamp","org_id","provider_org_id","provider_payload","provider_payload_hash","schema_version","shipping_integration","updated_at_timestamp"],"title":"CxtOrderExpanded1"},"CxtOrderSortByEnum":{"type":"string","enum":["mirrored_at_timestamp","created_at_timestamp","updated_at_timestamp","integration_order_id"],"title":"CxtOrderSortByEnum"},"CxtOrderListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CxtOrderExpanded1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"CxtOrderListRes"},"CxtOrderSyncOneReq":{"type":"object","properties":{"integration_order_id":{"type":"string","minLength":1},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"}},"required":["integration_order_id","provider_org_id"],"title":"CxtOrderSyncOneReq"},"CxtOrder1ProviderPayload":{"oneOf":[{"$ref":"#/components/schemas/CxtXdUserOrderResponse1"},{"$ref":"#/components/schemas/CxtInetUserOrderResponse1"}],"title":"CxtOrder1ProviderPayload"},"CxtOrder1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"integration_order_id":{"type":"string"},"mirrored_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_payload":{"$ref":"#/components/schemas/CxtOrder1ProviderPayload"},"provider_payload_hash":{"type":"string","minLength":64,"maxLength":64},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["cxt"]},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","created_at_timestamp","integration_order_id","mirrored_at_timestamp","org_id","provider_org_id","provider_payload","provider_payload_hash","schema_version","shipping_integration","updated_at_timestamp"],"title":"CxtOrder1"},"CxtOrderTypeaheadFieldEnum":{"type":"string","enum":["integration_order_id"],"title":"CxtOrderTypeaheadFieldEnum"},"CxtOrderTypeaheadValue":{"type":"object","properties":{"cxt_order_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["cxt_order_ids","value"],"title":"CxtOrderTypeaheadValue"},"CxtOrderTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CxtOrderTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/CxtOrderTypeaheadValue"}}},"required":["type","values"],"title":"CxtOrderTypeaheadResult"},"DispatchScienceCredsLimited1":{"type":"object","properties":{"_id":{"type":"string"},"access_token_expires_at_timestamp":{"type":["string","null"],"format":"date-time"},"access_token_updated_at_timestamp":{"type":["string","null"],"format":"date-time"},"active":{"type":"boolean","default":true},"base_url":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"notes":{"type":["string","null"],"maxLength":4096},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["dispatch_science"]},"updated_at_timestamp":{"type":"string","format":"date-time"},"username":{"type":["string","null"]}},"required":["_id","base_url","created_at_timestamp","org_id","owned_by_user_id","provider_org_id","schema_version","shipping_integration","updated_at_timestamp"],"description":"The only shape of a DispatchScience credential a user is ever allowed to receive.","title":"DispatchScienceCredsLimited1"},"DispatchScienceCredsListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DispatchScienceCredsLimited1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"DispatchScienceCredsListRes"},"DispatchScienceCredsTestRes":{"type":"object","properties":{"failure_reason":{"type":["string","null"]},"ok":{"type":"boolean"},"workflow_count":{"type":["integer","null"]}},"required":["ok"],"description":"Result of testing whether a stored DispatchScience credential still works.","title":"DispatchScienceCredsTestRes"},"DispatchScienceCredsClientCreate1":{"type":"object","properties":{"base_url":{"type":"string","description":"Per-provider https:// base URL for a courier TMS integration."},"notes":{"type":["string","null"],"maxLength":4096},"password":{"type":"string"},"schema_version":{"type":"integer"},"username":{"type":"string"}},"required":["base_url","password","schema_version","username"],"title":"DispatchScienceCredsClientCreate1"},"DispatchScienceCredsClientUpdate1":{"type":"object","properties":{"notes":{"type":["string","null"]},"notes__set_to_None":{"type":"boolean","default":false},"password":{"type":["string","null"]},"password__set_to_None":{"type":"boolean","default":false},"username":{"type":["string","null"]},"username__set_to_None":{"type":"boolean","default":false}},"title":"DispatchScienceCredsClientUpdate1"},"DispatchScienceAttachmentResponse1":{"type":"object","properties":{"attachmentId":{"type":["string","null"]},"attachmentUrl":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"fileName":{"type":["string","null"]},"includeWithInvoice":{"type":["boolean","null"]},"isUploaded":{"type":["boolean","null"]},"note":{"type":["string","null"]},"type":{"type":["integer","null"]},"visibleForDriver":{"type":["boolean","null"]}},"title":"DispatchScienceAttachmentResponse1"},"DispatchScienceChargeResponse1":{"type":"object","properties":{"extraFeeTypeId":{"type":["string","null"]},"fromZone":{"type":["string","null"]},"id":{"type":["string","null"]},"price":{"type":["number","null"],"format":"double"},"quantity":{"type":["number","null"],"format":"double"},"toZone":{"type":["string","null"]},"type":{"type":["string","null"]}},"description":"One charge line. `price` is the extended amount, never a unit price.","title":"DispatchScienceChargeResponse1"},"DispatchScienceAddressResponse1":{"type":"object","properties":{"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"company":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"stateProvince":{"type":["string","null"]}},"title":"DispatchScienceAddressResponse1"},"DispatchScienceContactInfoResponse1":{"type":"object","properties":{"email":{"type":["string","null"]},"id":{"type":["string","null"]},"language":{"type":["string","null"]},"name":{"type":["string","null"]},"phoneNumber":{"type":["string","null"]}},"title":"DispatchScienceContactInfoResponse1"},"DispatchScienceLocationResponse1":{"type":"object","properties":{"isValid":{"type":["boolean","null"]},"latitude":{"type":["number","null"],"format":"double"},"longitude":{"type":["number","null"],"format":"double"}},"description":"A `LatLng`. `isValid` is false when the provider could not geocode the address.","title":"DispatchScienceLocationResponse1"},"DispatchScienceTimeZoneResponse1":{"type":"object","properties":{"ianaTimeZoneId":{"type":["string","null"]},"isDaylightSavingTime":{"type":["boolean","null"]},"longDisplayName":{"type":["string","null"]},"offset":{"type":["number","null"],"format":"double"},"shortDisplayName":{"type":["string","null"]},"systemTimeZoneId":{"type":["string","null"]}},"title":"DispatchScienceTimeZoneResponse1"},"DispatchScienceTimeWindowResponse1":{"type":"object","properties":{"end":{"type":["string","null"]},"start":{"type":["string","null"]}},"title":"DispatchScienceTimeWindowResponse1"},"DispatchScienceOrderResponse1":{"type":"object","properties":{"attachments":{"type":["array","null"],"items":{"$ref":"#/components/schemas/DispatchScienceAttachmentResponse1"}},"charges":{"type":["array","null"],"items":{"$ref":"#/components/schemas/DispatchScienceChargeResponse1"}},"createdAt":{"type":["string","null"]},"distance":{"type":["number","null"],"format":"double"},"distanceUnits":{"type":["string","null"]},"dropoffAddress":{"oneOf":[{"$ref":"#/components/schemas/DispatchScienceAddressResponse1"},{"type":"null"}]},"dropoffContactInfo":{"oneOf":[{"$ref":"#/components/schemas/DispatchScienceContactInfoResponse1"},{"type":"null"}]},"dropoffLocation":{"oneOf":[{"$ref":"#/components/schemas/DispatchScienceLocationResponse1"},{"type":"null"}]},"dropoffNotes":{"type":["string","null"]},"dropoffTimeZone":{"oneOf":[{"$ref":"#/components/schemas/DispatchScienceTimeZoneResponse1"},{"type":"null"}]},"dropoffWindow":{"oneOf":[{"$ref":"#/components/schemas/DispatchScienceTimeWindowResponse1"},{"type":"null"}]},"isOnHold":{"type":["boolean","null"]},"notes":{"type":["string","null"]},"numberOfPieces":{"type":["integer","null"]},"orderId":{"type":"string","minLength":1},"pickupAddress":{"oneOf":[{"$ref":"#/components/schemas/DispatchScienceAddressResponse1"},{"type":"null"}]},"pickupContactInfo":{"oneOf":[{"$ref":"#/components/schemas/DispatchScienceContactInfoResponse1"},{"type":"null"}]},"pickupLocation":{"oneOf":[{"$ref":"#/components/schemas/DispatchScienceLocationResponse1"},{"type":"null"}]},"pickupNotes":{"type":["string","null"]},"pickupTimeZone":{"oneOf":[{"$ref":"#/components/schemas/DispatchScienceTimeZoneResponse1"},{"type":"null"}]},"pickupWindow":{"oneOf":[{"$ref":"#/components/schemas/DispatchScienceTimeWindowResponse1"},{"type":"null"}]},"readyAt":{"type":["string","null"]},"receivedBy":{"type":["string","null"]},"referenceNumber1":{"type":["string","null"]},"referenceNumber2":{"type":["string","null"]},"referenceNumber3":{"type":["string","null"]},"serviceLevelId":{"type":["string","null"]},"status":{"type":"integer"},"vehicleTypeId":{"type":["string","null"]},"volume":{"type":["number","null"],"format":"double"},"volumeUnits":{"type":["string","null"]},"weight":{"type":["number","null"],"format":"double"},"weightUnits":{"type":["string","null"]}},"required":["orderId","status"],"description":"Known fields from a DispatchScience order, retaining all other fields.","title":"DispatchScienceOrderResponse1"},"DispatchScienceOrder1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"integration_order_id":{"type":"string"},"mirrored_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_payload":{"$ref":"#/components/schemas/DispatchScienceOrderResponse1"},"provider_payload_hash":{"type":"string","minLength":64,"maxLength":64},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["dispatch_science"]},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","created_at_timestamp","integration_order_id","mirrored_at_timestamp","org_id","provider_org_id","provider_payload","provider_payload_hash","schema_version","shipping_integration","updated_at_timestamp"],"title":"DispatchScienceOrder1"},"DispatchScienceOrderSortByEnum":{"type":"string","enum":["mirrored_at_timestamp","created_at_timestamp","updated_at_timestamp","integration_order_id"],"title":"DispatchScienceOrderSortByEnum"},"DispatchScienceOrderListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DispatchScienceOrder1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"DispatchScienceOrderListRes"},"DispatchScienceOrderSyncOneReq":{"type":"object","properties":{"integration_order_id":{"type":"string","minLength":1},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"}},"required":["integration_order_id","provider_org_id"],"title":"DispatchScienceOrderSyncOneReq"},"DispatchScienceOrderTypeaheadFieldEnum":{"type":"string","enum":["integration_order_id"],"title":"DispatchScienceOrderTypeaheadFieldEnum"},"DispatchScienceOrderTypeaheadValue":{"type":"object","properties":{"dispatch_science_order_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["dispatch_science_order_ids","value"],"title":"DispatchScienceOrderTypeaheadValue"},"DispatchScienceOrderTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/DispatchScienceOrderTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/DispatchScienceOrderTypeaheadValue"}}},"required":["type","values"],"title":"DispatchScienceOrderTypeaheadResult"},"EcourierCredsLimited1":{"type":"object","properties":{"_id":{"type":"string"},"active":{"type":"boolean","default":true},"base_url":{"type":"string","description":"Origin of the courier's e-Courier host, with no path. The request path is derived from `ecourier_database`."},"created_at_timestamp":{"type":"string","format":"date-time"},"ecourier_customer_code":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,32}$"},"ecourier_customer_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,32}$"},"ecourier_database":{"type":"string","pattern":"^[a-z0-9_-]{1,64}$"},"high_water_mark_timestamp":{"type":["string","null"],"format":"date-time"},"notes":{"type":["string","null"],"maxLength":4096},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"provider_account_label":{"type":["string","null"],"maxLength":2048},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["ecourier"]},"updated_at_timestamp":{"type":"string","format":"date-time"},"username":{"type":"string"}},"required":["_id","base_url","created_at_timestamp","ecourier_customer_code","ecourier_customer_id","ecourier_database","org_id","owned_by_user_id","provider_org_id","schema_version","shipping_integration","updated_at_timestamp","username"],"description":"The only shape of an e-Courier credential a user is ever allowed to receive.","title":"EcourierCredsLimited1"},"EcourierCredsListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/EcourierCredsLimited1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"EcourierCredsListRes"},"EcourierCredsTestRes":{"type":"object","properties":{"failure_reason":{"type":["string","null"]},"ok":{"type":"boolean"},"provider_account_label":{"type":["string","null"]}},"required":["ok"],"description":"Result of testing whether a stored e-Courier credential still works.","title":"EcourierCredsTestRes"},"EcourierCredsClientCreate1":{"type":"object","properties":{"base_url":{"type":"string","description":"Origin of the courier's e-Courier host, with no path. The request path is derived from `ecourier_database`."},"ecourier_customer_code":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,32}$"},"ecourier_customer_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,32}$"},"ecourier_database":{"type":"string","pattern":"^[a-z0-9_-]{1,64}$"},"notes":{"type":["string","null"],"maxLength":4096},"password":{"type":"string"},"schema_version":{"type":"integer"},"username":{"type":"string"}},"required":["base_url","ecourier_customer_code","ecourier_customer_id","ecourier_database","password","schema_version","username"],"title":"EcourierCredsClientCreate1"},"EcourierCredsClientUpdate1":{"type":"object","properties":{"ecourier_customer_code":{"type":["string","null"],"pattern":"^[A-Za-z0-9_-]{1,32}$"},"ecourier_customer_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9_-]{1,32}$"},"notes":{"type":["string","null"]},"notes__set_to_None":{"type":"boolean","default":false},"password":{"type":["string","null"]},"password__set_to_None":{"type":"boolean","default":false}},"title":"EcourierCredsClientUpdate1"},"EcourierOrderCustomerResponse1":{"type":"object","properties":{"@CustomerCode":{"type":["string","null"]},"@CustomerID":{"type":["string","null"]},"@Name":{"type":["string","null"]}},"description":"The customer an order belongs to.\n\nThis is what the customer check reads. `FindOrder`'s `CustomerCode` filter is\nundocumented, so the sync asserts `customer_code` here on every\nhydrated order before persisting it, keeping the mirror to our customer's\norders rather than trusting the query.","title":"EcourierOrderCustomerResponse1"},"EcourierOrderStopResponse1":{"type":"object","properties":{"@Address":{"type":["string","null"]},"@City":{"type":["string","null"]},"@Country":{"type":["string","null"]},"@Latitude":{"type":["string","null"]},"@Longitude":{"type":["string","null"]},"@Name":{"type":["string","null"]},"@Pieces":{"type":["string","null"]},"@ScheduledDateTime":{"type":["string","null"]},"@ScheduledDateTimeTZ":{"type":["string","null"]},"@Sequence":{"type":["string","null"]},"@State":{"type":["string","null"]},"@StopID":{"type":["string","null"]},"@StopType":{"type":["string","null"]},"@Weight":{"type":["string","null"]},"@Zip":{"type":["string","null"]}},"description":"One stop on an order.\n\n`stop_type` is the authoritative origin/destination marker: `P` for pickup,\n`D` for delivery. No sequence-number inference is needed, which is\ncleaner than most integrations give us.","title":"EcourierOrderStopResponse1"},"EcourierOrderResponse1":{"type":"object","properties":{"@AmountCharged":{"type":["string","null"]},"@Auth":{"type":["string","null"]},"@Caller":{"type":["string","null"]},"@CallerEmail":{"type":["string","null"]},"@CallerPhone":{"type":["string","null"]},"@CreateDate":{"type":["string","null"]},"@CreateUserName":{"type":["string","null"]},"@CustomerID":{"type":["string","null"]},"@DeliveredDateTime":{"type":["string","null"]},"@DispatchDateTime":{"type":["string","null"]},"@DueDateTime":{"type":["string","null"]},"@InvoiceStatus":{"type":["string","null"]},"@LastChanged":{"type":["string","null"]},"@OperationalStatus":{"type":["string","null"]},"@OrderAlias":{"type":["string","null"]},"@OrderDate":{"type":["string","null"]},"@OrderGUID":{"type":["string","null"]},"@OrderID":{"type":["string","null"]},"@OrderNumber":{"type":["string","null"]},"@OrderStatus":{"type":["string","null"]},"@PickedUpDateTime":{"type":["string","null"]},"@Pieces":{"type":["string","null"]},"@PodDateTime":{"type":["string","null"]},"@PodName":{"type":["string","null"]},"@Service":{"type":["string","null"]},"@ServiceDesc":{"type":["string","null"]},"@SiteCode":{"type":["string","null"]},"@TotalMiles":{"type":["string","null"]},"@Weight":{"type":["string","null"]},"Customer":{"oneOf":[{"$ref":"#/components/schemas/EcourierOrderCustomerResponse1"},{"type":"null"}]},"Stops":{"type":"array","items":{"$ref":"#/components/schemas/EcourierOrderStopResponse1"}}},"description":"One e-Courier order, including caller contact details and POD signoff.\n\n`@UserGUID` and `OrderEvents` are the only attributes deliberately absent,\nand never to be added. See the module docstring.","title":"EcourierOrderResponse1"},"EcourierOrder1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"integration_order_id":{"type":"string"},"mirrored_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_payload":{"$ref":"#/components/schemas/EcourierOrderResponse1"},"provider_payload_hash":{"type":"string","minLength":64,"maxLength":64},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["ecourier"]},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","created_at_timestamp","integration_order_id","mirrored_at_timestamp","org_id","provider_org_id","provider_payload","provider_payload_hash","schema_version","shipping_integration","updated_at_timestamp"],"title":"EcourierOrder1"},"EcourierOrderSortByEnum":{"type":"string","enum":["mirrored_at_timestamp","created_at_timestamp","updated_at_timestamp","integration_order_id"],"title":"EcourierOrderSortByEnum"},"EcourierOrderListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/EcourierOrder1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"EcourierOrderListRes"},"EcourierOrderSyncOneReq":{"type":"object","properties":{"integration_order_id":{"type":"string","pattern":"^[0-9]{1,20}$"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"}},"required":["integration_order_id","provider_org_id"],"title":"EcourierOrderSyncOneReq"},"ShippingIntegrationIntegrationExecutor":{"type":"object","properties":{"integration_executor_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"integration_executor_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"integration_executor_org_name":{"type":["string","null"]},"integrations":{"type":"array","items":{"$ref":"#/components/schemas/OrgShippingIntegrationEnum1"}}},"required":["integration_executor_org_id"],"description":"A distinct integration executor organization configured across shipping integrations.\n\nDeliberately carries no credentials or secrets: provides the public identity\nand the list of shipping integrations the executor org is connected with.","title":"ShippingIntegrationIntegrationExecutor"},"ShippingIntegrationIntegrationExecutorListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ShippingIntegrationIntegrationExecutor"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"ShippingIntegrationIntegrationExecutorListRes"},"OnTime360CredsLimited1":{"type":"object","properties":{"_id":{"type":"string"},"active":{"type":"boolean","default":true},"base_url":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"high_water_mark_timestamp":{"type":["string","null"],"format":"date-time"},"notes":{"type":["string","null"],"maxLength":4096},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"provider_account_label":{"type":["string","null"],"maxLength":2048},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["ontime360"]},"site_time_zone":{"type":"string","description":"IANA time zone name (e.g. `America/New_York`)."},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","base_url","created_at_timestamp","org_id","owned_by_user_id","provider_org_id","schema_version","shipping_integration","site_time_zone","updated_at_timestamp"],"description":"The only shape of an OnTime360 credential a user is ever allowed to receive.","title":"OnTime360CredsLimited1"},"OnTime360CredsListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OnTime360CredsLimited1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OnTime360CredsListRes"},"OnTime360CredsTestRes":{"type":"object","properties":{"failure_reason":{"type":["string","null"]},"ok":{"type":"boolean"},"provider_account_label":{"type":["string","null"]},"provider_reported_time_zones":{"type":"array","items":{"type":"string"}},"site_time_zone":{"type":["string","null"]}},"required":["ok"],"description":"Result of testing whether a stored OnTime360 credential still works.","title":"OnTime360CredsTestRes"},"OnTime360CredsClientCreate1":{"type":"object","properties":{"api_key":{"type":"string"},"base_url":{"type":"string"},"notes":{"type":["string","null"],"maxLength":4096},"schema_version":{"type":"integer"},"site_time_zone":{"type":"string","description":"IANA time zone name (e.g. `America/New_York`)."}},"required":["api_key","base_url","schema_version","site_time_zone"],"title":"OnTime360CredsClientCreate1"},"OnTime360CredsClientUpdate1":{"type":"object","properties":{"api_key":{"type":["string","null"]},"api_key__set_to_None":{"type":"boolean","default":false},"notes":{"type":["string","null"]},"notes__set_to_None":{"type":"boolean","default":false},"site_time_zone":{"type":["string","null"]}},"title":"OnTime360CredsClientUpdate1"},"OnTime360TimeWindowResponse1":{"type":"object","properties":{"EarliestTime":{"type":["string","null"]},"LatestTime":{"type":["string","null"]},"Length":{"type":["string","null"]}},"title":"OnTime360TimeWindowResponse1"},"OnTime360ZoneResponse1":{"type":"object","properties":{"ID":{"type":["string","null"]},"Name":{"type":["string","null"]}},"title":"OnTime360ZoneResponse1"},"OnTime360LocationResponse1":{"type":"object","properties":{"AddressLine1":{"type":["string","null"]},"AddressLine2":{"type":["string","null"]},"City":{"type":["string","null"]},"CompanyName":{"type":["string","null"]},"ContactName":{"type":["string","null"]},"Country":{"type":["string","null"]},"ID":{"type":["string","null"]},"LatitudeLongitude":{"type":["string","null"]},"PostalCode":{"type":["string","null"]},"State":{"type":["string","null"]},"Zone":{"oneOf":[{"$ref":"#/components/schemas/OnTime360ZoneResponse1"},{"type":"null"}]}},"title":"OnTime360LocationResponse1"},"OnTime360ItemResponse1":{"type":"object","properties":{"Description":{"type":["string","null"]},"ID":{"type":["string","null"]},"OrderID":{"type":["string","null"]},"TrackingNumber":{"type":["string","null"]},"Weight":{"type":["number","null"],"format":"double"}},"title":"OnTime360ItemResponse1"},"OnTime360PriceModifierResponse1":{"type":"object","properties":{"ID":{"type":["string","null"]},"InternalName":{"type":["string","null"]},"Name":{"type":["string","null"]},"Price":{"type":["number","null"],"format":"double"}},"title":"OnTime360PriceModifierResponse1"},"OnTime360StatusLevelEnum1":{"type":"string","enum":["0","1","2","3","4","5","6","7","8","9"],"description":"Operational status of an order.\n\nThe live OpenAPI spec declares `StatusLevel` and `Status.Level` as enum name\nstrings while the wire format is the integer ordinal, so the validator below\naccepts either. Ordinals are the vendor's own and are what we store.","title":"OnTime360StatusLevelEnum1"},"OnTime360StatusResponse1":{"type":"object","properties":{"Description":{"type":["string","null"]},"ID":{"type":["string","null"]},"Level":{"oneOf":[{"$ref":"#/components/schemas/OnTime360StatusLevelEnum1"},{"type":"null"}]},"Name":{"type":["string","null"]},"Timestamp":{"type":["string","null"]}},"title":"OnTime360StatusResponse1"},"OnTime360OrderResponse1":{"type":"object","properties":{"BasePrice":{"type":["number","null"],"format":"double"},"CODAmount":{"type":["number","null"],"format":"double"},"CollectionArrivalDate":{"type":["string","null"]},"CollectionArrivalWindow":{"oneOf":[{"$ref":"#/components/schemas/OnTime360TimeWindowResponse1"},{"type":"null"}]},"CollectionAssignedDriver":{"type":["string","null"]},"CollectionContactName":{"type":["string","null"]},"CollectionLocation":{"oneOf":[{"$ref":"#/components/schemas/OnTime360LocationResponse1"},{"type":"null"}]},"CollectionSignatureRequired":{"type":["boolean","null"]},"Comments":{"type":["string","null"]},"Customer":{"type":["string","null"]},"DateSubmitted":{"type":["string","null"]},"DeclaredValue":{"type":["number","null"],"format":"double"},"DeliveryArrivalDate":{"type":["string","null"]},"DeliveryArrivalWindow":{"oneOf":[{"$ref":"#/components/schemas/OnTime360TimeWindowResponse1"},{"type":"null"}]},"DeliveryAssignedDriver":{"type":["string","null"]},"DeliveryContactName":{"type":["string","null"]},"DeliveryLocation":{"oneOf":[{"$ref":"#/components/schemas/OnTime360LocationResponse1"},{"type":"null"}]},"DeliverySignatureRequired":{"type":["boolean","null"]},"Description":{"type":["string","null"]},"Dispatcher":{"type":["string","null"]},"Distance":{"type":["number","null"],"format":"double"},"DriverCoordinatesOnCollection":{"type":["string","null"]},"DriverCoordinatesOnDelivery":{"type":["string","null"]},"DriverCurrentlyAssigned":{"type":["string","null"]},"Height":{"type":["number","null"],"format":"double"},"ID":{"type":"string","minLength":1},"IncomingTrackingNumber":{"type":["string","null"]},"Items":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OnTime360ItemResponse1"}},"Length":{"type":["number","null"],"format":"double"},"OutgoingTrackingNumber":{"type":["string","null"]},"PriceAdjustment":{"type":["number","null"],"format":"double"},"PriceModifierTotalCost":{"type":["number","null"],"format":"double"},"PriceModifiers":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OnTime360PriceModifierResponse1"}},"PurchaseOrderNumber":{"type":["string","null"]},"Quantity":{"type":["integer","null"]},"ReferenceNumber":{"type":["string","null"]},"RequestedBy":{"type":["string","null"]},"RouteName":{"type":["string","null"]},"Status":{"oneOf":[{"$ref":"#/components/schemas/OnTime360StatusResponse1"},{"type":"null"}]},"StatusLevel":{"oneOf":[{"$ref":"#/components/schemas/OnTime360StatusLevelEnum1"},{"type":"null"}]},"SubmissionSource":{"type":["string","null"]},"Subtotal":{"type":["number","null"],"format":"double"},"TaxTotal":{"type":["number","null"],"format":"double"},"TotalCost":{"type":["number","null"],"format":"double"},"TrackingNumber":{"type":["string","null"]},"Weight":{"type":["number","null"],"format":"double"},"Width":{"type":["number","null"],"format":"double"}},"required":["ID"],"description":"Known fields from an OnTime360 order, retaining all other fields.","title":"OnTime360OrderResponse1"},"OnTime360Order1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"integration_order_id":{"type":"string"},"mirrored_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_payload":{"$ref":"#/components/schemas/OnTime360OrderResponse1"},"provider_payload_hash":{"type":"string","minLength":64,"maxLength":64},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["ontime360"]},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","created_at_timestamp","integration_order_id","mirrored_at_timestamp","org_id","provider_org_id","provider_payload","provider_payload_hash","schema_version","shipping_integration","updated_at_timestamp"],"title":"OnTime360Order1"},"OnTime360OrderSortByEnum":{"type":"string","enum":["mirrored_at_timestamp","created_at_timestamp","updated_at_timestamp","integration_order_id"],"title":"OnTime360OrderSortByEnum"},"OnTime360OrderListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OnTime360Order1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"OnTime360OrderListRes"},"OnTime360OrderSyncOneReq":{"type":"object","properties":{"integration_order_id":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"}},"required":["integration_order_id","provider_org_id"],"title":"OnTime360OrderSyncOneReq"},"OnTime360OrderTypeaheadFieldEnum":{"type":"string","enum":["integration_order_id"],"title":"OnTime360OrderTypeaheadFieldEnum"},"OnTime360OrderTypeaheadValue":{"type":"object","properties":{"ontime360_order_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["ontime360_order_ids","value"],"title":"OnTime360OrderTypeaheadValue"},"OnTime360OrderTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/OnTime360OrderTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/OnTime360OrderTypeaheadValue"}}},"required":["type","values"],"title":"OnTime360OrderTypeaheadResult"},"ShippingIntegrationOrderStatusTimestampProvenanceEnum1":{"type":"string","enum":["reported","derived"],"title":"ShippingIntegrationOrderStatusTimestampProvenanceEnum1"},"ShippingIntegrationOrderPlace1":{"type":"object","properties":{"city":{"type":["string","null"]},"company_name":{"type":["string","null"]},"country_code":{"type":["string","null"]},"label":{"type":"string"},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"postal_code":{"type":["string","null"]},"state":{"type":["string","null"]}},"required":["label"],"description":"One end of a route.\n\nOnly `label` is guaranteed. Some integrations expose a bare place name with\nno structured address and no coordinates at all, so every other field is\noptional. `location` carries GeoJSON when the provider gives coordinates,\nwhich is what makes the place mappable and 2dsphere-indexable.","title":"ShippingIntegrationOrderPlace1"},"ShippingIntegrationOrderStatusEnum1":{"type":"string","enum":["staged","in_progress","completed","cancelled","exception"],"title":"ShippingIntegrationOrderStatusEnum1"},"ShippingIntegrationOrderExpanded1":{"type":"object","properties":{"_id":{"type":"string"},"completed_at_provenance":{"oneOf":[{"$ref":"#/components/schemas/ShippingIntegrationOrderStatusTimestampProvenanceEnum1"},{"type":"null"}]},"completed_at_timestamp":{"type":["string","null"],"format":"date-time"},"destination":{"oneOf":[{"$ref":"#/components/schemas/ShippingIntegrationOrderPlace1"},{"type":"null"}]},"first_mirrored_at_timestamp":{"type":"string","format":"date-time"},"in_progress_at_provenance":{"oneOf":[{"$ref":"#/components/schemas/ShippingIntegrationOrderStatusTimestampProvenanceEnum1"},{"type":"null"}]},"in_progress_at_timestamp":{"type":["string","null"],"format":"date-time"},"integration_order_id":{"type":"string"},"last_mirrored_at_timestamp":{"type":"string","format":"date-time"},"ordered_at_timestamp":{"type":["string","null"],"format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"origin":{"oneOf":[{"$ref":"#/components/schemas/ShippingIntegrationOrderPlace1"},{"type":"null"}]},"provider_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_status_raw":{"type":["string","null"]},"reference_numbers":{"type":"array","items":{"type":"string"}},"schema_version":{"type":"integer"},"shipper_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"shipping_integration":{"$ref":"#/components/schemas/OrgShippingIntegrationEnum1"},"source_provider_payload_hash":{"type":"string","minLength":64,"maxLength":64},"status":{"$ref":"#/components/schemas/ShippingIntegrationOrderStatusEnum1"},"stop_count":{"type":["integer","null"]}},"required":["_id","first_mirrored_at_timestamp","integration_order_id","last_mirrored_at_timestamp","org_id","provider_org_id","schema_version","shipping_integration","source_provider_payload_hash","status"],"title":"ShippingIntegrationOrderExpanded1"},"ShippingIntegrationOrderListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ShippingIntegrationOrderExpanded1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"ShippingIntegrationOrderListRes"},"ShippingIntegrationOrderSortByEnum":{"type":"string","enum":["ordered_at_timestamp","completed_at_timestamp","last_mirrored_at_timestamp","first_mirrored_at_timestamp","status"],"title":"ShippingIntegrationOrderSortByEnum"},"ShippingIntegrationOrderStatusSummaryRes":{"type":"object","properties":{"cancelled_count":{"type":"integer"},"completed_count":{"type":"integer"},"exception_count":{"type":"integer"},"in_progress_count":{"type":"integer"},"staged_count":{"type":"integer"},"total_count":{"type":"integer"}},"required":["cancelled_count","completed_count","exception_count","in_progress_count","staged_count","total_count"],"description":"Order counts per unified status, for the dashboard and the table widget.","title":"ShippingIntegrationOrderStatusSummaryRes"},"ShippingIntegrationOrderTypeaheadFieldEnum":{"type":"string","enum":["integration_order_id","reference_numbers"],"title":"ShippingIntegrationOrderTypeaheadFieldEnum"},"ShippingIntegrationOrderTypeaheadValue":{"type":"object","properties":{"shipping_integration_order_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["shipping_integration_order_ids","value"],"title":"ShippingIntegrationOrderTypeaheadValue"},"ShippingIntegrationOrderTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ShippingIntegrationOrderTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/ShippingIntegrationOrderTypeaheadValue"}}},"required":["type","values"],"title":"ShippingIntegrationOrderTypeaheadResult"},"XceleratorCredsLimited1":{"type":"object","properties":{"_id":{"type":"string"},"access_token_expires_at_timestamp":{"type":["string","null"],"format":"date-time"},"access_token_updated_at_timestamp":{"type":["string","null"],"format":"date-time"},"active":{"type":"boolean","default":true},"base_url":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"description":{"type":["string","null"],"maxLength":4096},"high_water_mark_timestamp":{"type":["string","null"],"format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"provider_account_label":{"type":["string","null"],"maxLength":2048},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["xcelerator"]},"updated_at_timestamp":{"type":"string","format":"date-time"},"username":{"type":["string","null"]}},"required":["_id","base_url","created_at_timestamp","org_id","owned_by_user_id","provider_org_id","schema_version","shipping_integration","updated_at_timestamp"],"description":"The only shape of an Xcelerator credential a user is ever allowed to receive.","title":"XceleratorCredsLimited1"},"XceleratorCredsListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/XceleratorCredsLimited1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"XceleratorCredsListRes"},"XceleratorCredsTestRes":{"type":"object","properties":{"failure_reason":{"type":["string","null"]},"ok":{"type":"boolean"},"provider_account_label":{"type":["string","null"]}},"required":["ok"],"description":"Result of testing whether a stored Xcelerator credential still works.","title":"XceleratorCredsTestRes"},"XceleratorCredsClientCreate1":{"type":"object","properties":{"base_url":{"type":"string","description":"Per-provider https:// base URL for a courier TMS integration."},"description":{"type":["string","null"],"maxLength":4096},"password":{"type":"string"},"schema_version":{"type":"integer"},"username":{"type":"string"}},"required":["base_url","password","schema_version","username"],"title":"XceleratorCredsClientCreate1"},"XceleratorCredsClientUpdate1":{"type":"object","properties":{"description":{"type":["string","null"]},"description__set_to_None":{"type":"boolean","default":false},"password":{"type":["string","null"]},"password__set_to_None":{"type":"boolean","default":false},"username":{"type":["string","null"]},"username__set_to_None":{"type":"boolean","default":false}},"title":"XceleratorCredsClientUpdate1"},"XceleratorOrderExtraResponse1":{"type":"object","properties":{"Extra":{"type":["string","null"]},"ExtraId":{"type":["integer","null"]},"Quantity":{"type":["number","null"],"format":"double"},"TotalCharge":{"type":["number","null"],"format":"double"}},"title":"XceleratorOrderExtraResponse1"},"XceleratorOrderPackageResponse1":{"type":"object","properties":{"PackageCount":{"type":["integer","null"]},"PackageName":{"type":["string","null"]}},"title":"XceleratorOrderPackageResponse1"},"XceleratorOrderResponse1":{"type":"object","properties":{"AccountNo":{"type":["string","null"]},"AfterHoursCharge":{"type":["number","null"],"format":"double"},"CODCharge":{"type":["number","null"],"format":"double"},"ClientRefNo":{"type":["string","null"]},"ClientRefNo2":{"type":["string","null"]},"ClientRefNo3":{"type":["string","null"]},"ClientRefNo4":{"type":["string","null"]},"CreationUTC":{"type":["string","null"]},"DCity":{"type":["string","null"]},"DCoName":{"type":["string","null"]},"DContact":{"type":["string","null"]},"DLatitude":{"type":["number","null"],"format":"double"},"DLongitude":{"type":["number","null"],"format":"double"},"DState":{"type":["string","null"]},"DStreet":{"type":["string","null"]},"DStreet2":{"type":["string","null"]},"DTimeZoneText":{"type":["string","null"]},"DZip":{"type":["string","null"]},"DeclaredValueCharge":{"type":["number","null"],"format":"double"},"DeliveryArrival":{"type":["string","null"]},"DeliveryDeparture":{"type":["string","null"]},"DeliveryTargetFrom":{"type":["string","null"]},"DeliveryTargetTo":{"type":["string","null"]},"GrandTotal":{"type":["number","null"],"format":"double"},"HasPODsignature":{"type":["boolean","null"]},"HasPOPsignature":{"type":["boolean","null"]},"HasVPOD":{"type":["boolean","null"]},"HasVPOP":{"type":["boolean","null"]},"HourlyCharge":{"type":["number","null"],"format":"double"},"MileageTotal":{"type":["number","null"],"format":"double"},"MiscCharge":{"type":["number","null"],"format":"double"},"OrderCharge":{"type":["number","null"],"format":"double"},"OrderExtras":{"type":["array","null"],"items":{"$ref":"#/components/schemas/XceleratorOrderExtraResponse1"}},"OrderPackages":{"type":["array","null"],"items":{"$ref":"#/components/schemas/XceleratorOrderPackageResponse1"}},"OrderTrackingId":{"type":"string","minLength":1},"OrderType":{"type":["string","null"]},"PCity":{"type":["string","null"]},"PCoName":{"type":["string","null"]},"PContact":{"type":["string","null"]},"PLatitude":{"type":["number","null"],"format":"double"},"PLongitude":{"type":["number","null"],"format":"double"},"PODcompletion":{"type":["string","null"]},"PODname":{"type":["string","null"]},"POPname":{"type":["string","null"]},"PState":{"type":["string","null"]},"PStreet":{"type":["string","null"]},"PStreet2":{"type":["string","null"]},"PTimeZoneText":{"type":["string","null"]},"PZip":{"type":["string","null"]},"PackageCharge":{"type":["number","null"],"format":"double"},"PickupArrival":{"type":["string","null"]},"PickupDeparture":{"type":["string","null"]},"PickupTargetFrom":{"type":["string","null"]},"PickupTargetTo":{"type":["string","null"]},"ServiceName":{"type":["string","null"]},"Status":{"type":["string","null"]},"StopOffCharge":{"type":["number","null"],"format":"double"},"Subtotal":{"type":["number","null"],"format":"double"},"Tax1Amount":{"type":["number","null"],"format":"double"},"Tax2Amount":{"type":["number","null"],"format":"double"},"TollCharge":{"type":["number","null"],"format":"double"},"TotalCharge":{"type":["number","null"],"format":"double"},"TotalExtras":{"type":["number","null"],"format":"double"},"TotalSurcharges":{"type":["number","null"],"format":"double"},"TrackingKey":{"type":["string","null"]},"VehicleName":{"type":["string","null"]},"WaitTimeCharge":{"type":["number","null"],"format":"double"},"WarehousingCharge":{"type":["number","null"],"format":"double"},"WeightCharge":{"type":["number","null"],"format":"double"},"oDate":{"type":["string","null"]},"sWeight":{"type":["number","null"],"format":"double"}},"required":["OrderTrackingId"],"description":"Known fields from an Axis v3 or v4 order, retaining all other fields.","title":"XceleratorOrderResponse1"},"XceleratorOrderExpanded1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"integration_order_id":{"type":"string"},"mirrored_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org":{"oneOf":[{"$ref":"#/components/schemas/OrgPublicData1"},{"type":"null"}]},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_payload":{"$ref":"#/components/schemas/XceleratorOrderResponse1"},"provider_payload_hash":{"type":"string","minLength":64,"maxLength":64},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["xcelerator"]},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","created_at_timestamp","integration_order_id","mirrored_at_timestamp","org_id","provider_org_id","provider_payload","provider_payload_hash","schema_version","shipping_integration","updated_at_timestamp"],"title":"XceleratorOrderExpanded1"},"XceleratorOrderSortByEnum":{"type":"string","enum":["mirrored_at_timestamp","created_at_timestamp","updated_at_timestamp","integration_order_id"],"title":"XceleratorOrderSortByEnum"},"XceleratorOrderListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/XceleratorOrderExpanded1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"XceleratorOrderListRes"},"XceleratorOrderSyncOneReq":{"type":"object","properties":{"integration_order_id":{"type":"string","minLength":1},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"}},"required":["integration_order_id","provider_org_id"],"title":"XceleratorOrderSyncOneReq"},"XceleratorOrder1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"integration_order_id":{"type":"string"},"mirrored_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"provider_payload":{"$ref":"#/components/schemas/XceleratorOrderResponse1"},"provider_payload_hash":{"type":"string","minLength":64,"maxLength":64},"schema_version":{"type":"integer"},"shipping_integration":{"type":"string","enum":["xcelerator"]},"updated_at_timestamp":{"type":"string","format":"date-time"}},"required":["_id","created_at_timestamp","integration_order_id","mirrored_at_timestamp","org_id","provider_org_id","provider_payload","provider_payload_hash","schema_version","shipping_integration","updated_at_timestamp"],"title":"XceleratorOrder1"},"XceleratorOrderTypeaheadFieldEnum":{"type":"string","enum":["integration_order_id"],"title":"XceleratorOrderTypeaheadFieldEnum"},"XceleratorOrderTypeaheadValue":{"type":"object","properties":{"value":{"type":"string"},"xcelerator_order_ids":{"type":"array","items":{"type":"string"}}},"required":["value","xcelerator_order_ids"],"title":"XceleratorOrderTypeaheadValue"},"XceleratorOrderTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/XceleratorOrderTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/XceleratorOrderTypeaheadValue"}}},"required":["type","values"],"title":"XceleratorOrderTypeaheadResult"},"TrackingDeviceTypeEnum1":{"type":"string","enum":["D15N-tag","MTB06-label","T3-D-tag"],"title":"TrackingDeviceTypeEnum1"},"DeviceForCargoRes":{"type":"object","properties":{"device_id":{"type":"string"},"device_mac_address":{"type":"string"},"is_currently_linked":{"type":"boolean"},"last_seen_at_timestamp":{"type":["string","null"],"format":"date-time"},"last_seen_battery_level":{"type":["string","null"]},"type":{"oneOf":[{"$ref":"#/components/schemas/TrackingDeviceTypeEnum1"},{"type":"null"}]}},"required":["device_id","device_mac_address","is_currently_linked","last_seen_at_timestamp","last_seen_battery_level","type"],"description":"A device as seen by the cargo's order parties, who may not own or share the device.\n\nNOTE - excludes device_token (the webhook secret), location, and owner-only fields.","title":"DeviceForCargoRes"},"GeofencePointLocationFeature1Bbox":{"oneOf":[{"type":"array","items":{"description":"Any type"}},{"type":"array","items":{"description":"Any type"}}],"title":"GeofencePointLocationFeature1Bbox"},"Point":{"type":"object","properties":{"bbox":{"oneOf":[{"$ref":"#/components/schemas/PointBbox"},{"type":"null"}]},"coordinates":{"$ref":"#/components/schemas/PointCoordinates"},"type":{"type":"string","enum":["Point"]}},"required":["coordinates","type"],"description":"Point Model","title":"Point"},"GeofencePointLocationFeature1Id":{"oneOf":[{"type":"integer"},{"type":"string"}],"title":"GeofencePointLocationFeature1Id"},"GeofencePointLocationFeature1":{"type":"object","properties":{"bbox":{"oneOf":[{"$ref":"#/components/schemas/GeofencePointLocationFeature1Bbox"},{"type":"null"}]},"geometry":{"$ref":"#/components/schemas/Point"},"id":{"oneOf":[{"$ref":"#/components/schemas/GeofencePointLocationFeature1Id"},{"type":"null"}]},"properties":{"oneOf":[{"$ref":"#/components/schemas/LocationProperties"},{"type":"null"}]},"type":{"type":"string","enum":["Feature"]}},"required":["geometry","type"],"title":"GeofencePointLocationFeature1"},"SessionGeofence1":{"type":"object","properties":{"display_name":{"type":"string","minLength":1},"entered":{"type":"boolean","default":false},"entered_at_timestamp":{"type":["string","null"],"format":"date-time"},"geofence_id":{"type":"string","format":"uuid4"},"location":{"$ref":"#/components/schemas/GeofencePointLocationFeature1"},"radius_miles":{"type":"number","format":"double","maximum":10000,"exclusiveMinimum":0}},"required":["display_name","geofence_id","location","radius_miles"],"title":"SessionGeofence1"},"Session2":{"type":"object","properties":{"_id":{"type":"string"},"comments":{"type":["string","null"],"maxLength":524288},"created_at_timestamp":{"type":"string","format":"date-time"},"device_id":{"type":"string"},"device_mac_address":{"type":"string"},"flight_leg_ids":{"type":"array","items":{"type":"string"}},"flight_loaded_status_by_flight_leg_id":{"type":"object","additionalProperties":{"type":["string","null"]}},"flight_loaded_statuses":{"type":"array","items":{"type":"string"}},"flight_numbers":{"type":"array","items":{"type":"string"}},"geofences":{"type":"array","items":{"$ref":"#/components/schemas/SessionGeofence1"}},"last_seen_at_location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"last_seen_at_location_city":{"type":["string","null"]},"last_seen_at_location_large_city":{"type":["string","null"]},"last_seen_at_timestamp":{"type":["string","null"],"format":"date-time"},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"public":{"type":"boolean","default":false},"schema_version":{"type":"integer"},"shared_with_org_ids":{"type":"array","items":{"type":"string"}},"terminated":{"type":"boolean","default":false},"terminated_at_timestamp":{"type":["string","null"],"format":"date-time"},"termination_scheduled_for_timestamp":{"type":["string","null"],"format":"date-time"}},"required":["_id","created_at_timestamp","device_id","device_mac_address","org_id","schema_version"],"title":"Session2"},"DevicePausedTimeWindow1":{"type":"object","properties":{"end_timestamp":{"type":["string","null"],"format":"date-time"},"start_timestamp":{"type":"string","format":"date-time"}},"required":["start_timestamp"],"title":"DevicePausedTimeWindow1"},"DeviceLimitedForList1":{"type":"object","properties":{"_id":{"type":"string"},"active_cargo_id":{"type":["string","null"]},"active_session_id":{"type":["string","null"]},"archived":{"type":"boolean","default":false},"comments":{"type":["string","null"],"maxLength":524288},"device_mac_address":{"type":"string"},"device_token":{"type":["string","null"]},"first_seen_at_timestamp":{"type":["string","null"],"format":"date-time"},"last_seen_at_location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"last_seen_at_location_city":{"type":["string","null"]},"last_seen_at_location_large_city":{"type":["string","null"]},"last_seen_at_timestamp":{"type":["string","null"],"format":"date-time"},"last_seen_battery_level":{"type":["string","null"]},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"pause_windows":{"type":"array","items":{"$ref":"#/components/schemas/DevicePausedTimeWindow1"}},"paused":{"type":"boolean","default":false},"registered_at_timestamp":{"type":["string","null"],"format":"date-time"},"schema_version":{"type":"integer"},"shared_with_org_ids":{"type":"array","items":{"type":"string"}},"type":{"oneOf":[{"$ref":"#/components/schemas/TrackingDeviceTypeEnum1"},{"type":"null"}]}},"required":["_id","device_mac_address","org_id","schema_version"],"description":"Response model for list/search views.\n\nExcludes historical relationship fields:\n- past_session_ids\n- past_cargo_ids","title":"DeviceLimitedForList1"},"DeviceExpandedRes":{"type":"object","properties":{"active_cargo":{"oneOf":[{"$ref":"#/components/schemas/Cargo1"},{"type":"null"}]},"active_session":{"oneOf":[{"$ref":"#/components/schemas/Session2"},{"type":"null"}]},"device":{"$ref":"#/components/schemas/DeviceLimitedForList1"},"past_cargos":{"type":"array","items":{"$ref":"#/components/schemas/Cargo1"}},"past_sessions":{"type":"array","items":{"$ref":"#/components/schemas/Session2"}}},"required":["device"],"title":"DeviceExpandedRes"},"DeviceSortByEnum":{"type":"string","enum":["registered_at_timestamp","last_seen_at_timestamp","first_seen_at_timestamp"],"title":"DeviceSortByEnum"},"TrackingOrgScopeEnum":{"type":"string","enum":["owned","shared","owned_and_shared"],"title":"TrackingOrgScopeEnum"},"DeviceListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DeviceLimitedForList1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"DeviceListRes"},"DeviceClientCreate1":{"type":"object","properties":{"comments":{"type":["string","null"],"maxLength":524288},"device_mac_address":{"type":"string"},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"schema_version":{"type":"integer"},"type":{"oneOf":[{"$ref":"#/components/schemas/TrackingDeviceTypeEnum1"},{"type":"null"}]}},"required":["device_mac_address","schema_version"],"title":"DeviceClientCreate1"},"TrackingTypeaheadFieldEnum":{"type":"string","enum":["device_mac_address","off_chrt_reference_id"],"title":"TrackingTypeaheadFieldEnum"},"DeviceTypeaheadValue":{"type":"object","properties":{"device_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["device_ids","value"],"title":"DeviceTypeaheadValue"},"DeviceTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/TrackingTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/DeviceTypeaheadValue"}}},"required":["type","values"],"title":"DeviceTypeaheadResult"},"DeviceClientUpdate1":{"type":"object","properties":{"comments":{"type":["string","null"],"maxLength":524288},"comments__set_to_None":{"type":"boolean","default":false},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_reference_id__set_to_None":{"type":"boolean","default":false},"type":{"oneOf":[{"$ref":"#/components/schemas/TrackingDeviceTypeEnum1"},{"type":"null"}]},"type__set_to_None":{"type":"boolean","default":false}},"title":"DeviceClientUpdate1"},"DevicesUpdateSharedOrgsReq1":{"type":"object","properties":{"add_org_ids":{"type":"array","items":{"type":"string"}},"device_id":{"type":"string"},"remove_org_ids":{"type":"array","items":{"type":"string"}}},"required":["device_id"],"title":"DevicesUpdateSharedOrgsReq1"},"DriverByDriverDataPointClientCreate1":{"type":"object","properties":{"location":{"$ref":"#/components/schemas/LocationFeature"},"schema_version":{"type":"integer"},"timestamp":{"type":"string","format":"date-time"}},"required":["location","schema_version","timestamp"],"title":"DriverByDriverDataPointClientCreate1"},"DriverUpdateRes":{"type":"object","properties":{"cargo_tracking_count":{"type":"integer"},"driver_by_driver_ping_recorded":{"type":"boolean"},"driver_updated":{"type":"boolean"},"task_group_tracking_count":{"type":"integer"}},"required":["cargo_tracking_count","driver_by_driver_ping_recorded","driver_updated","task_group_tracking_count"],"description":"Response showing what was updated.","title":"DriverUpdateRes"},"GeofenceTemplateSortByEnum":{"type":"string","enum":["created_at_timestamp","last_edited_at_timestamp","last_used_at_timestamp","name"],"title":"GeofenceTemplateSortByEnum"},"SessionGeofenceBase1":{"type":"object","properties":{"display_name":{"type":"string","minLength":1},"location":{"$ref":"#/components/schemas/GeofencePointLocationFeature1"},"radius_miles":{"type":"number","format":"double","maximum":10000,"exclusiveMinimum":0}},"required":["display_name","location","radius_miles"],"title":"SessionGeofenceBase1"},"SessionGeofenceTemplate1":{"type":"object","properties":{"_id":{"type":"string"},"archived_at_timestamp":{"type":["string","null"],"format":"date-time"},"created_at_timestamp":{"type":"string","format":"date-time"},"description":{"type":["string","null"]},"geofences":{"type":"array","items":{"$ref":"#/components/schemas/SessionGeofenceBase1"}},"last_edited_at_timestamp":{"type":"string","format":"date-time"},"last_used_at_timestamp":{"type":["string","null"],"format":"date-time"},"name":{"type":"string","minLength":1},"owned_by_org_id":{"type":"string","description":"Must be a string starting with `org_`"},"owned_by_user_id":{"type":"string","description":"Must be a string starting with `user_`"},"schema_version":{"type":"integer"}},"required":["_id","created_at_timestamp","geofences","last_edited_at_timestamp","name","owned_by_org_id","owned_by_user_id","schema_version"],"title":"SessionGeofenceTemplate1"},"GeofenceTemplateListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SessionGeofenceTemplate1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"GeofenceTemplateListRes"},"SessionGeofenceTemplateClientUpdate1":{"type":"object","properties":{"description":{"type":["string","null"]},"description__set_to_None":{"type":"boolean","default":false},"geofences":{"type":"array","items":{"$ref":"#/components/schemas/SessionGeofenceBase1"}},"name":{"type":["string","null"],"minLength":1}},"title":"SessionGeofenceTemplateClientUpdate1"},"SessionGeofenceTemplateClientCreate1":{"type":"object","properties":{"description":{"type":["string","null"]},"geofences":{"type":"array","items":{"$ref":"#/components/schemas/SessionGeofenceBase1"}},"name":{"type":"string","minLength":1},"schema_version":{"type":"integer"}},"required":["geofences","name","schema_version"],"title":"SessionGeofenceTemplateClientCreate1"},"SessionGeofenceClientCreate1":{"type":"object","properties":{"display_name":{"type":"string","minLength":1},"location":{"$ref":"#/components/schemas/GeofencePointLocationFeature1"},"radius_miles":{"type":"number","format":"double","maximum":10000,"exclusiveMinimum":0}},"required":["display_name","location","radius_miles"],"title":"SessionGeofenceClientCreate1"},"SessionsCreateV1Req":{"type":"object","properties":{"comments":{"type":["string","null"],"maxLength":524288},"geofence_template_id":{"type":["string","null"]},"geofences":{"type":"array","items":{"$ref":"#/components/schemas/SessionGeofenceClientCreate1"}},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_shipper_org_data_id":{"type":["string","null"]},"public":{"type":"boolean","default":false},"schema_version":{"type":"integer"},"termination_scheduled_for_timestamp":{"type":["string","null"],"format":"date-time"}},"required":["schema_version"],"title":"SessionsCreateV1Req"},"SessionSortByEnum":{"type":"string","enum":["created_at_timestamp","last_seen_at_timestamp","termination_scheduled_for_timestamp","terminated_at_timestamp"],"title":"SessionSortByEnum"},"SessionListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Session2"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"SessionListRes"},"SessionSetFlightInfoReq1":{"type":"object","properties":{"flight_legs":{"type":"array","items":{"$ref":"#/components/schemas/FlightLegClientCreate1"},"description":"Ordered list of flights to follow for the session. Replaces any existing flight legs. Pass an empty list to clear all flight legs."},"session_id":{"type":"string"}},"required":["flight_legs","session_id"],"title":"SessionSetFlightInfoReq1"},"SessionTypeaheadFieldEnum":{"type":"string","enum":["device_mac_address","off_chrt_reference_id","flight_numbers"],"title":"SessionTypeaheadFieldEnum"},"SessionTypeaheadValue":{"type":"object","properties":{"session_ids":{"type":"array","items":{"type":"string"}},"value":{"type":"string"}},"required":["session_ids","value"],"title":"SessionTypeaheadValue"},"SessionTypeaheadResult":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/SessionTypeaheadFieldEnum"},"values":{"type":"array","items":{"$ref":"#/components/schemas/SessionTypeaheadValue"}}},"required":["type","values"],"title":"SessionTypeaheadResult"},"SessionClientUpdate2":{"type":"object","properties":{"comments":{"type":["string","null"],"maxLength":524288},"comments__set_to_None":{"type":"boolean","default":false},"off_chrt_reference_id":{"type":["string","null"],"pattern":"^[A-Za-z0-9._~\\-]{1,64}$","minLength":1,"maxLength":64},"off_chrt_reference_id__set_to_None":{"type":"boolean","default":false},"public":{"type":["boolean","null"]},"termination_scheduled_for_timestamp":{"type":["string","null"],"format":"date-time"},"termination_scheduled_for_timestamp__set_to_None":{"type":"boolean","default":false}},"title":"SessionClientUpdate2"},"SessionsUpdateSharedOrgsReq1":{"type":"object","properties":{"add_org_ids":{"type":"array","items":{"type":"string"}},"remove_org_ids":{"type":"array","items":{"type":"string"}},"session_id":{"type":"string"}},"required":["session_id"],"title":"SessionsUpdateSharedOrgsReq1"},"SessionGeofenceApplyTemplateReq":{"type":"object","properties":{"geofence_template_id":{"type":"string"}},"required":["geofence_template_id"],"title":"SessionGeofenceApplyTemplateReq"},"SessionGeofenceReorderReq":{"type":"object","properties":{"ordered_geofence_ids":{"type":"array","items":{"type":"string","format":"uuid4"}}},"title":"SessionGeofenceReorderReq"},"SessionGeofenceClientUpdate1":{"type":"object","properties":{"display_name":{"type":["string","null"],"minLength":1},"location":{"oneOf":[{"$ref":"#/components/schemas/GeofencePointLocationFeature1"},{"type":"null"}]},"radius_miles":{"type":["number","null"],"format":"double","maximum":10000,"exclusiveMinimum":0}},"title":"SessionGeofenceClientUpdate1"},"TaskGroupByDriverSharingSettings1":{"type":"object","properties":{"_id":{"type":"string"},"last_changed_by_org_id":{"type":["string","null"]},"last_changed_by_user_id":{"type":["string","null"]},"last_changed_timestamp":{"type":["string","null"],"format":"date-time"},"public":{"type":"boolean","default":false},"public_link_token":{"type":["string","null"]},"schema_version":{"type":"integer"},"task_group_id":{"type":"string"}},"required":["_id","schema_version","task_group_id"],"title":"TaskGroupByDriverSharingSettings1"},"CargoByDriverSharingSettings1":{"type":"object","properties":{"_id":{"type":"string"},"cargo_id":{"type":"string"},"last_changed_by_org_id":{"type":["string","null"]},"last_changed_by_user_id":{"type":["string","null"]},"last_changed_timestamp":{"type":["string","null"],"format":"date-time"},"public":{"type":"boolean","default":false},"public_link_token":{"type":["string","null"]},"schema_version":{"type":"integer"},"task_group_id":{"type":"string"}},"required":["_id","cargo_id","schema_version","task_group_id"],"title":"CargoByDriverSharingSettings1"},"CargoByDeviceSharingSettings1":{"type":"object","properties":{"_id":{"type":"string"},"cargo_id":{"type":"string"},"device_id":{"type":"string"},"last_changed_by_org_id":{"type":["string","null"]},"last_changed_by_user_id":{"type":["string","null"]},"last_changed_timestamp":{"type":["string","null"],"format":"date-time"},"public":{"type":"boolean","default":false},"schema_version":{"type":"integer"},"task_group_id":{"type":"string"}},"required":["_id","cargo_id","device_id","schema_version","task_group_id"],"title":"CargoByDeviceSharingSettings1"},"TrackingSharingSettingsResSharingSettings":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupByDriverSharingSettings1"},{"$ref":"#/components/schemas/CargoByDriverSharingSettings1"},{"$ref":"#/components/schemas/CargoByDeviceSharingSettings1"}],"title":"TrackingSharingSettingsResSharingSettings"},"TrackingSharingSettingsRes":{"type":"object","properties":{"sharing_settings":{"$ref":"#/components/schemas/TrackingSharingSettingsResSharingSettings"},"task_group_id":{"type":"string"}},"required":["sharing_settings","task_group_id"],"title":"TrackingSharingSettingsRes"},"CargoByDeviceSharingSettingsUpdateReq":{"type":"object","properties":{"cargo_id":{"type":"string"},"device_id":{"type":"string"},"public":{"type":"boolean"},"task_group_id":{"type":"string"}},"required":["cargo_id","device_id","public","task_group_id"],"title":"CargoByDeviceSharingSettingsUpdateReq"},"CargoByDriverSharingSettingsUpdateReq":{"type":"object","properties":{"cargo_id":{"type":"string"},"public":{"type":"boolean"},"task_group_id":{"type":"string"}},"required":["cargo_id","public","task_group_id"],"title":"CargoByDriverSharingSettingsUpdateReq"},"CargoByDriverSharingSettingsRes":{"type":"object","properties":{"public_link_expires_at_timestamp":{"type":["string","null"],"format":"date-time"},"sharing_settings":{"oneOf":[{"$ref":"#/components/schemas/CargoByDriverSharingSettings1"},{"type":"null"}]}},"required":["public_link_expires_at_timestamp","sharing_settings"],"title":"CargoByDriverSharingSettingsRes"},"TaskGroupByDriverSharingSettingsUpdateReq":{"type":"object","properties":{"public":{"type":"boolean"},"task_group_id":{"type":"string"}},"required":["public","task_group_id"],"title":"TaskGroupByDriverSharingSettingsUpdateReq"},"TaskGroupByDriverSharingSettingsRes":{"type":"object","properties":{"public_link_expires_at_timestamp":{"type":["string","null"],"format":"date-time"},"sharing_settings":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupByDriverSharingSettings1"},{"type":"null"}]}},"required":["public_link_expires_at_timestamp","sharing_settings"],"title":"TaskGroupByDriverSharingSettingsRes"},"OutlierLabellerEnum":{"type":"string","enum":["movingpandas","user"],"title":"OutlierLabellerEnum"},"CargoByDeviceDataPointMetadata1":{"type":"object","properties":{"cargo_id":{"type":"string"},"device_id":{"type":"string"},"outlier":{"type":["boolean","null"],"default":false},"outlier_labeller":{"oneOf":[{"$ref":"#/components/schemas/OutlierLabellerEnum"},{"type":"null"}]},"paused":{"type":"boolean","default":false},"pytest":{"type":["boolean","null"]},"task_group_id":{"type":"string"}},"required":["cargo_id","device_id","task_group_id"],"title":"CargoByDeviceDataPointMetadata1"},"CargoByDeviceDataPoint1":{"type":"object","properties":{"_id":{"type":"string"},"location":{"$ref":"#/components/schemas/LocationFeature"},"metadata":{"$ref":"#/components/schemas/CargoByDeviceDataPointMetadata1"},"schema_version":{"type":"integer"},"temperature":{"type":["number","null"],"format":"double"},"timestamp":{"type":"string","format":"date-time"}},"required":["_id","location","metadata","schema_version","timestamp"],"title":"CargoByDeviceDataPoint1"},"CargoByDeviceMarkOutliersRequest1":{"type":"object","properties":{"outlier":{"type":"boolean"},"tracking_cargo_by_device_data_point_ids":{"type":"array","items":{"type":"string"}}},"required":["outlier","tracking_cargo_by_device_data_point_ids"],"title":"CargoByDeviceMarkOutliersRequest1"},"CargoByDeviceMarkOutliersResponse1":{"type":"object","properties":{"failed_updates":{"type":"integer"},"successful_updates":{"type":"integer"}},"required":["failed_updates","successful_updates"],"title":"CargoByDeviceMarkOutliersResponse1"},"CargoByDriverDataPointMetadata1":{"type":"object","properties":{"cargo_id":{"type":"string"},"driver_id":{"type":"string"},"outlier":{"type":["boolean","null"],"default":false},"outlier_labeller":{"oneOf":[{"$ref":"#/components/schemas/OutlierLabellerEnum"},{"type":"null"}]},"pytest":{"type":["boolean","null"]},"task_group_id":{"type":"string"}},"required":["cargo_id","driver_id","task_group_id"],"title":"CargoByDriverDataPointMetadata1"},"CargoByDriverDataPoint1":{"type":"object","properties":{"_id":{"type":"string"},"location":{"$ref":"#/components/schemas/LocationFeature"},"metadata":{"$ref":"#/components/schemas/CargoByDriverDataPointMetadata1"},"schema_version":{"type":"integer"},"timestamp":{"type":"string","format":"date-time"}},"required":["_id","location","metadata","schema_version","timestamp"],"title":"CargoByDriverDataPoint1"},"CargoByDriverLastSeenPublicRes":{"type":"object","properties":{"cargo_status":{"$ref":"#/components/schemas/CargoStatusEnum1"},"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"public_link_expires_at_timestamp":{"type":["string","null"],"format":"date-time"},"timestamp":{"type":["string","null"],"format":"date-time"}},"required":["cargo_status","location","public_link_expires_at_timestamp","timestamp"],"title":"CargoByDriverLastSeenPublicRes"},"SessionByDeviceDataPointMetadata1":{"type":"object","properties":{"outlier":{"type":["boolean","null"],"default":false},"outlier_labeller":{"oneOf":[{"$ref":"#/components/schemas/OutlierLabellerEnum"},{"type":"null"}]},"paused":{"type":"boolean","default":false},"pytest":{"type":["boolean","null"]},"session_id":{"type":"string"}},"required":["session_id"],"title":"SessionByDeviceDataPointMetadata1"},"SessionByDeviceDataPoint1":{"type":"object","properties":{"_id":{"type":"string"},"location":{"$ref":"#/components/schemas/LocationFeature"},"metadata":{"$ref":"#/components/schemas/SessionByDeviceDataPointMetadata1"},"received_at_timestamp":{"type":["string","null"],"format":"date-time"},"schema_version":{"type":"integer"},"temperature":{"type":["number","null"],"format":"double"},"timestamp":{"type":"string","format":"date-time"}},"required":["_id","location","metadata","schema_version","timestamp"],"title":"SessionByDeviceDataPoint1"},"StationaryCluster":{"type":"object","properties":{"centroid_location":{"$ref":"#/components/schemas/LocationFeature"},"end_timestamp":{"type":"string","format":"date-time"},"point_count":{"type":"integer"},"radius_miles":{"type":"number","format":"double"},"start_timestamp":{"type":"string","format":"date-time"}},"required":["centroid_location","end_timestamp","point_count","radius_miles","start_timestamp"],"title":"StationaryCluster"},"SessionByDeviceHistoryRes1":{"type":"object","properties":{"data_points":{"type":"array","items":{"$ref":"#/components/schemas/SessionByDeviceDataPoint1"}},"stationary_clusters":{"type":"array","items":{"$ref":"#/components/schemas/StationaryCluster"}}},"required":["data_points","stationary_clusters"],"title":"SessionByDeviceHistoryRes1"},"SessionByDeviceMarkOutliersRequest1":{"type":"object","properties":{"outlier":{"type":"boolean"},"tracking_session_by_device_data_point_ids":{"type":"array","items":{"type":"string"}}},"required":["outlier","tracking_session_by_device_data_point_ids"],"title":"SessionByDeviceMarkOutliersRequest1"},"SessionByDeviceMarkOutliersResponse1":{"type":"object","properties":{"failed_updates":{"type":"integer"},"successful_updates":{"type":"integer"}},"required":["failed_updates","successful_updates"],"title":"SessionByDeviceMarkOutliersResponse1"},"TaskGroupByDriverDataPointMetadata1":{"type":"object","properties":{"driver_id":{"type":"string"},"outlier":{"type":["boolean","null"],"default":false},"outlier_labeller":{"oneOf":[{"$ref":"#/components/schemas/OutlierLabellerEnum"},{"type":"null"}]},"pytest":{"type":["boolean","null"]},"task_group_id":{"type":"string"}},"required":["driver_id","task_group_id"],"title":"TaskGroupByDriverDataPointMetadata1"},"TaskGroupByDriverDataPoint1":{"type":"object","properties":{"_id":{"type":"string"},"location":{"$ref":"#/components/schemas/LocationFeature"},"metadata":{"$ref":"#/components/schemas/TaskGroupByDriverDataPointMetadata1"},"schema_version":{"type":"integer"},"timestamp":{"type":"string","format":"date-time"}},"required":["_id","location","metadata","schema_version","timestamp"],"title":"TaskGroupByDriverDataPoint1"},"TaskGroupByDriverDataPointsResDriversItems":{"oneOf":[{"$ref":"#/components/schemas/Driver1"},{"$ref":"#/components/schemas/DriverLimited1"}],"title":"TaskGroupByDriverDataPointsResDriversItems"},"TaskGroupByDriverDataPointsRes":{"type":"object","properties":{"data_points":{"type":"array","items":{"$ref":"#/components/schemas/TaskGroupByDriverDataPoint1"}},"drivers":{"type":"array","items":{"$ref":"#/components/schemas/TaskGroupByDriverDataPointsResDriversItems"}}},"required":["data_points"],"title":"TaskGroupByDriverDataPointsRes"},"TaskGroupByDriverLastSeenResDriver":{"oneOf":[{"$ref":"#/components/schemas/Driver1"},{"$ref":"#/components/schemas/DriverLimited1"}],"title":"TaskGroupByDriverLastSeenResDriver"},"TaskGroupByDriverLastSeenRes":{"type":"object","properties":{"data_point":{"$ref":"#/components/schemas/TaskGroupByDriverDataPoint1"},"driver":{"oneOf":[{"$ref":"#/components/schemas/TaskGroupByDriverLastSeenResDriver"},{"type":"null"}]}},"required":["data_point"],"title":"TaskGroupByDriverLastSeenRes"},"TaskGroupByDriverLastSeenPublicRes":{"type":"object","properties":{"location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"public_link_expires_at_timestamp":{"type":["string","null"],"format":"date-time"},"task_group_status":{"$ref":"#/components/schemas/TaskGroupStatusEnum1"},"timestamp":{"type":["string","null"],"format":"date-time"}},"required":["location","public_link_expires_at_timestamp","task_group_status","timestamp"],"title":"TaskGroupByDriverLastSeenPublicRes"},"ReelablesAssetClientCreate1":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-zA-Z0-9!@#$&()\\-`.+,/\" ]*$","minLength":1,"maxLength":500},"nfc_id":{"type":"string","pattern":"^[a-zA-Z0-9]*$","minLength":1,"maxLength":20},"schema_version":{"type":"integer"}},"required":["name","nfc_id","schema_version"],"title":"ReelablesAssetClientCreate1"},"ReelablesLabel1":{"type":"object","properties":{"added_at_timestamp":{"type":"string","format":"date-time"},"ble_id":{"type":"integer"},"config__reporting_interval":{"type":["string","null"]},"nfc_id":{"type":"string"}},"required":["added_at_timestamp","ble_id","nfc_id"],"title":"ReelablesLabel1"},"ReelablesAssetPausedTimeWindow1":{"type":"object","properties":{"end_timestamp":{"type":["string","null"],"format":"date-time"},"start_timestamp":{"type":"string","format":"date-time"}},"required":["start_timestamp"],"title":"ReelablesAssetPausedTimeWindow1"},"ReelablesAsset1":{"type":"object","properties":{"_id":{"type":"string"},"asset_id":{"type":"string"},"created_at_timestamp":{"type":["string","null"],"format":"date-time"},"destination_geofence_location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"destination_geofence_radius_miles":{"type":"number","format":"double","maximum":10000,"exclusiveMinimum":0,"default":0.1},"label":{"oneOf":[{"$ref":"#/components/schemas/ReelablesLabel1"},{"type":"null"}]},"label_activated_at_timestamp":{"type":["string","null"],"format":"date-time"},"last_seen_at_location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"last_seen_at_location_city":{"type":["string","null"]},"last_seen_at_location_large_city":{"type":["string","null"]},"last_seen_at_timestamp":{"type":["string","null"],"format":"date-time"},"name":{"type":"string"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"pause_windows":{"type":"array","items":{"$ref":"#/components/schemas/ReelablesAssetPausedTimeWindow1"}},"paused":{"type":"boolean","default":false},"schema_version":{"type":"integer"},"synced_at_timestamp":{"type":["string","null"],"format":"date-time"},"workspace_id":{"type":"string"}},"required":["_id","asset_id","name","org_id","schema_version","workspace_id"],"title":"ReelablesAsset1"},"ReelablesAssetLabelLinkReq":{"type":"object","properties":{"nfc_id":{"type":"string","pattern":"^[a-zA-Z0-9]*$","minLength":1,"maxLength":20}},"required":["nfc_id"],"title":"ReelablesAssetLabelLinkReq"},"ReelablesAssetSortByEnum":{"type":"string","enum":["asset_id","name"],"title":"ReelablesAssetSortByEnum"},"ReelablesAssetListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ReelablesAsset1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"ReelablesAssetListRes"},"ReelablesAssetClientUpdate1":{"type":"object","properties":{"destination_geofence_location":{"oneOf":[{"$ref":"#/components/schemas/LocationFeature"},{"type":"null"}]},"destination_geofence_location__set_to_None":{"type":"boolean","default":false},"destination_geofence_radius_miles":{"type":["number","null"],"format":"double","maximum":10000,"exclusiveMinimum":0},"name":{"type":["string","null"]}},"title":"ReelablesAssetClientUpdate1"},"ReelablesDataPointMetadata1":{"type":"object","properties":{"asset_id":{"type":"string"},"paused":{"type":"boolean","default":false}},"required":["asset_id"],"title":"ReelablesDataPointMetadata1"},"ReelablesDataPoint1":{"type":"object","properties":{"_id":{"type":"string"},"accuracy_meters":{"type":["number","null"],"format":"double"},"location":{"$ref":"#/components/schemas/LocationFeature"},"metadata":{"$ref":"#/components/schemas/ReelablesDataPointMetadata1"},"schema_version":{"type":"integer"},"temperature_accuracy_degrees_celsius":{"type":["number","null"],"format":"double"},"temperature_degrees_celsius":{"type":["number","null"],"format":"double"},"timestamp":{"type":"string","format":"date-time"}},"required":["_id","location","metadata","schema_version","timestamp"],"title":"ReelablesDataPoint1"},"ReelablesTimeseriesRes":{"type":"object","properties":{"data_points":{"type":"array","items":{"$ref":"#/components/schemas/ReelablesDataPoint1"}}},"required":["data_points"],"title":"ReelablesTimeseriesRes"},"TiveDevice1":{"type":"object","properties":{"_id":{"type":"string"},"chrt_created_at_timestamp":{"type":"string","format":"date-time"},"chrt_updated_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"tive_account_id":{"type":"integer"},"tive_account_name":{"type":"string"},"tive_current_public_shipment_id":{"type":["string","null"]},"tive_current_shipment_id":{"type":["string","null"]},"tive_device_id":{"type":"string"},"tive_device_name":{"type":"string"}},"required":["_id","chrt_created_at_timestamp","chrt_updated_at_timestamp","org_id","schema_version","tive_account_id","tive_account_name","tive_device_id","tive_device_name"],"title":"TiveDevice1"},"TiveDeviceSortByEnum":{"type":"string","enum":["chrt_created_at_timestamp","chrt_updated_at_timestamp"],"title":"TiveDeviceSortByEnum"},"TiveDeviceListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TiveDevice1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"TiveDeviceListRes"},"TiveShipment1":{"type":"object","properties":{"_id":{"type":"string"},"chrt_created_at_timestamp":{"type":"string","format":"date-time"},"chrt_updated_at_timestamp":{"type":"string","format":"date-time"},"org_id":{"type":"string","description":"Must be a string starting with `org_`"},"schema_version":{"type":"integer"},"tive_device_object_id":{"type":"string"},"tive_public_shipment_id":{"type":["string","null"]},"tive_shipment_id":{"type":"string"},"tive_shipment_status":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["_id","chrt_created_at_timestamp","chrt_updated_at_timestamp","org_id","schema_version","tive_device_object_id","tive_shipment_id"],"title":"TiveShipment1"},"TiveShipmentSortByEnum":{"type":"string","enum":["chrt_created_at_timestamp","chrt_updated_at_timestamp"],"title":"TiveShipmentSortByEnum"},"TiveShipmentListRes":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TiveShipment1"}},"total_count":{"type":"integer"}},"required":["items","total_count"],"title":"TiveShipmentListRes"},"TiveDataPointMetadata1":{"type":"object","properties":{"pytest":{"type":["boolean","null"]},"tive_device_id":{"type":"string"},"tive_shipment_id":{"type":"string"}},"required":["tive_device_id","tive_shipment_id"],"title":"TiveDataPointMetadata1"},"TiveDataPoint1":{"type":"object","properties":{"_id":{"type":"string"},"acceleration_g":{"type":["number","null"],"format":"double"},"acceleration_x":{"type":["number","null"],"format":"double"},"acceleration_y":{"type":["number","null"],"format":"double"},"acceleration_z":{"type":["number","null"],"format":"double"},"battery":{"type":["integer","null"]},"humidity":{"type":["number","null"],"format":"double"},"light":{"type":["number","null"],"format":"double"},"location":{"$ref":"#/components/schemas/LocationFeature"},"location_method":{"type":["string","null"]},"metadata":{"$ref":"#/components/schemas/TiveDataPointMetadata1"},"motion":{"type":["integer","null"]},"process_time":{"type":["string","null"],"format":"date-time"},"schema_version":{"type":"integer"},"temperature_f":{"type":["number","null"],"format":"double"},"timestamp":{"type":"string","format":"date-time"}},"required":["_id","location","metadata","schema_version","timestamp"],"title":"TiveDataPoint1"},"TiveTimeseriesRes":{"type":"object","properties":{"data_points":{"type":"array","items":{"$ref":"#/components/schemas/TiveDataPoint1"}}},"required":["data_points"],"title":"TiveTimeseriesRes"},"TiveTimeseriesSyncRes":{"type":"object","properties":{"duplicates_filtered":{"type":"integer"},"new_data_points_count":{"type":"integer"},"skipped_no_location":{"type":"integer"},"total_fetched_from_tive":{"type":"integer"}},"required":["duplicates_filtered","new_data_points_count","skipped_no_location","total_fetched_from_tive"],"title":"TiveTimeseriesSyncRes"},"PlatformEnum":{"type":"string","enum":["android","ios","web"],"title":"PlatformEnum"},"FirebaseCloudMessagingTokenClientCreate1":{"type":"object","properties":{"firebase_cloud_messaging_token":{"type":"string"},"platform":{"oneOf":[{"$ref":"#/components/schemas/PlatformEnum"},{"type":"null"}]}},"required":["firebase_cloud_messaging_token"],"title":"FirebaseCloudMessagingTokenClientCreate1"},"FirebaseCloudMessagingTokenData1":{"type":"object","properties":{"firebase_cloud_messaging_token":{"type":"string"},"last_used_timestamp":{"type":"string","format":"date-time"},"platform":{"oneOf":[{"$ref":"#/components/schemas/PlatformEnum"},{"type":"null"}]}},"required":["firebase_cloud_messaging_token","last_used_timestamp"],"title":"FirebaseCloudMessagingTokenData1"},"UserPrivateData1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"firebase_cloud_messaging_token_data":{"type":"array","items":{"$ref":"#/components/schemas/FirebaseCloudMessagingTokenData1"}},"name":{"type":["string","null"],"minLength":1,"maxLength":255},"phone_number":{"type":["string","null"],"format":"phone"},"primary_email_address":{"type":["string","null"],"format":"email"},"schema_version":{"type":"integer"},"time_zone":{"type":["string","null"]},"user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["_id","created_at_timestamp","schema_version","user_id"],"title":"UserPrivateData1"},"UserPrivateDataNameUpdateReq":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255}},"required":["name"],"title":"UserPrivateDataNameUpdateReq"},"UserPrivateDataClientCreate1":{"type":"object","properties":{"phone_number":{"type":["string","null"],"format":"phone"},"primary_email_address":{"type":["string","null"],"format":"email"},"schema_version":{"type":"integer"},"time_zone":{"type":["string","null"]}},"required":["schema_version"],"title":"UserPrivateDataClientCreate1"},"UserPrivateDataClientUpdate1":{"type":"object","properties":{"phone_number":{"type":["string","null"],"format":"phone"},"phone_number__set_to_None":{"type":"boolean","default":false},"primary_email_address":{"type":["string","null"],"format":"email"},"primary_email_address__set_to_None":{"type":"boolean","default":false},"time_zone":{"type":["string","null"]},"time_zone__set_to_None":{"type":"boolean","default":false}},"title":"UserPrivateDataClientUpdate1"},"UserPublicData1":{"type":"object","properties":{"_id":{"type":"string"},"created_at_timestamp":{"type":"string","format":"date-time"},"schema_version":{"type":"integer"},"user_id":{"type":"string","description":"Must be a string starting with `user_`"}},"required":["_id","created_at_timestamp","schema_version","user_id"],"title":"UserPublicData1"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}