{"openapi":"3.1.0","info":{"title":"SMART SMS Backend","description":"Versioned Nabz owner, operator and WordPress-plugin contract. Production disables every legacy surface.","version":"0.1.0"},"paths":{"/api/v1/auth/basalam/start":{"get":{"tags":["v1-auth"],"summary":"Begin Basalam login","description":"Compatibility entry point used by the public landing page.\n\nThe browser-facing link historically lived at ``/api/v1/auth`` while the\nfull acquisition implementation lives under ``/api/v1/plugin``. Both now\ncreate the same DB-backed state and callback, so no second OAuth flow or\nseparate session secret can drift out of sync.","operationId":"basalam_login_start_api_v1_auth_basalam_start_get","parameters":[{"name":"return_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Same-origin path to return to","title":"Return To"},"description":"Same-origin path to return to"}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/basalam/handoff":{"get":{"tags":["v1-auth"],"summary":"Finish a Basalam panel login in the main Nabz account","operationId":"basalam_account_handoff_api_v1_auth_basalam_handoff_get","parameters":[{"name":"ticket","in":"query","required":true,"schema":{"type":"string","minLength":32,"maxLength":4096,"title":"Ticket"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/session":{"get":{"tags":["v1-auth"],"summary":"Session Status","description":"Return the current same-origin portal identity without trusting UI state.\n\nThe Funnel uses this endpoint before deciding whether to display OTP.  The\nauthenticated mobile comes from the server-side user record; a browser can\nnever select a different owner merely by changing a form value.","operationId":"session_status_api_v1_auth_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"null"}]},"type":"object","title":"Response Session Status Api V1 Auth Session Get"}}}}}}},"/api/v1/auth/otp/request":{"post":{"tags":["v1-auth"],"summary":"Request Otp","operationId":"request_otp_api_v1_auth_otp_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpRequestV1"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpRequestResponseV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/otp/verify":{"post":{"tags":["v1-auth"],"summary":"Verify Otp","operationId":"verify_otp_api_v1_auth_otp_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpVerifyV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionResponseV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/operator/password":{"post":{"tags":["v1-auth"],"summary":"Operator Password Login","operationId":"operator_password_login_api_v1_auth_operator_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorPasswordLoginV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionResponseV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["v1-auth"],"summary":"Logout","operationId":"logout_api_v1_auth_logout_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}],"x-nabz-csrf-required":true}},"/api/v1/acquisition/public/favicon":{"get":{"tags":["v1-acquisition"],"summary":"Public Favicon","operationId":"public_favicon_api_v1_acquisition_public_favicon_get","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":300,"title":"Domain"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/basalam/authorization":{"get":{"tags":["v1-acquisition"],"summary":"Authorize Basalam","description":"Start a DB-backed Basalam grant.\n\nThis endpoint intentionally supports signed-out visitors: the verified\nBasalam identity becomes their Nabz portal identity in the callback.","operationId":"authorize_basalam_api_v1_acquisition_basalam_authorization_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasalamAuthorizeRead"}}}}}}},"/api/v1/acquisition/basalam":{"get":{"tags":["v1-acquisition"],"summary":"Basalam Status","operationId":"basalam_status_api_v1_acquisition_basalam_get","parameters":[{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasalamConnectionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/basalam/sync-page":{"post":{"tags":["v1-acquisition"],"summary":"Sync Basalam Page","operationId":"sync_basalam_page_api_v1_acquisition_basalam_sync_page_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasalamConnectionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/public/stores/{slug}":{"get":{"tags":["v1-acquisition"],"summary":"Public Store","operationId":"public_store_api_v1_acquisition_public_stores__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelStoreRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/public/stores/{slug}/analysis":{"get":{"tags":["v1-acquisition"],"summary":"Public Analysis Result","operationId":"public_analysis_result_api_v1_acquisition_public_stores__slug__analysis_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelAnalysisRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/stores/{slug}/claim":{"post":{"tags":["v1-acquisition"],"summary":"Claim Store","operationId":"claim_store_api_v1_acquisition_stores__slug__claim_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelStoreClaim"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelStoreClaimRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/stores/claim-by-domain":{"post":{"tags":["v1-acquisition"],"summary":"Claim Store By Domain","operationId":"claim_store_by_domain_api_v1_acquisition_stores_claim_by_domain_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelStoreDirectClaim"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelStoreClaimRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/sites/{site_id}/woocommerce/authorization":{"post":{"tags":["v1-acquisition"],"summary":"Authorize Woocommerce","operationId":"authorize_woocommerce_api_v1_acquisition_sites__site_id__woocommerce_authorization_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WooCommerceAuthorizeRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/woocommerce/callback":{"post":{"tags":["v1-acquisition"],"summary":"Woocommerce Callback","operationId":"woocommerce_callback_api_v1_acquisition_woocommerce_callback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WooCommerceCallback"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Woocommerce Callback Api V1 Acquisition Woocommerce Callback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/sites/{site_id}/woocommerce":{"get":{"tags":["v1-acquisition"],"summary":"Woocommerce Status","operationId":"woocommerce_status_api_v1_acquisition_sites__site_id__woocommerce_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WooCommerceConnectionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/sites/{site_id}/analysis":{"get":{"tags":["v1-acquisition"],"summary":"Analysis Result","operationId":"analysis_result_api_v1_acquisition_sites__site_id__analysis_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelAnalysisRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/sites/{site_id}/trial":{"get":{"tags":["v1-acquisition"],"summary":"Trial Status","operationId":"trial_status_api_v1_acquisition_sites__site_id__trial_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcquisitionTrialRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/sites/{site_id}/trial/free-campaign":{"post":{"tags":["v1-acquisition"],"summary":"Free Campaign","operationId":"free_campaign_api_v1_acquisition_sites__site_id__trial_free_campaign_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreeCampaignCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreeCampaignRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/acquisition/operator/stores/import":{"post":{"tags":["v1-acquisition"],"summary":"Import Stores","operationId":"import_stores_api_v1_acquisition_operator_stores_import_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelStoreImport"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelStoreImportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ci/plugin/releases":{"post":{"tags":["v1-ci-release"],"summary":"Publish Ci Release","operationId":"publish_ci_release_api_v1_ci_plugin_releases_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-GitHub-Repository","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Github-Repository"}},{"name":"X-GitHub-Ref","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Github-Ref"}},{"name":"X-GitHub-Sha","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Github-Sha"}},{"name":"X-GitHub-Run-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Github-Run-Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_publish_ci_release_api_v1_ci_plugin_releases_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Ci Release Api V1 Ci Plugin Releases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/download/{token}":{"get":{"tags":["v1-plugin-download"],"summary":"Download Artifact","operationId":"download_artifact_api_v1_plugin_download__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/funnel/events":{"post":{"tags":["v1-public"],"summary":"Record Funnel Event","operationId":"record_funnel_event_api_v1_funnel_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelEventCreateV1"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelEventReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-instructions":{"get":{"tags":["v1-public"],"summary":"Payment Instructions","operationId":"payment_instructions_api_v1_payment_instructions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Payment Instructions Api V1 Payment Instructions Get"}}}}}}},"/api/v1/plans":{"get":{"tags":["v1-public"],"summary":"Public Plans","operationId":"public_plans_api_v1_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PlanReadV1"},"type":"array","title":"Response Public Plans Api V1 Plans Get"}}}}}}},"/api/v1/license-capacity":{"get":{"tags":["v1-public"],"summary":"Public License Capacity","description":"Return anonymous occupancy for the limited annual-license offer.\n\nA site can have historical license rows, so only its newest row represents\ncurrent state.  The row must also be active within its actual validity\nwindow; stale status values must not consume public capacity.","operationId":"public_license_capacity_api_v1_license_capacity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"boolean"}]},"type":"object","title":"Response Public License Capacity Api V1 License Capacity Get"}}}}}}},"/api/v1/plugin/latest-version":{"get":{"tags":["v1-public"],"summary":"Public Latest Version","operationId":"public_latest_version_api_v1_plugin_latest_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Public Latest Version Api V1 Plugin Latest Version Get"}}}}}}},"/api/v1/plugin/free/download":{"get":{"tags":["v1-public"],"summary":"Download Free Plugin","operationId":"download_free_plugin_api_v1_plugin_free_download_get","responses":{"200":{"description":"Successful Response"}}}},"/api/v1/me/sites":{"get":{"tags":["v1-owner"],"summary":"List Sites","operationId":"list_sites_api_v1_me_sites_get","parameters":[{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SiteReadV1"},"title":"Response List Sites Api V1 Me Sites Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]},"post":{"tags":["v1-owner"],"summary":"Create Site","operationId":"create_site_api_v1_me_sites_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteCreateV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/sites/{site_id}":{"patch":{"tags":["v1-owner"],"summary":"Patch Site","operationId":"patch_site_api_v1_me_sites__site_id__patch","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitePatchV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/sites/{site_id}/domain-transfer-requests":{"post":{"tags":["v1-owner"],"summary":"Request Domain Transfer","description":"Request a domain move after a fresh OTP-backed portal authentication.\n\nThe active entitlement is not mutated here. A finance operator must approve\nthe matching request; an admin can explicitly override a missing request or\nthe cooldown, and every branch is audited.","operationId":"request_domain_transfer_api_v1_me_sites__site_id__domain_transfer_requests_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteDomainTransferRequestV1"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteDomainTransferReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/orders":{"post":{"tags":["v1-owner"],"summary":"Create Order","operationId":"create_order_api_v1_me_orders_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCreateV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]},"get":{"tags":["v1-owner"],"summary":"List Orders","operationId":"list_orders_api_v1_me_orders_get","parameters":[{"name":"site_id","in":"query","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrderReadV1"},"title":"Response List Orders Api V1 Me Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/me/orders/sms-credit":{"post":{"tags":["v1-owner"],"summary":"Create Sms Credit Order","operationId":"create_sms_credit_order_api_v1_me_orders_sms_credit_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsCreditOrderCreateV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/orders/{reference}":{"get":{"tags":["v1-owner"],"summary":"Get Order","operationId":"get_order_api_v1_me_orders__reference__get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/me/dashboard":{"get":{"tags":["v1-owner"],"summary":"Owner Dashboard","operationId":"owner_dashboard_api_v1_me_dashboard_get","parameters":[{"name":"site_id","in":"query","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Owner Dashboard Api V1 Me Dashboard Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/me/analytics":{"get":{"tags":["v1-owner"],"summary":"Owner Analytics","operationId":"owner_analytics_api_v1_me_analytics_get","parameters":[{"name":"site_id","in":"query","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"message_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Message Type"}},{"name":"campaign_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Campaign Key"}},{"name":"campaign_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Campaign Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Owner Analytics Api V1 Me Analytics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/me/privacy/customers/export":{"get":{"tags":["v1-owner"],"summary":"Export Customer Data","operationId":"export_customer_data_api_v1_me_privacy_customers_export_get","parameters":[{"name":"site_id","in":"query","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"mobile","in":"query","required":true,"schema":{"type":"string","title":"Mobile"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Export Customer Data Api V1 Me Privacy Customers Export Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/me/privacy/customers":{"delete":{"tags":["v1-owner"],"summary":"Erase Customer Data","operationId":"erase_customer_data_api_v1_me_privacy_customers_delete","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerErasureV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Erase Customer Data Api V1 Me Privacy Customers Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/orders/{reference}/receipt":{"post":{"tags":["v1-owner"],"summary":"Submit Receipt","operationId":"submit_receipt_api_v1_me_orders__reference__receipt_post","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_receipt_api_v1_me_orders__reference__receipt_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/payments":{"get":{"tags":["v1-owner"],"summary":"List Payments","operationId":"list_payments_api_v1_me_payments_get","parameters":[{"name":"site_id","in":"query","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PaymentReadV1"},"title":"Response List Payments Api V1 Me Payments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/me/licenses":{"get":{"tags":["v1-owner"],"summary":"List Licenses","operationId":"list_licenses_api_v1_me_licenses_get","parameters":[{"name":"site_id","in":"query","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LicenseReadV1"},"title":"Response List Licenses Api V1 Me Licenses Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/me/licenses/{license_id}/reveal":{"post":{"tags":["v1-owner"],"summary":"Reveal License","operationId":"reveal_license_api_v1_me_licenses__license_id__reveal_post","parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"integer","title":"License Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseRevealV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/sites/{site_id}/plugin-download":{"post":{"tags":["v1-owner"],"summary":"Create Plugin Download","operationId":"create_plugin_download_api_v1_me_sites__site_id__plugin_download_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginDownloadTokenV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/sites/{site_id}/premium-download":{"post":{"tags":["v1-owner"],"summary":"Create Plugin Download","operationId":"create_plugin_download_api_v1_me_sites__site_id__premium_download_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginDownloadTokenV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/tickets":{"get":{"tags":["v1-owner"],"summary":"List Tickets","operationId":"list_tickets_api_v1_me_tickets_get","parameters":[{"name":"site_id","in":"query","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TicketReadV1"},"title":"Response List Tickets Api V1 Me Tickets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]},"post":{"tags":["v1-owner"],"summary":"Create Ticket","operationId":"create_ticket_api_v1_me_tickets_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketCreateV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/tickets/{reference}/messages":{"get":{"tags":["v1-owner"],"summary":"Ticket Messages","operationId":"ticket_messages_api_v1_me_tickets__reference__messages_get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TicketMessageReadV1"},"title":"Response Ticket Messages Api V1 Me Tickets  Reference  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]},"post":{"tags":["v1-owner"],"summary":"Add Ticket Message","operationId":"add_ticket_message_api_v1_me_tickets__reference__messages_post","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketMessageCreateV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketMessageReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/tickets/{reference}/attachments":{"post":{"tags":["v1-owner"],"summary":"Add Ticket Attachment","operationId":"add_ticket_attachment_api_v1_me_tickets__reference__attachments_post","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_add_ticket_attachment_api_v1_me_tickets__reference__attachments_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketMessageReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/tickets/{reference}/attachments/{message_id}":{"get":{"tags":["v1-owner"],"summary":"Get Ticket Attachment","operationId":"get_ticket_attachment_api_v1_me_tickets__reference__attachments__message_id__get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/me/campaigns/preview":{"post":{"tags":["v1-owner"],"summary":"Preview Campaign","operationId":"preview_campaign_api_v1_me_campaigns_preview_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignPreviewRequestV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignPreviewResponseV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/campaigns/test-send":{"post":{"tags":["v1-owner"],"summary":"Test Send Campaign","description":"Send the confirmed preview copy only to the authenticated owner's phone.\n\nThe owner explicitly authorizes this single test from an authenticated CSRF\nprotected session. It still uses provider backpressure, wallet reservation,\nsettlement and message idempotency.","operationId":"test_send_campaign_api_v1_me_campaigns_test_send_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignTestSendV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignTestSendReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/campaigns":{"post":{"tags":["v1-owner"],"summary":"Create Campaign","operationId":"create_campaign_api_v1_me_campaigns_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCreateV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]},"get":{"tags":["v1-owner"],"summary":"List Campaigns","operationId":"list_campaigns_api_v1_me_campaigns_get","parameters":[{"name":"site_id","in":"query","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CampaignReadV1"},"title":"Response List Campaigns Api V1 Me Campaigns Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/me/campaigns/{campaign_id}/cancel":{"post":{"tags":["v1-owner"],"summary":"Cancel Campaign","operationId":"cancel_campaign_api_v1_me_campaigns__campaign_id__cancel_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"integer","title":"Campaign Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/campaigns/{campaign_id}/resume":{"post":{"tags":["v1-owner"],"summary":"Resume Campaign","operationId":"resume_campaign_api_v1_me_campaigns__campaign_id__resume_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"integer","title":"Campaign Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignReadV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/messengers/platforms":{"get":{"tags":["v1-messengers"],"summary":"List Platforms","description":"The catalogue, with this owner's remaining room already counted.","operationId":"list_platforms_api_v1_me_messengers_platforms_get","parameters":[{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerCatalogueV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/me/messengers":{"get":{"tags":["v1-messengers"],"summary":"List Accounts","operationId":"list_accounts_api_v1_me_messengers_get","parameters":[{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessengerAccountV1"},"title":"Response List Accounts Api V1 Me Messengers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/me/messengers/sms":{"get":{"tags":["v1-messengers"],"summary":"Get Sms Channel","operationId":"get_sms_channel_api_v1_me_messengers_sms_get","parameters":[{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSmsChannelV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]},"patch":{"tags":["v1-messengers"],"summary":"Patch Sms Channel","operationId":"patch_sms_channel_api_v1_me_messengers_sms_patch","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSmsChannelPatchV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSmsChannelV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/messengers/link/start":{"post":{"tags":["v1-messengers"],"summary":"Start Link","description":"Step one of the wizard — the platform sends its own code to the number.","operationId":"start_link_api_v1_me_messengers_link_start_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerLinkStartV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerLinkStartedV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/messengers/link/bot":{"post":{"tags":["v1-messengers"],"summary":"Link Bot Account","description":"Link a Telegram/Bale Bot API token without exposing it to clients.","operationId":"link_bot_account_api_v1_me_messengers_link_bot_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerLinkBotV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/messengers/link/verify":{"post":{"tags":["v1-messengers"],"summary":"Verify Link","description":"Step two — exchange the code for a linked, sendable line.","operationId":"verify_link_api_v1_me_messengers_link_verify_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerLinkVerifyV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/messengers/{account_id}/test":{"post":{"tags":["v1-messengers"],"summary":"Test Account","operationId":"test_account_api_v1_me_messengers__account_id__test_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/me/messengers/{account_id}":{"patch":{"tags":["v1-messengers"],"summary":"Patch Account","operationId":"patch_account_api_v1_me_messengers__account_id__patch","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountPatchV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]},"delete":{"tags":["v1-messengers"],"summary":"Unlink Account","operationId":"unlink_account_api_v1_me_messengers__account_id__delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/me":{"get":{"tags":["v1-operator"],"summary":"Operator Me","operationId":"operator_me_api_v1_operator_me_get","parameters":[{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorMeV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/system-status":{"get":{"tags":["v1-operator"],"summary":"Operator System Status","description":"Aggregate-only operational dashboard; never returns PII or secrets.","operationId":"operator_system_status_api_v1_operator_system_status_get","parameters":[{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator System Status Api V1 Operator System Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/finance":{"get":{"tags":["v1-operator"],"summary":"Operator Finance","description":"Return the operator's cash, SMS billing and cost breakdown in IRR.","operationId":"operator_finance_api_v1_operator_finance_get","parameters":[{"name":"range","in":"query","required":false,"schema":{"type":"string","default":"30d","title":"Range"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Finance Api V1 Operator Finance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/marketing":{"get":{"tags":["v1-operator"],"summary":"Operator Marketing","description":"Return campaign sends, clicks and attributed revenue for the operator.","operationId":"operator_marketing_api_v1_operator_marketing_get","parameters":[{"name":"range","in":"query","required":false,"schema":{"type":"string","default":"30d","title":"Range"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Marketing Api V1 Operator Marketing Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/payments":{"get":{"tags":["v1-operator"],"summary":"List Payments","operationId":"list_payments_api_v1_operator_payments_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"min_age_hours","in":"query","required":false,"schema":{"type":"integer","maximum":8760,"minimum":0,"default":0,"title":"Min Age Hours"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OperatorPaymentV1"},"title":"Response List Payments Api V1 Operator Payments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/payments/{payment_id}/receipt":{"get":{"tags":["v1-operator"],"summary":"View Receipt","operationId":"view_receipt_api_v1_operator_payments__payment_id__receipt_get","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"integer","title":"Payment Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/payments/{payment_id}/decision":{"post":{"tags":["v1-operator"],"summary":"Decide Payment","operationId":"decide_payment_api_v1_operator_payments__payment_id__decision_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"integer","title":"Payment Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentDecisionV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorPaymentV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/payments/{payment_id}/corrections":{"post":{"tags":["v1-operator"],"summary":"Correct Payment","operationId":"correct_payment_api_v1_operator_payments__payment_id__corrections_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"integer","title":"Payment Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentCorrectionV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorPaymentV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/messages/{message_id}/reconciliation":{"post":{"tags":["v1-operator"],"summary":"Reconcile Ambiguous Message","operationId":"reconcile_ambiguous_message_api_v1_operator_messages__message_id__reconciliation_post","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageReconciliationV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reconcile Ambiguous Message Api V1 Operator Messages  Message Id  Reconciliation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/plans":{"get":{"tags":["v1-operator"],"summary":"List Plan Versions","operationId":"list_plan_versions_api_v1_operator_plans_get","parameters":[{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Plan Versions Api V1 Operator Plans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]},"post":{"tags":["v1-operator"],"summary":"Create Plan Version","operationId":"create_plan_version_api_v1_operator_plans_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanVersionCreateV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Plan Version Api V1 Operator Plans Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/accounts":{"get":{"tags":["v1-operator"],"summary":"List Operator Accounts","description":"Return the minimum identifiers needed by finance operation forms.","operationId":"list_operator_accounts_api_v1_operator_accounts_get","parameters":[{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Operator Accounts Api V1 Operator Accounts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/licenses":{"get":{"tags":["v1-operator"],"summary":"List Operator Licenses","operationId":"list_operator_licenses_api_v1_operator_licenses_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Operator Licenses Api V1 Operator Licenses Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/licenses/{license_id}/reveal":{"post":{"tags":["v1-operator"],"summary":"Reveal Operator License","description":"Reveal one license key on explicit operator request.\n\nKeys stay out of the inventory response. A recent, CSRF-protected\nfinance/admin session is required for each reveal, and the reveal itself\nis audited without persisting the plaintext key in the audit payload.","operationId":"reveal_operator_license_api_v1_operator_licenses__license_id__reveal_post","parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"integer","title":"License Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reveal Operator License Api V1 Operator Licenses  License Id  Reveal Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/plans/{plan_id}/activate":{"post":{"tags":["v1-operator"],"summary":"Activate Plan","operationId":"activate_plan_api_v1_operator_plans__plan_id__activate_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"integer","title":"Plan Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Activate Plan Api V1 Operator Plans  Plan Id  Activate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/plans/{plan_id}/retire":{"post":{"tags":["v1-operator"],"summary":"Retire Plan","operationId":"retire_plan_api_v1_operator_plans__plan_id__retire_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"integer","title":"Plan Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retire Plan Api V1 Operator Plans  Plan Id  Retire Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/licenses/{license_id}/actions":{"post":{"tags":["v1-operator"],"summary":"License Action","operationId":"license_action_api_v1_operator_licenses__license_id__actions_post","parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"integer","title":"License Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseActionV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response License Action Api V1 Operator Licenses  License Id  Actions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/wallet/adjustments":{"post":{"tags":["v1-operator"],"summary":"Wallet Adjustment","operationId":"wallet_adjustment_api_v1_operator_wallet_adjustments_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletAdjustmentV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Wallet Adjustment Api V1 Operator Wallet Adjustments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/approvals":{"get":{"tags":["v1-operator"],"summary":"List Operator Approvals","operationId":"list_operator_approvals_api_v1_operator_approvals_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Operator Approvals Api V1 Operator Approvals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/approvals/{approval_id}/decision":{"post":{"tags":["v1-operator"],"summary":"Decide Operator Approval","operationId":"decide_operator_approval_api_v1_operator_approvals__approval_id__decision_post","parameters":[{"name":"approval_id","in":"path","required":true,"schema":{"type":"integer","title":"Approval Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalDecisionV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decide Operator Approval Api V1 Operator Approvals  Approval Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/releases":{"get":{"tags":["v1-operator"],"summary":"List Releases","operationId":"list_releases_api_v1_operator_releases_get","parameters":[{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Releases Api V1 Operator Releases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]},"post":{"tags":["v1-operator"],"summary":"Publish Release","operationId":"publish_release_api_v1_operator_releases_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_publish_release_api_v1_operator_releases_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Release Api V1 Operator Releases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/releases/{release_id}/download":{"get":{"tags":["v1-operator"],"summary":"Download Release","operationId":"download_release_api_v1_operator_releases__release_id__download_get","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"integer","title":"Release Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/releases/{release_id}/revoke":{"post":{"tags":["v1-operator"],"summary":"Revoke Release","operationId":"revoke_release_api_v1_operator_releases__release_id__revoke_post","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"integer","title":"Release Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Release Api V1 Operator Releases  Release Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/releases/{release_id}/promote":{"post":{"tags":["v1-operator"],"summary":"Promote Release","description":"Select a verified, non-revoked release as the channel's LKG/latest.\n\nChannel rows are locked in a stable order so concurrent promotions cannot\nleave more than one effective latest release. The PostgreSQL partial unique\nindexes on audit request IDs and channel latest rows remain the final race\nbarriers.","operationId":"promote_release_api_v1_operator_releases__release_id__promote_post","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"integer","title":"Release Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Promote Release Api V1 Operator Releases  Release Id  Promote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/tickets":{"get":{"tags":["v1-operator"],"summary":"Operator Tickets","operationId":"operator_tickets_api_v1_operator_tickets_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"site_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Site Id"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"null"}],"title":"Priority"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":180},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Operator Tickets Api V1 Operator Tickets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/tickets/{ticket_id}/messages":{"get":{"tags":["v1-operator"],"summary":"Operator Ticket Messages","operationId":"operator_ticket_messages_api_v1_operator_tickets__ticket_id__messages_get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"integer","title":"Ticket Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Operator Ticket Messages Api V1 Operator Tickets  Ticket Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]},"post":{"tags":["v1-operator"],"summary":"Operator Ticket Reply","operationId":"operator_ticket_reply_api_v1_operator_tickets__ticket_id__messages_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"integer","title":"Ticket Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketReplyV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Ticket Reply Api V1 Operator Tickets  Ticket Id  Messages Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/tickets/{ticket_id}/attachments/{message_id}":{"get":{"tags":["v1-operator"],"summary":"Operator Ticket Attachment","operationId":"operator_ticket_attachment_api_v1_operator_tickets__ticket_id__attachments__message_id__get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"integer","title":"Ticket Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/messages":{"get":{"tags":["v1-operator"],"summary":"Operator Messages","operationId":"operator_messages_api_v1_operator_messages_get","parameters":[{"name":"site_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Site Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"provider_message_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Provider Message Id"}},{"name":"message_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Message Type"}},{"name":"failure_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Failure Code"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Operator Messages Api V1 Operator Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/messages/{message_id}/pii-reveal":{"post":{"tags":["v1-operator"],"summary":"Reveal Message Pii","operationId":"reveal_message_pii_api_v1_operator_messages__message_id__pii_reveal_post","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PiiRevealV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/audit":{"get":{"tags":["v1-operator"],"summary":"Operator Audit","operationId":"operator_audit_api_v1_operator_audit_get","parameters":[{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Action"}},{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Resource Type"}},{"name":"resource_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Resource Id"}},{"name":"actor_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Actor User Id"}},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created From"}},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created To"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Operator Audit Api V1 Operator Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/audit/export":{"post":{"tags":["v1-operator"],"summary":"Export Operator Audit","operationId":"export_operator_audit_api_v1_operator_audit_export_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditExportV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/outbox":{"get":{"tags":["v1-operator"],"summary":"Operator Outbox","operationId":"operator_outbox_api_v1_operator_outbox_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Operator Outbox Api V1 Operator Outbox Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/reconciliation":{"get":{"tags":["v1-operator"],"summary":"Reconciliation Report","operationId":"reconciliation_report_api_v1_operator_reconciliation_get","parameters":[{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reconciliation Report Api V1 Operator Reconciliation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/funnel":{"get":{"tags":["v1-operator"],"summary":"Funnel Report","operationId":"funnel_report_api_v1_operator_funnel_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":400,"minimum":1,"default":30,"title":"Days"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Funnel Report Api V1 Operator Funnel Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/reconciliation/run":{"post":{"tags":["v1-operator"],"summary":"Run Reconciliation","operationId":"run_reconciliation_api_v1_operator_reconciliation_run_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Reconciliation Api V1 Operator Reconciliation Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/operator/retention":{"get":{"tags":["v1-operator"],"summary":"Retention Report","operationId":"retention_report_api_v1_operator_retention_get","parameters":[{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retention Report Api V1 Operator Retention Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/retention/run":{"post":{"tags":["v1-operator"],"summary":"Run Retention","operationId":"run_retention_api_v1_operator_retention_run_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Retention Api V1 Operator Retention Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/plugin/installations/bind":{"post":{"tags":["v1-plugin-installations"],"summary":"Bind Installation","operationId":"bind_installation_api_v1_plugin_installations_bind_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationBindRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Bind Installation Api V1 Plugin Installations Bind Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/sites/{site_id}/installation":{"get":{"tags":["v1-owner-installations"],"summary":"Installation State","operationId":"installation_state_api_v1_me_sites__site_id__installation_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Installation State Api V1 Me Sites  Site Id  Installation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/me/sites/{site_id}/installation/transfer":{"post":{"tags":["v1-owner-installations"],"summary":"Transfer Installation","operationId":"transfer_installation_api_v1_me_sites__site_id__installation_transfer_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}},{"name":"nabz_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nabz Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Transfer Installation Api V1 Me Sites  Site Id  Installation Transfer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/api/v1/plugin/delivery/webhook":{"post":{"tags":["v1-plugin"],"summary":"Delivery Webhook V1","operationId":"delivery_webhook_v1_api_v1_plugin_delivery_webhook_post","parameters":[{"name":"X-Nabz-Provider-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Provider-Signature"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delivery Webhook V1 Api V1 Plugin Delivery Webhook Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ProviderWebhookSignature":[]}]}},"/api/v1/plugin/license/validate":{"post":{"tags":["v1-plugin"],"summary":"Validate License V1","operationId":"validate_license_v1_api_v1_plugin_license_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseValidateRequestV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseValidateResponseV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-auth":"license-key-and-canonical-domain-in-request-body"}},"/api/v1/plugin/auth/basalam/start":{"post":{"tags":["v1-plugin"],"summary":"Basalam Login Start V1","operationId":"basalam_login_start_v1_api_v1_plugin_auth_basalam_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasalamLoginStartRequestV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasalamLoginStartResponseV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/auth/basalam/callback":{"get":{"tags":["v1-plugin"],"summary":"Basalam Login Callback V1","operationId":"basalam_login_callback_v1_api_v1_plugin_auth_basalam_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}}],"responses":{"307":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/auth/basalam/exchange":{"post":{"tags":["v1-plugin"],"summary":"Basalam Login Exchange V1","operationId":"basalam_login_exchange_v1_api_v1_plugin_auth_basalam_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasalamLoginExchangeRequestV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasalamLoginExchangeResponseV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/announce":{"post":{"tags":["v1-plugin"],"summary":"Announce V1","operationId":"announce_v1_api_v1_plugin_announce_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteAnnounceRequestV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseValidateResponseV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-auth":"license-key-and-canonical-domain-in-request-body"}},"/api/v1/plugin/artifact/token":{"post":{"tags":["v1-plugin"],"summary":"Artifact Token V1","operationId":"artifact_token_v1_api_v1_plugin_artifact_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactTokenRequestV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactTokenResponseV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-auth":"license-key-and-canonical-domain-in-request-body"}},"/api/v1/plugin/templates":{"post":{"tags":["v1-plugin"],"summary":"Templates V1","operationId":"templates_v1_api_v1_plugin_templates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseValidateRequestV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Templates V1 Api V1 Plugin Templates Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-auth":"license-key-and-canonical-domain-in-request-body"}},"/api/v1/plugin/message-previews":{"post":{"tags":["v1-plugin"],"summary":"Message Previews V1","description":"Return the exact server-owned Pattern copy for this license.\n\nWordPress uses this read-only response to render its message examples. Keep\nit scoped to the license's allowed message types and never expose provider\nIDs across the plugin boundary.","operationId":"message_previews_v1_api_v1_plugin_message_previews_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseValidateRequestV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Message Previews V1 Api V1 Plugin Message Previews Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/messages":{"post":{"tags":["v1-plugin"],"summary":"Messages V1","operationId":"messages_v1_api_v1_plugin_messages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginMessagesRequestV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Messages V1 Api V1 Plugin Messages Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-auth":"license-key-and-canonical-domain-in-request-body"}},"/api/v1/plugin/consent":{"post":{"tags":["v1-plugin"],"summary":"Update Consent V1","operationId":"update_consent_v1_api_v1_plugin_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentUpdateRequestV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Update Consent V1 Api V1 Plugin Consent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-auth":"license-key-and-canonical-domain-in-request-body"}},"/api/v1/plugin/contacts/sync":{"post":{"tags":["v1-plugin"],"summary":"Sync Contacts V1","operationId":"sync_contacts_v1_api_v1_plugin_contacts_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactsSyncRequestV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Sync Contacts V1 Api V1 Plugin Contacts Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-auth":"license-key-and-canonical-domain-in-request-body"}},"/api/v1/plugin/analytics/sync":{"post":{"tags":["v1-plugin"],"summary":"Sync Analytics V1","operationId":"sync_analytics_v1_api_v1_plugin_analytics_sync_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsSyncRequestV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sync Analytics V1 Api V1 Plugin Analytics Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-auth":"license-key-and-canonical-domain-in-request-body"}},"/api/v1/plugin/sms/send":{"post":{"tags":["v1-plugin"],"summary":"Send Sms V1","operationId":"send_sms_v1_api_v1_plugin_sms_send_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsSendRequestV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsSendResponseV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-auth":"license-key-and-canonical-domain-in-request-body"}},"/api/v1/plugin/messenger/platforms":{"get":{"tags":["v1-messengers"],"summary":"Plugin Platforms","description":"Public catalogue for a fresh or not-yet-licensed installation.","operationId":"plugin_platforms_api_v1_plugin_messenger_platforms_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerCatalogueV1"}}}}}},"post":{"tags":["v1-messengers"],"summary":"Plugin Platforms For Site","description":"Licensed catalogue with the owner's quota.\n\nThe license stays in the request body. Putting it in a GET query leaks a\nlong-lived credential into proxy access logs and browser/server histories.","operationId":"plugin_platforms_for_site_api_v1_plugin_messenger_platforms_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSiteAccountsV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerCatalogueV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/messenger/sms":{"post":{"tags":["v1-messengers"],"summary":"Plugin Get Sms Channel","description":"Return the same account-wide SMS switch rendered in the owner portal.","operationId":"plugin_get_sms_channel_api_v1_plugin_messenger_sms_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSiteAccountsV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSmsChannelV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/messenger/sms/update":{"post":{"tags":["v1-messengers"],"summary":"Plugin Patch Sms Channel","description":"Change the owner's SMS preference from a licensed WooCommerce site.","operationId":"plugin_patch_sms_channel_api_v1_plugin_messenger_sms_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerPluginSmsPatchV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSmsChannelV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/messenger/link/start":{"post":{"tags":["v1-messengers"],"summary":"Plugin Start Link","description":"Add-a-number, step one, from inside WordPress or the Basalam panel.\n\nThe license already authorizes spending this owner's wallet, so it is the\nright credential for linking a line that wallet will pay for. The new line\nis bound to the calling installation's own site.","operationId":"plugin_start_link_api_v1_plugin_messenger_link_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerPluginLinkStartV1"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerLinkStartedV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/messenger/link/bot":{"post":{"tags":["v1-messengers"],"summary":"Plugin Link Bot","description":"Link a Bot API credential from a licensed WordPress installation.","operationId":"plugin_link_bot_api_v1_plugin_messenger_link_bot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerPluginLinkBotV1"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/messenger/link/verify":{"post":{"tags":["v1-messengers"],"summary":"Plugin Verify Link","operationId":"plugin_verify_link_api_v1_plugin_messenger_link_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerPluginLinkVerifyV1"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/messenger/unlink":{"post":{"tags":["v1-messengers"],"summary":"Plugin Unlink","description":"Retire a line, revoking its credential and api key upstream.","operationId":"plugin_unlink_api_v1_plugin_messenger_unlink_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerPluginUnlinkV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/messenger/default":{"post":{"tags":["v1-messengers"],"summary":"Plugin Set Default","description":"Make one active owner line the account-wide primary channel.","operationId":"plugin_set_default_api_v1_plugin_messenger_default_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerPluginAccountActionV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/messenger/test":{"post":{"tags":["v1-messengers"],"summary":"Plugin Test Account","description":"Run Uniom's real credential health-check for a visible plugin line.","operationId":"plugin_test_account_api_v1_plugin_messenger_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerPluginAccountActionV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/messenger/send":{"post":{"tags":["v1-messengers"],"summary":"Send Messenger Message","operationId":"send_messenger_message_api_v1_plugin_messenger_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSendV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSendResultV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/messenger/accounts":{"post":{"tags":["v1-messengers"],"summary":"Plugin List Accounts","description":"All owner lines, matching the account portal's account-wide list.","operationId":"plugin_list_accounts_api_v1_plugin_messenger_accounts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSiteAccountsV1"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MessengerAccountV1"},"type":"array","title":"Response Plugin List Accounts Api V1 Plugin Messenger Accounts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/messengers/platforms":{"get":{"tags":["v1-messengers-internal"],"summary":"Internal Platforms","description":"The catalogue. With `vendor_id`, the booth owner's quota is filled in.","operationId":"internal_platforms_api_v1_internal_messengers_platforms_get","parameters":[{"name":"vendor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vendor Id"}},{"name":"X-Nabz-Service-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Service-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerCatalogueV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/messengers/accounts":{"post":{"tags":["v1-messengers-internal"],"summary":"Internal Accounts","operationId":"internal_accounts_api_v1_internal_messengers_accounts_post","parameters":[{"name":"X-Nabz-Service-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Service-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerVendorRefV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessengerAccountV1"},"title":"Response Internal Accounts Api V1 Internal Messengers Accounts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/messengers/sms":{"post":{"tags":["v1-messengers-internal"],"summary":"Internal Sms","operationId":"internal_sms_api_v1_internal_messengers_sms_post","parameters":[{"name":"X-Nabz-Service-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Service-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerVendorRefV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSmsChannelV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/messengers/sms/update":{"post":{"tags":["v1-messengers-internal"],"summary":"Internal Sms Update","operationId":"internal_sms_update_api_v1_internal_messengers_sms_update_post","parameters":[{"name":"X-Nabz-Service-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Service-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerVendorSmsPatchV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSmsChannelV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/messengers/link/start":{"post":{"tags":["v1-messengers-internal"],"summary":"Internal Link Start","operationId":"internal_link_start_api_v1_internal_messengers_link_start_post","parameters":[{"name":"X-Nabz-Service-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Service-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerVendorLinkStartV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerLinkStartedV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/messengers/link/bot":{"post":{"tags":["v1-messengers-internal"],"summary":"Internal Link Bot","description":"Link a Bot API credential for the booth's central Nabz owner.","operationId":"internal_link_bot_api_v1_internal_messengers_link_bot_post","parameters":[{"name":"X-Nabz-Service-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Service-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerVendorLinkBotV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/messengers/link/verify":{"post":{"tags":["v1-messengers-internal"],"summary":"Internal Link Verify","operationId":"internal_link_verify_api_v1_internal_messengers_link_verify_post","parameters":[{"name":"X-Nabz-Service-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Service-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerVendorLinkVerifyV1"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/messengers/unlink":{"post":{"tags":["v1-messengers-internal"],"summary":"Internal Unlink","operationId":"internal_unlink_api_v1_internal_messengers_unlink_post","parameters":[{"name":"X-Nabz-Service-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Service-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerVendorUnlinkV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/messengers/default":{"post":{"tags":["v1-messengers-internal"],"summary":"Internal Set Default","operationId":"internal_set_default_api_v1_internal_messengers_default_post","parameters":[{"name":"X-Nabz-Service-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Service-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerVendorAccountActionV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerAccountV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/messengers/send":{"post":{"tags":["v1-messengers-internal"],"summary":"Internal Send","operationId":"internal_send_api_v1_internal_messengers_send_post","parameters":[{"name":"X-Nabz-Service-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Service-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerVendorSendV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessengerSendResultV1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/otp/send":{"post":{"tags":["v1-plugin-otp"],"summary":"Send Plugin Otp","operationId":"send_plugin_otp_api_v1_plugin_otp_send_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Nabz-Installation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Installation"}},{"name":"X-Nabz-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Timestamp"}},{"name":"X-Nabz-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Nonce"}},{"name":"X-Nabz-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Signature"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginOtpSendRequestV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Plugin Otp Api V1 Plugin Otp Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/otp/retry":{"post":{"tags":["v1-plugin-otp"],"summary":"Retry Plugin Otp","operationId":"retry_plugin_otp_api_v1_plugin_otp_retry_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Nabz-Installation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Installation"}},{"name":"X-Nabz-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Timestamp"}},{"name":"X-Nabz-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Nonce"}},{"name":"X-Nabz-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Signature"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginOtpRetryRequestV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retry Plugin Otp Api V1 Plugin Otp Retry Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plugin/otp/verify":{"post":{"tags":["v1-plugin-otp"],"summary":"Verify Plugin Otp","operationId":"verify_plugin_otp_api_v1_plugin_otp_verify_post","parameters":[{"name":"X-Nabz-Installation","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Installation"}},{"name":"X-Nabz-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Timestamp"}},{"name":"X-Nabz-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Nonce"}},{"name":"X-Nabz-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nabz-Signature"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginOtpVerifyRequestV1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Plugin Otp Api V1 Plugin Otp Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account":{"get":{"tags":["portal"],"summary":"Account","operationId":"account_account_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/free-analysis":{"get":{"tags":["portal"],"summary":"Generic Acquisition Landing","operationId":"generic_acquisition_landing_free_analysis_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/free-analysis/{slug}":{"get":{"tags":["portal"],"summary":"Acquisition Landing","operationId":"acquisition_landing_free_analysis__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/r/{slug}":{"get":{"tags":["portal"],"summary":"Public Acquisition Report","operationId":"public_acquisition_report_r__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/receipts/{payment_id}":{"get":{"tags":["portal"],"summary":"Account Receipt","operationId":"account_receipt_account_receipts__payment_id__get","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"integer","title":"Payment Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/admin-summary":{"get":{"tags":["portal"],"summary":"Admin Summary","operationId":"admin_summary_api_v1_operator_admin_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/users":{"get":{"tags":["portal"],"summary":"List Admin Users","description":"Return every portal user without credentials or other secrets.","operationId":"list_admin_users_api_v1_operator_users_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Query"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Role"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/customers":{"get":{"tags":["portal"],"summary":"List Admin Customers","description":"Return a paginated customer directory to password-authenticated admins.\n\nThis deliberately excludes credentials, secrets and license keys. Contact\ninformation is returned unmasked because this route is admin-only.","operationId":"list_admin_customers_api_v1_operator_customers_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Query"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/api/v1/operator/manual-license":{"post":{"tags":["portal"],"summary":"Issue Manual License","operationId":"issue_manual_license_api_v1_operator_manual_license_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualLicenseIssueRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-nabz-csrf-required":true,"security":[{"NabzSessionCookie":[],"NabzCsrfHeader":[]}]}},"/operator":{"get":{"tags":["portal"],"summary":"Operator","operationId":"operator_operator_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}},"security":[{"NabzSessionCookie":[]}]}},"/operator-login":{"get":{"tags":["portal"],"summary":"Operator Login","operationId":"operator_login_operator_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Health Get"}}}}}}}},"components":{"schemas":{"AcquisitionTrialRead":{"properties":{"id":{"type":"integer","title":"Id"},"site_id":{"type":"integer","title":"Site Id"},"status":{"type":"string","title":"Status"},"recipient_cap":{"type":"integer","title":"Recipient Cap"},"gift_credit_irr":{"type":"integer","title":"Gift Credit Irr"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"free_campaign_used":{"type":"boolean","title":"Free Campaign Used"},"campaign_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Campaign Id"}},"type":"object","required":["id","site_id","status","recipient_cap","gift_credit_irr","starts_at","expires_at","free_campaign_used"],"title":"AcquisitionTrialRead"},"AnalyticsClickInputV1":{"properties":{"external_click_id":{"type":"string","maxLength":80,"minLength":1,"title":"External Click Id"},"message_idempotency_key":{"anyOf":[{"type":"string","maxLength":160,"minLength":8},{"type":"null"}],"title":"Message Idempotency Key"},"campaign_key":{"type":"string","maxLength":80,"title":"Campaign Key","default":""},"message_type":{"type":"string","maxLength":64,"title":"Message Type","default":""},"click_count":{"type":"integer","maximum":1000000000.0,"minimum":0.0,"title":"Click Count","default":0},"sent_at":{"type":"string","format":"date-time","title":"Sent At"},"first_clicked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Clicked At"},"last_clicked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Clicked At"},"ip_hash":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Ip Hash"},"user_agent":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"User Agent"},"source_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Updated At"}},"additionalProperties":false,"type":"object","required":["external_click_id","sent_at"],"title":"AnalyticsClickInputV1"},"AnalyticsSyncRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"},"clicks":{"items":{"$ref":"#/components/schemas/AnalyticsClickInputV1"},"type":"array","maxItems":500,"title":"Clicks"},"attributed_orders":{"items":{"$ref":"#/components/schemas/AttributedOrderInputV1"},"type":"array","maxItems":500,"title":"Attributed Orders"}},"additionalProperties":false,"type":"object","required":["license_key","domain"],"title":"AnalyticsSyncRequestV1"},"ApprovalDecisionV1":{"properties":{"decision":{"type":"string","pattern":"^(approve|reject)$","title":"Decision"},"reason":{"type":"string","maxLength":1000,"minLength":2,"title":"Reason"},"confirm":{"type":"boolean","title":"Confirm"}},"type":"object","required":["decision","reason","confirm"],"title":"ApprovalDecisionV1"},"ArtifactTokenRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"},"channel":{"type":"string","pattern":"^(stable|canary)$","title":"Channel","default":"stable"}},"additionalProperties":false,"type":"object","required":["license_key","domain"],"title":"ArtifactTokenRequestV1"},"ArtifactTokenResponseV1":{"properties":{"version":{"type":"string","title":"Version"},"download_url":{"type":"string","title":"Download Url"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds"},"sha256":{"type":"string","title":"Sha256"},"signature":{"type":"string","title":"Signature"},"signing_public_key":{"type":"string","title":"Signing Public Key"},"changelog":{"type":"string","title":"Changelog"},"min_php":{"type":"string","title":"Min Php"},"max_php":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max Php"},"min_wp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Wp"},"min_woo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Woo"}},"type":"object","required":["version","download_url","expires_in_seconds","sha256","signature","signing_public_key","changelog","min_php","max_php","min_wp","min_woo"],"title":"ArtifactTokenResponseV1"},"AttributedOrderInputV1":{"properties":{"external_order_id":{"type":"string","maxLength":80,"minLength":1,"title":"External Order Id"},"external_click_id":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"External Click Id"},"campaign_key":{"type":"string","maxLength":80,"title":"Campaign Key","default":""},"message_type":{"type":"string","maxLength":64,"title":"Message Type","default":""},"revenue_irr":{"type":"integer","maximum":10000000000000.0,"minimum":0.0,"title":"Revenue Irr"},"currency":{"type":"string","pattern":"^IRR$","title":"Currency","default":"IRR"},"attributed_at":{"type":"string","format":"date-time","title":"Attributed At"},"source_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Updated At"}},"additionalProperties":false,"type":"object","required":["external_order_id","revenue_irr","attributed_at"],"title":"AttributedOrderInputV1"},"AuditExportV1":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":3,"title":"Reason"},"confirm":{"type":"boolean","title":"Confirm"},"action":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Action"},"resource_type":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Resource Type"},"resource_id":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Resource Id"},"actor_user_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Actor User Id"},"query":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Query"},"created_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created From"},"created_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created To"}},"type":"object","required":["reason","confirm"],"title":"AuditExportV1"},"BasalamAuthorizeRead":{"properties":{"authorization_url":{"type":"string","title":"Authorization Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["authorization_url","expires_at"],"title":"BasalamAuthorizeRead"},"BasalamConnectionRead":{"properties":{"connection_id":{"type":"integer","title":"Connection Id"},"vendor_id":{"type":"integer","title":"Vendor Id"},"vendor_title":{"type":"string","title":"Vendor Title"},"vendor_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Identifier"},"connection_status":{"type":"string","title":"Connection Status"},"sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Status"},"sync_pages_completed":{"type":"integer","title":"Sync Pages Completed","default":0},"sync_orders_seen":{"type":"integer","title":"Sync Orders Seen","default":0},"last_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error Code"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"analysis":{"anyOf":[{"$ref":"#/components/schemas/FunnelAnalysisRead"},{"type":"null"}]}},"type":"object","required":["connection_id","vendor_id","vendor_title","connection_status"],"title":"BasalamConnectionRead"},"BasalamLoginExchangeRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"},"ticket":{"type":"string","maxLength":4096,"minLength":40,"title":"Ticket"},"state_nonce":{"type":"string","maxLength":128,"minLength":16,"title":"State Nonce"}},"additionalProperties":false,"type":"object","required":["license_key","domain","ticket","state_nonce"],"title":"BasalamLoginExchangeRequestV1"},"BasalamLoginExchangeResponseV1":{"properties":{"verified":{"type":"boolean","title":"Verified"},"mobile":{"type":"string","title":"Mobile"},"provider":{"type":"string","title":"Provider","default":"basalam"}},"type":"object","required":["verified","mobile"],"title":"BasalamLoginExchangeResponseV1"},"BasalamLoginStartRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"},"return_url":{"type":"string","maxLength":512,"minLength":20,"title":"Return Url"},"state_nonce":{"type":"string","maxLength":128,"minLength":16,"title":"State Nonce"}},"additionalProperties":false,"type":"object","required":["license_key","domain","return_url","state_nonce"],"title":"BasalamLoginStartRequestV1"},"BasalamLoginStartResponseV1":{"properties":{"authorization_url":{"type":"string","title":"Authorization Url"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds"},"scope":{"type":"string","title":"Scope"}},"type":"object","required":["authorization_url","expires_in_seconds","scope"],"title":"BasalamLoginStartResponseV1"},"Body_add_ticket_attachment_api_v1_me_tickets__reference__attachments_post":{"properties":{"attachment":{"type":"string","contentMediaType":"application/octet-stream","title":"Attachment"},"body":{"type":"string","title":"Body","default":"پیوست"}},"type":"object","required":["attachment"],"title":"Body_add_ticket_attachment_api_v1_me_tickets__reference__attachments_post"},"Body_publish_ci_release_api_v1_ci_plugin_releases_post":{"properties":{"artifact":{"type":"string","contentMediaType":"application/octet-stream","title":"Artifact"},"version":{"type":"string","title":"Version"},"changelog":{"type":"string","title":"Changelog","default":""},"channel":{"type":"string","title":"Channel","default":"stable"},"min_php":{"type":"string","title":"Min Php","default":"7.4"},"max_php":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max Php","default":"8.4"},"min_wp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Wp","default":"6.0"},"min_woo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Woo","default":"8.3"},"rollout_percent":{"type":"integer","title":"Rollout Percent","default":100},"make_latest":{"type":"boolean","title":"Make Latest","default":true}},"type":"object","required":["artifact","version"],"title":"Body_publish_ci_release_api_v1_ci_plugin_releases_post"},"Body_publish_release_api_v1_operator_releases_post":{"properties":{"artifact":{"type":"string","contentMediaType":"application/octet-stream","title":"Artifact"},"compatibility_attestation":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Compatibility Attestation"},"version":{"type":"string","title":"Version"},"product":{"type":"string","title":"Product","default":"nabz"},"changelog":{"type":"string","title":"Changelog","default":""},"channel":{"type":"string","title":"Channel","default":"stable"},"min_php":{"type":"string","title":"Min Php","default":"8.1"},"max_php":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max Php"},"min_wp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Wp"},"min_woo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Woo"},"rollout_percent":{"type":"integer","title":"Rollout Percent","default":100},"make_latest":{"type":"boolean","title":"Make Latest","default":true}},"type":"object","required":["artifact","version"],"title":"Body_publish_release_api_v1_operator_releases_post"},"Body_submit_receipt_api_v1_me_orders__reference__receipt_post":{"properties":{"receipt":{"type":"string","contentMediaType":"application/octet-stream","title":"Receipt"}},"type":"object","required":["receipt"],"title":"Body_submit_receipt_api_v1_me_orders__reference__receipt_post"},"CampaignCreateV1":{"properties":{"preview_token":{"type":"string","maxLength":200000,"minLength":32,"title":"Preview Token"},"name":{"type":"string","maxLength":160,"minLength":2,"title":"Name"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","required":["preview_token","name"],"title":"CampaignCreateV1"},"CampaignFiltersV1":{"properties":{"rfm_segments_any":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Rfm Segments Any"},"tags_any":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Tags Any"},"product_ids_any":{"items":{"type":"integer"},"type":"array","maxItems":50,"title":"Product Ids Any"},"min_purchase_count":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Min Purchase Count","default":0},"max_purchase_count":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Max Purchase Count"},"min_total_spent_irr":{"type":"integer","minimum":0.0,"title":"Min Total Spent Irr","default":0},"last_purchase_before_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":0.0},{"type":"null"}],"title":"Last Purchase Before Days"},"last_purchase_after_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":0.0},{"type":"null"}],"title":"Last Purchase After Days"}},"additionalProperties":false,"type":"object","title":"CampaignFiltersV1"},"CampaignPreviewRequestV1":{"properties":{"site_id":{"type":"integer","title":"Site Id"},"filters":{"$ref":"#/components/schemas/CampaignFiltersV1"},"message":{"type":"string","maxLength":500,"minLength":1,"title":"Message"},"link":{"anyOf":[{"type":"string","maxLength":1000,"minLength":8},{"type":"null"}],"title":"Link"},"manual_recipients":{"items":{"type":"string"},"type":"array","maxItems":5000,"title":"Manual Recipients"}},"additionalProperties":false,"type":"object","required":["site_id","message"],"title":"CampaignPreviewRequestV1"},"CampaignPreviewResponseV1":{"properties":{"audience_source":{"type":"string","title":"Audience Source"},"audience_count":{"type":"integer","title":"Audience Count"},"opt_out_count":{"type":"integer","title":"Opt Out Count"},"manual_recipient_count":{"type":"integer","title":"Manual Recipient Count"},"invalid_manual_recipient_indexes":{"items":{"type":"integer"},"type":"array","title":"Invalid Manual Recipient Indexes"},"duplicate_manual_recipient_count":{"type":"integer","title":"Duplicate Manual Recipient Count"},"estimated_segments":{"type":"integer","title":"Estimated Segments"},"estimated_total_segments":{"type":"integer","title":"Estimated Total Segments"},"estimated_max_cost_irr":{"type":"integer","title":"Estimated Max Cost Irr"},"price_per_part_irr":{"type":"integer","title":"Price Per Part Irr"},"short_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Link"},"available_variables":{"items":{"type":"string"},"type":"array","title":"Available Variables"},"preview_token":{"type":"string","title":"Preview Token"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds"},"sample_numbers_masked":{"items":{"type":"string"},"type":"array","title":"Sample Numbers Masked"}},"type":"object","required":["audience_source","audience_count","opt_out_count","manual_recipient_count","invalid_manual_recipient_indexes","duplicate_manual_recipient_count","estimated_segments","estimated_total_segments","estimated_max_cost_irr","price_per_part_irr","short_link","available_variables","preview_token","expires_in_seconds","sample_numbers_masked"],"title":"CampaignPreviewResponseV1"},"CampaignReadV1":{"properties":{"id":{"type":"integer","title":"Id"},"site_id":{"type":"integer","title":"Site Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"estimated_recipients":{"type":"integer","title":"Estimated Recipients"},"estimated_max_cost_irr":{"type":"integer","title":"Estimated Max Cost Irr"},"total_recipients":{"type":"integer","title":"Total Recipients"},"processed_recipients":{"type":"integer","title":"Processed Recipients"},"sent_recipients":{"type":"integer","title":"Sent Recipients"},"failed_recipients":{"type":"integer","title":"Failed Recipients"},"excluded_recipients":{"type":"integer","title":"Excluded Recipients"},"pause_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pause Reason"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","site_id","name","status","estimated_recipients","estimated_max_cost_irr","total_recipients","processed_recipients","sent_recipients","failed_recipients","excluded_recipients","pause_reason","scheduled_at","created_at"],"title":"CampaignReadV1"},"CampaignTestSendReadV1":{"properties":{"message_log_id":{"type":"integer","title":"Message Log Id"},"number_masked":{"type":"string","title":"Number Masked"},"status":{"type":"string","title":"Status"},"parts":{"type":"integer","title":"Parts"},"billed_amount_irr":{"type":"integer","title":"Billed Amount Irr"},"wallet_balance_irr":{"type":"integer","title":"Wallet Balance Irr"},"idempotent_replay":{"type":"boolean","title":"Idempotent Replay"}},"type":"object","required":["message_log_id","number_masked","status","parts","billed_amount_irr","wallet_balance_irr","idempotent_replay"],"title":"CampaignTestSendReadV1"},"CampaignTestSendV1":{"properties":{"preview_token":{"type":"string","maxLength":200000,"minLength":32,"title":"Preview Token"}},"type":"object","required":["preview_token"],"title":"CampaignTestSendV1"},"ConsentUpdateRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"},"mobile":{"type":"string","maxLength":32,"minLength":4,"title":"Mobile"},"kind":{"type":"string","pattern":"^(marketing|transactional)$","title":"Kind"},"state":{"type":"string","pattern":"^(granted|denied)$","title":"State"},"source":{"type":"string","maxLength":80,"minLength":2,"title":"Source"},"evidence":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Evidence"}},"additionalProperties":false,"type":"object","required":["license_key","domain","mobile","kind","state","source"],"title":"ConsentUpdateRequestV1"},"ContactProfileInputV1":{"properties":{"mobile":{"type":"string","maxLength":32,"minLength":4,"title":"Mobile"},"customer_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Customer Name"},"wordpress_user_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Wordpress User Id"},"rfm_segment":{"anyOf":[{"type":"string","pattern":"^[a-z0-9_-]{1,32}$"},{"type":"null"}],"title":"Rfm Segment"},"tags":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Tags"},"purchased_product_ids":{"items":{"type":"integer"},"type":"array","maxItems":200,"title":"Purchased Product Ids"},"purchase_count":{"type":"integer","minimum":0.0,"title":"Purchase Count","default":0},"total_spent_irr":{"type":"integer","minimum":0.0,"title":"Total Spent Irr","default":0},"last_purchase_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Purchase At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"birthday_mm_dd":{"anyOf":[{"type":"string","pattern":"^(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}],"title":"Birthday Mm Dd"},"source_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Updated At"}},"additionalProperties":false,"type":"object","required":["mobile"],"title":"ContactProfileInputV1"},"ContactsSyncRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"},"contacts":{"items":{"$ref":"#/components/schemas/ContactProfileInputV1"},"type":"array","maxItems":500,"minItems":1,"title":"Contacts"}},"additionalProperties":false,"type":"object","required":["license_key","domain","contacts"],"title":"ContactsSyncRequestV1"},"CustomerErasureV1":{"properties":{"site_id":{"type":"integer","title":"Site Id"},"mobile":{"type":"string","maxLength":32,"minLength":4,"title":"Mobile"},"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","required":["site_id","mobile","reason"],"title":"CustomerErasureV1"},"FreeCampaignCreate":{"properties":{"confirm_marketing_authority":{"type":"boolean","title":"Confirm Marketing Authority","default":false},"message":{"anyOf":[{"type":"string","maxLength":400,"minLength":10},{"type":"null"}],"title":"Message"}},"additionalProperties":false,"type":"object","title":"FreeCampaignCreate"},"FreeCampaignRead":{"properties":{"campaign_id":{"type":"integer","title":"Campaign Id"},"status":{"type":"string","title":"Status"},"recipients":{"type":"integer","title":"Recipients"},"trial_expires_at":{"type":"string","format":"date-time","title":"Trial Expires At"},"idempotent_replay":{"type":"boolean","title":"Idempotent Replay","default":false},"account_url":{"type":"string","title":"Account Url","default":"/account"},"checkout_url":{"type":"string","title":"Checkout Url","default":"/account#purchase"}},"type":"object","required":["campaign_id","status","recipients","trial_expires_at"],"title":"FreeCampaignRead"},"FunnelAnalysisRead":{"properties":{"customers_total":{"type":"integer","title":"Customers Total"},"customers_inactive":{"type":"integer","title":"Customers Inactive"},"customers_at_risk":{"type":"integer","title":"Customers At Risk"},"customers_active":{"type":"integer","title":"Customers Active"},"customers_with_mobile":{"type":"integer","title":"Customers With Mobile"},"customers_without_mobile":{"type":"integer","title":"Customers Without Mobile"},"targetable_customers":{"type":"integer","title":"Targetable Customers"},"returnable_customers":{"type":"integer","title":"Returnable Customers"},"order_count":{"type":"integer","title":"Order Count"},"total_revenue_irr":{"type":"integer","title":"Total Revenue Irr"},"average_order_value_irr":{"type":"integer","title":"Average Order Value Irr"},"average_customer_value_irr":{"type":"integer","title":"Average Customer Value Irr"},"repeat_customers":{"type":"integer","title":"Repeat Customers"},"one_time_customers":{"type":"integer","title":"One Time Customers"},"repeat_rate_percent":{"type":"number","title":"Repeat Rate Percent"},"mobile_coverage_percent":{"type":"number","title":"Mobile Coverage Percent"},"return_potential_irr":{"type":"integer","title":"Return Potential Irr"},"analysis_window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Analysis Window Days"},"analysis_bucket_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Analysis Bucket Count"},"period_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period Started At"},"period_ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period Ended At"},"segments":{"items":{"$ref":"#/components/schemas/FunnelSegmentRead"},"type":"array","title":"Segments"},"recommendations":{"items":{"$ref":"#/components/schemas/FunnelRecommendationRead"},"type":"array","title":"Recommendations"},"currency":{"type":"string","title":"Currency"},"methodology_version":{"type":"string","title":"Methodology Version"},"computed_at":{"type":"string","format":"date-time","title":"Computed At"}},"type":"object","required":["customers_total","customers_inactive","customers_at_risk","customers_active","customers_with_mobile","customers_without_mobile","targetable_customers","returnable_customers","order_count","total_revenue_irr","average_order_value_irr","average_customer_value_irr","repeat_customers","one_time_customers","repeat_rate_percent","mobile_coverage_percent","return_potential_irr","segments","recommendations","currency","methodology_version","computed_at"],"title":"FunnelAnalysisRead"},"FunnelEventCreateV1":{"properties":{"event":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$","title":"Event"},"event_id":{"type":"string","maxLength":160,"minLength":12,"pattern":"^[A-Za-z0-9:._-]+$","title":"Event Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"session_id":{"type":"string","maxLength":128,"minLength":8,"pattern":"^[A-Za-z0-9:._-]+$","title":"Session Id"},"analytics_consent":{"type":"boolean","title":"Analytics Consent"},"properties":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"}]},"type":"object","maxProperties":16,"title":"Properties"},"attribution":{"additionalProperties":{"type":"string"},"type":"object","maxProperties":12,"title":"Attribution"}},"additionalProperties":false,"type":"object","required":["event","event_id","occurred_at","session_id","analytics_consent"],"title":"FunnelEventCreateV1"},"FunnelEventReadV1":{"properties":{"accepted":{"type":"boolean","title":"Accepted"},"idempotent_replay":{"type":"boolean","title":"Idempotent Replay","default":false}},"type":"object","required":["accepted"],"title":"FunnelEventReadV1"},"FunnelRecommendationRead":{"properties":{"priority":{"type":"string","title":"Priority"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"action":{"type":"string","title":"Action"}},"type":"object","required":["priority","title","description","action"],"title":"FunnelRecommendationRead"},"FunnelSegmentRead":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"count":{"type":"integer","title":"Count"},"share_percent":{"type":"number","title":"Share Percent"},"description":{"type":"string","title":"Description"}},"type":"object","required":["key","label","count","share_percent","description"],"title":"FunnelSegmentRead"},"FunnelStoreClaim":{"properties":{"domain":{"type":"string","maxLength":300,"minLength":3,"title":"Domain"}},"additionalProperties":false,"type":"object","required":["domain"],"title":"FunnelStoreClaim"},"FunnelStoreClaimRead":{"properties":{"slug":{"type":"string","title":"Slug"},"site_id":{"type":"integer","title":"Site Id"},"canonical_domain":{"type":"string","title":"Canonical Domain"},"connection_status":{"type":"string","title":"Connection Status"}},"type":"object","required":["slug","site_id","canonical_domain","connection_status"],"title":"FunnelStoreClaimRead"},"FunnelStoreDirectClaim":{"properties":{"domain":{"type":"string","maxLength":300,"minLength":3,"title":"Domain"}},"additionalProperties":false,"type":"object","required":["domain"],"title":"FunnelStoreDirectClaim"},"FunnelStoreImport":{"properties":{"stores":{"items":{"$ref":"#/components/schemas/FunnelStoreImportItem"},"type":"array","maxItems":10000,"minItems":1,"title":"Stores"}},"type":"object","required":["stores"],"title":"FunnelStoreImport"},"FunnelStoreImportItem":{"properties":{"slug":{"anyOf":[{"type":"string","maxLength":80,"minLength":2},{"type":"null"}],"title":"Slug"},"name":{"type":"string","maxLength":160,"minLength":2,"title":"Name"},"domain":{"type":"string","maxLength":300,"minLength":3,"title":"Domain"},"category":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Category"},"city":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"City"}},"additionalProperties":false,"type":"object","required":["name","domain"],"title":"FunnelStoreImportItem"},"FunnelStoreImportRead":{"properties":{"created":{"type":"integer","title":"Created"},"updated":{"type":"integer","title":"Updated"}},"type":"object","required":["created","updated"],"title":"FunnelStoreImportRead"},"FunnelStoreRead":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"domain":{"type":"string","title":"Domain"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"claimed":{"type":"boolean","title":"Claimed"}},"type":"object","required":["slug","name","domain","claimed"],"title":"FunnelStoreRead"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InstallationBindRequest":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"installation_id":{"type":"string","maxLength":64,"minLength":32,"title":"Installation Id"},"public_key":{"type":"string","maxLength":128,"minLength":40,"title":"Public Key"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"}},"additionalProperties":false,"type":"object","required":["license_key","domain","installation_id","public_key"],"title":"InstallationBindRequest"},"LicenseActionV1":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":2,"title":"Reason"},"confirm":{"type":"boolean","title":"Confirm","default":true},"action":{"type":"string","pattern":"^(activate|extend|suspend|revoke|domain_transfer)$","title":"Action"},"extend_days":{"type":"integer","maximum":3660.0,"minimum":0.0,"title":"Extend Days","default":0},"new_domain":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"New Domain"},"admin_override":{"type":"boolean","title":"Admin Override","default":false}},"type":"object","required":["reason","action"],"title":"LicenseActionV1"},"LicenseReadV1":{"properties":{"id":{"type":"integer","title":"Id"},"site_id":{"type":"integer","title":"Site Id"},"status":{"type":"string","title":"Status"},"key_hint":{"type":"string","title":"Key Hint"},"canonical_domain":{"type":"string","title":"Canonical Domain"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"grace_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Grace Until"},"allowed_channels":{"items":{"type":"string"},"type":"array","title":"Allowed Channels"},"allowed_message_types":{"items":{"type":"string"},"type":"array","title":"Allowed Message Types"}},"type":"object","required":["id","site_id","status","key_hint","canonical_domain","starts_at","expires_at","grace_until","allowed_channels","allowed_message_types"],"title":"LicenseReadV1"},"LicenseRevealV1":{"properties":{"license_key":{"type":"string","title":"License Key"}},"type":"object","required":["license_key"],"title":"LicenseRevealV1"},"LicenseValidateRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"}},"additionalProperties":false,"type":"object","required":["license_key","domain"],"title":"LicenseValidateRequestV1"},"LicenseValidateResponseV1":{"properties":{"status":{"type":"string","title":"Status"},"is_active":{"type":"boolean","title":"Is Active"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"grace_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Grace Until"},"allowed_channels":{"items":{"type":"string"},"type":"array","title":"Allowed Channels"},"allowed_message_types":{"items":{"type":"string"},"type":"array","title":"Allowed Message Types"},"wallet_balance_irr":{"type":"integer","title":"Wallet Balance Irr"},"site_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Name"},"server_time":{"type":"string","format":"date-time","title":"Server Time"},"cache_ttl_seconds":{"type":"integer","title":"Cache Ttl Seconds"},"basalam_login_enabled":{"type":"boolean","title":"Basalam Login Enabled","default":false}},"type":"object","required":["status","is_active","expires_at","grace_until","allowed_channels","allowed_message_types","wallet_balance_irr","site_name","server_time","cache_ttl_seconds"],"title":"LicenseValidateResponseV1"},"ManualLicenseIssueRequest":{"properties":{"site_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Site Id"},"plan_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Plan Id"},"duration_days":{"type":"integer","maximum":3660.0,"minimum":1.0,"title":"Duration Days","default":365},"amount_irr":{"type":"integer","maximum":1000000000.0,"minimum":0.0,"title":"Amount Irr","default":0},"financial_treatment":{"type":"string","pattern":"^(paid|gift)$","title":"Financial Treatment"},"payment_method":{"anyOf":[{"type":"string","pattern":"^(card_to_card|bank_transfer|cash|pos|other)$"},{"type":"null"}],"title":"Payment Method"},"reason":{"type":"string","maxLength":1000,"minLength":3,"title":"Reason"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","required":["site_id","plan_id","financial_treatment","reason"],"title":"ManualLicenseIssueRequest"},"MessageReconciliationV1":{"properties":{"outcome":{"type":"string","pattern":"^(accepted|not_accepted)$","title":"Outcome"},"provider_message_id":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Provider Message Id"},"provider_status":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Provider Status"},"evidence":{"type":"string","maxLength":2000,"minLength":3,"title":"Evidence"},"confirm":{"type":"boolean","title":"Confirm"}},"type":"object","required":["outcome","evidence","confirm"],"title":"MessageReconciliationV1"},"MessengerAccountPatchV1":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"site_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Id"},"allowed_message_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Message Types"}},"type":"object","title":"MessengerAccountPatchV1"},"MessengerAccountV1":{"properties":{"id":{"type":"integer","title":"Id"},"platform":{"type":"string","title":"Platform"},"platform_label":{"type":"string","title":"Platform Label"},"phone":{"type":"string","title":"Phone"},"is_bot":{"type":"boolean","title":"Is Bot","default":false},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"platform_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Username"},"site_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Id"},"status":{"type":"string","title":"Status"},"is_default":{"type":"boolean","title":"Is Default"},"allowed_message_types":{"items":{"type":"string"},"type":"array","title":"Allowed Message Types"},"sent_today":{"type":"integer","title":"Sent Today","default":0},"per_minute":{"type":"integer","title":"Per Minute","default":0},"per_day":{"type":"integer","title":"Per Day","default":0},"last_verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Verified At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"last_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error Code"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","platform","platform_label","phone","status","is_default"],"title":"MessengerAccountV1"},"MessengerCatalogueV1":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"price_irr":{"type":"integer","title":"Price Irr"},"platforms":{"items":{"$ref":"#/components/schemas/MessengerPlatformV1"},"type":"array","title":"Platforms"},"max_accounts":{"type":"integer","title":"Max Accounts","default":0},"used_accounts":{"type":"integer","title":"Used Accounts","default":0}},"type":"object","required":["enabled","price_irr","platforms"],"title":"MessengerCatalogueV1","description":"What can be linked, at what price, and how much room is left.\n\nThe quota travels with the catalogue because every surface that renders the\nadd-a-number button needs it in the same breath: without it the only way to\ndiscover the ceiling is to fill in the wizard and meet a 409."},"MessengerLinkBotV1":{"properties":{"platform":{"type":"string","maxLength":32,"minLength":2,"title":"Platform"},"bot_token":{"type":"string","maxLength":512,"minLength":8,"title":"Bot Token"},"site_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Id"}},"type":"object","required":["platform","bot_token"],"title":"MessengerLinkBotV1","description":"Link a Telegram/Bale (or another Uniom bot-capable) account."},"MessengerLinkStartV1":{"properties":{"platform":{"type":"string","maxLength":32,"minLength":2,"title":"Platform"},"phone":{"type":"string","maxLength":24,"minLength":8,"title":"Phone"},"method":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Method"},"site_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Id"}},"type":"object","required":["platform","phone"],"title":"MessengerLinkStartV1"},"MessengerLinkStartedV1":{"properties":{"link_id":{"type":"string","title":"Link Id"},"platform":{"type":"string","title":"Platform"},"phone":{"type":"string","title":"Phone"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"max_attempts":{"type":"integer","title":"Max Attempts"},"supports_2fa_password":{"type":"boolean","title":"Supports 2Fa Password"},"verification_mode":{"type":"string","title":"Verification Mode","default":"otp"},"prompt_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Label"},"prompt_placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Placeholder"},"prompt_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Hint"},"pair_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pair Code"},"qr_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qr Link"}},"type":"object","required":["link_id","platform","phone","expires_at","max_attempts","supports_2fa_password"],"title":"MessengerLinkStartedV1","description":"What the wizard needs to render step two.\n\nEverything from `verification_mode` down is the provider's own description\nof the challenge it just issued, passed through rather than invented here:\nUniom decides per attempt whether the owner types a code, reads a pair\ncode out of the messenger app, or scans a QR, and it supplies the Persian\nprompt copy for the input box."},"MessengerLinkVerifyV1":{"properties":{"link_id":{"type":"string","maxLength":64,"minLength":8,"title":"Link Id"},"otp":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Otp"},"password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Password"}},"type":"object","required":["link_id"],"title":"MessengerLinkVerifyV1"},"MessengerPlatformV1":{"properties":{"code":{"type":"string","title":"Code"},"label":{"type":"string","title":"Label"},"label_en":{"type":"string","title":"Label En"},"link_method":{"type":"string","title":"Link Method"},"supports_2fa_password":{"type":"boolean","title":"Supports 2Fa Password"},"supports_bot_token":{"type":"boolean","title":"Supports Bot Token"},"per_minute":{"type":"integer","title":"Per Minute"},"per_day":{"type":"integer","title":"Per Day"}},"type":"object","required":["code","label","label_en","link_method","supports_2fa_password","supports_bot_token","per_minute","per_day"],"title":"MessengerPlatformV1"},"MessengerPluginAccountActionV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"account_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Account Id"}},"type":"object","required":["license_key","domain","account_id"],"title":"MessengerPluginAccountActionV1","description":"A licensed installation acting on one of its visible lines."},"MessengerPluginLinkBotV1":{"properties":{"platform":{"type":"string","maxLength":32,"minLength":2,"title":"Platform"},"bot_token":{"type":"string","maxLength":512,"minLength":8,"title":"Bot Token"},"site_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Id"},"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"}},"type":"object","required":["platform","bot_token","license_key","domain"],"title":"MessengerPluginLinkBotV1"},"MessengerPluginLinkStartV1":{"properties":{"platform":{"type":"string","maxLength":32,"minLength":2,"title":"Platform"},"phone":{"type":"string","maxLength":24,"minLength":8,"title":"Phone"},"method":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Method"},"site_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Id"},"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"}},"type":"object","required":["platform","phone","license_key","domain"],"title":"MessengerPluginLinkStartV1","description":"Same wizard, driven by a licensed installation instead of the portal."},"MessengerPluginLinkVerifyV1":{"properties":{"link_id":{"type":"string","maxLength":64,"minLength":8,"title":"Link Id"},"otp":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Otp"},"password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Password"},"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"}},"type":"object","required":["link_id","license_key","domain"],"title":"MessengerPluginLinkVerifyV1"},"MessengerPluginSmsPatchV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["license_key","domain","enabled"],"title":"MessengerPluginSmsPatchV1","description":"Account-wide SMS preference changed by a licensed installation."},"MessengerPluginUnlinkV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"account_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Account Id"}},"type":"object","required":["license_key","domain","account_id"],"title":"MessengerPluginUnlinkV1","description":"Backward-compatible name for the retire-line payload."},"MessengerSendResultV1":{"properties":{"message_id":{"type":"integer","title":"Message Id"},"status":{"type":"string","title":"Status"},"channel":{"type":"string","title":"Channel"},"message":{"type":"string","title":"Message"},"provider_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Message Id"},"billed_amount":{"type":"integer","title":"Billed Amount"},"balance_irr":{"type":"integer","title":"Balance Irr"},"replayed":{"type":"boolean","title":"Replayed","default":false}},"type":"object","required":["message_id","status","channel","message","billed_amount","balance_irr"],"title":"MessengerSendResultV1"},"MessengerSendV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"platform":{"type":"string","maxLength":32,"minLength":2,"title":"Platform"},"chat_id":{"type":"string","maxLength":120,"minLength":1,"title":"Chat Id"},"message_type":{"type":"string","maxLength":64,"minLength":1,"title":"Message Type"},"idempotency_key":{"type":"string","maxLength":120,"minLength":8,"title":"Idempotency Key"},"parameters":{"additionalProperties":true,"type":"object","title":"Parameters"},"messenger_account_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Messenger Account Id"},"customer_number":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Customer Number"}},"additionalProperties":false,"type":"object","required":["license_key","domain","platform","chat_id","message_type","idempotency_key","parameters"],"title":"MessengerSendV1","description":"Send request from the WordPress plugin or the Basalam service.\n\nCarries the same license/domain identity envelope every other plugin v1\nroute takes, so one resolver covers SMS and messenger traffic alike.\n\nThe caller supplies only event parameters. The backend resolves\n``message_type`` to its central pattern, shortens URL-valued parameters,\nrenders the final body, logs it, bills it and sends it. ``extra='forbid'``\nis intentional: a client-authored ``text`` or ``body`` must never silently\nbecome an alternative delivery contract."},"MessengerSiteAccountsV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"include_inactive":{"type":"boolean","title":"Include Inactive","default":false}},"type":"object","required":["license_key","domain"],"title":"MessengerSiteAccountsV1","description":"Identity envelope for the plugin's \"which lines can I use\" lookup."},"MessengerSmsChannelPatchV1":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"MessengerSmsChannelPatchV1"},"MessengerSmsChannelV1":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"can_disable":{"type":"boolean","title":"Can Disable"},"active_messenger_accounts":{"type":"integer","title":"Active Messenger Accounts"}},"type":"object","required":["enabled","can_disable","active_messenger_accounts"],"title":"MessengerSmsChannelV1"},"MessengerVendorAccountActionV1":{"properties":{"vendor_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Vendor Id"},"account_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Account Id"}},"type":"object","required":["vendor_id","account_id"],"title":"MessengerVendorAccountActionV1"},"MessengerVendorLinkBotV1":{"properties":{"vendor_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Vendor Id"},"platform":{"type":"string","maxLength":32,"minLength":2,"title":"Platform"},"bot_token":{"type":"string","maxLength":512,"minLength":8,"title":"Bot Token"}},"type":"object","required":["vendor_id","platform","bot_token"],"title":"MessengerVendorLinkBotV1"},"MessengerVendorLinkStartV1":{"properties":{"vendor_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Vendor Id"},"platform":{"type":"string","maxLength":32,"minLength":2,"title":"Platform"},"phone":{"type":"string","maxLength":24,"minLength":8,"title":"Phone"},"method":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Method"}},"type":"object","required":["vendor_id","platform","phone"],"title":"MessengerVendorLinkStartV1"},"MessengerVendorLinkVerifyV1":{"properties":{"vendor_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Vendor Id"},"link_id":{"type":"string","maxLength":64,"minLength":8,"title":"Link Id"},"otp":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Otp"},"password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Password"}},"type":"object","required":["vendor_id","link_id"],"title":"MessengerVendorLinkVerifyV1"},"MessengerVendorRefV1":{"properties":{"vendor_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Vendor Id"}},"type":"object","required":["vendor_id"],"title":"MessengerVendorRefV1"},"MessengerVendorSendV1":{"properties":{"vendor_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Vendor Id"},"platform":{"type":"string","maxLength":32,"minLength":2,"title":"Platform"},"chat_id":{"type":"string","maxLength":120,"minLength":1,"title":"Chat Id"},"message_type":{"type":"string","maxLength":64,"minLength":1,"title":"Message Type"},"idempotency_key":{"type":"string","maxLength":120,"minLength":8,"title":"Idempotency Key"},"parameters":{"additionalProperties":true,"type":"object","title":"Parameters"},"messenger_account_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Messenger Account Id"},"customer_number":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Customer Number"}},"additionalProperties":false,"type":"object","required":["vendor_id","platform","chat_id","message_type","idempotency_key","parameters"],"title":"MessengerVendorSendV1"},"MessengerVendorSmsPatchV1":{"properties":{"vendor_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Vendor Id"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["vendor_id","enabled"],"title":"MessengerVendorSmsPatchV1"},"MessengerVendorUnlinkV1":{"properties":{"vendor_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Vendor Id"},"account_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Account Id"}},"type":"object","required":["vendor_id","account_id"],"title":"MessengerVendorUnlinkV1"},"OperatorMeV1":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"type":"string","title":"Role"},"mobile_masked":{"type":"string","title":"Mobile Masked"},"rollout_flags":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Rollout Flags"},"disabled_automations":{"items":{"type":"string"},"type":"array","title":"Disabled Automations"}},"type":"object","required":["id","name","role","mobile_masked","rollout_flags","disabled_automations"],"title":"OperatorMeV1"},"OperatorPasswordLoginV1":{"properties":{"mobile":{"type":"string","maxLength":32,"minLength":4,"title":"Mobile"},"password":{"type":"string","maxLength":72,"minLength":8,"title":"Password"}},"type":"object","required":["mobile","password"],"title":"OperatorPasswordLoginV1"},"OperatorPaymentV1":{"properties":{"id":{"type":"integer","title":"Id"},"status":{"type":"string","title":"Status"},"kind":{"type":"string","title":"Kind"},"amount_irr":{"type":"integer","title":"Amount Irr"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"},"age_hours":{"type":"number","title":"Age Hours"},"sla_breached":{"type":"boolean","title":"Sla Breached"},"order_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Reference"},"expected_amount_irr":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Amount Irr"},"site_id":{"type":"integer","title":"Site Id"},"domain":{"type":"string","title":"Domain"},"owner_mobile_masked":{"type":"string","title":"Owner Mobile Masked"},"receipt_scan_status":{"type":"string","title":"Receipt Scan Status"},"receipt_available":{"type":"boolean","title":"Receipt Available"},"admin_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Note"},"origin":{"type":"string","title":"Origin"},"payment_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Method"}},"type":"object","required":["id","status","kind","amount_irr","submitted_at","age_hours","sla_breached","order_reference","expected_amount_irr","site_id","domain","owner_mobile_masked","receipt_scan_status","receipt_available","admin_note","origin","payment_method"],"title":"OperatorPaymentV1"},"OrderCreateV1":{"properties":{"site_id":{"type":"integer","title":"Site Id"},"plan_code":{"type":"string","maxLength":64,"minLength":2,"title":"Plan Code"}},"type":"object","required":["site_id","plan_code"],"title":"OrderCreateV1"},"OrderReadV1":{"properties":{"reference":{"type":"string","title":"Reference"},"site_id":{"type":"integer","title":"Site Id"},"kind":{"type":"string","title":"Kind"},"plan_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Code"},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"status":{"type":"string","title":"Status"},"amount_irr":{"type":"integer","title":"Amount Irr"},"currency":{"type":"string","title":"Currency"},"duration_days":{"type":"integer","title":"Duration Days"},"gift_credit_irr":{"type":"integer","title":"Gift Credit Irr"},"platform_type":{"type":"string","title":"Platform Type","default":"woocommerce"},"platform_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Name"},"platform_domain":{"type":"string","title":"Platform Domain"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["reference","site_id","kind","plan_code","plan_name","status","amount_irr","currency","duration_days","gift_credit_irr","platform_domain","created_at"],"title":"OrderReadV1"},"OtpRequestResponseV1":{"properties":{"challenge_id":{"type":"string","title":"Challenge Id"},"sent":{"type":"boolean","title":"Sent"},"cooldown_seconds":{"type":"integer","title":"Cooldown Seconds","default":60},"provider":{"type":"string","title":"Provider"},"provider_attempted":{"type":"boolean","title":"Provider Attempted"},"provider_accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Provider Accepted"}},"type":"object","required":["challenge_id","sent","provider","provider_attempted"],"title":"OtpRequestResponseV1"},"OtpRequestV1":{"properties":{"mobile":{"type":"string","maxLength":32,"minLength":4,"title":"Mobile"}},"type":"object","required":["mobile"],"title":"OtpRequestV1"},"OtpVerifyV1":{"properties":{"challenge_id":{"type":"string","maxLength":128,"minLength":16,"title":"Challenge Id"},"code":{"type":"string","maxLength":8,"minLength":4,"title":"Code"}},"type":"object","required":["challenge_id","code"],"title":"OtpVerifyV1"},"PaymentCorrectionV1":{"properties":{"confirm":{"type":"boolean","title":"Confirm"},"reason":{"type":"string","maxLength":1000,"minLength":2,"title":"Reason"}},"type":"object","required":["confirm","reason"],"title":"PaymentCorrectionV1"},"PaymentDecisionV1":{"properties":{"decision":{"type":"string","pattern":"^(approve|reject)$","title":"Decision"},"confirm":{"type":"boolean","title":"Confirm"},"reason":{"type":"string","maxLength":1000,"minLength":2,"title":"Reason"}},"type":"object","required":["decision","confirm","reason"],"title":"PaymentDecisionV1"},"PaymentReadV1":{"properties":{"id":{"type":"integer","title":"Id"},"order_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Reference"},"site_id":{"type":"integer","title":"Site Id"},"amount_irr":{"type":"integer","title":"Amount Irr"},"currency":{"type":"string","title":"Currency","default":"IRR"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status"},"admin_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Note"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"},"review_deadline_at":{"type":"string","format":"date-time","title":"Review Deadline At"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"}},"type":"object","required":["id","order_reference","site_id","amount_irr","kind","status","admin_note","submitted_at","review_deadline_at","decided_at"],"title":"PaymentReadV1"},"PiiRevealV1":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":3,"title":"Reason"},"confirm":{"type":"boolean","title":"Confirm"},"duration_seconds":{"type":"integer","maximum":300.0,"minimum":15.0,"title":"Duration Seconds","default":60}},"type":"object","required":["reason","confirm"],"title":"PiiRevealV1"},"PlanReadV1":{"properties":{"code":{"type":"string","title":"Code"},"version":{"type":"integer","title":"Version"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"price_irr":{"type":"integer","title":"Price Irr"},"currency":{"type":"string","title":"Currency"},"duration_days":{"type":"integer","title":"Duration Days"},"gift_credit_irr":{"type":"integer","title":"Gift Credit Irr"},"domain_limit":{"type":"integer","title":"Domain Limit"},"enabled_channels":{"items":{"type":"string"},"type":"array","title":"Enabled Channels"},"allowed_message_types":{"items":{"type":"string"},"type":"array","title":"Allowed Message Types"},"is_featured":{"type":"boolean","title":"Is Featured"}},"type":"object","required":["code","version","name","description","price_irr","currency","duration_days","gift_credit_irr","domain_limit","enabled_channels","allowed_message_types","is_featured"],"title":"PlanReadV1"},"PlanVersionCreateV1":{"properties":{"code":{"type":"string","maxLength":64,"minLength":2,"pattern":"^[a-z0-9-]+$","title":"Code"},"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"description":{"type":"string","maxLength":2000,"title":"Description","default":""},"price_irr":{"type":"integer","exclusiveMinimum":0.0,"title":"Price Irr"},"currency":{"type":"string","pattern":"^IRR$","title":"Currency","default":"IRR"},"duration_days":{"type":"integer","maximum":3660.0,"minimum":1.0,"title":"Duration Days"},"gift_credit_irr":{"type":"integer","minimum":0.0,"title":"Gift Credit Irr","default":0},"domain_limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Domain Limit","default":1},"enabled_channels":{"items":{"type":"string"},"type":"array","title":"Enabled Channels"},"allowed_message_types":{"items":{"type":"string"},"type":"array","title":"Allowed Message Types"},"is_featured":{"type":"boolean","title":"Is Featured","default":false},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["code","name","price_irr","duration_days"],"title":"PlanVersionCreateV1"},"PluginDownloadTokenV1":{"properties":{"version":{"type":"string","title":"Version"},"download_url":{"type":"string","title":"Download Url"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds"},"sha256":{"type":"string","title":"Sha256"},"signature":{"type":"string","title":"Signature"},"signing_public_key":{"type":"string","title":"Signing Public Key"}},"type":"object","required":["version","download_url","expires_in_seconds","sha256","signature","signing_public_key"],"title":"PluginDownloadTokenV1"},"PluginMessagesRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"},"status":{"type":"string","maxLength":32,"title":"Status","default":"all"},"q":{"type":"string","maxLength":120,"title":"Q","default":""},"limit":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Limit","default":50},"offset":{"type":"integer","minimum":0.0,"title":"Offset","default":0}},"additionalProperties":false,"type":"object","required":["license_key","domain"],"title":"PluginMessagesRequestV1"},"PluginOtpRetryRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"},"challenge_id":{"type":"string","maxLength":128,"minLength":16,"title":"Challenge Id"}},"additionalProperties":false,"type":"object","required":["license_key","domain","challenge_id"],"title":"PluginOtpRetryRequestV1"},"PluginOtpSendRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"},"mobile":{"type":"string","maxLength":32,"minLength":4,"title":"Mobile"}},"additionalProperties":false,"type":"object","required":["license_key","domain","mobile"],"title":"PluginOtpSendRequestV1"},"PluginOtpVerifyRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"},"challenge_id":{"type":"string","maxLength":128,"minLength":16,"title":"Challenge Id"},"mobile":{"type":"string","maxLength":32,"minLength":4,"title":"Mobile"},"code":{"type":"string","maxLength":8,"minLength":4,"pattern":"^[0-9]+$","title":"Code"}},"additionalProperties":false,"type":"object","required":["license_key","domain","challenge_id","mobile","code"],"title":"PluginOtpVerifyRequestV1"},"ReasonV1":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":2,"title":"Reason"},"confirm":{"type":"boolean","title":"Confirm","default":true}},"type":"object","required":["reason"],"title":"ReasonV1"},"SessionResponseV1":{"properties":{"user_id":{"type":"integer","title":"User Id"},"role":{"type":"string","title":"Role"},"created":{"type":"boolean","title":"Created"},"csrf_token":{"type":"string","title":"Csrf Token"}},"type":"object","required":["user_id","role","created","csrf_token"],"title":"SessionResponseV1"},"SiteAnnounceRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"plugin_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plugin Version"},"wp_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Wp Version"},"woo_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Woo Version"},"callback_url":{"anyOf":[{"type":"string","maxLength":512,"minLength":8},{"type":"null"}],"title":"Callback Url"},"active_triggers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Active Triggers"}},"additionalProperties":false,"type":"object","required":["license_key","domain"],"title":"SiteAnnounceRequestV1"},"SiteCreateV1":{"properties":{"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"}},"type":"object","required":["domain"],"title":"SiteCreateV1"},"SiteDomainTransferReadV1":{"properties":{"site_id":{"type":"integer","title":"Site Id"},"current_domain":{"type":"string","title":"Current Domain"},"requested_domain":{"type":"string","title":"Requested Domain"},"status":{"type":"string","title":"Status"},"requested_at":{"type":"string","format":"date-time","title":"Requested At"},"cooldown_available_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cooldown Available At"}},"type":"object","required":["site_id","current_domain","requested_domain","status","requested_at"],"title":"SiteDomainTransferReadV1"},"SiteDomainTransferRequestV1":{"properties":{"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"reason":{"type":"string","maxLength":1000,"minLength":3,"title":"Reason"}},"type":"object","required":["domain","reason"],"title":"SiteDomainTransferRequestV1"},"SitePatchV1":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"}},"type":"object","title":"SitePatchV1"},"SiteReadV1":{"properties":{"id":{"type":"integer","title":"Id"},"canonical_domain":{"type":"string","title":"Canonical Domain"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"platform_type":{"type":"string","title":"Platform Type","default":"woocommerce"},"platform_external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform External Id"},"platform_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Identifier"},"platform_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Url"},"license_status":{"type":"string","title":"License Status"},"license_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Hint"},"wallet_balance_irr":{"type":"integer","title":"Wallet Balance Irr"},"plugin_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plugin Version"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"}},"type":"object","required":["id","canonical_domain","name","license_status","license_hint","wallet_balance_irr","plugin_version","last_seen_at"],"title":"SiteReadV1"},"SmsCreditOrderCreateV1":{"properties":{"site_id":{"type":"integer","title":"Site Id"},"amount_irr":{"type":"integer","maximum":100000000.0,"minimum":1000000.0,"title":"Amount Irr"}},"type":"object","required":["site_id","amount_irr"],"title":"SmsCreditOrderCreateV1"},"SmsSendRequestV1":{"properties":{"license_key":{"type":"string","maxLength":160,"minLength":8,"title":"License Key"},"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"},"channel":{"type":"string","pattern":"^[a-z0-9_-]{2,20}$","title":"Channel","default":"sms"},"message_type":{"type":"string","maxLength":64,"minLength":1,"title":"Message Type"},"customer_number":{"type":"string","maxLength":32,"minLength":4,"title":"Customer Number"},"parameters":{"additionalProperties":true,"type":"object","title":"Parameters"}},"additionalProperties":false,"type":"object","required":["license_key","domain","message_type","customer_number"],"title":"SmsSendRequestV1"},"SmsSendResponseV1":{"properties":{"message_id":{"type":"integer","title":"Message Id"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"parts":{"type":"integer","title":"Parts"},"billed_amount_irr":{"type":"integer","title":"Billed Amount Irr"},"provider_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Message Id"},"wallet_balance_irr":{"type":"integer","title":"Wallet Balance Irr"},"idempotent_replay":{"type":"boolean","title":"Idempotent Replay"}},"type":"object","required":["message_id","status","message","parts","billed_amount_irr","wallet_balance_irr","idempotent_replay"],"title":"SmsSendResponseV1"},"TicketCreateV1":{"properties":{"site_id":{"type":"integer","title":"Site Id"},"subject":{"type":"string","maxLength":180,"minLength":3,"title":"Subject"},"message":{"type":"string","maxLength":5000,"minLength":1,"title":"Message"}},"type":"object","required":["site_id","subject","message"],"title":"TicketCreateV1"},"TicketMessageCreateV1":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"TicketMessageCreateV1"},"TicketMessageReadV1":{"properties":{"id":{"type":"integer","title":"Id"},"author_user_id":{"type":"integer","title":"Author User Id"},"body":{"type":"string","title":"Body"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","author_user_id","body","created_at"],"title":"TicketMessageReadV1"},"TicketReadV1":{"properties":{"reference":{"type":"string","title":"Reference"},"site_id":{"type":"integer","title":"Site Id"},"subject":{"type":"string","title":"Subject"},"status":{"type":"string","title":"Status"},"priority":{"type":"string","title":"Priority"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"bale_support_url":{"type":"string","title":"Bale Support Url"}},"type":"object","required":["reference","site_id","subject","status","priority","created_at","updated_at","bale_support_url"],"title":"TicketReadV1"},"TicketReplyV1":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"},"status":{"type":"string","pattern":"^(open|waiting_owner|waiting_support|closed)$","title":"Status","default":"waiting_owner"}},"type":"object","required":["body"],"title":"TicketReplyV1"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WalletAdjustmentV1":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":2,"title":"Reason"},"confirm":{"type":"boolean","title":"Confirm","default":true},"user_id":{"type":"integer","title":"User Id"},"site_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Id"},"amount_irr":{"type":"integer","maximum":1000000000.0,"minimum":-1000000000.0,"title":"Amount Irr"},"financial_treatment":{"type":"string","pattern":"^(paid|gift)$","title":"Financial Treatment"},"payment_method":{"anyOf":[{"type":"string","pattern":"^(card_to_card|bank_transfer|cash|pos|other)$"},{"type":"null"}],"title":"Payment Method"}},"type":"object","required":["reason","user_id","amount_irr","financial_treatment"],"title":"WalletAdjustmentV1"},"WooCommerceAuthorizeRead":{"properties":{"authorization_url":{"type":"string","title":"Authorization Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["authorization_url","expires_at"],"title":"WooCommerceAuthorizeRead"},"WooCommerceCallback":{"properties":{"key_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Key Id"},"user_id":{"type":"string","maxLength":256,"minLength":32,"title":"User Id"},"consumer_key":{"type":"string","maxLength":256,"minLength":8,"format":"password","title":"Consumer Key","writeOnly":true},"consumer_secret":{"type":"string","maxLength":256,"minLength":8,"format":"password","title":"Consumer Secret","writeOnly":true},"key_permissions":{"type":"string","maxLength":32,"title":"Key Permissions","default":"read"}},"type":"object","required":["user_id","consumer_key","consumer_secret"],"title":"WooCommerceCallback"},"WooCommerceConnectionRead":{"properties":{"site_id":{"type":"integer","title":"Site Id"},"connection_status":{"type":"string","title":"Connection Status"},"sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Status"},"sync_pages_completed":{"type":"integer","title":"Sync Pages Completed","default":0},"sync_orders_seen":{"type":"integer","title":"Sync Orders Seen","default":0},"last_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error Code"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"analysis":{"anyOf":[{"$ref":"#/components/schemas/FunnelAnalysisRead"},{"type":"null"}]}},"type":"object","required":["site_id","connection_status"],"title":"WooCommerceConnectionRead"}},"securitySchemes":{"NabzSessionCookie":{"type":"apiKey","in":"cookie","name":"nabz_session","description":"Opaque Secure/HttpOnly owner or operator session cookie."},"NabzCsrfHeader":{"type":"apiKey","in":"header","name":"X-CSRF-Token","description":"Required together with NabzSessionCookie for state-changing portal calls."},"ProviderWebhookSignature":{"type":"apiKey","in":"header","name":"X-Nabz-Provider-Signature","description":"HMAC-SHA256 of the exact delivery webhook request body."}}},"x-nabz-contract-version":"v1"}